e7ef0874ce50220a7f9014fcd547853746f9a39b
[oota-llvm.git] / projects / sample / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
4 #
5 # Report bugs to <bugs@yourdomain>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40   echo "#! /bin/sh" >conf$$.sh
41   echo  "exit 0"   >>conf$$.sh
42   chmod +x conf$$.sh
43   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44     PATH_SEPARATOR=';'
45   else
46     PATH_SEPARATOR=:
47   fi
48   rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53   as_unset=unset
54 else
55   as_unset=false
56 fi
57
58
59 # IFS
60 # We need space, tab and new line, in precisely that order.  Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
65 '
66 IFS=" ""        $as_nl"
67
68 # Find who we are.  Look in the path if we contain no directory separator.
69 case $0 in
70   *[\\/]* ) as_myself=$0 ;;
71   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
73 do
74   IFS=$as_save_IFS
75   test -z "$as_dir" && as_dir=.
76   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
79
80      ;;
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85   as_myself=$0
86 fi
87 if test ! -f "$as_myself"; then
88   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89   { (exit 1); exit 1; }
90 fi
91
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
99
100 # NLS nuisances.
101 for as_var in \
102   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104   LC_TELEPHONE LC_TIME
105 do
106   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107     eval $as_var=C; export $as_var
108   else
109     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110   fi
111 done
112
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115    test "X`expr 00001 : '.*\(...\)'`" = X001; then
116   as_expr=expr
117 else
118   as_expr=false
119 fi
120
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122   as_basename=basename
123 else
124   as_basename=false
125 fi
126
127
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131          X"$0" : 'X\(//\)$' \| \
132          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134     sed '/^.*\/\([^/][^/]*\)\/*$/{
135             s//\1/
136             q
137           }
138           /^X\/\(\/\/\)$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\).*/{
143             s//\1/
144             q
145           }
146           s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
152 if test "x$CONFIG_SHELL" = x; then
153   if (eval ":") 2>/dev/null; then
154   as_have_required=yes
155 else
156   as_have_required=no
157 fi
158
159   if test $as_have_required = yes &&     (eval ":
160 (as_func_return () {
161   (exit \$1)
162 }
163 as_func_success () {
164   as_func_return 0
165 }
166 as_func_failure () {
167   as_func_return 1
168 }
169 as_func_ret_success () {
170   return 0
171 }
172 as_func_ret_failure () {
173   return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178   :
179 else
180   exitcode=1
181   echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185   exitcode=1
186   echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190   :
191 else
192   exitcode=1
193   echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197   exitcode=1
198   echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202   :
203 else
204   exitcode=1
205   echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
211   as_lineno_1=\$LINENO
212   as_lineno_2=\$LINENO
213   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
216   :
217 else
218   as_candidate_shells=
219     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   case $as_dir in
225          /*)
226            for as_base in sh bash ksh sh5; do
227              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228            done;;
229        esac
230 done
231 IFS=$as_save_IFS
232
233
234       for as_shell in $as_candidate_shells $SHELL; do
235          # Try only shells that exist, to save several forks.
236          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237                 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240   emulate sh
241   NULLCMD=:
242   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243   # is contrary to our usage.  Disable this feature.
244   alias -g '${1+"$@"}'='"$@"'
245   setopt NO_GLOB_SUBST
246 else
247   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
253 _ASEOF
254 }; then
255   CONFIG_SHELL=$as_shell
256                as_have_required=yes
257                if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274   (exit $1)
275 }
276 as_func_success () {
277   as_func_return 0
278 }
279 as_func_failure () {
280   as_func_return 1
281 }
282 as_func_ret_success () {
283   return 0
284 }
285 as_func_ret_failure () {
286   return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291   :
292 else
293   exitcode=1
294   echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298   exitcode=1
299   echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303   :
304 else
305   exitcode=1
306   echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310   exitcode=1
311   echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315   :
316 else
317   exitcode=1
318   echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
324   as_lineno_1=$LINENO
325   as_lineno_2=$LINENO
326   test "x$as_lineno_1" != "x$as_lineno_2" &&
327   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329 _ASEOF
330 }; then
331   break
332 fi
333
334 fi
335
336       done
337
338       if test "x$CONFIG_SHELL" != x; then
339   for as_var in BASH_ENV ENV
340         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341         done
342         export CONFIG_SHELL
343         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344 fi
345
346
347     if test $as_have_required = no; then
348   echo This script requires a shell more modern than all the
349       echo shells that I found on your system.  Please install a
350       echo modern shell, or manually run the script under such a
351       echo shell if you do have one.
352       { (exit 1); exit 1; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363   (exit \$1)
364 }
365 as_func_success () {
366   as_func_return 0
367 }
368 as_func_failure () {
369   as_func_return 1
370 }
371 as_func_ret_success () {
372   return 0
373 }
374 as_func_ret_failure () {
375   return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380   :
381 else
382   exitcode=1
383   echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387   exitcode=1
388   echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392   :
393 else
394   exitcode=1
395   echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399   exitcode=1
400   echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404   :
405 else
406   exitcode=1
407   echo positional parameters were not saved.
408 fi
409
410 test \$exitcode = 0") || {
411   echo No shell found that supports shell functions.
412   echo Please tell autoconf@gnu.org about your system,
413   echo including any error possibly output before this
414   echo message
415 }
416
417
418
419   as_lineno_1=$LINENO
420   as_lineno_2=$LINENO
421   test "x$as_lineno_1" != "x$as_lineno_2" &&
422   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425   # uniformly replaced by the line number.  The first 'sed' inserts a
426   # line-number line after each line using $LINENO; the second 'sed'
427   # does the real work.  The second script uses 'N' to pair each
428   # line-number line with the line containing $LINENO, and appends
429   # trailing '-' during substitution so that $LINENO is not a special
430   # case at line end.
431   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432   # scripts with optimization help from Paolo Bonzini.  Blame Lee
433   # E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451    { (exit 1); exit 1; }; }
452
453   # Don't try to exec as it changes $[0], causing all sort of problems
454   # (the dirname of $[0] is not the place where we might find the
455   # original and so on.  Autoconf is especially sensitive to this).
456   . "./$as_me.lineno"
457   # Exit status is that of the last command.
458   exit
459 }
460
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463   as_dirname=dirname
464 else
465   as_dirname=false
466 fi
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471   case `echo 'x\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   *)   ECHO_C='\c';;
474   esac;;
475 *)
476   ECHO_N='-n';;
477 esac
478
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480    test "X`expr 00001 : '.*\(...\)'`" = X001; then
481   as_expr=expr
482 else
483   as_expr=false
484 fi
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488   rm -f conf$$.dir/conf$$.file
489 else
490   rm -f conf$$.dir
491   mkdir conf$$.dir
492 fi
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495   as_ln_s='ln -s'
496   # ... but there are two gotchas:
497   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499   # In both cases, we have to default to `cp -p'.
500   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501     as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s=ln
504 else
505   as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511   as_mkdir_p=:
512 else
513   test -d ./-p && rmdir ./-p
514   as_mkdir_p=false
515 fi
516
517 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525   as_executable_p="test -x"
526 else
527   as_executable_p=:
528 fi
529 rm -f conf$$.file
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539 exec 7<&0 </dev/null 6>&1
540
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546 #
547 # Initializations.
548 #
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 # Identity of this package.
560 PACKAGE_NAME='[SAMPLE]'
561 PACKAGE_TARNAME='--sample--'
562 PACKAGE_VERSION='[x.xx]'
563 PACKAGE_STRING='[SAMPLE] [x.xx]'
564 PACKAGE_BUGREPORT='bugs@yourdomain'
565
566 ac_unique_file=""Makefile.common.in""
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #if HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #if HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #if STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # if HAVE_STDLIB_H
581 #  include <stdlib.h>
582 # endif
583 #endif
584 #if HAVE_STRING_H
585 # if !STDC_HEADERS && HAVE_MEMORY_H
586 #  include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #if HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #if HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #if HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #if HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
602
603 ac_subst_vars='SHELL
604 PATH_SEPARATOR
605 PACKAGE_NAME
606 PACKAGE_TARNAME
607 PACKAGE_VERSION
608 PACKAGE_STRING
609 PACKAGE_BUGREPORT
610 exec_prefix
611 prefix
612 program_transform_name
613 bindir
614 sbindir
615 libexecdir
616 datarootdir
617 datadir
618 sysconfdir
619 sharedstatedir
620 localstatedir
621 includedir
622 oldincludedir
623 docdir
624 infodir
625 htmldir
626 dvidir
627 pdfdir
628 psdir
629 libdir
630 localedir
631 mandir
632 DEFS
633 ECHO_C
634 ECHO_N
635 ECHO_T
636 LIBS
637 build_alias
638 host_alias
639 target_alias
640 LLVM_SRC
641 LLVM_OBJ
642 LLVM_VERSION
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 ENABLE_POLLY
655 LLVM_HAS_POLLY
656 subdirs
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_LIBCPP
686 ENABLE_CXX11
687 ENABLE_OPTIMIZED
688 ENABLE_PROFILING
689 DISABLE_ASSERTIONS
690 ENABLE_WERROR
691 ENABLE_EXPENSIVE_CHECKS
692 EXPENSIVE_CHECKS
693 DEBUG_RUNTIME
694 DEBUG_SYMBOLS
695 JIT
696 TARGET_HAS_JIT
697 ENABLE_DOCS
698 ENABLE_DOXYGEN
699 ENABLE_THREADS
700 ENABLE_PTHREADS
701 ENABLE_PIC
702 ENABLE_SHARED
703 ENABLE_EMBED_STDCXX
704 ENABLE_TIMESTAMPS
705 TARGETS_TO_BUILD
706 LLVM_ENUM_TARGETS
707 LLVM_ENUM_ASM_PRINTERS
708 LLVM_ENUM_ASM_PARSERS
709 LLVM_ENUM_DISASSEMBLERS
710 OPTIMIZE_OPTION
711 EXTRA_OPTIONS
712 EXTRA_LD_OPTIONS
713 BINUTILS_INCDIR
714 NM
715 ifGNUmake
716 LN_S
717 CMP
718 CP
719 DATE
720 FIND
721 MKDIR
722 MV
723 RANLIB
724 AR
725 RM
726 SED
727 TAR
728 BINPWD
729 GRAPHVIZ
730 DOT
731 FDP
732 NEATO
733 TWOPI
734 CIRCO
735 GV
736 DOTTY
737 XDOT_PY
738 INSTALL_PROGRAM
739 INSTALL_SCRIPT
740 INSTALL_DATA
741 BZIP2
742 CAT
743 DOXYGEN
744 GROFF
745 GZIPBIN
746 POD2HTML
747 POD2MAN
748 PDFROFF
749 RUNTEST
750 TCLSH
751 ZIP
752 OCAMLC
753 OCAMLOPT
754 OCAMLDEP
755 OCAMLDOC
756 GAS
757 HAVE_LINK_VERSION_SCRIPT
758 INSTALL_LTDL_TRUE
759 INSTALL_LTDL_FALSE
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
762 LIBADD_DL
763 NO_VARIADIC_MACROS
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
766 USE_UDIS86
767 USE_OPROFILE
768 HAVE_PTHREAD
769 HUGE_VAL_SANITY
770 MMAP_FILE
771 SHLIBEXT
772 SHLIBPATH_VAR
773 LLVM_PREFIX
774 LLVM_BINDIR
775 LLVM_LIBDIR
776 LLVM_DATADIR
777 LLVM_DOCSDIR
778 LLVM_ETCDIR
779 LLVM_INCLUDEDIR
780 LLVM_INFODIR
781 LLVM_MANDIR
782 LLVM_CONFIGTIME
783 BINDINGS_TO_BUILD
784 ALL_BINDINGS
785 OCAML_LIBDIR
786 ENABLE_VISIBILITY_INLINES_HIDDEN
787 RPATH
788 RDYNAMIC
789 LIBOBJS
790 LTLIBOBJS'
791 ac_subst_files=''
792       ac_precious_vars='build_alias
793 host_alias
794 target_alias
795 CC
796 CFLAGS
797 LDFLAGS
798 CPPFLAGS
799 CXX
800 CXXFLAGS
801 CCC
802 CPP'
803 ac_subdirs_all='tools/polly'
804
805 # Initialize some variables set by options.
806 ac_init_help=
807 ac_init_version=false
808 # The variables have the same names as the options, with
809 # dashes changed to underlines.
810 cache_file=/dev/null
811 exec_prefix=NONE
812 no_create=
813 no_recursion=
814 prefix=NONE
815 program_prefix=NONE
816 program_suffix=NONE
817 program_transform_name=s,x,x,
818 silent=
819 site=
820 srcdir=
821 verbose=
822 x_includes=NONE
823 x_libraries=NONE
824
825 # Installation directory options.
826 # These are left unexpanded so users can "make install exec_prefix=/foo"
827 # and all the variables that are supposed to be based on exec_prefix
828 # by default will actually change.
829 # Use braces instead of parens because sh, perl, etc. also accept them.
830 # (The list follows the same order as the GNU Coding Standards.)
831 bindir='${exec_prefix}/bin'
832 sbindir='${exec_prefix}/sbin'
833 libexecdir='${exec_prefix}/libexec'
834 datarootdir='${prefix}/share'
835 datadir='${datarootdir}'
836 sysconfdir='${prefix}/etc'
837 sharedstatedir='${prefix}/com'
838 localstatedir='${prefix}/var'
839 includedir='${prefix}/include'
840 oldincludedir='/usr/include'
841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842 infodir='${datarootdir}/info'
843 htmldir='${docdir}'
844 dvidir='${docdir}'
845 pdfdir='${docdir}'
846 psdir='${docdir}'
847 libdir='${exec_prefix}/lib'
848 localedir='${datarootdir}/locale'
849 mandir='${datarootdir}/man'
850
851 ac_prev=
852 ac_dashdash=
853 for ac_option
854 do
855   # If the previous option needs an argument, assign it.
856   if test -n "$ac_prev"; then
857     eval $ac_prev=\$ac_option
858     ac_prev=
859     continue
860   fi
861
862   case $ac_option in
863   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864   *)    ac_optarg=yes ;;
865   esac
866
867   # Accept the important Cygnus configure options, so we can diagnose typos.
868
869   case $ac_dashdash$ac_option in
870   --)
871     ac_dashdash=yes ;;
872
873   -bindir | --bindir | --bindi | --bind | --bin | --bi)
874     ac_prev=bindir ;;
875   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876     bindir=$ac_optarg ;;
877
878   -build | --build | --buil | --bui | --bu)
879     ac_prev=build_alias ;;
880   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
881     build_alias=$ac_optarg ;;
882
883   -cache-file | --cache-file | --cache-fil | --cache-fi \
884   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
885     ac_prev=cache_file ;;
886   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
887   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
888     cache_file=$ac_optarg ;;
889
890   --config-cache | -C)
891     cache_file=config.cache ;;
892
893   -datadir | --datadir | --datadi | --datad)
894     ac_prev=datadir ;;
895   -datadir=* | --datadir=* | --datadi=* | --datad=*)
896     datadir=$ac_optarg ;;
897
898   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
899   | --dataroo | --dataro | --datar)
900     ac_prev=datarootdir ;;
901   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
902   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
903     datarootdir=$ac_optarg ;;
904
905   -disable-* | --disable-*)
906     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
907     # Reject names that are not valid shell variable names.
908     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
909       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
910    { (exit 1); exit 1; }; }
911     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
912     eval enable_$ac_feature=no ;;
913
914   -docdir | --docdir | --docdi | --doc | --do)
915     ac_prev=docdir ;;
916   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917     docdir=$ac_optarg ;;
918
919   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920     ac_prev=dvidir ;;
921   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922     dvidir=$ac_optarg ;;
923
924   -enable-* | --enable-*)
925     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926     # Reject names that are not valid shell variable names.
927     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
928       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
929    { (exit 1); exit 1; }; }
930     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
931     eval enable_$ac_feature=\$ac_optarg ;;
932
933   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935   | --exec | --exe | --ex)
936     ac_prev=exec_prefix ;;
937   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939   | --exec=* | --exe=* | --ex=*)
940     exec_prefix=$ac_optarg ;;
941
942   -gas | --gas | --ga | --g)
943     # Obsolete; use --with-gas.
944     with_gas=yes ;;
945
946   -help | --help | --hel | --he | -h)
947     ac_init_help=long ;;
948   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949     ac_init_help=recursive ;;
950   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951     ac_init_help=short ;;
952
953   -host | --host | --hos | --ho)
954     ac_prev=host_alias ;;
955   -host=* | --host=* | --hos=* | --ho=*)
956     host_alias=$ac_optarg ;;
957
958   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959     ac_prev=htmldir ;;
960   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961   | --ht=*)
962     htmldir=$ac_optarg ;;
963
964   -includedir | --includedir | --includedi | --included | --include \
965   | --includ | --inclu | --incl | --inc)
966     ac_prev=includedir ;;
967   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968   | --includ=* | --inclu=* | --incl=* | --inc=*)
969     includedir=$ac_optarg ;;
970
971   -infodir | --infodir | --infodi | --infod | --info | --inf)
972     ac_prev=infodir ;;
973   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974     infodir=$ac_optarg ;;
975
976   -libdir | --libdir | --libdi | --libd)
977     ac_prev=libdir ;;
978   -libdir=* | --libdir=* | --libdi=* | --libd=*)
979     libdir=$ac_optarg ;;
980
981   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982   | --libexe | --libex | --libe)
983     ac_prev=libexecdir ;;
984   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985   | --libexe=* | --libex=* | --libe=*)
986     libexecdir=$ac_optarg ;;
987
988   -localedir | --localedir | --localedi | --localed | --locale)
989     ac_prev=localedir ;;
990   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991     localedir=$ac_optarg ;;
992
993   -localstatedir | --localstatedir | --localstatedi | --localstated \
994   | --localstate | --localstat | --localsta | --localst | --locals)
995     ac_prev=localstatedir ;;
996   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998     localstatedir=$ac_optarg ;;
999
1000   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001     ac_prev=mandir ;;
1002   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003     mandir=$ac_optarg ;;
1004
1005   -nfp | --nfp | --nf)
1006     # Obsolete; use --without-fp.
1007     with_fp=no ;;
1008
1009   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010   | --no-cr | --no-c | -n)
1011     no_create=yes ;;
1012
1013   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015     no_recursion=yes ;;
1016
1017   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019   | --oldin | --oldi | --old | --ol | --o)
1020     ac_prev=oldincludedir ;;
1021   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024     oldincludedir=$ac_optarg ;;
1025
1026   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027     ac_prev=prefix ;;
1028   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029     prefix=$ac_optarg ;;
1030
1031   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032   | --program-pre | --program-pr | --program-p)
1033     ac_prev=program_prefix ;;
1034   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036     program_prefix=$ac_optarg ;;
1037
1038   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039   | --program-suf | --program-su | --program-s)
1040     ac_prev=program_suffix ;;
1041   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043     program_suffix=$ac_optarg ;;
1044
1045   -program-transform-name | --program-transform-name \
1046   | --program-transform-nam | --program-transform-na \
1047   | --program-transform-n | --program-transform- \
1048   | --program-transform | --program-transfor \
1049   | --program-transfo | --program-transf \
1050   | --program-trans | --program-tran \
1051   | --progr-tra | --program-tr | --program-t)
1052     ac_prev=program_transform_name ;;
1053   -program-transform-name=* | --program-transform-name=* \
1054   | --program-transform-nam=* | --program-transform-na=* \
1055   | --program-transform-n=* | --program-transform-=* \
1056   | --program-transform=* | --program-transfor=* \
1057   | --program-transfo=* | --program-transf=* \
1058   | --program-trans=* | --program-tran=* \
1059   | --progr-tra=* | --program-tr=* | --program-t=*)
1060     program_transform_name=$ac_optarg ;;
1061
1062   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063     ac_prev=pdfdir ;;
1064   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065     pdfdir=$ac_optarg ;;
1066
1067   -psdir | --psdir | --psdi | --psd | --ps)
1068     ac_prev=psdir ;;
1069   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070     psdir=$ac_optarg ;;
1071
1072   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073   | -silent | --silent | --silen | --sile | --sil)
1074     silent=yes ;;
1075
1076   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077     ac_prev=sbindir ;;
1078   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079   | --sbi=* | --sb=*)
1080     sbindir=$ac_optarg ;;
1081
1082   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084   | --sharedst | --shareds | --shared | --share | --shar \
1085   | --sha | --sh)
1086     ac_prev=sharedstatedir ;;
1087   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090   | --sha=* | --sh=*)
1091     sharedstatedir=$ac_optarg ;;
1092
1093   -site | --site | --sit)
1094     ac_prev=site ;;
1095   -site=* | --site=* | --sit=*)
1096     site=$ac_optarg ;;
1097
1098   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099     ac_prev=srcdir ;;
1100   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101     srcdir=$ac_optarg ;;
1102
1103   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104   | --syscon | --sysco | --sysc | --sys | --sy)
1105     ac_prev=sysconfdir ;;
1106   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108     sysconfdir=$ac_optarg ;;
1109
1110   -target | --target | --targe | --targ | --tar | --ta | --t)
1111     ac_prev=target_alias ;;
1112   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113     target_alias=$ac_optarg ;;
1114
1115   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116     verbose=yes ;;
1117
1118   -version | --version | --versio | --versi | --vers | -V)
1119     ac_init_version=: ;;
1120
1121   -with-* | --with-*)
1122     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123     # Reject names that are not valid shell variable names.
1124     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1125       { echo "$as_me: error: invalid package name: $ac_package" >&2
1126    { (exit 1); exit 1; }; }
1127     ac_package=`echo $ac_package| sed 's/-/_/g'`
1128     eval with_$ac_package=\$ac_optarg ;;
1129
1130   -without-* | --without-*)
1131     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132     # Reject names that are not valid shell variable names.
1133     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1134       { echo "$as_me: error: invalid package name: $ac_package" >&2
1135    { (exit 1); exit 1; }; }
1136     ac_package=`echo $ac_package | sed 's/-/_/g'`
1137     eval with_$ac_package=no ;;
1138
1139   --x)
1140     # Obsolete; use --with-x.
1141     with_x=yes ;;
1142
1143   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1144   | --x-incl | --x-inc | --x-in | --x-i)
1145     ac_prev=x_includes ;;
1146   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1147   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1148     x_includes=$ac_optarg ;;
1149
1150   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1151   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1152     ac_prev=x_libraries ;;
1153   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1154   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1155     x_libraries=$ac_optarg ;;
1156
1157   -*) { echo "$as_me: error: unrecognized option: $ac_option
1158 Try \`$0 --help' for more information." >&2
1159    { (exit 1); exit 1; }; }
1160     ;;
1161
1162   *=*)
1163     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1164     # Reject names that are not valid shell variable names.
1165     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1166       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1167    { (exit 1); exit 1; }; }
1168     eval $ac_envvar=\$ac_optarg
1169     export $ac_envvar ;;
1170
1171   *)
1172     # FIXME: should be removed in autoconf 3.0.
1173     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1174     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1176     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1177     ;;
1178
1179   esac
1180 done
1181
1182 if test -n "$ac_prev"; then
1183   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1184   { echo "$as_me: error: missing argument to $ac_option" >&2
1185    { (exit 1); exit 1; }; }
1186 fi
1187
1188 # Be sure to have absolute directory names.
1189 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190                 datadir sysconfdir sharedstatedir localstatedir includedir \
1191                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192                 libdir localedir mandir
1193 do
1194   eval ac_val=\$$ac_var
1195   case $ac_val in
1196     [\\/$]* | ?:[\\/]* )  continue;;
1197     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1198   esac
1199   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1200    { (exit 1); exit 1; }; }
1201 done
1202
1203 # There might be people who depend on the old broken behavior: `$host'
1204 # used to hold the argument of --host etc.
1205 # FIXME: To remove some day.
1206 build=$build_alias
1207 host=$host_alias
1208 target=$target_alias
1209
1210 # FIXME: To remove some day.
1211 if test "x$host_alias" != x; then
1212   if test "x$build_alias" = x; then
1213     cross_compiling=maybe
1214     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1215     If a cross compiler is detected then cross compile mode will be used." >&2
1216   elif test "x$build_alias" != "x$host_alias"; then
1217     cross_compiling=yes
1218   fi
1219 fi
1220
1221 ac_tool_prefix=
1222 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1223
1224 test "$silent" = yes && exec 6>/dev/null
1225
1226
1227 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1228 ac_ls_di=`ls -di .` &&
1229 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1230   { echo "$as_me: error: Working directory cannot be determined" >&2
1231    { (exit 1); exit 1; }; }
1232 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233   { echo "$as_me: error: pwd does not report name of working directory" >&2
1234    { (exit 1); exit 1; }; }
1235
1236
1237 # Find the source files, if location was not specified.
1238 if test -z "$srcdir"; then
1239   ac_srcdir_defaulted=yes
1240   # Try the directory containing this script, then the parent directory.
1241   ac_confdir=`$as_dirname -- "$0" ||
1242 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1243          X"$0" : 'X\(//\)[^/]' \| \
1244          X"$0" : 'X\(//\)$' \| \
1245          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1246 echo X"$0" |
1247     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1248             s//\1/
1249             q
1250           }
1251           /^X\(\/\/\)[^/].*/{
1252             s//\1/
1253             q
1254           }
1255           /^X\(\/\/\)$/{
1256             s//\1/
1257             q
1258           }
1259           /^X\(\/\).*/{
1260             s//\1/
1261             q
1262           }
1263           s/.*/./; q'`
1264   srcdir=$ac_confdir
1265   if test ! -r "$srcdir/$ac_unique_file"; then
1266     srcdir=..
1267   fi
1268 else
1269   ac_srcdir_defaulted=no
1270 fi
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1272   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1273   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1274    { (exit 1); exit 1; }; }
1275 fi
1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277 ac_abs_confdir=`(
1278         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1279    { (exit 1); exit 1; }; }
1280         pwd)`
1281 # When building in place, set srcdir=.
1282 if test "$ac_abs_confdir" = "$ac_pwd"; then
1283   srcdir=.
1284 fi
1285 # Remove unnecessary trailing slashes from srcdir.
1286 # Double slashes in file names in object file debugging info
1287 # mess up M-x gdb in Emacs.
1288 case $srcdir in
1289 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290 esac
1291 for ac_var in $ac_precious_vars; do
1292   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1293   eval ac_env_${ac_var}_value=\$${ac_var}
1294   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1295   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1296 done
1297
1298 #
1299 # Report the --help message.
1300 #
1301 if test "$ac_init_help" = "long"; then
1302   # Omit some internal or obsolete options to make the list less imposing.
1303   # This message is too long to be a string in the A/UX 3.1 sh.
1304   cat <<_ACEOF
1305 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1306
1307 Usage: $0 [OPTION]... [VAR=VALUE]...
1308
1309 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1310 VAR=VALUE.  See below for descriptions of some of the useful variables.
1311
1312 Defaults for the options are specified in brackets.
1313
1314 Configuration:
1315   -h, --help              display this help and exit
1316       --help=short        display options specific to this package
1317       --help=recursive    display the short help of all the included packages
1318   -V, --version           display version information and exit
1319   -q, --quiet, --silent   do not print \`checking...' messages
1320       --cache-file=FILE   cache test results in FILE [disabled]
1321   -C, --config-cache      alias for \`--cache-file=config.cache'
1322   -n, --no-create         do not create output files
1323       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1324
1325 Installation directories:
1326   --prefix=PREFIX         install architecture-independent files in PREFIX
1327                           [$ac_default_prefix]
1328   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1329                           [PREFIX]
1330
1331 By default, \`make install' will install all the files in
1332 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1333 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1334 for instance \`--prefix=\$HOME'.
1335
1336 For better control, use the options below.
1337
1338 Fine tuning of the installation directories:
1339   --bindir=DIR           user executables [EPREFIX/bin]
1340   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1341   --libexecdir=DIR       program executables [EPREFIX/libexec]
1342   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1343   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1344   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1345   --libdir=DIR           object code libraries [EPREFIX/lib]
1346   --includedir=DIR       C header files [PREFIX/include]
1347   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1348   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1349   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1350   --infodir=DIR          info documentation [DATAROOTDIR/info]
1351   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1352   --mandir=DIR           man documentation [DATAROOTDIR/man]
1353   --docdir=DIR           documentation root [DATAROOTDIR/doc/--sample--]
1354   --htmldir=DIR          html documentation [DOCDIR]
1355   --dvidir=DIR           dvi documentation [DOCDIR]
1356   --pdfdir=DIR           pdf documentation [DOCDIR]
1357   --psdir=DIR            ps documentation [DOCDIR]
1358 _ACEOF
1359
1360   cat <<\_ACEOF
1361
1362 System types:
1363   --build=BUILD     configure for building on BUILD [guessed]
1364   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1365   --target=TARGET   configure for building compilers for TARGET [HOST]
1366 _ACEOF
1367 fi
1368
1369 if test -n "$ac_init_help"; then
1370   case $ac_init_help in
1371      short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1372    esac
1373   cat <<\_ACEOF
1374
1375 Optional Features:
1376   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1377   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1378   --enable-polly          Use polly if available (default is YES)
1379   --enable-libcpp         Use libc++ if available (default is NO)
1380   --enable-cxx11          Use c++11 if available (default is NO)
1381   --enable-optimized      Compile with optimizations enabled (default is NO)
1382   --enable-profiling      Compile with profiling enabled (default is NO)
1383   --enable-assertions     Compile with assertion checks enabled (default is
1384                           YES)
1385   --enable-werror         Compile with -Werror enabled (default is NO)
1386   --enable-expensive-checks
1387                           Compile with expensive debug checks enabled (default
1388                           is NO)
1389   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1390                           NO)
1391   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1392                           optimization is on and YES if it's off)
1393   --enable-jit            Enable Just In Time Compiling (default is YES)
1394   --enable-docs           Build documents (default is YES)
1395   --enable-doxygen        Build doxygen documentation (default is NO)
1396   --enable-threads        Use threads if available (default is YES)
1397   --enable-pthreads       Use pthreads if available (default is YES)
1398   --enable-pic            Build LLVM with Position Independent Code (default
1399                           is YES)
1400   --enable-shared         Build a shared library and link tools against it
1401                           (default is NO)
1402   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1403                           Win32 DLL (default is YES)
1404   --enable-timestamps     Enable embedding timestamp information in build
1405                           (default is YES)
1406   --enable-targets        Build specific host targets: all or
1407                           target1,target2,... Valid targets are: host, x86,
1408                           x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1409                           xcore, msp430, nvptx, systemz, and cpp (default=all)
1410   --enable-bindings       Build specific language bindings:
1411                           all,auto,none,{binding-name} (default=auto)
1412   --enable-libffi         Check for the presence of libffi (default is NO)
1413   --enable-ltdl-install   install libltdl
1414
1415 Optional Packages:
1416   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1417   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1418   --with-llvmsrc          Location of LLVM Source Code
1419   --with-llvmobj          Location of LLVM Object Code
1420   --with-optimize-option  Select the compiler options to use for optimized
1421                           builds
1422   --with-extra-options    Specify additional options to compile LLVM with
1423   --with-extra-ld-options Specify additional options to link LLVM with
1424   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1425                           is stdlib)
1426   --with-clang-resource-dir
1427                           Relative directory from the Clang binary for
1428                           resource files
1429   --with-c-include-dirs   Colon separated list of directories clang will
1430                           search for headers
1431   --with-gcc-toolchain    Directory where gcc is installed.
1432   --with-binutils-include Specify path to binutils/include/ containing
1433                           plugin-api.h file for gold plugin.
1434   --with-bug-report-url   Specify the URL where bug reports should be
1435                           submitted (default=http://llvm.org/bugs/)
1436   --with-tclinclude       directory where tcl headers are
1437   --with-udis86=<path>    Use udis86 external x86 disassembler library
1438   --with-oprofile=<prefix>
1439                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1440
1441 Some influential environment variables:
1442   CC          C compiler command
1443   CFLAGS      C compiler flags
1444   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1445               nonstandard directory <lib dir>
1446   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1447               you have headers in a nonstandard directory <include dir>
1448   CXX         C++ compiler command
1449   CXXFLAGS    C++ compiler flags
1450   CPP         C preprocessor
1451
1452 Use these variables to override the choices made by `configure' or to help
1453 it to find libraries and programs with nonstandard names/locations.
1454
1455 Report bugs to <bugs@yourdomain>.
1456 _ACEOF
1457 ac_status=$?
1458 fi
1459
1460 if test "$ac_init_help" = "recursive"; then
1461   # If there are subdirs, report their specific --help.
1462   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463     test -d "$ac_dir" || continue
1464     ac_builddir=.
1465
1466 case "$ac_dir" in
1467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *)
1469   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1470   # A ".." for each directory in $ac_dir_suffix.
1471   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1472   case $ac_top_builddir_sub in
1473   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475   esac ;;
1476 esac
1477 ac_abs_top_builddir=$ac_pwd
1478 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479 # for backward compatibility:
1480 ac_top_builddir=$ac_top_build_prefix
1481
1482 case $srcdir in
1483   .)  # We are building in place.
1484     ac_srcdir=.
1485     ac_top_srcdir=$ac_top_builddir_sub
1486     ac_abs_top_srcdir=$ac_pwd ;;
1487   [\\/]* | ?:[\\/]* )  # Absolute name.
1488     ac_srcdir=$srcdir$ac_dir_suffix;
1489     ac_top_srcdir=$srcdir
1490     ac_abs_top_srcdir=$srcdir ;;
1491   *) # Relative name.
1492     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493     ac_top_srcdir=$ac_top_build_prefix$srcdir
1494     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495 esac
1496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497
1498     cd "$ac_dir" || { ac_status=$?; continue; }
1499     # Check for guested configure.
1500     if test -f "$ac_srcdir/configure.gnu"; then
1501       echo &&
1502       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503     elif test -f "$ac_srcdir/configure"; then
1504       echo &&
1505       $SHELL "$ac_srcdir/configure" --help=recursive
1506     else
1507       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1508     fi || ac_status=$?
1509     cd "$ac_pwd" || { ac_status=$?; break; }
1510   done
1511 fi
1512
1513 test -n "$ac_init_help" && exit $ac_status
1514 if $ac_init_version; then
1515   cat <<\_ACEOF
1516 [SAMPLE] configure [x.xx]
1517 generated by GNU Autoconf 2.60
1518
1519 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1520 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1523 _ACEOF
1524   exit
1525 fi
1526 cat >config.log <<_ACEOF
1527 This file contains any messages produced by compilers while
1528 running configure, to aid debugging if configure makes a mistake.
1529
1530 It was created by [SAMPLE] $as_me [x.xx], which was
1531 generated by GNU Autoconf 2.60.  Invocation command line was
1532
1533   $ $0 $@
1534
1535 _ACEOF
1536 exec 5>>config.log
1537 {
1538 cat <<_ASUNAME
1539 ## --------- ##
1540 ## Platform. ##
1541 ## --------- ##
1542
1543 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1544 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1545 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1546 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1547 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1548
1549 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1550 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1551
1552 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1553 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1554 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1555 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1556 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1557 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1558 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1559
1560 _ASUNAME
1561
1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563 for as_dir in $PATH
1564 do
1565   IFS=$as_save_IFS
1566   test -z "$as_dir" && as_dir=.
1567   echo "PATH: $as_dir"
1568 done
1569 IFS=$as_save_IFS
1570
1571 } >&5
1572
1573 cat >&5 <<_ACEOF
1574
1575
1576 ## ----------- ##
1577 ## Core tests. ##
1578 ## ----------- ##
1579
1580 _ACEOF
1581
1582
1583 # Keep a trace of the command line.
1584 # Strip out --no-create and --no-recursion so they do not pile up.
1585 # Strip out --silent because we don't want to record it for future runs.
1586 # Also quote any args containing shell meta-characters.
1587 # Make two passes to allow for proper duplicate-argument suppression.
1588 ac_configure_args=
1589 ac_configure_args0=
1590 ac_configure_args1=
1591 ac_must_keep_next=false
1592 for ac_pass in 1 2
1593 do
1594   for ac_arg
1595   do
1596     case $ac_arg in
1597     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1598     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1599     | -silent | --silent | --silen | --sile | --sil)
1600       continue ;;
1601     *\'*)
1602       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1603     esac
1604     case $ac_pass in
1605     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1606     2)
1607       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1608       if test $ac_must_keep_next = true; then
1609         ac_must_keep_next=false # Got value, back to normal.
1610       else
1611         case $ac_arg in
1612           *=* | --config-cache | -C | -disable-* | --disable-* \
1613           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1614           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1615           | -with-* | --with-* | -without-* | --without-* | --x)
1616             case "$ac_configure_args0 " in
1617               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1618             esac
1619             ;;
1620           -* ) ac_must_keep_next=true ;;
1621         esac
1622       fi
1623       ac_configure_args="$ac_configure_args '$ac_arg'"
1624       ;;
1625     esac
1626   done
1627 done
1628 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1629 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1630
1631 # When interrupted or exit'd, cleanup temporary files, and complete
1632 # config.log.  We remove comments because anyway the quotes in there
1633 # would cause problems or look ugly.
1634 # WARNING: Use '\'' to represent an apostrophe within the trap.
1635 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1636 trap 'exit_status=$?
1637   # Save into config.log some information that might help in debugging.
1638   {
1639     echo
1640
1641     cat <<\_ASBOX
1642 ## ---------------- ##
1643 ## Cache variables. ##
1644 ## ---------------- ##
1645 _ASBOX
1646     echo
1647     # The following way of writing the cache mishandles newlines in values,
1648 (
1649   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1650     eval ac_val=\$$ac_var
1651     case $ac_val in #(
1652     *${as_nl}*)
1653       case $ac_var in #(
1654       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1655 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1656       esac
1657       case $ac_var in #(
1658       _ | IFS | as_nl) ;; #(
1659       *) $as_unset $ac_var ;;
1660       esac ;;
1661     esac
1662   done
1663   (set) 2>&1 |
1664     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1665     *${as_nl}ac_space=\ *)
1666       sed -n \
1667         "s/'\''/'\''\\\\'\'''\''/g;
1668           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1669       ;; #(
1670     *)
1671       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1672       ;;
1673     esac |
1674     sort
1675 )
1676     echo
1677
1678     cat <<\_ASBOX
1679 ## ----------------- ##
1680 ## Output variables. ##
1681 ## ----------------- ##
1682 _ASBOX
1683     echo
1684     for ac_var in $ac_subst_vars
1685     do
1686       eval ac_val=\$$ac_var
1687       case $ac_val in
1688       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1689       esac
1690       echo "$ac_var='\''$ac_val'\''"
1691     done | sort
1692     echo
1693
1694     if test -n "$ac_subst_files"; then
1695       cat <<\_ASBOX
1696 ## ------------------- ##
1697 ## File substitutions. ##
1698 ## ------------------- ##
1699 _ASBOX
1700       echo
1701       for ac_var in $ac_subst_files
1702       do
1703         eval ac_val=\$$ac_var
1704         case $ac_val in
1705         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1706         esac
1707         echo "$ac_var='\''$ac_val'\''"
1708       done | sort
1709       echo
1710     fi
1711
1712     if test -s confdefs.h; then
1713       cat <<\_ASBOX
1714 ## ----------- ##
1715 ## confdefs.h. ##
1716 ## ----------- ##
1717 _ASBOX
1718       echo
1719       cat confdefs.h
1720       echo
1721     fi
1722     test "$ac_signal" != 0 &&
1723       echo "$as_me: caught signal $ac_signal"
1724     echo "$as_me: exit $exit_status"
1725   } >&5
1726   rm -f core *.core core.conftest.* &&
1727     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1728     exit $exit_status
1729 ' 0
1730 for ac_signal in 1 2 13 15; do
1731   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1732 done
1733 ac_signal=0
1734
1735 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1736 rm -f -r conftest* confdefs.h
1737
1738 # Predefined preprocessor variables.
1739
1740 cat >>confdefs.h <<_ACEOF
1741 #define PACKAGE_NAME "$PACKAGE_NAME"
1742 _ACEOF
1743
1744
1745 cat >>confdefs.h <<_ACEOF
1746 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1747 _ACEOF
1748
1749
1750 cat >>confdefs.h <<_ACEOF
1751 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1752 _ACEOF
1753
1754
1755 cat >>confdefs.h <<_ACEOF
1756 #define PACKAGE_STRING "$PACKAGE_STRING"
1757 _ACEOF
1758
1759
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1762 _ACEOF
1763
1764
1765 # Let the site file select an alternate cache file if it wants to.
1766 # Prefer explicitly selected file to automatically selected ones.
1767 if test -n "$CONFIG_SITE"; then
1768   set x "$CONFIG_SITE"
1769 elif test "x$prefix" != xNONE; then
1770   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1771 else
1772   set x "$ac_default_prefix/share/config.site" \
1773         "$ac_default_prefix/etc/config.site"
1774 fi
1775 shift
1776 for ac_site_file
1777 do
1778   if test -r "$ac_site_file"; then
1779     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1780 echo "$as_me: loading site script $ac_site_file" >&6;}
1781     sed 's/^/| /' "$ac_site_file" >&5
1782     . "$ac_site_file"
1783   fi
1784 done
1785
1786 if test -r "$cache_file"; then
1787   # Some versions of bash will fail to source /dev/null (special
1788   # files actually), so we avoid doing that.
1789   if test -f "$cache_file"; then
1790     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1791 echo "$as_me: loading cache $cache_file" >&6;}
1792     case $cache_file in
1793       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1794       *)                      . "./$cache_file";;
1795     esac
1796   fi
1797 else
1798   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1799 echo "$as_me: creating cache $cache_file" >&6;}
1800   >$cache_file
1801 fi
1802
1803 # Check that the precious variables saved in the cache have kept the same
1804 # value.
1805 ac_cache_corrupted=false
1806 for ac_var in $ac_precious_vars; do
1807   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1808   eval ac_new_set=\$ac_env_${ac_var}_set
1809   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1810   eval ac_new_val=\$ac_env_${ac_var}_value
1811   case $ac_old_set,$ac_new_set in
1812     set,)
1813       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1814 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1815       ac_cache_corrupted=: ;;
1816     ,set)
1817       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1818 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1819       ac_cache_corrupted=: ;;
1820     ,);;
1821     *)
1822       if test "x$ac_old_val" != "x$ac_new_val"; then
1823         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1824 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1825         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1826 echo "$as_me:   former value:  $ac_old_val" >&2;}
1827         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1828 echo "$as_me:   current value: $ac_new_val" >&2;}
1829         ac_cache_corrupted=:
1830       fi;;
1831   esac
1832   # Pass precious variables to config.status.
1833   if test "$ac_new_set" = set; then
1834     case $ac_new_val in
1835     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1836     *) ac_arg=$ac_var=$ac_new_val ;;
1837     esac
1838     case " $ac_configure_args " in
1839       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1840       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1841     esac
1842   fi
1843 done
1844 if $ac_cache_corrupted; then
1845   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1846 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1847   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1848 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1849    { (exit 1); exit 1; }; }
1850 fi
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876 ac_ext=c
1877 ac_cpp='$CPP $CPPFLAGS'
1878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1881
1882
1883
1884 LLVM_SRC_ROOT="../.."
1885 LLVM_OBJ_ROOT="../.."
1886
1887 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1888 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1889
1890
1891 # Check whether --with-llvmsrc was given.
1892 if test "${with_llvmsrc+set}" = set; then
1893   withval=$with_llvmsrc; llvm_src="$withval"
1894 else
1895   llvm_src="$LLVM_ABS_SRC_ROOT"
1896 fi
1897
1898   LLVM_SRC=$llvm_src
1899
1900
1901 # Check whether --with-llvmobj was given.
1902 if test "${with_llvmobj+set}" = set; then
1903   withval=$with_llvmobj; llvm_obj="$withval"
1904 else
1905   llvm_obj="$LLVM_ABS_OBJ_ROOT"
1906 fi
1907
1908   LLVM_OBJ=$llvm_obj
1909
1910   ac_config_commands="$ac_config_commands setup"
1911
1912
1913
1914 { echo "$as_me:$LINENO: checking llvm-config" >&5
1915 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1916 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1917 if ! test -f "$llvm_config_path" ; then
1918    llvm_config_path="no"
1919 fi
1920 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1921 echo "${ECHO_T}$llvm_config_path" >&6; }
1922
1923 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1924 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1925 if test "$llvm_config_path" != no ; then
1926   llvm_package_version=`$llvm_config_path --version`
1927 else
1928   llvm_package_version="unknown";
1929 fi
1930 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1931 echo "${ECHO_T}$llvm_package_version" >&6; }
1932 LLVM_VERSION=$llvm_package_version
1933
1934
1935
1936
1937 ac_aux_dir=
1938 for ac_dir in autoconf "$srcdir"/autoconf; do
1939   if test -f "$ac_dir/install-sh"; then
1940     ac_aux_dir=$ac_dir
1941     ac_install_sh="$ac_aux_dir/install-sh -c"
1942     break
1943   elif test -f "$ac_dir/install.sh"; then
1944     ac_aux_dir=$ac_dir
1945     ac_install_sh="$ac_aux_dir/install.sh -c"
1946     break
1947   elif test -f "$ac_dir/shtool"; then
1948     ac_aux_dir=$ac_dir
1949     ac_install_sh="$ac_aux_dir/shtool install -c"
1950     break
1951   fi
1952 done
1953 if test -z "$ac_aux_dir"; then
1954   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1955 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1956    { (exit 1); exit 1; }; }
1957 fi
1958
1959 # These three variables are undocumented and unsupported,
1960 # and are intended to be withdrawn in a future Autoconf release.
1961 # They can cause serious problems if a builder's source tree is in a directory
1962 # whose full name contains unusual characters.
1963 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1964 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1965 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1966
1967
1968
1969
1970 ac_ext=c
1971 ac_cpp='$CPP $CPPFLAGS'
1972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975 if test -n "$ac_tool_prefix"; then
1976   for ac_prog in clang llvm-gcc gcc
1977   do
1978     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1982 if test "${ac_cv_prog_CC+set}" = set; then
1983   echo $ECHO_N "(cached) $ECHO_C" >&6
1984 else
1985   if test -n "$CC"; then
1986   ac_cv_prog_CC="$CC" # Let the user override the test.
1987 else
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1990 do
1991   IFS=$as_save_IFS
1992   test -z "$as_dir" && as_dir=.
1993   for ac_exec_ext in '' $ac_executable_extensions; do
1994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1995     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997     break 2
1998   fi
1999 done
2000 done
2001 IFS=$as_save_IFS
2002
2003 fi
2004 fi
2005 CC=$ac_cv_prog_CC
2006 if test -n "$CC"; then
2007   { echo "$as_me:$LINENO: result: $CC" >&5
2008 echo "${ECHO_T}$CC" >&6; }
2009 else
2010   { echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6; }
2012 fi
2013
2014
2015     test -n "$CC" && break
2016   done
2017 fi
2018 if test -z "$CC"; then
2019   ac_ct_CC=$CC
2020   for ac_prog in clang llvm-gcc gcc
2021 do
2022   # Extract the first word of "$ac_prog", so it can be a program name with args.
2023 set dummy $ac_prog; ac_word=$2
2024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2027   echo $ECHO_N "(cached) $ECHO_C" >&6
2028 else
2029   if test -n "$ac_ct_CC"; then
2030   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2031 else
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033 for as_dir in $PATH
2034 do
2035   IFS=$as_save_IFS
2036   test -z "$as_dir" && as_dir=.
2037   for ac_exec_ext in '' $ac_executable_extensions; do
2038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2039     ac_cv_prog_ac_ct_CC="$ac_prog"
2040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041     break 2
2042   fi
2043 done
2044 done
2045 IFS=$as_save_IFS
2046
2047 fi
2048 fi
2049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2050 if test -n "$ac_ct_CC"; then
2051   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2052 echo "${ECHO_T}$ac_ct_CC" >&6; }
2053 else
2054   { echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6; }
2056 fi
2057
2058
2059   test -n "$ac_ct_CC" && break
2060 done
2061
2062   if test "x$ac_ct_CC" = x; then
2063     CC=""
2064   else
2065     case $cross_compiling:$ac_tool_warned in
2066 yes:)
2067 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2068 whose name does not start with the host triplet.  If you think this
2069 configuration is useful to you, please write to autoconf@gnu.org." >&5
2070 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2071 whose name does not start with the host triplet.  If you think this
2072 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2073 ac_tool_warned=yes ;;
2074 esac
2075     CC=$ac_ct_CC
2076   fi
2077 fi
2078
2079
2080 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081 See \`config.log' for more details." >&5
2082 echo "$as_me: error: no acceptable C compiler found in \$PATH
2083 See \`config.log' for more details." >&2;}
2084    { (exit 1); exit 1; }; }
2085
2086 # Provide some information about the compiler.
2087 echo "$as_me:$LINENO: checking for C compiler version" >&5
2088 ac_compiler=`set X $ac_compile; echo $2`
2089 { (ac_try="$ac_compiler --version >&5"
2090 case "(($ac_try" in
2091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092   *) ac_try_echo=$ac_try;;
2093 esac
2094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095   (eval "$ac_compiler --version >&5") 2>&5
2096   ac_status=$?
2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098   (exit $ac_status); }
2099 { (ac_try="$ac_compiler -v >&5"
2100 case "(($ac_try" in
2101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102   *) ac_try_echo=$ac_try;;
2103 esac
2104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2105   (eval "$ac_compiler -v >&5") 2>&5
2106   ac_status=$?
2107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108   (exit $ac_status); }
2109 { (ac_try="$ac_compiler -V >&5"
2110 case "(($ac_try" in
2111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112   *) ac_try_echo=$ac_try;;
2113 esac
2114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2115   (eval "$ac_compiler -V >&5") 2>&5
2116   ac_status=$?
2117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118   (exit $ac_status); }
2119
2120 cat >conftest.$ac_ext <<_ACEOF
2121 /* confdefs.h.  */
2122 _ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h.  */
2126
2127 int
2128 main ()
2129 {
2130
2131   ;
2132   return 0;
2133 }
2134 _ACEOF
2135 ac_clean_files_save=$ac_clean_files
2136 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2137 # Try to create an executable without -o first, disregard a.out.
2138 # It will help us diagnose broken compilers, and finding out an intuition
2139 # of exeext.
2140 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2141 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2142 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2143 #
2144 # List of possible output files, starting from the most likely.
2145 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2146 # only as a last resort.  b.out is created by i960 compilers.
2147 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2148 #
2149 # The IRIX 6 linker writes into existing files which may not be
2150 # executable, retaining their permissions.  Remove them first so a
2151 # subsequent execution test works.
2152 ac_rmfiles=
2153 for ac_file in $ac_files
2154 do
2155   case $ac_file in
2156     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2157     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2158   esac
2159 done
2160 rm -f $ac_rmfiles
2161
2162 if { (ac_try="$ac_link_default"
2163 case "(($ac_try" in
2164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165   *) ac_try_echo=$ac_try;;
2166 esac
2167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2168   (eval "$ac_link_default") 2>&5
2169   ac_status=$?
2170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171   (exit $ac_status); }; then
2172   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2173 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2174 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2175 # so that the user can short-circuit this test for compilers unknown to
2176 # Autoconf.
2177 for ac_file in $ac_files
2178 do
2179   test -f "$ac_file" || continue
2180   case $ac_file in
2181     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2182         ;;
2183     [ab].out )
2184         # We found the default executable, but exeext='' is most
2185         # certainly right.
2186         break;;
2187     *.* )
2188         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2189         then :; else
2190            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2191         fi
2192         # We set ac_cv_exeext here because the later test for it is not
2193         # safe: cross compilers may not add the suffix if given an `-o'
2194         # argument, so we may need to know it at that point already.
2195         # Even if this section looks crufty: it has the advantage of
2196         # actually working.
2197         break;;
2198     * )
2199         break;;
2200   esac
2201 done
2202 test "$ac_cv_exeext" = no && ac_cv_exeext=
2203
2204 else
2205   echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2207
2208 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2209 See \`config.log' for more details." >&5
2210 echo "$as_me: error: C compiler cannot create executables
2211 See \`config.log' for more details." >&2;}
2212    { (exit 77); exit 77; }; }
2213 fi
2214
2215 ac_exeext=$ac_cv_exeext
2216 { echo "$as_me:$LINENO: result: $ac_file" >&5
2217 echo "${ECHO_T}$ac_file" >&6; }
2218
2219 # Check that the compiler produces executables we can run.  If not, either
2220 # the compiler is broken, or we cross compile.
2221 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2222 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2223 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2224 # If not cross compiling, check that we can run a simple program.
2225 if test "$cross_compiling" != yes; then
2226   if { ac_try='./$ac_file'
2227   { (case "(($ac_try" in
2228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229   *) ac_try_echo=$ac_try;;
2230 esac
2231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2232   (eval "$ac_try") 2>&5
2233   ac_status=$?
2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235   (exit $ac_status); }; }; then
2236     cross_compiling=no
2237   else
2238     if test "$cross_compiling" = maybe; then
2239         cross_compiling=yes
2240     else
2241         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2242 If you meant to cross compile, use \`--host'.
2243 See \`config.log' for more details." >&5
2244 echo "$as_me: error: cannot run C compiled programs.
2245 If you meant to cross compile, use \`--host'.
2246 See \`config.log' for more details." >&2;}
2247    { (exit 1); exit 1; }; }
2248     fi
2249   fi
2250 fi
2251 { echo "$as_me:$LINENO: result: yes" >&5
2252 echo "${ECHO_T}yes" >&6; }
2253
2254 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2255 ac_clean_files=$ac_clean_files_save
2256 # Check that the compiler produces executables we can run.  If not, either
2257 # the compiler is broken, or we cross compile.
2258 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2259 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2260 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2261 echo "${ECHO_T}$cross_compiling" >&6; }
2262
2263 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2264 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2265 if { (ac_try="$ac_link"
2266 case "(($ac_try" in
2267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268   *) ac_try_echo=$ac_try;;
2269 esac
2270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2271   (eval "$ac_link") 2>&5
2272   ac_status=$?
2273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274   (exit $ac_status); }; then
2275   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2276 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2277 # work properly (i.e., refer to `conftest.exe'), while it won't with
2278 # `rm'.
2279 for ac_file in conftest.exe conftest conftest.*; do
2280   test -f "$ac_file" || continue
2281   case $ac_file in
2282     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2283     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2284           break;;
2285     * ) break;;
2286   esac
2287 done
2288 else
2289   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2290 See \`config.log' for more details." >&5
2291 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2292 See \`config.log' for more details." >&2;}
2293    { (exit 1); exit 1; }; }
2294 fi
2295
2296 rm -f conftest$ac_cv_exeext
2297 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2298 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2299
2300 rm -f conftest.$ac_ext
2301 EXEEXT=$ac_cv_exeext
2302 ac_exeext=$EXEEXT
2303 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2304 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2305 if test "${ac_cv_objext+set}" = set; then
2306   echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308   cat >conftest.$ac_ext <<_ACEOF
2309 /* confdefs.h.  */
2310 _ACEOF
2311 cat confdefs.h >>conftest.$ac_ext
2312 cat >>conftest.$ac_ext <<_ACEOF
2313 /* end confdefs.h.  */
2314
2315 int
2316 main ()
2317 {
2318
2319   ;
2320   return 0;
2321 }
2322 _ACEOF
2323 rm -f conftest.o conftest.obj
2324 if { (ac_try="$ac_compile"
2325 case "(($ac_try" in
2326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327   *) ac_try_echo=$ac_try;;
2328 esac
2329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2330   (eval "$ac_compile") 2>&5
2331   ac_status=$?
2332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333   (exit $ac_status); }; then
2334   for ac_file in conftest.o conftest.obj conftest.*; do
2335   test -f "$ac_file" || continue;
2336   case $ac_file in
2337     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2338     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2339        break;;
2340   esac
2341 done
2342 else
2343   echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2345
2346 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2347 See \`config.log' for more details." >&5
2348 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2349 See \`config.log' for more details." >&2;}
2350    { (exit 1); exit 1; }; }
2351 fi
2352
2353 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2354 fi
2355 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2356 echo "${ECHO_T}$ac_cv_objext" >&6; }
2357 OBJEXT=$ac_cv_objext
2358 ac_objext=$OBJEXT
2359 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2360 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2361 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2362   echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364   cat >conftest.$ac_ext <<_ACEOF
2365 /* confdefs.h.  */
2366 _ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h.  */
2370
2371 int
2372 main ()
2373 {
2374 #ifndef __GNUC__
2375        choke me
2376 #endif
2377
2378   ;
2379   return 0;
2380 }
2381 _ACEOF
2382 rm -f conftest.$ac_objext
2383 if { (ac_try="$ac_compile"
2384 case "(($ac_try" in
2385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386   *) ac_try_echo=$ac_try;;
2387 esac
2388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389   (eval "$ac_compile") 2>conftest.er1
2390   ac_status=$?
2391   grep -v '^ *+' conftest.er1 >conftest.err
2392   rm -f conftest.er1
2393   cat conftest.err >&5
2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395   (exit $ac_status); } &&
2396          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2397   { (case "(($ac_try" in
2398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399   *) ac_try_echo=$ac_try;;
2400 esac
2401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402   (eval "$ac_try") 2>&5
2403   ac_status=$?
2404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405   (exit $ac_status); }; } &&
2406          { ac_try='test -s conftest.$ac_objext'
2407   { (case "(($ac_try" in
2408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409   *) ac_try_echo=$ac_try;;
2410 esac
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412   (eval "$ac_try") 2>&5
2413   ac_status=$?
2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); }; }; then
2416   ac_compiler_gnu=yes
2417 else
2418   echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2420
2421         ac_compiler_gnu=no
2422 fi
2423
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2426
2427 fi
2428 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2429 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2430 GCC=`test $ac_compiler_gnu = yes && echo yes`
2431 ac_test_CFLAGS=${CFLAGS+set}
2432 ac_save_CFLAGS=$CFLAGS
2433 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2434 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2435 if test "${ac_cv_prog_cc_g+set}" = set; then
2436   echo $ECHO_N "(cached) $ECHO_C" >&6
2437 else
2438   ac_save_c_werror_flag=$ac_c_werror_flag
2439    ac_c_werror_flag=yes
2440    ac_cv_prog_cc_g=no
2441    CFLAGS="-g"
2442    cat >conftest.$ac_ext <<_ACEOF
2443 /* confdefs.h.  */
2444 _ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h.  */
2448
2449 int
2450 main ()
2451 {
2452
2453   ;
2454   return 0;
2455 }
2456 _ACEOF
2457 rm -f conftest.$ac_objext
2458 if { (ac_try="$ac_compile"
2459 case "(($ac_try" in
2460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461   *) ac_try_echo=$ac_try;;
2462 esac
2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464   (eval "$ac_compile") 2>conftest.er1
2465   ac_status=$?
2466   grep -v '^ *+' conftest.er1 >conftest.err
2467   rm -f conftest.er1
2468   cat conftest.err >&5
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); } &&
2471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2472   { (case "(($ac_try" in
2473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474   *) ac_try_echo=$ac_try;;
2475 esac
2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477   (eval "$ac_try") 2>&5
2478   ac_status=$?
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); }; } &&
2481          { ac_try='test -s conftest.$ac_objext'
2482   { (case "(($ac_try" in
2483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484   *) ac_try_echo=$ac_try;;
2485 esac
2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487   (eval "$ac_try") 2>&5
2488   ac_status=$?
2489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490   (exit $ac_status); }; }; then
2491   ac_cv_prog_cc_g=yes
2492 else
2493   echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2495
2496         CFLAGS=""
2497       cat >conftest.$ac_ext <<_ACEOF
2498 /* confdefs.h.  */
2499 _ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h.  */
2503
2504 int
2505 main ()
2506 {
2507
2508   ;
2509   return 0;
2510 }
2511 _ACEOF
2512 rm -f conftest.$ac_objext
2513 if { (ac_try="$ac_compile"
2514 case "(($ac_try" in
2515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516   *) ac_try_echo=$ac_try;;
2517 esac
2518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519   (eval "$ac_compile") 2>conftest.er1
2520   ac_status=$?
2521   grep -v '^ *+' conftest.er1 >conftest.err
2522   rm -f conftest.er1
2523   cat conftest.err >&5
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); } &&
2526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2527   { (case "(($ac_try" in
2528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529   *) ac_try_echo=$ac_try;;
2530 esac
2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532   (eval "$ac_try") 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; } &&
2536          { ac_try='test -s conftest.$ac_objext'
2537   { (case "(($ac_try" in
2538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539   *) ac_try_echo=$ac_try;;
2540 esac
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542   (eval "$ac_try") 2>&5
2543   ac_status=$?
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); }; }; then
2546   :
2547 else
2548   echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2550
2551         ac_c_werror_flag=$ac_save_c_werror_flag
2552          CFLAGS="-g"
2553          cat >conftest.$ac_ext <<_ACEOF
2554 /* confdefs.h.  */
2555 _ACEOF
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h.  */
2559
2560 int
2561 main ()
2562 {
2563
2564   ;
2565   return 0;
2566 }
2567 _ACEOF
2568 rm -f conftest.$ac_objext
2569 if { (ac_try="$ac_compile"
2570 case "(($ac_try" in
2571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572   *) ac_try_echo=$ac_try;;
2573 esac
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575   (eval "$ac_compile") 2>conftest.er1
2576   ac_status=$?
2577   grep -v '^ *+' conftest.er1 >conftest.err
2578   rm -f conftest.er1
2579   cat conftest.err >&5
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); } &&
2582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2583   { (case "(($ac_try" in
2584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585   *) ac_try_echo=$ac_try;;
2586 esac
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588   (eval "$ac_try") 2>&5
2589   ac_status=$?
2590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591   (exit $ac_status); }; } &&
2592          { ac_try='test -s conftest.$ac_objext'
2593   { (case "(($ac_try" in
2594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595   *) ac_try_echo=$ac_try;;
2596 esac
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598   (eval "$ac_try") 2>&5
2599   ac_status=$?
2600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); }; }; then
2602   ac_cv_prog_cc_g=yes
2603 else
2604   echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2606
2607
2608 fi
2609
2610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611 fi
2612
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 fi
2615
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617    ac_c_werror_flag=$ac_save_c_werror_flag
2618 fi
2619 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2620 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2621 if test "$ac_test_CFLAGS" = set; then
2622   CFLAGS=$ac_save_CFLAGS
2623 elif test $ac_cv_prog_cc_g = yes; then
2624   if test "$GCC" = yes; then
2625     CFLAGS="-g -O2"
2626   else
2627     CFLAGS="-g"
2628   fi
2629 else
2630   if test "$GCC" = yes; then
2631     CFLAGS="-O2"
2632   else
2633     CFLAGS=
2634   fi
2635 fi
2636 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2637 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2638 if test "${ac_cv_prog_cc_c89+set}" = set; then
2639   echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641   ac_cv_prog_cc_c89=no
2642 ac_save_CC=$CC
2643 cat >conftest.$ac_ext <<_ACEOF
2644 /* confdefs.h.  */
2645 _ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h.  */
2649 #include <stdarg.h>
2650 #include <stdio.h>
2651 #include <sys/types.h>
2652 #include <sys/stat.h>
2653 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2654 struct buf { int x; };
2655 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2656 static char *e (p, i)
2657      char **p;
2658      int i;
2659 {
2660   return p[i];
2661 }
2662 static char *f (char * (*g) (char **, int), char **p, ...)
2663 {
2664   char *s;
2665   va_list v;
2666   va_start (v,p);
2667   s = g (p, va_arg (v,int));
2668   va_end (v);
2669   return s;
2670 }
2671
2672 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2673    function prototypes and stuff, but not '\xHH' hex character constants.
2674    These don't provoke an error unfortunately, instead are silently treated
2675    as 'x'.  The following induces an error, until -std is added to get
2676    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2677    array size at least.  It's necessary to write '\x00'==0 to get something
2678    that's true only with -std.  */
2679 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2680
2681 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2682    inside strings and character constants.  */
2683 #define FOO(x) 'x'
2684 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2685
2686 int test (int i, double x);
2687 struct s1 {int (*f) (int a);};
2688 struct s2 {int (*f) (double a);};
2689 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2690 int argc;
2691 char **argv;
2692 int
2693 main ()
2694 {
2695 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2696   ;
2697   return 0;
2698 }
2699 _ACEOF
2700 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2701         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2702 do
2703   CC="$ac_save_CC $ac_arg"
2704   rm -f conftest.$ac_objext
2705 if { (ac_try="$ac_compile"
2706 case "(($ac_try" in
2707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708   *) ac_try_echo=$ac_try;;
2709 esac
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711   (eval "$ac_compile") 2>conftest.er1
2712   ac_status=$?
2713   grep -v '^ *+' conftest.er1 >conftest.err
2714   rm -f conftest.er1
2715   cat conftest.err >&5
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); } &&
2718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2719   { (case "(($ac_try" in
2720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721   *) ac_try_echo=$ac_try;;
2722 esac
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724   (eval "$ac_try") 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }; } &&
2728          { ac_try='test -s conftest.$ac_objext'
2729   { (case "(($ac_try" in
2730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731   *) ac_try_echo=$ac_try;;
2732 esac
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734   (eval "$ac_try") 2>&5
2735   ac_status=$?
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); }; }; then
2738   ac_cv_prog_cc_c89=$ac_arg
2739 else
2740   echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2742
2743
2744 fi
2745
2746 rm -f core conftest.err conftest.$ac_objext
2747   test "x$ac_cv_prog_cc_c89" != "xno" && break
2748 done
2749 rm -f conftest.$ac_ext
2750 CC=$ac_save_CC
2751
2752 fi
2753 # AC_CACHE_VAL
2754 case "x$ac_cv_prog_cc_c89" in
2755   x)
2756     { echo "$as_me:$LINENO: result: none needed" >&5
2757 echo "${ECHO_T}none needed" >&6; } ;;
2758   xno)
2759     { echo "$as_me:$LINENO: result: unsupported" >&5
2760 echo "${ECHO_T}unsupported" >&6; } ;;
2761   *)
2762     CC="$CC $ac_cv_prog_cc_c89"
2763     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2764 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2765 esac
2766
2767
2768 ac_ext=c
2769 ac_cpp='$CPP $CPPFLAGS'
2770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2773
2774 ac_ext=cpp
2775 ac_cpp='$CXXCPP $CPPFLAGS'
2776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2779 if test -z "$CXX"; then
2780   if test -n "$CCC"; then
2781     CXX=$CCC
2782   else
2783     if test -n "$ac_tool_prefix"; then
2784   for ac_prog in clang++ llvm-g++ g++
2785   do
2786     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2790 if test "${ac_cv_prog_CXX+set}" = set; then
2791   echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793   if test -n "$CXX"; then
2794   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799   IFS=$as_save_IFS
2800   test -z "$as_dir" && as_dir=.
2801   for ac_exec_ext in '' $ac_executable_extensions; do
2802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2803     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805     break 2
2806   fi
2807 done
2808 done
2809 IFS=$as_save_IFS
2810
2811 fi
2812 fi
2813 CXX=$ac_cv_prog_CXX
2814 if test -n "$CXX"; then
2815   { echo "$as_me:$LINENO: result: $CXX" >&5
2816 echo "${ECHO_T}$CXX" >&6; }
2817 else
2818   { echo "$as_me:$LINENO: result: no" >&5
2819 echo "${ECHO_T}no" >&6; }
2820 fi
2821
2822
2823     test -n "$CXX" && break
2824   done
2825 fi
2826 if test -z "$CXX"; then
2827   ac_ct_CXX=$CXX
2828   for ac_prog in clang++ llvm-g++ g++
2829 do
2830   # Extract the first word of "$ac_prog", so it can be a program name with args.
2831 set dummy $ac_prog; ac_word=$2
2832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2834 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2835   echo $ECHO_N "(cached) $ECHO_C" >&6
2836 else
2837   if test -n "$ac_ct_CXX"; then
2838   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2842 do
2843   IFS=$as_save_IFS
2844   test -z "$as_dir" && as_dir=.
2845   for ac_exec_ext in '' $ac_executable_extensions; do
2846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2847     ac_cv_prog_ac_ct_CXX="$ac_prog"
2848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849     break 2
2850   fi
2851 done
2852 done
2853 IFS=$as_save_IFS
2854
2855 fi
2856 fi
2857 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2858 if test -n "$ac_ct_CXX"; then
2859   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2860 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2861 else
2862   { echo "$as_me:$LINENO: result: no" >&5
2863 echo "${ECHO_T}no" >&6; }
2864 fi
2865
2866
2867   test -n "$ac_ct_CXX" && break
2868 done
2869
2870   if test "x$ac_ct_CXX" = x; then
2871     CXX="g++"
2872   else
2873     case $cross_compiling:$ac_tool_warned in
2874 yes:)
2875 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2876 whose name does not start with the host triplet.  If you think this
2877 configuration is useful to you, please write to autoconf@gnu.org." >&5
2878 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2879 whose name does not start with the host triplet.  If you think this
2880 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2881 ac_tool_warned=yes ;;
2882 esac
2883     CXX=$ac_ct_CXX
2884   fi
2885 fi
2886
2887   fi
2888 fi
2889 # Provide some information about the compiler.
2890 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2891 ac_compiler=`set X $ac_compile; echo $2`
2892 { (ac_try="$ac_compiler --version >&5"
2893 case "(($ac_try" in
2894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895   *) ac_try_echo=$ac_try;;
2896 esac
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898   (eval "$ac_compiler --version >&5") 2>&5
2899   ac_status=$?
2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901   (exit $ac_status); }
2902 { (ac_try="$ac_compiler -v >&5"
2903 case "(($ac_try" in
2904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905   *) ac_try_echo=$ac_try;;
2906 esac
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908   (eval "$ac_compiler -v >&5") 2>&5
2909   ac_status=$?
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); }
2912 { (ac_try="$ac_compiler -V >&5"
2913 case "(($ac_try" in
2914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915   *) ac_try_echo=$ac_try;;
2916 esac
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918   (eval "$ac_compiler -V >&5") 2>&5
2919   ac_status=$?
2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921   (exit $ac_status); }
2922
2923 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2924 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2925 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2926   echo $ECHO_N "(cached) $ECHO_C" >&6
2927 else
2928   cat >conftest.$ac_ext <<_ACEOF
2929 /* confdefs.h.  */
2930 _ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h.  */
2934
2935 int
2936 main ()
2937 {
2938 #ifndef __GNUC__
2939        choke me
2940 #endif
2941
2942   ;
2943   return 0;
2944 }
2945 _ACEOF
2946 rm -f conftest.$ac_objext
2947 if { (ac_try="$ac_compile"
2948 case "(($ac_try" in
2949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950   *) ac_try_echo=$ac_try;;
2951 esac
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953   (eval "$ac_compile") 2>conftest.er1
2954   ac_status=$?
2955   grep -v '^ *+' conftest.er1 >conftest.err
2956   rm -f conftest.er1
2957   cat conftest.err >&5
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); } &&
2960          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2961   { (case "(($ac_try" in
2962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963   *) ac_try_echo=$ac_try;;
2964 esac
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966   (eval "$ac_try") 2>&5
2967   ac_status=$?
2968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969   (exit $ac_status); }; } &&
2970          { ac_try='test -s conftest.$ac_objext'
2971   { (case "(($ac_try" in
2972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973   *) ac_try_echo=$ac_try;;
2974 esac
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976   (eval "$ac_try") 2>&5
2977   ac_status=$?
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); }; }; then
2980   ac_compiler_gnu=yes
2981 else
2982   echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2984
2985         ac_compiler_gnu=no
2986 fi
2987
2988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2990
2991 fi
2992 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2993 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2994 GXX=`test $ac_compiler_gnu = yes && echo yes`
2995 ac_test_CXXFLAGS=${CXXFLAGS+set}
2996 ac_save_CXXFLAGS=$CXXFLAGS
2997 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2998 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2999 if test "${ac_cv_prog_cxx_g+set}" = set; then
3000   echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3003    ac_cxx_werror_flag=yes
3004    ac_cv_prog_cxx_g=no
3005    CXXFLAGS="-g"
3006    cat >conftest.$ac_ext <<_ACEOF
3007 /* confdefs.h.  */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h.  */
3012
3013 int
3014 main ()
3015 {
3016
3017   ;
3018   return 0;
3019 }
3020 _ACEOF
3021 rm -f conftest.$ac_objext
3022 if { (ac_try="$ac_compile"
3023 case "(($ac_try" in
3024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025   *) ac_try_echo=$ac_try;;
3026 esac
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028   (eval "$ac_compile") 2>conftest.er1
3029   ac_status=$?
3030   grep -v '^ *+' conftest.er1 >conftest.err
3031   rm -f conftest.er1
3032   cat conftest.err >&5
3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); } &&
3035          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3036   { (case "(($ac_try" in
3037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038   *) ac_try_echo=$ac_try;;
3039 esac
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041   (eval "$ac_try") 2>&5
3042   ac_status=$?
3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044   (exit $ac_status); }; } &&
3045          { ac_try='test -s conftest.$ac_objext'
3046   { (case "(($ac_try" in
3047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048   *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051   (eval "$ac_try") 2>&5
3052   ac_status=$?
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); }; }; then
3055   ac_cv_prog_cxx_g=yes
3056 else
3057   echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3059
3060         CXXFLAGS=""
3061       cat >conftest.$ac_ext <<_ACEOF
3062 /* confdefs.h.  */
3063 _ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h.  */
3067
3068 int
3069 main ()
3070 {
3071
3072   ;
3073   return 0;
3074 }
3075 _ACEOF
3076 rm -f conftest.$ac_objext
3077 if { (ac_try="$ac_compile"
3078 case "(($ac_try" in
3079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080   *) ac_try_echo=$ac_try;;
3081 esac
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083   (eval "$ac_compile") 2>conftest.er1
3084   ac_status=$?
3085   grep -v '^ *+' conftest.er1 >conftest.err
3086   rm -f conftest.er1
3087   cat conftest.err >&5
3088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089   (exit $ac_status); } &&
3090          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3091   { (case "(($ac_try" in
3092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093   *) ac_try_echo=$ac_try;;
3094 esac
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096   (eval "$ac_try") 2>&5
3097   ac_status=$?
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); }; } &&
3100          { ac_try='test -s conftest.$ac_objext'
3101   { (case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106   (eval "$ac_try") 2>&5
3107   ac_status=$?
3108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109   (exit $ac_status); }; }; then
3110   :
3111 else
3112   echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3114
3115         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3116          CXXFLAGS="-g"
3117          cat >conftest.$ac_ext <<_ACEOF
3118 /* confdefs.h.  */
3119 _ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h.  */
3123
3124 int
3125 main ()
3126 {
3127
3128   ;
3129   return 0;
3130 }
3131 _ACEOF
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3134 case "(($ac_try" in
3135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136   *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139   (eval "$ac_compile") 2>conftest.er1
3140   ac_status=$?
3141   grep -v '^ *+' conftest.er1 >conftest.err
3142   rm -f conftest.er1
3143   cat conftest.err >&5
3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); } &&
3146          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3147   { (case "(($ac_try" in
3148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149   *) ac_try_echo=$ac_try;;
3150 esac
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152   (eval "$ac_try") 2>&5
3153   ac_status=$?
3154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155   (exit $ac_status); }; } &&
3156          { ac_try='test -s conftest.$ac_objext'
3157   { (case "(($ac_try" in
3158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159   *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162   (eval "$ac_try") 2>&5
3163   ac_status=$?
3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); }; }; then
3166   ac_cv_prog_cxx_g=yes
3167 else
3168   echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3170
3171
3172 fi
3173
3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175 fi
3176
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178 fi
3179
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3182 fi
3183 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3184 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3185 if test "$ac_test_CXXFLAGS" = set; then
3186   CXXFLAGS=$ac_save_CXXFLAGS
3187 elif test $ac_cv_prog_cxx_g = yes; then
3188   if test "$GXX" = yes; then
3189     CXXFLAGS="-g -O2"
3190   else
3191     CXXFLAGS="-g"
3192   fi
3193 else
3194   if test "$GXX" = yes; then
3195     CXXFLAGS="-O2"
3196   else
3197     CXXFLAGS=
3198   fi
3199 fi
3200 ac_ext=c
3201 ac_cpp='$CPP $CPPFLAGS'
3202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3205
3206 ac_ext=c
3207 ac_cpp='$CPP $CPPFLAGS'
3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3212 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3213 # On Suns, sometimes $CPP names a directory.
3214 if test -n "$CPP" && test -d "$CPP"; then
3215   CPP=
3216 fi
3217 if test -z "$CPP"; then
3218   if test "${ac_cv_prog_CPP+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221       # Double quotes because CPP needs to be expanded
3222     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3223     do
3224       ac_preproc_ok=false
3225 for ac_c_preproc_warn_flag in '' yes
3226 do
3227   # Use a header file that comes with gcc, so configuring glibc
3228   # with a fresh cross-compiler works.
3229   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230   # <limits.h> exists even on freestanding compilers.
3231   # On the NeXT, cc -E runs the code through the compiler's parser,
3232   # not just through cpp. "Syntax error" is here to catch this case.
3233   cat >conftest.$ac_ext <<_ACEOF
3234 /* confdefs.h.  */
3235 _ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h.  */
3239 #ifdef __STDC__
3240 # include <limits.h>
3241 #else
3242 # include <assert.h>
3243 #endif
3244                      Syntax error
3245 _ACEOF
3246 if { (ac_try="$ac_cpp conftest.$ac_ext"
3247 case "(($ac_try" in
3248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249   *) ac_try_echo=$ac_try;;
3250 esac
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3253   ac_status=$?
3254   grep -v '^ *+' conftest.er1 >conftest.err
3255   rm -f conftest.er1
3256   cat conftest.err >&5
3257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258   (exit $ac_status); } >/dev/null; then
3259   if test -s conftest.err; then
3260     ac_cpp_err=$ac_c_preproc_warn_flag
3261     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3262   else
3263     ac_cpp_err=
3264   fi
3265 else
3266   ac_cpp_err=yes
3267 fi
3268 if test -z "$ac_cpp_err"; then
3269   :
3270 else
3271   echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3273
3274   # Broken: fails on valid input.
3275 continue
3276 fi
3277
3278 rm -f conftest.err conftest.$ac_ext
3279
3280   # OK, works on sane cases.  Now check whether nonexistent headers
3281   # can be detected and how.
3282   cat >conftest.$ac_ext <<_ACEOF
3283 /* confdefs.h.  */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h.  */
3288 #include <ac_nonexistent.h>
3289 _ACEOF
3290 if { (ac_try="$ac_cpp conftest.$ac_ext"
3291 case "(($ac_try" in
3292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293   *) ac_try_echo=$ac_try;;
3294 esac
3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3297   ac_status=$?
3298   grep -v '^ *+' conftest.er1 >conftest.err
3299   rm -f conftest.er1
3300   cat conftest.err >&5
3301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302   (exit $ac_status); } >/dev/null; then
3303   if test -s conftest.err; then
3304     ac_cpp_err=$ac_c_preproc_warn_flag
3305     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3306   else
3307     ac_cpp_err=
3308   fi
3309 else
3310   ac_cpp_err=yes
3311 fi
3312 if test -z "$ac_cpp_err"; then
3313   # Broken: success on invalid input.
3314 continue
3315 else
3316   echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3318
3319   # Passes both tests.
3320 ac_preproc_ok=:
3321 break
3322 fi
3323
3324 rm -f conftest.err conftest.$ac_ext
3325
3326 done
3327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3328 rm -f conftest.err conftest.$ac_ext
3329 if $ac_preproc_ok; then
3330   break
3331 fi
3332
3333     done
3334     ac_cv_prog_CPP=$CPP
3335
3336 fi
3337   CPP=$ac_cv_prog_CPP
3338 else
3339   ac_cv_prog_CPP=$CPP
3340 fi
3341 { echo "$as_me:$LINENO: result: $CPP" >&5
3342 echo "${ECHO_T}$CPP" >&6; }
3343 ac_preproc_ok=false
3344 for ac_c_preproc_warn_flag in '' yes
3345 do
3346   # Use a header file that comes with gcc, so configuring glibc
3347   # with a fresh cross-compiler works.
3348   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349   # <limits.h> exists even on freestanding compilers.
3350   # On the NeXT, cc -E runs the code through the compiler's parser,
3351   # not just through cpp. "Syntax error" is here to catch this case.
3352   cat >conftest.$ac_ext <<_ACEOF
3353 /* confdefs.h.  */
3354 _ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h.  */
3358 #ifdef __STDC__
3359 # include <limits.h>
3360 #else
3361 # include <assert.h>
3362 #endif
3363                      Syntax error
3364 _ACEOF
3365 if { (ac_try="$ac_cpp conftest.$ac_ext"
3366 case "(($ac_try" in
3367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368   *) ac_try_echo=$ac_try;;
3369 esac
3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3372   ac_status=$?
3373   grep -v '^ *+' conftest.er1 >conftest.err
3374   rm -f conftest.er1
3375   cat conftest.err >&5
3376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377   (exit $ac_status); } >/dev/null; then
3378   if test -s conftest.err; then
3379     ac_cpp_err=$ac_c_preproc_warn_flag
3380     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3381   else
3382     ac_cpp_err=
3383   fi
3384 else
3385   ac_cpp_err=yes
3386 fi
3387 if test -z "$ac_cpp_err"; then
3388   :
3389 else
3390   echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3392
3393   # Broken: fails on valid input.
3394 continue
3395 fi
3396
3397 rm -f conftest.err conftest.$ac_ext
3398
3399   # OK, works on sane cases.  Now check whether nonexistent headers
3400   # can be detected and how.
3401   cat >conftest.$ac_ext <<_ACEOF
3402 /* confdefs.h.  */
3403 _ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h.  */
3407 #include <ac_nonexistent.h>
3408 _ACEOF
3409 if { (ac_try="$ac_cpp conftest.$ac_ext"
3410 case "(($ac_try" in
3411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412   *) ac_try_echo=$ac_try;;
3413 esac
3414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3416   ac_status=$?
3417   grep -v '^ *+' conftest.er1 >conftest.err
3418   rm -f conftest.er1
3419   cat conftest.err >&5
3420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421   (exit $ac_status); } >/dev/null; then
3422   if test -s conftest.err; then
3423     ac_cpp_err=$ac_c_preproc_warn_flag
3424     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3425   else
3426     ac_cpp_err=
3427   fi
3428 else
3429   ac_cpp_err=yes
3430 fi
3431 if test -z "$ac_cpp_err"; then
3432   # Broken: success on invalid input.
3433 continue
3434 else
3435   echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3437
3438   # Passes both tests.
3439 ac_preproc_ok=:
3440 break
3441 fi
3442
3443 rm -f conftest.err conftest.$ac_ext
3444
3445 done
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then
3449   :
3450 else
3451   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3452 See \`config.log' for more details." >&5
3453 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3454 See \`config.log' for more details." >&2;}
3455    { (exit 1); exit 1; }; }
3456 fi
3457
3458 ac_ext=c
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
3464
3465
3466
3467 # Check whether --enable-polly was given.
3468 if test "${enable_polly+set}" = set; then
3469   enableval=$enable_polly;
3470 else
3471   enableval=default
3472 fi
3473
3474 case "$enableval" in
3475   yes) ENABLE_POLLY=1
3476  ;;
3477   no)  ENABLE_POLLY=0
3478  ;;
3479   default) ENABLE_POLLY=1
3480  ;;
3481   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3482 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3483    { (exit 1); exit 1; }; } ;;
3484 esac
3485
3486
3487 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3488   LLVM_HAS_POLLY=1
3489
3490   subdirs="$subdirs tools/polly"
3491
3492 fi
3493
3494
3495 # Make sure we can run config.sub.
3496 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3497   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3498 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3499    { (exit 1); exit 1; }; }
3500
3501 { echo "$as_me:$LINENO: checking build system type" >&5
3502 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3503 if test "${ac_cv_build+set}" = set; then
3504   echo $ECHO_N "(cached) $ECHO_C" >&6
3505 else
3506   ac_build_alias=$build_alias
3507 test "x$ac_build_alias" = x &&
3508   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3509 test "x$ac_build_alias" = x &&
3510   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3511 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3512    { (exit 1); exit 1; }; }
3513 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3514   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3515 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3516    { (exit 1); exit 1; }; }
3517
3518 fi
3519 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3520 echo "${ECHO_T}$ac_cv_build" >&6; }
3521 case $ac_cv_build in
3522 *-*-*) ;;
3523 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3524 echo "$as_me: error: invalid value of canonical build" >&2;}
3525    { (exit 1); exit 1; }; };;
3526 esac
3527 build=$ac_cv_build
3528 ac_save_IFS=$IFS; IFS='-'
3529 set x $ac_cv_build
3530 shift
3531 build_cpu=$1
3532 build_vendor=$2
3533 shift; shift
3534 # Remember, the first character of IFS is used to create $*,
3535 # except with old shells:
3536 build_os=$*
3537 IFS=$ac_save_IFS
3538 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3539
3540
3541 { echo "$as_me:$LINENO: checking host system type" >&5
3542 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3543 if test "${ac_cv_host+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   if test "x$host_alias" = x; then
3547   ac_cv_host=$ac_cv_build
3548 else
3549   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3550     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3551 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3552    { (exit 1); exit 1; }; }
3553 fi
3554
3555 fi
3556 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3557 echo "${ECHO_T}$ac_cv_host" >&6; }
3558 case $ac_cv_host in
3559 *-*-*) ;;
3560 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3561 echo "$as_me: error: invalid value of canonical host" >&2;}
3562    { (exit 1); exit 1; }; };;
3563 esac
3564 host=$ac_cv_host
3565 ac_save_IFS=$IFS; IFS='-'
3566 set x $ac_cv_host
3567 shift
3568 host_cpu=$1
3569 host_vendor=$2
3570 shift; shift
3571 # Remember, the first character of IFS is used to create $*,
3572 # except with old shells:
3573 host_os=$*
3574 IFS=$ac_save_IFS
3575 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3576
3577
3578 { echo "$as_me:$LINENO: checking target system type" >&5
3579 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3580 if test "${ac_cv_target+set}" = set; then
3581   echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583   if test "x$target_alias" = x; then
3584   ac_cv_target=$ac_cv_host
3585 else
3586   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3587     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3588 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3589    { (exit 1); exit 1; }; }
3590 fi
3591
3592 fi
3593 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3594 echo "${ECHO_T}$ac_cv_target" >&6; }
3595 case $ac_cv_target in
3596 *-*-*) ;;
3597 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3598 echo "$as_me: error: invalid value of canonical target" >&2;}
3599    { (exit 1); exit 1; }; };;
3600 esac
3601 target=$ac_cv_target
3602 ac_save_IFS=$IFS; IFS='-'
3603 set x $ac_cv_target
3604 shift
3605 target_cpu=$1
3606 target_vendor=$2
3607 shift; shift
3608 # Remember, the first character of IFS is used to create $*,
3609 # except with old shells:
3610 target_os=$*
3611 IFS=$ac_save_IFS
3612 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3613
3614
3615 # The aliases save the names the user supplied, while $host etc.
3616 # will get canonicalized.
3617 test -n "$target_alias" &&
3618   test "$program_prefix$program_suffix$program_transform_name" = \
3619     NONENONEs,x,x, &&
3620   program_prefix=${target_alias}-
3621
3622 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3623 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3624 if test "${llvm_cv_os_type+set}" = set; then
3625   echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627   case $host in
3628   *-*-aix*)
3629     llvm_cv_link_all_option="-Wl,--whole-archive"
3630     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3631     llvm_cv_os_type="AIX"
3632     llvm_cv_platform_type="Unix" ;;
3633   *-*-irix*)
3634     llvm_cv_link_all_option="-Wl,--whole-archive"
3635     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3636     llvm_cv_os_type="IRIX"
3637     llvm_cv_platform_type="Unix" ;;
3638   *-*-cygwin*)
3639     llvm_cv_link_all_option="-Wl,--whole-archive"
3640     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3641     llvm_cv_os_type="Cygwin"
3642     llvm_cv_platform_type="Unix" ;;
3643   *-*-darwin*)
3644     llvm_cv_link_all_option="-Wl,-all_load"
3645     llvm_cv_no_link_all_option="-Wl,-noall_load"
3646     llvm_cv_os_type="Darwin"
3647     llvm_cv_platform_type="Unix" ;;
3648   *-*-minix*)
3649     llvm_cv_link_all_option="-Wl,-all_load"
3650     llvm_cv_no_link_all_option="-Wl,-noall_load"
3651     llvm_cv_os_type="Minix"
3652     llvm_cv_platform_type="Unix" ;;
3653   *-*-freebsd* | *-*-kfreebsd-gnu)
3654     llvm_cv_link_all_option="-Wl,--whole-archive"
3655     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3656     llvm_cv_os_type="FreeBSD"
3657     llvm_cv_platform_type="Unix" ;;
3658   *-*-openbsd*)
3659     llvm_cv_link_all_option="-Wl,--whole-archive"
3660     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3661     llvm_cv_os_type="OpenBSD"
3662     llvm_cv_platform_type="Unix" ;;
3663   *-*-netbsd*)
3664     llvm_cv_link_all_option="-Wl,--whole-archive"
3665     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3666     llvm_cv_os_type="NetBSD"
3667     llvm_cv_platform_type="Unix" ;;
3668   *-*-dragonfly*)
3669     llvm_cv_link_all_option="-Wl,--whole-archive"
3670     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3671     llvm_cv_os_type="DragonFly"
3672     llvm_cv_platform_type="Unix" ;;
3673   *-*-hpux*)
3674     llvm_cv_link_all_option="-Wl,--whole-archive"
3675     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3676     llvm_cv_os_type="HP-UX"
3677     llvm_cv_platform_type="Unix" ;;
3678   *-*-interix*)
3679     llvm_cv_link_all_option="-Wl,--whole-archive"
3680     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3681     llvm_cv_os_type="Interix"
3682     llvm_cv_platform_type="Unix" ;;
3683   *-*-linux*)
3684     llvm_cv_link_all_option="-Wl,--whole-archive"
3685     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3686     llvm_cv_os_type="Linux"
3687     llvm_cv_platform_type="Unix" ;;
3688   *-*-gnu*)
3689     llvm_cv_link_all_option="-Wl,--whole-archive"
3690     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3691     llvm_cv_os_type="GNU"
3692     llvm_cv_platform_type="Unix" ;;
3693   *-*-solaris*)
3694     llvm_cv_link_all_option="-Wl,-z,allextract"
3695     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3696     llvm_cv_os_type="SunOS"
3697     llvm_cv_platform_type="Unix" ;;
3698   *-*-auroraux*)
3699     llvm_cv_link_all_option="-Wl,-z,allextract"
3700     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3701     llvm_cv_os_type="AuroraUX"
3702     llvm_cv_platform_type="Unix" ;;
3703   *-*-win32*)
3704     llvm_cv_link_all_option="-Wl,--whole-archive"
3705     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3706     llvm_cv_os_type="Win32"
3707     llvm_cv_platform_type="Win32" ;;
3708   *-*-mingw*)
3709     llvm_cv_link_all_option="-Wl,--whole-archive"
3710     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3711     llvm_cv_os_type="MingW"
3712     llvm_cv_platform_type="Win32" ;;
3713   *-*-haiku*)
3714     llvm_cv_link_all_option="-Wl,--whole-archive"
3715     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716     llvm_cv_os_type="Haiku"
3717     llvm_cv_platform_type="Unix" ;;
3718   *-unknown-eabi*)
3719     llvm_cv_link_all_option="-Wl,--whole-archive"
3720     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721     llvm_cv_os_type="Freestanding"
3722     llvm_cv_platform_type="Unix" ;;
3723   *-unknown-elf*)
3724     llvm_cv_link_all_option="-Wl,--whole-archive"
3725     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726     llvm_cv_os_type="Freestanding"
3727     llvm_cv_platform_type="Unix" ;;
3728   *)
3729     llvm_cv_link_all_option=""
3730     llvm_cv_no_link_all_option=""
3731     llvm_cv_os_type="Unknown"
3732     llvm_cv_platform_type="Unknown" ;;
3733 esac
3734 fi
3735 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3736 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3737
3738 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3739 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3740 if test "${llvm_cv_target_os_type+set}" = set; then
3741   echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743   case $target in
3744   *-*-aix*)
3745     llvm_cv_target_os_type="AIX" ;;
3746   *-*-irix*)
3747     llvm_cv_target_os_type="IRIX" ;;
3748   *-*-cygwin*)
3749     llvm_cv_target_os_type="Cygwin" ;;
3750   *-*-darwin*)
3751     llvm_cv_target_os_type="Darwin" ;;
3752   *-*-minix*)
3753     llvm_cv_target_os_type="Minix" ;;
3754   *-*-freebsd* | *-*-kfreebsd-gnu)
3755     llvm_cv_target_os_type="FreeBSD" ;;
3756   *-*-openbsd*)
3757     llvm_cv_target_os_type="OpenBSD" ;;
3758   *-*-netbsd*)
3759     llvm_cv_target_os_type="NetBSD" ;;
3760   *-*-dragonfly*)
3761     llvm_cv_target_os_type="DragonFly" ;;
3762   *-*-hpux*)
3763     llvm_cv_target_os_type="HP-UX" ;;
3764   *-*-interix*)
3765     llvm_cv_target_os_type="Interix" ;;
3766   *-*-linux*)
3767     llvm_cv_target_os_type="Linux" ;;
3768   *-*-gnu*)
3769     llvm_cv_target_os_type="GNU" ;;
3770   *-*-solaris*)
3771     llvm_cv_target_os_type="SunOS" ;;
3772   *-*-auroraux*)
3773     llvm_cv_target_os_type="AuroraUX" ;;
3774   *-*-win32*)
3775     llvm_cv_target_os_type="Win32" ;;
3776   *-*-mingw*)
3777     llvm_cv_target_os_type="MingW" ;;
3778   *-*-haiku*)
3779     llvm_cv_target_os_type="Haiku" ;;
3780   *-*-rtems*)
3781     llvm_cv_target_os_type="RTEMS" ;;
3782   *-*-nacl*)
3783     llvm_cv_target_os_type="NativeClient" ;;
3784   *-unknown-eabi*)
3785     llvm_cv_target_os_type="Freestanding" ;;
3786   *)
3787     llvm_cv_target_os_type="Unknown" ;;
3788 esac
3789 fi
3790 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3791 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3792
3793 if test "$llvm_cv_os_type" = "Unknown" ; then
3794   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3795 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3796    { (exit 1); exit 1; }; }
3797 fi
3798
3799 OS=$llvm_cv_os_type
3800
3801 HOST_OS=$llvm_cv_os_type
3802
3803 TARGET_OS=$llvm_cv_target_os_type
3804
3805
3806 LINKALL=$llvm_cv_link_all_option
3807
3808 NOLINKALL=$llvm_cv_no_link_all_option
3809
3810
3811 case $llvm_cv_platform_type in
3812   Unix)
3813
3814 cat >>confdefs.h <<\_ACEOF
3815 #define LLVM_ON_UNIX 1
3816 _ACEOF
3817
3818     LLVM_ON_UNIX=1
3819
3820     LLVM_ON_WIN32=0
3821
3822     ;;
3823   Win32)
3824
3825 cat >>confdefs.h <<\_ACEOF
3826 #define LLVM_ON_WIN32 1
3827 _ACEOF
3828
3829     LLVM_ON_UNIX=0
3830
3831     LLVM_ON_WIN32=1
3832
3833     ;;
3834 esac
3835
3836 { echo "$as_me:$LINENO: checking target architecture" >&5
3837 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3838 if test "${llvm_cv_target_arch+set}" = set; then
3839   echo $ECHO_N "(cached) $ECHO_C" >&6
3840 else
3841   case $target in
3842   i?86-*)                 llvm_cv_target_arch="x86" ;;
3843   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3844   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3845   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3846   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3847   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
3848   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
3849   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
3850   xcore-*)                llvm_cv_target_arch="XCore" ;;
3851   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3852   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3853   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3854   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3855   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
3856   *)                      llvm_cv_target_arch="Unknown" ;;
3857 esac
3858 fi
3859 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3860 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3861
3862 if test "$llvm_cv_target_arch" = "Unknown" ; then
3863   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3864 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3865 fi
3866
3867 # Determine the LLVM native architecture for the target
3868 case "$llvm_cv_target_arch" in
3869     x86)     LLVM_NATIVE_ARCH="X86" ;;
3870     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3871     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3872 esac
3873
3874 ARCH=$llvm_cv_target_arch
3875
3876
3877
3878
3879 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3880 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3881 if test "${ac_cv_path_GREP+set}" = set; then
3882   echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884   # Extract the first word of "grep ggrep" to use in msg output
3885 if test -z "$GREP"; then
3886 set dummy grep ggrep; ac_prog_name=$2
3887 if test "${ac_cv_path_GREP+set}" = set; then
3888   echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890   ac_path_GREP_found=false
3891 # Loop through the user's path and test for each of PROGNAME-LIST
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3894 do
3895   IFS=$as_save_IFS
3896   test -z "$as_dir" && as_dir=.
3897   for ac_prog in grep ggrep; do
3898   for ac_exec_ext in '' $ac_executable_extensions; do
3899     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3900     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3901     # Check for GNU ac_path_GREP and select it if it is found.
3902   # Check for GNU $ac_path_GREP
3903 case `"$ac_path_GREP" --version 2>&1` in
3904 *GNU*)
3905   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3906 *)
3907   ac_count=0
3908   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3909   while :
3910   do
3911     cat "conftest.in" "conftest.in" >"conftest.tmp"
3912     mv "conftest.tmp" "conftest.in"
3913     cp "conftest.in" "conftest.nl"
3914     echo 'GREP' >> "conftest.nl"
3915     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3916     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3917     ac_count=`expr $ac_count + 1`
3918     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3919       # Best one so far, save it but keep looking for a better one
3920       ac_cv_path_GREP="$ac_path_GREP"
3921       ac_path_GREP_max=$ac_count
3922     fi
3923     # 10*(2^10) chars as input seems more than enough
3924     test $ac_count -gt 10 && break
3925   done
3926   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3927 esac
3928
3929
3930     $ac_path_GREP_found && break 3
3931   done
3932 done
3933
3934 done
3935 IFS=$as_save_IFS
3936
3937
3938 fi
3939
3940 GREP="$ac_cv_path_GREP"
3941 if test -z "$GREP"; then
3942   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3943 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3944    { (exit 1); exit 1; }; }
3945 fi
3946
3947 else
3948   ac_cv_path_GREP=$GREP
3949 fi
3950
3951
3952 fi
3953 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3954 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3955  GREP="$ac_cv_path_GREP"
3956
3957
3958 { echo "$as_me:$LINENO: checking for egrep" >&5
3959 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3960 if test "${ac_cv_path_EGREP+set}" = set; then
3961   echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3964    then ac_cv_path_EGREP="$GREP -E"
3965    else
3966      # Extract the first word of "egrep" to use in msg output
3967 if test -z "$EGREP"; then
3968 set dummy egrep; ac_prog_name=$2
3969 if test "${ac_cv_path_EGREP+set}" = set; then
3970   echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972   ac_path_EGREP_found=false
3973 # Loop through the user's path and test for each of PROGNAME-LIST
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3976 do
3977   IFS=$as_save_IFS
3978   test -z "$as_dir" && as_dir=.
3979   for ac_prog in egrep; do
3980   for ac_exec_ext in '' $ac_executable_extensions; do
3981     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3982     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3983     # Check for GNU ac_path_EGREP and select it if it is found.
3984   # Check for GNU $ac_path_EGREP
3985 case `"$ac_path_EGREP" --version 2>&1` in
3986 *GNU*)
3987   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3988 *)
3989   ac_count=0
3990   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3991   while :
3992   do
3993     cat "conftest.in" "conftest.in" >"conftest.tmp"
3994     mv "conftest.tmp" "conftest.in"
3995     cp "conftest.in" "conftest.nl"
3996     echo 'EGREP' >> "conftest.nl"
3997     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3998     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3999     ac_count=`expr $ac_count + 1`
4000     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4001       # Best one so far, save it but keep looking for a better one
4002       ac_cv_path_EGREP="$ac_path_EGREP"
4003       ac_path_EGREP_max=$ac_count
4004     fi
4005     # 10*(2^10) chars as input seems more than enough
4006     test $ac_count -gt 10 && break
4007   done
4008   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4009 esac
4010
4011
4012     $ac_path_EGREP_found && break 3
4013   done
4014 done
4015
4016 done
4017 IFS=$as_save_IFS
4018
4019
4020 fi
4021
4022 EGREP="$ac_cv_path_EGREP"
4023 if test -z "$EGREP"; then
4024   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4025 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4026    { (exit 1); exit 1; }; }
4027 fi
4028
4029 else
4030   ac_cv_path_EGREP=$EGREP
4031 fi
4032
4033
4034    fi
4035 fi
4036 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4037 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4038  EGREP="$ac_cv_path_EGREP"
4039
4040
4041 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4043 if test "${ac_cv_header_stdc+set}" = set; then
4044   echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046   cat >conftest.$ac_ext <<_ACEOF
4047 /* confdefs.h.  */
4048 _ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h.  */
4052 #include <stdlib.h>
4053 #include <stdarg.h>
4054 #include <string.h>
4055 #include <float.h>
4056
4057 int
4058 main ()
4059 {
4060
4061   ;
4062   return 0;
4063 }
4064 _ACEOF
4065 rm -f conftest.$ac_objext
4066 if { (ac_try="$ac_compile"
4067 case "(($ac_try" in
4068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069   *) ac_try_echo=$ac_try;;
4070 esac
4071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072   (eval "$ac_compile") 2>conftest.er1
4073   ac_status=$?
4074   grep -v '^ *+' conftest.er1 >conftest.err
4075   rm -f conftest.er1
4076   cat conftest.err >&5
4077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078   (exit $ac_status); } &&
4079          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4080   { (case "(($ac_try" in
4081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082   *) ac_try_echo=$ac_try;;
4083 esac
4084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085   (eval "$ac_try") 2>&5
4086   ac_status=$?
4087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088   (exit $ac_status); }; } &&
4089          { ac_try='test -s conftest.$ac_objext'
4090   { (case "(($ac_try" in
4091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092   *) ac_try_echo=$ac_try;;
4093 esac
4094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4095   (eval "$ac_try") 2>&5
4096   ac_status=$?
4097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098   (exit $ac_status); }; }; then
4099   ac_cv_header_stdc=yes
4100 else
4101   echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104         ac_cv_header_stdc=no
4105 fi
4106
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108
4109 if test $ac_cv_header_stdc = yes; then
4110   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4111   cat >conftest.$ac_ext <<_ACEOF
4112 /* confdefs.h.  */
4113 _ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h.  */
4117 #include <string.h>
4118
4119 _ACEOF
4120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4121   $EGREP "memchr" >/dev/null 2>&1; then
4122   :
4123 else
4124   ac_cv_header_stdc=no
4125 fi
4126 rm -f conftest*
4127
4128 fi
4129
4130 if test $ac_cv_header_stdc = yes; then
4131   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4132   cat >conftest.$ac_ext <<_ACEOF
4133 /* confdefs.h.  */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h.  */
4138 #include <stdlib.h>
4139
4140 _ACEOF
4141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4142   $EGREP "free" >/dev/null 2>&1; then
4143   :
4144 else
4145   ac_cv_header_stdc=no
4146 fi
4147 rm -f conftest*
4148
4149 fi
4150
4151 if test $ac_cv_header_stdc = yes; then
4152   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4153   if test "$cross_compiling" = yes; then
4154   :
4155 else
4156   cat >conftest.$ac_ext <<_ACEOF
4157 /* confdefs.h.  */
4158 _ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h.  */
4162 #include <ctype.h>
4163 #include <stdlib.h>
4164 #if ((' ' & 0x0FF) == 0x020)
4165 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4166 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4167 #else
4168 # define ISLOWER(c) \
4169                    (('a' <= (c) && (c) <= 'i') \
4170                      || ('j' <= (c) && (c) <= 'r') \
4171                      || ('s' <= (c) && (c) <= 'z'))
4172 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4173 #endif
4174
4175 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4176 int
4177 main ()
4178 {
4179   int i;
4180   for (i = 0; i < 256; i++)
4181     if (XOR (islower (i), ISLOWER (i))
4182         || toupper (i) != TOUPPER (i))
4183       return 2;
4184   return 0;
4185 }
4186 _ACEOF
4187 rm -f conftest$ac_exeext
4188 if { (ac_try="$ac_link"
4189 case "(($ac_try" in
4190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191   *) ac_try_echo=$ac_try;;
4192 esac
4193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4194   (eval "$ac_link") 2>&5
4195   ac_status=$?
4196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4198   { (case "(($ac_try" in
4199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200   *) ac_try_echo=$ac_try;;
4201 esac
4202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203   (eval "$ac_try") 2>&5
4204   ac_status=$?
4205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206   (exit $ac_status); }; }; then
4207   :
4208 else
4209   echo "$as_me: program exited with status $ac_status" >&5
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4212
4213 ( exit $ac_status )
4214 ac_cv_header_stdc=no
4215 fi
4216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4217 fi
4218
4219
4220 fi
4221 fi
4222 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4223 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4224 if test $ac_cv_header_stdc = yes; then
4225
4226 cat >>confdefs.h <<\_ACEOF
4227 #define STDC_HEADERS 1
4228 _ACEOF
4229
4230 fi
4231
4232 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4243                   inttypes.h stdint.h unistd.h
4244 do
4245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4249   echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251   cat >conftest.$ac_ext <<_ACEOF
4252 /* confdefs.h.  */
4253 _ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h.  */
4257 $ac_includes_default
4258
4259 #include <$ac_header>
4260 _ACEOF
4261 rm -f conftest.$ac_objext
4262 if { (ac_try="$ac_compile"
4263 case "(($ac_try" in
4264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265   *) ac_try_echo=$ac_try;;
4266 esac
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268   (eval "$ac_compile") 2>conftest.er1
4269   ac_status=$?
4270   grep -v '^ *+' conftest.er1 >conftest.err
4271   rm -f conftest.er1
4272   cat conftest.err >&5
4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); } &&
4275          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4276   { (case "(($ac_try" in
4277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278   *) ac_try_echo=$ac_try;;
4279 esac
4280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281   (eval "$ac_try") 2>&5
4282   ac_status=$?
4283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284   (exit $ac_status); }; } &&
4285          { ac_try='test -s conftest.$ac_objext'
4286   { (case "(($ac_try" in
4287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288   *) ac_try_echo=$ac_try;;
4289 esac
4290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291   (eval "$ac_try") 2>&5
4292   ac_status=$?
4293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294   (exit $ac_status); }; }; then
4295   eval "$as_ac_Header=yes"
4296 else
4297   echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4299
4300         eval "$as_ac_Header=no"
4301 fi
4302
4303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 fi
4305 ac_res=`eval echo '${'$as_ac_Header'}'`
4306                { echo "$as_me:$LINENO: result: $ac_res" >&5
4307 echo "${ECHO_T}$ac_res" >&6; }
4308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4309   cat >>confdefs.h <<_ACEOF
4310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4311 _ACEOF
4312
4313 fi
4314
4315 done
4316
4317
4318 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4319 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4320 if test "${ac_cv_c_bigendian+set}" = set; then
4321   echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323   # See if sys/param.h defines the BYTE_ORDER macro.
4324 cat >conftest.$ac_ext <<_ACEOF
4325 /* confdefs.h.  */
4326 _ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h.  */
4330 #include <sys/types.h>
4331 #include <sys/param.h>
4332
4333 int
4334 main ()
4335 {
4336 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4337  bogus endian macros
4338 #endif
4339
4340   ;
4341   return 0;
4342 }
4343 _ACEOF
4344 rm -f conftest.$ac_objext
4345 if { (ac_try="$ac_compile"
4346 case "(($ac_try" in
4347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348   *) ac_try_echo=$ac_try;;
4349 esac
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351   (eval "$ac_compile") 2>conftest.er1
4352   ac_status=$?
4353   grep -v '^ *+' conftest.er1 >conftest.err
4354   rm -f conftest.er1
4355   cat conftest.err >&5
4356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357   (exit $ac_status); } &&
4358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4359   { (case "(($ac_try" in
4360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361   *) ac_try_echo=$ac_try;;
4362 esac
4363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364   (eval "$ac_try") 2>&5
4365   ac_status=$?
4366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367   (exit $ac_status); }; } &&
4368          { ac_try='test -s conftest.$ac_objext'
4369   { (case "(($ac_try" in
4370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371   *) ac_try_echo=$ac_try;;
4372 esac
4373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374   (eval "$ac_try") 2>&5
4375   ac_status=$?
4376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); }; }; then
4378   # It does; now see whether it defined to BIG_ENDIAN or not.
4379 cat >conftest.$ac_ext <<_ACEOF
4380 /* confdefs.h.  */
4381 _ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h.  */
4385 #include <sys/types.h>
4386 #include <sys/param.h>
4387
4388 int
4389 main ()
4390 {
4391 #if BYTE_ORDER != BIG_ENDIAN
4392  not big endian
4393 #endif
4394
4395   ;
4396   return 0;
4397 }
4398 _ACEOF
4399 rm -f conftest.$ac_objext
4400 if { (ac_try="$ac_compile"
4401 case "(($ac_try" in
4402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403   *) ac_try_echo=$ac_try;;
4404 esac
4405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406   (eval "$ac_compile") 2>conftest.er1
4407   ac_status=$?
4408   grep -v '^ *+' conftest.er1 >conftest.err
4409   rm -f conftest.er1
4410   cat conftest.err >&5
4411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412   (exit $ac_status); } &&
4413          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4414   { (case "(($ac_try" in
4415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416   *) ac_try_echo=$ac_try;;
4417 esac
4418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4419   (eval "$ac_try") 2>&5
4420   ac_status=$?
4421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422   (exit $ac_status); }; } &&
4423          { ac_try='test -s conftest.$ac_objext'
4424   { (case "(($ac_try" in
4425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426   *) ac_try_echo=$ac_try;;
4427 esac
4428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429   (eval "$ac_try") 2>&5
4430   ac_status=$?
4431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432   (exit $ac_status); }; }; then
4433   ac_cv_c_bigendian=yes
4434 else
4435   echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4437
4438         ac_cv_c_bigendian=no
4439 fi
4440
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4442 else
4443   echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4445
4446         # It does not; compile a test program.
4447 if test "$cross_compiling" = yes; then
4448   # try to guess the endianness by grepping values into an object file
4449   ac_cv_c_bigendian=unknown
4450   cat >conftest.$ac_ext <<_ACEOF
4451 /* confdefs.h.  */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h.  */
4456 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4457 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4458 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4459 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4460 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4461 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4462 int
4463 main ()
4464 {
4465  _ascii (); _ebcdic ();
4466   ;
4467   return 0;
4468 }
4469 _ACEOF
4470 rm -f conftest.$ac_objext
4471 if { (ac_try="$ac_compile"
4472 case "(($ac_try" in
4473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474   *) ac_try_echo=$ac_try;;
4475 esac
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477   (eval "$ac_compile") 2>conftest.er1
4478   ac_status=$?
4479   grep -v '^ *+' conftest.er1 >conftest.err
4480   rm -f conftest.er1
4481   cat conftest.err >&5
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); } &&
4484          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4485   { (case "(($ac_try" in
4486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487   *) ac_try_echo=$ac_try;;
4488 esac
4489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4490   (eval "$ac_try") 2>&5
4491   ac_status=$?
4492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493   (exit $ac_status); }; } &&
4494          { ac_try='test -s conftest.$ac_objext'
4495   { (case "(($ac_try" in
4496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497   *) ac_try_echo=$ac_try;;
4498 esac
4499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4500   (eval "$ac_try") 2>&5
4501   ac_status=$?
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); }; }; then
4504   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4505   ac_cv_c_bigendian=yes
4506 fi
4507 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4508   if test "$ac_cv_c_bigendian" = unknown; then
4509     ac_cv_c_bigendian=no
4510   else
4511     # finding both strings is unlikely to happen, but who knows?
4512     ac_cv_c_bigendian=unknown
4513   fi
4514 fi
4515 else
4516   echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4518
4519
4520 fi
4521
4522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523 else
4524   cat >conftest.$ac_ext <<_ACEOF
4525 /* confdefs.h.  */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h.  */
4530 $ac_includes_default
4531 int
4532 main ()
4533 {
4534
4535   /* Are we little or big endian?  From Harbison&Steele.  */
4536   union
4537   {
4538     long int l;
4539     char c[sizeof (long int)];
4540   } u;
4541   u.l = 1;
4542   return u.c[sizeof (long int) - 1] == 1;
4543
4544   ;
4545   return 0;
4546 }
4547 _ACEOF
4548 rm -f conftest$ac_exeext
4549 if { (ac_try="$ac_link"
4550 case "(($ac_try" in
4551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4552   *) ac_try_echo=$ac_try;;
4553 esac
4554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4555   (eval "$ac_link") 2>&5
4556   ac_status=$?
4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4559   { (case "(($ac_try" in
4560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561   *) ac_try_echo=$ac_try;;
4562 esac
4563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4564   (eval "$ac_try") 2>&5
4565   ac_status=$?
4566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567   (exit $ac_status); }; }; then
4568   ac_cv_c_bigendian=no
4569 else
4570   echo "$as_me: program exited with status $ac_status" >&5
4571 echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4573
4574 ( exit $ac_status )
4575 ac_cv_c_bigendian=yes
4576 fi
4577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4578 fi
4579
4580
4581 fi
4582
4583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4584 fi
4585 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4586 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4587 case $ac_cv_c_bigendian in
4588   yes)
4589     ENDIAN=big
4590  ;;
4591   no)
4592     ENDIAN=little
4593  ;;
4594   *)
4595     { { echo "$as_me:$LINENO: error: unknown endianness
4596 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4597 echo "$as_me: error: unknown endianness
4598 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4599    { (exit 1); exit 1; }; } ;;
4600 esac
4601
4602
4603 if test "$cross_compiling" = yes; then
4604   LLVM_CROSS_COMPILING=1
4605
4606
4607 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4608 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4609 if test "${ac_cv_build_exeext+set}" = set; then
4610   echo $ECHO_N "(cached) $ECHO_C" >&6
4611 else
4612   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4613   ac_cv_build_exeext=.exe
4614 else
4615   ac_build_prefix=${build_alias}-
4616
4617   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4618 set dummy ${ac_build_prefix}gcc; ac_word=$2
4619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4621 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4622   echo $ECHO_N "(cached) $ECHO_C" >&6
4623 else
4624   if test -n "$BUILD_CC"; then
4625   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4626 else
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH
4629 do
4630   IFS=$as_save_IFS
4631   test -z "$as_dir" && as_dir=.
4632   for ac_exec_ext in '' $ac_executable_extensions; do
4633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4634     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4636     break 2
4637   fi
4638 done
4639 done
4640 IFS=$as_save_IFS
4641
4642 fi
4643 fi
4644 BUILD_CC=$ac_cv_prog_BUILD_CC
4645 if test -n "$BUILD_CC"; then
4646   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4647 echo "${ECHO_T}$BUILD_CC" >&6; }
4648 else
4649   { echo "$as_me:$LINENO: result: no" >&5
4650 echo "${ECHO_T}no" >&6; }
4651 fi
4652
4653
4654   if test -z "$BUILD_CC"; then
4655      # Extract the first word of "gcc", so it can be a program name with args.
4656 set dummy gcc; ac_word=$2
4657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662   if test -n "$BUILD_CC"; then
4663   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4664 else
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH
4667 do
4668   IFS=$as_save_IFS
4669   test -z "$as_dir" && as_dir=.
4670   for ac_exec_ext in '' $ac_executable_extensions; do
4671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4672     ac_cv_prog_BUILD_CC="gcc"
4673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674     break 2
4675   fi
4676 done
4677 done
4678 IFS=$as_save_IFS
4679
4680 fi
4681 fi
4682 BUILD_CC=$ac_cv_prog_BUILD_CC
4683 if test -n "$BUILD_CC"; then
4684   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4685 echo "${ECHO_T}$BUILD_CC" >&6; }
4686 else
4687   { echo "$as_me:$LINENO: result: no" >&5
4688 echo "${ECHO_T}no" >&6; }
4689 fi
4690
4691
4692      if test -z "$BUILD_CC"; then
4693        # Extract the first word of "cc", so it can be a program name with args.
4694 set dummy cc; ac_word=$2
4695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4698   echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700   if test -n "$BUILD_CC"; then
4701   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4702 else
4703   ac_prog_rejected=no
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4706 do
4707   IFS=$as_save_IFS
4708   test -z "$as_dir" && as_dir=.
4709   for ac_exec_ext in '' $ac_executable_extensions; do
4710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4711     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4712        ac_prog_rejected=yes
4713        continue
4714      fi
4715     ac_cv_prog_BUILD_CC="cc"
4716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717     break 2
4718   fi
4719 done
4720 done
4721 IFS=$as_save_IFS
4722
4723 if test $ac_prog_rejected = yes; then
4724   # We found a bogon in the path, so make sure we never use it.
4725   set dummy $ac_cv_prog_BUILD_CC
4726   shift
4727   if test $# != 0; then
4728     # We chose a different compiler from the bogus one.
4729     # However, it has the same basename, so the bogon will be chosen
4730     # first if we set BUILD_CC to just the basename; use the full file name.
4731     shift
4732     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4733   fi
4734 fi
4735 fi
4736 fi
4737 BUILD_CC=$ac_cv_prog_BUILD_CC
4738 if test -n "$BUILD_CC"; then
4739   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4740 echo "${ECHO_T}$BUILD_CC" >&6; }
4741 else
4742   { echo "$as_me:$LINENO: result: no" >&5
4743 echo "${ECHO_T}no" >&6; }
4744 fi
4745
4746
4747      fi
4748   fi
4749   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4750 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4751    { (exit 1); exit 1; }; }
4752   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4753   rm -f conftest*
4754   echo 'int main () { return 0; }' > conftest.$ac_ext
4755   ac_cv_build_exeext=
4756   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4757   (eval $ac_build_link) 2>&5
4758   ac_status=$?
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); }; then
4761     for file in conftest.*; do
4762       case $file in
4763       *.c | *.o | *.obj | *.dSYM) ;;
4764       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4765       esac
4766     done
4767   else
4768     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4769 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4770    { (exit 1); exit 1; }; }
4771   fi
4772   rm -f conftest*
4773   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4774 fi
4775 fi
4776
4777 BUILD_EXEEXT=""
4778 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4779 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4780 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4781 ac_build_exeext=$BUILD_EXEEXT
4782
4783   ac_build_prefix=${build_alias}-
4784   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4785 set dummy ${ac_build_prefix}g++; ac_word=$2
4786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4788 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4789   echo $ECHO_N "(cached) $ECHO_C" >&6
4790 else
4791   if test -n "$BUILD_CXX"; then
4792   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4793 else
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH
4796 do
4797   IFS=$as_save_IFS
4798   test -z "$as_dir" && as_dir=.
4799   for ac_exec_ext in '' $ac_executable_extensions; do
4800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4801     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4803     break 2
4804   fi
4805 done
4806 done
4807 IFS=$as_save_IFS
4808
4809 fi
4810 fi
4811 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4812 if test -n "$BUILD_CXX"; then
4813   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4814 echo "${ECHO_T}$BUILD_CXX" >&6; }
4815 else
4816   { echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6; }
4818 fi
4819
4820
4821   if test -z "$BUILD_CXX"; then
4822      # Extract the first word of "g++", so it can be a program name with args.
4823 set dummy g++; ac_word=$2
4824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4826 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4827   echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829   if test -n "$BUILD_CXX"; then
4830   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4831 else
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4834 do
4835   IFS=$as_save_IFS
4836   test -z "$as_dir" && as_dir=.
4837   for ac_exec_ext in '' $ac_executable_extensions; do
4838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4839     ac_cv_prog_BUILD_CXX="g++"
4840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841     break 2
4842   fi
4843 done
4844 done
4845 IFS=$as_save_IFS
4846
4847 fi
4848 fi
4849 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4850 if test -n "$BUILD_CXX"; then
4851   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4852 echo "${ECHO_T}$BUILD_CXX" >&6; }
4853 else
4854   { echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6; }
4856 fi
4857
4858
4859      if test -z "$BUILD_CXX"; then
4860        # Extract the first word of "c++", so it can be a program name with args.
4861 set dummy c++; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4865   echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867   if test -n "$BUILD_CXX"; then
4868   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4869 else
4870   ac_prog_rejected=no
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 for as_dir in $PATH
4873 do
4874   IFS=$as_save_IFS
4875   test -z "$as_dir" && as_dir=.
4876   for ac_exec_ext in '' $ac_executable_extensions; do
4877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4878     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4879        ac_prog_rejected=yes
4880        continue
4881      fi
4882     ac_cv_prog_BUILD_CXX="c++"
4883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884     break 2
4885   fi
4886 done
4887 done
4888 IFS=$as_save_IFS
4889
4890 if test $ac_prog_rejected = yes; then
4891   # We found a bogon in the path, so make sure we never use it.
4892   set dummy $ac_cv_prog_BUILD_CXX
4893   shift
4894   if test $# != 0; then
4895     # We chose a different compiler from the bogus one.
4896     # However, it has the same basename, so the bogon will be chosen
4897     # first if we set BUILD_CXX to just the basename; use the full file name.
4898     shift
4899     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4900   fi
4901 fi
4902 fi
4903 fi
4904 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4905 if test -n "$BUILD_CXX"; then
4906   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4907 echo "${ECHO_T}$BUILD_CXX" >&6; }
4908 else
4909   { echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6; }
4911 fi
4912
4913
4914      fi
4915   fi
4916 else
4917   LLVM_CROSS_COMPILING=0
4918
4919 fi
4920
4921 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4922   cvsbuild="yes"
4923   optimize="no"
4924   CVSBUILD=CVSBUILD=1
4925
4926 else
4927   cvsbuild="no"
4928   optimize="yes"
4929 fi
4930
4931
4932 # Check whether --enable-libcpp was given.
4933 if test "${enable_libcpp+set}" = set; then
4934   enableval=$enable_libcpp;
4935 else
4936   enableval=default
4937 fi
4938
4939 case "$enableval" in
4940   yes) ENABLE_LIBCPP=1
4941  ;;
4942   no)  ENABLE_LIBCPP=0
4943  ;;
4944   default) ENABLE_LIBCPP=0
4945 ;;
4946   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4947 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4948    { (exit 1); exit 1; }; } ;;
4949 esac
4950
4951 # Check whether --enable-cxx11 was given.
4952 if test "${enable_cxx11+set}" = set; then
4953   enableval=$enable_cxx11;
4954 else
4955   enableval=default
4956 fi
4957
4958 case "$enableval" in
4959   yes) ENABLE_CXX11=1
4960  ;;
4961   no)  ENABLE_CXX11=0
4962  ;;
4963   default) ENABLE_CXX11=0
4964 ;;
4965   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4966 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4967    { (exit 1); exit 1; }; } ;;
4968 esac
4969
4970 # Check whether --enable-optimized was given.
4971 if test "${enable_optimized+set}" = set; then
4972   enableval=$enable_optimized;
4973 else
4974   enableval=$optimize
4975 fi
4976
4977 if test ${enableval} = "no" ; then
4978   ENABLE_OPTIMIZED=
4979
4980 else
4981   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4982
4983 fi
4984
4985 # Check whether --enable-profiling was given.
4986 if test "${enable_profiling+set}" = set; then
4987   enableval=$enable_profiling;
4988 else
4989   enableval="no"
4990 fi
4991
4992 if test ${enableval} = "no" ; then
4993   ENABLE_PROFILING=
4994
4995 else
4996   ENABLE_PROFILING=ENABLE_PROFILING=1
4997
4998 fi
4999
5000 # Check whether --enable-assertions was given.
5001 if test "${enable_assertions+set}" = set; then
5002   enableval=$enable_assertions;
5003 else
5004   enableval="yes"
5005 fi
5006
5007 if test ${enableval} = "yes" ; then
5008   DISABLE_ASSERTIONS=
5009
5010 else
5011   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5012
5013 fi
5014
5015 # Check whether --enable-werror was given.
5016 if test "${enable_werror+set}" = set; then
5017   enableval=$enable_werror;
5018 else
5019   enableval="no"
5020 fi
5021
5022 case "$enableval" in
5023   yes) ENABLE_WERROR=1
5024  ;;
5025   no)  ENABLE_WERROR=0
5026  ;;
5027   default) ENABLE_WERROR=0
5028 ;;
5029   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5030 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5031    { (exit 1); exit 1; }; } ;;
5032 esac
5033
5034 # Check whether --enable-expensive-checks was given.
5035 if test "${enable_expensive_checks+set}" = set; then
5036   enableval=$enable_expensive_checks;
5037 else
5038   enableval="no"
5039 fi
5040
5041 if test ${enableval} = "yes" ; then
5042   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5043
5044   EXPENSIVE_CHECKS=yes
5045
5046 else
5047   ENABLE_EXPENSIVE_CHECKS=
5048
5049   EXPENSIVE_CHECKS=no
5050
5051 fi
5052
5053 # Check whether --enable-debug-runtime was given.
5054 if test "${enable_debug_runtime+set}" = set; then
5055   enableval=$enable_debug_runtime;
5056 else
5057   enableval=no
5058 fi
5059
5060 if test ${enableval} = "no" ; then
5061   DEBUG_RUNTIME=
5062
5063 else
5064   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5065
5066 fi
5067
5068 # Check whether --enable-debug-symbols was given.
5069 if test "${enable_debug_symbols+set}" = set; then
5070   enableval=$enable_debug_symbols;
5071 else
5072   enableval=no
5073 fi
5074
5075 if test ${enableval} = "no" ; then
5076   DEBUG_SYMBOLS=
5077
5078 else
5079   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5080
5081 fi
5082
5083 # Check whether --enable-jit was given.
5084 if test "${enable_jit+set}" = set; then
5085   enableval=$enable_jit;
5086 else
5087   enableval=default
5088 fi
5089
5090 if test ${enableval} = "no"
5091 then
5092   JIT=
5093
5094 else
5095   case "$llvm_cv_target_arch" in
5096     x86)         TARGET_HAS_JIT=1
5097  ;;
5098     Sparc)       TARGET_HAS_JIT=0
5099  ;;
5100     PowerPC)     TARGET_HAS_JIT=1
5101  ;;
5102     x86_64)      TARGET_HAS_JIT=1
5103  ;;
5104     ARM)         TARGET_HAS_JIT=1
5105  ;;
5106     AArch64)     TARGET_HAS_JIT=0
5107  ;;
5108     Mips)        TARGET_HAS_JIT=1
5109  ;;
5110     XCore)       TARGET_HAS_JIT=0
5111  ;;
5112     MSP430)      TARGET_HAS_JIT=0
5113  ;;
5114     Hexagon)     TARGET_HAS_JIT=0
5115  ;;
5116     MBlaze)      TARGET_HAS_JIT=0
5117  ;;
5118     NVPTX)       TARGET_HAS_JIT=0
5119  ;;
5120     SystemZ)     TARGET_HAS_JIT=1
5121  ;;
5122     *)           TARGET_HAS_JIT=0
5123  ;;
5124   esac
5125 fi
5126
5127 # Check whether --enable-docs was given.
5128 if test "${enable_docs+set}" = set; then
5129   enableval=$enable_docs;
5130 else
5131   enableval=default
5132 fi
5133
5134 case "$enableval" in
5135   yes) ENABLE_DOCS=1
5136  ;;
5137   no)  ENABLE_DOCS=0
5138  ;;
5139   default) ENABLE_DOCS=1
5140  ;;
5141   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5142 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5143    { (exit 1); exit 1; }; } ;;
5144 esac
5145
5146 # Check whether --enable-doxygen was given.
5147 if test "${enable_doxygen+set}" = set; then
5148   enableval=$enable_doxygen;
5149 else
5150   enableval=default
5151 fi
5152
5153 case "$enableval" in
5154   yes) ENABLE_DOXYGEN=1
5155  ;;
5156   no)  ENABLE_DOXYGEN=0
5157  ;;
5158   default) ENABLE_DOXYGEN=0
5159  ;;
5160   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5161 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5162    { (exit 1); exit 1; }; } ;;
5163 esac
5164
5165 # Check whether --enable-threads was given.
5166 if test "${enable_threads+set}" = set; then
5167   enableval=$enable_threads;
5168 else
5169   enableval=default
5170 fi
5171
5172 case "$enableval" in
5173   yes) ENABLE_THREADS=1
5174  ;;
5175   no)  ENABLE_THREADS=0
5176  ;;
5177   default) ENABLE_THREADS=1
5178  ;;
5179   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5180 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5181    { (exit 1); exit 1; }; } ;;
5182 esac
5183
5184 cat >>confdefs.h <<_ACEOF
5185 #define ENABLE_THREADS $ENABLE_THREADS
5186 _ACEOF
5187
5188
5189 # Check whether --enable-pthreads was given.
5190 if test "${enable_pthreads+set}" = set; then
5191   enableval=$enable_pthreads;
5192 else
5193   enableval=default
5194 fi
5195
5196 case "$enableval" in
5197   yes) ENABLE_PTHREADS=1
5198  ;;
5199   no)  ENABLE_PTHREADS=0
5200  ;;
5201   default) ENABLE_PTHREADS=1
5202  ;;
5203   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5204 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5205    { (exit 1); exit 1; }; } ;;
5206 esac
5207
5208 # Check whether --enable-pic was given.
5209 if test "${enable_pic+set}" = set; then
5210   enableval=$enable_pic;
5211 else
5212   enableval=default
5213 fi
5214
5215 case "$enableval" in
5216   yes) ENABLE_PIC=1
5217  ;;
5218   no)  ENABLE_PIC=0
5219  ;;
5220   default) ENABLE_PIC=1
5221  ;;
5222   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5223 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5224    { (exit 1); exit 1; }; } ;;
5225 esac
5226
5227 cat >>confdefs.h <<_ACEOF
5228 #define ENABLE_PIC $ENABLE_PIC
5229 _ACEOF
5230
5231
5232 # Check whether --enable-shared was given.
5233 if test "${enable_shared+set}" = set; then
5234   enableval=$enable_shared;
5235 else
5236   enableval=default
5237 fi
5238
5239 case "$enableval" in
5240   yes) ENABLE_SHARED=1
5241  ;;
5242   no)  ENABLE_SHARED=0
5243  ;;
5244   default) ENABLE_SHARED=0
5245  ;;
5246   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5247 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5248    { (exit 1); exit 1; }; } ;;
5249 esac
5250
5251 # Check whether --enable-embed-stdcxx was given.
5252 if test "${enable_embed_stdcxx+set}" = set; then
5253   enableval=$enable_embed_stdcxx;
5254 else
5255   enableval=default
5256 fi
5257
5258 case "$enableval" in
5259   yes) ENABLE_EMBED_STDCXX=1
5260  ;;
5261   no)  ENABLE_EMBED_STDCXX=0
5262  ;;
5263   default) ENABLE_EMBED_STDCXX=1
5264  ;;
5265   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5266 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5267    { (exit 1); exit 1; }; } ;;
5268 esac
5269
5270 # Check whether --enable-timestamps was given.
5271 if test "${enable_timestamps+set}" = set; then
5272   enableval=$enable_timestamps;
5273 else
5274   enableval=default
5275 fi
5276
5277 case "$enableval" in
5278   yes) ENABLE_TIMESTAMPS=1
5279  ;;
5280   no)  ENABLE_TIMESTAMPS=0
5281  ;;
5282   default) ENABLE_TIMESTAMPS=1
5283  ;;
5284   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5285 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5286    { (exit 1); exit 1; }; } ;;
5287 esac
5288
5289 cat >>confdefs.h <<_ACEOF
5290 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5291 _ACEOF
5292
5293
5294 TARGETS_TO_BUILD=""
5295 # Check whether --enable-targets was given.
5296 if test "${enable_targets+set}" = set; then
5297   enableval=$enable_targets;
5298 else
5299   enableval=all
5300 fi
5301
5302 if test "$enableval" = host-only ; then
5303   enableval=host
5304 fi
5305 case "$enableval" in
5306   all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 Hexagon CppBackend MBlaze NVPTX" ;;
5307   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5308       case "$a_target" in
5309         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5310         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5311         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5312         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5313         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5314         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5315         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5316         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5317         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5318         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5319         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5320         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5321         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5322         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5323         host) case "$llvm_cv_target_arch" in
5324             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5325             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5326             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5327             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5328             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5329             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5330             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5331             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5332             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5333             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5334             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5335             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5336             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5337             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5338 echo "$as_me: error: Can not set target to build" >&2;}
5339    { (exit 1); exit 1; }; } ;;
5340           esac ;;
5341         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5342 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5343    { (exit 1); exit 1; }; } ;;
5344       esac
5345   done
5346   ;;
5347 esac
5348 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5349
5350
5351 # Determine whether we are building LLVM support for the native architecture.
5352 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5353 for a_target in $TARGETS_TO_BUILD; do
5354   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5355
5356 cat >>confdefs.h <<_ACEOF
5357 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5358 _ACEOF
5359
5360     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5361     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5362     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5363     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5364     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5365       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5366     fi
5367     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5368       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5369     fi
5370
5371 cat >>confdefs.h <<_ACEOF
5372 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5373 _ACEOF
5374
5375
5376 cat >>confdefs.h <<_ACEOF
5377 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5378 _ACEOF
5379
5380
5381 cat >>confdefs.h <<_ACEOF
5382 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5383 _ACEOF
5384
5385
5386 cat >>confdefs.h <<_ACEOF
5387 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5388 _ACEOF
5389
5390     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5391
5392 cat >>confdefs.h <<_ACEOF
5393 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5394 _ACEOF
5395
5396     fi
5397     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5398
5399 cat >>confdefs.h <<_ACEOF
5400 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5401 _ACEOF
5402
5403     fi
5404   fi
5405 done
5406
5407 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5408 # target feature def files.
5409 LLVM_ENUM_TARGETS=""
5410 LLVM_ENUM_ASM_PRINTERS=""
5411 LLVM_ENUM_ASM_PARSERS=""
5412 LLVM_ENUM_DISASSEMBLERS=""
5413 for target_to_build in $TARGETS_TO_BUILD; do
5414   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5415   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5416     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5417   fi
5418   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5419     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5420   fi
5421   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5422     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5423   fi
5424 done
5425
5426
5427
5428
5429
5430
5431 # Check whether --with-optimize-option was given.
5432 if test "${with_optimize_option+set}" = set; then
5433   withval=$with_optimize_option;
5434 else
5435   withval=default
5436 fi
5437
5438 { echo "$as_me:$LINENO: checking optimization flags" >&5
5439 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5440 case "$withval" in
5441   default)
5442     case "$llvm_cv_os_type" in
5443     FreeBSD) optimize_option=-O2 ;;
5444     MingW) optimize_option=-O2 ;;
5445     *)     optimize_option=-O3 ;;
5446     esac ;;
5447   *) optimize_option="$withval" ;;
5448 esac
5449 OPTIMIZE_OPTION=$optimize_option
5450
5451 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5452 echo "${ECHO_T}$optimize_option" >&6; }
5453
5454
5455 # Check whether --with-extra-options was given.
5456 if test "${with_extra_options+set}" = set; then
5457   withval=$with_extra_options;
5458 else
5459   withval=default
5460 fi
5461
5462 case "$withval" in
5463   default) EXTRA_OPTIONS= ;;
5464   *) EXTRA_OPTIONS=$withval ;;
5465 esac
5466 EXTRA_OPTIONS=$EXTRA_OPTIONS
5467
5468
5469
5470 # Check whether --with-extra-ld-options was given.
5471 if test "${with_extra_ld_options+set}" = set; then
5472   withval=$with_extra_ld_options;
5473 else
5474   withval=default
5475 fi
5476
5477 case "$withval" in
5478   default) EXTRA_LD_OPTIONS= ;;
5479   *) EXTRA_LD_OPTIONS=$withval ;;
5480 esac
5481 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5482
5483
5484 # Check whether --enable-bindings was given.
5485 if test "${enable_bindings+set}" = set; then
5486   enableval=$enable_bindings;
5487 else
5488   enableval=default
5489 fi
5490
5491 BINDINGS_TO_BUILD=""
5492 case "$enableval" in
5493   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5494   all ) BINDINGS_TO_BUILD="ocaml" ;;
5495   none | no) BINDINGS_TO_BUILD="" ;;
5496   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5497       case "$a_binding" in
5498         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5499         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5500 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5501    { (exit 1); exit 1; }; } ;;
5502       esac
5503   done
5504   ;;
5505 esac
5506
5507
5508 # Check whether --with-ocaml-libdir was given.
5509 if test "${with_ocaml_libdir+set}" = set; then
5510   withval=$with_ocaml_libdir;
5511 else
5512   withval=auto
5513 fi
5514
5515 case "$withval" in
5516   auto) with_ocaml_libdir="$withval" ;;
5517   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5518   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5519 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5520    { (exit 1); exit 1; }; } ;;
5521 esac
5522
5523
5524 # Check whether --with-clang-resource-dir was given.
5525 if test "${with_clang_resource_dir+set}" = set; then
5526   withval=$with_clang_resource_dir;
5527 else
5528   withval=""
5529 fi
5530
5531
5532 cat >>confdefs.h <<_ACEOF
5533 #define CLANG_RESOURCE_DIR "$withval"
5534 _ACEOF
5535
5536
5537
5538 # Check whether --with-c-include-dirs was given.
5539 if test "${with_c_include_dirs+set}" = set; then
5540   withval=$with_c_include_dirs;
5541 else
5542   withval=""
5543 fi
5544
5545
5546 cat >>confdefs.h <<_ACEOF
5547 #define C_INCLUDE_DIRS "$withval"
5548 _ACEOF
5549
5550
5551 # Clang normally uses the system c++ headers and libraries. With this option,
5552 # clang will use the ones provided by a gcc installation instead. This option should
5553 # be passed the same value that was used with --prefix when configuring gcc.
5554
5555 # Check whether --with-gcc-toolchain was given.
5556 if test "${with_gcc_toolchain+set}" = set; then
5557   withval=$with_gcc_toolchain;
5558 else
5559   withval=""
5560 fi
5561
5562
5563 cat >>confdefs.h <<_ACEOF
5564 #define GCC_INSTALL_PREFIX "$withval"
5565 _ACEOF
5566
5567
5568
5569 # Check whether --with-binutils-include was given.
5570 if test "${with_binutils_include+set}" = set; then
5571   withval=$with_binutils_include;
5572 else
5573   withval=default
5574 fi
5575
5576 case "$withval" in
5577   default) WITH_BINUTILS_INCDIR=default ;;
5578   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5579   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5580 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5581    { (exit 1); exit 1; }; } ;;
5582 esac
5583 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5584   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5585
5586   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5587      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5588      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5589 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5590    { (exit 1); exit 1; }; };
5591   fi
5592 fi
5593
5594
5595 # Check whether --with-bug-report-url was given.
5596 if test "${with_bug_report_url+set}" = set; then
5597   withval=$with_bug_report_url;
5598 else
5599   withval="http://llvm.org/bugs/"
5600 fi
5601
5602
5603 cat >>confdefs.h <<_ACEOF
5604 #define BUG_REPORT_URL "$withval"
5605 _ACEOF
5606
5607
5608 # Check whether --enable-libffi was given.
5609 if test "${enable_libffi+set}" = set; then
5610   enableval=$enable_libffi; case "$enableval" in
5611     yes) llvm_cv_enable_libffi="yes" ;;
5612     no)  llvm_cv_enable_libffi="no"  ;;
5613     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5614 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5615    { (exit 1); exit 1; }; } ;;
5616   esac
5617 else
5618   llvm_cv_enable_libffi=no
5619 fi
5620
5621
5622
5623 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5624 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5625 if test "${lt_cv_path_NM+set}" = set; then
5626   echo $ECHO_N "(cached) $ECHO_C" >&6
5627 else
5628   if test -n "$NM"; then
5629   # Let the user override the test.
5630   lt_cv_path_NM="$NM"
5631 else
5632   lt_nm_to_check="${ac_tool_prefix}nm"
5633   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5634     lt_nm_to_check="$lt_nm_to_check nm"
5635   fi
5636   for lt_tmp_nm in $lt_nm_to_check; do
5637     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5638     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5639       IFS="$lt_save_ifs"
5640       test -z "$ac_dir" && ac_dir=.
5641       tmp_nm="$ac_dir/$lt_tmp_nm"
5642       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5643         # Check to see if the nm accepts a BSD-compat flag.
5644         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5645         #   nm: unknown option "B" ignored
5646         # Tru64's nm complains that /dev/null is an invalid object file
5647         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5648         */dev/null* | *'Invalid file or object type'*)
5649           lt_cv_path_NM="$tmp_nm -B"
5650           break
5651           ;;
5652         *)
5653           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5654           */dev/null*)
5655             lt_cv_path_NM="$tmp_nm -p"
5656             break
5657             ;;
5658           *)
5659             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5660             continue # so that we can try to find one that supports BSD flags
5661             ;;
5662           esac
5663           ;;
5664         esac
5665       fi
5666     done
5667     IFS="$lt_save_ifs"
5668   done
5669   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5670 fi
5671 fi
5672 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5673 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5674 NM="$lt_cv_path_NM"
5675
5676
5677
5678 { echo "$as_me:$LINENO: checking for GNU make" >&5
5679 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5680 if test "${llvm_cv_gnu_make_command+set}" = set; then
5681   echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683   llvm_cv_gnu_make_command=''
5684  for a in "$MAKE" make gmake gnumake ; do
5685   if test -z "$a" ; then continue ; fi ;
5686   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5687   then
5688    llvm_cv_gnu_make_command=$a ;
5689    break;
5690   fi
5691  done
5692 fi
5693 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5694 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5695  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5696    ifGNUmake='' ;
5697  else
5698    ifGNUmake='#' ;
5699    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5700 echo "${ECHO_T}\"Not found\"" >&6; };
5701  fi
5702
5703
5704 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5705 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5706 LN_S=$as_ln_s
5707 if test "$LN_S" = "ln -s"; then
5708   { echo "$as_me:$LINENO: result: yes" >&5
5709 echo "${ECHO_T}yes" >&6; }
5710 else
5711   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5712 echo "${ECHO_T}no, using $LN_S" >&6; }
5713 fi
5714
5715 # Extract the first word of "cmp", so it can be a program name with args.
5716 set dummy cmp; ac_word=$2
5717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5719 if test "${ac_cv_path_CMP+set}" = set; then
5720   echo $ECHO_N "(cached) $ECHO_C" >&6
5721 else
5722   case $CMP in
5723   [\\/]* | ?:[\\/]*)
5724   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5725   ;;
5726   *)
5727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 for as_dir in $PATH
5729 do
5730   IFS=$as_save_IFS
5731   test -z "$as_dir" && as_dir=.
5732   for ac_exec_ext in '' $ac_executable_extensions; do
5733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5734     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5736     break 2
5737   fi
5738 done
5739 done
5740 IFS=$as_save_IFS
5741
5742   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5743   ;;
5744 esac
5745 fi
5746 CMP=$ac_cv_path_CMP
5747 if test -n "$CMP"; then
5748   { echo "$as_me:$LINENO: result: $CMP" >&5
5749 echo "${ECHO_T}$CMP" >&6; }
5750 else
5751   { echo "$as_me:$LINENO: result: no" >&5
5752 echo "${ECHO_T}no" >&6; }
5753 fi
5754
5755
5756 # Extract the first word of "cp", so it can be a program name with args.
5757 set dummy cp; ac_word=$2
5758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5760 if test "${ac_cv_path_CP+set}" = set; then
5761   echo $ECHO_N "(cached) $ECHO_C" >&6
5762 else
5763   case $CP in
5764   [\\/]* | ?:[\\/]*)
5765   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5766   ;;
5767   *)
5768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 for as_dir in $PATH
5770 do
5771   IFS=$as_save_IFS
5772   test -z "$as_dir" && as_dir=.
5773   for ac_exec_ext in '' $ac_executable_extensions; do
5774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5775     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5777     break 2
5778   fi
5779 done
5780 done
5781 IFS=$as_save_IFS
5782
5783   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5784   ;;
5785 esac
5786 fi
5787 CP=$ac_cv_path_CP
5788 if test -n "$CP"; then
5789   { echo "$as_me:$LINENO: result: $CP" >&5
5790 echo "${ECHO_T}$CP" >&6; }
5791 else
5792   { echo "$as_me:$LINENO: result: no" >&5
5793 echo "${ECHO_T}no" >&6; }
5794 fi
5795
5796
5797 # Extract the first word of "date", so it can be a program name with args.
5798 set dummy date; ac_word=$2
5799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5801 if test "${ac_cv_path_DATE+set}" = set; then
5802   echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804   case $DATE in
5805   [\\/]* | ?:[\\/]*)
5806   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5807   ;;
5808   *)
5809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 for as_dir in $PATH
5811 do
5812   IFS=$as_save_IFS
5813   test -z "$as_dir" && as_dir=.
5814   for ac_exec_ext in '' $ac_executable_extensions; do
5815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5816     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5818     break 2
5819   fi
5820 done
5821 done
5822 IFS=$as_save_IFS
5823
5824   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5825   ;;
5826 esac
5827 fi
5828 DATE=$ac_cv_path_DATE
5829 if test -n "$DATE"; then
5830   { echo "$as_me:$LINENO: result: $DATE" >&5
5831 echo "${ECHO_T}$DATE" >&6; }
5832 else
5833   { echo "$as_me:$LINENO: result: no" >&5
5834 echo "${ECHO_T}no" >&6; }
5835 fi
5836
5837
5838 # Extract the first word of "find", so it can be a program name with args.
5839 set dummy find; ac_word=$2
5840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5842 if test "${ac_cv_path_FIND+set}" = set; then
5843   echo $ECHO_N "(cached) $ECHO_C" >&6
5844 else
5845   case $FIND in
5846   [\\/]* | ?:[\\/]*)
5847   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5848   ;;
5849   *)
5850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 for as_dir in $PATH
5852 do
5853   IFS=$as_save_IFS
5854   test -z "$as_dir" && as_dir=.
5855   for ac_exec_ext in '' $ac_executable_extensions; do
5856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5857     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5859     break 2
5860   fi
5861 done
5862 done
5863 IFS=$as_save_IFS
5864
5865   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5866   ;;
5867 esac
5868 fi
5869 FIND=$ac_cv_path_FIND
5870 if test -n "$FIND"; then
5871   { echo "$as_me:$LINENO: result: $FIND" >&5
5872 echo "${ECHO_T}$FIND" >&6; }
5873 else
5874   { echo "$as_me:$LINENO: result: no" >&5
5875 echo "${ECHO_T}no" >&6; }
5876 fi
5877
5878
5879 # Extract the first word of "grep", so it can be a program name with args.
5880 set dummy grep; ac_word=$2
5881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5883 if test "${ac_cv_path_GREP+set}" = set; then
5884   echo $ECHO_N "(cached) $ECHO_C" >&6
5885 else
5886   case $GREP in
5887   [\\/]* | ?:[\\/]*)
5888   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5889   ;;
5890   *)
5891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 for as_dir in $PATH
5893 do
5894   IFS=$as_save_IFS
5895   test -z "$as_dir" && as_dir=.
5896   for ac_exec_ext in '' $ac_executable_extensions; do
5897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5898     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5900     break 2
5901   fi
5902 done
5903 done
5904 IFS=$as_save_IFS
5905
5906   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5907   ;;
5908 esac
5909 fi
5910 GREP=$ac_cv_path_GREP
5911 if test -n "$GREP"; then
5912   { echo "$as_me:$LINENO: result: $GREP" >&5
5913 echo "${ECHO_T}$GREP" >&6; }
5914 else
5915   { echo "$as_me:$LINENO: result: no" >&5
5916 echo "${ECHO_T}no" >&6; }
5917 fi
5918
5919
5920 # Extract the first word of "mkdir", so it can be a program name with args.
5921 set dummy mkdir; ac_word=$2
5922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5924 if test "${ac_cv_path_MKDIR+set}" = set; then
5925   echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927   case $MKDIR in
5928   [\\/]* | ?:[\\/]*)
5929   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5930   ;;
5931   *)
5932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 for as_dir in $PATH
5934 do
5935   IFS=$as_save_IFS
5936   test -z "$as_dir" && as_dir=.
5937   for ac_exec_ext in '' $ac_executable_extensions; do
5938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5939     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941     break 2
5942   fi
5943 done
5944 done
5945 IFS=$as_save_IFS
5946
5947   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5948   ;;
5949 esac
5950 fi
5951 MKDIR=$ac_cv_path_MKDIR
5952 if test -n "$MKDIR"; then
5953   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5954 echo "${ECHO_T}$MKDIR" >&6; }
5955 else
5956   { echo "$as_me:$LINENO: result: no" >&5
5957 echo "${ECHO_T}no" >&6; }
5958 fi
5959
5960
5961 # Extract the first word of "mv", so it can be a program name with args.
5962 set dummy mv; ac_word=$2
5963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5965 if test "${ac_cv_path_MV+set}" = set; then
5966   echo $ECHO_N "(cached) $ECHO_C" >&6
5967 else
5968   case $MV in
5969   [\\/]* | ?:[\\/]*)
5970   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5971   ;;
5972   *)
5973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974 for as_dir in $PATH
5975 do
5976   IFS=$as_save_IFS
5977   test -z "$as_dir" && as_dir=.
5978   for ac_exec_ext in '' $ac_executable_extensions; do
5979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5980     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5982     break 2
5983   fi
5984 done
5985 done
5986 IFS=$as_save_IFS
5987
5988   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5989   ;;
5990 esac
5991 fi
5992 MV=$ac_cv_path_MV
5993 if test -n "$MV"; then
5994   { echo "$as_me:$LINENO: result: $MV" >&5
5995 echo "${ECHO_T}$MV" >&6; }
5996 else
5997   { echo "$as_me:$LINENO: result: no" >&5
5998 echo "${ECHO_T}no" >&6; }
5999 fi
6000
6001
6002 if test -n "$ac_tool_prefix"; then
6003   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6004 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6007 if test "${ac_cv_prog_RANLIB+set}" = set; then
6008   echo $ECHO_N "(cached) $ECHO_C" >&6
6009 else
6010   if test -n "$RANLIB"; then
6011   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6012 else
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 for as_dir in $PATH
6015 do
6016   IFS=$as_save_IFS
6017   test -z "$as_dir" && as_dir=.
6018   for ac_exec_ext in '' $ac_executable_extensions; do
6019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6020     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6022     break 2
6023   fi
6024 done
6025 done
6026 IFS=$as_save_IFS
6027
6028 fi
6029 fi
6030 RANLIB=$ac_cv_prog_RANLIB
6031 if test -n "$RANLIB"; then
6032   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6033 echo "${ECHO_T}$RANLIB" >&6; }
6034 else
6035   { echo "$as_me:$LINENO: result: no" >&5
6036 echo "${ECHO_T}no" >&6; }
6037 fi
6038
6039
6040 fi
6041 if test -z "$ac_cv_prog_RANLIB"; then
6042   ac_ct_RANLIB=$RANLIB
6043   # Extract the first word of "ranlib", so it can be a program name with args.
6044 set dummy ranlib; ac_word=$2
6045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6047 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6048   echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050   if test -n "$ac_ct_RANLIB"; then
6051   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6052 else
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 for as_dir in $PATH
6055 do
6056   IFS=$as_save_IFS
6057   test -z "$as_dir" && as_dir=.
6058   for ac_exec_ext in '' $ac_executable_extensions; do
6059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6060     ac_cv_prog_ac_ct_RANLIB="ranlib"
6061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6062     break 2
6063   fi
6064 done
6065 done
6066 IFS=$as_save_IFS
6067
6068 fi
6069 fi
6070 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6071 if test -n "$ac_ct_RANLIB"; then
6072   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6073 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6074 else
6075   { echo "$as_me:$LINENO: result: no" >&5
6076 echo "${ECHO_T}no" >&6; }
6077 fi
6078
6079   if test "x$ac_ct_RANLIB" = x; then
6080     RANLIB=":"
6081   else
6082     case $cross_compiling:$ac_tool_warned in
6083 yes:)
6084 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6085 whose name does not start with the host triplet.  If you think this
6086 configuration is useful to you, please write to autoconf@gnu.org." >&5
6087 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6088 whose name does not start with the host triplet.  If you think this
6089 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6090 ac_tool_warned=yes ;;
6091 esac
6092     RANLIB=$ac_ct_RANLIB
6093   fi
6094 else
6095   RANLIB="$ac_cv_prog_RANLIB"
6096 fi
6097
6098 if test -n "$ac_tool_prefix"; then
6099   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6100 set dummy ${ac_tool_prefix}ar; ac_word=$2
6101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6103 if test "${ac_cv_prog_AR+set}" = set; then
6104   echo $ECHO_N "(cached) $ECHO_C" >&6
6105 else
6106   if test -n "$AR"; then
6107   ac_cv_prog_AR="$AR" # Let the user override the test.
6108 else
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 for as_dir in $PATH
6111 do
6112   IFS=$as_save_IFS
6113   test -z "$as_dir" && as_dir=.
6114   for ac_exec_ext in '' $ac_executable_extensions; do
6115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6116     ac_cv_prog_AR="${ac_tool_prefix}ar"
6117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6118     break 2
6119   fi
6120 done
6121 done
6122 IFS=$as_save_IFS
6123
6124 fi
6125 fi
6126 AR=$ac_cv_prog_AR
6127 if test -n "$AR"; then
6128   { echo "$as_me:$LINENO: result: $AR" >&5
6129 echo "${ECHO_T}$AR" >&6; }
6130 else
6131   { echo "$as_me:$LINENO: result: no" >&5
6132 echo "${ECHO_T}no" >&6; }
6133 fi
6134
6135
6136 fi
6137 if test -z "$ac_cv_prog_AR"; then
6138   ac_ct_AR=$AR
6139   # Extract the first word of "ar", so it can be a program name with args.
6140 set dummy ar; ac_word=$2
6141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6143 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6144   echo $ECHO_N "(cached) $ECHO_C" >&6
6145 else
6146   if test -n "$ac_ct_AR"; then
6147   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6148 else
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH
6151 do
6152   IFS=$as_save_IFS
6153   test -z "$as_dir" && as_dir=.
6154   for ac_exec_ext in '' $ac_executable_extensions; do
6155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6156     ac_cv_prog_ac_ct_AR="ar"
6157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6158     break 2
6159   fi
6160 done
6161 done
6162 IFS=$as_save_IFS
6163
6164 fi
6165 fi
6166 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6167 if test -n "$ac_ct_AR"; then
6168   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6169 echo "${ECHO_T}$ac_ct_AR" >&6; }
6170 else
6171   { echo "$as_me:$LINENO: result: no" >&5
6172 echo "${ECHO_T}no" >&6; }
6173 fi
6174
6175   if test "x$ac_ct_AR" = x; then
6176     AR="false"
6177   else
6178     case $cross_compiling:$ac_tool_warned in
6179 yes:)
6180 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6181 whose name does not start with the host triplet.  If you think this
6182 configuration is useful to you, please write to autoconf@gnu.org." >&5
6183 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6184 whose name does not start with the host triplet.  If you think this
6185 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6186 ac_tool_warned=yes ;;
6187 esac
6188     AR=$ac_ct_AR
6189   fi
6190 else
6191   AR="$ac_cv_prog_AR"
6192 fi
6193
6194 # Extract the first word of "rm", so it can be a program name with args.
6195 set dummy rm; ac_word=$2
6196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6198 if test "${ac_cv_path_RM+set}" = set; then
6199   echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201   case $RM in
6202   [\\/]* | ?:[\\/]*)
6203   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6204   ;;
6205   *)
6206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 for as_dir in $PATH
6208 do
6209   IFS=$as_save_IFS
6210   test -z "$as_dir" && as_dir=.
6211   for ac_exec_ext in '' $ac_executable_extensions; do
6212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6213     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215     break 2
6216   fi
6217 done
6218 done
6219 IFS=$as_save_IFS
6220
6221   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6222   ;;
6223 esac
6224 fi
6225 RM=$ac_cv_path_RM
6226 if test -n "$RM"; then
6227   { echo "$as_me:$LINENO: result: $RM" >&5
6228 echo "${ECHO_T}$RM" >&6; }
6229 else
6230   { echo "$as_me:$LINENO: result: no" >&5
6231 echo "${ECHO_T}no" >&6; }
6232 fi
6233
6234
6235 # Extract the first word of "sed", so it can be a program name with args.
6236 set dummy sed; ac_word=$2
6237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6239 if test "${ac_cv_path_SED+set}" = set; then
6240   echo $ECHO_N "(cached) $ECHO_C" >&6
6241 else
6242   case $SED in
6243   [\\/]* | ?:[\\/]*)
6244   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6245   ;;
6246   *)
6247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 for as_dir in $PATH
6249 do
6250   IFS=$as_save_IFS
6251   test -z "$as_dir" && as_dir=.
6252   for ac_exec_ext in '' $ac_executable_extensions; do
6253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6254     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6256     break 2
6257   fi
6258 done
6259 done
6260 IFS=$as_save_IFS
6261
6262   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6263   ;;
6264 esac
6265 fi
6266 SED=$ac_cv_path_SED
6267 if test -n "$SED"; then
6268   { echo "$as_me:$LINENO: result: $SED" >&5
6269 echo "${ECHO_T}$SED" >&6; }
6270 else
6271   { echo "$as_me:$LINENO: result: no" >&5
6272 echo "${ECHO_T}no" >&6; }
6273 fi
6274
6275
6276 # Extract the first word of "tar", so it can be a program name with args.
6277 set dummy tar; ac_word=$2
6278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6280 if test "${ac_cv_path_TAR+set}" = set; then
6281   echo $ECHO_N "(cached) $ECHO_C" >&6
6282 else
6283   case $TAR in
6284   [\\/]* | ?:[\\/]*)
6285   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6286   ;;
6287   *)
6288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 for as_dir in $PATH
6290 do
6291   IFS=$as_save_IFS
6292   test -z "$as_dir" && as_dir=.
6293   for ac_exec_ext in '' $ac_executable_extensions; do
6294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6295     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297     break 2
6298   fi
6299 done
6300 done
6301 IFS=$as_save_IFS
6302
6303   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6304   ;;
6305 esac
6306 fi
6307 TAR=$ac_cv_path_TAR
6308 if test -n "$TAR"; then
6309   { echo "$as_me:$LINENO: result: $TAR" >&5
6310 echo "${ECHO_T}$TAR" >&6; }
6311 else
6312   { echo "$as_me:$LINENO: result: no" >&5
6313 echo "${ECHO_T}no" >&6; }
6314 fi
6315
6316
6317 # Extract the first word of "pwd", so it can be a program name with args.
6318 set dummy pwd; ac_word=$2
6319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6321 if test "${ac_cv_path_BINPWD+set}" = set; then
6322   echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324   case $BINPWD in
6325   [\\/]* | ?:[\\/]*)
6326   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6327   ;;
6328   *)
6329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 for as_dir in $PATH
6331 do
6332   IFS=$as_save_IFS
6333   test -z "$as_dir" && as_dir=.
6334   for ac_exec_ext in '' $ac_executable_extensions; do
6335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6336     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6338     break 2
6339   fi
6340 done
6341 done
6342 IFS=$as_save_IFS
6343
6344   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6345   ;;
6346 esac
6347 fi
6348 BINPWD=$ac_cv_path_BINPWD
6349 if test -n "$BINPWD"; then
6350   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6351 echo "${ECHO_T}$BINPWD" >&6; }
6352 else
6353   { echo "$as_me:$LINENO: result: no" >&5
6354 echo "${ECHO_T}no" >&6; }
6355 fi
6356
6357
6358
6359 # Extract the first word of "Graphviz", so it can be a program name with args.
6360 set dummy Graphviz; ac_word=$2
6361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6363 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6364   echo $ECHO_N "(cached) $ECHO_C" >&6
6365 else
6366   case $GRAPHVIZ in
6367   [\\/]* | ?:[\\/]*)
6368   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6369   ;;
6370   *)
6371   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 for as_dir in $PATH
6373 do
6374   IFS=$as_save_IFS
6375   test -z "$as_dir" && as_dir=.
6376   for ac_exec_ext in '' $ac_executable_extensions; do
6377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6378     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6380     break 2
6381   fi
6382 done
6383 done
6384 IFS=$as_save_IFS
6385
6386   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6387   ;;
6388 esac
6389 fi
6390 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6391 if test -n "$GRAPHVIZ"; then
6392   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6393 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6394 else
6395   { echo "$as_me:$LINENO: result: no" >&5
6396 echo "${ECHO_T}no" >&6; }
6397 fi
6398
6399
6400 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6401
6402 cat >>confdefs.h <<\_ACEOF
6403 #define HAVE_GRAPHVIZ 1
6404 _ACEOF
6405
6406     if test "$llvm_cv_os_type" = "MingW" ; then
6407     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6408   fi
6409
6410 cat >>confdefs.h <<_ACEOF
6411 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6412 _ACEOF
6413
6414 fi
6415 # Extract the first word of "dot", so it can be a program name with args.
6416 set dummy dot; ac_word=$2
6417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6419 if test "${ac_cv_path_DOT+set}" = set; then
6420   echo $ECHO_N "(cached) $ECHO_C" >&6
6421 else
6422   case $DOT in
6423   [\\/]* | ?:[\\/]*)
6424   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6425   ;;
6426   *)
6427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH
6429 do
6430   IFS=$as_save_IFS
6431   test -z "$as_dir" && as_dir=.
6432   for ac_exec_ext in '' $ac_executable_extensions; do
6433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6434     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6436     break 2
6437   fi
6438 done
6439 done
6440 IFS=$as_save_IFS
6441
6442   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6443   ;;
6444 esac
6445 fi
6446 DOT=$ac_cv_path_DOT
6447 if test -n "$DOT"; then
6448   { echo "$as_me:$LINENO: result: $DOT" >&5
6449 echo "${ECHO_T}$DOT" >&6; }
6450 else
6451   { echo "$as_me:$LINENO: result: no" >&5
6452 echo "${ECHO_T}no" >&6; }
6453 fi
6454
6455
6456 if test "$DOT" != "echo dot" ; then
6457
6458 cat >>confdefs.h <<\_ACEOF
6459 #define HAVE_DOT 1
6460 _ACEOF
6461
6462     if test "$llvm_cv_os_type" = "MingW" ; then
6463     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6464   fi
6465
6466 cat >>confdefs.h <<_ACEOF
6467 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6468 _ACEOF
6469
6470 fi
6471 # Extract the first word of "fdp", so it can be a program name with args.
6472 set dummy fdp; ac_word=$2
6473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6475 if test "${ac_cv_path_FDP+set}" = set; then
6476   echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6478   case $FDP in
6479   [\\/]* | ?:[\\/]*)
6480   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6481   ;;
6482   *)
6483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 for as_dir in $PATH
6485 do
6486   IFS=$as_save_IFS
6487   test -z "$as_dir" && as_dir=.
6488   for ac_exec_ext in '' $ac_executable_extensions; do
6489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6490     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6492     break 2
6493   fi
6494 done
6495 done
6496 IFS=$as_save_IFS
6497
6498   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6499   ;;
6500 esac
6501 fi
6502 FDP=$ac_cv_path_FDP
6503 if test -n "$FDP"; then
6504   { echo "$as_me:$LINENO: result: $FDP" >&5
6505 echo "${ECHO_T}$FDP" >&6; }
6506 else
6507   { echo "$as_me:$LINENO: result: no" >&5
6508 echo "${ECHO_T}no" >&6; }
6509 fi
6510
6511
6512 if test "$FDP" != "echo fdp" ; then
6513
6514 cat >>confdefs.h <<\_ACEOF
6515 #define HAVE_FDP 1
6516 _ACEOF
6517
6518     if test "$llvm_cv_os_type" = "MingW" ; then
6519     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6520   fi
6521
6522 cat >>confdefs.h <<_ACEOF
6523 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6524 _ACEOF
6525
6526 fi
6527 # Extract the first word of "neato", so it can be a program name with args.
6528 set dummy neato; ac_word=$2
6529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6531 if test "${ac_cv_path_NEATO+set}" = set; then
6532   echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534   case $NEATO in
6535   [\\/]* | ?:[\\/]*)
6536   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6537   ;;
6538   *)
6539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 for as_dir in $PATH
6541 do
6542   IFS=$as_save_IFS
6543   test -z "$as_dir" && as_dir=.
6544   for ac_exec_ext in '' $ac_executable_extensions; do
6545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6546     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6548     break 2
6549   fi
6550 done
6551 done
6552 IFS=$as_save_IFS
6553
6554   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6555   ;;
6556 esac
6557 fi
6558 NEATO=$ac_cv_path_NEATO
6559 if test -n "$NEATO"; then
6560   { echo "$as_me:$LINENO: result: $NEATO" >&5
6561 echo "${ECHO_T}$NEATO" >&6; }
6562 else
6563   { echo "$as_me:$LINENO: result: no" >&5
6564 echo "${ECHO_T}no" >&6; }
6565 fi
6566
6567
6568 if test "$NEATO" != "echo neato" ; then
6569
6570 cat >>confdefs.h <<\_ACEOF
6571 #define HAVE_NEATO 1
6572 _ACEOF
6573
6574     if test "$llvm_cv_os_type" = "MingW" ; then
6575     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6576   fi
6577
6578 cat >>confdefs.h <<_ACEOF
6579 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6580 _ACEOF
6581
6582 fi
6583 # Extract the first word of "twopi", so it can be a program name with args.
6584 set dummy twopi; ac_word=$2
6585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6587 if test "${ac_cv_path_TWOPI+set}" = set; then
6588   echo $ECHO_N "(cached) $ECHO_C" >&6
6589 else
6590   case $TWOPI in
6591   [\\/]* | ?:[\\/]*)
6592   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6593   ;;
6594   *)
6595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6597 do
6598   IFS=$as_save_IFS
6599   test -z "$as_dir" && as_dir=.
6600   for ac_exec_ext in '' $ac_executable_extensions; do
6601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6602     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6604     break 2
6605   fi
6606 done
6607 done
6608 IFS=$as_save_IFS
6609
6610   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6611   ;;
6612 esac
6613 fi
6614 TWOPI=$ac_cv_path_TWOPI
6615 if test -n "$TWOPI"; then
6616   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6617 echo "${ECHO_T}$TWOPI" >&6; }
6618 else
6619   { echo "$as_me:$LINENO: result: no" >&5
6620 echo "${ECHO_T}no" >&6; }
6621 fi
6622
6623
6624 if test "$TWOPI" != "echo twopi" ; then
6625
6626 cat >>confdefs.h <<\_ACEOF
6627 #define HAVE_TWOPI 1
6628 _ACEOF
6629
6630     if test "$llvm_cv_os_type" = "MingW" ; then
6631     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6632   fi
6633
6634 cat >>confdefs.h <<_ACEOF
6635 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6636 _ACEOF
6637
6638 fi
6639 # Extract the first word of "circo", so it can be a program name with args.
6640 set dummy circo; ac_word=$2
6641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6643 if test "${ac_cv_path_CIRCO+set}" = set; then
6644   echo $ECHO_N "(cached) $ECHO_C" >&6
6645 else
6646   case $CIRCO in
6647   [\\/]* | ?:[\\/]*)
6648   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6649   ;;
6650   *)
6651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 for as_dir in $PATH
6653 do
6654   IFS=$as_save_IFS
6655   test -z "$as_dir" && as_dir=.
6656   for ac_exec_ext in '' $ac_executable_extensions; do
6657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6658     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6660     break 2
6661   fi
6662 done
6663 done
6664 IFS=$as_save_IFS
6665
6666   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6667   ;;
6668 esac
6669 fi
6670 CIRCO=$ac_cv_path_CIRCO
6671 if test -n "$CIRCO"; then
6672   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6673 echo "${ECHO_T}$CIRCO" >&6; }
6674 else
6675   { echo "$as_me:$LINENO: result: no" >&5
6676 echo "${ECHO_T}no" >&6; }
6677 fi
6678
6679
6680 if test "$CIRCO" != "echo circo" ; then
6681
6682 cat >>confdefs.h <<\_ACEOF
6683 #define HAVE_CIRCO 1
6684 _ACEOF
6685
6686     if test "$llvm_cv_os_type" = "MingW" ; then
6687     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6688   fi
6689
6690 cat >>confdefs.h <<_ACEOF
6691 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6692 _ACEOF
6693
6694 fi
6695 for ac_prog in gv gsview32
6696 do
6697   # Extract the first word of "$ac_prog", so it can be a program name with args.
6698 set dummy $ac_prog; ac_word=$2
6699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6701 if test "${ac_cv_path_GV+set}" = set; then
6702   echo $ECHO_N "(cached) $ECHO_C" >&6
6703 else
6704   case $GV in
6705   [\\/]* | ?:[\\/]*)
6706   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6707   ;;
6708   *)
6709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6711 do
6712   IFS=$as_save_IFS
6713   test -z "$as_dir" && as_dir=.
6714   for ac_exec_ext in '' $ac_executable_extensions; do
6715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6716     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718     break 2
6719   fi
6720 done
6721 done
6722 IFS=$as_save_IFS
6723
6724   ;;
6725 esac
6726 fi
6727 GV=$ac_cv_path_GV
6728 if test -n "$GV"; then
6729   { echo "$as_me:$LINENO: result: $GV" >&5
6730 echo "${ECHO_T}$GV" >&6; }
6731 else
6732   { echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6; }
6734 fi
6735
6736
6737   test -n "$GV" && break
6738 done
6739 test -n "$GV" || GV="echo gv"
6740
6741 if test "$GV" != "echo gv" ; then
6742
6743 cat >>confdefs.h <<\_ACEOF
6744 #define HAVE_GV 1
6745 _ACEOF
6746
6747     if test "$llvm_cv_os_type" = "MingW" ; then
6748     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6749   fi
6750
6751 cat >>confdefs.h <<_ACEOF
6752 #define LLVM_PATH_GV "$GV${EXEEXT}"
6753 _ACEOF
6754
6755 fi
6756 # Extract the first word of "dotty", so it can be a program name with args.
6757 set dummy dotty; ac_word=$2
6758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6760 if test "${ac_cv_path_DOTTY+set}" = set; then
6761   echo $ECHO_N "(cached) $ECHO_C" >&6
6762 else
6763   case $DOTTY in
6764   [\\/]* | ?:[\\/]*)
6765   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6766   ;;
6767   *)
6768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771   IFS=$as_save_IFS
6772   test -z "$as_dir" && as_dir=.
6773   for ac_exec_ext in '' $ac_executable_extensions; do
6774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6775     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777     break 2
6778   fi
6779 done
6780 done
6781 IFS=$as_save_IFS
6782
6783   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6784   ;;
6785 esac
6786 fi
6787 DOTTY=$ac_cv_path_DOTTY
6788 if test -n "$DOTTY"; then
6789   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6790 echo "${ECHO_T}$DOTTY" >&6; }
6791 else
6792   { echo "$as_me:$LINENO: result: no" >&5
6793 echo "${ECHO_T}no" >&6; }
6794 fi
6795
6796
6797 if test "$DOTTY" != "echo dotty" ; then
6798
6799 cat >>confdefs.h <<\_ACEOF
6800 #define HAVE_DOTTY 1
6801 _ACEOF
6802
6803     if test "$llvm_cv_os_type" = "MingW" ; then
6804     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6805   fi
6806
6807 cat >>confdefs.h <<_ACEOF
6808 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6809 _ACEOF
6810
6811 fi
6812 # Extract the first word of "xdot.py", so it can be a program name with args.
6813 set dummy xdot.py; ac_word=$2
6814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6817   echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819   case $XDOT_PY in
6820   [\\/]* | ?:[\\/]*)
6821   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6822   ;;
6823   *)
6824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827   IFS=$as_save_IFS
6828   test -z "$as_dir" && as_dir=.
6829   for ac_exec_ext in '' $ac_executable_extensions; do
6830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6831     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833     break 2
6834   fi
6835 done
6836 done
6837 IFS=$as_save_IFS
6838
6839   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6840   ;;
6841 esac
6842 fi
6843 XDOT_PY=$ac_cv_path_XDOT_PY
6844 if test -n "$XDOT_PY"; then
6845   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6846 echo "${ECHO_T}$XDOT_PY" >&6; }
6847 else
6848   { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6850 fi
6851
6852
6853 if test "$XDOT_PY" != "echo xdot.py" ; then
6854
6855 cat >>confdefs.h <<\_ACEOF
6856 #define HAVE_XDOT_PY 1
6857 _ACEOF
6858
6859     if test "$llvm_cv_os_type" = "MingW" ; then
6860     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6861   fi
6862
6863 cat >>confdefs.h <<_ACEOF
6864 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6865 _ACEOF
6866
6867 fi
6868
6869 # Find a good install program.  We prefer a C program (faster),
6870 # so one script is as good as another.  But avoid the broken or
6871 # incompatible versions:
6872 # SysV /etc/install, /usr/sbin/install
6873 # SunOS /usr/etc/install
6874 # IRIX /sbin/install
6875 # AIX /bin/install
6876 # AmigaOS /C/install, which installs bootblocks on floppy discs
6877 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6878 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6879 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6880 # OS/2's system install, which has a completely different semantic
6881 # ./install, which can be erroneously created by make from ./install.sh.
6882 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6883 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6884 if test -z "$INSTALL"; then
6885 if test "${ac_cv_path_install+set}" = set; then
6886   echo $ECHO_N "(cached) $ECHO_C" >&6
6887 else
6888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 for as_dir in $PATH
6890 do
6891   IFS=$as_save_IFS
6892   test -z "$as_dir" && as_dir=.
6893   # Account for people who put trailing slashes in PATH elements.
6894 case $as_dir/ in
6895   ./ | .// | /cC/* | \
6896   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6897   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6898   /usr/ucb/* ) ;;
6899   *)
6900     # OSF1 and SCO ODT 3.0 have their own names for install.
6901     # Don't use installbsd from OSF since it installs stuff as root
6902     # by default.
6903     for ac_prog in ginstall scoinst install; do
6904       for ac_exec_ext in '' $ac_executable_extensions; do
6905         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6906           if test $ac_prog = install &&
6907             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6908             # AIX install.  It has an incompatible calling convention.
6909             :
6910           elif test $ac_prog = install &&
6911             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6912             # program-specific install script used by HP pwplus--don't use.
6913             :
6914           else
6915             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6916             break 3
6917           fi
6918         fi
6919       done
6920     done
6921     ;;
6922 esac
6923 done
6924 IFS=$as_save_IFS
6925
6926
6927 fi
6928   if test "${ac_cv_path_install+set}" = set; then
6929     INSTALL=$ac_cv_path_install
6930   else
6931     # As a last resort, use the slow shell script.  Don't cache a
6932     # value for INSTALL within a source directory, because that will
6933     # break other packages using the cache if that directory is
6934     # removed, or if the value is a relative name.
6935     INSTALL=$ac_install_sh
6936   fi
6937 fi
6938 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6939 echo "${ECHO_T}$INSTALL" >&6; }
6940
6941 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6942 # It thinks the first close brace ends the variable substitution.
6943 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6944
6945 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6946
6947 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6948
6949 case "$INSTALL" in
6950  [\\/$]* | ?:[\\/]* ) ;;
6951  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6952 esac
6953
6954 # Extract the first word of "bzip2", so it can be a program name with args.
6955 set dummy bzip2; ac_word=$2
6956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6958 if test "${ac_cv_path_BZIP2+set}" = set; then
6959   echo $ECHO_N "(cached) $ECHO_C" >&6
6960 else
6961   case $BZIP2 in
6962   [\\/]* | ?:[\\/]*)
6963   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6964   ;;
6965   *)
6966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6968 do
6969   IFS=$as_save_IFS
6970   test -z "$as_dir" && as_dir=.
6971   for ac_exec_ext in '' $ac_executable_extensions; do
6972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6973     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6975     break 2
6976   fi
6977 done
6978 done
6979 IFS=$as_save_IFS
6980
6981   ;;
6982 esac
6983 fi
6984 BZIP2=$ac_cv_path_BZIP2
6985 if test -n "$BZIP2"; then
6986   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6987 echo "${ECHO_T}$BZIP2" >&6; }
6988 else
6989   { echo "$as_me:$LINENO: result: no" >&5
6990 echo "${ECHO_T}no" >&6; }
6991 fi
6992
6993
6994 # Extract the first word of "cat", so it can be a program name with args.
6995 set dummy cat; ac_word=$2
6996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6998 if test "${ac_cv_path_CAT+set}" = set; then
6999   echo $ECHO_N "(cached) $ECHO_C" >&6
7000 else
7001   case $CAT in
7002   [\\/]* | ?:[\\/]*)
7003   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7004   ;;
7005   *)
7006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7008 do
7009   IFS=$as_save_IFS
7010   test -z "$as_dir" && as_dir=.
7011   for ac_exec_ext in '' $ac_executable_extensions; do
7012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7013     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7015     break 2
7016   fi
7017 done
7018 done
7019 IFS=$as_save_IFS
7020
7021   ;;
7022 esac
7023 fi
7024 CAT=$ac_cv_path_CAT
7025 if test -n "$CAT"; then
7026   { echo "$as_me:$LINENO: result: $CAT" >&5
7027 echo "${ECHO_T}$CAT" >&6; }
7028 else
7029   { echo "$as_me:$LINENO: result: no" >&5
7030 echo "${ECHO_T}no" >&6; }
7031 fi
7032
7033
7034 # Extract the first word of "doxygen", so it can be a program name with args.
7035 set dummy doxygen; ac_word=$2
7036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7039   echo $ECHO_N "(cached) $ECHO_C" >&6
7040 else
7041   case $DOXYGEN in
7042   [\\/]* | ?:[\\/]*)
7043   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7044   ;;
7045   *)
7046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7048 do
7049   IFS=$as_save_IFS
7050   test -z "$as_dir" && as_dir=.
7051   for ac_exec_ext in '' $ac_executable_extensions; do
7052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7053     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055     break 2
7056   fi
7057 done
7058 done
7059 IFS=$as_save_IFS
7060
7061   ;;
7062 esac
7063 fi
7064 DOXYGEN=$ac_cv_path_DOXYGEN
7065 if test -n "$DOXYGEN"; then
7066   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7067 echo "${ECHO_T}$DOXYGEN" >&6; }
7068 else
7069   { echo "$as_me:$LINENO: result: no" >&5
7070 echo "${ECHO_T}no" >&6; }
7071 fi
7072
7073
7074 # Extract the first word of "groff", so it can be a program name with args.
7075 set dummy groff; ac_word=$2
7076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7078 if test "${ac_cv_path_GROFF+set}" = set; then
7079   echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7081   case $GROFF in
7082   [\\/]* | ?:[\\/]*)
7083   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7084   ;;
7085   *)
7086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7088 do
7089   IFS=$as_save_IFS
7090   test -z "$as_dir" && as_dir=.
7091   for ac_exec_ext in '' $ac_executable_extensions; do
7092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7093     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7095     break 2
7096   fi
7097 done
7098 done
7099 IFS=$as_save_IFS
7100
7101   ;;
7102 esac
7103 fi
7104 GROFF=$ac_cv_path_GROFF
7105 if test -n "$GROFF"; then
7106   { echo "$as_me:$LINENO: result: $GROFF" >&5
7107 echo "${ECHO_T}$GROFF" >&6; }
7108 else
7109   { echo "$as_me:$LINENO: result: no" >&5
7110 echo "${ECHO_T}no" >&6; }
7111 fi
7112
7113
7114 # Extract the first word of "gzip", so it can be a program name with args.
7115 set dummy gzip; ac_word=$2
7116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7118 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7119   echo $ECHO_N "(cached) $ECHO_C" >&6
7120 else
7121   case $GZIPBIN in
7122   [\\/]* | ?:[\\/]*)
7123   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7124   ;;
7125   *)
7126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7128 do
7129   IFS=$as_save_IFS
7130   test -z "$as_dir" && as_dir=.
7131   for ac_exec_ext in '' $ac_executable_extensions; do
7132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7133     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7135     break 2
7136   fi
7137 done
7138 done
7139 IFS=$as_save_IFS
7140
7141   ;;
7142 esac
7143 fi
7144 GZIPBIN=$ac_cv_path_GZIPBIN
7145 if test -n "$GZIPBIN"; then
7146   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7147 echo "${ECHO_T}$GZIPBIN" >&6; }
7148 else
7149   { echo "$as_me:$LINENO: result: no" >&5
7150 echo "${ECHO_T}no" >&6; }
7151 fi
7152
7153
7154 # Extract the first word of "pod2html", so it can be a program name with args.
7155 set dummy pod2html; ac_word=$2
7156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7158 if test "${ac_cv_path_POD2HTML+set}" = set; then
7159   echo $ECHO_N "(cached) $ECHO_C" >&6
7160 else
7161   case $POD2HTML in
7162   [\\/]* | ?:[\\/]*)
7163   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7164   ;;
7165   *)
7166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 for as_dir in $PATH
7168 do
7169   IFS=$as_save_IFS
7170   test -z "$as_dir" && as_dir=.
7171   for ac_exec_ext in '' $ac_executable_extensions; do
7172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7173     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7175     break 2
7176   fi
7177 done
7178 done
7179 IFS=$as_save_IFS
7180
7181   ;;
7182 esac
7183 fi
7184 POD2HTML=$ac_cv_path_POD2HTML
7185 if test -n "$POD2HTML"; then
7186   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7187 echo "${ECHO_T}$POD2HTML" >&6; }
7188 else
7189   { echo "$as_me:$LINENO: result: no" >&5
7190 echo "${ECHO_T}no" >&6; }
7191 fi
7192
7193
7194 # Extract the first word of "pod2man", so it can be a program name with args.
7195 set dummy pod2man; ac_word=$2
7196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7198 if test "${ac_cv_path_POD2MAN+set}" = set; then
7199   echo $ECHO_N "(cached) $ECHO_C" >&6
7200 else
7201   case $POD2MAN in
7202   [\\/]* | ?:[\\/]*)
7203   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7204   ;;
7205   *)
7206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207 for as_dir in $PATH
7208 do
7209   IFS=$as_save_IFS
7210   test -z "$as_dir" && as_dir=.
7211   for ac_exec_ext in '' $ac_executable_extensions; do
7212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7213     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7215     break 2
7216   fi
7217 done
7218 done
7219 IFS=$as_save_IFS
7220
7221   ;;
7222 esac
7223 fi
7224 POD2MAN=$ac_cv_path_POD2MAN
7225 if test -n "$POD2MAN"; then
7226   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7227 echo "${ECHO_T}$POD2MAN" >&6; }
7228 else
7229   { echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6; }
7231 fi
7232
7233
7234 # Extract the first word of "pdfroff", so it can be a program name with args.
7235 set dummy pdfroff; ac_word=$2
7236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7238 if test "${ac_cv_path_PDFROFF+set}" = set; then
7239   echo $ECHO_N "(cached) $ECHO_C" >&6
7240 else
7241   case $PDFROFF in
7242   [\\/]* | ?:[\\/]*)
7243   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7244   ;;
7245   *)
7246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 for as_dir in $PATH
7248 do
7249   IFS=$as_save_IFS
7250   test -z "$as_dir" && as_dir=.
7251   for ac_exec_ext in '' $ac_executable_extensions; do
7252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7253     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7255     break 2
7256   fi
7257 done
7258 done
7259 IFS=$as_save_IFS
7260
7261   ;;
7262 esac
7263 fi
7264 PDFROFF=$ac_cv_path_PDFROFF
7265 if test -n "$PDFROFF"; then
7266   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7267 echo "${ECHO_T}$PDFROFF" >&6; }
7268 else
7269   { echo "$as_me:$LINENO: result: no" >&5
7270 echo "${ECHO_T}no" >&6; }
7271 fi
7272
7273
7274 # Extract the first word of "runtest", so it can be a program name with args.
7275 set dummy runtest; ac_word=$2
7276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7278 if test "${ac_cv_path_RUNTEST+set}" = set; then
7279   echo $ECHO_N "(cached) $ECHO_C" >&6
7280 else
7281   case $RUNTEST in
7282   [\\/]* | ?:[\\/]*)
7283   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7284   ;;
7285   *)
7286   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 for as_dir in $PATH
7288 do
7289   IFS=$as_save_IFS
7290   test -z "$as_dir" && as_dir=.
7291   for ac_exec_ext in '' $ac_executable_extensions; do
7292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7293     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7295     break 2
7296   fi
7297 done
7298 done
7299 IFS=$as_save_IFS
7300
7301   ;;
7302 esac
7303 fi
7304 RUNTEST=$ac_cv_path_RUNTEST
7305 if test -n "$RUNTEST"; then
7306   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7307 echo "${ECHO_T}$RUNTEST" >&6; }
7308 else
7309   { echo "$as_me:$LINENO: result: no" >&5
7310 echo "${ECHO_T}no" >&6; }
7311 fi
7312
7313
7314
7315 no_itcl=true
7316 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7317 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7318
7319 # Check whether --with-tclinclude was given.
7320 if test "${with_tclinclude+set}" = set; then
7321   withval=$with_tclinclude; with_tclinclude=${withval}
7322 else
7323   with_tclinclude=''
7324 fi
7325
7326 if test "${ac_cv_path_tclsh+set}" = set; then
7327   echo $ECHO_N "(cached) $ECHO_C" >&6
7328 else
7329
7330 if test x"${with_tclinclude}" != x ; then
7331   if test -f ${with_tclinclude}/tclsh ; then
7332     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7333   elif test -f ${with_tclinclude}/src/tclsh ; then
7334     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7335   else
7336     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7337 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7338    { (exit 1); exit 1; }; }
7339   fi
7340 fi
7341 fi
7342
7343
7344 if test x"${ac_cv_path_tclsh}" = x ; then
7345   { echo "$as_me:$LINENO: result: none" >&5
7346 echo "${ECHO_T}none" >&6; }
7347   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
7348 do
7349   # Extract the first word of "$ac_prog", so it can be a program name with args.
7350 set dummy $ac_prog; ac_word=$2
7351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7353 if test "${ac_cv_path_TCLSH+set}" = set; then
7354   echo $ECHO_N "(cached) $ECHO_C" >&6
7355 else
7356   case $TCLSH in
7357   [\\/]* | ?:[\\/]*)
7358   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7359   ;;
7360   *)
7361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7363 do
7364   IFS=$as_save_IFS
7365   test -z "$as_dir" && as_dir=.
7366   for ac_exec_ext in '' $ac_executable_extensions; do
7367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7368     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7370     break 2
7371   fi
7372 done
7373 done
7374 IFS=$as_save_IFS
7375
7376   ;;
7377 esac
7378 fi
7379 TCLSH=$ac_cv_path_TCLSH
7380 if test -n "$TCLSH"; then
7381   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7382 echo "${ECHO_T}$TCLSH" >&6; }
7383 else
7384   { echo "$as_me:$LINENO: result: no" >&5
7385 echo "${ECHO_T}no" >&6; }
7386 fi
7387
7388
7389   test -n "$TCLSH" && break
7390 done
7391
7392   if test x"${TCLSH}" = x ; then
7393     ac_cv_path_tclsh='';
7394   else
7395     ac_cv_path_tclsh="${TCLSH}";
7396   fi
7397 else
7398   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7399 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7400   TCLSH="${ac_cv_path_tclsh}"
7401
7402 fi
7403
7404 # Extract the first word of "zip", so it can be a program name with args.
7405 set dummy zip; ac_word=$2
7406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7408 if test "${ac_cv_path_ZIP+set}" = set; then
7409   echo $ECHO_N "(cached) $ECHO_C" >&6
7410 else
7411   case $ZIP in
7412   [\\/]* | ?:[\\/]*)
7413   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7414   ;;
7415   *)
7416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 for as_dir in $PATH
7418 do
7419   IFS=$as_save_IFS
7420   test -z "$as_dir" && as_dir=.
7421   for ac_exec_ext in '' $ac_executable_extensions; do
7422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7423     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7425     break 2
7426   fi
7427 done
7428 done
7429 IFS=$as_save_IFS
7430
7431   ;;
7432 esac
7433 fi
7434 ZIP=$ac_cv_path_ZIP
7435 if test -n "$ZIP"; then
7436   { echo "$as_me:$LINENO: result: $ZIP" >&5
7437 echo "${ECHO_T}$ZIP" >&6; }
7438 else
7439   { echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6; }
7441 fi
7442
7443
7444 for ac_prog in ocamlc
7445 do
7446   # Extract the first word of "$ac_prog", so it can be a program name with args.
7447 set dummy $ac_prog; ac_word=$2
7448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7450 if test "${ac_cv_path_OCAMLC+set}" = set; then
7451   echo $ECHO_N "(cached) $ECHO_C" >&6
7452 else
7453   case $OCAMLC in
7454   [\\/]* | ?:[\\/]*)
7455   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7456   ;;
7457   *)
7458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7460 do
7461   IFS=$as_save_IFS
7462   test -z "$as_dir" && as_dir=.
7463   for ac_exec_ext in '' $ac_executable_extensions; do
7464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7465     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467     break 2
7468   fi
7469 done
7470 done
7471 IFS=$as_save_IFS
7472
7473   ;;
7474 esac
7475 fi
7476 OCAMLC=$ac_cv_path_OCAMLC
7477 if test -n "$OCAMLC"; then
7478   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7479 echo "${ECHO_T}$OCAMLC" >&6; }
7480 else
7481   { echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6; }
7483 fi
7484
7485
7486   test -n "$OCAMLC" && break
7487 done
7488
7489 for ac_prog in ocamlopt
7490 do
7491   # Extract the first word of "$ac_prog", so it can be a program name with args.
7492 set dummy $ac_prog; ac_word=$2
7493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7495 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7496   echo $ECHO_N "(cached) $ECHO_C" >&6
7497 else
7498   case $OCAMLOPT in
7499   [\\/]* | ?:[\\/]*)
7500   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7501   ;;
7502   *)
7503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506   IFS=$as_save_IFS
7507   test -z "$as_dir" && as_dir=.
7508   for ac_exec_ext in '' $ac_executable_extensions; do
7509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7510     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7512     break 2
7513   fi
7514 done
7515 done
7516 IFS=$as_save_IFS
7517
7518   ;;
7519 esac
7520 fi
7521 OCAMLOPT=$ac_cv_path_OCAMLOPT
7522 if test -n "$OCAMLOPT"; then
7523   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7524 echo "${ECHO_T}$OCAMLOPT" >&6; }
7525 else
7526   { echo "$as_me:$LINENO: result: no" >&5
7527 echo "${ECHO_T}no" >&6; }
7528 fi
7529
7530
7531   test -n "$OCAMLOPT" && break
7532 done
7533
7534 for ac_prog in ocamldep
7535 do
7536   # Extract the first word of "$ac_prog", so it can be a program name with args.
7537 set dummy $ac_prog; ac_word=$2
7538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7540 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7541   echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543   case $OCAMLDEP in
7544   [\\/]* | ?:[\\/]*)
7545   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7546   ;;
7547   *)
7548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH
7550 do
7551   IFS=$as_save_IFS
7552   test -z "$as_dir" && as_dir=.
7553   for ac_exec_ext in '' $ac_executable_extensions; do
7554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7555     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7557     break 2
7558   fi
7559 done
7560 done
7561 IFS=$as_save_IFS
7562
7563   ;;
7564 esac
7565 fi
7566 OCAMLDEP=$ac_cv_path_OCAMLDEP
7567 if test -n "$OCAMLDEP"; then
7568   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7569 echo "${ECHO_T}$OCAMLDEP" >&6; }
7570 else
7571   { echo "$as_me:$LINENO: result: no" >&5
7572 echo "${ECHO_T}no" >&6; }
7573 fi
7574
7575
7576   test -n "$OCAMLDEP" && break
7577 done
7578
7579 for ac_prog in ocamldoc
7580 do
7581   # Extract the first word of "$ac_prog", so it can be a program name with args.
7582 set dummy $ac_prog; ac_word=$2
7583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7585 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7586   echo $ECHO_N "(cached) $ECHO_C" >&6
7587 else
7588   case $OCAMLDOC in
7589   [\\/]* | ?:[\\/]*)
7590   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7591   ;;
7592   *)
7593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 for as_dir in $PATH
7595 do
7596   IFS=$as_save_IFS
7597   test -z "$as_dir" && as_dir=.
7598   for ac_exec_ext in '' $ac_executable_extensions; do
7599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7600     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602     break 2
7603   fi
7604 done
7605 done
7606 IFS=$as_save_IFS
7607
7608   ;;
7609 esac
7610 fi
7611 OCAMLDOC=$ac_cv_path_OCAMLDOC
7612 if test -n "$OCAMLDOC"; then
7613   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7614 echo "${ECHO_T}$OCAMLDOC" >&6; }
7615 else
7616   { echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6; }
7618 fi
7619
7620
7621   test -n "$OCAMLDOC" && break
7622 done
7623
7624 for ac_prog in gas as
7625 do
7626   # Extract the first word of "$ac_prog", so it can be a program name with args.
7627 set dummy $ac_prog; ac_word=$2
7628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7630 if test "${ac_cv_path_GAS+set}" = set; then
7631   echo $ECHO_N "(cached) $ECHO_C" >&6
7632 else
7633   case $GAS in
7634   [\\/]* | ?:[\\/]*)
7635   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7636   ;;
7637   *)
7638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 for as_dir in $PATH
7640 do
7641   IFS=$as_save_IFS
7642   test -z "$as_dir" && as_dir=.
7643   for ac_exec_ext in '' $ac_executable_extensions; do
7644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7645     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7647     break 2
7648   fi
7649 done
7650 done
7651 IFS=$as_save_IFS
7652
7653   ;;
7654 esac
7655 fi
7656 GAS=$ac_cv_path_GAS
7657 if test -n "$GAS"; then
7658   { echo "$as_me:$LINENO: result: $GAS" >&5
7659 echo "${ECHO_T}$GAS" >&6; }
7660 else
7661   { echo "$as_me:$LINENO: result: no" >&5
7662 echo "${ECHO_T}no" >&6; }
7663 fi
7664
7665
7666   test -n "$GAS" && break
7667 done
7668
7669
7670 { echo "$as_me:$LINENO: checking for linker version" >&5
7671 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7672 if test "${llvm_cv_link_version+set}" = set; then
7673   echo $ECHO_N "(cached) $ECHO_C" >&6
7674 else
7675
7676    version_string="$(ld -v 2>&1 | head -1)"
7677
7678    # Check for ld64.
7679    if (echo "$version_string" | grep -q "ld64"); then
7680      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7681    else
7682      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7683    fi
7684
7685 fi
7686 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7687 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7688
7689 cat >>confdefs.h <<_ACEOF
7690 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7691 _ACEOF
7692
7693
7694
7695 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7696 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7697 if test "${llvm_cv_link_use_r+set}" = set; then
7698   echo $ECHO_N "(cached) $ECHO_C" >&6
7699 else
7700    ac_ext=c
7701 ac_cpp='$CPP $CPPFLAGS'
7702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7705
7706   oldcflags="$CFLAGS"
7707   CFLAGS="$CFLAGS -Wl,-R."
7708   cat >conftest.$ac_ext <<_ACEOF
7709 /* confdefs.h.  */
7710 _ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h.  */
7714
7715 int
7716 main ()
7717 {
7718
7719   ;
7720   return 0;
7721 }
7722 _ACEOF
7723 rm -f conftest.$ac_objext conftest$ac_exeext
7724 if { (ac_try="$ac_link"
7725 case "(($ac_try" in
7726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7727   *) ac_try_echo=$ac_try;;
7728 esac
7729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7730   (eval "$ac_link") 2>conftest.er1
7731   ac_status=$?
7732   grep -v '^ *+' conftest.er1 >conftest.err
7733   rm -f conftest.er1
7734   cat conftest.err >&5
7735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736   (exit $ac_status); } &&
7737          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7738   { (case "(($ac_try" in
7739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740   *) ac_try_echo=$ac_try;;
7741 esac
7742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7743   (eval "$ac_try") 2>&5
7744   ac_status=$?
7745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746   (exit $ac_status); }; } &&
7747          { ac_try='test -s conftest$ac_exeext'
7748   { (case "(($ac_try" in
7749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7750   *) ac_try_echo=$ac_try;;
7751 esac
7752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7753   (eval "$ac_try") 2>&5
7754   ac_status=$?
7755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756   (exit $ac_status); }; }; then
7757   llvm_cv_link_use_r=yes
7758 else
7759   echo "$as_me: failed program was:" >&5
7760 sed 's/^/| /' conftest.$ac_ext >&5
7761
7762         llvm_cv_link_use_r=no
7763 fi
7764
7765 rm -f core conftest.err conftest.$ac_objext \
7766       conftest$ac_exeext conftest.$ac_ext
7767   CFLAGS="$oldcflags"
7768   ac_ext=c
7769 ac_cpp='$CPP $CPPFLAGS'
7770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7773
7774
7775 fi
7776 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7777 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7778 if test "$llvm_cv_link_use_r" = yes ; then
7779
7780 cat >>confdefs.h <<\_ACEOF
7781 #define HAVE_LINK_R 1
7782 _ACEOF
7783
7784   fi
7785
7786
7787 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7788 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7789 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7790   echo $ECHO_N "(cached) $ECHO_C" >&6
7791 else
7792    ac_ext=c
7793 ac_cpp='$CPP $CPPFLAGS'
7794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7797
7798   oldcflags="$CFLAGS"
7799   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7800   cat >conftest.$ac_ext <<_ACEOF
7801 /* confdefs.h.  */
7802 _ACEOF
7803 cat confdefs.h >>conftest.$ac_ext
7804 cat >>conftest.$ac_ext <<_ACEOF
7805 /* end confdefs.h.  */
7806
7807 int
7808 main ()
7809 {
7810
7811   ;
7812   return 0;
7813 }
7814 _ACEOF
7815 rm -f conftest.$ac_objext conftest$ac_exeext
7816 if { (ac_try="$ac_link"
7817 case "(($ac_try" in
7818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7819   *) ac_try_echo=$ac_try;;
7820 esac
7821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7822   (eval "$ac_link") 2>conftest.er1
7823   ac_status=$?
7824   grep -v '^ *+' conftest.er1 >conftest.err
7825   rm -f conftest.er1
7826   cat conftest.err >&5
7827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828   (exit $ac_status); } &&
7829          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7830   { (case "(($ac_try" in
7831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7832   *) ac_try_echo=$ac_try;;
7833 esac
7834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7835   (eval "$ac_try") 2>&5
7836   ac_status=$?
7837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838   (exit $ac_status); }; } &&
7839          { ac_try='test -s conftest$ac_exeext'
7840   { (case "(($ac_try" in
7841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842   *) ac_try_echo=$ac_try;;
7843 esac
7844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845   (eval "$ac_try") 2>&5
7846   ac_status=$?
7847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848   (exit $ac_status); }; }; then
7849   llvm_cv_link_use_export_dynamic=yes
7850 else
7851   echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7853
7854         llvm_cv_link_use_export_dynamic=no
7855 fi
7856
7857 rm -f core conftest.err conftest.$ac_objext \
7858       conftest$ac_exeext conftest.$ac_ext
7859   CFLAGS="$oldcflags"
7860   ac_ext=c
7861 ac_cpp='$CPP $CPPFLAGS'
7862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7865
7866
7867 fi
7868 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7869 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7870 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7871
7872 cat >>confdefs.h <<\_ACEOF
7873 #define HAVE_LINK_EXPORT_DYNAMIC 1
7874 _ACEOF
7875
7876   fi
7877
7878
7879 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7880 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7881 if test "${llvm_cv_link_use_version_script+set}" = set; then
7882   echo $ECHO_N "(cached) $ECHO_C" >&6
7883 else
7884    ac_ext=c
7885 ac_cpp='$CPP $CPPFLAGS'
7886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7889
7890   oldcflags="$CFLAGS"
7891
7892   # The following code is from the autoconf manual,
7893   # "11.13: Limitations of Usual Tools".
7894   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7895   # Use mktemp if possible; otherwise fall back on mkdir,
7896   # with $RANDOM to make collisions less likely.
7897   : ${TMPDIR=/tmp}
7898   {
7899     tmp=`
7900       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7901     ` &&
7902     test -n "$tmp" && test -d "$tmp"
7903   } || {
7904     tmp=$TMPDIR/foo$$-$RANDOM
7905     (umask 077 && mkdir "$tmp")
7906   } || exit $?
7907
7908   echo "{" > "$tmp/export.map"
7909   echo "  global: main;" >> "$tmp/export.map"
7910   echo "  local: *;" >> "$tmp/export.map"
7911   echo "};" >> "$tmp/export.map"
7912
7913   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7914   cat >conftest.$ac_ext <<_ACEOF
7915 /* confdefs.h.  */
7916 _ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h.  */
7920
7921 int
7922 main ()
7923 {
7924
7925   ;
7926   return 0;
7927 }
7928 _ACEOF
7929 rm -f conftest.$ac_objext conftest$ac_exeext
7930 if { (ac_try="$ac_link"
7931 case "(($ac_try" in
7932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933   *) ac_try_echo=$ac_try;;
7934 esac
7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936   (eval "$ac_link") 2>conftest.er1
7937   ac_status=$?
7938   grep -v '^ *+' conftest.er1 >conftest.err
7939   rm -f conftest.er1
7940   cat conftest.err >&5
7941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942   (exit $ac_status); } &&
7943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7944   { (case "(($ac_try" in
7945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7946   *) ac_try_echo=$ac_try;;
7947 esac
7948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7949   (eval "$ac_try") 2>&5
7950   ac_status=$?
7951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952   (exit $ac_status); }; } &&
7953          { ac_try='test -s conftest$ac_exeext'
7954   { (case "(($ac_try" in
7955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956   *) ac_try_echo=$ac_try;;
7957 esac
7958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7959   (eval "$ac_try") 2>&5
7960   ac_status=$?
7961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962   (exit $ac_status); }; }; then
7963   llvm_cv_link_use_version_script=yes
7964 else
7965   echo "$as_me: failed program was:" >&5
7966 sed 's/^/| /' conftest.$ac_ext >&5
7967
7968         llvm_cv_link_use_version_script=no
7969 fi
7970
7971 rm -f core conftest.err conftest.$ac_objext \
7972       conftest$ac_exeext conftest.$ac_ext
7973   rm "$tmp/export.map"
7974   rmdir "$tmp"
7975   CFLAGS="$oldcflags"
7976   ac_ext=c
7977 ac_cpp='$CPP $CPPFLAGS'
7978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7981
7982
7983 fi
7984 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7985 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7986 if test "$llvm_cv_link_use_version_script" = yes ; then
7987   HAVE_LINK_VERSION_SCRIPT=1
7988
7989   fi
7990
7991
7992
7993
7994 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7995 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7996 if test "${ac_cv_c_const+set}" = set; then
7997   echo $ECHO_N "(cached) $ECHO_C" >&6
7998 else
7999   cat >conftest.$ac_ext <<_ACEOF
8000 /* confdefs.h.  */
8001 _ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h.  */
8005
8006 int
8007 main ()
8008 {
8009 /* FIXME: Include the comments suggested by Paul. */
8010 #ifndef __cplusplus
8011   /* Ultrix mips cc rejects this.  */
8012   typedef int charset[2];
8013   const charset x;
8014   /* SunOS 4.1.1 cc rejects this.  */
8015   char const *const *ccp;
8016   char **p;
8017   /* NEC SVR4.0.2 mips cc rejects this.  */
8018   struct point {int x, y;};
8019   static struct point const zero = {0,0};
8020   /* AIX XL C 1.02.0.0 rejects this.
8021      It does not let you subtract one const X* pointer from another in
8022      an arm of an if-expression whose if-part is not a constant
8023      expression */
8024   const char *g = "string";
8025   ccp = &g + (g ? g-g : 0);
8026   /* HPUX 7.0 cc rejects these. */
8027   ++ccp;
8028   p = (char**) ccp;
8029   ccp = (char const *const *) p;
8030   { /* SCO 3.2v4 cc rejects this.  */
8031     char *t;
8032     char const *s = 0 ? (char *) 0 : (char const *) 0;
8033
8034     *t++ = 0;
8035     if (s) return 0;
8036   }
8037   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8038     int x[] = {25, 17};
8039     const int *foo = &x[0];
8040     ++foo;
8041   }
8042   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8043     typedef const int *iptr;
8044     iptr p = 0;
8045     ++p;
8046   }
8047   { /* AIX XL C 1.02.0.0 rejects this saying
8048        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8049     struct s { int j; const int *ap[3]; };
8050     struct s *b; b->j = 5;
8051   }
8052   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8053     const int foo = 10;
8054     if (!foo) return 0;
8055   }
8056   return !x[0] && !zero.x;
8057 #endif
8058
8059   ;
8060   return 0;
8061 }
8062 _ACEOF
8063 rm -f conftest.$ac_objext
8064 if { (ac_try="$ac_compile"
8065 case "(($ac_try" in
8066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8067   *) ac_try_echo=$ac_try;;
8068 esac
8069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8070   (eval "$ac_compile") 2>conftest.er1
8071   ac_status=$?
8072   grep -v '^ *+' conftest.er1 >conftest.err
8073   rm -f conftest.er1
8074   cat conftest.err >&5
8075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076   (exit $ac_status); } &&
8077          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8078   { (case "(($ac_try" in
8079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8080   *) ac_try_echo=$ac_try;;
8081 esac
8082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8083   (eval "$ac_try") 2>&5
8084   ac_status=$?
8085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086   (exit $ac_status); }; } &&
8087          { ac_try='test -s conftest.$ac_objext'
8088   { (case "(($ac_try" in
8089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8090   *) ac_try_echo=$ac_try;;
8091 esac
8092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8093   (eval "$ac_try") 2>&5
8094   ac_status=$?
8095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096   (exit $ac_status); }; }; then
8097   ac_cv_c_const=yes
8098 else
8099   echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8101
8102         ac_cv_c_const=no
8103 fi
8104
8105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106 fi
8107 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8108 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8109 if test $ac_cv_c_const = no; then
8110
8111 cat >>confdefs.h <<\_ACEOF
8112 #define const
8113 _ACEOF
8114
8115 fi
8116
8117
8118
8119
8120
8121
8122 ac_header_dirent=no
8123 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8124   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8125 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8126 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8128   echo $ECHO_N "(cached) $ECHO_C" >&6
8129 else
8130   cat >conftest.$ac_ext <<_ACEOF
8131 /* confdefs.h.  */
8132 _ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h.  */
8136 #include <sys/types.h>
8137 #include <$ac_hdr>
8138
8139 int
8140 main ()
8141 {
8142 if ((DIR *) 0)
8143 return 0;
8144   ;
8145   return 0;
8146 }
8147 _ACEOF
8148 rm -f conftest.$ac_objext
8149 if { (ac_try="$ac_compile"
8150 case "(($ac_try" in
8151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8152   *) ac_try_echo=$ac_try;;
8153 esac
8154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8155   (eval "$ac_compile") 2>conftest.er1
8156   ac_status=$?
8157   grep -v '^ *+' conftest.er1 >conftest.err
8158   rm -f conftest.er1
8159   cat conftest.err >&5
8160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161   (exit $ac_status); } &&
8162          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8163   { (case "(($ac_try" in
8164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165   *) ac_try_echo=$ac_try;;
8166 esac
8167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8168   (eval "$ac_try") 2>&5
8169   ac_status=$?
8170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171   (exit $ac_status); }; } &&
8172          { ac_try='test -s conftest.$ac_objext'
8173   { (case "(($ac_try" in
8174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8175   *) ac_try_echo=$ac_try;;
8176 esac
8177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8178   (eval "$ac_try") 2>&5
8179   ac_status=$?
8180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181   (exit $ac_status); }; }; then
8182   eval "$as_ac_Header=yes"
8183 else
8184   echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8186
8187         eval "$as_ac_Header=no"
8188 fi
8189
8190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8191 fi
8192 ac_res=`eval echo '${'$as_ac_Header'}'`
8193                { echo "$as_me:$LINENO: result: $ac_res" >&5
8194 echo "${ECHO_T}$ac_res" >&6; }
8195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8196   cat >>confdefs.h <<_ACEOF
8197 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8198 _ACEOF
8199
8200 ac_header_dirent=$ac_hdr; break
8201 fi
8202
8203 done
8204 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8205 if test $ac_header_dirent = dirent.h; then
8206   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8207 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8208 if test "${ac_cv_search_opendir+set}" = set; then
8209   echo $ECHO_N "(cached) $ECHO_C" >&6
8210 else
8211   ac_func_search_save_LIBS=$LIBS
8212 cat >conftest.$ac_ext <<_ACEOF
8213 /* confdefs.h.  */
8214 _ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h.  */
8218
8219 /* Override any GCC internal prototype to avoid an error.
8220    Use char because int might match the return type of a GCC
8221    builtin and then its argument prototype would still apply.  */
8222 #ifdef __cplusplus
8223 extern "C"
8224 #endif
8225 char opendir ();
8226 int
8227 main ()
8228 {
8229 return opendir ();
8230   ;
8231   return 0;
8232 }
8233 _ACEOF
8234 for ac_lib in '' dir; do
8235   if test -z "$ac_lib"; then
8236     ac_res="none required"
8237   else
8238     ac_res=-l$ac_lib
8239     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8240   fi
8241   rm -f conftest.$ac_objext conftest$ac_exeext
8242 if { (ac_try="$ac_link"
8243 case "(($ac_try" in
8244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8245   *) ac_try_echo=$ac_try;;
8246 esac
8247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8248   (eval "$ac_link") 2>conftest.er1
8249   ac_status=$?
8250   grep -v '^ *+' conftest.er1 >conftest.err
8251   rm -f conftest.er1
8252   cat conftest.err >&5
8253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254   (exit $ac_status); } &&
8255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8256   { (case "(($ac_try" in
8257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258   *) ac_try_echo=$ac_try;;
8259 esac
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261   (eval "$ac_try") 2>&5
8262   ac_status=$?
8263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264   (exit $ac_status); }; } &&
8265          { ac_try='test -s conftest$ac_exeext'
8266   { (case "(($ac_try" in
8267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268   *) ac_try_echo=$ac_try;;
8269 esac
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271   (eval "$ac_try") 2>&5
8272   ac_status=$?
8273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274   (exit $ac_status); }; }; then
8275   ac_cv_search_opendir=$ac_res
8276 else
8277   echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8279
8280
8281 fi
8282
8283 rm -f core conftest.err conftest.$ac_objext \
8284       conftest$ac_exeext
8285   if test "${ac_cv_search_opendir+set}" = set; then
8286   break
8287 fi
8288 done
8289 if test "${ac_cv_search_opendir+set}" = set; then
8290   :
8291 else
8292   ac_cv_search_opendir=no
8293 fi
8294 rm conftest.$ac_ext
8295 LIBS=$ac_func_search_save_LIBS
8296 fi
8297 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8298 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8299 ac_res=$ac_cv_search_opendir
8300 if test "$ac_res" != no; then
8301   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8302
8303 fi
8304
8305 else
8306   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8307 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8308 if test "${ac_cv_search_opendir+set}" = set; then
8309   echo $ECHO_N "(cached) $ECHO_C" >&6
8310 else
8311   ac_func_search_save_LIBS=$LIBS
8312 cat >conftest.$ac_ext <<_ACEOF
8313 /* confdefs.h.  */
8314 _ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h.  */
8318
8319 /* Override any GCC internal prototype to avoid an error.
8320    Use char because int might match the return type of a GCC
8321    builtin and then its argument prototype would still apply.  */
8322 #ifdef __cplusplus
8323 extern "C"
8324 #endif
8325 char opendir ();
8326 int
8327 main ()
8328 {
8329 return opendir ();
8330   ;
8331   return 0;
8332 }
8333 _ACEOF
8334 for ac_lib in '' x; do
8335   if test -z "$ac_lib"; then
8336     ac_res="none required"
8337   else
8338     ac_res=-l$ac_lib
8339     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8340   fi
8341   rm -f conftest.$ac_objext conftest$ac_exeext
8342 if { (ac_try="$ac_link"
8343 case "(($ac_try" in
8344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8345   *) ac_try_echo=$ac_try;;
8346 esac
8347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8348   (eval "$ac_link") 2>conftest.er1
8349   ac_status=$?
8350   grep -v '^ *+' conftest.er1 >conftest.err
8351   rm -f conftest.er1
8352   cat conftest.err >&5
8353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354   (exit $ac_status); } &&
8355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8356   { (case "(($ac_try" in
8357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8358   *) ac_try_echo=$ac_try;;
8359 esac
8360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8361   (eval "$ac_try") 2>&5
8362   ac_status=$?
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); }; } &&
8365          { ac_try='test -s conftest$ac_exeext'
8366   { (case "(($ac_try" in
8367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368   *) ac_try_echo=$ac_try;;
8369 esac
8370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371   (eval "$ac_try") 2>&5
8372   ac_status=$?
8373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374   (exit $ac_status); }; }; then
8375   ac_cv_search_opendir=$ac_res
8376 else
8377   echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8379
8380
8381 fi
8382
8383 rm -f core conftest.err conftest.$ac_objext \
8384       conftest$ac_exeext
8385   if test "${ac_cv_search_opendir+set}" = set; then
8386   break
8387 fi
8388 done
8389 if test "${ac_cv_search_opendir+set}" = set; then
8390   :
8391 else
8392   ac_cv_search_opendir=no
8393 fi
8394 rm conftest.$ac_ext
8395 LIBS=$ac_func_search_save_LIBS
8396 fi
8397 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8398 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8399 ac_res=$ac_cv_search_opendir
8400 if test "$ac_res" != no; then
8401   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8402
8403 fi
8404
8405 fi
8406
8407
8408 for ac_header in dlfcn.h
8409 do
8410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8412   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8415   echo $ECHO_N "(cached) $ECHO_C" >&6
8416 fi
8417 ac_res=`eval echo '${'$as_ac_Header'}'`
8418                { echo "$as_me:$LINENO: result: $ac_res" >&5
8419 echo "${ECHO_T}$ac_res" >&6; }
8420 else
8421   # Is the header compilable?
8422 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8424 cat >conftest.$ac_ext <<_ACEOF
8425 /* confdefs.h.  */
8426 _ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h.  */
8430 $ac_includes_default
8431 #include <$ac_header>
8432 _ACEOF
8433 rm -f conftest.$ac_objext
8434 if { (ac_try="$ac_compile"
8435 case "(($ac_try" in
8436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437   *) ac_try_echo=$ac_try;;
8438 esac
8439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440   (eval "$ac_compile") 2>conftest.er1
8441   ac_status=$?
8442   grep -v '^ *+' conftest.er1 >conftest.err
8443   rm -f conftest.er1
8444   cat conftest.err >&5
8445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446   (exit $ac_status); } &&
8447          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8448   { (case "(($ac_try" in
8449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450   *) ac_try_echo=$ac_try;;
8451 esac
8452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453   (eval "$ac_try") 2>&5
8454   ac_status=$?
8455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456   (exit $ac_status); }; } &&
8457          { ac_try='test -s conftest.$ac_objext'
8458   { (case "(($ac_try" in
8459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460   *) ac_try_echo=$ac_try;;
8461 esac
8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463   (eval "$ac_try") 2>&5
8464   ac_status=$?
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); }; }; then
8467   ac_header_compiler=yes
8468 else
8469   echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8471
8472         ac_header_compiler=no
8473 fi
8474
8475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8476 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8477 echo "${ECHO_T}$ac_header_compiler" >&6; }
8478
8479 # Is the header present?
8480 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8482 cat >conftest.$ac_ext <<_ACEOF
8483 /* confdefs.h.  */
8484 _ACEOF
8485 cat confdefs.h >>conftest.$ac_ext
8486 cat >>conftest.$ac_ext <<_ACEOF
8487 /* end confdefs.h.  */
8488 #include <$ac_header>
8489 _ACEOF
8490 if { (ac_try="$ac_cpp conftest.$ac_ext"
8491 case "(($ac_try" in
8492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493   *) ac_try_echo=$ac_try;;
8494 esac
8495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8497   ac_status=$?
8498   grep -v '^ *+' conftest.er1 >conftest.err
8499   rm -f conftest.er1
8500   cat conftest.err >&5
8501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502   (exit $ac_status); } >/dev/null; then
8503   if test -s conftest.err; then
8504     ac_cpp_err=$ac_c_preproc_warn_flag
8505     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8506   else
8507     ac_cpp_err=
8508   fi
8509 else
8510   ac_cpp_err=yes
8511 fi
8512 if test -z "$ac_cpp_err"; then
8513   ac_header_preproc=yes
8514 else
8515   echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8517
8518   ac_header_preproc=no
8519 fi
8520
8521 rm -f conftest.err conftest.$ac_ext
8522 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8523 echo "${ECHO_T}$ac_header_preproc" >&6; }
8524
8525 # So?  What about this header?
8526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8527   yes:no: )
8528     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8530     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8531 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8532     ac_header_preproc=yes
8533     ;;
8534   no:yes:* )
8535     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8537     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8538 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8539     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8540 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8541     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8542 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8543     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8545     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8546 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8547     ( cat <<\_ASBOX
8548 ## ------------------------------ ##
8549 ## Report this to bugs@yourdomain ##
8550 ## ------------------------------ ##
8551 _ASBOX
8552      ) | sed "s/^/$as_me: WARNING:     /" >&2
8553     ;;
8554 esac
8555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8558   echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560   eval "$as_ac_Header=\$ac_header_preproc"
8561 fi
8562 ac_res=`eval echo '${'$as_ac_Header'}'`
8563                { echo "$as_me:$LINENO: result: $ac_res" >&5
8564 echo "${ECHO_T}$ac_res" >&6; }
8565
8566 fi
8567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8568   cat >>confdefs.h <<_ACEOF
8569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8570 _ACEOF
8571
8572 fi
8573
8574 done
8575
8576 # Check whether --enable-ltdl-install was given.
8577 if test "${enable_ltdl_install+set}" = set; then
8578   enableval=$enable_ltdl_install;
8579 fi
8580
8581
8582
8583
8584 if test x"${enable_ltdl_install-no}" != xno; then
8585   INSTALL_LTDL_TRUE=
8586   INSTALL_LTDL_FALSE='#'
8587 else
8588   INSTALL_LTDL_TRUE='#'
8589   INSTALL_LTDL_FALSE=
8590 fi
8591
8592
8593
8594 if test x"${enable_ltdl_convenience-no}" != xno; then
8595   CONVENIENCE_LTDL_TRUE=
8596   CONVENIENCE_LTDL_FALSE='#'
8597 else
8598   CONVENIENCE_LTDL_TRUE='#'
8599   CONVENIENCE_LTDL_FALSE=
8600 fi
8601
8602
8603 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8604 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8605 library_names_spec=
8606 libname_spec='lib$name'
8607 soname_spec=
8608 shrext_cmds=".so"
8609 postinstall_cmds=
8610 postuninstall_cmds=
8611 finish_cmds=
8612 finish_eval=
8613 shlibpath_var=
8614 shlibpath_overrides_runpath=unknown
8615 version_type=none
8616 dynamic_linker="$host_os ld.so"
8617 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8618 if test "$GCC" = yes; then
8619   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8620   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8621     # if the path contains ";" then we assume it to be the separator
8622     # otherwise default to the standard path separator (i.e. ":") - it is
8623     # assumed that no part of a normal pathname contains ";" but that should
8624     # okay in the real world where ";" in dirpaths is itself problematic.
8625     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8626   else
8627     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8628   fi
8629 else
8630   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8631 fi
8632 need_lib_prefix=unknown
8633 hardcode_into_libs=no
8634
8635 # when you set need_version to no, make sure it does not cause -set_version
8636 # flags to be left without arguments
8637 need_version=unknown
8638
8639 case $host_os in
8640 aix3*)
8641   version_type=linux
8642   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8643   shlibpath_var=LIBPATH
8644
8645   # AIX 3 has no versioning support, so we append a major version to the name.
8646   soname_spec='${libname}${release}${shared_ext}$major'
8647   ;;
8648
8649 aix4* | aix5*)
8650   version_type=linux
8651   need_lib_prefix=no
8652   need_version=no
8653   hardcode_into_libs=yes
8654   if test "$host_cpu" = ia64; then
8655     # AIX 5 supports IA64
8656     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8657     shlibpath_var=LD_LIBRARY_PATH
8658   else
8659     # With GCC up to 2.95.x, collect2 would create an import file
8660     # for dependence libraries.  The import file would start with
8661     # the line `#! .'.  This would cause the generated library to
8662     # depend on `.', always an invalid library.  This was fixed in
8663     # development snapshots of GCC prior to 3.0.
8664     case $host_os in
8665       aix4 | aix4.[01] | aix4.[01].*)
8666       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8667            echo ' yes '
8668            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8669         :
8670       else
8671         can_build_shared=no
8672       fi
8673       ;;
8674     esac
8675     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8676     # soname into executable. Probably we can add versioning support to
8677     # collect2, so additional links can be useful in future.
8678     if test "$aix_use_runtimelinking" = yes; then
8679       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8680       # instead of lib<name>.a to let people know that these are not
8681       # typical AIX shared libraries.
8682       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8683     else
8684       # We preserve .a as extension for shared libraries through AIX4.2
8685       # and later when we are not doing run time linking.
8686       library_names_spec='${libname}${release}.a $libname.a'
8687       soname_spec='${libname}${release}${shared_ext}$major'
8688     fi
8689     shlibpath_var=LIBPATH
8690   fi
8691   ;;
8692
8693 amigaos*)
8694   library_names_spec='$libname.ixlibrary $libname.a'
8695   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8696   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'
8697   ;;
8698
8699 beos*)
8700   library_names_spec='${libname}${shared_ext}'
8701   dynamic_linker="$host_os ld.so"
8702   shlibpath_var=LIBRARY_PATH
8703   ;;
8704
8705 bsdi[45]*)
8706   version_type=linux
8707   need_version=no
8708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8709   soname_spec='${libname}${release}${shared_ext}$major'
8710   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8711   shlibpath_var=LD_LIBRARY_PATH
8712   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8713   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8714   # the default ld.so.conf also contains /usr/contrib/lib and
8715   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8716   # libtool to hard-code these into programs
8717   ;;
8718
8719 cygwin* | mingw* | pw32*)
8720   version_type=windows
8721   shrext_cmds=".dll"
8722   need_version=no
8723   need_lib_prefix=no
8724
8725   case $GCC,$host_os in
8726   yes,cygwin* | yes,mingw* | yes,pw32*)
8727     library_names_spec='$libname.dll.a'
8728     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8729     postinstall_cmds='base_file=`basename \${file}`~
8730       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8731       dldir=$destdir/`dirname \$dlpath`~
8732       test -d \$dldir || mkdir -p \$dldir~
8733       $install_prog $dir/$dlname \$dldir/$dlname~
8734       chmod a+x \$dldir/$dlname'
8735     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8736       dlpath=$dir/\$dldll~
8737        $rm \$dlpath'
8738     shlibpath_overrides_runpath=yes
8739
8740     case $host_os in
8741     cygwin*)
8742       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8743       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8744       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8745       ;;
8746     mingw*)
8747       # MinGW DLLs use traditional 'lib' prefix
8748       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8749       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8750       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8751         # It is most probably a Windows format PATH printed by
8752         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8753         # path with ; separators, and with drive letters. We can handle the
8754         # drive letters (cygwin fileutils understands them), so leave them,
8755         # especially as we might pass files found there to a mingw objdump,
8756         # which wouldn't understand a cygwinified path. Ahh.
8757         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8758       else
8759         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8760       fi
8761       ;;
8762     pw32*)
8763       # pw32 DLLs use 'pw' prefix rather than 'lib'
8764       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8765       ;;
8766     esac
8767     ;;
8768
8769   *)
8770     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8771     ;;
8772   esac
8773   dynamic_linker='Win32 ld.exe'
8774   # FIXME: first we should search . and the directory the executable is in
8775   shlibpath_var=PATH
8776   ;;
8777
8778 darwin* | rhapsody*)
8779   dynamic_linker="$host_os dyld"
8780   version_type=darwin
8781   need_lib_prefix=no
8782   need_version=no
8783   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8784   soname_spec='${libname}${release}${major}$shared_ext'
8785   shlibpath_overrides_runpath=yes
8786   shlibpath_var=DYLD_LIBRARY_PATH
8787   shrext_cmds='.dylib'
8788   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8789   if test "$GCC" = yes; then
8790     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"`
8791   else
8792     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8793   fi
8794   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8795   ;;
8796
8797 dgux*)
8798   version_type=linux
8799   need_lib_prefix=no
8800   need_version=no
8801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8802   soname_spec='${libname}${release}${shared_ext}$major'
8803   shlibpath_var=LD_LIBRARY_PATH
8804   ;;
8805
8806 freebsd1.*)
8807   dynamic_linker=no
8808   ;;
8809
8810 kfreebsd*-gnu)
8811   version_type=linux
8812   need_lib_prefix=no
8813   need_version=no
8814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8815   soname_spec='${libname}${release}${shared_ext}$major'
8816   shlibpath_var=LD_LIBRARY_PATH
8817   shlibpath_overrides_runpath=no
8818   hardcode_into_libs=yes
8819   dynamic_linker='GNU ld.so'
8820   ;;
8821
8822 freebsd* | dragonfly*)
8823   # DragonFly does not have aout.  When/if they implement a new
8824   # versioning mechanism, adjust this.
8825   if test -x /usr/bin/objformat; then
8826     objformat=`/usr/bin/objformat`
8827   else
8828     case $host_os in
8829     freebsd[123].*) objformat=aout ;;
8830     *) objformat=elf ;;
8831     esac
8832   fi
8833   version_type=freebsd-$objformat
8834   case $version_type in
8835     freebsd-elf*)
8836       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8837       need_version=no
8838       need_lib_prefix=no
8839       ;;
8840     freebsd-*)
8841       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8842       need_version=yes
8843       ;;
8844   esac
8845   shlibpath_var=LD_LIBRARY_PATH
8846   case $host_os in
8847   freebsd2.*)
8848     shlibpath_overrides_runpath=yes
8849     ;;
8850   freebsd3.[01]* | freebsdelf3.[01]*)
8851     shlibpath_overrides_runpath=yes
8852     hardcode_into_libs=yes
8853     ;;
8854   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8855   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8856     shlibpath_overrides_runpath=no
8857     hardcode_into_libs=yes
8858     ;;
8859   freebsd*) # from 4.6 on
8860     shlibpath_overrides_runpath=yes
8861     hardcode_into_libs=yes
8862     ;;
8863   esac
8864   ;;
8865
8866 gnu*)
8867   version_type=linux
8868   need_lib_prefix=no
8869   need_version=no
8870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8871   soname_spec='${libname}${release}${shared_ext}$major'
8872   shlibpath_var=LD_LIBRARY_PATH
8873   hardcode_into_libs=yes
8874   ;;
8875
8876 hpux9* | hpux10* | hpux11*)
8877   # Give a soname corresponding to the major version so that dld.sl refuses to
8878   # link against other versions.
8879   version_type=sunos
8880   need_lib_prefix=no
8881   need_version=no
8882   case $host_cpu in
8883   ia64*)
8884     shrext_cmds='.so'
8885     hardcode_into_libs=yes
8886     dynamic_linker="$host_os dld.so"
8887     shlibpath_var=LD_LIBRARY_PATH
8888     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8889     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8890     soname_spec='${libname}${release}${shared_ext}$major'
8891     if test "X$HPUX_IA64_MODE" = X32; then
8892       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8893     else
8894       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8895     fi
8896     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8897     ;;
8898    hppa*64*)
8899      shrext_cmds='.sl'
8900      hardcode_into_libs=yes
8901      dynamic_linker="$host_os dld.sl"
8902      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8903      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8904      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8905      soname_spec='${libname}${release}${shared_ext}$major'
8906      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8907      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8908      ;;
8909    *)
8910     shrext_cmds='.sl'
8911     dynamic_linker="$host_os dld.sl"
8912     shlibpath_var=SHLIB_PATH
8913     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8914     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8915     soname_spec='${libname}${release}${shared_ext}$major'
8916     ;;
8917   esac
8918   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8919   postinstall_cmds='chmod 555 $lib'
8920   ;;
8921
8922 interix3*)
8923   version_type=linux
8924   need_lib_prefix=no
8925   need_version=no
8926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8927   soname_spec='${libname}${release}${shared_ext}$major'
8928   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8929   shlibpath_var=LD_LIBRARY_PATH
8930   shlibpath_overrides_runpath=no
8931   hardcode_into_libs=yes
8932   ;;
8933
8934 irix5* | irix6* | nonstopux*)
8935   case $host_os in
8936     nonstopux*) version_type=nonstopux ;;
8937     *)
8938         if test "$lt_cv_prog_gnu_ld" = yes; then
8939                 version_type=linux
8940         else
8941                 version_type=irix
8942         fi ;;
8943   esac
8944   need_lib_prefix=no
8945   need_version=no
8946   soname_spec='${libname}${release}${shared_ext}$major'
8947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8948   case $host_os in
8949   irix5* | nonstopux*)
8950     libsuff= shlibsuff=
8951     ;;
8952   *)
8953     case $LD in # libtool.m4 will add one of these switches to LD
8954     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8955       libsuff= shlibsuff= libmagic=32-bit;;
8956     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8957       libsuff=32 shlibsuff=N32 libmagic=N32;;
8958     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8959       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8960     *) libsuff= shlibsuff= libmagic=never-match;;
8961     esac
8962     ;;
8963   esac
8964   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8965   shlibpath_overrides_runpath=no
8966   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8967   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8968   hardcode_into_libs=yes
8969   ;;
8970
8971 # No shared lib support for Linux oldld, aout, or coff.
8972 linux*oldld* | linux*aout* | linux*coff*)
8973   dynamic_linker=no
8974   ;;
8975
8976 # This must be Linux ELF.
8977 linux*)
8978   version_type=linux
8979   need_lib_prefix=no
8980   need_version=no
8981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982   soname_spec='${libname}${release}${shared_ext}$major'
8983   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8984   shlibpath_var=LD_LIBRARY_PATH
8985   shlibpath_overrides_runpath=no
8986   # This implies no fast_install, which is unacceptable.
8987   # Some rework will be needed to allow for fast_install
8988   # before this can be enabled.
8989   hardcode_into_libs=yes
8990
8991   # Append ld.so.conf contents to the search path
8992   if test -f /etc/ld.so.conf; then
8993     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' ' '`
8994     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8995   fi
8996
8997   # We used to test for /lib/ld.so.1 and disable shared libraries on
8998   # powerpc, because MkLinux only supported shared libraries with the
8999   # GNU dynamic linker.  Since this was broken with cross compilers,
9000   # most powerpc-linux boxes support dynamic linking these days and
9001   # people can always --disable-shared, the test was removed, and we
9002   # assume the GNU/Linux dynamic linker is in use.
9003   dynamic_linker='GNU/Linux ld.so'
9004   ;;
9005
9006 knetbsd*-gnu)
9007   version_type=linux
9008   need_lib_prefix=no
9009   need_version=no
9010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9011   soname_spec='${libname}${release}${shared_ext}$major'
9012   shlibpath_var=LD_LIBRARY_PATH
9013   shlibpath_overrides_runpath=no
9014   hardcode_into_libs=yes
9015   dynamic_linker='GNU ld.so'
9016   ;;
9017
9018 netbsd*)
9019   version_type=sunos
9020   need_lib_prefix=no
9021   need_version=no
9022   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9023     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9024     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9025     dynamic_linker='NetBSD (a.out) ld.so'
9026   else
9027     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9028     soname_spec='${libname}${release}${shared_ext}$major'
9029     dynamic_linker='NetBSD ld.elf_so'
9030   fi
9031   shlibpath_var=LD_LIBRARY_PATH
9032   shlibpath_overrides_runpath=yes
9033   hardcode_into_libs=yes
9034   ;;
9035
9036 newsos6)
9037   version_type=linux
9038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9039   shlibpath_var=LD_LIBRARY_PATH
9040   shlibpath_overrides_runpath=yes
9041   ;;
9042
9043 nto-qnx*)
9044   version_type=linux
9045   need_lib_prefix=no
9046   need_version=no
9047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9048   soname_spec='${libname}${release}${shared_ext}$major'
9049   shlibpath_var=LD_LIBRARY_PATH
9050   shlibpath_overrides_runpath=yes
9051   ;;
9052
9053 openbsd*)
9054   version_type=sunos
9055   sys_lib_dlsearch_path_spec="/usr/lib"
9056   need_lib_prefix=no
9057   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9058   case $host_os in
9059     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9060     *)                         need_version=no  ;;
9061   esac
9062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9063   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9064   shlibpath_var=LD_LIBRARY_PATH
9065   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9066     case $host_os in
9067       openbsd2.[89] | openbsd2.[89].*)
9068         shlibpath_overrides_runpath=no
9069         ;;
9070       *)
9071         shlibpath_overrides_runpath=yes
9072         ;;
9073       esac
9074   else
9075     shlibpath_overrides_runpath=yes
9076   fi
9077   ;;
9078
9079 os2*)
9080   libname_spec='$name'
9081   shrext_cmds=".dll"
9082   need_lib_prefix=no
9083   library_names_spec='$libname${shared_ext} $libname.a'
9084   dynamic_linker='OS/2 ld.exe'
9085   shlibpath_var=LIBPATH
9086   ;;
9087
9088 osf3* | osf4* | osf5*)
9089   version_type=osf
9090   need_lib_prefix=no
9091   need_version=no
9092   soname_spec='${libname}${release}${shared_ext}$major'
9093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094   shlibpath_var=LD_LIBRARY_PATH
9095   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9096   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9097   ;;
9098
9099 solaris*)
9100   version_type=linux
9101   need_lib_prefix=no
9102   need_version=no
9103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9104   soname_spec='${libname}${release}${shared_ext}$major'
9105   shlibpath_var=LD_LIBRARY_PATH
9106   shlibpath_overrides_runpath=yes
9107   hardcode_into_libs=yes
9108   # ldd complains unless libraries are executable
9109   postinstall_cmds='chmod +x $lib'
9110   ;;
9111
9112 sunos4*)
9113   version_type=sunos
9114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9115   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9116   shlibpath_var=LD_LIBRARY_PATH
9117   shlibpath_overrides_runpath=yes
9118   if test "$with_gnu_ld" = yes; then
9119     need_lib_prefix=no
9120   fi
9121   need_version=yes
9122   ;;
9123
9124 sysv4 | sysv4.3*)
9125   version_type=linux
9126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9127   soname_spec='${libname}${release}${shared_ext}$major'
9128   shlibpath_var=LD_LIBRARY_PATH
9129   case $host_vendor in
9130     sni)
9131       shlibpath_overrides_runpath=no
9132       need_lib_prefix=no
9133       export_dynamic_flag_spec='${wl}-Blargedynsym'
9134       runpath_var=LD_RUN_PATH
9135       ;;
9136     siemens)
9137       need_lib_prefix=no
9138       ;;
9139     motorola)
9140       need_lib_prefix=no
9141       need_version=no
9142       shlibpath_overrides_runpath=no
9143       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9144       ;;
9145   esac
9146   ;;
9147
9148 sysv4*MP*)
9149   if test -d /usr/nec ;then
9150     version_type=linux
9151     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9152     soname_spec='$libname${shared_ext}.$major'
9153     shlibpath_var=LD_LIBRARY_PATH
9154   fi
9155   ;;
9156
9157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9158   version_type=freebsd-elf
9159   need_lib_prefix=no
9160   need_version=no
9161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9162   soname_spec='${libname}${release}${shared_ext}$major'
9163   shlibpath_var=LD_LIBRARY_PATH
9164   hardcode_into_libs=yes
9165   if test "$with_gnu_ld" = yes; then
9166     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9167     shlibpath_overrides_runpath=no
9168   else
9169     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9170     shlibpath_overrides_runpath=yes
9171     case $host_os in
9172       sco3.2v5*)
9173         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9174         ;;
9175     esac
9176   fi
9177   sys_lib_dlsearch_path_spec='/usr/lib'
9178   ;;
9179
9180 uts4*)
9181   version_type=linux
9182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183   soname_spec='${libname}${release}${shared_ext}$major'
9184   shlibpath_var=LD_LIBRARY_PATH
9185   ;;
9186
9187 *)
9188   dynamic_linker=no
9189   ;;
9190 esac
9191 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9192 echo "${ECHO_T}$dynamic_linker" >&6; }
9193 test "$dynamic_linker" = no && can_build_shared=no
9194
9195 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9196 if test "$GCC" = yes; then
9197   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9198 fi
9199
9200
9201 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9202 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9203 if test "${libltdl_cv_shlibext+set}" = set; then
9204   echo $ECHO_N "(cached) $ECHO_C" >&6
9205 else
9206
9207 module=yes
9208 eval libltdl_cv_shlibext=$shrext_cmds
9209
9210 fi
9211 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9212 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9213 if test -n "$libltdl_cv_shlibext"; then
9214
9215 cat >>confdefs.h <<_ACEOF
9216 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9217 _ACEOF
9218
9219 fi
9220
9221
9222 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9223 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9224 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9225   echo $ECHO_N "(cached) $ECHO_C" >&6
9226 else
9227   libltdl_cv_shlibpath_var="$shlibpath_var"
9228 fi
9229 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9230 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9231 if test -n "$libltdl_cv_shlibpath_var"; then
9232
9233 cat >>confdefs.h <<_ACEOF
9234 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9235 _ACEOF
9236
9237 fi
9238
9239
9240 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9241 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9242 if test "${libltdl_cv_sys_search_path+set}" = set; then
9243   echo $ECHO_N "(cached) $ECHO_C" >&6
9244 else
9245   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9246 fi
9247 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9248 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9249 if test -n "$libltdl_cv_sys_search_path"; then
9250   sys_search_path=
9251   for dir in $libltdl_cv_sys_search_path; do
9252     if test -z "$sys_search_path"; then
9253       sys_search_path="$dir"
9254     else
9255       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9256     fi
9257   done
9258
9259 cat >>confdefs.h <<_ACEOF
9260 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9261 _ACEOF
9262
9263 fi
9264
9265 { echo "$as_me:$LINENO: checking for objdir" >&5
9266 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9267 if test "${libltdl_cv_objdir+set}" = set; then
9268   echo $ECHO_N "(cached) $ECHO_C" >&6
9269 else
9270   libltdl_cv_objdir="$objdir"
9271   if test -n "$objdir"; then
9272     :
9273   else
9274     rm -f .libs 2>/dev/null
9275     mkdir .libs 2>/dev/null
9276     if test -d .libs; then
9277       libltdl_cv_objdir=.libs
9278     else
9279       # MS-DOS does not allow filenames that begin with a dot.
9280       libltdl_cv_objdir=_libs
9281     fi
9282   rmdir .libs 2>/dev/null
9283   fi
9284
9285 fi
9286 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9287 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9288
9289 cat >>confdefs.h <<_ACEOF
9290 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9291 _ACEOF
9292
9293
9294
9295
9296
9297
9298 # Check for command to grab the raw symbol name followed by C symbol from nm.
9299 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9300 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9301 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9302   echo $ECHO_N "(cached) $ECHO_C" >&6
9303 else
9304
9305 # These are sane defaults that work on at least a few old systems.
9306 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9307
9308 # Character class describing NM global symbol codes.
9309 symcode='[BCDEGRST]'
9310
9311 # Regexp to match symbols that can be accessed directly from C.
9312 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9313
9314 # Transform an extracted symbol line into a proper C declaration
9315 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9316
9317 # Transform an extracted symbol line into symbol name and symbol address
9318 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'"
9319
9320 # Define system-specific variables.
9321 case $host_os in
9322 aix*)
9323   symcode='[BCDT]'
9324   ;;
9325 cygwin* | mingw* | pw32*)
9326   symcode='[ABCDGISTW]'
9327   ;;
9328 hpux*) # Its linker distinguishes data from code symbols
9329   if test "$host_cpu" = ia64; then
9330     symcode='[ABCDEGRST]'
9331   fi
9332   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9333   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'"
9334   ;;
9335 linux*)
9336   if test "$host_cpu" = ia64; then
9337     symcode='[ABCDGIRSTW]'
9338     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9339     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'"
9340   fi
9341   ;;
9342 irix* | nonstopux*)
9343   symcode='[BCDEGRST]'
9344   ;;
9345 osf*)
9346   symcode='[BCDEGQRST]'
9347   ;;
9348 solaris*)
9349   symcode='[BDRT]'
9350   ;;
9351 sco3.2v5*)
9352   symcode='[DT]'
9353   ;;
9354 sysv4.2uw2*)
9355   symcode='[DT]'
9356   ;;
9357 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9358   symcode='[ABDT]'
9359   ;;
9360 sysv4)
9361   symcode='[DFNSTU]'
9362   ;;
9363 esac
9364
9365 # Handle CRLF in mingw tool chain
9366 opt_cr=
9367 case $build_os in
9368 mingw*)
9369   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9370   ;;
9371 esac
9372
9373 # If we're using GNU nm, then use its standard symbol codes.
9374 case `$NM -V 2>&1` in
9375 *GNU* | *'with BFD'*)
9376   symcode='[ABCDGIRSTW]' ;;
9377 esac
9378
9379 # Try without a prefix undercore, then with it.
9380 for ac_symprfx in "" "_"; do
9381
9382   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9383   symxfrm="\\1 $ac_symprfx\\2 \\2"
9384
9385   # Write the raw and C identifiers.
9386   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9387
9388   # Check to see that the pipe works correctly.
9389   pipe_works=no
9390
9391   rm -f conftest*
9392   cat > conftest.$ac_ext <<EOF
9393 #ifdef __cplusplus
9394 extern "C" {
9395 #endif
9396 char nm_test_var;
9397 void nm_test_func(){}
9398 #ifdef __cplusplus
9399 }
9400 #endif
9401 int main(){nm_test_var='a';nm_test_func();return(0);}
9402 EOF
9403
9404   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9405   (eval $ac_compile) 2>&5
9406   ac_status=$?
9407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408   (exit $ac_status); }; then
9409     # Now try to grab the symbols.
9410     nlist=conftest.nm
9411     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9412   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9413   ac_status=$?
9414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415   (exit $ac_status); } && test -s "$nlist"; then
9416       # Try sorting and uniquifying the output.
9417       if sort "$nlist" | uniq > "$nlist"T; then
9418         mv -f "$nlist"T "$nlist"
9419       else
9420         rm -f "$nlist"T
9421       fi
9422
9423       # Make sure that we snagged all the symbols we need.
9424       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9425         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9426           cat <<EOF > conftest.$ac_ext
9427 #ifdef __cplusplus
9428 extern "C" {
9429 #endif
9430
9431 EOF
9432           # Now generate the symbol file.
9433           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9434
9435           cat <<EOF >> conftest.$ac_ext
9436 #if defined (__STDC__) && __STDC__
9437 # define lt_ptr_t void *
9438 #else
9439 # define lt_ptr_t char *
9440 # define const
9441 #endif
9442
9443 /* The mapping between symbol names and symbols. */
9444 const struct {
9445   const char *name;
9446   lt_ptr_t address;
9447 }
9448 lt_preloaded_symbols[] =
9449 {
9450 EOF
9451           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9452           cat <<\EOF >> conftest.$ac_ext
9453   {0, (lt_ptr_t) 0}
9454 };
9455
9456 #ifdef __cplusplus
9457 }
9458 #endif
9459 EOF
9460           # Now try linking the two files.
9461           mv conftest.$ac_objext conftstm.$ac_objext
9462           lt_save_LIBS="$LIBS"
9463           lt_save_CFLAGS="$CFLAGS"
9464           LIBS="conftstm.$ac_objext"
9465           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9466           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9467   (eval $ac_link) 2>&5
9468   ac_status=$?
9469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9471             pipe_works=yes
9472           fi
9473           LIBS="$lt_save_LIBS"
9474           CFLAGS="$lt_save_CFLAGS"
9475         else
9476           echo "cannot find nm_test_func in $nlist" >&5
9477         fi
9478       else
9479         echo "cannot find nm_test_var in $nlist" >&5
9480       fi
9481     else
9482       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9483     fi
9484   else
9485     echo "$progname: failed program was:" >&5
9486     cat conftest.$ac_ext >&5
9487   fi
9488   rm -f conftest* conftst*
9489
9490   # Do not use the global_symbol_pipe unless it works.
9491   if test "$pipe_works" = yes; then
9492     break
9493   else
9494     lt_cv_sys_global_symbol_pipe=
9495   fi
9496 done
9497
9498 fi
9499
9500 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9501   lt_cv_sys_global_symbol_to_cdecl=
9502 fi
9503 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9504   { echo "$as_me:$LINENO: result: failed" >&5
9505 echo "${ECHO_T}failed" >&6; }
9506 else
9507   { echo "$as_me:$LINENO: result: ok" >&5
9508 echo "${ECHO_T}ok" >&6; }
9509 fi
9510
9511
9512 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9513 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9514 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9515   echo $ECHO_N "(cached) $ECHO_C" >&6
9516 else
9517   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9518     libltdl_cv_preloaded_symbols=yes
9519   else
9520     libltdl_cv_preloaded_symbols=no
9521   fi
9522
9523 fi
9524 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9525 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9526 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9527
9528 cat >>confdefs.h <<\_ACEOF
9529 #define HAVE_PRELOADED_SYMBOLS 1
9530 _ACEOF
9531
9532 fi
9533
9534 LIBADD_DL=
9535
9536 ac_ext=c
9537 ac_cpp='$CPP $CPPFLAGS'
9538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9541
9542
9543 { echo "$as_me:$LINENO: checking for shl_load" >&5
9544 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9545 if test "${ac_cv_func_shl_load+set}" = set; then
9546   echo $ECHO_N "(cached) $ECHO_C" >&6
9547 else
9548   cat >conftest.$ac_ext <<_ACEOF
9549 /* confdefs.h.  */
9550 _ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h.  */
9554 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9555    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9556 #define shl_load innocuous_shl_load
9557
9558 /* System header to define __stub macros and hopefully few prototypes,
9559     which can conflict with char shl_load (); below.
9560     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9561     <limits.h> exists even on freestanding compilers.  */
9562
9563 #ifdef __STDC__
9564 # include <limits.h>
9565 #else
9566 # include <assert.h>
9567 #endif
9568
9569 #undef shl_load
9570
9571 /* Override any GCC internal prototype to avoid an error.
9572    Use char because int might match the return type of a GCC
9573    builtin and then its argument prototype would still apply.  */
9574 #ifdef __cplusplus
9575 extern "C"
9576 #endif
9577 char shl_load ();
9578 /* The GNU C library defines this for functions which it implements
9579     to always fail with ENOSYS.  Some functions are actually named
9580     something starting with __ and the normal name is an alias.  */
9581 #if defined __stub_shl_load || defined __stub___shl_load
9582 choke me
9583 #endif
9584
9585 int
9586 main ()
9587 {
9588 return shl_load ();
9589   ;
9590   return 0;
9591 }
9592 _ACEOF
9593 rm -f conftest.$ac_objext conftest$ac_exeext
9594 if { (ac_try="$ac_link"
9595 case "(($ac_try" in
9596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9597   *) ac_try_echo=$ac_try;;
9598 esac
9599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9600   (eval "$ac_link") 2>conftest.er1
9601   ac_status=$?
9602   grep -v '^ *+' conftest.er1 >conftest.err
9603   rm -f conftest.er1
9604   cat conftest.err >&5
9605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606   (exit $ac_status); } &&
9607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9608   { (case "(($ac_try" in
9609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610   *) ac_try_echo=$ac_try;;
9611 esac
9612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9613   (eval "$ac_try") 2>&5
9614   ac_status=$?
9615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616   (exit $ac_status); }; } &&
9617          { ac_try='test -s conftest$ac_exeext'
9618   { (case "(($ac_try" in
9619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9620   *) ac_try_echo=$ac_try;;
9621 esac
9622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9623   (eval "$ac_try") 2>&5
9624   ac_status=$?
9625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626   (exit $ac_status); }; }; then
9627   ac_cv_func_shl_load=yes
9628 else
9629   echo "$as_me: failed program was:" >&5
9630 sed 's/^/| /' conftest.$ac_ext >&5
9631
9632         ac_cv_func_shl_load=no
9633 fi
9634
9635 rm -f core conftest.err conftest.$ac_objext \
9636       conftest$ac_exeext conftest.$ac_ext
9637 fi
9638 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9639 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9640 if test $ac_cv_func_shl_load = yes; then
9641
9642 cat >>confdefs.h <<\_ACEOF
9643 #define HAVE_SHL_LOAD 1
9644 _ACEOF
9645
9646 else
9647   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9648 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9649 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9650   echo $ECHO_N "(cached) $ECHO_C" >&6
9651 else
9652   ac_check_lib_save_LIBS=$LIBS
9653 LIBS="-ldld  $LIBS"
9654 cat >conftest.$ac_ext <<_ACEOF
9655 /* confdefs.h.  */
9656 _ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h.  */
9660
9661 /* Override any GCC internal prototype to avoid an error.
9662    Use char because int might match the return type of a GCC
9663    builtin and then its argument prototype would still apply.  */
9664 #ifdef __cplusplus
9665 extern "C"
9666 #endif
9667 char shl_load ();
9668 int
9669 main ()
9670 {
9671 return shl_load ();
9672   ;
9673   return 0;
9674 }
9675 _ACEOF
9676 rm -f conftest.$ac_objext conftest$ac_exeext
9677 if { (ac_try="$ac_link"
9678 case "(($ac_try" in
9679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9680   *) ac_try_echo=$ac_try;;
9681 esac
9682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9683   (eval "$ac_link") 2>conftest.er1
9684   ac_status=$?
9685   grep -v '^ *+' conftest.er1 >conftest.err
9686   rm -f conftest.er1
9687   cat conftest.err >&5
9688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689   (exit $ac_status); } &&
9690          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9691   { (case "(($ac_try" in
9692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9693   *) ac_try_echo=$ac_try;;
9694 esac
9695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9696   (eval "$ac_try") 2>&5
9697   ac_status=$?
9698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699   (exit $ac_status); }; } &&
9700          { ac_try='test -s conftest$ac_exeext'
9701   { (case "(($ac_try" in
9702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703   *) ac_try_echo=$ac_try;;
9704 esac
9705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9706   (eval "$ac_try") 2>&5
9707   ac_status=$?
9708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709   (exit $ac_status); }; }; then
9710   ac_cv_lib_dld_shl_load=yes
9711 else
9712   echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.$ac_ext >&5
9714
9715         ac_cv_lib_dld_shl_load=no
9716 fi
9717
9718 rm -f core conftest.err conftest.$ac_objext \
9719       conftest$ac_exeext conftest.$ac_ext
9720 LIBS=$ac_check_lib_save_LIBS
9721 fi
9722 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9723 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9724 if test $ac_cv_lib_dld_shl_load = yes; then
9725
9726 cat >>confdefs.h <<\_ACEOF
9727 #define HAVE_SHL_LOAD 1
9728 _ACEOF
9729
9730         LIBADD_DL="$LIBADD_DL -ldld"
9731 else
9732   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9733 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9734 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9735   echo $ECHO_N "(cached) $ECHO_C" >&6
9736 else
9737   ac_check_lib_save_LIBS=$LIBS
9738 LIBS="-ldl  $LIBS"
9739 cat >conftest.$ac_ext <<_ACEOF
9740 /* confdefs.h.  */
9741 _ACEOF
9742 cat confdefs.h >>conftest.$ac_ext
9743 cat >>conftest.$ac_ext <<_ACEOF
9744 /* end confdefs.h.  */
9745
9746 /* Override any GCC internal prototype to avoid an error.
9747    Use char because int might match the return type of a GCC
9748    builtin and then its argument prototype would still apply.  */
9749 #ifdef __cplusplus
9750 extern "C"
9751 #endif
9752 char dlopen ();
9753 int
9754 main ()
9755 {
9756 return dlopen ();
9757   ;
9758   return 0;
9759 }
9760 _ACEOF
9761 rm -f conftest.$ac_objext conftest$ac_exeext
9762 if { (ac_try="$ac_link"
9763 case "(($ac_try" in
9764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765   *) ac_try_echo=$ac_try;;
9766 esac
9767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768   (eval "$ac_link") 2>conftest.er1
9769   ac_status=$?
9770   grep -v '^ *+' conftest.er1 >conftest.err
9771   rm -f conftest.er1
9772   cat conftest.err >&5
9773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774   (exit $ac_status); } &&
9775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9776   { (case "(($ac_try" in
9777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778   *) ac_try_echo=$ac_try;;
9779 esac
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781   (eval "$ac_try") 2>&5
9782   ac_status=$?
9783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784   (exit $ac_status); }; } &&
9785          { ac_try='test -s conftest$ac_exeext'
9786   { (case "(($ac_try" in
9787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788   *) ac_try_echo=$ac_try;;
9789 esac
9790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791   (eval "$ac_try") 2>&5
9792   ac_status=$?
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); }; }; then
9795   ac_cv_lib_dl_dlopen=yes
9796 else
9797   echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9799
9800         ac_cv_lib_dl_dlopen=no
9801 fi
9802
9803 rm -f core conftest.err conftest.$ac_objext \
9804       conftest$ac_exeext conftest.$ac_ext
9805 LIBS=$ac_check_lib_save_LIBS
9806 fi
9807 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9808 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9809 if test $ac_cv_lib_dl_dlopen = yes; then
9810
9811 cat >>confdefs.h <<\_ACEOF
9812 #define HAVE_LIBDL 1
9813 _ACEOF
9814
9815                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9816 else
9817   cat >conftest.$ac_ext <<_ACEOF
9818 /* confdefs.h.  */
9819 _ACEOF
9820 cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h.  */
9823 #if HAVE_DLFCN_H
9824 #  include <dlfcn.h>
9825 #endif
9826
9827 int
9828 main ()
9829 {
9830 dlopen(0, 0);
9831   ;
9832   return 0;
9833 }
9834 _ACEOF
9835 rm -f conftest.$ac_objext conftest$ac_exeext
9836 if { (ac_try="$ac_link"
9837 case "(($ac_try" in
9838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839   *) ac_try_echo=$ac_try;;
9840 esac
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842   (eval "$ac_link") 2>conftest.er1
9843   ac_status=$?
9844   grep -v '^ *+' conftest.er1 >conftest.err
9845   rm -f conftest.er1
9846   cat conftest.err >&5
9847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848   (exit $ac_status); } &&
9849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9850   { (case "(($ac_try" in
9851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852   *) ac_try_echo=$ac_try;;
9853 esac
9854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855   (eval "$ac_try") 2>&5
9856   ac_status=$?
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); }; } &&
9859          { ac_try='test -s conftest$ac_exeext'
9860   { (case "(($ac_try" in
9861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9862   *) ac_try_echo=$ac_try;;
9863 esac
9864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9865   (eval "$ac_try") 2>&5
9866   ac_status=$?
9867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868   (exit $ac_status); }; }; then
9869
9870 cat >>confdefs.h <<\_ACEOF
9871 #define HAVE_LIBDL 1
9872 _ACEOF
9873  libltdl_cv_func_dlopen="yes"
9874 else
9875   echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9877
9878         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9879 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9880 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9881   echo $ECHO_N "(cached) $ECHO_C" >&6
9882 else
9883   ac_check_lib_save_LIBS=$LIBS
9884 LIBS="-lsvld  $LIBS"
9885 cat >conftest.$ac_ext <<_ACEOF
9886 /* confdefs.h.  */
9887 _ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h.  */
9891
9892 /* Override any GCC internal prototype to avoid an error.
9893    Use char because int might match the return type of a GCC
9894    builtin and then its argument prototype would still apply.  */
9895 #ifdef __cplusplus
9896 extern "C"
9897 #endif
9898 char dlopen ();
9899 int
9900 main ()
9901 {
9902 return dlopen ();
9903   ;
9904   return 0;
9905 }
9906 _ACEOF
9907 rm -f conftest.$ac_objext conftest$ac_exeext
9908 if { (ac_try="$ac_link"
9909 case "(($ac_try" in
9910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9911   *) ac_try_echo=$ac_try;;
9912 esac
9913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9914   (eval "$ac_link") 2>conftest.er1
9915   ac_status=$?
9916   grep -v '^ *+' conftest.er1 >conftest.err
9917   rm -f conftest.er1
9918   cat conftest.err >&5
9919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920   (exit $ac_status); } &&
9921          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9922   { (case "(($ac_try" in
9923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924   *) ac_try_echo=$ac_try;;
9925 esac
9926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9927   (eval "$ac_try") 2>&5
9928   ac_status=$?
9929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930   (exit $ac_status); }; } &&
9931          { ac_try='test -s conftest$ac_exeext'
9932   { (case "(($ac_try" in
9933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9934   *) ac_try_echo=$ac_try;;
9935 esac
9936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9937   (eval "$ac_try") 2>&5
9938   ac_status=$?
9939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940   (exit $ac_status); }; }; then
9941   ac_cv_lib_svld_dlopen=yes
9942 else
9943   echo "$as_me: failed program was:" >&5
9944 sed 's/^/| /' conftest.$ac_ext >&5
9945
9946         ac_cv_lib_svld_dlopen=no
9947 fi
9948
9949 rm -f core conftest.err conftest.$ac_objext \
9950       conftest$ac_exeext conftest.$ac_ext
9951 LIBS=$ac_check_lib_save_LIBS
9952 fi
9953 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9954 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9955 if test $ac_cv_lib_svld_dlopen = yes; then
9956
9957 cat >>confdefs.h <<\_ACEOF
9958 #define HAVE_LIBDL 1
9959 _ACEOF
9960
9961                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9962 else
9963   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9964 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9965 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9966   echo $ECHO_N "(cached) $ECHO_C" >&6
9967 else
9968   ac_check_lib_save_LIBS=$LIBS
9969 LIBS="-ldld  $LIBS"
9970 cat >conftest.$ac_ext <<_ACEOF
9971 /* confdefs.h.  */
9972 _ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h.  */
9976
9977 /* Override any GCC internal prototype to avoid an error.
9978    Use char because int might match the return type of a GCC
9979    builtin and then its argument prototype would still apply.  */
9980 #ifdef __cplusplus
9981 extern "C"
9982 #endif
9983 char dld_link ();
9984 int
9985 main ()
9986 {
9987 return dld_link ();
9988   ;
9989   return 0;
9990 }
9991 _ACEOF
9992 rm -f conftest.$ac_objext conftest$ac_exeext
9993 if { (ac_try="$ac_link"
9994 case "(($ac_try" in
9995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996   *) ac_try_echo=$ac_try;;
9997 esac
9998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999   (eval "$ac_link") 2>conftest.er1
10000   ac_status=$?
10001   grep -v '^ *+' conftest.er1 >conftest.err
10002   rm -f conftest.er1
10003   cat conftest.err >&5
10004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005   (exit $ac_status); } &&
10006          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10007   { (case "(($ac_try" in
10008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10009   *) ac_try_echo=$ac_try;;
10010 esac
10011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10012   (eval "$ac_try") 2>&5
10013   ac_status=$?
10014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015   (exit $ac_status); }; } &&
10016          { ac_try='test -s conftest$ac_exeext'
10017   { (case "(($ac_try" in
10018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10019   *) ac_try_echo=$ac_try;;
10020 esac
10021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10022   (eval "$ac_try") 2>&5
10023   ac_status=$?
10024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025   (exit $ac_status); }; }; then
10026   ac_cv_lib_dld_dld_link=yes
10027 else
10028   echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.$ac_ext >&5
10030
10031         ac_cv_lib_dld_dld_link=no
10032 fi
10033
10034 rm -f core conftest.err conftest.$ac_objext \
10035       conftest$ac_exeext conftest.$ac_ext
10036 LIBS=$ac_check_lib_save_LIBS
10037 fi
10038 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10039 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10040 if test $ac_cv_lib_dld_dld_link = yes; then
10041
10042 cat >>confdefs.h <<\_ACEOF
10043 #define HAVE_DLD 1
10044 _ACEOF
10045
10046                 LIBADD_DL="$LIBADD_DL -ldld"
10047 else
10048   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10049 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10050 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10051   echo $ECHO_N "(cached) $ECHO_C" >&6
10052 else
10053   cat >conftest.$ac_ext <<_ACEOF
10054 /* confdefs.h.  */
10055 _ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h.  */
10059 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10061 #define _dyld_func_lookup innocuous__dyld_func_lookup
10062
10063 /* System header to define __stub macros and hopefully few prototypes,
10064     which can conflict with char _dyld_func_lookup (); below.
10065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10066     <limits.h> exists even on freestanding compilers.  */
10067
10068 #ifdef __STDC__
10069 # include <limits.h>
10070 #else
10071 # include <assert.h>
10072 #endif
10073
10074 #undef _dyld_func_lookup
10075
10076 /* Override any GCC internal prototype to avoid an error.
10077    Use char because int might match the return type of a GCC
10078    builtin and then its argument prototype would still apply.  */
10079 #ifdef __cplusplus
10080 extern "C"
10081 #endif
10082 char _dyld_func_lookup ();
10083 /* The GNU C library defines this for functions which it implements
10084     to always fail with ENOSYS.  Some functions are actually named
10085     something starting with __ and the normal name is an alias.  */
10086 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10087 choke me
10088 #endif
10089
10090 int
10091 main ()
10092 {
10093 return _dyld_func_lookup ();
10094   ;
10095   return 0;
10096 }
10097 _ACEOF
10098 rm -f conftest.$ac_objext conftest$ac_exeext
10099 if { (ac_try="$ac_link"
10100 case "(($ac_try" in
10101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102   *) ac_try_echo=$ac_try;;
10103 esac
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105   (eval "$ac_link") 2>conftest.er1
10106   ac_status=$?
10107   grep -v '^ *+' conftest.er1 >conftest.err
10108   rm -f conftest.er1
10109   cat conftest.err >&5
10110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111   (exit $ac_status); } &&
10112          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10113   { (case "(($ac_try" in
10114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10115   *) ac_try_echo=$ac_try;;
10116 esac
10117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10118   (eval "$ac_try") 2>&5
10119   ac_status=$?
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); }; } &&
10122          { ac_try='test -s conftest$ac_exeext'
10123   { (case "(($ac_try" in
10124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125   *) ac_try_echo=$ac_try;;
10126 esac
10127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128   (eval "$ac_try") 2>&5
10129   ac_status=$?
10130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131   (exit $ac_status); }; }; then
10132   ac_cv_func__dyld_func_lookup=yes
10133 else
10134   echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10136
10137         ac_cv_func__dyld_func_lookup=no
10138 fi
10139
10140 rm -f core conftest.err conftest.$ac_objext \
10141       conftest$ac_exeext conftest.$ac_ext
10142 fi
10143 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10144 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10145 if test $ac_cv_func__dyld_func_lookup = yes; then
10146
10147 cat >>confdefs.h <<\_ACEOF
10148 #define HAVE_DYLD 1
10149 _ACEOF
10150
10151 fi
10152
10153
10154 fi
10155
10156
10157 fi
10158
10159
10160 fi
10161
10162 rm -f core conftest.err conftest.$ac_objext \
10163       conftest$ac_exeext conftest.$ac_ext
10164
10165 fi
10166
10167
10168 fi
10169
10170
10171 fi
10172
10173
10174 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10175 then
10176   lt_save_LIBS="$LIBS"
10177   LIBS="$LIBS $LIBADD_DL"
10178
10179 for ac_func in dlerror
10180 do
10181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10182 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10184 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10185   echo $ECHO_N "(cached) $ECHO_C" >&6
10186 else
10187   cat >conftest.$ac_ext <<_ACEOF
10188 /* confdefs.h.  */
10189 _ACEOF
10190 cat confdefs.h >>conftest.$ac_ext
10191 cat >>conftest.$ac_ext <<_ACEOF
10192 /* end confdefs.h.  */
10193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10194    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10195 #define $ac_func innocuous_$ac_func
10196
10197 /* System header to define __stub macros and hopefully few prototypes,
10198     which can conflict with char $ac_func (); below.
10199     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10200     <limits.h> exists even on freestanding compilers.  */
10201
10202 #ifdef __STDC__
10203 # include <limits.h>
10204 #else
10205 # include <assert.h>
10206 #endif
10207
10208 #undef $ac_func
10209
10210 /* Override any GCC internal prototype to avoid an error.
10211    Use char because int might match the return type of a GCC
10212    builtin and then its argument prototype would still apply.  */
10213 #ifdef __cplusplus
10214 extern "C"
10215 #endif
10216 char $ac_func ();
10217 /* The GNU C library defines this for functions which it implements
10218     to always fail with ENOSYS.  Some functions are actually named
10219     something starting with __ and the normal name is an alias.  */
10220 #if defined __stub_$ac_func || defined __stub___$ac_func
10221 choke me
10222 #endif
10223
10224 int
10225 main ()
10226 {
10227 return $ac_func ();
10228   ;
10229   return 0;
10230 }
10231 _ACEOF
10232 rm -f conftest.$ac_objext conftest$ac_exeext
10233 if { (ac_try="$ac_link"
10234 case "(($ac_try" in
10235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236   *) ac_try_echo=$ac_try;;
10237 esac
10238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10239   (eval "$ac_link") 2>conftest.er1
10240   ac_status=$?
10241   grep -v '^ *+' conftest.er1 >conftest.err
10242   rm -f conftest.er1
10243   cat conftest.err >&5
10244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245   (exit $ac_status); } &&
10246          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10247   { (case "(($ac_try" in
10248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10249   *) ac_try_echo=$ac_try;;
10250 esac
10251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10252   (eval "$ac_try") 2>&5
10253   ac_status=$?
10254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255   (exit $ac_status); }; } &&
10256          { ac_try='test -s conftest$ac_exeext'
10257   { (case "(($ac_try" in
10258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259   *) ac_try_echo=$ac_try;;
10260 esac
10261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10262   (eval "$ac_try") 2>&5
10263   ac_status=$?
10264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265   (exit $ac_status); }; }; then
10266   eval "$as_ac_var=yes"
10267 else
10268   echo "$as_me: failed program was:" >&5
10269 sed 's/^/| /' conftest.$ac_ext >&5
10270
10271         eval "$as_ac_var=no"
10272 fi
10273
10274 rm -f core conftest.err conftest.$ac_objext \
10275       conftest$ac_exeext conftest.$ac_ext
10276 fi
10277 ac_res=`eval echo '${'$as_ac_var'}'`
10278                { echo "$as_me:$LINENO: result: $ac_res" >&5
10279 echo "${ECHO_T}$ac_res" >&6; }
10280 if test `eval echo '${'$as_ac_var'}'` = yes; then
10281   cat >>confdefs.h <<_ACEOF
10282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10283 _ACEOF
10284
10285 fi
10286 done
10287
10288   LIBS="$lt_save_LIBS"
10289 fi
10290 ac_ext=c
10291 ac_cpp='$CPP $CPPFLAGS'
10292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10295
10296
10297
10298 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10299 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10300 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10301   echo $ECHO_N "(cached) $ECHO_C" >&6
10302 else
10303   ac_cv_sys_symbol_underscore=no
10304   cat > conftest.$ac_ext <<EOF
10305 void nm_test_func(){}
10306 int main(){nm_test_func;return 0;}
10307 EOF
10308   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10309   (eval $ac_compile) 2>&5
10310   ac_status=$?
10311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312   (exit $ac_status); }; then
10313     # Now try to grab the symbols.
10314     ac_nlist=conftest.nm
10315     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10316   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10317   ac_status=$?
10318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319   (exit $ac_status); } && test -s "$ac_nlist"; then
10320       # See whether the symbols have a leading underscore.
10321       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10322         ac_cv_sys_symbol_underscore=yes
10323       else
10324         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10325           :
10326         else
10327           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10328         fi
10329       fi
10330     else
10331       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10332     fi
10333   else
10334     echo "configure: failed program was:" >&5
10335     cat conftest.c >&5
10336   fi
10337   rm -rf conftest*
10338
10339 fi
10340 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10341 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10342
10343
10344 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10345   if test x"$libltdl_cv_func_dlopen" = xyes ||
10346      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10347         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10348 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10349 if test "${libltdl_cv_need_uscore+set}" = set; then
10350   echo $ECHO_N "(cached) $ECHO_C" >&6
10351 else
10352   libltdl_cv_need_uscore=unknown
10353           save_LIBS="$LIBS"
10354           LIBS="$LIBS $LIBADD_DL"
10355           if test "$cross_compiling" = yes; then :
10356   libltdl_cv_need_uscore=cross
10357 else
10358   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10359   lt_status=$lt_dlunknown
10360   cat > conftest.$ac_ext <<EOF
10361 #line 10361 "configure"
10362 #include "confdefs.h"
10363
10364 #if HAVE_DLFCN_H
10365 #include <dlfcn.h>
10366 #endif
10367
10368 #include <stdio.h>
10369
10370 #ifdef RTLD_GLOBAL
10371 #  define LT_DLGLOBAL           RTLD_GLOBAL
10372 #else
10373 #  ifdef DL_GLOBAL
10374 #    define LT_DLGLOBAL         DL_GLOBAL
10375 #  else
10376 #    define LT_DLGLOBAL         0
10377 #  endif
10378 #endif
10379
10380 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10381    find out it does not work in some platform. */
10382 #ifndef LT_DLLAZY_OR_NOW
10383 #  ifdef RTLD_LAZY
10384 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10385 #  else
10386 #    ifdef DL_LAZY
10387 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10388 #    else
10389 #      ifdef RTLD_NOW
10390 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10391 #      else
10392 #        ifdef DL_NOW
10393 #          define LT_DLLAZY_OR_NOW      DL_NOW
10394 #        else
10395 #          define LT_DLLAZY_OR_NOW      0
10396 #        endif
10397 #      endif
10398 #    endif
10399 #  endif
10400 #endif
10401
10402 #ifdef __cplusplus
10403 extern "C" void exit (int);
10404 #endif
10405
10406 void fnord() { int i=42;}
10407 int main ()
10408 {
10409   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10410   int status = $lt_dlunknown;
10411
10412   if (self)
10413     {
10414       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10415       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10416       /* dlclose (self); */
10417     }
10418   else
10419     puts (dlerror ());
10420
10421     exit (status);
10422 }
10423 EOF
10424   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10425   (eval $ac_link) 2>&5
10426   ac_status=$?
10427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10429     (./conftest; exit; ) >&5 2>/dev/null
10430     lt_status=$?
10431     case x$lt_status in
10432       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10433       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10434       x$lt_dlunknown|x*)  ;;
10435     esac
10436   else :
10437     # compilation failed
10438
10439   fi
10440 fi
10441 rm -fr conftest*
10442
10443           LIBS="$save_LIBS"
10444
10445 fi
10446 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10447 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10448   fi
10449 fi
10450
10451 if test x"$libltdl_cv_need_uscore" = xyes; then
10452
10453 cat >>confdefs.h <<\_ACEOF
10454 #define NEED_USCORE 1
10455 _ACEOF
10456
10457 fi
10458
10459
10460 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10461 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10462 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10463   echo $ECHO_N "(cached) $ECHO_C" >&6
10464 else
10465   # PORTME does your system automatically load deplibs for dlopen?
10466   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10467   # For now, we just catch OSes we know something about -- in the
10468   # future, we'll try test this programmatically.
10469   libltdl_cv_sys_dlopen_deplibs=unknown
10470   case "$host_os" in
10471   aix3*|aix4.1.*|aix4.2.*)
10472     # Unknown whether this is true for these versions of AIX, but
10473     # we want this `case' here to explicitly catch those versions.
10474     libltdl_cv_sys_dlopen_deplibs=unknown
10475     ;;
10476   aix[45]*)
10477     libltdl_cv_sys_dlopen_deplibs=yes
10478     ;;
10479   darwin*)
10480     # Assuming the user has installed a libdl from somewhere, this is true
10481     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10482     libltdl_cv_sys_dlopen_deplibs=yes
10483     ;;
10484   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10485     # GNU and its variants, using gnu ld.so (Glibc)
10486     libltdl_cv_sys_dlopen_deplibs=yes
10487     ;;
10488   hpux10*|hpux11*)
10489     libltdl_cv_sys_dlopen_deplibs=yes
10490     ;;
10491   interix*)
10492     libltdl_cv_sys_dlopen_deplibs=yes
10493     ;;
10494   irix[12345]*|irix6.[01]*)
10495     # Catch all versions of IRIX before 6.2, and indicate that we don't
10496     # know how it worked for any of those versions.
10497     libltdl_cv_sys_dlopen_deplibs=unknown
10498     ;;
10499   irix*)
10500     # The case above catches anything before 6.2, and it's known that
10501     # at 6.2 and later dlopen does load deplibs.
10502     libltdl_cv_sys_dlopen_deplibs=yes
10503     ;;
10504   netbsd*)
10505     libltdl_cv_sys_dlopen_deplibs=yes
10506     ;;
10507   openbsd*)
10508     libltdl_cv_sys_dlopen_deplibs=yes
10509     ;;
10510   osf[1234]*)
10511     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10512     # it did *not* use an RPATH in a shared library to find objects the
10513     # library depends on, so we explicitly say `no'.
10514     libltdl_cv_sys_dlopen_deplibs=no
10515     ;;
10516   osf5.0|osf5.0a|osf5.1)
10517     # dlopen *does* load deplibs and with the right loader patch applied
10518     # it even uses RPATH in a shared library to search for shared objects
10519     # that the library depends on, but there's no easy way to know if that
10520     # patch is installed.  Since this is the case, all we can really
10521     # say is unknown -- it depends on the patch being installed.  If
10522     # it is, this changes to `yes'.  Without it, it would be `no'.
10523     libltdl_cv_sys_dlopen_deplibs=unknown
10524     ;;
10525   osf*)
10526     # the two cases above should catch all versions of osf <= 5.1.  Read
10527     # the comments above for what we know about them.
10528     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10529     # is used to find them so we can finally say `yes'.
10530     libltdl_cv_sys_dlopen_deplibs=yes
10531     ;;
10532   solaris*)
10533     libltdl_cv_sys_dlopen_deplibs=yes
10534     ;;
10535   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10536     libltdl_cv_sys_dlopen_deplibs=yes
10537     ;;
10538   esac
10539
10540 fi
10541 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10542 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10543 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10544
10545 cat >>confdefs.h <<\_ACEOF
10546 #define LTDL_DLOPEN_DEPLIBS 1
10547 _ACEOF
10548
10549 fi
10550
10551
10552 for ac_header in argz.h
10553 do
10554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10556   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10559   echo $ECHO_N "(cached) $ECHO_C" >&6
10560 fi
10561 ac_res=`eval echo '${'$as_ac_Header'}'`
10562                { echo "$as_me:$LINENO: result: $ac_res" >&5
10563 echo "${ECHO_T}$ac_res" >&6; }
10564 else
10565   # Is the header compilable?
10566 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10567 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10568 cat >conftest.$ac_ext <<_ACEOF
10569 /* confdefs.h.  */
10570 _ACEOF
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h.  */
10574 $ac_includes_default
10575 #include <$ac_header>
10576 _ACEOF
10577 rm -f conftest.$ac_objext
10578 if { (ac_try="$ac_compile"
10579 case "(($ac_try" in
10580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10581   *) ac_try_echo=$ac_try;;
10582 esac
10583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10584   (eval "$ac_compile") 2>conftest.er1
10585   ac_status=$?
10586   grep -v '^ *+' conftest.er1 >conftest.err
10587   rm -f conftest.er1
10588   cat conftest.err >&5
10589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590   (exit $ac_status); } &&
10591          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10592   { (case "(($ac_try" in
10593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594   *) ac_try_echo=$ac_try;;
10595 esac
10596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10597   (eval "$ac_try") 2>&5
10598   ac_status=$?
10599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600   (exit $ac_status); }; } &&
10601          { ac_try='test -s conftest.$ac_objext'
10602   { (case "(($ac_try" in
10603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604   *) ac_try_echo=$ac_try;;
10605 esac
10606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607   (eval "$ac_try") 2>&5
10608   ac_status=$?
10609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610   (exit $ac_status); }; }; then
10611   ac_header_compiler=yes
10612 else
10613   echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10615
10616         ac_header_compiler=no
10617 fi
10618
10619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10621 echo "${ECHO_T}$ac_header_compiler" >&6; }
10622
10623 # Is the header present?
10624 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10626 cat >conftest.$ac_ext <<_ACEOF
10627 /* confdefs.h.  */
10628 _ACEOF
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h.  */
10632 #include <$ac_header>
10633 _ACEOF
10634 if { (ac_try="$ac_cpp conftest.$ac_ext"
10635 case "(($ac_try" in
10636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637   *) ac_try_echo=$ac_try;;
10638 esac
10639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10640   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10641   ac_status=$?
10642   grep -v '^ *+' conftest.er1 >conftest.err
10643   rm -f conftest.er1
10644   cat conftest.err >&5
10645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646   (exit $ac_status); } >/dev/null; then
10647   if test -s conftest.err; then
10648     ac_cpp_err=$ac_c_preproc_warn_flag
10649     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10650   else
10651     ac_cpp_err=
10652   fi
10653 else
10654   ac_cpp_err=yes
10655 fi
10656 if test -z "$ac_cpp_err"; then
10657   ac_header_preproc=yes
10658 else
10659   echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.$ac_ext >&5
10661
10662   ac_header_preproc=no
10663 fi
10664
10665 rm -f conftest.err conftest.$ac_ext
10666 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10667 echo "${ECHO_T}$ac_header_preproc" >&6; }
10668
10669 # So?  What about this header?
10670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10671   yes:no: )
10672     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10673 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10674     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10675 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10676     ac_header_preproc=yes
10677     ;;
10678   no:yes:* )
10679     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10680 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10681     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10682 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10683     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10684 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10685     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10686 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10687     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10688 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10689     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10690 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10691     ( cat <<\_ASBOX
10692 ## ------------------------------ ##
10693 ## Report this to bugs@yourdomain ##
10694 ## ------------------------------ ##
10695 _ASBOX
10696      ) | sed "s/^/$as_me: WARNING:     /" >&2
10697     ;;
10698 esac
10699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10702   echo $ECHO_N "(cached) $ECHO_C" >&6
10703 else
10704   eval "$as_ac_Header=\$ac_header_preproc"
10705 fi
10706 ac_res=`eval echo '${'$as_ac_Header'}'`
10707                { echo "$as_me:$LINENO: result: $ac_res" >&5
10708 echo "${ECHO_T}$ac_res" >&6; }
10709
10710 fi
10711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10712   cat >>confdefs.h <<_ACEOF
10713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10714 _ACEOF
10715
10716 fi
10717
10718 done
10719
10720
10721 { echo "$as_me:$LINENO: checking for error_t" >&5
10722 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10723 if test "${ac_cv_type_error_t+set}" = set; then
10724   echo $ECHO_N "(cached) $ECHO_C" >&6
10725 else
10726   cat >conftest.$ac_ext <<_ACEOF
10727 /* confdefs.h.  */
10728 _ACEOF
10729 cat confdefs.h >>conftest.$ac_ext
10730 cat >>conftest.$ac_ext <<_ACEOF
10731 /* end confdefs.h.  */
10732 #if HAVE_ARGZ_H
10733 #  include <argz.h>
10734 #endif
10735
10736 typedef error_t ac__type_new_;
10737 int
10738 main ()
10739 {
10740 if ((ac__type_new_ *) 0)
10741   return 0;
10742 if (sizeof (ac__type_new_))
10743   return 0;
10744   ;
10745   return 0;
10746 }
10747 _ACEOF
10748 rm -f conftest.$ac_objext
10749 if { (ac_try="$ac_compile"
10750 case "(($ac_try" in
10751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10752   *) ac_try_echo=$ac_try;;
10753 esac
10754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10755   (eval "$ac_compile") 2>conftest.er1
10756   ac_status=$?
10757   grep -v '^ *+' conftest.er1 >conftest.err
10758   rm -f conftest.er1
10759   cat conftest.err >&5
10760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761   (exit $ac_status); } &&
10762          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10763   { (case "(($ac_try" in
10764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765   *) ac_try_echo=$ac_try;;
10766 esac
10767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768   (eval "$ac_try") 2>&5
10769   ac_status=$?
10770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771   (exit $ac_status); }; } &&
10772          { ac_try='test -s conftest.$ac_objext'
10773   { (case "(($ac_try" in
10774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10775   *) ac_try_echo=$ac_try;;
10776 esac
10777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10778   (eval "$ac_try") 2>&5
10779   ac_status=$?
10780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781   (exit $ac_status); }; }; then
10782   ac_cv_type_error_t=yes
10783 else
10784   echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.$ac_ext >&5
10786
10787         ac_cv_type_error_t=no
10788 fi
10789
10790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10791 fi
10792 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10793 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10794 if test $ac_cv_type_error_t = yes; then
10795
10796 cat >>confdefs.h <<_ACEOF
10797 #define HAVE_ERROR_T 1
10798 _ACEOF
10799
10800
10801 else
10802
10803 cat >>confdefs.h <<\_ACEOF
10804 #define error_t int
10805 _ACEOF
10806
10807 fi
10808
10809
10810
10811
10812
10813
10814
10815 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10816 do
10817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10818 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10820 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10821   echo $ECHO_N "(cached) $ECHO_C" >&6
10822 else
10823   cat >conftest.$ac_ext <<_ACEOF
10824 /* confdefs.h.  */
10825 _ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h.  */
10829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10830    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10831 #define $ac_func innocuous_$ac_func
10832
10833 /* System header to define __stub macros and hopefully few prototypes,
10834     which can conflict with char $ac_func (); below.
10835     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10836     <limits.h> exists even on freestanding compilers.  */
10837
10838 #ifdef __STDC__
10839 # include <limits.h>
10840 #else
10841 # include <assert.h>
10842 #endif
10843
10844 #undef $ac_func
10845
10846 /* Override any GCC internal prototype to avoid an error.
10847    Use char because int might match the return type of a GCC
10848    builtin and then its argument prototype would still apply.  */
10849 #ifdef __cplusplus
10850 extern "C"
10851 #endif
10852 char $ac_func ();
10853 /* The GNU C library defines this for functions which it implements
10854     to always fail with ENOSYS.  Some functions are actually named
10855     something starting with __ and the normal name is an alias.  */
10856 #if defined __stub_$ac_func || defined __stub___$ac_func
10857 choke me
10858 #endif
10859
10860 int
10861 main ()
10862 {
10863 return $ac_func ();
10864   ;
10865   return 0;
10866 }
10867 _ACEOF
10868 rm -f conftest.$ac_objext conftest$ac_exeext
10869 if { (ac_try="$ac_link"
10870 case "(($ac_try" in
10871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872   *) ac_try_echo=$ac_try;;
10873 esac
10874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875   (eval "$ac_link") 2>conftest.er1
10876   ac_status=$?
10877   grep -v '^ *+' conftest.er1 >conftest.err
10878   rm -f conftest.er1
10879   cat conftest.err >&5
10880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881   (exit $ac_status); } &&
10882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10883   { (case "(($ac_try" in
10884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885   *) ac_try_echo=$ac_try;;
10886 esac
10887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10888   (eval "$ac_try") 2>&5
10889   ac_status=$?
10890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891   (exit $ac_status); }; } &&
10892          { ac_try='test -s conftest$ac_exeext'
10893   { (case "(($ac_try" in
10894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10895   *) ac_try_echo=$ac_try;;
10896 esac
10897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10898   (eval "$ac_try") 2>&5
10899   ac_status=$?
10900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901   (exit $ac_status); }; }; then
10902   eval "$as_ac_var=yes"
10903 else
10904   echo "$as_me: failed program was:" >&5
10905 sed 's/^/| /' conftest.$ac_ext >&5
10906
10907         eval "$as_ac_var=no"
10908 fi
10909
10910 rm -f core conftest.err conftest.$ac_objext \
10911       conftest$ac_exeext conftest.$ac_ext
10912 fi
10913 ac_res=`eval echo '${'$as_ac_var'}'`
10914                { echo "$as_me:$LINENO: result: $ac_res" >&5
10915 echo "${ECHO_T}$ac_res" >&6; }
10916 if test `eval echo '${'$as_ac_var'}'` = yes; then
10917   cat >>confdefs.h <<_ACEOF
10918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10919 _ACEOF
10920
10921 fi
10922 done
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10952                   stdio.h unistd.h
10953 do
10954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10956   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10959   echo $ECHO_N "(cached) $ECHO_C" >&6
10960 fi
10961 ac_res=`eval echo '${'$as_ac_Header'}'`
10962                { echo "$as_me:$LINENO: result: $ac_res" >&5
10963 echo "${ECHO_T}$ac_res" >&6; }
10964 else
10965   # Is the header compilable?
10966 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10968 cat >conftest.$ac_ext <<_ACEOF
10969 /* confdefs.h.  */
10970 _ACEOF
10971 cat confdefs.h >>conftest.$ac_ext
10972 cat >>conftest.$ac_ext <<_ACEOF
10973 /* end confdefs.h.  */
10974 $ac_includes_default
10975 #include <$ac_header>
10976 _ACEOF
10977 rm -f conftest.$ac_objext
10978 if { (ac_try="$ac_compile"
10979 case "(($ac_try" in
10980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981   *) ac_try_echo=$ac_try;;
10982 esac
10983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10984   (eval "$ac_compile") 2>conftest.er1
10985   ac_status=$?
10986   grep -v '^ *+' conftest.er1 >conftest.err
10987   rm -f conftest.er1
10988   cat conftest.err >&5
10989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990   (exit $ac_status); } &&
10991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10992   { (case "(($ac_try" in
10993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994   *) ac_try_echo=$ac_try;;
10995 esac
10996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10997   (eval "$ac_try") 2>&5
10998   ac_status=$?
10999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000   (exit $ac_status); }; } &&
11001          { ac_try='test -s conftest.$ac_objext'
11002   { (case "(($ac_try" in
11003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004   *) ac_try_echo=$ac_try;;
11005 esac
11006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11007   (eval "$ac_try") 2>&5
11008   ac_status=$?
11009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010   (exit $ac_status); }; }; then
11011   ac_header_compiler=yes
11012 else
11013   echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11015
11016         ac_header_compiler=no
11017 fi
11018
11019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11021 echo "${ECHO_T}$ac_header_compiler" >&6; }
11022
11023 # Is the header present?
11024 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11026 cat >conftest.$ac_ext <<_ACEOF
11027 /* confdefs.h.  */
11028 _ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h.  */
11032 #include <$ac_header>
11033 _ACEOF
11034 if { (ac_try="$ac_cpp conftest.$ac_ext"
11035 case "(($ac_try" in
11036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037   *) ac_try_echo=$ac_try;;
11038 esac
11039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11041   ac_status=$?
11042   grep -v '^ *+' conftest.er1 >conftest.err
11043   rm -f conftest.er1
11044   cat conftest.err >&5
11045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046   (exit $ac_status); } >/dev/null; then
11047   if test -s conftest.err; then
11048     ac_cpp_err=$ac_c_preproc_warn_flag
11049     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11050   else
11051     ac_cpp_err=
11052   fi
11053 else
11054   ac_cpp_err=yes
11055 fi
11056 if test -z "$ac_cpp_err"; then
11057   ac_header_preproc=yes
11058 else
11059   echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.$ac_ext >&5
11061
11062   ac_header_preproc=no
11063 fi
11064
11065 rm -f conftest.err conftest.$ac_ext
11066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11067 echo "${ECHO_T}$ac_header_preproc" >&6; }
11068
11069 # So?  What about this header?
11070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11071   yes:no: )
11072     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11074     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11076     ac_header_preproc=yes
11077     ;;
11078   no:yes:* )
11079     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11081     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11082 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11083     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11085     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11086 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11087     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11089     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11091     ( cat <<\_ASBOX
11092 ## ------------------------------ ##
11093 ## Report this to bugs@yourdomain ##
11094 ## ------------------------------ ##
11095 _ASBOX
11096      ) | sed "s/^/$as_me: WARNING:     /" >&2
11097     ;;
11098 esac
11099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11102   echo $ECHO_N "(cached) $ECHO_C" >&6
11103 else
11104   eval "$as_ac_Header=\$ac_header_preproc"
11105 fi
11106 ac_res=`eval echo '${'$as_ac_Header'}'`
11107                { echo "$as_me:$LINENO: result: $ac_res" >&5
11108 echo "${ECHO_T}$ac_res" >&6; }
11109
11110 fi
11111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11112   cat >>confdefs.h <<_ACEOF
11113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11114 _ACEOF
11115
11116 fi
11117
11118 done
11119
11120
11121
11122
11123
11124 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11125 do
11126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11128   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11131   echo $ECHO_N "(cached) $ECHO_C" >&6
11132 fi
11133 ac_res=`eval echo '${'$as_ac_Header'}'`
11134                { echo "$as_me:$LINENO: result: $ac_res" >&5
11135 echo "${ECHO_T}$ac_res" >&6; }
11136 else
11137   # Is the header compilable?
11138 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11140 cat >conftest.$ac_ext <<_ACEOF
11141 /* confdefs.h.  */
11142 _ACEOF
11143 cat confdefs.h >>conftest.$ac_ext
11144 cat >>conftest.$ac_ext <<_ACEOF
11145 /* end confdefs.h.  */
11146 $ac_includes_default
11147 #include <$ac_header>
11148 _ACEOF
11149 rm -f conftest.$ac_objext
11150 if { (ac_try="$ac_compile"
11151 case "(($ac_try" in
11152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153   *) ac_try_echo=$ac_try;;
11154 esac
11155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11156   (eval "$ac_compile") 2>conftest.er1
11157   ac_status=$?
11158   grep -v '^ *+' conftest.er1 >conftest.err
11159   rm -f conftest.er1
11160   cat conftest.err >&5
11161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162   (exit $ac_status); } &&
11163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11164   { (case "(($ac_try" in
11165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166   *) ac_try_echo=$ac_try;;
11167 esac
11168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169   (eval "$ac_try") 2>&5
11170   ac_status=$?
11171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172   (exit $ac_status); }; } &&
11173          { ac_try='test -s conftest.$ac_objext'
11174   { (case "(($ac_try" in
11175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176   *) ac_try_echo=$ac_try;;
11177 esac
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179   (eval "$ac_try") 2>&5
11180   ac_status=$?
11181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182   (exit $ac_status); }; }; then
11183   ac_header_compiler=yes
11184 else
11185   echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11187
11188         ac_header_compiler=no
11189 fi
11190
11191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11193 echo "${ECHO_T}$ac_header_compiler" >&6; }
11194
11195 # Is the header present?
11196 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11198 cat >conftest.$ac_ext <<_ACEOF
11199 /* confdefs.h.  */
11200 _ACEOF
11201 cat confdefs.h >>conftest.$ac_ext
11202 cat >>conftest.$ac_ext <<_ACEOF
11203 /* end confdefs.h.  */
11204 #include <$ac_header>
11205 _ACEOF
11206 if { (ac_try="$ac_cpp conftest.$ac_ext"
11207 case "(($ac_try" in
11208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209   *) ac_try_echo=$ac_try;;
11210 esac
11211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11212   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11213   ac_status=$?
11214   grep -v '^ *+' conftest.er1 >conftest.err
11215   rm -f conftest.er1
11216   cat conftest.err >&5
11217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218   (exit $ac_status); } >/dev/null; then
11219   if test -s conftest.err; then
11220     ac_cpp_err=$ac_c_preproc_warn_flag
11221     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11222   else
11223     ac_cpp_err=
11224   fi
11225 else
11226   ac_cpp_err=yes
11227 fi
11228 if test -z "$ac_cpp_err"; then
11229   ac_header_preproc=yes
11230 else
11231   echo "$as_me: failed program was:" >&5
11232 sed 's/^/| /' conftest.$ac_ext >&5
11233
11234   ac_header_preproc=no
11235 fi
11236
11237 rm -f conftest.err conftest.$ac_ext
11238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11239 echo "${ECHO_T}$ac_header_preproc" >&6; }
11240
11241 # So?  What about this header?
11242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11243   yes:no: )
11244     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11246     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11248     ac_header_preproc=yes
11249     ;;
11250   no:yes:* )
11251     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11253     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11254 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11255     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11257     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11258 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11259     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11261     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11263     ( cat <<\_ASBOX
11264 ## ------------------------------ ##
11265 ## Report this to bugs@yourdomain ##
11266 ## ------------------------------ ##
11267 _ASBOX
11268      ) | sed "s/^/$as_me: WARNING:     /" >&2
11269     ;;
11270 esac
11271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11274   echo $ECHO_N "(cached) $ECHO_C" >&6
11275 else
11276   eval "$as_ac_Header=\$ac_header_preproc"
11277 fi
11278 ac_res=`eval echo '${'$as_ac_Header'}'`
11279                { echo "$as_me:$LINENO: result: $ac_res" >&5
11280 echo "${ECHO_T}$ac_res" >&6; }
11281
11282 fi
11283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11284   cat >>confdefs.h <<_ACEOF
11285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11286 _ACEOF
11287
11288 fi
11289
11290 done
11291
11292
11293
11294 for ac_header in string.h strings.h
11295 do
11296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11298   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11301   echo $ECHO_N "(cached) $ECHO_C" >&6
11302 fi
11303 ac_res=`eval echo '${'$as_ac_Header'}'`
11304                { echo "$as_me:$LINENO: result: $ac_res" >&5
11305 echo "${ECHO_T}$ac_res" >&6; }
11306 else
11307   # Is the header compilable?
11308 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11310 cat >conftest.$ac_ext <<_ACEOF
11311 /* confdefs.h.  */
11312 _ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h.  */
11316 $ac_includes_default
11317 #include <$ac_header>
11318 _ACEOF
11319 rm -f conftest.$ac_objext
11320 if { (ac_try="$ac_compile"
11321 case "(($ac_try" in
11322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11323   *) ac_try_echo=$ac_try;;
11324 esac
11325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11326   (eval "$ac_compile") 2>conftest.er1
11327   ac_status=$?
11328   grep -v '^ *+' conftest.er1 >conftest.err
11329   rm -f conftest.er1
11330   cat conftest.err >&5
11331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332   (exit $ac_status); } &&
11333          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11334   { (case "(($ac_try" in
11335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336   *) ac_try_echo=$ac_try;;
11337 esac
11338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339   (eval "$ac_try") 2>&5
11340   ac_status=$?
11341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342   (exit $ac_status); }; } &&
11343          { ac_try='test -s conftest.$ac_objext'
11344   { (case "(($ac_try" in
11345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346   *) ac_try_echo=$ac_try;;
11347 esac
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349   (eval "$ac_try") 2>&5
11350   ac_status=$?
11351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352   (exit $ac_status); }; }; then
11353   ac_header_compiler=yes
11354 else
11355   echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11357
11358         ac_header_compiler=no
11359 fi
11360
11361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11363 echo "${ECHO_T}$ac_header_compiler" >&6; }
11364
11365 # Is the header present?
11366 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11368 cat >conftest.$ac_ext <<_ACEOF
11369 /* confdefs.h.  */
11370 _ACEOF
11371 cat confdefs.h >>conftest.$ac_ext
11372 cat >>conftest.$ac_ext <<_ACEOF
11373 /* end confdefs.h.  */
11374 #include <$ac_header>
11375 _ACEOF
11376 if { (ac_try="$ac_cpp conftest.$ac_ext"
11377 case "(($ac_try" in
11378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379   *) ac_try_echo=$ac_try;;
11380 esac
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11383   ac_status=$?
11384   grep -v '^ *+' conftest.er1 >conftest.err
11385   rm -f conftest.er1
11386   cat conftest.err >&5
11387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388   (exit $ac_status); } >/dev/null; then
11389   if test -s conftest.err; then
11390     ac_cpp_err=$ac_c_preproc_warn_flag
11391     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11392   else
11393     ac_cpp_err=
11394   fi
11395 else
11396   ac_cpp_err=yes
11397 fi
11398 if test -z "$ac_cpp_err"; then
11399   ac_header_preproc=yes
11400 else
11401   echo "$as_me: failed program was:" >&5
11402 sed 's/^/| /' conftest.$ac_ext >&5
11403
11404   ac_header_preproc=no
11405 fi
11406
11407 rm -f conftest.err conftest.$ac_ext
11408 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11409 echo "${ECHO_T}$ac_header_preproc" >&6; }
11410
11411 # So?  What about this header?
11412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11413   yes:no: )
11414     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11416     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11418     ac_header_preproc=yes
11419     ;;
11420   no:yes:* )
11421     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11423     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11424 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11425     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11427     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11428 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11429     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11431     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11433     ( cat <<\_ASBOX
11434 ## ------------------------------ ##
11435 ## Report this to bugs@yourdomain ##
11436 ## ------------------------------ ##
11437 _ASBOX
11438      ) | sed "s/^/$as_me: WARNING:     /" >&2
11439     ;;
11440 esac
11441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11444   echo $ECHO_N "(cached) $ECHO_C" >&6
11445 else
11446   eval "$as_ac_Header=\$ac_header_preproc"
11447 fi
11448 ac_res=`eval echo '${'$as_ac_Header'}'`
11449                { echo "$as_me:$LINENO: result: $ac_res" >&5
11450 echo "${ECHO_T}$ac_res" >&6; }
11451
11452 fi
11453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11454   cat >>confdefs.h <<_ACEOF
11455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11456 _ACEOF
11457  break
11458 fi
11459
11460 done
11461
11462
11463
11464
11465 for ac_func in strchr index
11466 do
11467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11471   echo $ECHO_N "(cached) $ECHO_C" >&6
11472 else
11473   cat >conftest.$ac_ext <<_ACEOF
11474 /* confdefs.h.  */
11475 _ACEOF
11476 cat confdefs.h >>conftest.$ac_ext
11477 cat >>conftest.$ac_ext <<_ACEOF
11478 /* end confdefs.h.  */
11479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11480    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11481 #define $ac_func innocuous_$ac_func
11482
11483 /* System header to define __stub macros and hopefully few prototypes,
11484     which can conflict with char $ac_func (); below.
11485     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11486     <limits.h> exists even on freestanding compilers.  */
11487
11488 #ifdef __STDC__
11489 # include <limits.h>
11490 #else
11491 # include <assert.h>
11492 #endif
11493
11494 #undef $ac_func
11495
11496 /* Override any GCC internal prototype to avoid an error.
11497    Use char because int might match the return type of a GCC
11498    builtin and then its argument prototype would still apply.  */
11499 #ifdef __cplusplus
11500 extern "C"
11501 #endif
11502 char $ac_func ();
11503 /* The GNU C library defines this for functions which it implements
11504     to always fail with ENOSYS.  Some functions are actually named
11505     something starting with __ and the normal name is an alias.  */
11506 #if defined __stub_$ac_func || defined __stub___$ac_func
11507 choke me
11508 #endif
11509
11510 int
11511 main ()
11512 {
11513 return $ac_func ();
11514   ;
11515   return 0;
11516 }
11517 _ACEOF
11518 rm -f conftest.$ac_objext conftest$ac_exeext
11519 if { (ac_try="$ac_link"
11520 case "(($ac_try" in
11521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522   *) ac_try_echo=$ac_try;;
11523 esac
11524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525   (eval "$ac_link") 2>conftest.er1
11526   ac_status=$?
11527   grep -v '^ *+' conftest.er1 >conftest.err
11528   rm -f conftest.er1
11529   cat conftest.err >&5
11530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531   (exit $ac_status); } &&
11532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11533   { (case "(($ac_try" in
11534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535   *) ac_try_echo=$ac_try;;
11536 esac
11537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11538   (eval "$ac_try") 2>&5
11539   ac_status=$?
11540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541   (exit $ac_status); }; } &&
11542          { ac_try='test -s conftest$ac_exeext'
11543   { (case "(($ac_try" in
11544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545   *) ac_try_echo=$ac_try;;
11546 esac
11547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548   (eval "$ac_try") 2>&5
11549   ac_status=$?
11550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551   (exit $ac_status); }; }; then
11552   eval "$as_ac_var=yes"
11553 else
11554   echo "$as_me: failed program was:" >&5
11555 sed 's/^/| /' conftest.$ac_ext >&5
11556
11557         eval "$as_ac_var=no"
11558 fi
11559
11560 rm -f core conftest.err conftest.$ac_objext \
11561       conftest$ac_exeext conftest.$ac_ext
11562 fi
11563 ac_res=`eval echo '${'$as_ac_var'}'`
11564                { echo "$as_me:$LINENO: result: $ac_res" >&5
11565 echo "${ECHO_T}$ac_res" >&6; }
11566 if test `eval echo '${'$as_ac_var'}'` = yes; then
11567   cat >>confdefs.h <<_ACEOF
11568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11569 _ACEOF
11570  break
11571 fi
11572 done
11573
11574
11575
11576 for ac_func in strrchr rindex
11577 do
11578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11579 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11582   echo $ECHO_N "(cached) $ECHO_C" >&6
11583 else
11584   cat >conftest.$ac_ext <<_ACEOF
11585 /* confdefs.h.  */
11586 _ACEOF
11587 cat confdefs.h >>conftest.$ac_ext
11588 cat >>conftest.$ac_ext <<_ACEOF
11589 /* end confdefs.h.  */
11590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11592 #define $ac_func innocuous_$ac_func
11593
11594 /* System header to define __stub macros and hopefully few prototypes,
11595     which can conflict with char $ac_func (); below.
11596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11597     <limits.h> exists even on freestanding compilers.  */
11598
11599 #ifdef __STDC__
11600 # include <limits.h>
11601 #else
11602 # include <assert.h>
11603 #endif
11604
11605 #undef $ac_func
11606
11607 /* Override any GCC internal prototype to avoid an error.
11608    Use char because int might match the return type of a GCC
11609    builtin and then its argument prototype would still apply.  */
11610 #ifdef __cplusplus
11611 extern "C"
11612 #endif
11613 char $ac_func ();
11614 /* The GNU C library defines this for functions which it implements
11615     to always fail with ENOSYS.  Some functions are actually named
11616     something starting with __ and the normal name is an alias.  */
11617 #if defined __stub_$ac_func || defined __stub___$ac_func
11618 choke me
11619 #endif
11620
11621 int
11622 main ()
11623 {
11624 return $ac_func ();
11625   ;
11626   return 0;
11627 }
11628 _ACEOF
11629 rm -f conftest.$ac_objext conftest$ac_exeext
11630 if { (ac_try="$ac_link"
11631 case "(($ac_try" in
11632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11633   *) ac_try_echo=$ac_try;;
11634 esac
11635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11636   (eval "$ac_link") 2>conftest.er1
11637   ac_status=$?
11638   grep -v '^ *+' conftest.er1 >conftest.err
11639   rm -f conftest.er1
11640   cat conftest.err >&5
11641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642   (exit $ac_status); } &&
11643          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11644   { (case "(($ac_try" in
11645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11646   *) ac_try_echo=$ac_try;;
11647 esac
11648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11649   (eval "$ac_try") 2>&5
11650   ac_status=$?
11651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652   (exit $ac_status); }; } &&
11653          { ac_try='test -s conftest$ac_exeext'
11654   { (case "(($ac_try" in
11655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656   *) ac_try_echo=$ac_try;;
11657 esac
11658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659   (eval "$ac_try") 2>&5
11660   ac_status=$?
11661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662   (exit $ac_status); }; }; then
11663   eval "$as_ac_var=yes"
11664 else
11665   echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11667
11668         eval "$as_ac_var=no"
11669 fi
11670
11671 rm -f core conftest.err conftest.$ac_objext \
11672       conftest$ac_exeext conftest.$ac_ext
11673 fi
11674 ac_res=`eval echo '${'$as_ac_var'}'`
11675                { echo "$as_me:$LINENO: result: $ac_res" >&5
11676 echo "${ECHO_T}$ac_res" >&6; }
11677 if test `eval echo '${'$as_ac_var'}'` = yes; then
11678   cat >>confdefs.h <<_ACEOF
11679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11680 _ACEOF
11681  break
11682 fi
11683 done
11684
11685
11686
11687 for ac_func in memcpy bcopy
11688 do
11689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11690 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11692 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11693   echo $ECHO_N "(cached) $ECHO_C" >&6
11694 else
11695   cat >conftest.$ac_ext <<_ACEOF
11696 /* confdefs.h.  */
11697 _ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h.  */
11701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11702    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11703 #define $ac_func innocuous_$ac_func
11704
11705 /* System header to define __stub macros and hopefully few prototypes,
11706     which can conflict with char $ac_func (); below.
11707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11708     <limits.h> exists even on freestanding compilers.  */
11709
11710 #ifdef __STDC__
11711 # include <limits.h>
11712 #else
11713 # include <assert.h>
11714 #endif
11715
11716 #undef $ac_func
11717
11718 /* Override any GCC internal prototype to avoid an error.
11719    Use char because int might match the return type of a GCC
11720    builtin and then its argument prototype would still apply.  */
11721 #ifdef __cplusplus
11722 extern "C"
11723 #endif
11724 char $ac_func ();
11725 /* The GNU C library defines this for functions which it implements
11726     to always fail with ENOSYS.  Some functions are actually named
11727     something starting with __ and the normal name is an alias.  */
11728 #if defined __stub_$ac_func || defined __stub___$ac_func
11729 choke me
11730 #endif
11731
11732 int
11733 main ()
11734 {
11735 return $ac_func ();
11736   ;
11737   return 0;
11738 }
11739 _ACEOF
11740 rm -f conftest.$ac_objext conftest$ac_exeext
11741 if { (ac_try="$ac_link"
11742 case "(($ac_try" in
11743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11744   *) ac_try_echo=$ac_try;;
11745 esac
11746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11747   (eval "$ac_link") 2>conftest.er1
11748   ac_status=$?
11749   grep -v '^ *+' conftest.er1 >conftest.err
11750   rm -f conftest.er1
11751   cat conftest.err >&5
11752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753   (exit $ac_status); } &&
11754          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11755   { (case "(($ac_try" in
11756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11757   *) ac_try_echo=$ac_try;;
11758 esac
11759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11760   (eval "$ac_try") 2>&5
11761   ac_status=$?
11762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763   (exit $ac_status); }; } &&
11764          { ac_try='test -s conftest$ac_exeext'
11765   { (case "(($ac_try" in
11766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11767   *) ac_try_echo=$ac_try;;
11768 esac
11769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11770   (eval "$ac_try") 2>&5
11771   ac_status=$?
11772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773   (exit $ac_status); }; }; then
11774   eval "$as_ac_var=yes"
11775 else
11776   echo "$as_me: failed program was:" >&5
11777 sed 's/^/| /' conftest.$ac_ext >&5
11778
11779         eval "$as_ac_var=no"
11780 fi
11781
11782 rm -f core conftest.err conftest.$ac_objext \
11783       conftest$ac_exeext conftest.$ac_ext
11784 fi
11785 ac_res=`eval echo '${'$as_ac_var'}'`
11786                { echo "$as_me:$LINENO: result: $ac_res" >&5
11787 echo "${ECHO_T}$ac_res" >&6; }
11788 if test `eval echo '${'$as_ac_var'}'` = yes; then
11789   cat >>confdefs.h <<_ACEOF
11790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11791 _ACEOF
11792  break
11793 fi
11794 done
11795
11796
11797
11798 for ac_func in memmove strcmp
11799 do
11800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11801 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11803 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11804   echo $ECHO_N "(cached) $ECHO_C" >&6
11805 else
11806   cat >conftest.$ac_ext <<_ACEOF
11807 /* confdefs.h.  */
11808 _ACEOF
11809 cat confdefs.h >>conftest.$ac_ext
11810 cat >>conftest.$ac_ext <<_ACEOF
11811 /* end confdefs.h.  */
11812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11813    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11814 #define $ac_func innocuous_$ac_func
11815
11816 /* System header to define __stub macros and hopefully few prototypes,
11817     which can conflict with char $ac_func (); below.
11818     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11819     <limits.h> exists even on freestanding compilers.  */
11820
11821 #ifdef __STDC__
11822 # include <limits.h>
11823 #else
11824 # include <assert.h>
11825 #endif
11826
11827 #undef $ac_func
11828
11829 /* Override any GCC internal prototype to avoid an error.
11830    Use char because int might match the return type of a GCC
11831    builtin and then its argument prototype would still apply.  */
11832 #ifdef __cplusplus
11833 extern "C"
11834 #endif
11835 char $ac_func ();
11836 /* The GNU C library defines this for functions which it implements
11837     to always fail with ENOSYS.  Some functions are actually named
11838     something starting with __ and the normal name is an alias.  */
11839 #if defined __stub_$ac_func || defined __stub___$ac_func
11840 choke me
11841 #endif
11842
11843 int
11844 main ()
11845 {
11846 return $ac_func ();
11847   ;
11848   return 0;
11849 }
11850 _ACEOF
11851 rm -f conftest.$ac_objext conftest$ac_exeext
11852 if { (ac_try="$ac_link"
11853 case "(($ac_try" in
11854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11855   *) ac_try_echo=$ac_try;;
11856 esac
11857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11858   (eval "$ac_link") 2>conftest.er1
11859   ac_status=$?
11860   grep -v '^ *+' conftest.er1 >conftest.err
11861   rm -f conftest.er1
11862   cat conftest.err >&5
11863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864   (exit $ac_status); } &&
11865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11866   { (case "(($ac_try" in
11867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868   *) ac_try_echo=$ac_try;;
11869 esac
11870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871   (eval "$ac_try") 2>&5
11872   ac_status=$?
11873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874   (exit $ac_status); }; } &&
11875          { ac_try='test -s conftest$ac_exeext'
11876   { (case "(($ac_try" in
11877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878   *) ac_try_echo=$ac_try;;
11879 esac
11880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881   (eval "$ac_try") 2>&5
11882   ac_status=$?
11883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884   (exit $ac_status); }; }; then
11885   eval "$as_ac_var=yes"
11886 else
11887   echo "$as_me: failed program was:" >&5
11888 sed 's/^/| /' conftest.$ac_ext >&5
11889
11890         eval "$as_ac_var=no"
11891 fi
11892
11893 rm -f core conftest.err conftest.$ac_objext \
11894       conftest$ac_exeext conftest.$ac_ext
11895 fi
11896 ac_res=`eval echo '${'$as_ac_var'}'`
11897                { echo "$as_me:$LINENO: result: $ac_res" >&5
11898 echo "${ECHO_T}$ac_res" >&6; }
11899 if test `eval echo '${'$as_ac_var'}'` = yes; then
11900   cat >>confdefs.h <<_ACEOF
11901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11902 _ACEOF
11903
11904 fi
11905 done
11906
11907
11908
11909
11910 for ac_func in closedir opendir readdir
11911 do
11912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11913 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11916   echo $ECHO_N "(cached) $ECHO_C" >&6
11917 else
11918   cat >conftest.$ac_ext <<_ACEOF
11919 /* confdefs.h.  */
11920 _ACEOF
11921 cat confdefs.h >>conftest.$ac_ext
11922 cat >>conftest.$ac_ext <<_ACEOF
11923 /* end confdefs.h.  */
11924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11925    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11926 #define $ac_func innocuous_$ac_func
11927
11928 /* System header to define __stub macros and hopefully few prototypes,
11929     which can conflict with char $ac_func (); below.
11930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11931     <limits.h> exists even on freestanding compilers.  */
11932
11933 #ifdef __STDC__
11934 # include <limits.h>
11935 #else
11936 # include <assert.h>
11937 #endif
11938
11939 #undef $ac_func
11940
11941 /* Override any GCC internal prototype to avoid an error.
11942    Use char because int might match the return type of a GCC
11943    builtin and then its argument prototype would still apply.  */
11944 #ifdef __cplusplus
11945 extern "C"
11946 #endif
11947 char $ac_func ();
11948 /* The GNU C library defines this for functions which it implements
11949     to always fail with ENOSYS.  Some functions are actually named
11950     something starting with __ and the normal name is an alias.  */
11951 #if defined __stub_$ac_func || defined __stub___$ac_func
11952 choke me
11953 #endif
11954
11955 int
11956 main ()
11957 {
11958 return $ac_func ();
11959   ;
11960   return 0;
11961 }
11962 _ACEOF
11963 rm -f conftest.$ac_objext conftest$ac_exeext
11964 if { (ac_try="$ac_link"
11965 case "(($ac_try" in
11966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11967   *) ac_try_echo=$ac_try;;
11968 esac
11969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11970   (eval "$ac_link") 2>conftest.er1
11971   ac_status=$?
11972   grep -v '^ *+' conftest.er1 >conftest.err
11973   rm -f conftest.er1
11974   cat conftest.err >&5
11975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976   (exit $ac_status); } &&
11977          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11978   { (case "(($ac_try" in
11979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980   *) ac_try_echo=$ac_try;;
11981 esac
11982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11983   (eval "$ac_try") 2>&5
11984   ac_status=$?
11985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986   (exit $ac_status); }; } &&
11987          { ac_try='test -s conftest$ac_exeext'
11988   { (case "(($ac_try" in
11989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990   *) ac_try_echo=$ac_try;;
11991 esac
11992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11993   (eval "$ac_try") 2>&5
11994   ac_status=$?
11995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996   (exit $ac_status); }; }; then
11997   eval "$as_ac_var=yes"
11998 else
11999   echo "$as_me: failed program was:" >&5
12000 sed 's/^/| /' conftest.$ac_ext >&5
12001
12002         eval "$as_ac_var=no"
12003 fi
12004
12005 rm -f core conftest.err conftest.$ac_objext \
12006       conftest$ac_exeext conftest.$ac_ext
12007 fi
12008 ac_res=`eval echo '${'$as_ac_var'}'`
12009                { echo "$as_me:$LINENO: result: $ac_res" >&5
12010 echo "${ECHO_T}$ac_res" >&6; }
12011 if test `eval echo '${'$as_ac_var'}'` = yes; then
12012   cat >>confdefs.h <<_ACEOF
12013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12014 _ACEOF
12015
12016 fi
12017 done
12018
12019
12020
12021 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12022 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12023
12024 ICC=no
12025 IXX=no
12026 case $CC in
12027   icc*|icpc*)
12028     ICC=yes
12029     IXX=yes
12030     ;;
12031    *)
12032     ;;
12033 esac
12034
12035 if test "$GCC" != "yes" && test "$ICC" != "yes"
12036 then
12037   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12038 echo "$as_me: error: gcc|icc required but not found" >&2;}
12039    { (exit 1); exit 1; }; }
12040 fi
12041
12042 if test "$GXX" != "yes" && test "$IXX" != "yes"
12043 then
12044   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12045 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12046    { (exit 1); exit 1; }; }
12047 fi
12048
12049 if test "$GCC" = "yes"
12050 then
12051   cat >conftest.$ac_ext <<_ACEOF
12052 #if !defined(__GNUC__) || __GNUC__ < 3
12053 #error Unsupported GCC version
12054 #endif
12055
12056 _ACEOF
12057 rm -f conftest.$ac_objext
12058 if { (ac_try="$ac_compile"
12059 case "(($ac_try" in
12060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12061   *) ac_try_echo=$ac_try;;
12062 esac
12063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12064   (eval "$ac_compile") 2>conftest.er1
12065   ac_status=$?
12066   grep -v '^ *+' conftest.er1 >conftest.err
12067   rm -f conftest.er1
12068   cat conftest.err >&5
12069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070   (exit $ac_status); } &&
12071          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12072   { (case "(($ac_try" in
12073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074   *) ac_try_echo=$ac_try;;
12075 esac
12076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077   (eval "$ac_try") 2>&5
12078   ac_status=$?
12079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080   (exit $ac_status); }; } &&
12081          { ac_try='test -s conftest.$ac_objext'
12082   { (case "(($ac_try" in
12083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084   *) ac_try_echo=$ac_try;;
12085 esac
12086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12087   (eval "$ac_try") 2>&5
12088   ac_status=$?
12089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090   (exit $ac_status); }; }; then
12091   :
12092 else
12093   echo "$as_me: failed program was:" >&5
12094 sed 's/^/| /' conftest.$ac_ext >&5
12095
12096         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12097 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12098    { (exit 1); exit 1; }; }
12099 fi
12100
12101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12102 fi
12103
12104 if test -z "$llvm_cv_gnu_make_command"
12105 then
12106   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12107 echo "$as_me: error: GNU Make required but not found" >&2;}
12108    { (exit 1); exit 1; }; }
12109 fi
12110
12111 { echo "$as_me:$LINENO: result: ok" >&5
12112 echo "${ECHO_T}ok" >&6; }
12113
12114 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12115 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12116 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12117
12118 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12119
12120 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12121
12122 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12123 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12124
12125
12126
12127 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12128 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12129 if test "${ac_cv_lib_m_sin+set}" = set; then
12130   echo $ECHO_N "(cached) $ECHO_C" >&6
12131 else
12132   ac_check_lib_save_LIBS=$LIBS
12133 LIBS="-lm  $LIBS"
12134 cat >conftest.$ac_ext <<_ACEOF
12135 /* confdefs.h.  */
12136 _ACEOF
12137 cat confdefs.h >>conftest.$ac_ext
12138 cat >>conftest.$ac_ext <<_ACEOF
12139 /* end confdefs.h.  */
12140
12141 /* Override any GCC internal prototype to avoid an error.
12142    Use char because int might match the return type of a GCC
12143    builtin and then its argument prototype would still apply.  */
12144 #ifdef __cplusplus
12145 extern "C"
12146 #endif
12147 char sin ();
12148 int
12149 main ()
12150 {
12151 return sin ();
12152   ;
12153   return 0;
12154 }
12155 _ACEOF
12156 rm -f conftest.$ac_objext conftest$ac_exeext
12157 if { (ac_try="$ac_link"
12158 case "(($ac_try" in
12159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12160   *) ac_try_echo=$ac_try;;
12161 esac
12162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12163   (eval "$ac_link") 2>conftest.er1
12164   ac_status=$?
12165   grep -v '^ *+' conftest.er1 >conftest.err
12166   rm -f conftest.er1
12167   cat conftest.err >&5
12168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169   (exit $ac_status); } &&
12170          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12171   { (case "(($ac_try" in
12172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12173   *) ac_try_echo=$ac_try;;
12174 esac
12175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12176   (eval "$ac_try") 2>&5
12177   ac_status=$?
12178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179   (exit $ac_status); }; } &&
12180          { ac_try='test -s conftest$ac_exeext'
12181   { (case "(($ac_try" in
12182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12183   *) ac_try_echo=$ac_try;;
12184 esac
12185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12186   (eval "$ac_try") 2>&5
12187   ac_status=$?
12188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189   (exit $ac_status); }; }; then
12190   ac_cv_lib_m_sin=yes
12191 else
12192   echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.$ac_ext >&5
12194
12195         ac_cv_lib_m_sin=no
12196 fi
12197
12198 rm -f core conftest.err conftest.$ac_objext \
12199       conftest$ac_exeext conftest.$ac_ext
12200 LIBS=$ac_check_lib_save_LIBS
12201 fi
12202 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12203 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12204 if test $ac_cv_lib_m_sin = yes; then
12205   cat >>confdefs.h <<_ACEOF
12206 #define HAVE_LIBM 1
12207 _ACEOF
12208
12209   LIBS="-lm $LIBS"
12210
12211 fi
12212
12213 if test "$llvm_cv_os_type" = "MingW" ; then
12214
12215 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12216 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12217 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12218   echo $ECHO_N "(cached) $ECHO_C" >&6
12219 else
12220   ac_check_lib_save_LIBS=$LIBS
12221 LIBS="-limagehlp  $LIBS"
12222 cat >conftest.$ac_ext <<_ACEOF
12223 /* confdefs.h.  */
12224 _ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h.  */
12228
12229
12230 int
12231 main ()
12232 {
12233 return main ();
12234   ;
12235   return 0;
12236 }
12237 _ACEOF
12238 rm -f conftest.$ac_objext conftest$ac_exeext
12239 if { (ac_try="$ac_link"
12240 case "(($ac_try" in
12241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12242   *) ac_try_echo=$ac_try;;
12243 esac
12244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12245   (eval "$ac_link") 2>conftest.er1
12246   ac_status=$?
12247   grep -v '^ *+' conftest.er1 >conftest.err
12248   rm -f conftest.er1
12249   cat conftest.err >&5
12250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251   (exit $ac_status); } &&
12252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12253   { (case "(($ac_try" in
12254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255   *) ac_try_echo=$ac_try;;
12256 esac
12257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258   (eval "$ac_try") 2>&5
12259   ac_status=$?
12260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261   (exit $ac_status); }; } &&
12262          { ac_try='test -s conftest$ac_exeext'
12263   { (case "(($ac_try" in
12264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12265   *) ac_try_echo=$ac_try;;
12266 esac
12267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12268   (eval "$ac_try") 2>&5
12269   ac_status=$?
12270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271   (exit $ac_status); }; }; then
12272   ac_cv_lib_imagehlp_main=yes
12273 else
12274   echo "$as_me: failed program was:" >&5
12275 sed 's/^/| /' conftest.$ac_ext >&5
12276
12277         ac_cv_lib_imagehlp_main=no
12278 fi
12279
12280 rm -f core conftest.err conftest.$ac_objext \
12281       conftest$ac_exeext conftest.$ac_ext
12282 LIBS=$ac_check_lib_save_LIBS
12283 fi
12284 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12285 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12286 if test $ac_cv_lib_imagehlp_main = yes; then
12287   cat >>confdefs.h <<_ACEOF
12288 #define HAVE_LIBIMAGEHLP 1
12289 _ACEOF
12290
12291   LIBS="-limagehlp $LIBS"
12292
12293 fi
12294
12295
12296 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12297 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12298 if test "${ac_cv_lib_psapi_main+set}" = set; then
12299   echo $ECHO_N "(cached) $ECHO_C" >&6
12300 else
12301   ac_check_lib_save_LIBS=$LIBS
12302 LIBS="-lpsapi  $LIBS"
12303 cat >conftest.$ac_ext <<_ACEOF
12304 /* confdefs.h.  */
12305 _ACEOF
12306 cat confdefs.h >>conftest.$ac_ext
12307 cat >>conftest.$ac_ext <<_ACEOF
12308 /* end confdefs.h.  */
12309
12310
12311 int
12312 main ()
12313 {
12314 return main ();
12315   ;
12316   return 0;
12317 }
12318 _ACEOF
12319 rm -f conftest.$ac_objext conftest$ac_exeext
12320 if { (ac_try="$ac_link"
12321 case "(($ac_try" in
12322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12323   *) ac_try_echo=$ac_try;;
12324 esac
12325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12326   (eval "$ac_link") 2>conftest.er1
12327   ac_status=$?
12328   grep -v '^ *+' conftest.er1 >conftest.err
12329   rm -f conftest.er1
12330   cat conftest.err >&5
12331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332   (exit $ac_status); } &&
12333          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12334   { (case "(($ac_try" in
12335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12336   *) ac_try_echo=$ac_try;;
12337 esac
12338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12339   (eval "$ac_try") 2>&5
12340   ac_status=$?
12341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342   (exit $ac_status); }; } &&
12343          { ac_try='test -s conftest$ac_exeext'
12344   { (case "(($ac_try" in
12345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346   *) ac_try_echo=$ac_try;;
12347 esac
12348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12349   (eval "$ac_try") 2>&5
12350   ac_status=$?
12351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352   (exit $ac_status); }; }; then
12353   ac_cv_lib_psapi_main=yes
12354 else
12355   echo "$as_me: failed program was:" >&5
12356 sed 's/^/| /' conftest.$ac_ext >&5
12357
12358         ac_cv_lib_psapi_main=no
12359 fi
12360
12361 rm -f core conftest.err conftest.$ac_objext \
12362       conftest$ac_exeext conftest.$ac_ext
12363 LIBS=$ac_check_lib_save_LIBS
12364 fi
12365 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12366 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12367 if test $ac_cv_lib_psapi_main = yes; then
12368   cat >>confdefs.h <<_ACEOF
12369 #define HAVE_LIBPSAPI 1
12370 _ACEOF
12371
12372   LIBS="-lpsapi $LIBS"
12373
12374 fi
12375
12376 fi
12377
12378 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12379 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12380 if test "${ac_cv_search_dlopen+set}" = set; then
12381   echo $ECHO_N "(cached) $ECHO_C" >&6
12382 else
12383   ac_func_search_save_LIBS=$LIBS
12384 cat >conftest.$ac_ext <<_ACEOF
12385 /* confdefs.h.  */
12386 _ACEOF
12387 cat confdefs.h >>conftest.$ac_ext
12388 cat >>conftest.$ac_ext <<_ACEOF
12389 /* end confdefs.h.  */
12390
12391 /* Override any GCC internal prototype to avoid an error.
12392    Use char because int might match the return type of a GCC
12393    builtin and then its argument prototype would still apply.  */
12394 #ifdef __cplusplus
12395 extern "C"
12396 #endif
12397 char dlopen ();
12398 int
12399 main ()
12400 {
12401 return dlopen ();
12402   ;
12403   return 0;
12404 }
12405 _ACEOF
12406 for ac_lib in '' dl; do
12407   if test -z "$ac_lib"; then
12408     ac_res="none required"
12409   else
12410     ac_res=-l$ac_lib
12411     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12412   fi
12413   rm -f conftest.$ac_objext conftest$ac_exeext
12414 if { (ac_try="$ac_link"
12415 case "(($ac_try" in
12416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417   *) ac_try_echo=$ac_try;;
12418 esac
12419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12420   (eval "$ac_link") 2>conftest.er1
12421   ac_status=$?
12422   grep -v '^ *+' conftest.er1 >conftest.err
12423   rm -f conftest.er1
12424   cat conftest.err >&5
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); } &&
12427          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12428   { (case "(($ac_try" in
12429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430   *) ac_try_echo=$ac_try;;
12431 esac
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433   (eval "$ac_try") 2>&5
12434   ac_status=$?
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   (exit $ac_status); }; } &&
12437          { ac_try='test -s conftest$ac_exeext'
12438   { (case "(($ac_try" in
12439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12440   *) ac_try_echo=$ac_try;;
12441 esac
12442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12443   (eval "$ac_try") 2>&5
12444   ac_status=$?
12445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446   (exit $ac_status); }; }; then
12447   ac_cv_search_dlopen=$ac_res
12448 else
12449   echo "$as_me: failed program was:" >&5
12450 sed 's/^/| /' conftest.$ac_ext >&5
12451
12452
12453 fi
12454
12455 rm -f core conftest.err conftest.$ac_objext \
12456       conftest$ac_exeext
12457   if test "${ac_cv_search_dlopen+set}" = set; then
12458   break
12459 fi
12460 done
12461 if test "${ac_cv_search_dlopen+set}" = set; then
12462   :
12463 else
12464   ac_cv_search_dlopen=no
12465 fi
12466 rm conftest.$ac_ext
12467 LIBS=$ac_func_search_save_LIBS
12468 fi
12469 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12470 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12471 ac_res=$ac_cv_search_dlopen
12472 if test "$ac_res" != no; then
12473   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12474
12475 cat >>confdefs.h <<\_ACEOF
12476 #define HAVE_DLOPEN 1
12477 _ACEOF
12478
12479 else
12480   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12481 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12482 fi
12483
12484
12485 if test "$llvm_cv_enable_libffi" = "yes" ; then
12486   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12487 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12488 if test "${ac_cv_search_ffi_call+set}" = set; then
12489   echo $ECHO_N "(cached) $ECHO_C" >&6
12490 else
12491   ac_func_search_save_LIBS=$LIBS
12492 cat >conftest.$ac_ext <<_ACEOF
12493 /* confdefs.h.  */
12494 _ACEOF
12495 cat confdefs.h >>conftest.$ac_ext
12496 cat >>conftest.$ac_ext <<_ACEOF
12497 /* end confdefs.h.  */
12498
12499 /* Override any GCC internal prototype to avoid an error.
12500    Use char because int might match the return type of a GCC
12501    builtin and then its argument prototype would still apply.  */
12502 #ifdef __cplusplus
12503 extern "C"
12504 #endif
12505 char ffi_call ();
12506 int
12507 main ()
12508 {
12509 return ffi_call ();
12510   ;
12511   return 0;
12512 }
12513 _ACEOF
12514 for ac_lib in '' ffi; do
12515   if test -z "$ac_lib"; then
12516     ac_res="none required"
12517   else
12518     ac_res=-l$ac_lib
12519     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12520   fi
12521   rm -f conftest.$ac_objext conftest$ac_exeext
12522 if { (ac_try="$ac_link"
12523 case "(($ac_try" in
12524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12525   *) ac_try_echo=$ac_try;;
12526 esac
12527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12528   (eval "$ac_link") 2>conftest.er1
12529   ac_status=$?
12530   grep -v '^ *+' conftest.er1 >conftest.err
12531   rm -f conftest.er1
12532   cat conftest.err >&5
12533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534   (exit $ac_status); } &&
12535          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12536   { (case "(($ac_try" in
12537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538   *) ac_try_echo=$ac_try;;
12539 esac
12540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12541   (eval "$ac_try") 2>&5
12542   ac_status=$?
12543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544   (exit $ac_status); }; } &&
12545          { ac_try='test -s conftest$ac_exeext'
12546   { (case "(($ac_try" in
12547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548   *) ac_try_echo=$ac_try;;
12549 esac
12550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12551   (eval "$ac_try") 2>&5
12552   ac_status=$?
12553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554   (exit $ac_status); }; }; then
12555   ac_cv_search_ffi_call=$ac_res
12556 else
12557   echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.$ac_ext >&5
12559
12560
12561 fi
12562
12563 rm -f core conftest.err conftest.$ac_objext \
12564       conftest$ac_exeext
12565   if test "${ac_cv_search_ffi_call+set}" = set; then
12566   break
12567 fi
12568 done
12569 if test "${ac_cv_search_ffi_call+set}" = set; then
12570   :
12571 else
12572   ac_cv_search_ffi_call=no
12573 fi
12574 rm conftest.$ac_ext
12575 LIBS=$ac_func_search_save_LIBS
12576 fi
12577 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12578 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12579 ac_res=$ac_cv_search_ffi_call
12580 if test "$ac_res" != no; then
12581   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12582
12583 cat >>confdefs.h <<\_ACEOF
12584 #define HAVE_FFI_CALL 1
12585 _ACEOF
12586
12587 else
12588   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12589 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12590    { (exit 1); exit 1; }; }
12591 fi
12592
12593 fi
12594
12595 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12596 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12597 if test "${ac_cv_search_mallinfo+set}" = set; then
12598   echo $ECHO_N "(cached) $ECHO_C" >&6
12599 else
12600   ac_func_search_save_LIBS=$LIBS
12601 cat >conftest.$ac_ext <<_ACEOF
12602 /* confdefs.h.  */
12603 _ACEOF
12604 cat confdefs.h >>conftest.$ac_ext
12605 cat >>conftest.$ac_ext <<_ACEOF
12606 /* end confdefs.h.  */
12607
12608 /* Override any GCC internal prototype to avoid an error.
12609    Use char because int might match the return type of a GCC
12610    builtin and then its argument prototype would still apply.  */
12611 #ifdef __cplusplus
12612 extern "C"
12613 #endif
12614 char mallinfo ();
12615 int
12616 main ()
12617 {
12618 return mallinfo ();
12619   ;
12620   return 0;
12621 }
12622 _ACEOF
12623 for ac_lib in '' malloc; do
12624   if test -z "$ac_lib"; then
12625     ac_res="none required"
12626   else
12627     ac_res=-l$ac_lib
12628     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12629   fi
12630   rm -f conftest.$ac_objext conftest$ac_exeext
12631 if { (ac_try="$ac_link"
12632 case "(($ac_try" in
12633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12634   *) ac_try_echo=$ac_try;;
12635 esac
12636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12637   (eval "$ac_link") 2>conftest.er1
12638   ac_status=$?
12639   grep -v '^ *+' conftest.er1 >conftest.err
12640   rm -f conftest.er1
12641   cat conftest.err >&5
12642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643   (exit $ac_status); } &&
12644          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12645   { (case "(($ac_try" in
12646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12647   *) ac_try_echo=$ac_try;;
12648 esac
12649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12650   (eval "$ac_try") 2>&5
12651   ac_status=$?
12652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653   (exit $ac_status); }; } &&
12654          { ac_try='test -s conftest$ac_exeext'
12655   { (case "(($ac_try" in
12656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12657   *) ac_try_echo=$ac_try;;
12658 esac
12659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12660   (eval "$ac_try") 2>&5
12661   ac_status=$?
12662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663   (exit $ac_status); }; }; then
12664   ac_cv_search_mallinfo=$ac_res
12665 else
12666   echo "$as_me: failed program was:" >&5
12667 sed 's/^/| /' conftest.$ac_ext >&5
12668
12669
12670 fi
12671
12672 rm -f core conftest.err conftest.$ac_objext \
12673       conftest$ac_exeext
12674   if test "${ac_cv_search_mallinfo+set}" = set; then
12675   break
12676 fi
12677 done
12678 if test "${ac_cv_search_mallinfo+set}" = set; then
12679   :
12680 else
12681   ac_cv_search_mallinfo=no
12682 fi
12683 rm conftest.$ac_ext
12684 LIBS=$ac_func_search_save_LIBS
12685 fi
12686 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12687 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12688 ac_res=$ac_cv_search_mallinfo
12689 if test "$ac_res" != no; then
12690   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12691
12692 cat >>confdefs.h <<\_ACEOF
12693 #define HAVE_MALLINFO 1
12694 _ACEOF
12695
12696 fi
12697
12698
12699 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12700
12701 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12702 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12703 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12704   echo $ECHO_N "(cached) $ECHO_C" >&6
12705 else
12706   ac_check_lib_save_LIBS=$LIBS
12707 LIBS="-lpthread  $LIBS"
12708 cat >conftest.$ac_ext <<_ACEOF
12709 /* confdefs.h.  */
12710 _ACEOF
12711 cat confdefs.h >>conftest.$ac_ext
12712 cat >>conftest.$ac_ext <<_ACEOF
12713 /* end confdefs.h.  */
12714
12715 /* Override any GCC internal prototype to avoid an error.
12716    Use char because int might match the return type of a GCC
12717    builtin and then its argument prototype would still apply.  */
12718 #ifdef __cplusplus
12719 extern "C"
12720 #endif
12721 char pthread_mutex_init ();
12722 int
12723 main ()
12724 {
12725 return pthread_mutex_init ();
12726   ;
12727   return 0;
12728 }
12729 _ACEOF
12730 rm -f conftest.$ac_objext conftest$ac_exeext
12731 if { (ac_try="$ac_link"
12732 case "(($ac_try" in
12733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12734   *) ac_try_echo=$ac_try;;
12735 esac
12736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12737   (eval "$ac_link") 2>conftest.er1
12738   ac_status=$?
12739   grep -v '^ *+' conftest.er1 >conftest.err
12740   rm -f conftest.er1
12741   cat conftest.err >&5
12742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743   (exit $ac_status); } &&
12744          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12745   { (case "(($ac_try" in
12746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12747   *) ac_try_echo=$ac_try;;
12748 esac
12749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12750   (eval "$ac_try") 2>&5
12751   ac_status=$?
12752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753   (exit $ac_status); }; } &&
12754          { ac_try='test -s conftest$ac_exeext'
12755   { (case "(($ac_try" in
12756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12757   *) ac_try_echo=$ac_try;;
12758 esac
12759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12760   (eval "$ac_try") 2>&5
12761   ac_status=$?
12762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763   (exit $ac_status); }; }; then
12764   ac_cv_lib_pthread_pthread_mutex_init=yes
12765 else
12766   echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12768
12769         ac_cv_lib_pthread_pthread_mutex_init=no
12770 fi
12771
12772 rm -f core conftest.err conftest.$ac_objext \
12773       conftest$ac_exeext conftest.$ac_ext
12774 LIBS=$ac_check_lib_save_LIBS
12775 fi
12776 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12777 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12778 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12779   cat >>confdefs.h <<_ACEOF
12780 #define HAVE_LIBPTHREAD 1
12781 _ACEOF
12782
12783   LIBS="-lpthread $LIBS"
12784
12785 fi
12786
12787   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12788 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12789 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12790   echo $ECHO_N "(cached) $ECHO_C" >&6
12791 else
12792   ac_func_search_save_LIBS=$LIBS
12793 cat >conftest.$ac_ext <<_ACEOF
12794 /* confdefs.h.  */
12795 _ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h.  */
12799
12800 /* Override any GCC internal prototype to avoid an error.
12801    Use char because int might match the return type of a GCC
12802    builtin and then its argument prototype would still apply.  */
12803 #ifdef __cplusplus
12804 extern "C"
12805 #endif
12806 char pthread_mutex_lock ();
12807 int
12808 main ()
12809 {
12810 return pthread_mutex_lock ();
12811   ;
12812   return 0;
12813 }
12814 _ACEOF
12815 for ac_lib in '' pthread; do
12816   if test -z "$ac_lib"; then
12817     ac_res="none required"
12818   else
12819     ac_res=-l$ac_lib
12820     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12821   fi
12822   rm -f conftest.$ac_objext conftest$ac_exeext
12823 if { (ac_try="$ac_link"
12824 case "(($ac_try" in
12825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12826   *) ac_try_echo=$ac_try;;
12827 esac
12828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12829   (eval "$ac_link") 2>conftest.er1
12830   ac_status=$?
12831   grep -v '^ *+' conftest.er1 >conftest.err
12832   rm -f conftest.er1
12833   cat conftest.err >&5
12834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835   (exit $ac_status); } &&
12836          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12837   { (case "(($ac_try" in
12838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839   *) ac_try_echo=$ac_try;;
12840 esac
12841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12842   (eval "$ac_try") 2>&5
12843   ac_status=$?
12844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845   (exit $ac_status); }; } &&
12846          { ac_try='test -s conftest$ac_exeext'
12847   { (case "(($ac_try" in
12848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849   *) ac_try_echo=$ac_try;;
12850 esac
12851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852   (eval "$ac_try") 2>&5
12853   ac_status=$?
12854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855   (exit $ac_status); }; }; then
12856   ac_cv_search_pthread_mutex_lock=$ac_res
12857 else
12858   echo "$as_me: failed program was:" >&5
12859 sed 's/^/| /' conftest.$ac_ext >&5
12860
12861
12862 fi
12863
12864 rm -f core conftest.err conftest.$ac_objext \
12865       conftest$ac_exeext
12866   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12867   break
12868 fi
12869 done
12870 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12871   :
12872 else
12873   ac_cv_search_pthread_mutex_lock=no
12874 fi
12875 rm conftest.$ac_ext
12876 LIBS=$ac_func_search_save_LIBS
12877 fi
12878 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12879 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12880 ac_res=$ac_cv_search_pthread_mutex_lock
12881 if test "$ac_res" != no; then
12882   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12883
12884 cat >>confdefs.h <<\_ACEOF
12885 #define HAVE_PTHREAD_MUTEX_LOCK 1
12886 _ACEOF
12887
12888 fi
12889
12890   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12891 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12892 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12893   echo $ECHO_N "(cached) $ECHO_C" >&6
12894 else
12895   ac_func_search_save_LIBS=$LIBS
12896 cat >conftest.$ac_ext <<_ACEOF
12897 /* confdefs.h.  */
12898 _ACEOF
12899 cat confdefs.h >>conftest.$ac_ext
12900 cat >>conftest.$ac_ext <<_ACEOF
12901 /* end confdefs.h.  */
12902
12903 /* Override any GCC internal prototype to avoid an error.
12904    Use char because int might match the return type of a GCC
12905    builtin and then its argument prototype would still apply.  */
12906 #ifdef __cplusplus
12907 extern "C"
12908 #endif
12909 char pthread_rwlock_init ();
12910 int
12911 main ()
12912 {
12913 return pthread_rwlock_init ();
12914   ;
12915   return 0;
12916 }
12917 _ACEOF
12918 for ac_lib in '' pthread; do
12919   if test -z "$ac_lib"; then
12920     ac_res="none required"
12921   else
12922     ac_res=-l$ac_lib
12923     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12924   fi
12925   rm -f conftest.$ac_objext conftest$ac_exeext
12926 if { (ac_try="$ac_link"
12927 case "(($ac_try" in
12928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929   *) ac_try_echo=$ac_try;;
12930 esac
12931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12932   (eval "$ac_link") 2>conftest.er1
12933   ac_status=$?
12934   grep -v '^ *+' conftest.er1 >conftest.err
12935   rm -f conftest.er1
12936   cat conftest.err >&5
12937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938   (exit $ac_status); } &&
12939          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12940   { (case "(($ac_try" in
12941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942   *) ac_try_echo=$ac_try;;
12943 esac
12944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12945   (eval "$ac_try") 2>&5
12946   ac_status=$?
12947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948   (exit $ac_status); }; } &&
12949          { ac_try='test -s conftest$ac_exeext'
12950   { (case "(($ac_try" in
12951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12952   *) ac_try_echo=$ac_try;;
12953 esac
12954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12955   (eval "$ac_try") 2>&5
12956   ac_status=$?
12957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958   (exit $ac_status); }; }; then
12959   ac_cv_search_pthread_rwlock_init=$ac_res
12960 else
12961   echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.$ac_ext >&5
12963
12964
12965 fi
12966
12967 rm -f core conftest.err conftest.$ac_objext \
12968       conftest$ac_exeext
12969   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12970   break
12971 fi
12972 done
12973 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12974   :
12975 else
12976   ac_cv_search_pthread_rwlock_init=no
12977 fi
12978 rm conftest.$ac_ext
12979 LIBS=$ac_func_search_save_LIBS
12980 fi
12981 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12982 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12983 ac_res=$ac_cv_search_pthread_rwlock_init
12984 if test "$ac_res" != no; then
12985   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12986
12987 cat >>confdefs.h <<\_ACEOF
12988 #define HAVE_PTHREAD_RWLOCK_INIT 1
12989 _ACEOF
12990
12991 fi
12992
12993   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12994 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12995 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12996   echo $ECHO_N "(cached) $ECHO_C" >&6
12997 else
12998   ac_func_search_save_LIBS=$LIBS
12999 cat >conftest.$ac_ext <<_ACEOF
13000 /* confdefs.h.  */
13001 _ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h.  */
13005
13006 /* Override any GCC internal prototype to avoid an error.
13007    Use char because int might match the return type of a GCC
13008    builtin and then its argument prototype would still apply.  */
13009 #ifdef __cplusplus
13010 extern "C"
13011 #endif
13012 char pthread_getspecific ();
13013 int
13014 main ()
13015 {
13016 return pthread_getspecific ();
13017   ;
13018   return 0;
13019 }
13020 _ACEOF
13021 for ac_lib in '' pthread; do
13022   if test -z "$ac_lib"; then
13023     ac_res="none required"
13024   else
13025     ac_res=-l$ac_lib
13026     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13027   fi
13028   rm -f conftest.$ac_objext conftest$ac_exeext
13029 if { (ac_try="$ac_link"
13030 case "(($ac_try" in
13031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032   *) ac_try_echo=$ac_try;;
13033 esac
13034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13035   (eval "$ac_link") 2>conftest.er1
13036   ac_status=$?
13037   grep -v '^ *+' conftest.er1 >conftest.err
13038   rm -f conftest.er1
13039   cat conftest.err >&5
13040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041   (exit $ac_status); } &&
13042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13043   { (case "(($ac_try" in
13044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045   *) ac_try_echo=$ac_try;;
13046 esac
13047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048   (eval "$ac_try") 2>&5
13049   ac_status=$?
13050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051   (exit $ac_status); }; } &&
13052          { ac_try='test -s conftest$ac_exeext'
13053   { (case "(($ac_try" in
13054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055   *) ac_try_echo=$ac_try;;
13056 esac
13057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13058   (eval "$ac_try") 2>&5
13059   ac_status=$?
13060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061   (exit $ac_status); }; }; then
13062   ac_cv_search_pthread_getspecific=$ac_res
13063 else
13064   echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13066
13067
13068 fi
13069
13070 rm -f core conftest.err conftest.$ac_objext \
13071       conftest$ac_exeext
13072   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13073   break
13074 fi
13075 done
13076 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13077   :
13078 else
13079   ac_cv_search_pthread_getspecific=no
13080 fi
13081 rm conftest.$ac_ext
13082 LIBS=$ac_func_search_save_LIBS
13083 fi
13084 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13085 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13086 ac_res=$ac_cv_search_pthread_getspecific
13087 if test "$ac_res" != no; then
13088   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13089
13090 cat >>confdefs.h <<\_ACEOF
13091 #define HAVE_PTHREAD_GETSPECIFIC 1
13092 _ACEOF
13093
13094 fi
13095
13096 fi
13097
13098
13099 # Check whether --with-udis86 was given.
13100 if test "${with_udis86+set}" = set; then
13101   withval=$with_udis86;
13102       USE_UDIS86=1
13103
13104       case "$withval" in
13105         /usr/lib|yes) ;;
13106         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13107       esac
13108
13109 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13110 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13111 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13112   echo $ECHO_N "(cached) $ECHO_C" >&6
13113 else
13114   ac_check_lib_save_LIBS=$LIBS
13115 LIBS="-ludis86  $LIBS"
13116 cat >conftest.$ac_ext <<_ACEOF
13117 /* confdefs.h.  */
13118 _ACEOF
13119 cat confdefs.h >>conftest.$ac_ext
13120 cat >>conftest.$ac_ext <<_ACEOF
13121 /* end confdefs.h.  */
13122
13123 /* Override any GCC internal prototype to avoid an error.
13124    Use char because int might match the return type of a GCC
13125    builtin and then its argument prototype would still apply.  */
13126 #ifdef __cplusplus
13127 extern "C"
13128 #endif
13129 char ud_init ();
13130 int
13131 main ()
13132 {
13133 return ud_init ();
13134   ;
13135   return 0;
13136 }
13137 _ACEOF
13138 rm -f conftest.$ac_objext conftest$ac_exeext
13139 if { (ac_try="$ac_link"
13140 case "(($ac_try" in
13141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13142   *) ac_try_echo=$ac_try;;
13143 esac
13144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13145   (eval "$ac_link") 2>conftest.er1
13146   ac_status=$?
13147   grep -v '^ *+' conftest.er1 >conftest.err
13148   rm -f conftest.er1
13149   cat conftest.err >&5
13150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151   (exit $ac_status); } &&
13152          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13153   { (case "(($ac_try" in
13154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155   *) ac_try_echo=$ac_try;;
13156 esac
13157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158   (eval "$ac_try") 2>&5
13159   ac_status=$?
13160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161   (exit $ac_status); }; } &&
13162          { ac_try='test -s conftest$ac_exeext'
13163   { (case "(($ac_try" in
13164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13165   *) ac_try_echo=$ac_try;;
13166 esac
13167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13168   (eval "$ac_try") 2>&5
13169   ac_status=$?
13170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171   (exit $ac_status); }; }; then
13172   ac_cv_lib_udis86_ud_init=yes
13173 else
13174   echo "$as_me: failed program was:" >&5
13175 sed 's/^/| /' conftest.$ac_ext >&5
13176
13177         ac_cv_lib_udis86_ud_init=no
13178 fi
13179
13180 rm -f core conftest.err conftest.$ac_objext \
13181       conftest$ac_exeext conftest.$ac_ext
13182 LIBS=$ac_check_lib_save_LIBS
13183 fi
13184 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13185 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13186 if test $ac_cv_lib_udis86_ud_init = yes; then
13187   cat >>confdefs.h <<_ACEOF
13188 #define HAVE_LIBUDIS86 1
13189 _ACEOF
13190
13191   LIBS="-ludis86 $LIBS"
13192
13193 else
13194
13195         echo "Error! You need to have libudis86 around."
13196         exit -1
13197
13198 fi
13199
13200
13201 else
13202   USE_UDIS86=0
13203
13204 fi
13205
13206
13207 cat >>confdefs.h <<_ACEOF
13208 #define USE_UDIS86 $USE_UDIS86
13209 _ACEOF
13210
13211
13212
13213 # Check whether --with-oprofile was given.
13214 if test "${with_oprofile+set}" = set; then
13215   withval=$with_oprofile;
13216       USE_OPROFILE=1
13217
13218       case "$withval" in
13219         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13220         no) llvm_cv_oppath=
13221             USE_OPROFILE=0
13222  ;;
13223         *) llvm_cv_oppath="${withval}/lib/oprofile"
13224            CPPFLAGS="-I${withval}/include";;
13225       esac
13226       if test -n "$llvm_cv_oppath" ; then
13227         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13228                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13229 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13230 if test "${ac_cv_search_bfd_init+set}" = set; then
13231   echo $ECHO_N "(cached) $ECHO_C" >&6
13232 else
13233   ac_func_search_save_LIBS=$LIBS
13234 cat >conftest.$ac_ext <<_ACEOF
13235 /* confdefs.h.  */
13236 _ACEOF
13237 cat confdefs.h >>conftest.$ac_ext
13238 cat >>conftest.$ac_ext <<_ACEOF
13239 /* end confdefs.h.  */
13240
13241 /* Override any GCC internal prototype to avoid an error.
13242    Use char because int might match the return type of a GCC
13243    builtin and then its argument prototype would still apply.  */
13244 #ifdef __cplusplus
13245 extern "C"
13246 #endif
13247 char bfd_init ();
13248 int
13249 main ()
13250 {
13251 return bfd_init ();
13252   ;
13253   return 0;
13254 }
13255 _ACEOF
13256 for ac_lib in '' bfd; do
13257   if test -z "$ac_lib"; then
13258     ac_res="none required"
13259   else
13260     ac_res=-l$ac_lib
13261     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13262   fi
13263   rm -f conftest.$ac_objext conftest$ac_exeext
13264 if { (ac_try="$ac_link"
13265 case "(($ac_try" in
13266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267   *) ac_try_echo=$ac_try;;
13268 esac
13269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13270   (eval "$ac_link") 2>conftest.er1
13271   ac_status=$?
13272   grep -v '^ *+' conftest.er1 >conftest.err
13273   rm -f conftest.er1
13274   cat conftest.err >&5
13275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276   (exit $ac_status); } &&
13277          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13278   { (case "(($ac_try" in
13279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13280   *) ac_try_echo=$ac_try;;
13281 esac
13282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13283   (eval "$ac_try") 2>&5
13284   ac_status=$?
13285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286   (exit $ac_status); }; } &&
13287          { ac_try='test -s conftest$ac_exeext'
13288   { (case "(($ac_try" in
13289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13290   *) ac_try_echo=$ac_try;;
13291 esac
13292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13293   (eval "$ac_try") 2>&5
13294   ac_status=$?
13295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296   (exit $ac_status); }; }; then
13297   ac_cv_search_bfd_init=$ac_res
13298 else
13299   echo "$as_me: failed program was:" >&5
13300 sed 's/^/| /' conftest.$ac_ext >&5
13301
13302
13303 fi
13304
13305 rm -f core conftest.err conftest.$ac_objext \
13306       conftest$ac_exeext
13307   if test "${ac_cv_search_bfd_init+set}" = set; then
13308   break
13309 fi
13310 done
13311 if test "${ac_cv_search_bfd_init+set}" = set; then
13312   :
13313 else
13314   ac_cv_search_bfd_init=no
13315 fi
13316 rm conftest.$ac_ext
13317 LIBS=$ac_func_search_save_LIBS
13318 fi
13319 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13320 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13321 ac_res=$ac_cv_search_bfd_init
13322 if test "$ac_res" != no; then
13323   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13324
13325 fi
13326
13327         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13328 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13329 if test "${ac_cv_search_op_open_agent+set}" = set; then
13330   echo $ECHO_N "(cached) $ECHO_C" >&6
13331 else
13332   ac_func_search_save_LIBS=$LIBS
13333 cat >conftest.$ac_ext <<_ACEOF
13334 /* confdefs.h.  */
13335 _ACEOF
13336 cat confdefs.h >>conftest.$ac_ext
13337 cat >>conftest.$ac_ext <<_ACEOF
13338 /* end confdefs.h.  */
13339
13340 /* Override any GCC internal prototype to avoid an error.
13341    Use char because int might match the return type of a GCC
13342    builtin and then its argument prototype would still apply.  */
13343 #ifdef __cplusplus
13344 extern "C"
13345 #endif
13346 char op_open_agent ();
13347 int
13348 main ()
13349 {
13350 return op_open_agent ();
13351   ;
13352   return 0;
13353 }
13354 _ACEOF
13355 for ac_lib in '' opagent; do
13356   if test -z "$ac_lib"; then
13357     ac_res="none required"
13358   else
13359     ac_res=-l$ac_lib
13360     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13361   fi
13362   rm -f conftest.$ac_objext conftest$ac_exeext
13363 if { (ac_try="$ac_link"
13364 case "(($ac_try" in
13365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366   *) ac_try_echo=$ac_try;;
13367 esac
13368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369   (eval "$ac_link") 2>conftest.er1
13370   ac_status=$?
13371   grep -v '^ *+' conftest.er1 >conftest.err
13372   rm -f conftest.er1
13373   cat conftest.err >&5
13374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375   (exit $ac_status); } &&
13376          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13377   { (case "(($ac_try" in
13378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13379   *) ac_try_echo=$ac_try;;
13380 esac
13381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13382   (eval "$ac_try") 2>&5
13383   ac_status=$?
13384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385   (exit $ac_status); }; } &&
13386          { ac_try='test -s conftest$ac_exeext'
13387   { (case "(($ac_try" in
13388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13389   *) ac_try_echo=$ac_try;;
13390 esac
13391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13392   (eval "$ac_try") 2>&5
13393   ac_status=$?
13394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395   (exit $ac_status); }; }; then
13396   ac_cv_search_op_open_agent=$ac_res
13397 else
13398   echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.$ac_ext >&5
13400
13401
13402 fi
13403
13404 rm -f core conftest.err conftest.$ac_objext \
13405       conftest$ac_exeext
13406   if test "${ac_cv_search_op_open_agent+set}" = set; then
13407   break
13408 fi
13409 done
13410 if test "${ac_cv_search_op_open_agent+set}" = set; then
13411   :
13412 else
13413   ac_cv_search_op_open_agent=no
13414 fi
13415 rm conftest.$ac_ext
13416 LIBS=$ac_func_search_save_LIBS
13417 fi
13418 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13419 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13420 ac_res=$ac_cv_search_op_open_agent
13421 if test "$ac_res" != no; then
13422   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13423
13424 else
13425
13426           echo "Error! You need to have libopagent around."
13427           exit -1
13428
13429 fi
13430
13431         if test "${ac_cv_header_opagent_h+set}" = set; then
13432   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13433 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13434 if test "${ac_cv_header_opagent_h+set}" = set; then
13435   echo $ECHO_N "(cached) $ECHO_C" >&6
13436 fi
13437 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13438 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13439 else
13440   # Is the header compilable?
13441 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13442 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13443 cat >conftest.$ac_ext <<_ACEOF
13444 /* confdefs.h.  */
13445 _ACEOF
13446 cat confdefs.h >>conftest.$ac_ext
13447 cat >>conftest.$ac_ext <<_ACEOF
13448 /* end confdefs.h.  */
13449 $ac_includes_default
13450 #include <opagent.h>
13451 _ACEOF
13452 rm -f conftest.$ac_objext
13453 if { (ac_try="$ac_compile"
13454 case "(($ac_try" in
13455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456   *) ac_try_echo=$ac_try;;
13457 esac
13458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459   (eval "$ac_compile") 2>conftest.er1
13460   ac_status=$?
13461   grep -v '^ *+' conftest.er1 >conftest.err
13462   rm -f conftest.er1
13463   cat conftest.err >&5
13464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465   (exit $ac_status); } &&
13466          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13467   { (case "(($ac_try" in
13468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469   *) ac_try_echo=$ac_try;;
13470 esac
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472   (eval "$ac_try") 2>&5
13473   ac_status=$?
13474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475   (exit $ac_status); }; } &&
13476          { ac_try='test -s conftest.$ac_objext'
13477   { (case "(($ac_try" in
13478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479   *) ac_try_echo=$ac_try;;
13480 esac
13481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482   (eval "$ac_try") 2>&5
13483   ac_status=$?
13484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485   (exit $ac_status); }; }; then
13486   ac_header_compiler=yes
13487 else
13488   echo "$as_me: failed program was:" >&5
13489 sed 's/^/| /' conftest.$ac_ext >&5
13490
13491         ac_header_compiler=no
13492 fi
13493
13494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13495 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13496 echo "${ECHO_T}$ac_header_compiler" >&6; }
13497
13498 # Is the header present?
13499 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13500 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13501 cat >conftest.$ac_ext <<_ACEOF
13502 /* confdefs.h.  */
13503 _ACEOF
13504 cat confdefs.h >>conftest.$ac_ext
13505 cat >>conftest.$ac_ext <<_ACEOF
13506 /* end confdefs.h.  */
13507 #include <opagent.h>
13508 _ACEOF
13509 if { (ac_try="$ac_cpp conftest.$ac_ext"
13510 case "(($ac_try" in
13511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13512   *) ac_try_echo=$ac_try;;
13513 esac
13514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13515   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13516   ac_status=$?
13517   grep -v '^ *+' conftest.er1 >conftest.err
13518   rm -f conftest.er1
13519   cat conftest.err >&5
13520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521   (exit $ac_status); } >/dev/null; then
13522   if test -s conftest.err; then
13523     ac_cpp_err=$ac_c_preproc_warn_flag
13524     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13525   else
13526     ac_cpp_err=
13527   fi
13528 else
13529   ac_cpp_err=yes
13530 fi
13531 if test -z "$ac_cpp_err"; then
13532   ac_header_preproc=yes
13533 else
13534   echo "$as_me: failed program was:" >&5
13535 sed 's/^/| /' conftest.$ac_ext >&5
13536
13537   ac_header_preproc=no
13538 fi
13539
13540 rm -f conftest.err conftest.$ac_ext
13541 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13542 echo "${ECHO_T}$ac_header_preproc" >&6; }
13543
13544 # So?  What about this header?
13545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13546   yes:no: )
13547     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13548 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13549     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13550 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13551     ac_header_preproc=yes
13552     ;;
13553   no:yes:* )
13554     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13555 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13556     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13557 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13558     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13559 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13560     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13561 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13562     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13563 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13564     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13565 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13566     ( cat <<\_ASBOX
13567 ## ------------------------------ ##
13568 ## Report this to bugs@yourdomain ##
13569 ## ------------------------------ ##
13570 _ASBOX
13571      ) | sed "s/^/$as_me: WARNING:     /" >&2
13572     ;;
13573 esac
13574 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13575 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13576 if test "${ac_cv_header_opagent_h+set}" = set; then
13577   echo $ECHO_N "(cached) $ECHO_C" >&6
13578 else
13579   ac_cv_header_opagent_h=$ac_header_preproc
13580 fi
13581 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13582 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13583
13584 fi
13585 if test $ac_cv_header_opagent_h = yes; then
13586   :
13587 else
13588
13589           echo "Error! You need to have opagent.h around."
13590           exit -1
13591
13592 fi
13593
13594
13595       fi
13596
13597 else
13598
13599       USE_OPROFILE=0
13600
13601
13602 fi
13603
13604
13605 cat >>confdefs.h <<_ACEOF
13606 #define USE_OPROFILE $USE_OPROFILE
13607 _ACEOF
13608
13609
13610
13611
13612
13613
13614
13615
13616 ac_header_dirent=no
13617 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13618   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13619 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13620 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13622   echo $ECHO_N "(cached) $ECHO_C" >&6
13623 else
13624   cat >conftest.$ac_ext <<_ACEOF
13625 /* confdefs.h.  */
13626 _ACEOF
13627 cat confdefs.h >>conftest.$ac_ext
13628 cat >>conftest.$ac_ext <<_ACEOF
13629 /* end confdefs.h.  */
13630 #include <sys/types.h>
13631 #include <$ac_hdr>
13632
13633 int
13634 main ()
13635 {
13636 if ((DIR *) 0)
13637 return 0;
13638   ;
13639   return 0;
13640 }
13641 _ACEOF
13642 rm -f conftest.$ac_objext
13643 if { (ac_try="$ac_compile"
13644 case "(($ac_try" in
13645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13646   *) ac_try_echo=$ac_try;;
13647 esac
13648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13649   (eval "$ac_compile") 2>conftest.er1
13650   ac_status=$?
13651   grep -v '^ *+' conftest.er1 >conftest.err
13652   rm -f conftest.er1
13653   cat conftest.err >&5
13654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655   (exit $ac_status); } &&
13656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13657   { (case "(($ac_try" in
13658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13659   *) ac_try_echo=$ac_try;;
13660 esac
13661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13662   (eval "$ac_try") 2>&5
13663   ac_status=$?
13664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665   (exit $ac_status); }; } &&
13666          { ac_try='test -s conftest.$ac_objext'
13667   { (case "(($ac_try" in
13668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13669   *) ac_try_echo=$ac_try;;
13670 esac
13671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13672   (eval "$ac_try") 2>&5
13673   ac_status=$?
13674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675   (exit $ac_status); }; }; then
13676   eval "$as_ac_Header=yes"
13677 else
13678   echo "$as_me: failed program was:" >&5
13679 sed 's/^/| /' conftest.$ac_ext >&5
13680
13681         eval "$as_ac_Header=no"
13682 fi
13683
13684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13685 fi
13686 ac_res=`eval echo '${'$as_ac_Header'}'`
13687                { echo "$as_me:$LINENO: result: $ac_res" >&5
13688 echo "${ECHO_T}$ac_res" >&6; }
13689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13690   cat >>confdefs.h <<_ACEOF
13691 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13692 _ACEOF
13693
13694 ac_header_dirent=$ac_hdr; break
13695 fi
13696
13697 done
13698 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13699 if test $ac_header_dirent = dirent.h; then
13700   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13701 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13702 if test "${ac_cv_search_opendir+set}" = set; then
13703   echo $ECHO_N "(cached) $ECHO_C" >&6
13704 else
13705   ac_func_search_save_LIBS=$LIBS
13706 cat >conftest.$ac_ext <<_ACEOF
13707 /* confdefs.h.  */
13708 _ACEOF
13709 cat confdefs.h >>conftest.$ac_ext
13710 cat >>conftest.$ac_ext <<_ACEOF
13711 /* end confdefs.h.  */
13712
13713 /* Override any GCC internal prototype to avoid an error.
13714    Use char because int might match the return type of a GCC
13715    builtin and then its argument prototype would still apply.  */
13716 #ifdef __cplusplus
13717 extern "C"
13718 #endif
13719 char opendir ();
13720 int
13721 main ()
13722 {
13723 return opendir ();
13724   ;
13725   return 0;
13726 }
13727 _ACEOF
13728 for ac_lib in '' dir; do
13729   if test -z "$ac_lib"; then
13730     ac_res="none required"
13731   else
13732     ac_res=-l$ac_lib
13733     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13734   fi
13735   rm -f conftest.$ac_objext conftest$ac_exeext
13736 if { (ac_try="$ac_link"
13737 case "(($ac_try" in
13738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739   *) ac_try_echo=$ac_try;;
13740 esac
13741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742   (eval "$ac_link") 2>conftest.er1
13743   ac_status=$?
13744   grep -v '^ *+' conftest.er1 >conftest.err
13745   rm -f conftest.er1
13746   cat conftest.err >&5
13747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748   (exit $ac_status); } &&
13749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13750   { (case "(($ac_try" in
13751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752   *) ac_try_echo=$ac_try;;
13753 esac
13754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755   (eval "$ac_try") 2>&5
13756   ac_status=$?
13757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758   (exit $ac_status); }; } &&
13759          { ac_try='test -s conftest$ac_exeext'
13760   { (case "(($ac_try" in
13761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762   *) ac_try_echo=$ac_try;;
13763 esac
13764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765   (eval "$ac_try") 2>&5
13766   ac_status=$?
13767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768   (exit $ac_status); }; }; then
13769   ac_cv_search_opendir=$ac_res
13770 else
13771   echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13773
13774
13775 fi
13776
13777 rm -f core conftest.err conftest.$ac_objext \
13778       conftest$ac_exeext
13779   if test "${ac_cv_search_opendir+set}" = set; then
13780   break
13781 fi
13782 done
13783 if test "${ac_cv_search_opendir+set}" = set; then
13784   :
13785 else
13786   ac_cv_search_opendir=no
13787 fi
13788 rm conftest.$ac_ext
13789 LIBS=$ac_func_search_save_LIBS
13790 fi
13791 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13792 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13793 ac_res=$ac_cv_search_opendir
13794 if test "$ac_res" != no; then
13795   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13796
13797 fi
13798
13799 else
13800   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13801 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13802 if test "${ac_cv_search_opendir+set}" = set; then
13803   echo $ECHO_N "(cached) $ECHO_C" >&6
13804 else
13805   ac_func_search_save_LIBS=$LIBS
13806 cat >conftest.$ac_ext <<_ACEOF
13807 /* confdefs.h.  */
13808 _ACEOF
13809 cat confdefs.h >>conftest.$ac_ext
13810 cat >>conftest.$ac_ext <<_ACEOF
13811 /* end confdefs.h.  */
13812
13813 /* Override any GCC internal prototype to avoid an error.
13814    Use char because int might match the return type of a GCC
13815    builtin and then its argument prototype would still apply.  */
13816 #ifdef __cplusplus
13817 extern "C"
13818 #endif
13819 char opendir ();
13820 int
13821 main ()
13822 {
13823 return opendir ();
13824   ;
13825   return 0;
13826 }
13827 _ACEOF
13828 for ac_lib in '' x; do
13829   if test -z "$ac_lib"; then
13830     ac_res="none required"
13831   else
13832     ac_res=-l$ac_lib
13833     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13834   fi
13835   rm -f conftest.$ac_objext conftest$ac_exeext
13836 if { (ac_try="$ac_link"
13837 case "(($ac_try" in
13838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839   *) ac_try_echo=$ac_try;;
13840 esac
13841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842   (eval "$ac_link") 2>conftest.er1
13843   ac_status=$?
13844   grep -v '^ *+' conftest.er1 >conftest.err
13845   rm -f conftest.er1
13846   cat conftest.err >&5
13847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848   (exit $ac_status); } &&
13849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13850   { (case "(($ac_try" in
13851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13852   *) ac_try_echo=$ac_try;;
13853 esac
13854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13855   (eval "$ac_try") 2>&5
13856   ac_status=$?
13857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858   (exit $ac_status); }; } &&
13859          { ac_try='test -s conftest$ac_exeext'
13860   { (case "(($ac_try" in
13861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862   *) ac_try_echo=$ac_try;;
13863 esac
13864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865   (eval "$ac_try") 2>&5
13866   ac_status=$?
13867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868   (exit $ac_status); }; }; then
13869   ac_cv_search_opendir=$ac_res
13870 else
13871   echo "$as_me: failed program was:" >&5
13872 sed 's/^/| /' conftest.$ac_ext >&5
13873
13874
13875 fi
13876
13877 rm -f core conftest.err conftest.$ac_objext \
13878       conftest$ac_exeext
13879   if test "${ac_cv_search_opendir+set}" = set; then
13880   break
13881 fi
13882 done
13883 if test "${ac_cv_search_opendir+set}" = set; then
13884   :
13885 else
13886   ac_cv_search_opendir=no
13887 fi
13888 rm conftest.$ac_ext
13889 LIBS=$ac_func_search_save_LIBS
13890 fi
13891 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13892 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13893 ac_res=$ac_cv_search_opendir
13894 if test "$ac_res" != no; then
13895   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13896
13897 fi
13898
13899 fi
13900
13901 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13902 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13903 if test "${ac_cv_header_mmap_anon+set}" = set; then
13904   echo $ECHO_N "(cached) $ECHO_C" >&6
13905 else
13906    ac_ext=c
13907 ac_cpp='$CPP $CPPFLAGS'
13908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13911
13912   cat >conftest.$ac_ext <<_ACEOF
13913 /* confdefs.h.  */
13914 _ACEOF
13915 cat confdefs.h >>conftest.$ac_ext
13916 cat >>conftest.$ac_ext <<_ACEOF
13917 /* end confdefs.h.  */
13918 #include <sys/mman.h>
13919 #include <unistd.h>
13920 #include <fcntl.h>
13921 int
13922 main ()
13923 {
13924 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13925   ;
13926   return 0;
13927 }
13928 _ACEOF
13929 rm -f conftest.$ac_objext
13930 if { (ac_try="$ac_compile"
13931 case "(($ac_try" in
13932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13933   *) ac_try_echo=$ac_try;;
13934 esac
13935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13936   (eval "$ac_compile") 2>conftest.er1
13937   ac_status=$?
13938   grep -v '^ *+' conftest.er1 >conftest.err
13939   rm -f conftest.er1
13940   cat conftest.err >&5
13941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942   (exit $ac_status); } &&
13943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13944   { (case "(($ac_try" in
13945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13946   *) ac_try_echo=$ac_try;;
13947 esac
13948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13949   (eval "$ac_try") 2>&5
13950   ac_status=$?
13951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952   (exit $ac_status); }; } &&
13953          { ac_try='test -s conftest.$ac_objext'
13954   { (case "(($ac_try" in
13955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13956   *) ac_try_echo=$ac_try;;
13957 esac
13958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13959   (eval "$ac_try") 2>&5
13960   ac_status=$?
13961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962   (exit $ac_status); }; }; then
13963   ac_cv_header_mmap_anon=yes
13964 else
13965   echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13967
13968         ac_cv_header_mmap_anon=no
13969 fi
13970
13971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13972   ac_ext=c
13973 ac_cpp='$CPP $CPPFLAGS'
13974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13977
13978
13979 fi
13980 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13981 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13982 if test "$ac_cv_header_mmap_anon" = yes; then
13983
13984 cat >>confdefs.h <<\_ACEOF
13985 #define HAVE_MMAP_ANONYMOUS 1
13986 _ACEOF
13987
13988 fi
13989
13990 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13991 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13992 if test "${ac_cv_header_stat_broken+set}" = set; then
13993   echo $ECHO_N "(cached) $ECHO_C" >&6
13994 else
13995   cat >conftest.$ac_ext <<_ACEOF
13996 /* confdefs.h.  */
13997 _ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h.  */
14001 #include <sys/types.h>
14002 #include <sys/stat.h>
14003
14004 #if defined S_ISBLK && defined S_IFDIR
14005 # if S_ISBLK (S_IFDIR)
14006 You lose.
14007 # endif
14008 #endif
14009
14010 #if defined S_ISBLK && defined S_IFCHR
14011 # if S_ISBLK (S_IFCHR)
14012 You lose.
14013 # endif
14014 #endif
14015
14016 #if defined S_ISLNK && defined S_IFREG
14017 # if S_ISLNK (S_IFREG)
14018 You lose.
14019 # endif
14020 #endif
14021
14022 #if defined S_ISSOCK && defined S_IFREG
14023 # if S_ISSOCK (S_IFREG)
14024 You lose.
14025 # endif
14026 #endif
14027
14028 _ACEOF
14029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14030   $EGREP "You lose" >/dev/null 2>&1; then
14031   ac_cv_header_stat_broken=yes
14032 else
14033   ac_cv_header_stat_broken=no
14034 fi
14035 rm -f conftest*
14036
14037 fi
14038 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14039 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14040 if test $ac_cv_header_stat_broken = yes; then
14041
14042 cat >>confdefs.h <<\_ACEOF
14043 #define STAT_MACROS_BROKEN 1
14044 _ACEOF
14045
14046 fi
14047
14048 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14049 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14050 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14051   echo $ECHO_N "(cached) $ECHO_C" >&6
14052 else
14053   cat >conftest.$ac_ext <<_ACEOF
14054 /* confdefs.h.  */
14055 _ACEOF
14056 cat confdefs.h >>conftest.$ac_ext
14057 cat >>conftest.$ac_ext <<_ACEOF
14058 /* end confdefs.h.  */
14059 #include <sys/types.h>
14060 #include <sys/wait.h>
14061 #ifndef WEXITSTATUS
14062 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14063 #endif
14064 #ifndef WIFEXITED
14065 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14066 #endif
14067
14068 int
14069 main ()
14070 {
14071   int s;
14072   wait (&s);
14073   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14074   ;
14075   return 0;
14076 }
14077 _ACEOF
14078 rm -f conftest.$ac_objext
14079 if { (ac_try="$ac_compile"
14080 case "(($ac_try" in
14081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082   *) ac_try_echo=$ac_try;;
14083 esac
14084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14085   (eval "$ac_compile") 2>conftest.er1
14086   ac_status=$?
14087   grep -v '^ *+' conftest.er1 >conftest.err
14088   rm -f conftest.er1
14089   cat conftest.err >&5
14090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091   (exit $ac_status); } &&
14092          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14093   { (case "(($ac_try" in
14094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14095   *) ac_try_echo=$ac_try;;
14096 esac
14097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14098   (eval "$ac_try") 2>&5
14099   ac_status=$?
14100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101   (exit $ac_status); }; } &&
14102          { ac_try='test -s conftest.$ac_objext'
14103   { (case "(($ac_try" in
14104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14105   *) ac_try_echo=$ac_try;;
14106 esac
14107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14108   (eval "$ac_try") 2>&5
14109   ac_status=$?
14110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111   (exit $ac_status); }; }; then
14112   ac_cv_header_sys_wait_h=yes
14113 else
14114   echo "$as_me: failed program was:" >&5
14115 sed 's/^/| /' conftest.$ac_ext >&5
14116
14117         ac_cv_header_sys_wait_h=no
14118 fi
14119
14120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14121 fi
14122 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14123 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14124 if test $ac_cv_header_sys_wait_h = yes; then
14125
14126 cat >>confdefs.h <<\_ACEOF
14127 #define HAVE_SYS_WAIT_H 1
14128 _ACEOF
14129
14130 fi
14131
14132 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14133 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14134 if test "${ac_cv_header_time+set}" = set; then
14135   echo $ECHO_N "(cached) $ECHO_C" >&6
14136 else
14137   cat >conftest.$ac_ext <<_ACEOF
14138 /* confdefs.h.  */
14139 _ACEOF
14140 cat confdefs.h >>conftest.$ac_ext
14141 cat >>conftest.$ac_ext <<_ACEOF
14142 /* end confdefs.h.  */
14143 #include <sys/types.h>
14144 #include <sys/time.h>
14145 #include <time.h>
14146
14147 int
14148 main ()
14149 {
14150 if ((struct tm *) 0)
14151 return 0;
14152   ;
14153   return 0;
14154 }
14155 _ACEOF
14156 rm -f conftest.$ac_objext
14157 if { (ac_try="$ac_compile"
14158 case "(($ac_try" in
14159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14160   *) ac_try_echo=$ac_try;;
14161 esac
14162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14163   (eval "$ac_compile") 2>conftest.er1
14164   ac_status=$?
14165   grep -v '^ *+' conftest.er1 >conftest.err
14166   rm -f conftest.er1
14167   cat conftest.err >&5
14168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169   (exit $ac_status); } &&
14170          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14171   { (case "(($ac_try" in
14172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173   *) ac_try_echo=$ac_try;;
14174 esac
14175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176   (eval "$ac_try") 2>&5
14177   ac_status=$?
14178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179   (exit $ac_status); }; } &&
14180          { ac_try='test -s conftest.$ac_objext'
14181   { (case "(($ac_try" in
14182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183   *) ac_try_echo=$ac_try;;
14184 esac
14185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14186   (eval "$ac_try") 2>&5
14187   ac_status=$?
14188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189   (exit $ac_status); }; }; then
14190   ac_cv_header_time=yes
14191 else
14192   echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.$ac_ext >&5
14194
14195         ac_cv_header_time=no
14196 fi
14197
14198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14199 fi
14200 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14201 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14202 if test $ac_cv_header_time = yes; then
14203
14204 cat >>confdefs.h <<\_ACEOF
14205 #define TIME_WITH_SYS_TIME 1
14206 _ACEOF
14207
14208 fi
14209
14210
14211
14212
14213
14214
14215
14216
14217 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14218 do
14219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14221   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14224   echo $ECHO_N "(cached) $ECHO_C" >&6
14225 fi
14226 ac_res=`eval echo '${'$as_ac_Header'}'`
14227                { echo "$as_me:$LINENO: result: $ac_res" >&5
14228 echo "${ECHO_T}$ac_res" >&6; }
14229 else
14230   # Is the header compilable?
14231 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14233 cat >conftest.$ac_ext <<_ACEOF
14234 /* confdefs.h.  */
14235 _ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h.  */
14239 $ac_includes_default
14240 #include <$ac_header>
14241 _ACEOF
14242 rm -f conftest.$ac_objext
14243 if { (ac_try="$ac_compile"
14244 case "(($ac_try" in
14245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14246   *) ac_try_echo=$ac_try;;
14247 esac
14248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14249   (eval "$ac_compile") 2>conftest.er1
14250   ac_status=$?
14251   grep -v '^ *+' conftest.er1 >conftest.err
14252   rm -f conftest.er1
14253   cat conftest.err >&5
14254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255   (exit $ac_status); } &&
14256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14257   { (case "(($ac_try" in
14258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14259   *) ac_try_echo=$ac_try;;
14260 esac
14261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14262   (eval "$ac_try") 2>&5
14263   ac_status=$?
14264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265   (exit $ac_status); }; } &&
14266          { ac_try='test -s conftest.$ac_objext'
14267   { (case "(($ac_try" in
14268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14269   *) ac_try_echo=$ac_try;;
14270 esac
14271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14272   (eval "$ac_try") 2>&5
14273   ac_status=$?
14274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275   (exit $ac_status); }; }; then
14276   ac_header_compiler=yes
14277 else
14278   echo "$as_me: failed program was:" >&5
14279 sed 's/^/| /' conftest.$ac_ext >&5
14280
14281         ac_header_compiler=no
14282 fi
14283
14284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14286 echo "${ECHO_T}$ac_header_compiler" >&6; }
14287
14288 # Is the header present?
14289 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14291 cat >conftest.$ac_ext <<_ACEOF
14292 /* confdefs.h.  */
14293 _ACEOF
14294 cat confdefs.h >>conftest.$ac_ext
14295 cat >>conftest.$ac_ext <<_ACEOF
14296 /* end confdefs.h.  */
14297 #include <$ac_header>
14298 _ACEOF
14299 if { (ac_try="$ac_cpp conftest.$ac_ext"
14300 case "(($ac_try" in
14301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302   *) ac_try_echo=$ac_try;;
14303 esac
14304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14306   ac_status=$?
14307   grep -v '^ *+' conftest.er1 >conftest.err
14308   rm -f conftest.er1
14309   cat conftest.err >&5
14310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311   (exit $ac_status); } >/dev/null; then
14312   if test -s conftest.err; then
14313     ac_cpp_err=$ac_c_preproc_warn_flag
14314     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14315   else
14316     ac_cpp_err=
14317   fi
14318 else
14319   ac_cpp_err=yes
14320 fi
14321 if test -z "$ac_cpp_err"; then
14322   ac_header_preproc=yes
14323 else
14324   echo "$as_me: failed program was:" >&5
14325 sed 's/^/| /' conftest.$ac_ext >&5
14326
14327   ac_header_preproc=no
14328 fi
14329
14330 rm -f conftest.err conftest.$ac_ext
14331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14332 echo "${ECHO_T}$ac_header_preproc" >&6; }
14333
14334 # So?  What about this header?
14335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14336   yes:no: )
14337     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14339     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14341     ac_header_preproc=yes
14342     ;;
14343   no:yes:* )
14344     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14346     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14347 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14348     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14350     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14351 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14354     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14356     ( cat <<\_ASBOX
14357 ## ------------------------------ ##
14358 ## Report this to bugs@yourdomain ##
14359 ## ------------------------------ ##
14360 _ASBOX
14361      ) | sed "s/^/$as_me: WARNING:     /" >&2
14362     ;;
14363 esac
14364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14367   echo $ECHO_N "(cached) $ECHO_C" >&6
14368 else
14369   eval "$as_ac_Header=\$ac_header_preproc"
14370 fi
14371 ac_res=`eval echo '${'$as_ac_Header'}'`
14372                { echo "$as_me:$LINENO: result: $ac_res" >&5
14373 echo "${ECHO_T}$ac_res" >&6; }
14374
14375 fi
14376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14377   cat >>confdefs.h <<_ACEOF
14378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14379 _ACEOF
14380
14381 fi
14382
14383 done
14384
14385
14386
14387
14388
14389
14390
14391 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14392 do
14393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14395   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14398   echo $ECHO_N "(cached) $ECHO_C" >&6
14399 fi
14400 ac_res=`eval echo '${'$as_ac_Header'}'`
14401                { echo "$as_me:$LINENO: result: $ac_res" >&5
14402 echo "${ECHO_T}$ac_res" >&6; }
14403 else
14404   # Is the header compilable?
14405 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14407 cat >conftest.$ac_ext <<_ACEOF
14408 /* confdefs.h.  */
14409 _ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h.  */
14413 $ac_includes_default
14414 #include <$ac_header>
14415 _ACEOF
14416 rm -f conftest.$ac_objext
14417 if { (ac_try="$ac_compile"
14418 case "(($ac_try" in
14419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14420   *) ac_try_echo=$ac_try;;
14421 esac
14422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14423   (eval "$ac_compile") 2>conftest.er1
14424   ac_status=$?
14425   grep -v '^ *+' conftest.er1 >conftest.err
14426   rm -f conftest.er1
14427   cat conftest.err >&5
14428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429   (exit $ac_status); } &&
14430          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14431   { (case "(($ac_try" in
14432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14433   *) ac_try_echo=$ac_try;;
14434 esac
14435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14436   (eval "$ac_try") 2>&5
14437   ac_status=$?
14438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439   (exit $ac_status); }; } &&
14440          { ac_try='test -s conftest.$ac_objext'
14441   { (case "(($ac_try" in
14442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443   *) ac_try_echo=$ac_try;;
14444 esac
14445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14446   (eval "$ac_try") 2>&5
14447   ac_status=$?
14448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449   (exit $ac_status); }; }; then
14450   ac_header_compiler=yes
14451 else
14452   echo "$as_me: failed program was:" >&5
14453 sed 's/^/| /' conftest.$ac_ext >&5
14454
14455         ac_header_compiler=no
14456 fi
14457
14458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14460 echo "${ECHO_T}$ac_header_compiler" >&6; }
14461
14462 # Is the header present?
14463 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14465 cat >conftest.$ac_ext <<_ACEOF
14466 /* confdefs.h.  */
14467 _ACEOF
14468 cat confdefs.h >>conftest.$ac_ext
14469 cat >>conftest.$ac_ext <<_ACEOF
14470 /* end confdefs.h.  */
14471 #include <$ac_header>
14472 _ACEOF
14473 if { (ac_try="$ac_cpp conftest.$ac_ext"
14474 case "(($ac_try" in
14475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14476   *) ac_try_echo=$ac_try;;
14477 esac
14478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14479   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14480   ac_status=$?
14481   grep -v '^ *+' conftest.er1 >conftest.err
14482   rm -f conftest.er1
14483   cat conftest.err >&5
14484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485   (exit $ac_status); } >/dev/null; then
14486   if test -s conftest.err; then
14487     ac_cpp_err=$ac_c_preproc_warn_flag
14488     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14489   else
14490     ac_cpp_err=
14491   fi
14492 else
14493   ac_cpp_err=yes
14494 fi
14495 if test -z "$ac_cpp_err"; then
14496   ac_header_preproc=yes
14497 else
14498   echo "$as_me: failed program was:" >&5
14499 sed 's/^/| /' conftest.$ac_ext >&5
14500
14501   ac_header_preproc=no
14502 fi
14503
14504 rm -f conftest.err conftest.$ac_ext
14505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14506 echo "${ECHO_T}$ac_header_preproc" >&6; }
14507
14508 # So?  What about this header?
14509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14510   yes:no: )
14511     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14513     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14515     ac_header_preproc=yes
14516     ;;
14517   no:yes:* )
14518     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14520     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14521 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14522     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14524     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14525 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14526     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14528     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14530     ( cat <<\_ASBOX
14531 ## ------------------------------ ##
14532 ## Report this to bugs@yourdomain ##
14533 ## ------------------------------ ##
14534 _ASBOX
14535      ) | sed "s/^/$as_me: WARNING:     /" >&2
14536     ;;
14537 esac
14538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14541   echo $ECHO_N "(cached) $ECHO_C" >&6
14542 else
14543   eval "$as_ac_Header=\$ac_header_preproc"
14544 fi
14545 ac_res=`eval echo '${'$as_ac_Header'}'`
14546                { echo "$as_me:$LINENO: result: $ac_res" >&5
14547 echo "${ECHO_T}$ac_res" >&6; }
14548
14549 fi
14550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14551   cat >>confdefs.h <<_ACEOF
14552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14553 _ACEOF
14554
14555 fi
14556
14557 done
14558
14559
14560
14561 for ac_header in utime.h windows.h
14562 do
14563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14565   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14568   echo $ECHO_N "(cached) $ECHO_C" >&6
14569 fi
14570 ac_res=`eval echo '${'$as_ac_Header'}'`
14571                { echo "$as_me:$LINENO: result: $ac_res" >&5
14572 echo "${ECHO_T}$ac_res" >&6; }
14573 else
14574   # Is the header compilable?
14575 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14577 cat >conftest.$ac_ext <<_ACEOF
14578 /* confdefs.h.  */
14579 _ACEOF
14580 cat confdefs.h >>conftest.$ac_ext
14581 cat >>conftest.$ac_ext <<_ACEOF
14582 /* end confdefs.h.  */
14583 $ac_includes_default
14584 #include <$ac_header>
14585 _ACEOF
14586 rm -f conftest.$ac_objext
14587 if { (ac_try="$ac_compile"
14588 case "(($ac_try" in
14589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590   *) ac_try_echo=$ac_try;;
14591 esac
14592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593   (eval "$ac_compile") 2>conftest.er1
14594   ac_status=$?
14595   grep -v '^ *+' conftest.er1 >conftest.err
14596   rm -f conftest.er1
14597   cat conftest.err >&5
14598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599   (exit $ac_status); } &&
14600          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14601   { (case "(($ac_try" in
14602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603   *) ac_try_echo=$ac_try;;
14604 esac
14605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14606   (eval "$ac_try") 2>&5
14607   ac_status=$?
14608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609   (exit $ac_status); }; } &&
14610          { ac_try='test -s conftest.$ac_objext'
14611   { (case "(($ac_try" in
14612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613   *) ac_try_echo=$ac_try;;
14614 esac
14615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616   (eval "$ac_try") 2>&5
14617   ac_status=$?
14618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619   (exit $ac_status); }; }; then
14620   ac_header_compiler=yes
14621 else
14622   echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14624
14625         ac_header_compiler=no
14626 fi
14627
14628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14629 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14630 echo "${ECHO_T}$ac_header_compiler" >&6; }
14631
14632 # Is the header present?
14633 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14635 cat >conftest.$ac_ext <<_ACEOF
14636 /* confdefs.h.  */
14637 _ACEOF
14638 cat confdefs.h >>conftest.$ac_ext
14639 cat >>conftest.$ac_ext <<_ACEOF
14640 /* end confdefs.h.  */
14641 #include <$ac_header>
14642 _ACEOF
14643 if { (ac_try="$ac_cpp conftest.$ac_ext"
14644 case "(($ac_try" in
14645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646   *) ac_try_echo=$ac_try;;
14647 esac
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14650   ac_status=$?
14651   grep -v '^ *+' conftest.er1 >conftest.err
14652   rm -f conftest.er1
14653   cat conftest.err >&5
14654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655   (exit $ac_status); } >/dev/null; then
14656   if test -s conftest.err; then
14657     ac_cpp_err=$ac_c_preproc_warn_flag
14658     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14659   else
14660     ac_cpp_err=
14661   fi
14662 else
14663   ac_cpp_err=yes
14664 fi
14665 if test -z "$ac_cpp_err"; then
14666   ac_header_preproc=yes
14667 else
14668   echo "$as_me: failed program was:" >&5
14669 sed 's/^/| /' conftest.$ac_ext >&5
14670
14671   ac_header_preproc=no
14672 fi
14673
14674 rm -f conftest.err conftest.$ac_ext
14675 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14676 echo "${ECHO_T}$ac_header_preproc" >&6; }
14677
14678 # So?  What about this header?
14679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14680   yes:no: )
14681     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14683     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14685     ac_header_preproc=yes
14686     ;;
14687   no:yes:* )
14688     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14690     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14691 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14692     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14694     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14695 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14696     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14698     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14700     ( cat <<\_ASBOX
14701 ## ------------------------------ ##
14702 ## Report this to bugs@yourdomain ##
14703 ## ------------------------------ ##
14704 _ASBOX
14705      ) | sed "s/^/$as_me: WARNING:     /" >&2
14706     ;;
14707 esac
14708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14711   echo $ECHO_N "(cached) $ECHO_C" >&6
14712 else
14713   eval "$as_ac_Header=\$ac_header_preproc"
14714 fi
14715 ac_res=`eval echo '${'$as_ac_Header'}'`
14716                { echo "$as_me:$LINENO: result: $ac_res" >&5
14717 echo "${ECHO_T}$ac_res" >&6; }
14718
14719 fi
14720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14721   cat >>confdefs.h <<_ACEOF
14722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14723 _ACEOF
14724
14725 fi
14726
14727 done
14728
14729
14730
14731
14732
14733
14734 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14735 do
14736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14738   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14741   echo $ECHO_N "(cached) $ECHO_C" >&6
14742 fi
14743 ac_res=`eval echo '${'$as_ac_Header'}'`
14744                { echo "$as_me:$LINENO: result: $ac_res" >&5
14745 echo "${ECHO_T}$ac_res" >&6; }
14746 else
14747   # Is the header compilable?
14748 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14750 cat >conftest.$ac_ext <<_ACEOF
14751 /* confdefs.h.  */
14752 _ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h.  */
14756 $ac_includes_default
14757 #include <$ac_header>
14758 _ACEOF
14759 rm -f conftest.$ac_objext
14760 if { (ac_try="$ac_compile"
14761 case "(($ac_try" in
14762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763   *) ac_try_echo=$ac_try;;
14764 esac
14765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14766   (eval "$ac_compile") 2>conftest.er1
14767   ac_status=$?
14768   grep -v '^ *+' conftest.er1 >conftest.err
14769   rm -f conftest.er1
14770   cat conftest.err >&5
14771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772   (exit $ac_status); } &&
14773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14774   { (case "(($ac_try" in
14775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14776   *) ac_try_echo=$ac_try;;
14777 esac
14778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14779   (eval "$ac_try") 2>&5
14780   ac_status=$?
14781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782   (exit $ac_status); }; } &&
14783          { ac_try='test -s conftest.$ac_objext'
14784   { (case "(($ac_try" in
14785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14786   *) ac_try_echo=$ac_try;;
14787 esac
14788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14789   (eval "$ac_try") 2>&5
14790   ac_status=$?
14791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792   (exit $ac_status); }; }; then
14793   ac_header_compiler=yes
14794 else
14795   echo "$as_me: failed program was:" >&5
14796 sed 's/^/| /' conftest.$ac_ext >&5
14797
14798         ac_header_compiler=no
14799 fi
14800
14801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14803 echo "${ECHO_T}$ac_header_compiler" >&6; }
14804
14805 # Is the header present?
14806 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14808 cat >conftest.$ac_ext <<_ACEOF
14809 /* confdefs.h.  */
14810 _ACEOF
14811 cat confdefs.h >>conftest.$ac_ext
14812 cat >>conftest.$ac_ext <<_ACEOF
14813 /* end confdefs.h.  */
14814 #include <$ac_header>
14815 _ACEOF
14816 if { (ac_try="$ac_cpp conftest.$ac_ext"
14817 case "(($ac_try" in
14818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14819   *) ac_try_echo=$ac_try;;
14820 esac
14821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14822   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14823   ac_status=$?
14824   grep -v '^ *+' conftest.er1 >conftest.err
14825   rm -f conftest.er1
14826   cat conftest.err >&5
14827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828   (exit $ac_status); } >/dev/null; then
14829   if test -s conftest.err; then
14830     ac_cpp_err=$ac_c_preproc_warn_flag
14831     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14832   else
14833     ac_cpp_err=
14834   fi
14835 else
14836   ac_cpp_err=yes
14837 fi
14838 if test -z "$ac_cpp_err"; then
14839   ac_header_preproc=yes
14840 else
14841   echo "$as_me: failed program was:" >&5
14842 sed 's/^/| /' conftest.$ac_ext >&5
14843
14844   ac_header_preproc=no
14845 fi
14846
14847 rm -f conftest.err conftest.$ac_ext
14848 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14849 echo "${ECHO_T}$ac_header_preproc" >&6; }
14850
14851 # So?  What about this header?
14852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14853   yes:no: )
14854     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14856     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14858     ac_header_preproc=yes
14859     ;;
14860   no:yes:* )
14861     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14863     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14864 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14865     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14867     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14868 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14869     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14871     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14873     ( cat <<\_ASBOX
14874 ## ------------------------------ ##
14875 ## Report this to bugs@yourdomain ##
14876 ## ------------------------------ ##
14877 _ASBOX
14878      ) | sed "s/^/$as_me: WARNING:     /" >&2
14879     ;;
14880 esac
14881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14884   echo $ECHO_N "(cached) $ECHO_C" >&6
14885 else
14886   eval "$as_ac_Header=\$ac_header_preproc"
14887 fi
14888 ac_res=`eval echo '${'$as_ac_Header'}'`
14889                { echo "$as_me:$LINENO: result: $ac_res" >&5
14890 echo "${ECHO_T}$ac_res" >&6; }
14891
14892 fi
14893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14894   cat >>confdefs.h <<_ACEOF
14895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14896 _ACEOF
14897
14898 fi
14899
14900 done
14901
14902
14903
14904
14905
14906 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14907 do
14908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14910   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14913   echo $ECHO_N "(cached) $ECHO_C" >&6
14914 fi
14915 ac_res=`eval echo '${'$as_ac_Header'}'`
14916                { echo "$as_me:$LINENO: result: $ac_res" >&5
14917 echo "${ECHO_T}$ac_res" >&6; }
14918 else
14919   # Is the header compilable?
14920 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14922 cat >conftest.$ac_ext <<_ACEOF
14923 /* confdefs.h.  */
14924 _ACEOF
14925 cat confdefs.h >>conftest.$ac_ext
14926 cat >>conftest.$ac_ext <<_ACEOF
14927 /* end confdefs.h.  */
14928 $ac_includes_default
14929 #include <$ac_header>
14930 _ACEOF
14931 rm -f conftest.$ac_objext
14932 if { (ac_try="$ac_compile"
14933 case "(($ac_try" in
14934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14935   *) ac_try_echo=$ac_try;;
14936 esac
14937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14938   (eval "$ac_compile") 2>conftest.er1
14939   ac_status=$?
14940   grep -v '^ *+' conftest.er1 >conftest.err
14941   rm -f conftest.er1
14942   cat conftest.err >&5
14943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944   (exit $ac_status); } &&
14945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14946   { (case "(($ac_try" in
14947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14948   *) ac_try_echo=$ac_try;;
14949 esac
14950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14951   (eval "$ac_try") 2>&5
14952   ac_status=$?
14953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954   (exit $ac_status); }; } &&
14955          { ac_try='test -s conftest.$ac_objext'
14956   { (case "(($ac_try" in
14957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14958   *) ac_try_echo=$ac_try;;
14959 esac
14960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14961   (eval "$ac_try") 2>&5
14962   ac_status=$?
14963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964   (exit $ac_status); }; }; then
14965   ac_header_compiler=yes
14966 else
14967   echo "$as_me: failed program was:" >&5
14968 sed 's/^/| /' conftest.$ac_ext >&5
14969
14970         ac_header_compiler=no
14971 fi
14972
14973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14975 echo "${ECHO_T}$ac_header_compiler" >&6; }
14976
14977 # Is the header present?
14978 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14979 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14980 cat >conftest.$ac_ext <<_ACEOF
14981 /* confdefs.h.  */
14982 _ACEOF
14983 cat confdefs.h >>conftest.$ac_ext
14984 cat >>conftest.$ac_ext <<_ACEOF
14985 /* end confdefs.h.  */
14986 #include <$ac_header>
14987 _ACEOF
14988 if { (ac_try="$ac_cpp conftest.$ac_ext"
14989 case "(($ac_try" in
14990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14991   *) ac_try_echo=$ac_try;;
14992 esac
14993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14994   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14995   ac_status=$?
14996   grep -v '^ *+' conftest.er1 >conftest.err
14997   rm -f conftest.er1
14998   cat conftest.err >&5
14999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000   (exit $ac_status); } >/dev/null; then
15001   if test -s conftest.err; then
15002     ac_cpp_err=$ac_c_preproc_warn_flag
15003     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15004   else
15005     ac_cpp_err=
15006   fi
15007 else
15008   ac_cpp_err=yes
15009 fi
15010 if test -z "$ac_cpp_err"; then
15011   ac_header_preproc=yes
15012 else
15013   echo "$as_me: failed program was:" >&5
15014 sed 's/^/| /' conftest.$ac_ext >&5
15015
15016   ac_header_preproc=no
15017 fi
15018
15019 rm -f conftest.err conftest.$ac_ext
15020 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15021 echo "${ECHO_T}$ac_header_preproc" >&6; }
15022
15023 # So?  What about this header?
15024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15025   yes:no: )
15026     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15028     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15030     ac_header_preproc=yes
15031     ;;
15032   no:yes:* )
15033     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15035     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15036 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15037     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15039     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15040 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15041     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15043     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15045     ( cat <<\_ASBOX
15046 ## ------------------------------ ##
15047 ## Report this to bugs@yourdomain ##
15048 ## ------------------------------ ##
15049 _ASBOX
15050      ) | sed "s/^/$as_me: WARNING:     /" >&2
15051     ;;
15052 esac
15053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15056   echo $ECHO_N "(cached) $ECHO_C" >&6
15057 else
15058   eval "$as_ac_Header=\$ac_header_preproc"
15059 fi
15060 ac_res=`eval echo '${'$as_ac_Header'}'`
15061                { echo "$as_me:$LINENO: result: $ac_res" >&5
15062 echo "${ECHO_T}$ac_res" >&6; }
15063
15064 fi
15065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15066   cat >>confdefs.h <<_ACEOF
15067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15068 _ACEOF
15069
15070 fi
15071
15072 done
15073
15074
15075 for ac_header in valgrind/valgrind.h
15076 do
15077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15079   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15082   echo $ECHO_N "(cached) $ECHO_C" >&6
15083 fi
15084 ac_res=`eval echo '${'$as_ac_Header'}'`
15085                { echo "$as_me:$LINENO: result: $ac_res" >&5
15086 echo "${ECHO_T}$ac_res" >&6; }
15087 else
15088   # Is the header compilable?
15089 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15091 cat >conftest.$ac_ext <<_ACEOF
15092 /* confdefs.h.  */
15093 _ACEOF
15094 cat confdefs.h >>conftest.$ac_ext
15095 cat >>conftest.$ac_ext <<_ACEOF
15096 /* end confdefs.h.  */
15097 $ac_includes_default
15098 #include <$ac_header>
15099 _ACEOF
15100 rm -f conftest.$ac_objext
15101 if { (ac_try="$ac_compile"
15102 case "(($ac_try" in
15103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15104   *) ac_try_echo=$ac_try;;
15105 esac
15106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15107   (eval "$ac_compile") 2>conftest.er1
15108   ac_status=$?
15109   grep -v '^ *+' conftest.er1 >conftest.err
15110   rm -f conftest.er1
15111   cat conftest.err >&5
15112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113   (exit $ac_status); } &&
15114          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15115   { (case "(($ac_try" in
15116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15117   *) ac_try_echo=$ac_try;;
15118 esac
15119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15120   (eval "$ac_try") 2>&5
15121   ac_status=$?
15122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123   (exit $ac_status); }; } &&
15124          { ac_try='test -s conftest.$ac_objext'
15125   { (case "(($ac_try" in
15126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15127   *) ac_try_echo=$ac_try;;
15128 esac
15129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15130   (eval "$ac_try") 2>&5
15131   ac_status=$?
15132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133   (exit $ac_status); }; }; then
15134   ac_header_compiler=yes
15135 else
15136   echo "$as_me: failed program was:" >&5
15137 sed 's/^/| /' conftest.$ac_ext >&5
15138
15139         ac_header_compiler=no
15140 fi
15141
15142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15143 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15144 echo "${ECHO_T}$ac_header_compiler" >&6; }
15145
15146 # Is the header present?
15147 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15149 cat >conftest.$ac_ext <<_ACEOF
15150 /* confdefs.h.  */
15151 _ACEOF
15152 cat confdefs.h >>conftest.$ac_ext
15153 cat >>conftest.$ac_ext <<_ACEOF
15154 /* end confdefs.h.  */
15155 #include <$ac_header>
15156 _ACEOF
15157 if { (ac_try="$ac_cpp conftest.$ac_ext"
15158 case "(($ac_try" in
15159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160   *) ac_try_echo=$ac_try;;
15161 esac
15162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15163   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15164   ac_status=$?
15165   grep -v '^ *+' conftest.er1 >conftest.err
15166   rm -f conftest.er1
15167   cat conftest.err >&5
15168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169   (exit $ac_status); } >/dev/null; then
15170   if test -s conftest.err; then
15171     ac_cpp_err=$ac_c_preproc_warn_flag
15172     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15173   else
15174     ac_cpp_err=
15175   fi
15176 else
15177   ac_cpp_err=yes
15178 fi
15179 if test -z "$ac_cpp_err"; then
15180   ac_header_preproc=yes
15181 else
15182   echo "$as_me: failed program was:" >&5
15183 sed 's/^/| /' conftest.$ac_ext >&5
15184
15185   ac_header_preproc=no
15186 fi
15187
15188 rm -f conftest.err conftest.$ac_ext
15189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15190 echo "${ECHO_T}$ac_header_preproc" >&6; }
15191
15192 # So?  What about this header?
15193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15194   yes:no: )
15195     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15197     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15199     ac_header_preproc=yes
15200     ;;
15201   no:yes:* )
15202     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15204     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15205 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15206     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15208     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15209 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15212     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15214     ( cat <<\_ASBOX
15215 ## ------------------------------ ##
15216 ## Report this to bugs@yourdomain ##
15217 ## ------------------------------ ##
15218 _ASBOX
15219      ) | sed "s/^/$as_me: WARNING:     /" >&2
15220     ;;
15221 esac
15222 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15225   echo $ECHO_N "(cached) $ECHO_C" >&6
15226 else
15227   eval "$as_ac_Header=\$ac_header_preproc"
15228 fi
15229 ac_res=`eval echo '${'$as_ac_Header'}'`
15230                { echo "$as_me:$LINENO: result: $ac_res" >&5
15231 echo "${ECHO_T}$ac_res" >&6; }
15232
15233 fi
15234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15235   cat >>confdefs.h <<_ACEOF
15236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15237 _ACEOF
15238
15239 fi
15240
15241 done
15242
15243
15244 for ac_header in fenv.h
15245 do
15246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15248   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15251   echo $ECHO_N "(cached) $ECHO_C" >&6
15252 fi
15253 ac_res=`eval echo '${'$as_ac_Header'}'`
15254                { echo "$as_me:$LINENO: result: $ac_res" >&5
15255 echo "${ECHO_T}$ac_res" >&6; }
15256 else
15257   # Is the header compilable?
15258 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15260 cat >conftest.$ac_ext <<_ACEOF
15261 /* confdefs.h.  */
15262 _ACEOF
15263 cat confdefs.h >>conftest.$ac_ext
15264 cat >>conftest.$ac_ext <<_ACEOF
15265 /* end confdefs.h.  */
15266 $ac_includes_default
15267 #include <$ac_header>
15268 _ACEOF
15269 rm -f conftest.$ac_objext
15270 if { (ac_try="$ac_compile"
15271 case "(($ac_try" in
15272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15273   *) ac_try_echo=$ac_try;;
15274 esac
15275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15276   (eval "$ac_compile") 2>conftest.er1
15277   ac_status=$?
15278   grep -v '^ *+' conftest.er1 >conftest.err
15279   rm -f conftest.er1
15280   cat conftest.err >&5
15281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282   (exit $ac_status); } &&
15283          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15284   { (case "(($ac_try" in
15285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15286   *) ac_try_echo=$ac_try;;
15287 esac
15288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15289   (eval "$ac_try") 2>&5
15290   ac_status=$?
15291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292   (exit $ac_status); }; } &&
15293          { ac_try='test -s conftest.$ac_objext'
15294   { (case "(($ac_try" in
15295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296   *) ac_try_echo=$ac_try;;
15297 esac
15298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15299   (eval "$ac_try") 2>&5
15300   ac_status=$?
15301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302   (exit $ac_status); }; }; then
15303   ac_header_compiler=yes
15304 else
15305   echo "$as_me: failed program was:" >&5
15306 sed 's/^/| /' conftest.$ac_ext >&5
15307
15308         ac_header_compiler=no
15309 fi
15310
15311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15312 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15313 echo "${ECHO_T}$ac_header_compiler" >&6; }
15314
15315 # Is the header present?
15316 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15318 cat >conftest.$ac_ext <<_ACEOF
15319 /* confdefs.h.  */
15320 _ACEOF
15321 cat confdefs.h >>conftest.$ac_ext
15322 cat >>conftest.$ac_ext <<_ACEOF
15323 /* end confdefs.h.  */
15324 #include <$ac_header>
15325 _ACEOF
15326 if { (ac_try="$ac_cpp conftest.$ac_ext"
15327 case "(($ac_try" in
15328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329   *) ac_try_echo=$ac_try;;
15330 esac
15331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15333   ac_status=$?
15334   grep -v '^ *+' conftest.er1 >conftest.err
15335   rm -f conftest.er1
15336   cat conftest.err >&5
15337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338   (exit $ac_status); } >/dev/null; then
15339   if test -s conftest.err; then
15340     ac_cpp_err=$ac_c_preproc_warn_flag
15341     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15342   else
15343     ac_cpp_err=
15344   fi
15345 else
15346   ac_cpp_err=yes
15347 fi
15348 if test -z "$ac_cpp_err"; then
15349   ac_header_preproc=yes
15350 else
15351   echo "$as_me: failed program was:" >&5
15352 sed 's/^/| /' conftest.$ac_ext >&5
15353
15354   ac_header_preproc=no
15355 fi
15356
15357 rm -f conftest.err conftest.$ac_ext
15358 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15359 echo "${ECHO_T}$ac_header_preproc" >&6; }
15360
15361 # So?  What about this header?
15362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15363   yes:no: )
15364     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15366     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15368     ac_header_preproc=yes
15369     ;;
15370   no:yes:* )
15371     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15373     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15374 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15375     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15377     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15378 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15379     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15381     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15383     ( cat <<\_ASBOX
15384 ## ------------------------------ ##
15385 ## Report this to bugs@yourdomain ##
15386 ## ------------------------------ ##
15387 _ASBOX
15388      ) | sed "s/^/$as_me: WARNING:     /" >&2
15389     ;;
15390 esac
15391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15394   echo $ECHO_N "(cached) $ECHO_C" >&6
15395 else
15396   eval "$as_ac_Header=\$ac_header_preproc"
15397 fi
15398 ac_res=`eval echo '${'$as_ac_Header'}'`
15399                { echo "$as_me:$LINENO: result: $ac_res" >&5
15400 echo "${ECHO_T}$ac_res" >&6; }
15401
15402 fi
15403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15404   cat >>confdefs.h <<_ACEOF
15405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15406 _ACEOF
15407
15408 fi
15409
15410 done
15411
15412 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15413
15414 for ac_header in pthread.h
15415 do
15416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15418   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15421   echo $ECHO_N "(cached) $ECHO_C" >&6
15422 fi
15423 ac_res=`eval echo '${'$as_ac_Header'}'`
15424                { echo "$as_me:$LINENO: result: $ac_res" >&5
15425 echo "${ECHO_T}$ac_res" >&6; }
15426 else
15427   # Is the header compilable?
15428 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15430 cat >conftest.$ac_ext <<_ACEOF
15431 /* confdefs.h.  */
15432 _ACEOF
15433 cat confdefs.h >>conftest.$ac_ext
15434 cat >>conftest.$ac_ext <<_ACEOF
15435 /* end confdefs.h.  */
15436 $ac_includes_default
15437 #include <$ac_header>
15438 _ACEOF
15439 rm -f conftest.$ac_objext
15440 if { (ac_try="$ac_compile"
15441 case "(($ac_try" in
15442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15443   *) ac_try_echo=$ac_try;;
15444 esac
15445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15446   (eval "$ac_compile") 2>conftest.er1
15447   ac_status=$?
15448   grep -v '^ *+' conftest.er1 >conftest.err
15449   rm -f conftest.er1
15450   cat conftest.err >&5
15451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452   (exit $ac_status); } &&
15453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15454   { (case "(($ac_try" in
15455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15456   *) ac_try_echo=$ac_try;;
15457 esac
15458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15459   (eval "$ac_try") 2>&5
15460   ac_status=$?
15461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462   (exit $ac_status); }; } &&
15463          { ac_try='test -s conftest.$ac_objext'
15464   { (case "(($ac_try" in
15465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15466   *) ac_try_echo=$ac_try;;
15467 esac
15468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15469   (eval "$ac_try") 2>&5
15470   ac_status=$?
15471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472   (exit $ac_status); }; }; then
15473   ac_header_compiler=yes
15474 else
15475   echo "$as_me: failed program was:" >&5
15476 sed 's/^/| /' conftest.$ac_ext >&5
15477
15478         ac_header_compiler=no
15479 fi
15480
15481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15482 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15483 echo "${ECHO_T}$ac_header_compiler" >&6; }
15484
15485 # Is the header present?
15486 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15488 cat >conftest.$ac_ext <<_ACEOF
15489 /* confdefs.h.  */
15490 _ACEOF
15491 cat confdefs.h >>conftest.$ac_ext
15492 cat >>conftest.$ac_ext <<_ACEOF
15493 /* end confdefs.h.  */
15494 #include <$ac_header>
15495 _ACEOF
15496 if { (ac_try="$ac_cpp conftest.$ac_ext"
15497 case "(($ac_try" in
15498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499   *) ac_try_echo=$ac_try;;
15500 esac
15501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15502   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15503   ac_status=$?
15504   grep -v '^ *+' conftest.er1 >conftest.err
15505   rm -f conftest.er1
15506   cat conftest.err >&5
15507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508   (exit $ac_status); } >/dev/null; then
15509   if test -s conftest.err; then
15510     ac_cpp_err=$ac_c_preproc_warn_flag
15511     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15512   else
15513     ac_cpp_err=
15514   fi
15515 else
15516   ac_cpp_err=yes
15517 fi
15518 if test -z "$ac_cpp_err"; then
15519   ac_header_preproc=yes
15520 else
15521   echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15523
15524   ac_header_preproc=no
15525 fi
15526
15527 rm -f conftest.err conftest.$ac_ext
15528 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15529 echo "${ECHO_T}$ac_header_preproc" >&6; }
15530
15531 # So?  What about this header?
15532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15533   yes:no: )
15534     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15536     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15538     ac_header_preproc=yes
15539     ;;
15540   no:yes:* )
15541     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15543     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15544 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15545     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15547     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15548 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15549     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15551     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15553     ( cat <<\_ASBOX
15554 ## ------------------------------ ##
15555 ## Report this to bugs@yourdomain ##
15556 ## ------------------------------ ##
15557 _ASBOX
15558      ) | sed "s/^/$as_me: WARNING:     /" >&2
15559     ;;
15560 esac
15561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15564   echo $ECHO_N "(cached) $ECHO_C" >&6
15565 else
15566   eval "$as_ac_Header=\$ac_header_preproc"
15567 fi
15568 ac_res=`eval echo '${'$as_ac_Header'}'`
15569                { echo "$as_me:$LINENO: result: $ac_res" >&5
15570 echo "${ECHO_T}$ac_res" >&6; }
15571
15572 fi
15573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15574   cat >>confdefs.h <<_ACEOF
15575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15576 _ACEOF
15577  HAVE_PTHREAD=1
15578
15579 else
15580   HAVE_PTHREAD=0
15581
15582 fi
15583
15584 done
15585
15586 else
15587   HAVE_PTHREAD=0
15588
15589 fi
15590
15591 if test "$llvm_cv_enable_libffi" = "yes" ; then
15592
15593
15594 for ac_header in ffi.h ffi/ffi.h
15595 do
15596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15598   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15601   echo $ECHO_N "(cached) $ECHO_C" >&6
15602 fi
15603 ac_res=`eval echo '${'$as_ac_Header'}'`
15604                { echo "$as_me:$LINENO: result: $ac_res" >&5
15605 echo "${ECHO_T}$ac_res" >&6; }
15606 else
15607   # Is the header compilable?
15608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15610 cat >conftest.$ac_ext <<_ACEOF
15611 /* confdefs.h.  */
15612 _ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h.  */
15616 $ac_includes_default
15617 #include <$ac_header>
15618 _ACEOF
15619 rm -f conftest.$ac_objext
15620 if { (ac_try="$ac_compile"
15621 case "(($ac_try" in
15622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623   *) ac_try_echo=$ac_try;;
15624 esac
15625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626   (eval "$ac_compile") 2>conftest.er1
15627   ac_status=$?
15628   grep -v '^ *+' conftest.er1 >conftest.err
15629   rm -f conftest.er1
15630   cat conftest.err >&5
15631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632   (exit $ac_status); } &&
15633          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15634   { (case "(($ac_try" in
15635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15636   *) ac_try_echo=$ac_try;;
15637 esac
15638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15639   (eval "$ac_try") 2>&5
15640   ac_status=$?
15641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642   (exit $ac_status); }; } &&
15643          { ac_try='test -s conftest.$ac_objext'
15644   { (case "(($ac_try" in
15645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646   *) ac_try_echo=$ac_try;;
15647 esac
15648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15649   (eval "$ac_try") 2>&5
15650   ac_status=$?
15651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652   (exit $ac_status); }; }; then
15653   ac_header_compiler=yes
15654 else
15655   echo "$as_me: failed program was:" >&5
15656 sed 's/^/| /' conftest.$ac_ext >&5
15657
15658         ac_header_compiler=no
15659 fi
15660
15661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15662 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15663 echo "${ECHO_T}$ac_header_compiler" >&6; }
15664
15665 # Is the header present?
15666 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15668 cat >conftest.$ac_ext <<_ACEOF
15669 /* confdefs.h.  */
15670 _ACEOF
15671 cat confdefs.h >>conftest.$ac_ext
15672 cat >>conftest.$ac_ext <<_ACEOF
15673 /* end confdefs.h.  */
15674 #include <$ac_header>
15675 _ACEOF
15676 if { (ac_try="$ac_cpp conftest.$ac_ext"
15677 case "(($ac_try" in
15678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15679   *) ac_try_echo=$ac_try;;
15680 esac
15681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15682   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15683   ac_status=$?
15684   grep -v '^ *+' conftest.er1 >conftest.err
15685   rm -f conftest.er1
15686   cat conftest.err >&5
15687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688   (exit $ac_status); } >/dev/null; then
15689   if test -s conftest.err; then
15690     ac_cpp_err=$ac_c_preproc_warn_flag
15691     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15692   else
15693     ac_cpp_err=
15694   fi
15695 else
15696   ac_cpp_err=yes
15697 fi
15698 if test -z "$ac_cpp_err"; then
15699   ac_header_preproc=yes
15700 else
15701   echo "$as_me: failed program was:" >&5
15702 sed 's/^/| /' conftest.$ac_ext >&5
15703
15704   ac_header_preproc=no
15705 fi
15706
15707 rm -f conftest.err conftest.$ac_ext
15708 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15709 echo "${ECHO_T}$ac_header_preproc" >&6; }
15710
15711 # So?  What about this header?
15712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15713   yes:no: )
15714     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15715 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15716     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15717 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15718     ac_header_preproc=yes
15719     ;;
15720   no:yes:* )
15721     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15722 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15723     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15724 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15725     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15726 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15727     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15728 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15729     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15730 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15731     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15732 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15733     ( cat <<\_ASBOX
15734 ## ------------------------------ ##
15735 ## Report this to bugs@yourdomain ##
15736 ## ------------------------------ ##
15737 _ASBOX
15738      ) | sed "s/^/$as_me: WARNING:     /" >&2
15739     ;;
15740 esac
15741 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15744   echo $ECHO_N "(cached) $ECHO_C" >&6
15745 else
15746   eval "$as_ac_Header=\$ac_header_preproc"
15747 fi
15748 ac_res=`eval echo '${'$as_ac_Header'}'`
15749                { echo "$as_me:$LINENO: result: $ac_res" >&5
15750 echo "${ECHO_T}$ac_res" >&6; }
15751
15752 fi
15753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15754   cat >>confdefs.h <<_ACEOF
15755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15756 _ACEOF
15757
15758 fi
15759
15760 done
15761
15762 fi
15763
15764
15765 for ac_header in CrashReporterClient.h
15766 do
15767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15769   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15772   echo $ECHO_N "(cached) $ECHO_C" >&6
15773 fi
15774 ac_res=`eval echo '${'$as_ac_Header'}'`
15775                { echo "$as_me:$LINENO: result: $ac_res" >&5
15776 echo "${ECHO_T}$ac_res" >&6; }
15777 else
15778   # Is the header compilable?
15779 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15780 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15781 cat >conftest.$ac_ext <<_ACEOF
15782 /* confdefs.h.  */
15783 _ACEOF
15784 cat confdefs.h >>conftest.$ac_ext
15785 cat >>conftest.$ac_ext <<_ACEOF
15786 /* end confdefs.h.  */
15787 $ac_includes_default
15788 #include <$ac_header>
15789 _ACEOF
15790 rm -f conftest.$ac_objext
15791 if { (ac_try="$ac_compile"
15792 case "(($ac_try" in
15793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794   *) ac_try_echo=$ac_try;;
15795 esac
15796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15797   (eval "$ac_compile") 2>conftest.er1
15798   ac_status=$?
15799   grep -v '^ *+' conftest.er1 >conftest.err
15800   rm -f conftest.er1
15801   cat conftest.err >&5
15802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803   (exit $ac_status); } &&
15804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15805   { (case "(($ac_try" in
15806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15807   *) ac_try_echo=$ac_try;;
15808 esac
15809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15810   (eval "$ac_try") 2>&5
15811   ac_status=$?
15812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813   (exit $ac_status); }; } &&
15814          { ac_try='test -s conftest.$ac_objext'
15815   { (case "(($ac_try" in
15816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15817   *) ac_try_echo=$ac_try;;
15818 esac
15819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15820   (eval "$ac_try") 2>&5
15821   ac_status=$?
15822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823   (exit $ac_status); }; }; then
15824   ac_header_compiler=yes
15825 else
15826   echo "$as_me: failed program was:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15828
15829         ac_header_compiler=no
15830 fi
15831
15832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15834 echo "${ECHO_T}$ac_header_compiler" >&6; }
15835
15836 # Is the header present?
15837 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15839 cat >conftest.$ac_ext <<_ACEOF
15840 /* confdefs.h.  */
15841 _ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h.  */
15845 #include <$ac_header>
15846 _ACEOF
15847 if { (ac_try="$ac_cpp conftest.$ac_ext"
15848 case "(($ac_try" in
15849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15850   *) ac_try_echo=$ac_try;;
15851 esac
15852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15853   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15854   ac_status=$?
15855   grep -v '^ *+' conftest.er1 >conftest.err
15856   rm -f conftest.er1
15857   cat conftest.err >&5
15858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859   (exit $ac_status); } >/dev/null; then
15860   if test -s conftest.err; then
15861     ac_cpp_err=$ac_c_preproc_warn_flag
15862     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15863   else
15864     ac_cpp_err=
15865   fi
15866 else
15867   ac_cpp_err=yes
15868 fi
15869 if test -z "$ac_cpp_err"; then
15870   ac_header_preproc=yes
15871 else
15872   echo "$as_me: failed program was:" >&5
15873 sed 's/^/| /' conftest.$ac_ext >&5
15874
15875   ac_header_preproc=no
15876 fi
15877
15878 rm -f conftest.err conftest.$ac_ext
15879 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15880 echo "${ECHO_T}$ac_header_preproc" >&6; }
15881
15882 # So?  What about this header?
15883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15884   yes:no: )
15885     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15887     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15888 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15889     ac_header_preproc=yes
15890     ;;
15891   no:yes:* )
15892     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15894     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15895 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15896     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15897 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15898     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15899 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15900     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15902     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15903 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15904     ( cat <<\_ASBOX
15905 ## ------------------------------ ##
15906 ## Report this to bugs@yourdomain ##
15907 ## ------------------------------ ##
15908 _ASBOX
15909      ) | sed "s/^/$as_me: WARNING:     /" >&2
15910     ;;
15911 esac
15912 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15915   echo $ECHO_N "(cached) $ECHO_C" >&6
15916 else
15917   eval "$as_ac_Header=\$ac_header_preproc"
15918 fi
15919 ac_res=`eval echo '${'$as_ac_Header'}'`
15920                { echo "$as_me:$LINENO: result: $ac_res" >&5
15921 echo "${ECHO_T}$ac_res" >&6; }
15922
15923 fi
15924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15925   cat >>confdefs.h <<_ACEOF
15926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15927 _ACEOF
15928
15929 fi
15930
15931 done
15932
15933
15934 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15935 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15936 cat >conftest.$ac_ext <<_ACEOF
15937 /* confdefs.h.  */
15938 _ACEOF
15939 cat confdefs.h >>conftest.$ac_ext
15940 cat >>conftest.$ac_ext <<_ACEOF
15941 /* end confdefs.h.  */
15942 extern const char *__crashreporter_info__;
15943       int main() {
15944         __crashreporter_info__ = "test";
15945         return 0;
15946       }
15947
15948 _ACEOF
15949 rm -f conftest.$ac_objext conftest$ac_exeext
15950 if { (ac_try="$ac_link"
15951 case "(($ac_try" in
15952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953   *) ac_try_echo=$ac_try;;
15954 esac
15955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15956   (eval "$ac_link") 2>conftest.er1
15957   ac_status=$?
15958   grep -v '^ *+' conftest.er1 >conftest.err
15959   rm -f conftest.er1
15960   cat conftest.err >&5
15961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962   (exit $ac_status); } &&
15963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15964   { (case "(($ac_try" in
15965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15966   *) ac_try_echo=$ac_try;;
15967 esac
15968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15969   (eval "$ac_try") 2>&5
15970   ac_status=$?
15971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972   (exit $ac_status); }; } &&
15973          { ac_try='test -s conftest$ac_exeext'
15974   { (case "(($ac_try" in
15975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15976   *) ac_try_echo=$ac_try;;
15977 esac
15978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15979   (eval "$ac_try") 2>&5
15980   ac_status=$?
15981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982   (exit $ac_status); }; }; then
15983   { echo "$as_me:$LINENO: result: yes" >&5
15984 echo "${ECHO_T}yes" >&6; }
15985
15986 cat >>confdefs.h <<\_ACEOF
15987 #define HAVE_CRASHREPORTER_INFO 1
15988 _ACEOF
15989
15990 else
15991   echo "$as_me: failed program was:" >&5
15992 sed 's/^/| /' conftest.$ac_ext >&5
15993
15994         { echo "$as_me:$LINENO: result: no" >&5
15995 echo "${ECHO_T}no" >&6; }
15996
15997 cat >>confdefs.h <<\_ACEOF
15998 #define HAVE_CRASHREPORTER_INFO 0
15999 _ACEOF
16000
16001 fi
16002
16003 rm -f core conftest.err conftest.$ac_objext \
16004       conftest$ac_exeext conftest.$ac_ext
16005
16006
16007
16008
16009   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16010 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16011 if test "${ac_cv_huge_val_sanity+set}" = set; then
16012   echo $ECHO_N "(cached) $ECHO_C" >&6
16013 else
16014
16015     ac_ext=cpp
16016 ac_cpp='$CXXCPP $CPPFLAGS'
16017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16020
16021     ac_save_CXXFLAGS=$CXXFLAGS
16022     CXXFLAGS="$CXXFLAGS -pedantic"
16023     if test "$cross_compiling" = yes; then
16024   ac_cv_huge_val_sanity=yes
16025 else
16026   cat >conftest.$ac_ext <<_ACEOF
16027 /* confdefs.h.  */
16028 _ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h.  */
16032 #include <math.h>
16033 int
16034 main ()
16035 {
16036 double x = HUGE_VAL; return x != x;
16037   ;
16038   return 0;
16039 }
16040 _ACEOF
16041 rm -f conftest$ac_exeext
16042 if { (ac_try="$ac_link"
16043 case "(($ac_try" in
16044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16045   *) ac_try_echo=$ac_try;;
16046 esac
16047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16048   (eval "$ac_link") 2>&5
16049   ac_status=$?
16050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16052   { (case "(($ac_try" in
16053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16054   *) ac_try_echo=$ac_try;;
16055 esac
16056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16057   (eval "$ac_try") 2>&5
16058   ac_status=$?
16059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060   (exit $ac_status); }; }; then
16061   ac_cv_huge_val_sanity=yes
16062 else
16063   echo "$as_me: program exited with status $ac_status" >&5
16064 echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.$ac_ext >&5
16066
16067 ( exit $ac_status )
16068 ac_cv_huge_val_sanity=no
16069 fi
16070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16071 fi
16072
16073
16074     CXXFLAGS=$ac_save_CXXFLAGS
16075     ac_ext=c
16076 ac_cpp='$CPP $CPPFLAGS'
16077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16080
16081
16082 fi
16083 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16084 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16085   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16086
16087
16088 { echo "$as_me:$LINENO: checking for pid_t" >&5
16089 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16090 if test "${ac_cv_type_pid_t+set}" = set; then
16091   echo $ECHO_N "(cached) $ECHO_C" >&6
16092 else
16093   cat >conftest.$ac_ext <<_ACEOF
16094 /* confdefs.h.  */
16095 _ACEOF
16096 cat confdefs.h >>conftest.$ac_ext
16097 cat >>conftest.$ac_ext <<_ACEOF
16098 /* end confdefs.h.  */
16099 $ac_includes_default
16100 typedef pid_t ac__type_new_;
16101 int
16102 main ()
16103 {
16104 if ((ac__type_new_ *) 0)
16105   return 0;
16106 if (sizeof (ac__type_new_))
16107   return 0;
16108   ;
16109   return 0;
16110 }
16111 _ACEOF
16112 rm -f conftest.$ac_objext
16113 if { (ac_try="$ac_compile"
16114 case "(($ac_try" in
16115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16116   *) ac_try_echo=$ac_try;;
16117 esac
16118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16119   (eval "$ac_compile") 2>conftest.er1
16120   ac_status=$?
16121   grep -v '^ *+' conftest.er1 >conftest.err
16122   rm -f conftest.er1
16123   cat conftest.err >&5
16124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125   (exit $ac_status); } &&
16126          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16127   { (case "(($ac_try" in
16128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16129   *) ac_try_echo=$ac_try;;
16130 esac
16131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16132   (eval "$ac_try") 2>&5
16133   ac_status=$?
16134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135   (exit $ac_status); }; } &&
16136          { ac_try='test -s conftest.$ac_objext'
16137   { (case "(($ac_try" in
16138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16139   *) ac_try_echo=$ac_try;;
16140 esac
16141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16142   (eval "$ac_try") 2>&5
16143   ac_status=$?
16144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145   (exit $ac_status); }; }; then
16146   ac_cv_type_pid_t=yes
16147 else
16148   echo "$as_me: failed program was:" >&5
16149 sed 's/^/| /' conftest.$ac_ext >&5
16150
16151         ac_cv_type_pid_t=no
16152 fi
16153
16154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16155 fi
16156 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16157 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16158 if test $ac_cv_type_pid_t = yes; then
16159   :
16160 else
16161
16162 cat >>confdefs.h <<_ACEOF
16163 #define pid_t int
16164 _ACEOF
16165
16166 fi
16167
16168 { echo "$as_me:$LINENO: checking for size_t" >&5
16169 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16170 if test "${ac_cv_type_size_t+set}" = set; then
16171   echo $ECHO_N "(cached) $ECHO_C" >&6
16172 else
16173   cat >conftest.$ac_ext <<_ACEOF
16174 /* confdefs.h.  */
16175 _ACEOF
16176 cat confdefs.h >>conftest.$ac_ext
16177 cat >>conftest.$ac_ext <<_ACEOF
16178 /* end confdefs.h.  */
16179 $ac_includes_default
16180 typedef size_t ac__type_new_;
16181 int
16182 main ()
16183 {
16184 if ((ac__type_new_ *) 0)
16185   return 0;
16186 if (sizeof (ac__type_new_))
16187   return 0;
16188   ;
16189   return 0;
16190 }
16191 _ACEOF
16192 rm -f conftest.$ac_objext
16193 if { (ac_try="$ac_compile"
16194 case "(($ac_try" in
16195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196   *) ac_try_echo=$ac_try;;
16197 esac
16198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199   (eval "$ac_compile") 2>conftest.er1
16200   ac_status=$?
16201   grep -v '^ *+' conftest.er1 >conftest.err
16202   rm -f conftest.er1
16203   cat conftest.err >&5
16204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205   (exit $ac_status); } &&
16206          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16207   { (case "(($ac_try" in
16208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16209   *) ac_try_echo=$ac_try;;
16210 esac
16211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16212   (eval "$ac_try") 2>&5
16213   ac_status=$?
16214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215   (exit $ac_status); }; } &&
16216          { ac_try='test -s conftest.$ac_objext'
16217   { (case "(($ac_try" in
16218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219   *) ac_try_echo=$ac_try;;
16220 esac
16221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222   (eval "$ac_try") 2>&5
16223   ac_status=$?
16224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225   (exit $ac_status); }; }; then
16226   ac_cv_type_size_t=yes
16227 else
16228   echo "$as_me: failed program was:" >&5
16229 sed 's/^/| /' conftest.$ac_ext >&5
16230
16231         ac_cv_type_size_t=no
16232 fi
16233
16234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16235 fi
16236 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16237 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16238 if test $ac_cv_type_size_t = yes; then
16239   :
16240 else
16241
16242 cat >>confdefs.h <<_ACEOF
16243 #define size_t unsigned int
16244 _ACEOF
16245
16246 fi
16247
16248
16249 cat >>confdefs.h <<_ACEOF
16250 #define RETSIGTYPE void
16251 _ACEOF
16252
16253 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16254 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16255 if test "${ac_cv_struct_tm+set}" = set; then
16256   echo $ECHO_N "(cached) $ECHO_C" >&6
16257 else
16258   cat >conftest.$ac_ext <<_ACEOF
16259 /* confdefs.h.  */
16260 _ACEOF
16261 cat confdefs.h >>conftest.$ac_ext
16262 cat >>conftest.$ac_ext <<_ACEOF
16263 /* end confdefs.h.  */
16264 #include <sys/types.h>
16265 #include <time.h>
16266
16267 int
16268 main ()
16269 {
16270 struct tm *tp; tp->tm_sec;
16271   ;
16272   return 0;
16273 }
16274 _ACEOF
16275 rm -f conftest.$ac_objext
16276 if { (ac_try="$ac_compile"
16277 case "(($ac_try" in
16278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16279   *) ac_try_echo=$ac_try;;
16280 esac
16281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16282   (eval "$ac_compile") 2>conftest.er1
16283   ac_status=$?
16284   grep -v '^ *+' conftest.er1 >conftest.err
16285   rm -f conftest.er1
16286   cat conftest.err >&5
16287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288   (exit $ac_status); } &&
16289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16290   { (case "(($ac_try" in
16291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16292   *) ac_try_echo=$ac_try;;
16293 esac
16294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16295   (eval "$ac_try") 2>&5
16296   ac_status=$?
16297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298   (exit $ac_status); }; } &&
16299          { ac_try='test -s conftest.$ac_objext'
16300   { (case "(($ac_try" in
16301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16302   *) ac_try_echo=$ac_try;;
16303 esac
16304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16305   (eval "$ac_try") 2>&5
16306   ac_status=$?
16307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308   (exit $ac_status); }; }; then
16309   ac_cv_struct_tm=time.h
16310 else
16311   echo "$as_me: failed program was:" >&5
16312 sed 's/^/| /' conftest.$ac_ext >&5
16313
16314         ac_cv_struct_tm=sys/time.h
16315 fi
16316
16317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16318 fi
16319 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16320 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16321 if test $ac_cv_struct_tm = sys/time.h; then
16322
16323 cat >>confdefs.h <<\_ACEOF
16324 #define TM_IN_SYS_TIME 1
16325 _ACEOF
16326
16327 fi
16328
16329 { echo "$as_me:$LINENO: checking for int64_t" >&5
16330 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16331 if test "${ac_cv_type_int64_t+set}" = set; then
16332   echo $ECHO_N "(cached) $ECHO_C" >&6
16333 else
16334   cat >conftest.$ac_ext <<_ACEOF
16335 /* confdefs.h.  */
16336 _ACEOF
16337 cat confdefs.h >>conftest.$ac_ext
16338 cat >>conftest.$ac_ext <<_ACEOF
16339 /* end confdefs.h.  */
16340 $ac_includes_default
16341 typedef int64_t ac__type_new_;
16342 int
16343 main ()
16344 {
16345 if ((ac__type_new_ *) 0)
16346   return 0;
16347 if (sizeof (ac__type_new_))
16348   return 0;
16349   ;
16350   return 0;
16351 }
16352 _ACEOF
16353 rm -f conftest.$ac_objext
16354 if { (ac_try="$ac_compile"
16355 case "(($ac_try" in
16356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16357   *) ac_try_echo=$ac_try;;
16358 esac
16359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16360   (eval "$ac_compile") 2>conftest.er1
16361   ac_status=$?
16362   grep -v '^ *+' conftest.er1 >conftest.err
16363   rm -f conftest.er1
16364   cat conftest.err >&5
16365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366   (exit $ac_status); } &&
16367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16368   { (case "(($ac_try" in
16369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16370   *) ac_try_echo=$ac_try;;
16371 esac
16372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16373   (eval "$ac_try") 2>&5
16374   ac_status=$?
16375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376   (exit $ac_status); }; } &&
16377          { ac_try='test -s conftest.$ac_objext'
16378   { (case "(($ac_try" in
16379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16380   *) ac_try_echo=$ac_try;;
16381 esac
16382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16383   (eval "$ac_try") 2>&5
16384   ac_status=$?
16385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386   (exit $ac_status); }; }; then
16387   ac_cv_type_int64_t=yes
16388 else
16389   echo "$as_me: failed program was:" >&5
16390 sed 's/^/| /' conftest.$ac_ext >&5
16391
16392         ac_cv_type_int64_t=no
16393 fi
16394
16395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16396 fi
16397 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16398 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16399 if test $ac_cv_type_int64_t = yes; then
16400
16401 cat >>confdefs.h <<_ACEOF
16402 #define HAVE_INT64_T 1
16403 _ACEOF
16404
16405
16406 else
16407   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16408 echo "$as_me: error: Type int64_t required but not found" >&2;}
16409    { (exit 1); exit 1; }; }
16410 fi
16411
16412 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16413 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16414 if test "${ac_cv_type_uint64_t+set}" = set; then
16415   echo $ECHO_N "(cached) $ECHO_C" >&6
16416 else
16417   cat >conftest.$ac_ext <<_ACEOF
16418 /* confdefs.h.  */
16419 _ACEOF
16420 cat confdefs.h >>conftest.$ac_ext
16421 cat >>conftest.$ac_ext <<_ACEOF
16422 /* end confdefs.h.  */
16423 $ac_includes_default
16424 typedef uint64_t ac__type_new_;
16425 int
16426 main ()
16427 {
16428 if ((ac__type_new_ *) 0)
16429   return 0;
16430 if (sizeof (ac__type_new_))
16431   return 0;
16432   ;
16433   return 0;
16434 }
16435 _ACEOF
16436 rm -f conftest.$ac_objext
16437 if { (ac_try="$ac_compile"
16438 case "(($ac_try" in
16439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440   *) ac_try_echo=$ac_try;;
16441 esac
16442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16443   (eval "$ac_compile") 2>conftest.er1
16444   ac_status=$?
16445   grep -v '^ *+' conftest.er1 >conftest.err
16446   rm -f conftest.er1
16447   cat conftest.err >&5
16448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449   (exit $ac_status); } &&
16450          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16451   { (case "(($ac_try" in
16452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16453   *) ac_try_echo=$ac_try;;
16454 esac
16455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16456   (eval "$ac_try") 2>&5
16457   ac_status=$?
16458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459   (exit $ac_status); }; } &&
16460          { ac_try='test -s conftest.$ac_objext'
16461   { (case "(($ac_try" in
16462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16463   *) ac_try_echo=$ac_try;;
16464 esac
16465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16466   (eval "$ac_try") 2>&5
16467   ac_status=$?
16468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469   (exit $ac_status); }; }; then
16470   ac_cv_type_uint64_t=yes
16471 else
16472   echo "$as_me: failed program was:" >&5
16473 sed 's/^/| /' conftest.$ac_ext >&5
16474
16475         ac_cv_type_uint64_t=no
16476 fi
16477
16478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16479 fi
16480 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16481 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16482 if test $ac_cv_type_uint64_t = yes; then
16483
16484 cat >>confdefs.h <<_ACEOF
16485 #define HAVE_UINT64_T 1
16486 _ACEOF
16487
16488
16489 else
16490   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16491 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16492 if test "${ac_cv_type_u_int64_t+set}" = set; then
16493   echo $ECHO_N "(cached) $ECHO_C" >&6
16494 else
16495   cat >conftest.$ac_ext <<_ACEOF
16496 /* confdefs.h.  */
16497 _ACEOF
16498 cat confdefs.h >>conftest.$ac_ext
16499 cat >>conftest.$ac_ext <<_ACEOF
16500 /* end confdefs.h.  */
16501 $ac_includes_default
16502 typedef u_int64_t ac__type_new_;
16503 int
16504 main ()
16505 {
16506 if ((ac__type_new_ *) 0)
16507   return 0;
16508 if (sizeof (ac__type_new_))
16509   return 0;
16510   ;
16511   return 0;
16512 }
16513 _ACEOF
16514 rm -f conftest.$ac_objext
16515 if { (ac_try="$ac_compile"
16516 case "(($ac_try" in
16517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518   *) ac_try_echo=$ac_try;;
16519 esac
16520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521   (eval "$ac_compile") 2>conftest.er1
16522   ac_status=$?
16523   grep -v '^ *+' conftest.er1 >conftest.err
16524   rm -f conftest.er1
16525   cat conftest.err >&5
16526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527   (exit $ac_status); } &&
16528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16529   { (case "(($ac_try" in
16530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531   *) ac_try_echo=$ac_try;;
16532 esac
16533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534   (eval "$ac_try") 2>&5
16535   ac_status=$?
16536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537   (exit $ac_status); }; } &&
16538          { ac_try='test -s conftest.$ac_objext'
16539   { (case "(($ac_try" in
16540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541   *) ac_try_echo=$ac_try;;
16542 esac
16543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16544   (eval "$ac_try") 2>&5
16545   ac_status=$?
16546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547   (exit $ac_status); }; }; then
16548   ac_cv_type_u_int64_t=yes
16549 else
16550   echo "$as_me: failed program was:" >&5
16551 sed 's/^/| /' conftest.$ac_ext >&5
16552
16553         ac_cv_type_u_int64_t=no
16554 fi
16555
16556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16557 fi
16558 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16559 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16560 if test $ac_cv_type_u_int64_t = yes; then
16561
16562 cat >>confdefs.h <<_ACEOF
16563 #define HAVE_U_INT64_T 1
16564 _ACEOF
16565
16566
16567 else
16568   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16569 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16570    { (exit 1); exit 1; }; }
16571 fi
16572
16573 fi
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16585 do
16586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16587 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16590   echo $ECHO_N "(cached) $ECHO_C" >&6
16591 else
16592   cat >conftest.$ac_ext <<_ACEOF
16593 /* confdefs.h.  */
16594 _ACEOF
16595 cat confdefs.h >>conftest.$ac_ext
16596 cat >>conftest.$ac_ext <<_ACEOF
16597 /* end confdefs.h.  */
16598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16600 #define $ac_func innocuous_$ac_func
16601
16602 /* System header to define __stub macros and hopefully few prototypes,
16603     which can conflict with char $ac_func (); below.
16604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16605     <limits.h> exists even on freestanding compilers.  */
16606
16607 #ifdef __STDC__
16608 # include <limits.h>
16609 #else
16610 # include <assert.h>
16611 #endif
16612
16613 #undef $ac_func
16614
16615 /* Override any GCC internal prototype to avoid an error.
16616    Use char because int might match the return type of a GCC
16617    builtin and then its argument prototype would still apply.  */
16618 #ifdef __cplusplus
16619 extern "C"
16620 #endif
16621 char $ac_func ();
16622 /* The GNU C library defines this for functions which it implements
16623     to always fail with ENOSYS.  Some functions are actually named
16624     something starting with __ and the normal name is an alias.  */
16625 #if defined __stub_$ac_func || defined __stub___$ac_func
16626 choke me
16627 #endif
16628
16629 int
16630 main ()
16631 {
16632 return $ac_func ();
16633   ;
16634   return 0;
16635 }
16636 _ACEOF
16637 rm -f conftest.$ac_objext conftest$ac_exeext
16638 if { (ac_try="$ac_link"
16639 case "(($ac_try" in
16640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641   *) ac_try_echo=$ac_try;;
16642 esac
16643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16644   (eval "$ac_link") 2>conftest.er1
16645   ac_status=$?
16646   grep -v '^ *+' conftest.er1 >conftest.err
16647   rm -f conftest.er1
16648   cat conftest.err >&5
16649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650   (exit $ac_status); } &&
16651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16652   { (case "(($ac_try" in
16653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654   *) ac_try_echo=$ac_try;;
16655 esac
16656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16657   (eval "$ac_try") 2>&5
16658   ac_status=$?
16659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660   (exit $ac_status); }; } &&
16661          { ac_try='test -s conftest$ac_exeext'
16662   { (case "(($ac_try" in
16663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16664   *) ac_try_echo=$ac_try;;
16665 esac
16666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16667   (eval "$ac_try") 2>&5
16668   ac_status=$?
16669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670   (exit $ac_status); }; }; then
16671   eval "$as_ac_var=yes"
16672 else
16673   echo "$as_me: failed program was:" >&5
16674 sed 's/^/| /' conftest.$ac_ext >&5
16675
16676         eval "$as_ac_var=no"
16677 fi
16678
16679 rm -f core conftest.err conftest.$ac_objext \
16680       conftest$ac_exeext conftest.$ac_ext
16681 fi
16682 ac_res=`eval echo '${'$as_ac_var'}'`
16683                { echo "$as_me:$LINENO: result: $ac_res" >&5
16684 echo "${ECHO_T}$ac_res" >&6; }
16685 if test `eval echo '${'$as_ac_var'}'` = yes; then
16686   cat >>confdefs.h <<_ACEOF
16687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16688 _ACEOF
16689
16690 fi
16691 done
16692
16693
16694
16695
16696
16697 for ac_func in powf fmodf strtof round
16698 do
16699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16703   echo $ECHO_N "(cached) $ECHO_C" >&6
16704 else
16705   cat >conftest.$ac_ext <<_ACEOF
16706 /* confdefs.h.  */
16707 _ACEOF
16708 cat confdefs.h >>conftest.$ac_ext
16709 cat >>conftest.$ac_ext <<_ACEOF
16710 /* end confdefs.h.  */
16711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16713 #define $ac_func innocuous_$ac_func
16714
16715 /* System header to define __stub macros and hopefully few prototypes,
16716     which can conflict with char $ac_func (); below.
16717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16718     <limits.h> exists even on freestanding compilers.  */
16719
16720 #ifdef __STDC__
16721 # include <limits.h>
16722 #else
16723 # include <assert.h>
16724 #endif
16725
16726 #undef $ac_func
16727
16728 /* Override any GCC internal prototype to avoid an error.
16729    Use char because int might match the return type of a GCC
16730    builtin and then its argument prototype would still apply.  */
16731 #ifdef __cplusplus
16732 extern "C"
16733 #endif
16734 char $ac_func ();
16735 /* The GNU C library defines this for functions which it implements
16736     to always fail with ENOSYS.  Some functions are actually named
16737     something starting with __ and the normal name is an alias.  */
16738 #if defined __stub_$ac_func || defined __stub___$ac_func
16739 choke me
16740 #endif
16741
16742 int
16743 main ()
16744 {
16745 return $ac_func ();
16746   ;
16747   return 0;
16748 }
16749 _ACEOF
16750 rm -f conftest.$ac_objext conftest$ac_exeext
16751 if { (ac_try="$ac_link"
16752 case "(($ac_try" in
16753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754   *) ac_try_echo=$ac_try;;
16755 esac
16756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16757   (eval "$ac_link") 2>conftest.er1
16758   ac_status=$?
16759   grep -v '^ *+' conftest.er1 >conftest.err
16760   rm -f conftest.er1
16761   cat conftest.err >&5
16762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763   (exit $ac_status); } &&
16764          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16765   { (case "(($ac_try" in
16766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767   *) ac_try_echo=$ac_try;;
16768 esac
16769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770   (eval "$ac_try") 2>&5
16771   ac_status=$?
16772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773   (exit $ac_status); }; } &&
16774          { ac_try='test -s conftest$ac_exeext'
16775   { (case "(($ac_try" in
16776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16777   *) ac_try_echo=$ac_try;;
16778 esac
16779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16780   (eval "$ac_try") 2>&5
16781   ac_status=$?
16782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783   (exit $ac_status); }; }; then
16784   eval "$as_ac_var=yes"
16785 else
16786   echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16788
16789         eval "$as_ac_var=no"
16790 fi
16791
16792 rm -f core conftest.err conftest.$ac_objext \
16793       conftest$ac_exeext conftest.$ac_ext
16794 fi
16795 ac_res=`eval echo '${'$as_ac_var'}'`
16796                { echo "$as_me:$LINENO: result: $ac_res" >&5
16797 echo "${ECHO_T}$ac_res" >&6; }
16798 if test `eval echo '${'$as_ac_var'}'` = yes; then
16799   cat >>confdefs.h <<_ACEOF
16800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16801 _ACEOF
16802
16803 fi
16804 done
16805
16806
16807
16808
16809
16810
16811 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16812 do
16813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16814 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16817   echo $ECHO_N "(cached) $ECHO_C" >&6
16818 else
16819   cat >conftest.$ac_ext <<_ACEOF
16820 /* confdefs.h.  */
16821 _ACEOF
16822 cat confdefs.h >>conftest.$ac_ext
16823 cat >>conftest.$ac_ext <<_ACEOF
16824 /* end confdefs.h.  */
16825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16826    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16827 #define $ac_func innocuous_$ac_func
16828
16829 /* System header to define __stub macros and hopefully few prototypes,
16830     which can conflict with char $ac_func (); below.
16831     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16832     <limits.h> exists even on freestanding compilers.  */
16833
16834 #ifdef __STDC__
16835 # include <limits.h>
16836 #else
16837 # include <assert.h>
16838 #endif
16839
16840 #undef $ac_func
16841
16842 /* Override any GCC internal prototype to avoid an error.
16843    Use char because int might match the return type of a GCC
16844    builtin and then its argument prototype would still apply.  */
16845 #ifdef __cplusplus
16846 extern "C"
16847 #endif
16848 char $ac_func ();
16849 /* The GNU C library defines this for functions which it implements
16850     to always fail with ENOSYS.  Some functions are actually named
16851     something starting with __ and the normal name is an alias.  */
16852 #if defined __stub_$ac_func || defined __stub___$ac_func
16853 choke me
16854 #endif
16855
16856 int
16857 main ()
16858 {
16859 return $ac_func ();
16860   ;
16861   return 0;
16862 }
16863 _ACEOF
16864 rm -f conftest.$ac_objext conftest$ac_exeext
16865 if { (ac_try="$ac_link"
16866 case "(($ac_try" in
16867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868   *) ac_try_echo=$ac_try;;
16869 esac
16870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871   (eval "$ac_link") 2>conftest.er1
16872   ac_status=$?
16873   grep -v '^ *+' conftest.er1 >conftest.err
16874   rm -f conftest.er1
16875   cat conftest.err >&5
16876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877   (exit $ac_status); } &&
16878          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16879   { (case "(($ac_try" in
16880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881   *) ac_try_echo=$ac_try;;
16882 esac
16883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16884   (eval "$ac_try") 2>&5
16885   ac_status=$?
16886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887   (exit $ac_status); }; } &&
16888          { ac_try='test -s conftest$ac_exeext'
16889   { (case "(($ac_try" in
16890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891   *) ac_try_echo=$ac_try;;
16892 esac
16893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16894   (eval "$ac_try") 2>&5
16895   ac_status=$?
16896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897   (exit $ac_status); }; }; then
16898   eval "$as_ac_var=yes"
16899 else
16900   echo "$as_me: failed program was:" >&5
16901 sed 's/^/| /' conftest.$ac_ext >&5
16902
16903         eval "$as_ac_var=no"
16904 fi
16905
16906 rm -f core conftest.err conftest.$ac_objext \
16907       conftest$ac_exeext conftest.$ac_ext
16908 fi
16909 ac_res=`eval echo '${'$as_ac_var'}'`
16910                { echo "$as_me:$LINENO: result: $ac_res" >&5
16911 echo "${ECHO_T}$ac_res" >&6; }
16912 if test `eval echo '${'$as_ac_var'}'` = yes; then
16913   cat >>confdefs.h <<_ACEOF
16914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16915 _ACEOF
16916
16917 fi
16918 done
16919
16920
16921
16922
16923 for ac_func in isatty mkdtemp mkstemp
16924 do
16925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16926 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16928 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16929   echo $ECHO_N "(cached) $ECHO_C" >&6
16930 else
16931   cat >conftest.$ac_ext <<_ACEOF
16932 /* confdefs.h.  */
16933 _ACEOF
16934 cat confdefs.h >>conftest.$ac_ext
16935 cat >>conftest.$ac_ext <<_ACEOF
16936 /* end confdefs.h.  */
16937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16938    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16939 #define $ac_func innocuous_$ac_func
16940
16941 /* System header to define __stub macros and hopefully few prototypes,
16942     which can conflict with char $ac_func (); below.
16943     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16944     <limits.h> exists even on freestanding compilers.  */
16945
16946 #ifdef __STDC__
16947 # include <limits.h>
16948 #else
16949 # include <assert.h>
16950 #endif
16951
16952 #undef $ac_func
16953
16954 /* Override any GCC internal prototype to avoid an error.
16955    Use char because int might match the return type of a GCC
16956    builtin and then its argument prototype would still apply.  */
16957 #ifdef __cplusplus
16958 extern "C"
16959 #endif
16960 char $ac_func ();
16961 /* The GNU C library defines this for functions which it implements
16962     to always fail with ENOSYS.  Some functions are actually named
16963     something starting with __ and the normal name is an alias.  */
16964 #if defined __stub_$ac_func || defined __stub___$ac_func
16965 choke me
16966 #endif
16967
16968 int
16969 main ()
16970 {
16971 return $ac_func ();
16972   ;
16973   return 0;
16974 }
16975 _ACEOF
16976 rm -f conftest.$ac_objext conftest$ac_exeext
16977 if { (ac_try="$ac_link"
16978 case "(($ac_try" in
16979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980   *) ac_try_echo=$ac_try;;
16981 esac
16982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16983   (eval "$ac_link") 2>conftest.er1
16984   ac_status=$?
16985   grep -v '^ *+' conftest.er1 >conftest.err
16986   rm -f conftest.er1
16987   cat conftest.err >&5
16988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989   (exit $ac_status); } &&
16990          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16991   { (case "(($ac_try" in
16992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993   *) ac_try_echo=$ac_try;;
16994 esac
16995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16996   (eval "$ac_try") 2>&5
16997   ac_status=$?
16998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999   (exit $ac_status); }; } &&
17000          { ac_try='test -s conftest$ac_exeext'
17001   { (case "(($ac_try" in
17002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003   *) ac_try_echo=$ac_try;;
17004 esac
17005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006   (eval "$ac_try") 2>&5
17007   ac_status=$?
17008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009   (exit $ac_status); }; }; then
17010   eval "$as_ac_var=yes"
17011 else
17012   echo "$as_me: failed program was:" >&5
17013 sed 's/^/| /' conftest.$ac_ext >&5
17014
17015         eval "$as_ac_var=no"
17016 fi
17017
17018 rm -f core conftest.err conftest.$ac_objext \
17019       conftest$ac_exeext conftest.$ac_ext
17020 fi
17021 ac_res=`eval echo '${'$as_ac_var'}'`
17022                { echo "$as_me:$LINENO: result: $ac_res" >&5
17023 echo "${ECHO_T}$ac_res" >&6; }
17024 if test `eval echo '${'$as_ac_var'}'` = yes; then
17025   cat >>confdefs.h <<_ACEOF
17026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17027 _ACEOF
17028
17029 fi
17030 done
17031
17032
17033
17034
17035
17036
17037
17038 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17039 do
17040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17044   echo $ECHO_N "(cached) $ECHO_C" >&6
17045 else
17046   cat >conftest.$ac_ext <<_ACEOF
17047 /* confdefs.h.  */
17048 _ACEOF
17049 cat confdefs.h >>conftest.$ac_ext
17050 cat >>conftest.$ac_ext <<_ACEOF
17051 /* end confdefs.h.  */
17052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17054 #define $ac_func innocuous_$ac_func
17055
17056 /* System header to define __stub macros and hopefully few prototypes,
17057     which can conflict with char $ac_func (); below.
17058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17059     <limits.h> exists even on freestanding compilers.  */
17060
17061 #ifdef __STDC__
17062 # include <limits.h>
17063 #else
17064 # include <assert.h>
17065 #endif
17066
17067 #undef $ac_func
17068
17069 /* Override any GCC internal prototype to avoid an error.
17070    Use char because int might match the return type of a GCC
17071    builtin and then its argument prototype would still apply.  */
17072 #ifdef __cplusplus
17073 extern "C"
17074 #endif
17075 char $ac_func ();
17076 /* The GNU C library defines this for functions which it implements
17077     to always fail with ENOSYS.  Some functions are actually named
17078     something starting with __ and the normal name is an alias.  */
17079 #if defined __stub_$ac_func || defined __stub___$ac_func
17080 choke me
17081 #endif
17082
17083 int
17084 main ()
17085 {
17086 return $ac_func ();
17087   ;
17088   return 0;
17089 }
17090 _ACEOF
17091 rm -f conftest.$ac_objext conftest$ac_exeext
17092 if { (ac_try="$ac_link"
17093 case "(($ac_try" in
17094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095   *) ac_try_echo=$ac_try;;
17096 esac
17097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098   (eval "$ac_link") 2>conftest.er1
17099   ac_status=$?
17100   grep -v '^ *+' conftest.er1 >conftest.err
17101   rm -f conftest.er1
17102   cat conftest.err >&5
17103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104   (exit $ac_status); } &&
17105          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17106   { (case "(($ac_try" in
17107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108   *) ac_try_echo=$ac_try;;
17109 esac
17110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17111   (eval "$ac_try") 2>&5
17112   ac_status=$?
17113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114   (exit $ac_status); }; } &&
17115          { ac_try='test -s conftest$ac_exeext'
17116   { (case "(($ac_try" in
17117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17118   *) ac_try_echo=$ac_try;;
17119 esac
17120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17121   (eval "$ac_try") 2>&5
17122   ac_status=$?
17123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124   (exit $ac_status); }; }; then
17125   eval "$as_ac_var=yes"
17126 else
17127   echo "$as_me: failed program was:" >&5
17128 sed 's/^/| /' conftest.$ac_ext >&5
17129
17130         eval "$as_ac_var=no"
17131 fi
17132
17133 rm -f core conftest.err conftest.$ac_objext \
17134       conftest$ac_exeext conftest.$ac_ext
17135 fi
17136 ac_res=`eval echo '${'$as_ac_var'}'`
17137                { echo "$as_me:$LINENO: result: $ac_res" >&5
17138 echo "${ECHO_T}$ac_res" >&6; }
17139 if test `eval echo '${'$as_ac_var'}'` = yes; then
17140   cat >>confdefs.h <<_ACEOF
17141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17142 _ACEOF
17143
17144 fi
17145 done
17146
17147
17148
17149
17150 for ac_func in strerror strerror_r setenv
17151 do
17152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17153 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17155 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17156   echo $ECHO_N "(cached) $ECHO_C" >&6
17157 else
17158   cat >conftest.$ac_ext <<_ACEOF
17159 /* confdefs.h.  */
17160 _ACEOF
17161 cat confdefs.h >>conftest.$ac_ext
17162 cat >>conftest.$ac_ext <<_ACEOF
17163 /* end confdefs.h.  */
17164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17165    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17166 #define $ac_func innocuous_$ac_func
17167
17168 /* System header to define __stub macros and hopefully few prototypes,
17169     which can conflict with char $ac_func (); below.
17170     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17171     <limits.h> exists even on freestanding compilers.  */
17172
17173 #ifdef __STDC__
17174 # include <limits.h>
17175 #else
17176 # include <assert.h>
17177 #endif
17178
17179 #undef $ac_func
17180
17181 /* Override any GCC internal prototype to avoid an error.
17182    Use char because int might match the return type of a GCC
17183    builtin and then its argument prototype would still apply.  */
17184 #ifdef __cplusplus
17185 extern "C"
17186 #endif
17187 char $ac_func ();
17188 /* The GNU C library defines this for functions which it implements
17189     to always fail with ENOSYS.  Some functions are actually named
17190     something starting with __ and the normal name is an alias.  */
17191 #if defined __stub_$ac_func || defined __stub___$ac_func
17192 choke me
17193 #endif
17194
17195 int
17196 main ()
17197 {
17198 return $ac_func ();
17199   ;
17200   return 0;
17201 }
17202 _ACEOF
17203 rm -f conftest.$ac_objext conftest$ac_exeext
17204 if { (ac_try="$ac_link"
17205 case "(($ac_try" in
17206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207   *) ac_try_echo=$ac_try;;
17208 esac
17209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210   (eval "$ac_link") 2>conftest.er1
17211   ac_status=$?
17212   grep -v '^ *+' conftest.er1 >conftest.err
17213   rm -f conftest.er1
17214   cat conftest.err >&5
17215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216   (exit $ac_status); } &&
17217          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17218   { (case "(($ac_try" in
17219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220   *) ac_try_echo=$ac_try;;
17221 esac
17222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223   (eval "$ac_try") 2>&5
17224   ac_status=$?
17225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226   (exit $ac_status); }; } &&
17227          { ac_try='test -s conftest$ac_exeext'
17228   { (case "(($ac_try" in
17229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230   *) ac_try_echo=$ac_try;;
17231 esac
17232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233   (eval "$ac_try") 2>&5
17234   ac_status=$?
17235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236   (exit $ac_status); }; }; then
17237   eval "$as_ac_var=yes"
17238 else
17239   echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17241
17242         eval "$as_ac_var=no"
17243 fi
17244
17245 rm -f core conftest.err conftest.$ac_objext \
17246       conftest$ac_exeext conftest.$ac_ext
17247 fi
17248 ac_res=`eval echo '${'$as_ac_var'}'`
17249                { echo "$as_me:$LINENO: result: $ac_res" >&5
17250 echo "${ECHO_T}$ac_res" >&6; }
17251 if test `eval echo '${'$as_ac_var'}'` = yes; then
17252   cat >>confdefs.h <<_ACEOF
17253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17254 _ACEOF
17255
17256 fi
17257 done
17258
17259
17260
17261
17262
17263 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17264 do
17265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17266 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17268 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17269   echo $ECHO_N "(cached) $ECHO_C" >&6
17270 else
17271   cat >conftest.$ac_ext <<_ACEOF
17272 /* confdefs.h.  */
17273 _ACEOF
17274 cat confdefs.h >>conftest.$ac_ext
17275 cat >>conftest.$ac_ext <<_ACEOF
17276 /* end confdefs.h.  */
17277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17278    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17279 #define $ac_func innocuous_$ac_func
17280
17281 /* System header to define __stub macros and hopefully few prototypes,
17282     which can conflict with char $ac_func (); below.
17283     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17284     <limits.h> exists even on freestanding compilers.  */
17285
17286 #ifdef __STDC__
17287 # include <limits.h>
17288 #else
17289 # include <assert.h>
17290 #endif
17291
17292 #undef $ac_func
17293
17294 /* Override any GCC internal prototype to avoid an error.
17295    Use char because int might match the return type of a GCC
17296    builtin and then its argument prototype would still apply.  */
17297 #ifdef __cplusplus
17298 extern "C"
17299 #endif
17300 char $ac_func ();
17301 /* The GNU C library defines this for functions which it implements
17302     to always fail with ENOSYS.  Some functions are actually named
17303     something starting with __ and the normal name is an alias.  */
17304 #if defined __stub_$ac_func || defined __stub___$ac_func
17305 choke me
17306 #endif
17307
17308 int
17309 main ()
17310 {
17311 return $ac_func ();
17312   ;
17313   return 0;
17314 }
17315 _ACEOF
17316 rm -f conftest.$ac_objext conftest$ac_exeext
17317 if { (ac_try="$ac_link"
17318 case "(($ac_try" in
17319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320   *) ac_try_echo=$ac_try;;
17321 esac
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323   (eval "$ac_link") 2>conftest.er1
17324   ac_status=$?
17325   grep -v '^ *+' conftest.er1 >conftest.err
17326   rm -f conftest.er1
17327   cat conftest.err >&5
17328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329   (exit $ac_status); } &&
17330          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17331   { (case "(($ac_try" in
17332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333   *) ac_try_echo=$ac_try;;
17334 esac
17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336   (eval "$ac_try") 2>&5
17337   ac_status=$?
17338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339   (exit $ac_status); }; } &&
17340          { ac_try='test -s conftest$ac_exeext'
17341   { (case "(($ac_try" in
17342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343   *) ac_try_echo=$ac_try;;
17344 esac
17345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17346   (eval "$ac_try") 2>&5
17347   ac_status=$?
17348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349   (exit $ac_status); }; }; then
17350   eval "$as_ac_var=yes"
17351 else
17352   echo "$as_me: failed program was:" >&5
17353 sed 's/^/| /' conftest.$ac_ext >&5
17354
17355         eval "$as_ac_var=no"
17356 fi
17357
17358 rm -f core conftest.err conftest.$ac_objext \
17359       conftest$ac_exeext conftest.$ac_ext
17360 fi
17361 ac_res=`eval echo '${'$as_ac_var'}'`
17362                { echo "$as_me:$LINENO: result: $ac_res" >&5
17363 echo "${ECHO_T}$ac_res" >&6; }
17364 if test `eval echo '${'$as_ac_var'}'` = yes; then
17365   cat >>confdefs.h <<_ACEOF
17366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17367 _ACEOF
17368
17369 fi
17370 done
17371
17372
17373
17374
17375
17376
17377 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17378 do
17379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17380 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17382 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17383   echo $ECHO_N "(cached) $ECHO_C" >&6
17384 else
17385   cat >conftest.$ac_ext <<_ACEOF
17386 /* confdefs.h.  */
17387 _ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h.  */
17391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17392    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17393 #define $ac_func innocuous_$ac_func
17394
17395 /* System header to define __stub macros and hopefully few prototypes,
17396     which can conflict with char $ac_func (); below.
17397     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17398     <limits.h> exists even on freestanding compilers.  */
17399
17400 #ifdef __STDC__
17401 # include <limits.h>
17402 #else
17403 # include <assert.h>
17404 #endif
17405
17406 #undef $ac_func
17407
17408 /* Override any GCC internal prototype to avoid an error.
17409    Use char because int might match the return type of a GCC
17410    builtin and then its argument prototype would still apply.  */
17411 #ifdef __cplusplus
17412 extern "C"
17413 #endif
17414 char $ac_func ();
17415 /* The GNU C library defines this for functions which it implements
17416     to always fail with ENOSYS.  Some functions are actually named
17417     something starting with __ and the normal name is an alias.  */
17418 #if defined __stub_$ac_func || defined __stub___$ac_func
17419 choke me
17420 #endif
17421
17422 int
17423 main ()
17424 {
17425 return $ac_func ();
17426   ;
17427   return 0;
17428 }
17429 _ACEOF
17430 rm -f conftest.$ac_objext conftest$ac_exeext
17431 if { (ac_try="$ac_link"
17432 case "(($ac_try" in
17433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17434   *) ac_try_echo=$ac_try;;
17435 esac
17436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17437   (eval "$ac_link") 2>conftest.er1
17438   ac_status=$?
17439   grep -v '^ *+' conftest.er1 >conftest.err
17440   rm -f conftest.er1
17441   cat conftest.err >&5
17442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443   (exit $ac_status); } &&
17444          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17445   { (case "(($ac_try" in
17446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447   *) ac_try_echo=$ac_try;;
17448 esac
17449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17450   (eval "$ac_try") 2>&5
17451   ac_status=$?
17452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453   (exit $ac_status); }; } &&
17454          { ac_try='test -s conftest$ac_exeext'
17455   { (case "(($ac_try" in
17456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17457   *) ac_try_echo=$ac_try;;
17458 esac
17459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17460   (eval "$ac_try") 2>&5
17461   ac_status=$?
17462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463   (exit $ac_status); }; }; then
17464   eval "$as_ac_var=yes"
17465 else
17466   echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17468
17469         eval "$as_ac_var=no"
17470 fi
17471
17472 rm -f core conftest.err conftest.$ac_objext \
17473       conftest$ac_exeext conftest.$ac_ext
17474 fi
17475 ac_res=`eval echo '${'$as_ac_var'}'`
17476                { echo "$as_me:$LINENO: result: $ac_res" >&5
17477 echo "${ECHO_T}$ac_res" >&6; }
17478 if test `eval echo '${'$as_ac_var'}'` = yes; then
17479   cat >>confdefs.h <<_ACEOF
17480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17481 _ACEOF
17482
17483 fi
17484 done
17485
17486 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17487 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17488 if test "${llvm_cv_c_printf_a+set}" = set; then
17489   echo $ECHO_N "(cached) $ECHO_C" >&6
17490 else
17491   ac_ext=c
17492 ac_cpp='$CPP $CPPFLAGS'
17493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17496
17497  if test "$cross_compiling" = yes; then
17498   llvmac_cv_c_printf_a=no
17499 else
17500   cat >conftest.$ac_ext <<_ACEOF
17501
17502   /* confdefs.h.  */
17503 _ACEOF
17504 cat confdefs.h >>conftest.$ac_ext
17505 cat >>conftest.$ac_ext <<_ACEOF
17506 /* end confdefs.h.  */
17507
17508 #include <stdio.h>
17509 #include <stdlib.h>
17510
17511 int
17512 main ()
17513 {
17514
17515 volatile double A, B;
17516 char Buffer[100];
17517 A = 1;
17518 A /= 10.0;
17519 sprintf(Buffer, "%a", A);
17520 B = atof(Buffer);
17521 if (A != B)
17522   return (1);
17523 if (A != 0x1.999999999999ap-4)
17524   return (1);
17525 return (0);
17526   ;
17527   return 0;
17528 }
17529 _ACEOF
17530 rm -f conftest$ac_exeext
17531 if { (ac_try="$ac_link"
17532 case "(($ac_try" in
17533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17534   *) ac_try_echo=$ac_try;;
17535 esac
17536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17537   (eval "$ac_link") 2>&5
17538   ac_status=$?
17539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17541   { (case "(($ac_try" in
17542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543   *) ac_try_echo=$ac_try;;
17544 esac
17545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17546   (eval "$ac_try") 2>&5
17547   ac_status=$?
17548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549   (exit $ac_status); }; }; then
17550   llvm_cv_c_printf_a=yes
17551 else
17552   echo "$as_me: program exited with status $ac_status" >&5
17553 echo "$as_me: failed program was:" >&5
17554 sed 's/^/| /' conftest.$ac_ext >&5
17555
17556 ( exit $ac_status )
17557 llvmac_cv_c_printf_a=no
17558 fi
17559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17560 fi
17561
17562
17563  ac_ext=c
17564 ac_cpp='$CPP $CPPFLAGS'
17565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17568
17569 fi
17570 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17571 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17572  if test "$llvm_cv_c_printf_a" = "yes"; then
17573
17574 cat >>confdefs.h <<\_ACEOF
17575 #define HAVE_PRINTF_A 1
17576 _ACEOF
17577
17578  fi
17579
17580
17581 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17582 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17583 if test "${ac_cv_func_rand48+set}" = set; then
17584   echo $ECHO_N "(cached) $ECHO_C" >&6
17585 else
17586   ac_ext=cpp
17587 ac_cpp='$CXXCPP $CPPFLAGS'
17588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17591
17592    cat >conftest.$ac_ext <<_ACEOF
17593 /* confdefs.h.  */
17594 _ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h.  */
17598 #include <stdlib.h>
17599 int
17600 main ()
17601 {
17602 srand48(0);lrand48();drand48();
17603   ;
17604   return 0;
17605 }
17606 _ACEOF
17607 rm -f conftest.$ac_objext
17608 if { (ac_try="$ac_compile"
17609 case "(($ac_try" in
17610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611   *) ac_try_echo=$ac_try;;
17612 esac
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614   (eval "$ac_compile") 2>conftest.er1
17615   ac_status=$?
17616   grep -v '^ *+' conftest.er1 >conftest.err
17617   rm -f conftest.er1
17618   cat conftest.err >&5
17619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620   (exit $ac_status); } &&
17621          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17622   { (case "(($ac_try" in
17623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17624   *) ac_try_echo=$ac_try;;
17625 esac
17626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17627   (eval "$ac_try") 2>&5
17628   ac_status=$?
17629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630   (exit $ac_status); }; } &&
17631          { ac_try='test -s conftest.$ac_objext'
17632   { (case "(($ac_try" in
17633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634   *) ac_try_echo=$ac_try;;
17635 esac
17636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637   (eval "$ac_try") 2>&5
17638   ac_status=$?
17639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640   (exit $ac_status); }; }; then
17641   ac_cv_func_rand48=yes
17642 else
17643   echo "$as_me: failed program was:" >&5
17644 sed 's/^/| /' conftest.$ac_ext >&5
17645
17646         ac_cv_func_rand48=no
17647 fi
17648
17649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17650   ac_ext=c
17651 ac_cpp='$CPP $CPPFLAGS'
17652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17655
17656 fi
17657 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17658 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17659
17660 if test "$ac_cv_func_rand48" = "yes" ; then
17661
17662 cat >>confdefs.h <<\_ACEOF
17663 #define HAVE_RAND48 1
17664 _ACEOF
17665
17666 fi
17667
17668
17669 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17670 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17671 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17672   echo $ECHO_N "(cached) $ECHO_C" >&6
17673 else
17674   cat >conftest.$ac_ext <<_ACEOF
17675 /* confdefs.h.  */
17676 _ACEOF
17677 cat confdefs.h >>conftest.$ac_ext
17678 cat >>conftest.$ac_ext <<_ACEOF
17679 /* end confdefs.h.  */
17680 $ac_includes_default
17681 int
17682 main ()
17683 {
17684 #ifndef strerror_s
17685   char *p = (char *) strerror_s;
17686   return !p;
17687 #endif
17688
17689   ;
17690   return 0;
17691 }
17692 _ACEOF
17693 rm -f conftest.$ac_objext
17694 if { (ac_try="$ac_compile"
17695 case "(($ac_try" in
17696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17697   *) ac_try_echo=$ac_try;;
17698 esac
17699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17700   (eval "$ac_compile") 2>conftest.er1
17701   ac_status=$?
17702   grep -v '^ *+' conftest.er1 >conftest.err
17703   rm -f conftest.er1
17704   cat conftest.err >&5
17705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706   (exit $ac_status); } &&
17707          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17708   { (case "(($ac_try" in
17709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17710   *) ac_try_echo=$ac_try;;
17711 esac
17712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17713   (eval "$ac_try") 2>&5
17714   ac_status=$?
17715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716   (exit $ac_status); }; } &&
17717          { ac_try='test -s conftest.$ac_objext'
17718   { (case "(($ac_try" in
17719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17720   *) ac_try_echo=$ac_try;;
17721 esac
17722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17723   (eval "$ac_try") 2>&5
17724   ac_status=$?
17725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726   (exit $ac_status); }; }; then
17727   ac_cv_have_decl_strerror_s=yes
17728 else
17729   echo "$as_me: failed program was:" >&5
17730 sed 's/^/| /' conftest.$ac_ext >&5
17731
17732         ac_cv_have_decl_strerror_s=no
17733 fi
17734
17735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17736 fi
17737 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17738 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17739 if test $ac_cv_have_decl_strerror_s = yes; then
17740
17741 cat >>confdefs.h <<_ACEOF
17742 #define HAVE_DECL_STRERROR_S 1
17743 _ACEOF
17744
17745
17746 else
17747   cat >>confdefs.h <<_ACEOF
17748 #define HAVE_DECL_STRERROR_S 0
17749 _ACEOF
17750
17751
17752 fi
17753
17754
17755
17756 if test "$llvm_cv_os_type" = "MingW" ; then
17757   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17758 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17759 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17760   echo $ECHO_N "(cached) $ECHO_C" >&6
17761 else
17762   ac_check_lib_save_LIBS=$LIBS
17763 LIBS="-lgcc  $LIBS"
17764 cat >conftest.$ac_ext <<_ACEOF
17765 /* confdefs.h.  */
17766 _ACEOF
17767 cat confdefs.h >>conftest.$ac_ext
17768 cat >>conftest.$ac_ext <<_ACEOF
17769 /* end confdefs.h.  */
17770
17771 /* Override any GCC internal prototype to avoid an error.
17772    Use char because int might match the return type of a GCC
17773    builtin and then its argument prototype would still apply.  */
17774 #ifdef __cplusplus
17775 extern "C"
17776 #endif
17777 char _alloca ();
17778 int
17779 main ()
17780 {
17781 return _alloca ();
17782   ;
17783   return 0;
17784 }
17785 _ACEOF
17786 rm -f conftest.$ac_objext conftest$ac_exeext
17787 if { (ac_try="$ac_link"
17788 case "(($ac_try" in
17789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17790   *) ac_try_echo=$ac_try;;
17791 esac
17792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17793   (eval "$ac_link") 2>conftest.er1
17794   ac_status=$?
17795   grep -v '^ *+' conftest.er1 >conftest.err
17796   rm -f conftest.er1
17797   cat conftest.err >&5
17798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799   (exit $ac_status); } &&
17800          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17801   { (case "(($ac_try" in
17802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17803   *) ac_try_echo=$ac_try;;
17804 esac
17805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17806   (eval "$ac_try") 2>&5
17807   ac_status=$?
17808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809   (exit $ac_status); }; } &&
17810          { ac_try='test -s conftest$ac_exeext'
17811   { (case "(($ac_try" in
17812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17813   *) ac_try_echo=$ac_try;;
17814 esac
17815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17816   (eval "$ac_try") 2>&5
17817   ac_status=$?
17818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819   (exit $ac_status); }; }; then
17820   ac_cv_lib_gcc__alloca=yes
17821 else
17822   echo "$as_me: failed program was:" >&5
17823 sed 's/^/| /' conftest.$ac_ext >&5
17824
17825         ac_cv_lib_gcc__alloca=no
17826 fi
17827
17828 rm -f core conftest.err conftest.$ac_objext \
17829       conftest$ac_exeext conftest.$ac_ext
17830 LIBS=$ac_check_lib_save_LIBS
17831 fi
17832 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17833 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17834 if test $ac_cv_lib_gcc__alloca = yes; then
17835
17836 cat >>confdefs.h <<\_ACEOF
17837 #define HAVE__ALLOCA 1
17838 _ACEOF
17839
17840 fi
17841
17842   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17843 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17844 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17845   echo $ECHO_N "(cached) $ECHO_C" >&6
17846 else
17847   ac_check_lib_save_LIBS=$LIBS
17848 LIBS="-lgcc  $LIBS"
17849 cat >conftest.$ac_ext <<_ACEOF
17850 /* confdefs.h.  */
17851 _ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h.  */
17855
17856 /* Override any GCC internal prototype to avoid an error.
17857    Use char because int might match the return type of a GCC
17858    builtin and then its argument prototype would still apply.  */
17859 #ifdef __cplusplus
17860 extern "C"
17861 #endif
17862 char __alloca ();
17863 int
17864 main ()
17865 {
17866 return __alloca ();
17867   ;
17868   return 0;
17869 }
17870 _ACEOF
17871 rm -f conftest.$ac_objext conftest$ac_exeext
17872 if { (ac_try="$ac_link"
17873 case "(($ac_try" in
17874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875   *) ac_try_echo=$ac_try;;
17876 esac
17877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17878   (eval "$ac_link") 2>conftest.er1
17879   ac_status=$?
17880   grep -v '^ *+' conftest.er1 >conftest.err
17881   rm -f conftest.er1
17882   cat conftest.err >&5
17883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884   (exit $ac_status); } &&
17885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17886   { (case "(($ac_try" in
17887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17888   *) ac_try_echo=$ac_try;;
17889 esac
17890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17891   (eval "$ac_try") 2>&5
17892   ac_status=$?
17893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894   (exit $ac_status); }; } &&
17895          { ac_try='test -s conftest$ac_exeext'
17896   { (case "(($ac_try" in
17897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17898   *) ac_try_echo=$ac_try;;
17899 esac
17900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17901   (eval "$ac_try") 2>&5
17902   ac_status=$?
17903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904   (exit $ac_status); }; }; then
17905   ac_cv_lib_gcc___alloca=yes
17906 else
17907   echo "$as_me: failed program was:" >&5
17908 sed 's/^/| /' conftest.$ac_ext >&5
17909
17910         ac_cv_lib_gcc___alloca=no
17911 fi
17912
17913 rm -f core conftest.err conftest.$ac_objext \
17914       conftest$ac_exeext conftest.$ac_ext
17915 LIBS=$ac_check_lib_save_LIBS
17916 fi
17917 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17918 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17919 if test $ac_cv_lib_gcc___alloca = yes; then
17920
17921 cat >>confdefs.h <<\_ACEOF
17922 #define HAVE___ALLOCA 1
17923 _ACEOF
17924
17925 fi
17926
17927   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17928 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17929 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17930   echo $ECHO_N "(cached) $ECHO_C" >&6
17931 else
17932   ac_check_lib_save_LIBS=$LIBS
17933 LIBS="-lgcc  $LIBS"
17934 cat >conftest.$ac_ext <<_ACEOF
17935 /* confdefs.h.  */
17936 _ACEOF
17937 cat confdefs.h >>conftest.$ac_ext
17938 cat >>conftest.$ac_ext <<_ACEOF
17939 /* end confdefs.h.  */
17940
17941 /* Override any GCC internal prototype to avoid an error.
17942    Use char because int might match the return type of a GCC
17943    builtin and then its argument prototype would still apply.  */
17944 #ifdef __cplusplus
17945 extern "C"
17946 #endif
17947 char __chkstk ();
17948 int
17949 main ()
17950 {
17951 return __chkstk ();
17952   ;
17953   return 0;
17954 }
17955 _ACEOF
17956 rm -f conftest.$ac_objext conftest$ac_exeext
17957 if { (ac_try="$ac_link"
17958 case "(($ac_try" in
17959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17960   *) ac_try_echo=$ac_try;;
17961 esac
17962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17963   (eval "$ac_link") 2>conftest.er1
17964   ac_status=$?
17965   grep -v '^ *+' conftest.er1 >conftest.err
17966   rm -f conftest.er1
17967   cat conftest.err >&5
17968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969   (exit $ac_status); } &&
17970          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17971   { (case "(($ac_try" in
17972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973   *) ac_try_echo=$ac_try;;
17974 esac
17975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17976   (eval "$ac_try") 2>&5
17977   ac_status=$?
17978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979   (exit $ac_status); }; } &&
17980          { ac_try='test -s conftest$ac_exeext'
17981   { (case "(($ac_try" in
17982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17983   *) ac_try_echo=$ac_try;;
17984 esac
17985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17986   (eval "$ac_try") 2>&5
17987   ac_status=$?
17988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989   (exit $ac_status); }; }; then
17990   ac_cv_lib_gcc___chkstk=yes
17991 else
17992   echo "$as_me: failed program was:" >&5
17993 sed 's/^/| /' conftest.$ac_ext >&5
17994
17995         ac_cv_lib_gcc___chkstk=no
17996 fi
17997
17998 rm -f core conftest.err conftest.$ac_objext \
17999       conftest$ac_exeext conftest.$ac_ext
18000 LIBS=$ac_check_lib_save_LIBS
18001 fi
18002 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18003 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18004 if test $ac_cv_lib_gcc___chkstk = yes; then
18005
18006 cat >>confdefs.h <<\_ACEOF
18007 #define HAVE___CHKSTK 1
18008 _ACEOF
18009
18010 fi
18011
18012   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18013 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18014 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18015   echo $ECHO_N "(cached) $ECHO_C" >&6
18016 else
18017   ac_check_lib_save_LIBS=$LIBS
18018 LIBS="-lgcc  $LIBS"
18019 cat >conftest.$ac_ext <<_ACEOF
18020 /* confdefs.h.  */
18021 _ACEOF
18022 cat confdefs.h >>conftest.$ac_ext
18023 cat >>conftest.$ac_ext <<_ACEOF
18024 /* end confdefs.h.  */
18025
18026 /* Override any GCC internal prototype to avoid an error.
18027    Use char because int might match the return type of a GCC
18028    builtin and then its argument prototype would still apply.  */
18029 #ifdef __cplusplus
18030 extern "C"
18031 #endif
18032 char ___chkstk ();
18033 int
18034 main ()
18035 {
18036 return ___chkstk ();
18037   ;
18038   return 0;
18039 }
18040 _ACEOF
18041 rm -f conftest.$ac_objext conftest$ac_exeext
18042 if { (ac_try="$ac_link"
18043 case "(($ac_try" in
18044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18045   *) ac_try_echo=$ac_try;;
18046 esac
18047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18048   (eval "$ac_link") 2>conftest.er1
18049   ac_status=$?
18050   grep -v '^ *+' conftest.er1 >conftest.err
18051   rm -f conftest.er1
18052   cat conftest.err >&5
18053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054   (exit $ac_status); } &&
18055          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18056   { (case "(($ac_try" in
18057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18058   *) ac_try_echo=$ac_try;;
18059 esac
18060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18061   (eval "$ac_try") 2>&5
18062   ac_status=$?
18063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064   (exit $ac_status); }; } &&
18065          { ac_try='test -s conftest$ac_exeext'
18066   { (case "(($ac_try" in
18067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068   *) ac_try_echo=$ac_try;;
18069 esac
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071   (eval "$ac_try") 2>&5
18072   ac_status=$?
18073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074   (exit $ac_status); }; }; then
18075   ac_cv_lib_gcc____chkstk=yes
18076 else
18077   echo "$as_me: failed program was:" >&5
18078 sed 's/^/| /' conftest.$ac_ext >&5
18079
18080         ac_cv_lib_gcc____chkstk=no
18081 fi
18082
18083 rm -f core conftest.err conftest.$ac_objext \
18084       conftest$ac_exeext conftest.$ac_ext
18085 LIBS=$ac_check_lib_save_LIBS
18086 fi
18087 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18088 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18089 if test $ac_cv_lib_gcc____chkstk = yes; then
18090
18091 cat >>confdefs.h <<\_ACEOF
18092 #define HAVE____CHKSTK 1
18093 _ACEOF
18094
18095 fi
18096
18097
18098   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18099 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18100 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18101   echo $ECHO_N "(cached) $ECHO_C" >&6
18102 else
18103   ac_check_lib_save_LIBS=$LIBS
18104 LIBS="-lgcc  $LIBS"
18105 cat >conftest.$ac_ext <<_ACEOF
18106 /* confdefs.h.  */
18107 _ACEOF
18108 cat confdefs.h >>conftest.$ac_ext
18109 cat >>conftest.$ac_ext <<_ACEOF
18110 /* end confdefs.h.  */
18111
18112 /* Override any GCC internal prototype to avoid an error.
18113    Use char because int might match the return type of a GCC
18114    builtin and then its argument prototype would still apply.  */
18115 #ifdef __cplusplus
18116 extern "C"
18117 #endif
18118 char __ashldi3 ();
18119 int
18120 main ()
18121 {
18122 return __ashldi3 ();
18123   ;
18124   return 0;
18125 }
18126 _ACEOF
18127 rm -f conftest.$ac_objext conftest$ac_exeext
18128 if { (ac_try="$ac_link"
18129 case "(($ac_try" in
18130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18131   *) ac_try_echo=$ac_try;;
18132 esac
18133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134   (eval "$ac_link") 2>conftest.er1
18135   ac_status=$?
18136   grep -v '^ *+' conftest.er1 >conftest.err
18137   rm -f conftest.er1
18138   cat conftest.err >&5
18139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140   (exit $ac_status); } &&
18141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18142   { (case "(($ac_try" in
18143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18144   *) ac_try_echo=$ac_try;;
18145 esac
18146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18147   (eval "$ac_try") 2>&5
18148   ac_status=$?
18149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150   (exit $ac_status); }; } &&
18151          { ac_try='test -s conftest$ac_exeext'
18152   { (case "(($ac_try" in
18153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18154   *) ac_try_echo=$ac_try;;
18155 esac
18156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18157   (eval "$ac_try") 2>&5
18158   ac_status=$?
18159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160   (exit $ac_status); }; }; then
18161   ac_cv_lib_gcc___ashldi3=yes
18162 else
18163   echo "$as_me: failed program was:" >&5
18164 sed 's/^/| /' conftest.$ac_ext >&5
18165
18166         ac_cv_lib_gcc___ashldi3=no
18167 fi
18168
18169 rm -f core conftest.err conftest.$ac_objext \
18170       conftest$ac_exeext conftest.$ac_ext
18171 LIBS=$ac_check_lib_save_LIBS
18172 fi
18173 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18174 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18175 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18176
18177 cat >>confdefs.h <<\_ACEOF
18178 #define HAVE___ASHLDI3 1
18179 _ACEOF
18180
18181 fi
18182
18183   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18184 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18185 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18186   echo $ECHO_N "(cached) $ECHO_C" >&6
18187 else
18188   ac_check_lib_save_LIBS=$LIBS
18189 LIBS="-lgcc  $LIBS"
18190 cat >conftest.$ac_ext <<_ACEOF
18191 /* confdefs.h.  */
18192 _ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h.  */
18196
18197 /* Override any GCC internal prototype to avoid an error.
18198    Use char because int might match the return type of a GCC
18199    builtin and then its argument prototype would still apply.  */
18200 #ifdef __cplusplus
18201 extern "C"
18202 #endif
18203 char __ashrdi3 ();
18204 int
18205 main ()
18206 {
18207 return __ashrdi3 ();
18208   ;
18209   return 0;
18210 }
18211 _ACEOF
18212 rm -f conftest.$ac_objext conftest$ac_exeext
18213 if { (ac_try="$ac_link"
18214 case "(($ac_try" in
18215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216   *) ac_try_echo=$ac_try;;
18217 esac
18218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18219   (eval "$ac_link") 2>conftest.er1
18220   ac_status=$?
18221   grep -v '^ *+' conftest.er1 >conftest.err
18222   rm -f conftest.er1
18223   cat conftest.err >&5
18224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225   (exit $ac_status); } &&
18226          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18227   { (case "(($ac_try" in
18228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18229   *) ac_try_echo=$ac_try;;
18230 esac
18231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18232   (eval "$ac_try") 2>&5
18233   ac_status=$?
18234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235   (exit $ac_status); }; } &&
18236          { ac_try='test -s conftest$ac_exeext'
18237   { (case "(($ac_try" in
18238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18239   *) ac_try_echo=$ac_try;;
18240 esac
18241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18242   (eval "$ac_try") 2>&5
18243   ac_status=$?
18244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245   (exit $ac_status); }; }; then
18246   ac_cv_lib_gcc___ashrdi3=yes
18247 else
18248   echo "$as_me: failed program was:" >&5
18249 sed 's/^/| /' conftest.$ac_ext >&5
18250
18251         ac_cv_lib_gcc___ashrdi3=no
18252 fi
18253
18254 rm -f core conftest.err conftest.$ac_objext \
18255       conftest$ac_exeext conftest.$ac_ext
18256 LIBS=$ac_check_lib_save_LIBS
18257 fi
18258 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18259 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18260 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18261
18262 cat >>confdefs.h <<\_ACEOF
18263 #define HAVE___ASHRDI3 1
18264 _ACEOF
18265
18266 fi
18267
18268   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18269 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18270 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18271   echo $ECHO_N "(cached) $ECHO_C" >&6
18272 else
18273   ac_check_lib_save_LIBS=$LIBS
18274 LIBS="-lgcc  $LIBS"
18275 cat >conftest.$ac_ext <<_ACEOF
18276 /* confdefs.h.  */
18277 _ACEOF
18278 cat confdefs.h >>conftest.$ac_ext
18279 cat >>conftest.$ac_ext <<_ACEOF
18280 /* end confdefs.h.  */
18281
18282 /* Override any GCC internal prototype to avoid an error.
18283    Use char because int might match the return type of a GCC
18284    builtin and then its argument prototype would still apply.  */
18285 #ifdef __cplusplus
18286 extern "C"
18287 #endif
18288 char __divdi3 ();
18289 int
18290 main ()
18291 {
18292 return __divdi3 ();
18293   ;
18294   return 0;
18295 }
18296 _ACEOF
18297 rm -f conftest.$ac_objext conftest$ac_exeext
18298 if { (ac_try="$ac_link"
18299 case "(($ac_try" in
18300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18301   *) ac_try_echo=$ac_try;;
18302 esac
18303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18304   (eval "$ac_link") 2>conftest.er1
18305   ac_status=$?
18306   grep -v '^ *+' conftest.er1 >conftest.err
18307   rm -f conftest.er1
18308   cat conftest.err >&5
18309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310   (exit $ac_status); } &&
18311          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18312   { (case "(($ac_try" in
18313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18314   *) ac_try_echo=$ac_try;;
18315 esac
18316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18317   (eval "$ac_try") 2>&5
18318   ac_status=$?
18319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320   (exit $ac_status); }; } &&
18321          { ac_try='test -s conftest$ac_exeext'
18322   { (case "(($ac_try" in
18323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18324   *) ac_try_echo=$ac_try;;
18325 esac
18326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18327   (eval "$ac_try") 2>&5
18328   ac_status=$?
18329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330   (exit $ac_status); }; }; then
18331   ac_cv_lib_gcc___divdi3=yes
18332 else
18333   echo "$as_me: failed program was:" >&5
18334 sed 's/^/| /' conftest.$ac_ext >&5
18335
18336         ac_cv_lib_gcc___divdi3=no
18337 fi
18338
18339 rm -f core conftest.err conftest.$ac_objext \
18340       conftest$ac_exeext conftest.$ac_ext
18341 LIBS=$ac_check_lib_save_LIBS
18342 fi
18343 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18344 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18345 if test $ac_cv_lib_gcc___divdi3 = yes; then
18346
18347 cat >>confdefs.h <<\_ACEOF
18348 #define HAVE___DIVDI3 1
18349 _ACEOF
18350
18351 fi
18352
18353   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18354 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18355 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18356   echo $ECHO_N "(cached) $ECHO_C" >&6
18357 else
18358   ac_check_lib_save_LIBS=$LIBS
18359 LIBS="-lgcc  $LIBS"
18360 cat >conftest.$ac_ext <<_ACEOF
18361 /* confdefs.h.  */
18362 _ACEOF
18363 cat confdefs.h >>conftest.$ac_ext
18364 cat >>conftest.$ac_ext <<_ACEOF
18365 /* end confdefs.h.  */
18366
18367 /* Override any GCC internal prototype to avoid an error.
18368    Use char because int might match the return type of a GCC
18369    builtin and then its argument prototype would still apply.  */
18370 #ifdef __cplusplus
18371 extern "C"
18372 #endif
18373 char __fixdfdi ();
18374 int
18375 main ()
18376 {
18377 return __fixdfdi ();
18378   ;
18379   return 0;
18380 }
18381 _ACEOF
18382 rm -f conftest.$ac_objext conftest$ac_exeext
18383 if { (ac_try="$ac_link"
18384 case "(($ac_try" in
18385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18386   *) ac_try_echo=$ac_try;;
18387 esac
18388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18389   (eval "$ac_link") 2>conftest.er1
18390   ac_status=$?
18391   grep -v '^ *+' conftest.er1 >conftest.err
18392   rm -f conftest.er1
18393   cat conftest.err >&5
18394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395   (exit $ac_status); } &&
18396          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18397   { (case "(($ac_try" in
18398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18399   *) ac_try_echo=$ac_try;;
18400 esac
18401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18402   (eval "$ac_try") 2>&5
18403   ac_status=$?
18404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405   (exit $ac_status); }; } &&
18406          { ac_try='test -s conftest$ac_exeext'
18407   { (case "(($ac_try" in
18408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18409   *) ac_try_echo=$ac_try;;
18410 esac
18411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18412   (eval "$ac_try") 2>&5
18413   ac_status=$?
18414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415   (exit $ac_status); }; }; then
18416   ac_cv_lib_gcc___fixdfdi=yes
18417 else
18418   echo "$as_me: failed program was:" >&5
18419 sed 's/^/| /' conftest.$ac_ext >&5
18420
18421         ac_cv_lib_gcc___fixdfdi=no
18422 fi
18423
18424 rm -f core conftest.err conftest.$ac_objext \
18425       conftest$ac_exeext conftest.$ac_ext
18426 LIBS=$ac_check_lib_save_LIBS
18427 fi
18428 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18429 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18430 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18431
18432 cat >>confdefs.h <<\_ACEOF
18433 #define HAVE___FIXDFDI 1
18434 _ACEOF
18435
18436 fi
18437
18438   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18439 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18440 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18441   echo $ECHO_N "(cached) $ECHO_C" >&6
18442 else
18443   ac_check_lib_save_LIBS=$LIBS
18444 LIBS="-lgcc  $LIBS"
18445 cat >conftest.$ac_ext <<_ACEOF
18446 /* confdefs.h.  */
18447 _ACEOF
18448 cat confdefs.h >>conftest.$ac_ext
18449 cat >>conftest.$ac_ext <<_ACEOF
18450 /* end confdefs.h.  */
18451
18452 /* Override any GCC internal prototype to avoid an error.
18453    Use char because int might match the return type of a GCC
18454    builtin and then its argument prototype would still apply.  */
18455 #ifdef __cplusplus
18456 extern "C"
18457 #endif
18458 char __fixsfdi ();
18459 int
18460 main ()
18461 {
18462 return __fixsfdi ();
18463   ;
18464   return 0;
18465 }
18466 _ACEOF
18467 rm -f conftest.$ac_objext conftest$ac_exeext
18468 if { (ac_try="$ac_link"
18469 case "(($ac_try" in
18470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18471   *) ac_try_echo=$ac_try;;
18472 esac
18473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18474   (eval "$ac_link") 2>conftest.er1
18475   ac_status=$?
18476   grep -v '^ *+' conftest.er1 >conftest.err
18477   rm -f conftest.er1
18478   cat conftest.err >&5
18479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480   (exit $ac_status); } &&
18481          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18482   { (case "(($ac_try" in
18483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18484   *) ac_try_echo=$ac_try;;
18485 esac
18486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18487   (eval "$ac_try") 2>&5
18488   ac_status=$?
18489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490   (exit $ac_status); }; } &&
18491          { ac_try='test -s conftest$ac_exeext'
18492   { (case "(($ac_try" in
18493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18494   *) ac_try_echo=$ac_try;;
18495 esac
18496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18497   (eval "$ac_try") 2>&5
18498   ac_status=$?
18499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500   (exit $ac_status); }; }; then
18501   ac_cv_lib_gcc___fixsfdi=yes
18502 else
18503   echo "$as_me: failed program was:" >&5
18504 sed 's/^/| /' conftest.$ac_ext >&5
18505
18506         ac_cv_lib_gcc___fixsfdi=no
18507 fi
18508
18509 rm -f core conftest.err conftest.$ac_objext \
18510       conftest$ac_exeext conftest.$ac_ext
18511 LIBS=$ac_check_lib_save_LIBS
18512 fi
18513 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18514 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18515 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18516
18517 cat >>confdefs.h <<\_ACEOF
18518 #define HAVE___FIXSFDI 1
18519 _ACEOF
18520
18521 fi
18522
18523   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18524 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18525 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18526   echo $ECHO_N "(cached) $ECHO_C" >&6
18527 else
18528   ac_check_lib_save_LIBS=$LIBS
18529 LIBS="-lgcc  $LIBS"
18530 cat >conftest.$ac_ext <<_ACEOF
18531 /* confdefs.h.  */
18532 _ACEOF
18533 cat confdefs.h >>conftest.$ac_ext
18534 cat >>conftest.$ac_ext <<_ACEOF
18535 /* end confdefs.h.  */
18536
18537 /* Override any GCC internal prototype to avoid an error.
18538    Use char because int might match the return type of a GCC
18539    builtin and then its argument prototype would still apply.  */
18540 #ifdef __cplusplus
18541 extern "C"
18542 #endif
18543 char __floatdidf ();
18544 int
18545 main ()
18546 {
18547 return __floatdidf ();
18548   ;
18549   return 0;
18550 }
18551 _ACEOF
18552 rm -f conftest.$ac_objext conftest$ac_exeext
18553 if { (ac_try="$ac_link"
18554 case "(($ac_try" in
18555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18556   *) ac_try_echo=$ac_try;;
18557 esac
18558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18559   (eval "$ac_link") 2>conftest.er1
18560   ac_status=$?
18561   grep -v '^ *+' conftest.er1 >conftest.err
18562   rm -f conftest.er1
18563   cat conftest.err >&5
18564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565   (exit $ac_status); } &&
18566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18567   { (case "(($ac_try" in
18568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18569   *) ac_try_echo=$ac_try;;
18570 esac
18571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18572   (eval "$ac_try") 2>&5
18573   ac_status=$?
18574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575   (exit $ac_status); }; } &&
18576          { ac_try='test -s conftest$ac_exeext'
18577   { (case "(($ac_try" in
18578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18579   *) ac_try_echo=$ac_try;;
18580 esac
18581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18582   (eval "$ac_try") 2>&5
18583   ac_status=$?
18584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585   (exit $ac_status); }; }; then
18586   ac_cv_lib_gcc___floatdidf=yes
18587 else
18588   echo "$as_me: failed program was:" >&5
18589 sed 's/^/| /' conftest.$ac_ext >&5
18590
18591         ac_cv_lib_gcc___floatdidf=no
18592 fi
18593
18594 rm -f core conftest.err conftest.$ac_objext \
18595       conftest$ac_exeext conftest.$ac_ext
18596 LIBS=$ac_check_lib_save_LIBS
18597 fi
18598 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18599 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18600 if test $ac_cv_lib_gcc___floatdidf = yes; then
18601
18602 cat >>confdefs.h <<\_ACEOF
18603 #define HAVE___FLOATDIDF 1
18604 _ACEOF
18605
18606 fi
18607
18608   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18609 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18610 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18611   echo $ECHO_N "(cached) $ECHO_C" >&6
18612 else
18613   ac_check_lib_save_LIBS=$LIBS
18614 LIBS="-lgcc  $LIBS"
18615 cat >conftest.$ac_ext <<_ACEOF
18616 /* confdefs.h.  */
18617 _ACEOF
18618 cat confdefs.h >>conftest.$ac_ext
18619 cat >>conftest.$ac_ext <<_ACEOF
18620 /* end confdefs.h.  */
18621
18622 /* Override any GCC internal prototype to avoid an error.
18623    Use char because int might match the return type of a GCC
18624    builtin and then its argument prototype would still apply.  */
18625 #ifdef __cplusplus
18626 extern "C"
18627 #endif
18628 char __lshrdi3 ();
18629 int
18630 main ()
18631 {
18632 return __lshrdi3 ();
18633   ;
18634   return 0;
18635 }
18636 _ACEOF
18637 rm -f conftest.$ac_objext conftest$ac_exeext
18638 if { (ac_try="$ac_link"
18639 case "(($ac_try" in
18640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641   *) ac_try_echo=$ac_try;;
18642 esac
18643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18644   (eval "$ac_link") 2>conftest.er1
18645   ac_status=$?
18646   grep -v '^ *+' conftest.er1 >conftest.err
18647   rm -f conftest.er1
18648   cat conftest.err >&5
18649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650   (exit $ac_status); } &&
18651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18652   { (case "(($ac_try" in
18653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18654   *) ac_try_echo=$ac_try;;
18655 esac
18656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18657   (eval "$ac_try") 2>&5
18658   ac_status=$?
18659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660   (exit $ac_status); }; } &&
18661          { ac_try='test -s conftest$ac_exeext'
18662   { (case "(($ac_try" in
18663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18664   *) ac_try_echo=$ac_try;;
18665 esac
18666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18667   (eval "$ac_try") 2>&5
18668   ac_status=$?
18669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670   (exit $ac_status); }; }; then
18671   ac_cv_lib_gcc___lshrdi3=yes
18672 else
18673   echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18675
18676         ac_cv_lib_gcc___lshrdi3=no
18677 fi
18678
18679 rm -f core conftest.err conftest.$ac_objext \
18680       conftest$ac_exeext conftest.$ac_ext
18681 LIBS=$ac_check_lib_save_LIBS
18682 fi
18683 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18684 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18685 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18686
18687 cat >>confdefs.h <<\_ACEOF
18688 #define HAVE___LSHRDI3 1
18689 _ACEOF
18690
18691 fi
18692
18693   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18694 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18695 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18696   echo $ECHO_N "(cached) $ECHO_C" >&6
18697 else
18698   ac_check_lib_save_LIBS=$LIBS
18699 LIBS="-lgcc  $LIBS"
18700 cat >conftest.$ac_ext <<_ACEOF
18701 /* confdefs.h.  */
18702 _ACEOF
18703 cat confdefs.h >>conftest.$ac_ext
18704 cat >>conftest.$ac_ext <<_ACEOF
18705 /* end confdefs.h.  */
18706
18707 /* Override any GCC internal prototype to avoid an error.
18708    Use char because int might match the return type of a GCC
18709    builtin and then its argument prototype would still apply.  */
18710 #ifdef __cplusplus
18711 extern "C"
18712 #endif
18713 char __moddi3 ();
18714 int
18715 main ()
18716 {
18717 return __moddi3 ();
18718   ;
18719   return 0;
18720 }
18721 _ACEOF
18722 rm -f conftest.$ac_objext conftest$ac_exeext
18723 if { (ac_try="$ac_link"
18724 case "(($ac_try" in
18725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18726   *) ac_try_echo=$ac_try;;
18727 esac
18728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18729   (eval "$ac_link") 2>conftest.er1
18730   ac_status=$?
18731   grep -v '^ *+' conftest.er1 >conftest.err
18732   rm -f conftest.er1
18733   cat conftest.err >&5
18734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735   (exit $ac_status); } &&
18736          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18737   { (case "(($ac_try" in
18738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18739   *) ac_try_echo=$ac_try;;
18740 esac
18741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18742   (eval "$ac_try") 2>&5
18743   ac_status=$?
18744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745   (exit $ac_status); }; } &&
18746          { ac_try='test -s conftest$ac_exeext'
18747   { (case "(($ac_try" in
18748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749   *) ac_try_echo=$ac_try;;
18750 esac
18751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18752   (eval "$ac_try") 2>&5
18753   ac_status=$?
18754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755   (exit $ac_status); }; }; then
18756   ac_cv_lib_gcc___moddi3=yes
18757 else
18758   echo "$as_me: failed program was:" >&5
18759 sed 's/^/| /' conftest.$ac_ext >&5
18760
18761         ac_cv_lib_gcc___moddi3=no
18762 fi
18763
18764 rm -f core conftest.err conftest.$ac_objext \
18765       conftest$ac_exeext conftest.$ac_ext
18766 LIBS=$ac_check_lib_save_LIBS
18767 fi
18768 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18769 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18770 if test $ac_cv_lib_gcc___moddi3 = yes; then
18771
18772 cat >>confdefs.h <<\_ACEOF
18773 #define HAVE___MODDI3 1
18774 _ACEOF
18775
18776 fi
18777
18778   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18779 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18780 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18781   echo $ECHO_N "(cached) $ECHO_C" >&6
18782 else
18783   ac_check_lib_save_LIBS=$LIBS
18784 LIBS="-lgcc  $LIBS"
18785 cat >conftest.$ac_ext <<_ACEOF
18786 /* confdefs.h.  */
18787 _ACEOF
18788 cat confdefs.h >>conftest.$ac_ext
18789 cat >>conftest.$ac_ext <<_ACEOF
18790 /* end confdefs.h.  */
18791
18792 /* Override any GCC internal prototype to avoid an error.
18793    Use char because int might match the return type of a GCC
18794    builtin and then its argument prototype would still apply.  */
18795 #ifdef __cplusplus
18796 extern "C"
18797 #endif
18798 char __udivdi3 ();
18799 int
18800 main ()
18801 {
18802 return __udivdi3 ();
18803   ;
18804   return 0;
18805 }
18806 _ACEOF
18807 rm -f conftest.$ac_objext conftest$ac_exeext
18808 if { (ac_try="$ac_link"
18809 case "(($ac_try" in
18810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18811   *) ac_try_echo=$ac_try;;
18812 esac
18813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18814   (eval "$ac_link") 2>conftest.er1
18815   ac_status=$?
18816   grep -v '^ *+' conftest.er1 >conftest.err
18817   rm -f conftest.er1
18818   cat conftest.err >&5
18819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820   (exit $ac_status); } &&
18821          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18822   { (case "(($ac_try" in
18823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18824   *) ac_try_echo=$ac_try;;
18825 esac
18826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18827   (eval "$ac_try") 2>&5
18828   ac_status=$?
18829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830   (exit $ac_status); }; } &&
18831          { ac_try='test -s conftest$ac_exeext'
18832   { (case "(($ac_try" in
18833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834   *) ac_try_echo=$ac_try;;
18835 esac
18836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18837   (eval "$ac_try") 2>&5
18838   ac_status=$?
18839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840   (exit $ac_status); }; }; then
18841   ac_cv_lib_gcc___udivdi3=yes
18842 else
18843   echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18845
18846         ac_cv_lib_gcc___udivdi3=no
18847 fi
18848
18849 rm -f core conftest.err conftest.$ac_objext \
18850       conftest$ac_exeext conftest.$ac_ext
18851 LIBS=$ac_check_lib_save_LIBS
18852 fi
18853 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18854 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18855 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18856
18857 cat >>confdefs.h <<\_ACEOF
18858 #define HAVE___UDIVDI3 1
18859 _ACEOF
18860
18861 fi
18862
18863   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18864 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18865 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18866   echo $ECHO_N "(cached) $ECHO_C" >&6
18867 else
18868   ac_check_lib_save_LIBS=$LIBS
18869 LIBS="-lgcc  $LIBS"
18870 cat >conftest.$ac_ext <<_ACEOF
18871 /* confdefs.h.  */
18872 _ACEOF
18873 cat confdefs.h >>conftest.$ac_ext
18874 cat >>conftest.$ac_ext <<_ACEOF
18875 /* end confdefs.h.  */
18876
18877 /* Override any GCC internal prototype to avoid an error.
18878    Use char because int might match the return type of a GCC
18879    builtin and then its argument prototype would still apply.  */
18880 #ifdef __cplusplus
18881 extern "C"
18882 #endif
18883 char __umoddi3 ();
18884 int
18885 main ()
18886 {
18887 return __umoddi3 ();
18888   ;
18889   return 0;
18890 }
18891 _ACEOF
18892 rm -f conftest.$ac_objext conftest$ac_exeext
18893 if { (ac_try="$ac_link"
18894 case "(($ac_try" in
18895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18896   *) ac_try_echo=$ac_try;;
18897 esac
18898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18899   (eval "$ac_link") 2>conftest.er1
18900   ac_status=$?
18901   grep -v '^ *+' conftest.er1 >conftest.err
18902   rm -f conftest.er1
18903   cat conftest.err >&5
18904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905   (exit $ac_status); } &&
18906          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18907   { (case "(($ac_try" in
18908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18909   *) ac_try_echo=$ac_try;;
18910 esac
18911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18912   (eval "$ac_try") 2>&5
18913   ac_status=$?
18914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915   (exit $ac_status); }; } &&
18916          { ac_try='test -s conftest$ac_exeext'
18917   { (case "(($ac_try" in
18918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919   *) ac_try_echo=$ac_try;;
18920 esac
18921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922   (eval "$ac_try") 2>&5
18923   ac_status=$?
18924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925   (exit $ac_status); }; }; then
18926   ac_cv_lib_gcc___umoddi3=yes
18927 else
18928   echo "$as_me: failed program was:" >&5
18929 sed 's/^/| /' conftest.$ac_ext >&5
18930
18931         ac_cv_lib_gcc___umoddi3=no
18932 fi
18933
18934 rm -f core conftest.err conftest.$ac_objext \
18935       conftest$ac_exeext conftest.$ac_ext
18936 LIBS=$ac_check_lib_save_LIBS
18937 fi
18938 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18939 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18940 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18941
18942 cat >>confdefs.h <<\_ACEOF
18943 #define HAVE___UMODDI3 1
18944 _ACEOF
18945
18946 fi
18947
18948
18949   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18950 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18951 if test "${ac_cv_lib_gcc___main+set}" = set; then
18952   echo $ECHO_N "(cached) $ECHO_C" >&6
18953 else
18954   ac_check_lib_save_LIBS=$LIBS
18955 LIBS="-lgcc  $LIBS"
18956 cat >conftest.$ac_ext <<_ACEOF
18957 /* confdefs.h.  */
18958 _ACEOF
18959 cat confdefs.h >>conftest.$ac_ext
18960 cat >>conftest.$ac_ext <<_ACEOF
18961 /* end confdefs.h.  */
18962
18963 /* Override any GCC internal prototype to avoid an error.
18964    Use char because int might match the return type of a GCC
18965    builtin and then its argument prototype would still apply.  */
18966 #ifdef __cplusplus
18967 extern "C"
18968 #endif
18969 char __main ();
18970 int
18971 main ()
18972 {
18973 return __main ();
18974   ;
18975   return 0;
18976 }
18977 _ACEOF
18978 rm -f conftest.$ac_objext conftest$ac_exeext
18979 if { (ac_try="$ac_link"
18980 case "(($ac_try" in
18981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982   *) ac_try_echo=$ac_try;;
18983 esac
18984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18985   (eval "$ac_link") 2>conftest.er1
18986   ac_status=$?
18987   grep -v '^ *+' conftest.er1 >conftest.err
18988   rm -f conftest.er1
18989   cat conftest.err >&5
18990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991   (exit $ac_status); } &&
18992          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18993   { (case "(($ac_try" in
18994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18995   *) ac_try_echo=$ac_try;;
18996 esac
18997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18998   (eval "$ac_try") 2>&5
18999   ac_status=$?
19000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001   (exit $ac_status); }; } &&
19002          { ac_try='test -s conftest$ac_exeext'
19003   { (case "(($ac_try" in
19004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19005   *) ac_try_echo=$ac_try;;
19006 esac
19007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19008   (eval "$ac_try") 2>&5
19009   ac_status=$?
19010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011   (exit $ac_status); }; }; then
19012   ac_cv_lib_gcc___main=yes
19013 else
19014   echo "$as_me: failed program was:" >&5
19015 sed 's/^/| /' conftest.$ac_ext >&5
19016
19017         ac_cv_lib_gcc___main=no
19018 fi
19019
19020 rm -f core conftest.err conftest.$ac_objext \
19021       conftest$ac_exeext conftest.$ac_ext
19022 LIBS=$ac_check_lib_save_LIBS
19023 fi
19024 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19025 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19026 if test $ac_cv_lib_gcc___main = yes; then
19027
19028 cat >>confdefs.h <<\_ACEOF
19029 #define HAVE___MAIN 1
19030 _ACEOF
19031
19032 fi
19033
19034   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19035 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19036 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19037   echo $ECHO_N "(cached) $ECHO_C" >&6
19038 else
19039   ac_check_lib_save_LIBS=$LIBS
19040 LIBS="-lgcc  $LIBS"
19041 cat >conftest.$ac_ext <<_ACEOF
19042 /* confdefs.h.  */
19043 _ACEOF
19044 cat confdefs.h >>conftest.$ac_ext
19045 cat >>conftest.$ac_ext <<_ACEOF
19046 /* end confdefs.h.  */
19047
19048 /* Override any GCC internal prototype to avoid an error.
19049    Use char because int might match the return type of a GCC
19050    builtin and then its argument prototype would still apply.  */
19051 #ifdef __cplusplus
19052 extern "C"
19053 #endif
19054 char __cmpdi2 ();
19055 int
19056 main ()
19057 {
19058 return __cmpdi2 ();
19059   ;
19060   return 0;
19061 }
19062 _ACEOF
19063 rm -f conftest.$ac_objext conftest$ac_exeext
19064 if { (ac_try="$ac_link"
19065 case "(($ac_try" in
19066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19067   *) ac_try_echo=$ac_try;;
19068 esac
19069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19070   (eval "$ac_link") 2>conftest.er1
19071   ac_status=$?
19072   grep -v '^ *+' conftest.er1 >conftest.err
19073   rm -f conftest.er1
19074   cat conftest.err >&5
19075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076   (exit $ac_status); } &&
19077          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19078   { (case "(($ac_try" in
19079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080   *) ac_try_echo=$ac_try;;
19081 esac
19082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19083   (eval "$ac_try") 2>&5
19084   ac_status=$?
19085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086   (exit $ac_status); }; } &&
19087          { ac_try='test -s conftest$ac_exeext'
19088   { (case "(($ac_try" in
19089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19090   *) ac_try_echo=$ac_try;;
19091 esac
19092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19093   (eval "$ac_try") 2>&5
19094   ac_status=$?
19095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096   (exit $ac_status); }; }; then
19097   ac_cv_lib_gcc___cmpdi2=yes
19098 else
19099   echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19101
19102         ac_cv_lib_gcc___cmpdi2=no
19103 fi
19104
19105 rm -f core conftest.err conftest.$ac_objext \
19106       conftest$ac_exeext conftest.$ac_ext
19107 LIBS=$ac_check_lib_save_LIBS
19108 fi
19109 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19110 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19111 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19112
19113 cat >>confdefs.h <<\_ACEOF
19114 #define HAVE___CMPDI2 1
19115 _ACEOF
19116
19117 fi
19118
19119 fi
19120
19121 if test "$llvm_cv_os_type" = "MingW" ; then
19122   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19123 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19124   cat >conftest.$ac_ext <<_ACEOF
19125 #include <windows.h>
19126 #include <imagehlp.h>
19127 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19128 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19129 _ACEOF
19130 rm -f conftest.$ac_objext
19131 if { (ac_try="$ac_compile"
19132 case "(($ac_try" in
19133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19134   *) ac_try_echo=$ac_try;;
19135 esac
19136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19137   (eval "$ac_compile") 2>conftest.er1
19138   ac_status=$?
19139   grep -v '^ *+' conftest.er1 >conftest.err
19140   rm -f conftest.er1
19141   cat conftest.err >&5
19142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143   (exit $ac_status); } &&
19144          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19145   { (case "(($ac_try" in
19146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19147   *) ac_try_echo=$ac_try;;
19148 esac
19149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19150   (eval "$ac_try") 2>&5
19151   ac_status=$?
19152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153   (exit $ac_status); }; } &&
19154          { ac_try='test -s conftest.$ac_objext'
19155   { (case "(($ac_try" in
19156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19157   *) ac_try_echo=$ac_try;;
19158 esac
19159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19160   (eval "$ac_try") 2>&5
19161   ac_status=$?
19162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163   (exit $ac_status); }; }; then
19164
19165   { echo "$as_me:$LINENO: result: yes" >&5
19166 echo "${ECHO_T}yes" >&6; }
19167   llvm_cv_win32_elmcb_pcstr="PCSTR"
19168
19169 else
19170   echo "$as_me: failed program was:" >&5
19171 sed 's/^/| /' conftest.$ac_ext >&5
19172
19173
19174   { echo "$as_me:$LINENO: result: no" >&5
19175 echo "${ECHO_T}no" >&6; }
19176   llvm_cv_win32_elmcb_pcstr="PSTR"
19177
19178 fi
19179
19180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19181
19182 cat >>confdefs.h <<_ACEOF
19183 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19184 _ACEOF
19185
19186 fi
19187
19188
19189 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19190 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19191 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19192   echo $ECHO_N "(cached) $ECHO_C" >&6
19193 else
19194   ac_ext=cpp
19195 ac_cpp='$CXXCPP $CPPFLAGS'
19196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19199
19200    cat >conftest.$ac_ext <<_ACEOF
19201 /* confdefs.h.  */
19202 _ACEOF
19203 cat confdefs.h >>conftest.$ac_ext
19204 cat >>conftest.$ac_ext <<_ACEOF
19205 /* end confdefs.h.  */
19206 #include <math.h>
19207 int
19208 main ()
19209 {
19210 float f; isnan(f);
19211   ;
19212   return 0;
19213 }
19214 _ACEOF
19215 rm -f conftest.$ac_objext
19216 if { (ac_try="$ac_compile"
19217 case "(($ac_try" in
19218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19219   *) ac_try_echo=$ac_try;;
19220 esac
19221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19222   (eval "$ac_compile") 2>conftest.er1
19223   ac_status=$?
19224   grep -v '^ *+' conftest.er1 >conftest.err
19225   rm -f conftest.er1
19226   cat conftest.err >&5
19227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228   (exit $ac_status); } &&
19229          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19230   { (case "(($ac_try" in
19231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19232   *) ac_try_echo=$ac_try;;
19233 esac
19234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19235   (eval "$ac_try") 2>&5
19236   ac_status=$?
19237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238   (exit $ac_status); }; } &&
19239          { ac_try='test -s conftest.$ac_objext'
19240   { (case "(($ac_try" in
19241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242   *) ac_try_echo=$ac_try;;
19243 esac
19244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245   (eval "$ac_try") 2>&5
19246   ac_status=$?
19247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248   (exit $ac_status); }; }; then
19249   ac_cv_func_isnan_in_math_h=yes
19250 else
19251   echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.$ac_ext >&5
19253
19254         ac_cv_func_isnan_in_math_h=no
19255 fi
19256
19257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19258   ac_ext=c
19259 ac_cpp='$CPP $CPPFLAGS'
19260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19263
19264 fi
19265 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19266 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19267
19268
19269 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19270
19271 cat >>confdefs.h <<\_ACEOF
19272 #define HAVE_ISNAN_IN_MATH_H 1
19273 _ACEOF
19274
19275 fi
19276
19277 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19278 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19279 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19280   echo $ECHO_N "(cached) $ECHO_C" >&6
19281 else
19282   ac_ext=cpp
19283 ac_cpp='$CXXCPP $CPPFLAGS'
19284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19287
19288    cat >conftest.$ac_ext <<_ACEOF
19289 /* confdefs.h.  */
19290 _ACEOF
19291 cat confdefs.h >>conftest.$ac_ext
19292 cat >>conftest.$ac_ext <<_ACEOF
19293 /* end confdefs.h.  */
19294 #include <cmath>
19295 int
19296 main ()
19297 {
19298 float f; isnan(f);
19299   ;
19300   return 0;
19301 }
19302 _ACEOF
19303 rm -f conftest.$ac_objext
19304 if { (ac_try="$ac_compile"
19305 case "(($ac_try" in
19306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19307   *) ac_try_echo=$ac_try;;
19308 esac
19309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19310   (eval "$ac_compile") 2>conftest.er1
19311   ac_status=$?
19312   grep -v '^ *+' conftest.er1 >conftest.err
19313   rm -f conftest.er1
19314   cat conftest.err >&5
19315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316   (exit $ac_status); } &&
19317          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19318   { (case "(($ac_try" in
19319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320   *) ac_try_echo=$ac_try;;
19321 esac
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323   (eval "$ac_try") 2>&5
19324   ac_status=$?
19325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326   (exit $ac_status); }; } &&
19327          { ac_try='test -s conftest.$ac_objext'
19328   { (case "(($ac_try" in
19329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19330   *) ac_try_echo=$ac_try;;
19331 esac
19332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19333   (eval "$ac_try") 2>&5
19334   ac_status=$?
19335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336   (exit $ac_status); }; }; then
19337   ac_cv_func_isnan_in_cmath=yes
19338 else
19339   echo "$as_me: failed program was:" >&5
19340 sed 's/^/| /' conftest.$ac_ext >&5
19341
19342         ac_cv_func_isnan_in_cmath=no
19343 fi
19344
19345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19346   ac_ext=c
19347 ac_cpp='$CPP $CPPFLAGS'
19348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19351
19352 fi
19353 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19354 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19355
19356 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19357
19358 cat >>confdefs.h <<\_ACEOF
19359 #define HAVE_ISNAN_IN_CMATH 1
19360 _ACEOF
19361
19362 fi
19363
19364 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19365 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19366 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19367   echo $ECHO_N "(cached) $ECHO_C" >&6
19368 else
19369   ac_ext=cpp
19370 ac_cpp='$CXXCPP $CPPFLAGS'
19371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19374
19375    cat >conftest.$ac_ext <<_ACEOF
19376 /* confdefs.h.  */
19377 _ACEOF
19378 cat confdefs.h >>conftest.$ac_ext
19379 cat >>conftest.$ac_ext <<_ACEOF
19380 /* end confdefs.h.  */
19381 #include <cmath>
19382 int
19383 main ()
19384 {
19385 float f; std::isnan(f);
19386   ;
19387   return 0;
19388 }
19389 _ACEOF
19390 rm -f conftest.$ac_objext
19391 if { (ac_try="$ac_compile"
19392 case "(($ac_try" in
19393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19394   *) ac_try_echo=$ac_try;;
19395 esac
19396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19397   (eval "$ac_compile") 2>conftest.er1
19398   ac_status=$?
19399   grep -v '^ *+' conftest.er1 >conftest.err
19400   rm -f conftest.er1
19401   cat conftest.err >&5
19402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403   (exit $ac_status); } &&
19404          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19405   { (case "(($ac_try" in
19406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19407   *) ac_try_echo=$ac_try;;
19408 esac
19409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19410   (eval "$ac_try") 2>&5
19411   ac_status=$?
19412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413   (exit $ac_status); }; } &&
19414          { ac_try='test -s conftest.$ac_objext'
19415   { (case "(($ac_try" in
19416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19417   *) ac_try_echo=$ac_try;;
19418 esac
19419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19420   (eval "$ac_try") 2>&5
19421   ac_status=$?
19422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423   (exit $ac_status); }; }; then
19424   ac_cv_func_std_isnan_in_cmath=yes
19425 else
19426   echo "$as_me: failed program was:" >&5
19427 sed 's/^/| /' conftest.$ac_ext >&5
19428
19429         ac_cv_func_std_isnan_in_cmath=no
19430 fi
19431
19432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19433   ac_ext=c
19434 ac_cpp='$CPP $CPPFLAGS'
19435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19438
19439 fi
19440 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19441 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19442
19443 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19444
19445 cat >>confdefs.h <<\_ACEOF
19446 #define HAVE_STD_ISNAN_IN_CMATH 1
19447 _ACEOF
19448
19449 fi
19450
19451
19452 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19453 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19454 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19455   echo $ECHO_N "(cached) $ECHO_C" >&6
19456 else
19457   ac_ext=cpp
19458 ac_cpp='$CXXCPP $CPPFLAGS'
19459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19462
19463    cat >conftest.$ac_ext <<_ACEOF
19464 /* confdefs.h.  */
19465 _ACEOF
19466 cat confdefs.h >>conftest.$ac_ext
19467 cat >>conftest.$ac_ext <<_ACEOF
19468 /* end confdefs.h.  */
19469 #include <math.h>
19470 int
19471 main ()
19472 {
19473 float f; isinf(f);
19474   ;
19475   return 0;
19476 }
19477 _ACEOF
19478 rm -f conftest.$ac_objext
19479 if { (ac_try="$ac_compile"
19480 case "(($ac_try" in
19481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19482   *) ac_try_echo=$ac_try;;
19483 esac
19484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19485   (eval "$ac_compile") 2>conftest.er1
19486   ac_status=$?
19487   grep -v '^ *+' conftest.er1 >conftest.err
19488   rm -f conftest.er1
19489   cat conftest.err >&5
19490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491   (exit $ac_status); } &&
19492          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19493   { (case "(($ac_try" in
19494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495   *) ac_try_echo=$ac_try;;
19496 esac
19497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498   (eval "$ac_try") 2>&5
19499   ac_status=$?
19500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501   (exit $ac_status); }; } &&
19502          { ac_try='test -s conftest.$ac_objext'
19503   { (case "(($ac_try" in
19504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505   *) ac_try_echo=$ac_try;;
19506 esac
19507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19508   (eval "$ac_try") 2>&5
19509   ac_status=$?
19510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511   (exit $ac_status); }; }; then
19512   ac_cv_func_isinf_in_math_h=yes
19513 else
19514   echo "$as_me: failed program was:" >&5
19515 sed 's/^/| /' conftest.$ac_ext >&5
19516
19517         ac_cv_func_isinf_in_math_h=no
19518 fi
19519
19520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19521   ac_ext=c
19522 ac_cpp='$CPP $CPPFLAGS'
19523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19526
19527 fi
19528 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19529 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19530
19531 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19532
19533 cat >>confdefs.h <<\_ACEOF
19534 #define HAVE_ISINF_IN_MATH_H 1
19535 _ACEOF
19536
19537 fi
19538
19539 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19540 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19541 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19542   echo $ECHO_N "(cached) $ECHO_C" >&6
19543 else
19544   ac_ext=cpp
19545 ac_cpp='$CXXCPP $CPPFLAGS'
19546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19549
19550    cat >conftest.$ac_ext <<_ACEOF
19551 /* confdefs.h.  */
19552 _ACEOF
19553 cat confdefs.h >>conftest.$ac_ext
19554 cat >>conftest.$ac_ext <<_ACEOF
19555 /* end confdefs.h.  */
19556 #include <cmath>
19557 int
19558 main ()
19559 {
19560 float f; isinf(f);
19561   ;
19562   return 0;
19563 }
19564 _ACEOF
19565 rm -f conftest.$ac_objext
19566 if { (ac_try="$ac_compile"
19567 case "(($ac_try" in
19568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19569   *) ac_try_echo=$ac_try;;
19570 esac
19571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19572   (eval "$ac_compile") 2>conftest.er1
19573   ac_status=$?
19574   grep -v '^ *+' conftest.er1 >conftest.err
19575   rm -f conftest.er1
19576   cat conftest.err >&5
19577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578   (exit $ac_status); } &&
19579          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19580   { (case "(($ac_try" in
19581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582   *) ac_try_echo=$ac_try;;
19583 esac
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585   (eval "$ac_try") 2>&5
19586   ac_status=$?
19587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588   (exit $ac_status); }; } &&
19589          { ac_try='test -s conftest.$ac_objext'
19590   { (case "(($ac_try" in
19591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19592   *) ac_try_echo=$ac_try;;
19593 esac
19594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19595   (eval "$ac_try") 2>&5
19596   ac_status=$?
19597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598   (exit $ac_status); }; }; then
19599   ac_cv_func_isinf_in_cmath=yes
19600 else
19601   echo "$as_me: failed program was:" >&5
19602 sed 's/^/| /' conftest.$ac_ext >&5
19603
19604         ac_cv_func_isinf_in_cmath=no
19605 fi
19606
19607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19608   ac_ext=c
19609 ac_cpp='$CPP $CPPFLAGS'
19610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19613
19614 fi
19615 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19616 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19617
19618 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19619
19620 cat >>confdefs.h <<\_ACEOF
19621 #define HAVE_ISINF_IN_CMATH 1
19622 _ACEOF
19623
19624 fi
19625
19626 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19627 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19628 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19629   echo $ECHO_N "(cached) $ECHO_C" >&6
19630 else
19631   ac_ext=cpp
19632 ac_cpp='$CXXCPP $CPPFLAGS'
19633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19636
19637    cat >conftest.$ac_ext <<_ACEOF
19638 /* confdefs.h.  */
19639 _ACEOF
19640 cat confdefs.h >>conftest.$ac_ext
19641 cat >>conftest.$ac_ext <<_ACEOF
19642 /* end confdefs.h.  */
19643 #include <cmath>
19644 int
19645 main ()
19646 {
19647 float f; std::isinf(f);
19648   ;
19649   return 0;
19650 }
19651 _ACEOF
19652 rm -f conftest.$ac_objext
19653 if { (ac_try="$ac_compile"
19654 case "(($ac_try" in
19655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19656   *) ac_try_echo=$ac_try;;
19657 esac
19658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19659   (eval "$ac_compile") 2>conftest.er1
19660   ac_status=$?
19661   grep -v '^ *+' conftest.er1 >conftest.err
19662   rm -f conftest.er1
19663   cat conftest.err >&5
19664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665   (exit $ac_status); } &&
19666          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19667   { (case "(($ac_try" in
19668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669   *) ac_try_echo=$ac_try;;
19670 esac
19671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672   (eval "$ac_try") 2>&5
19673   ac_status=$?
19674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675   (exit $ac_status); }; } &&
19676          { ac_try='test -s conftest.$ac_objext'
19677   { (case "(($ac_try" in
19678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19679   *) ac_try_echo=$ac_try;;
19680 esac
19681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19682   (eval "$ac_try") 2>&5
19683   ac_status=$?
19684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685   (exit $ac_status); }; }; then
19686   ac_cv_func_std_isinf_in_cmath=yes
19687 else
19688   echo "$as_me: failed program was:" >&5
19689 sed 's/^/| /' conftest.$ac_ext >&5
19690
19691         ac_cv_func_std_isinf_in_cmath=no
19692 fi
19693
19694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19695   ac_ext=c
19696 ac_cpp='$CPP $CPPFLAGS'
19697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19700
19701 fi
19702 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19703 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19704
19705 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19706
19707 cat >>confdefs.h <<\_ACEOF
19708 #define HAVE_STD_ISINF_IN_CMATH 1
19709 _ACEOF
19710
19711 fi
19712
19713 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19714 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19715 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19716   echo $ECHO_N "(cached) $ECHO_C" >&6
19717 else
19718   ac_ext=cpp
19719 ac_cpp='$CXXCPP $CPPFLAGS'
19720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19723
19724    cat >conftest.$ac_ext <<_ACEOF
19725 /* confdefs.h.  */
19726 _ACEOF
19727 cat confdefs.h >>conftest.$ac_ext
19728 cat >>conftest.$ac_ext <<_ACEOF
19729 /* end confdefs.h.  */
19730 #include <ieeefp.h>
19731 int
19732 main ()
19733 {
19734 float f; finite(f);
19735   ;
19736   return 0;
19737 }
19738 _ACEOF
19739 rm -f conftest.$ac_objext
19740 if { (ac_try="$ac_compile"
19741 case "(($ac_try" in
19742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743   *) ac_try_echo=$ac_try;;
19744 esac
19745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19746   (eval "$ac_compile") 2>conftest.er1
19747   ac_status=$?
19748   grep -v '^ *+' conftest.er1 >conftest.err
19749   rm -f conftest.er1
19750   cat conftest.err >&5
19751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752   (exit $ac_status); } &&
19753          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19754   { (case "(($ac_try" in
19755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19756   *) ac_try_echo=$ac_try;;
19757 esac
19758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19759   (eval "$ac_try") 2>&5
19760   ac_status=$?
19761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762   (exit $ac_status); }; } &&
19763          { ac_try='test -s conftest.$ac_objext'
19764   { (case "(($ac_try" in
19765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766   *) ac_try_echo=$ac_try;;
19767 esac
19768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769   (eval "$ac_try") 2>&5
19770   ac_status=$?
19771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772   (exit $ac_status); }; }; then
19773   ac_cv_func_finite_in_ieeefp_h=yes
19774 else
19775   echo "$as_me: failed program was:" >&5
19776 sed 's/^/| /' conftest.$ac_ext >&5
19777
19778         ac_cv_func_finite_in_ieeefp_h=no
19779 fi
19780
19781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19782   ac_ext=c
19783 ac_cpp='$CPP $CPPFLAGS'
19784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19787
19788 fi
19789 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19790 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19791
19792 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19793
19794 cat >>confdefs.h <<\_ACEOF
19795 #define HAVE_FINITE_IN_IEEEFP_H 1
19796 _ACEOF
19797
19798 fi
19799
19800
19801
19802 if test "$llvm_cv_platform_type" = "Unix" ; then
19803
19804
19805 for ac_header in stdlib.h unistd.h
19806 do
19807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19809   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19812   echo $ECHO_N "(cached) $ECHO_C" >&6
19813 fi
19814 ac_res=`eval echo '${'$as_ac_Header'}'`
19815                { echo "$as_me:$LINENO: result: $ac_res" >&5
19816 echo "${ECHO_T}$ac_res" >&6; }
19817 else
19818   # Is the header compilable?
19819 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19821 cat >conftest.$ac_ext <<_ACEOF
19822 /* confdefs.h.  */
19823 _ACEOF
19824 cat confdefs.h >>conftest.$ac_ext
19825 cat >>conftest.$ac_ext <<_ACEOF
19826 /* end confdefs.h.  */
19827 $ac_includes_default
19828 #include <$ac_header>
19829 _ACEOF
19830 rm -f conftest.$ac_objext
19831 if { (ac_try="$ac_compile"
19832 case "(($ac_try" in
19833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19834   *) ac_try_echo=$ac_try;;
19835 esac
19836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19837   (eval "$ac_compile") 2>conftest.er1
19838   ac_status=$?
19839   grep -v '^ *+' conftest.er1 >conftest.err
19840   rm -f conftest.er1
19841   cat conftest.err >&5
19842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843   (exit $ac_status); } &&
19844          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19845   { (case "(($ac_try" in
19846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19847   *) ac_try_echo=$ac_try;;
19848 esac
19849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19850   (eval "$ac_try") 2>&5
19851   ac_status=$?
19852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853   (exit $ac_status); }; } &&
19854          { ac_try='test -s conftest.$ac_objext'
19855   { (case "(($ac_try" in
19856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857   *) ac_try_echo=$ac_try;;
19858 esac
19859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19860   (eval "$ac_try") 2>&5
19861   ac_status=$?
19862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863   (exit $ac_status); }; }; then
19864   ac_header_compiler=yes
19865 else
19866   echo "$as_me: failed program was:" >&5
19867 sed 's/^/| /' conftest.$ac_ext >&5
19868
19869         ac_header_compiler=no
19870 fi
19871
19872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19874 echo "${ECHO_T}$ac_header_compiler" >&6; }
19875
19876 # Is the header present?
19877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19879 cat >conftest.$ac_ext <<_ACEOF
19880 /* confdefs.h.  */
19881 _ACEOF
19882 cat confdefs.h >>conftest.$ac_ext
19883 cat >>conftest.$ac_ext <<_ACEOF
19884 /* end confdefs.h.  */
19885 #include <$ac_header>
19886 _ACEOF
19887 if { (ac_try="$ac_cpp conftest.$ac_ext"
19888 case "(($ac_try" in
19889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890   *) ac_try_echo=$ac_try;;
19891 esac
19892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19894   ac_status=$?
19895   grep -v '^ *+' conftest.er1 >conftest.err
19896   rm -f conftest.er1
19897   cat conftest.err >&5
19898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899   (exit $ac_status); } >/dev/null; then
19900   if test -s conftest.err; then
19901     ac_cpp_err=$ac_c_preproc_warn_flag
19902     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19903   else
19904     ac_cpp_err=
19905   fi
19906 else
19907   ac_cpp_err=yes
19908 fi
19909 if test -z "$ac_cpp_err"; then
19910   ac_header_preproc=yes
19911 else
19912   echo "$as_me: failed program was:" >&5
19913 sed 's/^/| /' conftest.$ac_ext >&5
19914
19915   ac_header_preproc=no
19916 fi
19917
19918 rm -f conftest.err conftest.$ac_ext
19919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19920 echo "${ECHO_T}$ac_header_preproc" >&6; }
19921
19922 # So?  What about this header?
19923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19924   yes:no: )
19925     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19929     ac_header_preproc=yes
19930     ;;
19931   no:yes:* )
19932     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19934     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19935 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19936     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19938     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19939 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19940     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19942     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19944     ( cat <<\_ASBOX
19945 ## ------------------------------ ##
19946 ## Report this to bugs@yourdomain ##
19947 ## ------------------------------ ##
19948 _ASBOX
19949      ) | sed "s/^/$as_me: WARNING:     /" >&2
19950     ;;
19951 esac
19952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19955   echo $ECHO_N "(cached) $ECHO_C" >&6
19956 else
19957   eval "$as_ac_Header=\$ac_header_preproc"
19958 fi
19959 ac_res=`eval echo '${'$as_ac_Header'}'`
19960                { echo "$as_me:$LINENO: result: $ac_res" >&5
19961 echo "${ECHO_T}$ac_res" >&6; }
19962
19963 fi
19964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19965   cat >>confdefs.h <<_ACEOF
19966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19967 _ACEOF
19968
19969 fi
19970
19971 done
19972
19973
19974 for ac_func in getpagesize
19975 do
19976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19979 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19980   echo $ECHO_N "(cached) $ECHO_C" >&6
19981 else
19982   cat >conftest.$ac_ext <<_ACEOF
19983 /* confdefs.h.  */
19984 _ACEOF
19985 cat confdefs.h >>conftest.$ac_ext
19986 cat >>conftest.$ac_ext <<_ACEOF
19987 /* end confdefs.h.  */
19988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19990 #define $ac_func innocuous_$ac_func
19991
19992 /* System header to define __stub macros and hopefully few prototypes,
19993     which can conflict with char $ac_func (); below.
19994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19995     <limits.h> exists even on freestanding compilers.  */
19996
19997 #ifdef __STDC__
19998 # include <limits.h>
19999 #else
20000 # include <assert.h>
20001 #endif
20002
20003 #undef $ac_func
20004
20005 /* Override any GCC internal prototype to avoid an error.
20006    Use char because int might match the return type of a GCC
20007    builtin and then its argument prototype would still apply.  */
20008 #ifdef __cplusplus
20009 extern "C"
20010 #endif
20011 char $ac_func ();
20012 /* The GNU C library defines this for functions which it implements
20013     to always fail with ENOSYS.  Some functions are actually named
20014     something starting with __ and the normal name is an alias.  */
20015 #if defined __stub_$ac_func || defined __stub___$ac_func
20016 choke me
20017 #endif
20018
20019 int
20020 main ()
20021 {
20022 return $ac_func ();
20023   ;
20024   return 0;
20025 }
20026 _ACEOF
20027 rm -f conftest.$ac_objext conftest$ac_exeext
20028 if { (ac_try="$ac_link"
20029 case "(($ac_try" in
20030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20031   *) ac_try_echo=$ac_try;;
20032 esac
20033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20034   (eval "$ac_link") 2>conftest.er1
20035   ac_status=$?
20036   grep -v '^ *+' conftest.er1 >conftest.err
20037   rm -f conftest.er1
20038   cat conftest.err >&5
20039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040   (exit $ac_status); } &&
20041          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20042   { (case "(($ac_try" in
20043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044   *) ac_try_echo=$ac_try;;
20045 esac
20046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047   (eval "$ac_try") 2>&5
20048   ac_status=$?
20049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050   (exit $ac_status); }; } &&
20051          { ac_try='test -s conftest$ac_exeext'
20052   { (case "(($ac_try" in
20053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20054   *) ac_try_echo=$ac_try;;
20055 esac
20056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20057   (eval "$ac_try") 2>&5
20058   ac_status=$?
20059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060   (exit $ac_status); }; }; then
20061   eval "$as_ac_var=yes"
20062 else
20063   echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20065
20066         eval "$as_ac_var=no"
20067 fi
20068
20069 rm -f core conftest.err conftest.$ac_objext \
20070       conftest$ac_exeext conftest.$ac_ext
20071 fi
20072 ac_res=`eval echo '${'$as_ac_var'}'`
20073                { echo "$as_me:$LINENO: result: $ac_res" >&5
20074 echo "${ECHO_T}$ac_res" >&6; }
20075 if test `eval echo '${'$as_ac_var'}'` = yes; then
20076   cat >>confdefs.h <<_ACEOF
20077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20078 _ACEOF
20079
20080 fi
20081 done
20082
20083 { echo "$as_me:$LINENO: checking for working mmap" >&5
20084 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20085 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20086   echo $ECHO_N "(cached) $ECHO_C" >&6
20087 else
20088   if test "$cross_compiling" = yes; then
20089   ac_cv_func_mmap_fixed_mapped=no
20090 else
20091   cat >conftest.$ac_ext <<_ACEOF
20092 /* confdefs.h.  */
20093 _ACEOF
20094 cat confdefs.h >>conftest.$ac_ext
20095 cat >>conftest.$ac_ext <<_ACEOF
20096 /* end confdefs.h.  */
20097 $ac_includes_default
20098 /* malloc might have been renamed as rpl_malloc. */
20099 #undef malloc
20100
20101 /* Thanks to Mike Haertel and Jim Avera for this test.
20102    Here is a matrix of mmap possibilities:
20103         mmap private not fixed
20104         mmap private fixed at somewhere currently unmapped
20105         mmap private fixed at somewhere already mapped
20106         mmap shared not fixed
20107         mmap shared fixed at somewhere currently unmapped
20108         mmap shared fixed at somewhere already mapped
20109    For private mappings, we should verify that changes cannot be read()
20110    back from the file, nor mmap's back from the file at a different
20111    address.  (There have been systems where private was not correctly
20112    implemented like the infamous i386 svr4.0, and systems where the
20113    VM page cache was not coherent with the file system buffer cache
20114    like early versions of FreeBSD and possibly contemporary NetBSD.)
20115    For shared mappings, we should conversely verify that changes get
20116    propagated back to all the places they're supposed to be.
20117
20118    Grep wants private fixed already mapped.
20119    The main things grep needs to know about mmap are:
20120    * does it exist and is it safe to write into the mmap'd area
20121    * how to use it (BSD variants)  */
20122
20123 #include <fcntl.h>
20124 #include <sys/mman.h>
20125
20126 #if !STDC_HEADERS && !HAVE_STDLIB_H
20127 char *malloc ();
20128 #endif
20129
20130 /* This mess was copied from the GNU getpagesize.h.  */
20131 #if !HAVE_GETPAGESIZE
20132 /* Assume that all systems that can run configure have sys/param.h.  */
20133 # if !HAVE_SYS_PARAM_H
20134 #  define HAVE_SYS_PARAM_H 1
20135 # endif
20136
20137 # ifdef _SC_PAGESIZE
20138 #  define getpagesize() sysconf(_SC_PAGESIZE)
20139 # else /* no _SC_PAGESIZE */
20140 #  if HAVE_SYS_PARAM_H
20141 #   include <sys/param.h>
20142 #   ifdef EXEC_PAGESIZE
20143 #    define getpagesize() EXEC_PAGESIZE
20144 #   else /* no EXEC_PAGESIZE */
20145 #    ifdef NBPG
20146 #     define getpagesize() NBPG * CLSIZE
20147 #     ifndef CLSIZE
20148 #      define CLSIZE 1
20149 #     endif /* no CLSIZE */
20150 #    else /* no NBPG */
20151 #     ifdef NBPC
20152 #      define getpagesize() NBPC
20153 #     else /* no NBPC */
20154 #      ifdef PAGESIZE
20155 #       define getpagesize() PAGESIZE
20156 #      endif /* PAGESIZE */
20157 #     endif /* no NBPC */
20158 #    endif /* no NBPG */
20159 #   endif /* no EXEC_PAGESIZE */
20160 #  else /* no HAVE_SYS_PARAM_H */
20161 #   define getpagesize() 8192   /* punt totally */
20162 #  endif /* no HAVE_SYS_PARAM_H */
20163 # endif /* no _SC_PAGESIZE */
20164
20165 #endif /* no HAVE_GETPAGESIZE */
20166
20167 int
20168 main ()
20169 {
20170   char *data, *data2, *data3;
20171   int i, pagesize;
20172   int fd;
20173
20174   pagesize = getpagesize ();
20175
20176   /* First, make a file with some known garbage in it. */
20177   data = (char *) malloc (pagesize);
20178   if (!data)
20179     return 1;
20180   for (i = 0; i < pagesize; ++i)
20181     *(data + i) = rand ();
20182   umask (0);
20183   fd = creat ("conftest.mmap", 0600);
20184   if (fd < 0)
20185     return 1;
20186   if (write (fd, data, pagesize) != pagesize)
20187     return 1;
20188   close (fd);
20189
20190   /* Next, try to mmap the file at a fixed address which already has
20191      something else allocated at it.  If we can, also make sure that
20192      we see the same garbage.  */
20193   fd = open ("conftest.mmap", O_RDWR);
20194   if (fd < 0)
20195     return 1;
20196   data2 = (char *) malloc (2 * pagesize);
20197   if (!data2)
20198     return 1;
20199   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20200   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20201                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20202     return 1;
20203   for (i = 0; i < pagesize; ++i)
20204     if (*(data + i) != *(data2 + i))
20205       return 1;
20206
20207   /* Finally, make sure that changes to the mapped area do not
20208      percolate back to the file as seen by read().  (This is a bug on
20209      some variants of i386 svr4.0.)  */
20210   for (i = 0; i < pagesize; ++i)
20211     *(data2 + i) = *(data2 + i) + 1;
20212   data3 = (char *) malloc (pagesize);
20213   if (!data3)
20214     return 1;
20215   if (read (fd, data3, pagesize) != pagesize)
20216     return 1;
20217   for (i = 0; i < pagesize; ++i)
20218     if (*(data + i) != *(data3 + i))
20219       return 1;
20220   close (fd);
20221   return 0;
20222 }
20223 _ACEOF
20224 rm -f conftest$ac_exeext
20225 if { (ac_try="$ac_link"
20226 case "(($ac_try" in
20227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20228   *) ac_try_echo=$ac_try;;
20229 esac
20230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20231   (eval "$ac_link") 2>&5
20232   ac_status=$?
20233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20235   { (case "(($ac_try" in
20236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20237   *) ac_try_echo=$ac_try;;
20238 esac
20239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20240   (eval "$ac_try") 2>&5
20241   ac_status=$?
20242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243   (exit $ac_status); }; }; then
20244   ac_cv_func_mmap_fixed_mapped=yes
20245 else
20246   echo "$as_me: program exited with status $ac_status" >&5
20247 echo "$as_me: failed program was:" >&5
20248 sed 's/^/| /' conftest.$ac_ext >&5
20249
20250 ( exit $ac_status )
20251 ac_cv_func_mmap_fixed_mapped=no
20252 fi
20253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20254 fi
20255
20256
20257 fi
20258 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20259 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20260 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20261
20262 cat >>confdefs.h <<\_ACEOF
20263 #define HAVE_MMAP 1
20264 _ACEOF
20265
20266 fi
20267 rm -f conftest.mmap
20268
20269   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20270 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20271 if test "${ac_cv_func_mmap_file+set}" = set; then
20272   echo $ECHO_N "(cached) $ECHO_C" >&6
20273 else
20274    ac_ext=c
20275 ac_cpp='$CPP $CPPFLAGS'
20276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20279
20280   if test "$cross_compiling" = yes; then
20281   ac_cv_func_mmap_file=no
20282 else
20283   cat >conftest.$ac_ext <<_ACEOF
20284
20285     /* confdefs.h.  */
20286 _ACEOF
20287 cat confdefs.h >>conftest.$ac_ext
20288 cat >>conftest.$ac_ext <<_ACEOF
20289 /* end confdefs.h.  */
20290
20291 #include <sys/types.h>
20292 #include <sys/mman.h>
20293 #include <fcntl.h>
20294
20295 int
20296 main ()
20297 {
20298
20299   int fd;
20300   fd = creat ("foo",0777);
20301   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20302   unlink ("foo");
20303   return (fd != (int) MAP_FAILED);
20304   ;
20305   return 0;
20306 }
20307 _ACEOF
20308 rm -f conftest$ac_exeext
20309 if { (ac_try="$ac_link"
20310 case "(($ac_try" in
20311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20312   *) ac_try_echo=$ac_try;;
20313 esac
20314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20315   (eval "$ac_link") 2>&5
20316   ac_status=$?
20317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20319   { (case "(($ac_try" in
20320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321   *) ac_try_echo=$ac_try;;
20322 esac
20323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20324   (eval "$ac_try") 2>&5
20325   ac_status=$?
20326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327   (exit $ac_status); }; }; then
20328   ac_cv_func_mmap_file=yes
20329 else
20330   echo "$as_me: program exited with status $ac_status" >&5
20331 echo "$as_me: failed program was:" >&5
20332 sed 's/^/| /' conftest.$ac_ext >&5
20333
20334 ( exit $ac_status )
20335 ac_cv_func_mmap_file=no
20336 fi
20337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20338 fi
20339
20340
20341   ac_ext=c
20342 ac_cpp='$CPP $CPPFLAGS'
20343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20346
20347
20348 fi
20349 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20350 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20351 if test "$ac_cv_func_mmap_file" = yes; then
20352
20353 cat >>confdefs.h <<\_ACEOF
20354 #define HAVE_MMAP_FILE
20355 _ACEOF
20356
20357    MMAP_FILE=yes
20358
20359 fi
20360
20361   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20362 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20363 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20364   echo $ECHO_N "(cached) $ECHO_C" >&6
20365 else
20366   if test "$llvm_cv_os_type" = "Interix" ; then
20367    ac_cv_need_dev_zero_for_mmap=yes
20368  else
20369    ac_cv_need_dev_zero_for_mmap=no
20370  fi
20371
20372 fi
20373 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20374 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20375 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20376
20377 cat >>confdefs.h <<\_ACEOF
20378 #define NEED_DEV_ZERO_FOR_MMAP 1
20379 _ACEOF
20380
20381 fi
20382
20383   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20384   then
20385     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20386 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20387   fi
20388   if test "$ac_cv_func_mmap_file" = "no"
20389   then
20390     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20391 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20392   fi
20393 fi
20394
20395 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20396 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20397 ac_ext=cpp
20398 ac_cpp='$CXXCPP $CPPFLAGS'
20399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20402
20403 cat >conftest.$ac_ext <<_ACEOF
20404 /* confdefs.h.  */
20405 _ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h.  */
20409 int main() {
20410         volatile unsigned long val = 1;
20411         __sync_synchronize();
20412         __sync_val_compare_and_swap(&val, 1, 0);
20413         __sync_add_and_fetch(&val, 1);
20414         __sync_sub_and_fetch(&val, 1);
20415         return 0;
20416       }
20417
20418 _ACEOF
20419 rm -f conftest.$ac_objext conftest$ac_exeext
20420 if { (ac_try="$ac_link"
20421 case "(($ac_try" in
20422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423   *) ac_try_echo=$ac_try;;
20424 esac
20425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426   (eval "$ac_link") 2>conftest.er1
20427   ac_status=$?
20428   grep -v '^ *+' conftest.er1 >conftest.err
20429   rm -f conftest.er1
20430   cat conftest.err >&5
20431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432   (exit $ac_status); } &&
20433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20434   { (case "(($ac_try" in
20435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436   *) ac_try_echo=$ac_try;;
20437 esac
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439   (eval "$ac_try") 2>&5
20440   ac_status=$?
20441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442   (exit $ac_status); }; } &&
20443          { ac_try='test -s conftest$ac_exeext'
20444   { (case "(($ac_try" in
20445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20446   *) ac_try_echo=$ac_try;;
20447 esac
20448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20449   (eval "$ac_try") 2>&5
20450   ac_status=$?
20451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452   (exit $ac_status); }; }; then
20453   ac_ext=c
20454 ac_cpp='$CPP $CPPFLAGS'
20455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20458
20459   { echo "$as_me:$LINENO: result: yes" >&5
20460 echo "${ECHO_T}yes" >&6; }
20461
20462 cat >>confdefs.h <<\_ACEOF
20463 #define LLVM_HAS_ATOMICS 1
20464 _ACEOF
20465
20466 else
20467   echo "$as_me: failed program was:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20469
20470         { echo "$as_me:$LINENO: result: no" >&5
20471 echo "${ECHO_T}no" >&6; }
20472
20473 cat >>confdefs.h <<\_ACEOF
20474 #define LLVM_HAS_ATOMICS 0
20475 _ACEOF
20476
20477   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20478 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20479 fi
20480
20481 rm -f core conftest.err conftest.$ac_objext \
20482       conftest$ac_exeext conftest.$ac_ext
20483
20484
20485 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20486   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20487 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20488 if test "${llvm_cv_linux_mixed+set}" = set; then
20489   echo $ECHO_N "(cached) $ECHO_C" >&6
20490 else
20491    ac_ext=c
20492 ac_cpp='$CPP $CPPFLAGS'
20493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20496
20497   cat >conftest.$ac_ext <<_ACEOF
20498 /* confdefs.h.  */
20499 _ACEOF
20500 cat confdefs.h >>conftest.$ac_ext
20501 cat >>conftest.$ac_ext <<_ACEOF
20502 /* end confdefs.h.  */
20503 #ifndef __x86_64__
20504        error: Not x86-64 even if uname says so!
20505       #endif
20506
20507 int
20508 main ()
20509 {
20510
20511   ;
20512   return 0;
20513 }
20514 _ACEOF
20515 rm -f conftest.$ac_objext
20516 if { (ac_try="$ac_compile"
20517 case "(($ac_try" in
20518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20519   *) ac_try_echo=$ac_try;;
20520 esac
20521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20522   (eval "$ac_compile") 2>conftest.er1
20523   ac_status=$?
20524   grep -v '^ *+' conftest.er1 >conftest.err
20525   rm -f conftest.er1
20526   cat conftest.err >&5
20527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528   (exit $ac_status); } &&
20529          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20530   { (case "(($ac_try" in
20531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20532   *) ac_try_echo=$ac_try;;
20533 esac
20534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20535   (eval "$ac_try") 2>&5
20536   ac_status=$?
20537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538   (exit $ac_status); }; } &&
20539          { ac_try='test -s conftest.$ac_objext'
20540   { (case "(($ac_try" in
20541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20542   *) ac_try_echo=$ac_try;;
20543 esac
20544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20545   (eval "$ac_try") 2>&5
20546   ac_status=$?
20547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548   (exit $ac_status); }; }; then
20549   llvm_cv_linux_mixed=no
20550 else
20551   echo "$as_me: failed program was:" >&5
20552 sed 's/^/| /' conftest.$ac_ext >&5
20553
20554         llvm_cv_linux_mixed=yes
20555 fi
20556
20557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20558   ac_ext=c
20559 ac_cpp='$CPP $CPPFLAGS'
20560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20563
20564
20565 fi
20566 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20567 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20568
20569   if test "$llvm_cv_linux_mixed" = "yes"; then
20570     llvm_cv_target_arch="x86"
20571     ARCH="x86"
20572   fi
20573 fi
20574
20575
20576 for ac_func in __dso_handle
20577 do
20578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20579 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20582   echo $ECHO_N "(cached) $ECHO_C" >&6
20583 else
20584   cat >conftest.$ac_ext <<_ACEOF
20585 /* confdefs.h.  */
20586 _ACEOF
20587 cat confdefs.h >>conftest.$ac_ext
20588 cat >>conftest.$ac_ext <<_ACEOF
20589 /* end confdefs.h.  */
20590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20592 #define $ac_func innocuous_$ac_func
20593
20594 /* System header to define __stub macros and hopefully few prototypes,
20595     which can conflict with char $ac_func (); below.
20596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20597     <limits.h> exists even on freestanding compilers.  */
20598
20599 #ifdef __STDC__
20600 # include <limits.h>
20601 #else
20602 # include <assert.h>
20603 #endif
20604
20605 #undef $ac_func
20606
20607 /* Override any GCC internal prototype to avoid an error.
20608    Use char because int might match the return type of a GCC
20609    builtin and then its argument prototype would still apply.  */
20610 #ifdef __cplusplus
20611 extern "C"
20612 #endif
20613 char $ac_func ();
20614 /* The GNU C library defines this for functions which it implements
20615     to always fail with ENOSYS.  Some functions are actually named
20616     something starting with __ and the normal name is an alias.  */
20617 #if defined __stub_$ac_func || defined __stub___$ac_func
20618 choke me
20619 #endif
20620
20621 int
20622 main ()
20623 {
20624 return $ac_func ();
20625   ;
20626   return 0;
20627 }
20628 _ACEOF
20629 rm -f conftest.$ac_objext conftest$ac_exeext
20630 if { (ac_try="$ac_link"
20631 case "(($ac_try" in
20632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633   *) ac_try_echo=$ac_try;;
20634 esac
20635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20636   (eval "$ac_link") 2>conftest.er1
20637   ac_status=$?
20638   grep -v '^ *+' conftest.er1 >conftest.err
20639   rm -f conftest.er1
20640   cat conftest.err >&5
20641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642   (exit $ac_status); } &&
20643          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20644   { (case "(($ac_try" in
20645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646   *) ac_try_echo=$ac_try;;
20647 esac
20648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649   (eval "$ac_try") 2>&5
20650   ac_status=$?
20651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652   (exit $ac_status); }; } &&
20653          { ac_try='test -s conftest$ac_exeext'
20654   { (case "(($ac_try" in
20655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20656   *) ac_try_echo=$ac_try;;
20657 esac
20658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20659   (eval "$ac_try") 2>&5
20660   ac_status=$?
20661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662   (exit $ac_status); }; }; then
20663   eval "$as_ac_var=yes"
20664 else
20665   echo "$as_me: failed program was:" >&5
20666 sed 's/^/| /' conftest.$ac_ext >&5
20667
20668         eval "$as_ac_var=no"
20669 fi
20670
20671 rm -f core conftest.err conftest.$ac_objext \
20672       conftest$ac_exeext conftest.$ac_ext
20673 fi
20674 ac_res=`eval echo '${'$as_ac_var'}'`
20675                { echo "$as_me:$LINENO: result: $ac_res" >&5
20676 echo "${ECHO_T}$ac_res" >&6; }
20677 if test `eval echo '${'$as_ac_var'}'` = yes; then
20678   cat >>confdefs.h <<_ACEOF
20679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20680 _ACEOF
20681
20682 fi
20683 done
20684
20685
20686 SHLIBEXT=$libltdl_cv_shlibext
20687
20688
20689 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20690
20691
20692 # Translate the various configuration directories and other basic
20693 # information into substitutions that will end up in Makefile.config.in
20694 # that these configured values can be used by the makefiles
20695 if test "${prefix}" = "NONE" ; then
20696   prefix="/usr/local"
20697 fi
20698 eval LLVM_PREFIX="${prefix}";
20699 eval LLVM_BINDIR="${prefix}/bin";
20700 eval LLVM_LIBDIR="${prefix}/lib";
20701 eval LLVM_DATADIR="${prefix}/share/llvm";
20702 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20703 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20704 eval LLVM_INCLUDEDIR="${prefix}/include";
20705 eval LLVM_INFODIR="${prefix}/info";
20706 eval LLVM_MANDIR="${prefix}/man";
20707 LLVM_CONFIGTIME=`date`
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719 # Place the various directores into the config.h file as #defines so that we
20720 # can know about the installation paths within LLVM.
20721
20722 cat >>confdefs.h <<_ACEOF
20723 #define LLVM_PREFIX "$LLVM_PREFIX"
20724 _ACEOF
20725
20726
20727 cat >>confdefs.h <<_ACEOF
20728 #define LLVM_BINDIR "$LLVM_BINDIR"
20729 _ACEOF
20730
20731
20732 cat >>confdefs.h <<_ACEOF
20733 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20734 _ACEOF
20735
20736
20737 cat >>confdefs.h <<_ACEOF
20738 #define LLVM_DATADIR "$LLVM_DATADIR"
20739 _ACEOF
20740
20741
20742 cat >>confdefs.h <<_ACEOF
20743 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20744 _ACEOF
20745
20746
20747 cat >>confdefs.h <<_ACEOF
20748 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20749 _ACEOF
20750
20751
20752 cat >>confdefs.h <<_ACEOF
20753 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20754 _ACEOF
20755
20756
20757 cat >>confdefs.h <<_ACEOF
20758 #define LLVM_INFODIR "$LLVM_INFODIR"
20759 _ACEOF
20760
20761
20762 cat >>confdefs.h <<_ACEOF
20763 #define LLVM_MANDIR "$LLVM_MANDIR"
20764 _ACEOF
20765
20766
20767 cat >>confdefs.h <<_ACEOF
20768 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20769 _ACEOF
20770
20771
20772 cat >>confdefs.h <<_ACEOF
20773 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20774 _ACEOF
20775
20776
20777 # Determine which bindings to build.
20778 if test "$BINDINGS_TO_BUILD" = auto ; then
20779   BINDINGS_TO_BUILD=""
20780   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20781     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20782   fi
20783 fi
20784 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20785
20786
20787 # This isn't really configurey, but it avoids having to repeat the list in
20788 # other files.
20789 ALL_BINDINGS=ocaml
20790
20791
20792 # Do any work necessary to ensure that bindings have what they need.
20793 binding_prereqs_failed=0
20794 for a_binding in $BINDINGS_TO_BUILD ; do
20795   case "$a_binding" in
20796   ocaml)
20797     if test "x$OCAMLC" = x ; then
20798       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20799 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20800       binding_prereqs_failed=1
20801     fi
20802     if test "x$OCAMLDEP" = x ; then
20803       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20804 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20805       binding_prereqs_failed=1
20806     fi
20807     if test "x$OCAMLOPT" = x ; then
20808       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20809 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20810           fi
20811     if test "x$with_ocaml_libdir" != xauto ; then
20812       OCAML_LIBDIR=$with_ocaml_libdir
20813
20814     else
20815       ocaml_stdlib="`"$OCAMLC" -where`"
20816       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20817       then
20818         # ocaml stdlib is beneath our prefix; use stdlib
20819         OCAML_LIBDIR=$ocaml_stdlib
20820
20821       else
20822         # ocaml stdlib is outside our prefix; use libdir/ocaml
20823         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20824
20825       fi
20826     fi
20827     ;;
20828   esac
20829 done
20830 if test "$binding_prereqs_failed" = 1 ; then
20831   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20832 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20833    { (exit 1); exit 1; }; }
20834 fi
20835
20836 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20837 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20838 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20839   echo $ECHO_N "(cached) $ECHO_C" >&6
20840 else
20841    ac_ext=cpp
20842 ac_cpp='$CXXCPP $CPPFLAGS'
20843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20846
20847   oldcxxflags="$CXXFLAGS"
20848   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20849   cat >conftest.$ac_ext <<_ACEOF
20850 /* confdefs.h.  */
20851 _ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h.  */
20855 template <typename T> struct X { void __attribute__((noinline)) f() {} };
20856 int
20857 main ()
20858 {
20859 X<int>().f();
20860   ;
20861   return 0;
20862 }
20863 _ACEOF
20864 rm -f conftest.$ac_objext
20865 if { (ac_try="$ac_compile"
20866 case "(($ac_try" in
20867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20868   *) ac_try_echo=$ac_try;;
20869 esac
20870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20871   (eval "$ac_compile") 2>conftest.er1
20872   ac_status=$?
20873   grep -v '^ *+' conftest.er1 >conftest.err
20874   rm -f conftest.er1
20875   cat conftest.err >&5
20876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877   (exit $ac_status); } &&
20878          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20879   { (case "(($ac_try" in
20880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20881   *) ac_try_echo=$ac_try;;
20882 esac
20883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20884   (eval "$ac_try") 2>&5
20885   ac_status=$?
20886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887   (exit $ac_status); }; } &&
20888          { ac_try='test -s conftest.$ac_objext'
20889   { (case "(($ac_try" in
20890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20891   *) ac_try_echo=$ac_try;;
20892 esac
20893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20894   (eval "$ac_try") 2>&5
20895   ac_status=$?
20896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897   (exit $ac_status); }; }; then
20898   llvm_cv_cxx_visibility_inlines_hidden=yes
20899 else
20900   echo "$as_me: failed program was:" >&5
20901 sed 's/^/| /' conftest.$ac_ext >&5
20902
20903         llvm_cv_cxx_visibility_inlines_hidden=no
20904 fi
20905
20906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20907   CXXFLAGS="$oldcxxflags"
20908   ac_ext=c
20909 ac_cpp='$CPP $CPPFLAGS'
20910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20913
20914
20915 fi
20916 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20917 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20918 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20919   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20920
20921 else
20922   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20923
20924 fi
20925
20926
20927 if test "$llvm_cv_link_use_r" = "yes" ; then
20928   RPATH="-Wl,-R"
20929 else
20930   RPATH="-Wl,-rpath"
20931 fi
20932
20933
20934 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20935   RDYNAMIC="-Wl,-export-dynamic"
20936 else
20937   RDYNAMIC=""
20938 fi
20939
20940
20941
20942
20943 ac_config_files="$ac_config_files Makefile.common"
20944
20945 ac_config_files="$ac_config_files Makefile.llvm.config"
20946
20947
20948 ac_config_commands="$ac_config_commands Makefile"
20949
20950
20951 ac_config_commands="$ac_config_commands lib/Makefile"
20952
20953
20954 ac_config_commands="$ac_config_commands lib/sample/Makefile"
20955
20956
20957 ac_config_commands="$ac_config_commands tools/Makefile"
20958
20959
20960 ac_config_commands="$ac_config_commands tools/sample/Makefile"
20961
20962
20963
20964 cat >confcache <<\_ACEOF
20965 # This file is a shell script that caches the results of configure
20966 # tests run on this system so they can be shared between configure
20967 # scripts and configure runs, see configure's option --config-cache.
20968 # It is not useful on other systems.  If it contains results you don't
20969 # want to keep, you may remove or edit it.
20970 #
20971 # config.status only pays attention to the cache file if you give it
20972 # the --recheck option to rerun configure.
20973 #
20974 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20975 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20976 # following values.
20977
20978 _ACEOF
20979
20980 # The following way of writing the cache mishandles newlines in values,
20981 # but we know of no workaround that is simple, portable, and efficient.
20982 # So, we kill variables containing newlines.
20983 # Ultrix sh set writes to stderr and can't be redirected directly,
20984 # and sets the high bit in the cache file unless we assign to the vars.
20985 (
20986   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20987     eval ac_val=\$$ac_var
20988     case $ac_val in #(
20989     *${as_nl}*)
20990       case $ac_var in #(
20991       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20992 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20993       esac
20994       case $ac_var in #(
20995       _ | IFS | as_nl) ;; #(
20996       *) $as_unset $ac_var ;;
20997       esac ;;
20998     esac
20999   done
21000
21001   (set) 2>&1 |
21002     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21003     *${as_nl}ac_space=\ *)
21004       # `set' does not quote correctly, so add quotes (double-quote
21005       # substitution turns \\\\ into \\, and sed turns \\ into \).
21006       sed -n \
21007         "s/'/'\\\\''/g;
21008           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21009       ;; #(
21010     *)
21011       # `set' quotes correctly as required by POSIX, so do not add quotes.
21012       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21013       ;;
21014     esac |
21015     sort
21016 ) |
21017   sed '
21018      /^ac_cv_env_/b end
21019      t clear
21020      :clear
21021      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21022      t end
21023      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21024      :end' >>confcache
21025 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21026   if test -w "$cache_file"; then
21027     test "x$cache_file" != "x/dev/null" &&
21028       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21029 echo "$as_me: updating cache $cache_file" >&6;}
21030     cat confcache >$cache_file
21031   else
21032     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21033 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21034   fi
21035 fi
21036 rm -f confcache
21037
21038 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21039 # Let make expand exec_prefix.
21040 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21041
21042 # Transform confdefs.h into DEFS.
21043 # Protect against shell expansion while executing Makefile rules.
21044 # Protect against Makefile macro expansion.
21045 #
21046 # If the first sed substitution is executed (which looks for macros that
21047 # take arguments), then branch to the quote section.  Otherwise,
21048 # look for a macro that doesn't take arguments.
21049 ac_script='
21050 t clear
21051 :clear
21052 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
21053 t quote
21054 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
21055 t quote
21056 b any
21057 :quote
21058 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21059 s/\[/\\&/g
21060 s/\]/\\&/g
21061 s/\$/$$/g
21062 H
21063 :any
21064 ${
21065         g
21066         s/^\n//
21067         s/\n/ /g
21068         p
21069 }
21070 '
21071 DEFS=`sed -n "$ac_script" confdefs.h`
21072
21073
21074 ac_libobjs=
21075 ac_ltlibobjs=
21076 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21077   # 1. Remove the extension, and $U if already installed.
21078   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21079   ac_i=`echo "$ac_i" | sed "$ac_script"`
21080   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21081   #    will be set to the directory where LIBOBJS objects are built.
21082   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21083   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21084 done
21085 LIBOBJS=$ac_libobjs
21086
21087 LTLIBOBJS=$ac_ltlibobjs
21088
21089
21090 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21091   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21092 Usually this means the macro was only invoked conditionally." >&5
21093 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21094 Usually this means the macro was only invoked conditionally." >&2;}
21095    { (exit 1); exit 1; }; }
21096 fi
21097 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21098   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21099 Usually this means the macro was only invoked conditionally." >&5
21100 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21101 Usually this means the macro was only invoked conditionally." >&2;}
21102    { (exit 1); exit 1; }; }
21103 fi
21104
21105 : ${CONFIG_STATUS=./config.status}
21106 ac_clean_files_save=$ac_clean_files
21107 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21108 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21109 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21110 cat >$CONFIG_STATUS <<_ACEOF
21111 #! $SHELL
21112 # Generated by $as_me.
21113 # Run this file to recreate the current configuration.
21114 # Compiler output produced by configure, useful for debugging
21115 # configure, is in config.log if it exists.
21116
21117 debug=false
21118 ac_cs_recheck=false
21119 ac_cs_silent=false
21120 SHELL=\${CONFIG_SHELL-$SHELL}
21121 _ACEOF
21122
21123 cat >>$CONFIG_STATUS <<\_ACEOF
21124 ## --------------------- ##
21125 ## M4sh Initialization.  ##
21126 ## --------------------- ##
21127
21128 # Be Bourne compatible
21129 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21130   emulate sh
21131   NULLCMD=:
21132   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21133   # is contrary to our usage.  Disable this feature.
21134   alias -g '${1+"$@"}'='"$@"'
21135   setopt NO_GLOB_SUBST
21136 else
21137   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21138 fi
21139 BIN_SH=xpg4; export BIN_SH # for Tru64
21140 DUALCASE=1; export DUALCASE # for MKS sh
21141
21142
21143 # PATH needs CR
21144 # Avoid depending upon Character Ranges.
21145 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21146 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21147 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21148 as_cr_digits='0123456789'
21149 as_cr_alnum=$as_cr_Letters$as_cr_digits
21150
21151 # The user is always right.
21152 if test "${PATH_SEPARATOR+set}" != set; then
21153   echo "#! /bin/sh" >conf$$.sh
21154   echo  "exit 0"   >>conf$$.sh
21155   chmod +x conf$$.sh
21156   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21157     PATH_SEPARATOR=';'
21158   else
21159     PATH_SEPARATOR=:
21160   fi
21161   rm -f conf$$.sh
21162 fi
21163
21164 # Support unset when possible.
21165 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21166   as_unset=unset
21167 else
21168   as_unset=false
21169 fi
21170
21171
21172 # IFS
21173 # We need space, tab and new line, in precisely that order.  Quoting is
21174 # there to prevent editors from complaining about space-tab.
21175 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21176 # splitting by setting IFS to empty value.)
21177 as_nl='
21178 '
21179 IFS=" ""        $as_nl"
21180
21181 # Find who we are.  Look in the path if we contain no directory separator.
21182 case $0 in
21183   *[\\/]* ) as_myself=$0 ;;
21184   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21185 for as_dir in $PATH
21186 do
21187   IFS=$as_save_IFS
21188   test -z "$as_dir" && as_dir=.
21189   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21190 done
21191 IFS=$as_save_IFS
21192
21193      ;;
21194 esac
21195 # We did not find ourselves, most probably we were run as `sh COMMAND'
21196 # in which case we are not to be found in the path.
21197 if test "x$as_myself" = x; then
21198   as_myself=$0
21199 fi
21200 if test ! -f "$as_myself"; then
21201   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21202   { (exit 1); exit 1; }
21203 fi
21204
21205 # Work around bugs in pre-3.0 UWIN ksh.
21206 for as_var in ENV MAIL MAILPATH
21207 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21208 done
21209 PS1='$ '
21210 PS2='> '
21211 PS4='+ '
21212
21213 # NLS nuisances.
21214 for as_var in \
21215   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21216   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21217   LC_TELEPHONE LC_TIME
21218 do
21219   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21220     eval $as_var=C; export $as_var
21221   else
21222     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21223   fi
21224 done
21225
21226 # Required to use basename.
21227 if expr a : '\(a\)' >/dev/null 2>&1 &&
21228    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21229   as_expr=expr
21230 else
21231   as_expr=false
21232 fi
21233
21234 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21235   as_basename=basename
21236 else
21237   as_basename=false
21238 fi
21239
21240
21241 # Name of the executable.
21242 as_me=`$as_basename -- "$0" ||
21243 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21244          X"$0" : 'X\(//\)$' \| \
21245          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21246 echo X/"$0" |
21247     sed '/^.*\/\([^/][^/]*\)\/*$/{
21248             s//\1/
21249             q
21250           }
21251           /^X\/\(\/\/\)$/{
21252             s//\1/
21253             q
21254           }
21255           /^X\/\(\/\).*/{
21256             s//\1/
21257             q
21258           }
21259           s/.*/./; q'`
21260
21261 # CDPATH.
21262 $as_unset CDPATH
21263
21264
21265
21266   as_lineno_1=$LINENO
21267   as_lineno_2=$LINENO
21268   test "x$as_lineno_1" != "x$as_lineno_2" &&
21269   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21270
21271   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21272   # uniformly replaced by the line number.  The first 'sed' inserts a
21273   # line-number line after each line using $LINENO; the second 'sed'
21274   # does the real work.  The second script uses 'N' to pair each
21275   # line-number line with the line containing $LINENO, and appends
21276   # trailing '-' during substitution so that $LINENO is not a special
21277   # case at line end.
21278   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21279   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21280   # E. McMahon (1931-1989) for sed's syntax.  :-)
21281   sed -n '
21282     p
21283     /[$]LINENO/=
21284   ' <$as_myself |
21285     sed '
21286       s/[$]LINENO.*/&-/
21287       t lineno
21288       b
21289       :lineno
21290       N
21291       :loop
21292       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21293       t loop
21294       s/-\n.*//
21295     ' >$as_me.lineno &&
21296   chmod +x "$as_me.lineno" ||
21297     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21298    { (exit 1); exit 1; }; }
21299
21300   # Don't try to exec as it changes $[0], causing all sort of problems
21301   # (the dirname of $[0] is not the place where we might find the
21302   # original and so on.  Autoconf is especially sensitive to this).
21303   . "./$as_me.lineno"
21304   # Exit status is that of the last command.
21305   exit
21306 }
21307
21308
21309 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21310   as_dirname=dirname
21311 else
21312   as_dirname=false
21313 fi
21314
21315 ECHO_C= ECHO_N= ECHO_T=
21316 case `echo -n x` in
21317 -n*)
21318   case `echo 'x\c'` in
21319   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21320   *)   ECHO_C='\c';;
21321   esac;;
21322 *)
21323   ECHO_N='-n';;
21324 esac
21325
21326 if expr a : '\(a\)' >/dev/null 2>&1 &&
21327    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21328   as_expr=expr
21329 else
21330   as_expr=false
21331 fi
21332
21333 rm -f conf$$ conf$$.exe conf$$.file
21334 if test -d conf$$.dir; then
21335   rm -f conf$$.dir/conf$$.file
21336 else
21337   rm -f conf$$.dir
21338   mkdir conf$$.dir
21339 fi
21340 echo >conf$$.file
21341 if ln -s conf$$.file conf$$ 2>/dev/null; then
21342   as_ln_s='ln -s'
21343   # ... but there are two gotchas:
21344   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21345   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21346   # In both cases, we have to default to `cp -p'.
21347   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21348     as_ln_s='cp -p'
21349 elif ln conf$$.file conf$$ 2>/dev/null; then
21350   as_ln_s=ln
21351 else
21352   as_ln_s='cp -p'
21353 fi
21354 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21355 rmdir conf$$.dir 2>/dev/null
21356
21357 if mkdir -p . 2>/dev/null; then
21358   as_mkdir_p=:
21359 else
21360   test -d ./-p && rmdir ./-p
21361   as_mkdir_p=false
21362 fi
21363
21364 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21365 # systems may use methods other than mode bits to determine executability.
21366 cat >conf$$.file <<_ASEOF
21367 #! /bin/sh
21368 exit 0
21369 _ASEOF
21370 chmod +x conf$$.file
21371 if test -x conf$$.file >/dev/null 2>&1; then
21372   as_executable_p="test -x"
21373 else
21374   as_executable_p=:
21375 fi
21376 rm -f conf$$.file
21377
21378 # Sed expression to map a string onto a valid CPP name.
21379 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21380
21381 # Sed expression to map a string onto a valid variable name.
21382 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21383
21384
21385 exec 6>&1
21386
21387 # Save the log message, to keep $[0] and so on meaningful, and to
21388 # report actual input values of CONFIG_FILES etc. instead of their
21389 # values after options handling.
21390 ac_log="
21391 This file was extended by [SAMPLE] $as_me [x.xx], which was
21392 generated by GNU Autoconf 2.60.  Invocation command line was
21393
21394   CONFIG_FILES    = $CONFIG_FILES
21395   CONFIG_HEADERS  = $CONFIG_HEADERS
21396   CONFIG_LINKS    = $CONFIG_LINKS
21397   CONFIG_COMMANDS = $CONFIG_COMMANDS
21398   $ $0 $@
21399
21400 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21401 "
21402
21403 _ACEOF
21404
21405 cat >>$CONFIG_STATUS <<_ACEOF
21406 # Files that config.status was made for.
21407 config_files="$ac_config_files"
21408 config_commands="$ac_config_commands"
21409
21410 _ACEOF
21411
21412 cat >>$CONFIG_STATUS <<\_ACEOF
21413 ac_cs_usage="\
21414 \`$as_me' instantiates files from templates according to the
21415 current configuration.
21416
21417 Usage: $0 [OPTIONS] [FILE]...
21418
21419   -h, --help       print this help, then exit
21420   -V, --version    print version number, then exit
21421   -q, --quiet      do not print progress messages
21422   -d, --debug      don't remove temporary files
21423       --recheck    update $as_me by reconfiguring in the same conditions
21424   --file=FILE[:TEMPLATE]
21425                    instantiate the configuration file FILE
21426
21427 Configuration files:
21428 $config_files
21429
21430 Configuration commands:
21431 $config_commands
21432
21433 Report bugs to <bug-autoconf@gnu.org>."
21434
21435 _ACEOF
21436 cat >>$CONFIG_STATUS <<_ACEOF
21437 ac_cs_version="\\
21438 [SAMPLE] config.status [x.xx]
21439 configured by $0, generated by GNU Autoconf 2.60,
21440   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21441
21442 Copyright (C) 2006 Free Software Foundation, Inc.
21443 This config.status script is free software; the Free Software Foundation
21444 gives unlimited permission to copy, distribute and modify it."
21445
21446 ac_pwd='$ac_pwd'
21447 srcdir='$srcdir'
21448 INSTALL='$INSTALL'
21449 _ACEOF
21450
21451 cat >>$CONFIG_STATUS <<\_ACEOF
21452 # If no file are specified by the user, then we need to provide default
21453 # value.  By we need to know if files were specified by the user.
21454 ac_need_defaults=:
21455 while test $# != 0
21456 do
21457   case $1 in
21458   --*=*)
21459     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21460     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21461     ac_shift=:
21462     ;;
21463   *)
21464     ac_option=$1
21465     ac_optarg=$2
21466     ac_shift=shift
21467     ;;
21468   esac
21469
21470   case $ac_option in
21471   # Handling of the options.
21472   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21473     ac_cs_recheck=: ;;
21474   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21475     echo "$ac_cs_version"; exit ;;
21476   --debug | --debu | --deb | --de | --d | -d )
21477     debug=: ;;
21478   --file | --fil | --fi | --f )
21479     $ac_shift
21480     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21481     ac_need_defaults=false;;
21482   --he | --h |  --help | --hel | -h )
21483     echo "$ac_cs_usage"; exit ;;
21484   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21485   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21486     ac_cs_silent=: ;;
21487
21488   # This is an error.
21489   -*) { echo "$as_me: error: unrecognized option: $1
21490 Try \`$0 --help' for more information." >&2
21491    { (exit 1); exit 1; }; } ;;
21492
21493   *) ac_config_targets="$ac_config_targets $1"
21494      ac_need_defaults=false ;;
21495
21496   esac
21497   shift
21498 done
21499
21500 ac_configure_extra_args=
21501
21502 if $ac_cs_silent; then
21503   exec 6>/dev/null
21504   ac_configure_extra_args="$ac_configure_extra_args --silent"
21505 fi
21506
21507 _ACEOF
21508 cat >>$CONFIG_STATUS <<_ACEOF
21509 if \$ac_cs_recheck; then
21510   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21511   CONFIG_SHELL=$SHELL
21512   export CONFIG_SHELL
21513   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21514 fi
21515
21516 _ACEOF
21517 cat >>$CONFIG_STATUS <<\_ACEOF
21518 exec 5>>config.log
21519 {
21520   echo
21521   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21522 ## Running $as_me. ##
21523 _ASBOX
21524   echo "$ac_log"
21525 } >&5
21526
21527 _ACEOF
21528 cat >>$CONFIG_STATUS <<_ACEOF
21529 #
21530 # INIT-COMMANDS
21531 #
21532 llvm_src="${LLVM_SRC}"
21533
21534 _ACEOF
21535
21536 cat >>$CONFIG_STATUS <<\_ACEOF
21537
21538 # Handling of arguments.
21539 for ac_config_target in $ac_config_targets
21540 do
21541   case $ac_config_target in
21542     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21543     "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21544     "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21545     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21546     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21547     "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21548     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21549     "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21550
21551   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21552 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21553    { (exit 1); exit 1; }; };;
21554   esac
21555 done
21556
21557
21558 # If the user did not use the arguments to specify the items to instantiate,
21559 # then the envvar interface is used.  Set only those that are not.
21560 # We use the long form for the default assignment because of an extremely
21561 # bizarre bug on SunOS 4.1.3.
21562 if $ac_need_defaults; then
21563   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21564   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21565 fi
21566
21567 # Have a temporary directory for convenience.  Make it in the build tree
21568 # simply because there is no reason against having it here, and in addition,
21569 # creating and moving files from /tmp can sometimes cause problems.
21570 # Hook for its removal unless debugging.
21571 # Note that there is a small window in which the directory will not be cleaned:
21572 # after its creation but before its name has been assigned to `$tmp'.
21573 $debug ||
21574 {
21575   tmp=
21576   trap 'exit_status=$?
21577   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21578 ' 0
21579   trap '{ (exit 1); exit 1; }' 1 2 13 15
21580 }
21581 # Create a (secure) tmp directory for tmp files.
21582
21583 {
21584   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21585   test -n "$tmp" && test -d "$tmp"
21586 }  ||
21587 {
21588   tmp=./conf$$-$RANDOM
21589   (umask 077 && mkdir "$tmp")
21590 } ||
21591 {
21592    echo "$me: cannot create a temporary directory in ." >&2
21593    { (exit 1); exit 1; }
21594 }
21595
21596 #
21597 # Set up the sed scripts for CONFIG_FILES section.
21598 #
21599
21600 # No need to generate the scripts if there are no CONFIG_FILES.
21601 # This happens for instance when ./config.status config.h
21602 if test -n "$CONFIG_FILES"; then
21603
21604 _ACEOF
21605
21606
21607
21608 ac_delim='%!_!# '
21609 for ac_last_try in false false false false false :; do
21610   cat >conf$$subs.sed <<_ACEOF
21611 SHELL!$SHELL$ac_delim
21612 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21613 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21614 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21615 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21616 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21617 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21618 exec_prefix!$exec_prefix$ac_delim
21619 prefix!$prefix$ac_delim
21620 program_transform_name!$program_transform_name$ac_delim
21621 bindir!$bindir$ac_delim
21622 sbindir!$sbindir$ac_delim
21623 libexecdir!$libexecdir$ac_delim
21624 datarootdir!$datarootdir$ac_delim
21625 datadir!$datadir$ac_delim
21626 sysconfdir!$sysconfdir$ac_delim
21627 sharedstatedir!$sharedstatedir$ac_delim
21628 localstatedir!$localstatedir$ac_delim
21629 includedir!$includedir$ac_delim
21630 oldincludedir!$oldincludedir$ac_delim
21631 docdir!$docdir$ac_delim
21632 infodir!$infodir$ac_delim
21633 htmldir!$htmldir$ac_delim
21634 dvidir!$dvidir$ac_delim
21635 pdfdir!$pdfdir$ac_delim
21636 psdir!$psdir$ac_delim
21637 libdir!$libdir$ac_delim
21638 localedir!$localedir$ac_delim
21639 mandir!$mandir$ac_delim
21640 DEFS!$DEFS$ac_delim
21641 ECHO_C!$ECHO_C$ac_delim
21642 ECHO_N!$ECHO_N$ac_delim
21643 ECHO_T!$ECHO_T$ac_delim
21644 LIBS!$LIBS$ac_delim
21645 build_alias!$build_alias$ac_delim
21646 host_alias!$host_alias$ac_delim
21647 target_alias!$target_alias$ac_delim
21648 LLVM_SRC!$LLVM_SRC$ac_delim
21649 LLVM_OBJ!$LLVM_OBJ$ac_delim
21650 LLVM_VERSION!$LLVM_VERSION$ac_delim
21651 CC!$CC$ac_delim
21652 CFLAGS!$CFLAGS$ac_delim
21653 LDFLAGS!$LDFLAGS$ac_delim
21654 CPPFLAGS!$CPPFLAGS$ac_delim
21655 ac_ct_CC!$ac_ct_CC$ac_delim
21656 EXEEXT!$EXEEXT$ac_delim
21657 OBJEXT!$OBJEXT$ac_delim
21658 CXX!$CXX$ac_delim
21659 CXXFLAGS!$CXXFLAGS$ac_delim
21660 ac_ct_CXX!$ac_ct_CXX$ac_delim
21661 CPP!$CPP$ac_delim
21662 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21663 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21664 subdirs!$subdirs$ac_delim
21665 build!$build$ac_delim
21666 build_cpu!$build_cpu$ac_delim
21667 build_vendor!$build_vendor$ac_delim
21668 build_os!$build_os$ac_delim
21669 host!$host$ac_delim
21670 host_cpu!$host_cpu$ac_delim
21671 host_vendor!$host_vendor$ac_delim
21672 host_os!$host_os$ac_delim
21673 target!$target$ac_delim
21674 target_cpu!$target_cpu$ac_delim
21675 target_vendor!$target_vendor$ac_delim
21676 target_os!$target_os$ac_delim
21677 OS!$OS$ac_delim
21678 HOST_OS!$HOST_OS$ac_delim
21679 TARGET_OS!$TARGET_OS$ac_delim
21680 LINKALL!$LINKALL$ac_delim
21681 NOLINKALL!$NOLINKALL$ac_delim
21682 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21683 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21684 ARCH!$ARCH$ac_delim
21685 ENDIAN!$ENDIAN$ac_delim
21686 GREP!$GREP$ac_delim
21687 EGREP!$EGREP$ac_delim
21688 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21689 BUILD_CC!$BUILD_CC$ac_delim
21690 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21691 BUILD_CXX!$BUILD_CXX$ac_delim
21692 CVSBUILD!$CVSBUILD$ac_delim
21693 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21694 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
21695 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21696 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21697 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21698 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
21699 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21700 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21701 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21702 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21703 JIT!$JIT$ac_delim
21704 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21705 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21706 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21707 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21708 _ACEOF
21709
21710   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21711     break
21712   elif $ac_last_try; then
21713     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21714 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21715    { (exit 1); exit 1; }; }
21716   else
21717     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21718   fi
21719 done
21720
21721 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21722 if test -n "$ac_eof"; then
21723   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21724   ac_eof=`expr $ac_eof + 1`
21725 fi
21726
21727 cat >>$CONFIG_STATUS <<_ACEOF
21728 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21729 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21730 _ACEOF
21731 sed '
21732 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21733 s/^/s,@/; s/!/@,|#_!!_#|/
21734 :n
21735 t n
21736 s/'"$ac_delim"'$/,g/; t
21737 s/$/\\/; p
21738 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21739 ' >>$CONFIG_STATUS <conf$$subs.sed
21740 rm -f conf$$subs.sed
21741 cat >>$CONFIG_STATUS <<_ACEOF
21742 CEOF$ac_eof
21743 _ACEOF
21744
21745
21746 ac_delim='%!_!# '
21747 for ac_last_try in false false false false false :; do
21748   cat >conf$$subs.sed <<_ACEOF
21749 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21750 ENABLE_PIC!$ENABLE_PIC$ac_delim
21751 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21752 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21753 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21754 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21755 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21756 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21757 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21758 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21759 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21760 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21761 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21762 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21763 NM!$NM$ac_delim
21764 ifGNUmake!$ifGNUmake$ac_delim
21765 LN_S!$LN_S$ac_delim
21766 CMP!$CMP$ac_delim
21767 CP!$CP$ac_delim
21768 DATE!$DATE$ac_delim
21769 FIND!$FIND$ac_delim
21770 MKDIR!$MKDIR$ac_delim
21771 MV!$MV$ac_delim
21772 RANLIB!$RANLIB$ac_delim
21773 AR!$AR$ac_delim
21774 RM!$RM$ac_delim
21775 SED!$SED$ac_delim
21776 TAR!$TAR$ac_delim
21777 BINPWD!$BINPWD$ac_delim
21778 GRAPHVIZ!$GRAPHVIZ$ac_delim
21779 DOT!$DOT$ac_delim
21780 FDP!$FDP$ac_delim
21781 NEATO!$NEATO$ac_delim
21782 TWOPI!$TWOPI$ac_delim
21783 CIRCO!$CIRCO$ac_delim
21784 GV!$GV$ac_delim
21785 DOTTY!$DOTTY$ac_delim
21786 XDOT_PY!$XDOT_PY$ac_delim
21787 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21788 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21789 INSTALL_DATA!$INSTALL_DATA$ac_delim
21790 BZIP2!$BZIP2$ac_delim
21791 CAT!$CAT$ac_delim
21792 DOXYGEN!$DOXYGEN$ac_delim
21793 GROFF!$GROFF$ac_delim
21794 GZIPBIN!$GZIPBIN$ac_delim
21795 POD2HTML!$POD2HTML$ac_delim
21796 POD2MAN!$POD2MAN$ac_delim
21797 PDFROFF!$PDFROFF$ac_delim
21798 RUNTEST!$RUNTEST$ac_delim
21799 TCLSH!$TCLSH$ac_delim
21800 ZIP!$ZIP$ac_delim
21801 OCAMLC!$OCAMLC$ac_delim
21802 OCAMLOPT!$OCAMLOPT$ac_delim
21803 OCAMLDEP!$OCAMLDEP$ac_delim
21804 OCAMLDOC!$OCAMLDOC$ac_delim
21805 GAS!$GAS$ac_delim
21806 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21807 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21808 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21809 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21810 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21811 LIBADD_DL!$LIBADD_DL$ac_delim
21812 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21813 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21814 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21815 USE_UDIS86!$USE_UDIS86$ac_delim
21816 USE_OPROFILE!$USE_OPROFILE$ac_delim
21817 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21818 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21819 MMAP_FILE!$MMAP_FILE$ac_delim
21820 SHLIBEXT!$SHLIBEXT$ac_delim
21821 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21822 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21823 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21824 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21825 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21826 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21827 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21828 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21829 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21830 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21831 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21832 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21833 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21834 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21835 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21836 RPATH!$RPATH$ac_delim
21837 RDYNAMIC!$RDYNAMIC$ac_delim
21838 LIBOBJS!$LIBOBJS$ac_delim
21839 LTLIBOBJS!$LTLIBOBJS$ac_delim
21840 _ACEOF
21841
21842   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
21843     break
21844   elif $ac_last_try; then
21845     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21846 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21847    { (exit 1); exit 1; }; }
21848   else
21849     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21850   fi
21851 done
21852
21853 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21854 if test -n "$ac_eof"; then
21855   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21856   ac_eof=`expr $ac_eof + 1`
21857 fi
21858
21859 cat >>$CONFIG_STATUS <<_ACEOF
21860 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21862 _ACEOF
21863 sed '
21864 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21865 s/^/s,@/; s/!/@,|#_!!_#|/
21866 :n
21867 t n
21868 s/'"$ac_delim"'$/,g/; t
21869 s/$/\\/; p
21870 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21871 ' >>$CONFIG_STATUS <conf$$subs.sed
21872 rm -f conf$$subs.sed
21873 cat >>$CONFIG_STATUS <<_ACEOF
21874 :end
21875 s/|#_!!_#|//g
21876 CEOF$ac_eof
21877 _ACEOF
21878
21879
21880 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21881 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21882 # trailing colons and then remove the whole line if VPATH becomes empty
21883 # (actually we leave an empty line to preserve line numbers).
21884 if test "x$srcdir" = x.; then
21885   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21886 s/:*\$(srcdir):*/:/
21887 s/:*\${srcdir}:*/:/
21888 s/:*@srcdir@:*/:/
21889 s/^\([^=]*=[     ]*\):*/\1/
21890 s/:*$//
21891 s/^[^=]*=[       ]*$//
21892 }'
21893 fi
21894
21895 cat >>$CONFIG_STATUS <<\_ACEOF
21896 fi # test -n "$CONFIG_FILES"
21897
21898
21899 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
21900 do
21901   case $ac_tag in
21902   :[FHLC]) ac_mode=$ac_tag; continue;;
21903   esac
21904   case $ac_mode$ac_tag in
21905   :[FHL]*:*);;
21906   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21907 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21908    { (exit 1); exit 1; }; };;
21909   :[FH]-) ac_tag=-:-;;
21910   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21911   esac
21912   ac_save_IFS=$IFS
21913   IFS=:
21914   set x $ac_tag
21915   IFS=$ac_save_IFS
21916   shift
21917   ac_file=$1
21918   shift
21919
21920   case $ac_mode in
21921   :L) ac_source=$1;;
21922   :[FH])
21923     ac_file_inputs=
21924     for ac_f
21925     do
21926       case $ac_f in
21927       -) ac_f="$tmp/stdin";;
21928       *) # Look for the file first in the build tree, then in the source tree
21929          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21930          # because $ac_f cannot contain `:'.
21931          test -f "$ac_f" ||
21932            case $ac_f in
21933            [\\/$]*) false;;
21934            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21935            esac ||
21936            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21937 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21938    { (exit 1); exit 1; }; };;
21939       esac
21940       ac_file_inputs="$ac_file_inputs $ac_f"
21941     done
21942
21943     # Let's still pretend it is `configure' which instantiates (i.e., don't
21944     # use $as_me), people would be surprised to read:
21945     #    /* config.h.  Generated by config.status.  */
21946     configure_input="Generated from "`IFS=:
21947           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21948     if test x"$ac_file" != x-; then
21949       configure_input="$ac_file.  $configure_input"
21950       { echo "$as_me:$LINENO: creating $ac_file" >&5
21951 echo "$as_me: creating $ac_file" >&6;}
21952     fi
21953
21954     case $ac_tag in
21955     *:-:* | *:-) cat >"$tmp/stdin";;
21956     esac
21957     ;;
21958   esac
21959
21960   ac_dir=`$as_dirname -- "$ac_file" ||
21961 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21962          X"$ac_file" : 'X\(//\)[^/]' \| \
21963          X"$ac_file" : 'X\(//\)$' \| \
21964          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21965 echo X"$ac_file" |
21966     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21967             s//\1/
21968             q
21969           }
21970           /^X\(\/\/\)[^/].*/{
21971             s//\1/
21972             q
21973           }
21974           /^X\(\/\/\)$/{
21975             s//\1/
21976             q
21977           }
21978           /^X\(\/\).*/{
21979             s//\1/
21980             q
21981           }
21982           s/.*/./; q'`
21983   { as_dir="$ac_dir"
21984   case $as_dir in #(
21985   -*) as_dir=./$as_dir;;
21986   esac
21987   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21988     as_dirs=
21989     while :; do
21990       case $as_dir in #(
21991       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21992       *) as_qdir=$as_dir;;
21993       esac
21994       as_dirs="'$as_qdir' $as_dirs"
21995       as_dir=`$as_dirname -- "$as_dir" ||
21996 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21997          X"$as_dir" : 'X\(//\)[^/]' \| \
21998          X"$as_dir" : 'X\(//\)$' \| \
21999          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22000 echo X"$as_dir" |
22001     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22002             s//\1/
22003             q
22004           }
22005           /^X\(\/\/\)[^/].*/{
22006             s//\1/
22007             q
22008           }
22009           /^X\(\/\/\)$/{
22010             s//\1/
22011             q
22012           }
22013           /^X\(\/\).*/{
22014             s//\1/
22015             q
22016           }
22017           s/.*/./; q'`
22018       test -d "$as_dir" && break
22019     done
22020     test -z "$as_dirs" || eval "mkdir $as_dirs"
22021   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22022 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22023    { (exit 1); exit 1; }; }; }
22024   ac_builddir=.
22025
22026 case "$ac_dir" in
22027 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22028 *)
22029   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22030   # A ".." for each directory in $ac_dir_suffix.
22031   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22032   case $ac_top_builddir_sub in
22033   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22034   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22035   esac ;;
22036 esac
22037 ac_abs_top_builddir=$ac_pwd
22038 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22039 # for backward compatibility:
22040 ac_top_builddir=$ac_top_build_prefix
22041
22042 case $srcdir in
22043   .)  # We are building in place.
22044     ac_srcdir=.
22045     ac_top_srcdir=$ac_top_builddir_sub
22046     ac_abs_top_srcdir=$ac_pwd ;;
22047   [\\/]* | ?:[\\/]* )  # Absolute name.
22048     ac_srcdir=$srcdir$ac_dir_suffix;
22049     ac_top_srcdir=$srcdir
22050     ac_abs_top_srcdir=$srcdir ;;
22051   *) # Relative name.
22052     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22053     ac_top_srcdir=$ac_top_build_prefix$srcdir
22054     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22055 esac
22056 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22057
22058
22059   case $ac_mode in
22060   :F)
22061   #
22062   # CONFIG_FILE
22063   #
22064
22065   case $INSTALL in
22066   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22067   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22068   esac
22069 _ACEOF
22070
22071 cat >>$CONFIG_STATUS <<\_ACEOF
22072 # If the template does not know about datarootdir, expand it.
22073 # FIXME: This hack should be removed a few years after 2.60.
22074 ac_datarootdir_hack=; ac_datarootdir_seen=
22075
22076 case `sed -n '/datarootdir/ {
22077   p
22078   q
22079 }
22080 /@datadir@/p
22081 /@docdir@/p
22082 /@infodir@/p
22083 /@localedir@/p
22084 /@mandir@/p
22085 ' $ac_file_inputs` in
22086 *datarootdir*) ac_datarootdir_seen=yes;;
22087 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22088   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22089 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22090 _ACEOF
22091 cat >>$CONFIG_STATUS <<_ACEOF
22092   ac_datarootdir_hack='
22093   s&@datadir@&$datadir&g
22094   s&@docdir@&$docdir&g
22095   s&@infodir@&$infodir&g
22096   s&@localedir@&$localedir&g
22097   s&@mandir@&$mandir&g
22098     s&\\\${datarootdir}&$datarootdir&g' ;;
22099 esac
22100 _ACEOF
22101
22102 # Neutralize VPATH when `$srcdir' = `.'.
22103 # Shell code in configure.ac might set extrasub.
22104 # FIXME: do we really want to maintain this feature?
22105 cat >>$CONFIG_STATUS <<_ACEOF
22106   sed "$ac_vpsub
22107 $extrasub
22108 _ACEOF
22109 cat >>$CONFIG_STATUS <<\_ACEOF
22110 :t
22111 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22112 s&@configure_input@&$configure_input&;t t
22113 s&@top_builddir@&$ac_top_builddir_sub&;t t
22114 s&@srcdir@&$ac_srcdir&;t t
22115 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22116 s&@top_srcdir@&$ac_top_srcdir&;t t
22117 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22118 s&@builddir@&$ac_builddir&;t t
22119 s&@abs_builddir@&$ac_abs_builddir&;t t
22120 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22121 s&@INSTALL@&$ac_INSTALL&;t t
22122 $ac_datarootdir_hack
22123 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22124
22125 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22126   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22127   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22128   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22129 which seems to be undefined.  Please make sure it is defined." >&5
22130 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22131 which seems to be undefined.  Please make sure it is defined." >&2;}
22132
22133   rm -f "$tmp/stdin"
22134   case $ac_file in
22135   -) cat "$tmp/out"; rm -f "$tmp/out";;
22136   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22137   esac
22138  ;;
22139
22140
22141   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22142 echo "$as_me: executing $ac_file commands" >&6;}
22143  ;;
22144   esac
22145
22146
22147   case $ac_file$ac_mode in
22148     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22149    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22150     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22151    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22152     "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22153    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22154     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22155    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22156     "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22157    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22158
22159   esac
22160 done # for ac_tag
22161
22162
22163 { (exit 0); exit 0; }
22164 _ACEOF
22165 chmod +x $CONFIG_STATUS
22166 ac_clean_files=$ac_clean_files_save
22167
22168
22169 # configure is writing to config.log, and then calls config.status.
22170 # config.status does its own redirection, appending to config.log.
22171 # Unfortunately, on DOS this fails, as config.log is still kept open
22172 # by configure, so config.status won't be able to write to it; its
22173 # output is simply discarded.  So we exec the FD to /dev/null,
22174 # effectively closing config.log, so it can be properly (re)opened and
22175 # appended to by config.status.  When coming back to configure, we
22176 # need to make the FD available again.
22177 if test "$no_create" != yes; then
22178   ac_cs_success=:
22179   ac_config_status_args=
22180   test "$silent" = yes &&
22181     ac_config_status_args="$ac_config_status_args --quiet"
22182   exec 5>/dev/null
22183   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22184   exec 5>>config.log
22185   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22186   # would make configure fail if this is the last instruction.
22187   $ac_cs_success || { (exit 1); exit 1; }
22188 fi
22189
22190 #
22191 # CONFIG_SUBDIRS section.
22192 #
22193 if test "$no_recursion" != yes; then
22194
22195   # Remove --cache-file and --srcdir arguments so they do not pile up.
22196   ac_sub_configure_args=
22197   ac_prev=
22198   eval "set x $ac_configure_args"
22199   shift
22200   for ac_arg
22201   do
22202     if test -n "$ac_prev"; then
22203       ac_prev=
22204       continue
22205     fi
22206     case $ac_arg in
22207     -cache-file | --cache-file | --cache-fil | --cache-fi \
22208     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22209       ac_prev=cache_file ;;
22210     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22211     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22212     | --c=*)
22213       ;;
22214     --config-cache | -C)
22215       ;;
22216     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22217       ac_prev=srcdir ;;
22218     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22219       ;;
22220     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22221       ac_prev=prefix ;;
22222     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22223       ;;
22224     *)
22225       case $ac_arg in
22226       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22227       esac
22228       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22229     esac
22230   done
22231
22232   # Always prepend --prefix to ensure using the same prefix
22233   # in subdir configurations.
22234   ac_arg="--prefix=$prefix"
22235   case $ac_arg in
22236   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22237   esac
22238   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22239
22240   ac_popdir=`pwd`
22241   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22242
22243     # Do not complain, so a configure script can configure whichever
22244     # parts of a large source tree are present.
22245     test -d "$srcdir/$ac_dir" || continue
22246
22247     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22248     echo "$as_me:$LINENO: $ac_msg" >&5
22249     echo "$ac_msg" >&6
22250     { as_dir="$ac_dir"
22251   case $as_dir in #(
22252   -*) as_dir=./$as_dir;;
22253   esac
22254   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22255     as_dirs=
22256     while :; do
22257       case $as_dir in #(
22258       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22259       *) as_qdir=$as_dir;;
22260       esac
22261       as_dirs="'$as_qdir' $as_dirs"
22262       as_dir=`$as_dirname -- "$as_dir" ||
22263 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22264          X"$as_dir" : 'X\(//\)[^/]' \| \
22265          X"$as_dir" : 'X\(//\)$' \| \
22266          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22267 echo X"$as_dir" |
22268     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22269             s//\1/
22270             q
22271           }
22272           /^X\(\/\/\)[^/].*/{
22273             s//\1/
22274             q
22275           }
22276           /^X\(\/\/\)$/{
22277             s//\1/
22278             q
22279           }
22280           /^X\(\/\).*/{
22281             s//\1/
22282             q
22283           }
22284           s/.*/./; q'`
22285       test -d "$as_dir" && break
22286     done
22287     test -z "$as_dirs" || eval "mkdir $as_dirs"
22288   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22289 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22290    { (exit 1); exit 1; }; }; }
22291     ac_builddir=.
22292
22293 case "$ac_dir" in
22294 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22295 *)
22296   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22297   # A ".." for each directory in $ac_dir_suffix.
22298   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22299   case $ac_top_builddir_sub in
22300   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22301   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22302   esac ;;
22303 esac
22304 ac_abs_top_builddir=$ac_pwd
22305 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22306 # for backward compatibility:
22307 ac_top_builddir=$ac_top_build_prefix
22308
22309 case $srcdir in
22310   .)  # We are building in place.
22311     ac_srcdir=.
22312     ac_top_srcdir=$ac_top_builddir_sub
22313     ac_abs_top_srcdir=$ac_pwd ;;
22314   [\\/]* | ?:[\\/]* )  # Absolute name.
22315     ac_srcdir=$srcdir$ac_dir_suffix;
22316     ac_top_srcdir=$srcdir
22317     ac_abs_top_srcdir=$srcdir ;;
22318   *) # Relative name.
22319     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22320     ac_top_srcdir=$ac_top_build_prefix$srcdir
22321     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22322 esac
22323 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22324
22325
22326     cd "$ac_dir"
22327
22328     # Check for guested configure; otherwise get Cygnus style configure.
22329     if test -f "$ac_srcdir/configure.gnu"; then
22330       ac_sub_configure=$ac_srcdir/configure.gnu
22331     elif test -f "$ac_srcdir/configure"; then
22332       ac_sub_configure=$ac_srcdir/configure
22333     elif test -f "$ac_srcdir/configure.in"; then
22334       # This should be Cygnus configure.
22335       ac_sub_configure=$ac_aux_dir/configure
22336     else
22337       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22338 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22339       ac_sub_configure=
22340     fi
22341
22342     # The recursion is here.
22343     if test -n "$ac_sub_configure"; then
22344       # Make the cache file name correct relative to the subdirectory.
22345       case $cache_file in
22346       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22347       *) # Relative name.
22348         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22349       esac
22350
22351       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22352 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22353       # The eval makes quoting arguments work.
22354       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22355            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22356         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22357 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22358    { (exit 1); exit 1; }; }
22359     fi
22360
22361     cd "$ac_popdir"
22362   done
22363 fi
22364