Don't define LLVM_LIBDIR, it is not used anymore.
[oota-llvm.git] / projects / sample / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
4 #
5 # Report bugs to <bugs@yourdomain>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40   echo "#! /bin/sh" >conf$$.sh
41   echo  "exit 0"   >>conf$$.sh
42   chmod +x conf$$.sh
43   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44     PATH_SEPARATOR=';'
45   else
46     PATH_SEPARATOR=:
47   fi
48   rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53   as_unset=unset
54 else
55   as_unset=false
56 fi
57
58
59 # IFS
60 # We need space, tab and new line, in precisely that order.  Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
65 '
66 IFS=" ""        $as_nl"
67
68 # Find who we are.  Look in the path if we contain no directory separator.
69 case $0 in
70   *[\\/]* ) as_myself=$0 ;;
71   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
73 do
74   IFS=$as_save_IFS
75   test -z "$as_dir" && as_dir=.
76   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
79
80      ;;
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85   as_myself=$0
86 fi
87 if test ! -f "$as_myself"; then
88   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89   { (exit 1); exit 1; }
90 fi
91
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
99
100 # NLS nuisances.
101 for as_var in \
102   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104   LC_TELEPHONE LC_TIME
105 do
106   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107     eval $as_var=C; export $as_var
108   else
109     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110   fi
111 done
112
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115    test "X`expr 00001 : '.*\(...\)'`" = X001; then
116   as_expr=expr
117 else
118   as_expr=false
119 fi
120
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122   as_basename=basename
123 else
124   as_basename=false
125 fi
126
127
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131          X"$0" : 'X\(//\)$' \| \
132          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134     sed '/^.*\/\([^/][^/]*\)\/*$/{
135             s//\1/
136             q
137           }
138           /^X\/\(\/\/\)$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\).*/{
143             s//\1/
144             q
145           }
146           s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
152 if test "x$CONFIG_SHELL" = x; then
153   if (eval ":") 2>/dev/null; then
154   as_have_required=yes
155 else
156   as_have_required=no
157 fi
158
159   if test $as_have_required = yes &&     (eval ":
160 (as_func_return () {
161   (exit \$1)
162 }
163 as_func_success () {
164   as_func_return 0
165 }
166 as_func_failure () {
167   as_func_return 1
168 }
169 as_func_ret_success () {
170   return 0
171 }
172 as_func_ret_failure () {
173   return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178   :
179 else
180   exitcode=1
181   echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185   exitcode=1
186   echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190   :
191 else
192   exitcode=1
193   echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197   exitcode=1
198   echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202   :
203 else
204   exitcode=1
205   echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
211   as_lineno_1=\$LINENO
212   as_lineno_2=\$LINENO
213   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
216   :
217 else
218   as_candidate_shells=
219     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   case $as_dir in
225          /*)
226            for as_base in sh bash ksh sh5; do
227              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228            done;;
229        esac
230 done
231 IFS=$as_save_IFS
232
233
234       for as_shell in $as_candidate_shells $SHELL; do
235          # Try only shells that exist, to save several forks.
236          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237                 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240   emulate sh
241   NULLCMD=:
242   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243   # is contrary to our usage.  Disable this feature.
244   alias -g '${1+"$@"}'='"$@"'
245   setopt NO_GLOB_SUBST
246 else
247   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
253 _ASEOF
254 }; then
255   CONFIG_SHELL=$as_shell
256                as_have_required=yes
257                if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274   (exit $1)
275 }
276 as_func_success () {
277   as_func_return 0
278 }
279 as_func_failure () {
280   as_func_return 1
281 }
282 as_func_ret_success () {
283   return 0
284 }
285 as_func_ret_failure () {
286   return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291   :
292 else
293   exitcode=1
294   echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298   exitcode=1
299   echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303   :
304 else
305   exitcode=1
306   echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310   exitcode=1
311   echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315   :
316 else
317   exitcode=1
318   echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
324   as_lineno_1=$LINENO
325   as_lineno_2=$LINENO
326   test "x$as_lineno_1" != "x$as_lineno_2" &&
327   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329 _ASEOF
330 }; then
331   break
332 fi
333
334 fi
335
336       done
337
338       if test "x$CONFIG_SHELL" != x; then
339   for as_var in BASH_ENV ENV
340         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341         done
342         export CONFIG_SHELL
343         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344 fi
345
346
347     if test $as_have_required = no; then
348   echo This script requires a shell more modern than all the
349       echo shells that I found on your system.  Please install a
350       echo modern shell, or manually run the script under such a
351       echo shell if you do have one.
352       { (exit 1); exit 1; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363   (exit \$1)
364 }
365 as_func_success () {
366   as_func_return 0
367 }
368 as_func_failure () {
369   as_func_return 1
370 }
371 as_func_ret_success () {
372   return 0
373 }
374 as_func_ret_failure () {
375   return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380   :
381 else
382   exitcode=1
383   echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387   exitcode=1
388   echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392   :
393 else
394   exitcode=1
395   echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399   exitcode=1
400   echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404   :
405 else
406   exitcode=1
407   echo positional parameters were not saved.
408 fi
409
410 test \$exitcode = 0") || {
411   echo No shell found that supports shell functions.
412   echo Please tell autoconf@gnu.org about your system,
413   echo including any error possibly output before this
414   echo message
415 }
416
417
418
419   as_lineno_1=$LINENO
420   as_lineno_2=$LINENO
421   test "x$as_lineno_1" != "x$as_lineno_2" &&
422   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425   # uniformly replaced by the line number.  The first 'sed' inserts a
426   # line-number line after each line using $LINENO; the second 'sed'
427   # does the real work.  The second script uses 'N' to pair each
428   # line-number line with the line containing $LINENO, and appends
429   # trailing '-' during substitution so that $LINENO is not a special
430   # case at line end.
431   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432   # scripts with optimization help from Paolo Bonzini.  Blame Lee
433   # E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451    { (exit 1); exit 1; }; }
452
453   # Don't try to exec as it changes $[0], causing all sort of problems
454   # (the dirname of $[0] is not the place where we might find the
455   # original and so on.  Autoconf is especially sensitive to this).
456   . "./$as_me.lineno"
457   # Exit status is that of the last command.
458   exit
459 }
460
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463   as_dirname=dirname
464 else
465   as_dirname=false
466 fi
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471   case `echo 'x\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   *)   ECHO_C='\c';;
474   esac;;
475 *)
476   ECHO_N='-n';;
477 esac
478
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480    test "X`expr 00001 : '.*\(...\)'`" = X001; then
481   as_expr=expr
482 else
483   as_expr=false
484 fi
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488   rm -f conf$$.dir/conf$$.file
489 else
490   rm -f conf$$.dir
491   mkdir conf$$.dir
492 fi
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495   as_ln_s='ln -s'
496   # ... but there are two gotchas:
497   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499   # In both cases, we have to default to `cp -p'.
500   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501     as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s=ln
504 else
505   as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511   as_mkdir_p=:
512 else
513   test -d ./-p && rmdir ./-p
514   as_mkdir_p=false
515 fi
516
517 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525   as_executable_p="test -x"
526 else
527   as_executable_p=:
528 fi
529 rm -f conf$$.file
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539 exec 7<&0 </dev/null 6>&1
540
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546 #
547 # Initializations.
548 #
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 # Identity of this package.
560 PACKAGE_NAME='[SAMPLE]'
561 PACKAGE_TARNAME='--sample--'
562 PACKAGE_VERSION='[x.xx]'
563 PACKAGE_STRING='[SAMPLE] [x.xx]'
564 PACKAGE_BUGREPORT='bugs@yourdomain'
565
566 ac_unique_file=""Makefile.common.in""
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #if HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #if HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #if STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # if HAVE_STDLIB_H
581 #  include <stdlib.h>
582 # endif
583 #endif
584 #if HAVE_STRING_H
585 # if !STDC_HEADERS && HAVE_MEMORY_H
586 #  include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #if HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #if HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #if HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #if HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
602
603 ac_subst_vars='SHELL
604 PATH_SEPARATOR
605 PACKAGE_NAME
606 PACKAGE_TARNAME
607 PACKAGE_VERSION
608 PACKAGE_STRING
609 PACKAGE_BUGREPORT
610 exec_prefix
611 prefix
612 program_transform_name
613 bindir
614 sbindir
615 libexecdir
616 datarootdir
617 datadir
618 sysconfdir
619 sharedstatedir
620 localstatedir
621 includedir
622 oldincludedir
623 docdir
624 infodir
625 htmldir
626 dvidir
627 pdfdir
628 psdir
629 libdir
630 localedir
631 mandir
632 DEFS
633 ECHO_C
634 ECHO_N
635 ECHO_T
636 LIBS
637 build_alias
638 host_alias
639 target_alias
640 LLVM_SRC
641 LLVM_OBJ
642 LLVM_VERSION
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 ENABLE_POLLY
655 LLVM_HAS_POLLY
656 subdirs
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_LIBCPP
686 ENABLE_CXX11
687 ENABLE_OPTIMIZED
688 ENABLE_PROFILING
689 DISABLE_ASSERTIONS
690 ENABLE_WERROR
691 ENABLE_EXPENSIVE_CHECKS
692 EXPENSIVE_CHECKS
693 DEBUG_RUNTIME
694 DEBUG_SYMBOLS
695 JIT
696 TARGET_HAS_JIT
697 ENABLE_DOCS
698 ENABLE_DOXYGEN
699 ENABLE_THREADS
700 ENABLE_PTHREADS
701 ENABLE_PIC
702 ENABLE_SHARED
703 ENABLE_EMBED_STDCXX
704 ENABLE_TIMESTAMPS
705 TARGETS_TO_BUILD
706 LLVM_ENUM_TARGETS
707 LLVM_ENUM_ASM_PRINTERS
708 LLVM_ENUM_ASM_PARSERS
709 LLVM_ENUM_DISASSEMBLERS
710 OPTIMIZE_OPTION
711 EXTRA_OPTIONS
712 EXTRA_LD_OPTIONS
713 BINUTILS_INCDIR
714 NM
715 ifGNUmake
716 LN_S
717 CMP
718 CP
719 DATE
720 FIND
721 MKDIR
722 MV
723 RANLIB
724 AR
725 RM
726 SED
727 TAR
728 BINPWD
729 GRAPHVIZ
730 DOT
731 FDP
732 NEATO
733 TWOPI
734 CIRCO
735 GV
736 DOTTY
737 XDOT_PY
738 INSTALL_PROGRAM
739 INSTALL_SCRIPT
740 INSTALL_DATA
741 BZIP2
742 CAT
743 DOXYGEN
744 GROFF
745 GZIPBIN
746 POD2HTML
747 POD2MAN
748 PDFROFF
749 RUNTEST
750 TCLSH
751 ZIP
752 OCAMLC
753 OCAMLOPT
754 OCAMLDEP
755 OCAMLDOC
756 GAS
757 HAVE_LINK_VERSION_SCRIPT
758 INSTALL_LTDL_TRUE
759 INSTALL_LTDL_FALSE
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
762 LIBADD_DL
763 NO_VARIADIC_MACROS
764 NO_MISSING_FIELD_INITIALIZERS
765 COVERED_SWITCH_DEFAULT
766 USE_UDIS86
767 USE_OPROFILE
768 HAVE_PTHREAD
769 HUGE_VAL_SANITY
770 MMAP_FILE
771 SHLIBEXT
772 SHLIBPATH_VAR
773 LLVM_PREFIX
774 LLVM_BINDIR
775 LLVM_DATADIR
776 LLVM_DOCSDIR
777 LLVM_ETCDIR
778 LLVM_INCLUDEDIR
779 LLVM_INFODIR
780 LLVM_MANDIR
781 LLVM_CONFIGTIME
782 BINDINGS_TO_BUILD
783 ALL_BINDINGS
784 OCAML_LIBDIR
785 ENABLE_VISIBILITY_INLINES_HIDDEN
786 RPATH
787 RDYNAMIC
788 LIBOBJS
789 LTLIBOBJS'
790 ac_subst_files=''
791       ac_precious_vars='build_alias
792 host_alias
793 target_alias
794 CC
795 CFLAGS
796 LDFLAGS
797 CPPFLAGS
798 CXX
799 CXXFLAGS
800 CCC
801 CPP'
802 ac_subdirs_all='tools/polly'
803
804 # Initialize some variables set by options.
805 ac_init_help=
806 ac_init_version=false
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
809 cache_file=/dev/null
810 exec_prefix=NONE
811 no_create=
812 no_recursion=
813 prefix=NONE
814 program_prefix=NONE
815 program_suffix=NONE
816 program_transform_name=s,x,x,
817 silent=
818 site=
819 srcdir=
820 verbose=
821 x_includes=NONE
822 x_libraries=NONE
823
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
842 htmldir='${docdir}'
843 dvidir='${docdir}'
844 pdfdir='${docdir}'
845 psdir='${docdir}'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
849
850 ac_prev=
851 ac_dashdash=
852 for ac_option
853 do
854   # If the previous option needs an argument, assign it.
855   if test -n "$ac_prev"; then
856     eval $ac_prev=\$ac_option
857     ac_prev=
858     continue
859   fi
860
861   case $ac_option in
862   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863   *)    ac_optarg=yes ;;
864   esac
865
866   # Accept the important Cygnus configure options, so we can diagnose typos.
867
868   case $ac_dashdash$ac_option in
869   --)
870     ac_dashdash=yes ;;
871
872   -bindir | --bindir | --bindi | --bind | --bin | --bi)
873     ac_prev=bindir ;;
874   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875     bindir=$ac_optarg ;;
876
877   -build | --build | --buil | --bui | --bu)
878     ac_prev=build_alias ;;
879   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880     build_alias=$ac_optarg ;;
881
882   -cache-file | --cache-file | --cache-fil | --cache-fi \
883   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884     ac_prev=cache_file ;;
885   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887     cache_file=$ac_optarg ;;
888
889   --config-cache | -C)
890     cache_file=config.cache ;;
891
892   -datadir | --datadir | --datadi | --datad)
893     ac_prev=datadir ;;
894   -datadir=* | --datadir=* | --datadi=* | --datad=*)
895     datadir=$ac_optarg ;;
896
897   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898   | --dataroo | --dataro | --datar)
899     ac_prev=datarootdir ;;
900   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902     datarootdir=$ac_optarg ;;
903
904   -disable-* | --disable-*)
905     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906     # Reject names that are not valid shell variable names.
907     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
908       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
909    { (exit 1); exit 1; }; }
910     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
911     eval enable_$ac_feature=no ;;
912
913   -docdir | --docdir | --docdi | --doc | --do)
914     ac_prev=docdir ;;
915   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916     docdir=$ac_optarg ;;
917
918   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919     ac_prev=dvidir ;;
920   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921     dvidir=$ac_optarg ;;
922
923   -enable-* | --enable-*)
924     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925     # Reject names that are not valid shell variable names.
926     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928    { (exit 1); exit 1; }; }
929     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930     eval enable_$ac_feature=\$ac_optarg ;;
931
932   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934   | --exec | --exe | --ex)
935     ac_prev=exec_prefix ;;
936   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938   | --exec=* | --exe=* | --ex=*)
939     exec_prefix=$ac_optarg ;;
940
941   -gas | --gas | --ga | --g)
942     # Obsolete; use --with-gas.
943     with_gas=yes ;;
944
945   -help | --help | --hel | --he | -h)
946     ac_init_help=long ;;
947   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948     ac_init_help=recursive ;;
949   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950     ac_init_help=short ;;
951
952   -host | --host | --hos | --ho)
953     ac_prev=host_alias ;;
954   -host=* | --host=* | --hos=* | --ho=*)
955     host_alias=$ac_optarg ;;
956
957   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958     ac_prev=htmldir ;;
959   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960   | --ht=*)
961     htmldir=$ac_optarg ;;
962
963   -includedir | --includedir | --includedi | --included | --include \
964   | --includ | --inclu | --incl | --inc)
965     ac_prev=includedir ;;
966   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967   | --includ=* | --inclu=* | --incl=* | --inc=*)
968     includedir=$ac_optarg ;;
969
970   -infodir | --infodir | --infodi | --infod | --info | --inf)
971     ac_prev=infodir ;;
972   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973     infodir=$ac_optarg ;;
974
975   -libdir | --libdir | --libdi | --libd)
976     ac_prev=libdir ;;
977   -libdir=* | --libdir=* | --libdi=* | --libd=*)
978     libdir=$ac_optarg ;;
979
980   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981   | --libexe | --libex | --libe)
982     ac_prev=libexecdir ;;
983   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984   | --libexe=* | --libex=* | --libe=*)
985     libexecdir=$ac_optarg ;;
986
987   -localedir | --localedir | --localedi | --localed | --locale)
988     ac_prev=localedir ;;
989   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990     localedir=$ac_optarg ;;
991
992   -localstatedir | --localstatedir | --localstatedi | --localstated \
993   | --localstate | --localstat | --localsta | --localst | --locals)
994     ac_prev=localstatedir ;;
995   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997     localstatedir=$ac_optarg ;;
998
999   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000     ac_prev=mandir ;;
1001   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002     mandir=$ac_optarg ;;
1003
1004   -nfp | --nfp | --nf)
1005     # Obsolete; use --without-fp.
1006     with_fp=no ;;
1007
1008   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009   | --no-cr | --no-c | -n)
1010     no_create=yes ;;
1011
1012   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014     no_recursion=yes ;;
1015
1016   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018   | --oldin | --oldi | --old | --ol | --o)
1019     ac_prev=oldincludedir ;;
1020   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023     oldincludedir=$ac_optarg ;;
1024
1025   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026     ac_prev=prefix ;;
1027   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028     prefix=$ac_optarg ;;
1029
1030   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031   | --program-pre | --program-pr | --program-p)
1032     ac_prev=program_prefix ;;
1033   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035     program_prefix=$ac_optarg ;;
1036
1037   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038   | --program-suf | --program-su | --program-s)
1039     ac_prev=program_suffix ;;
1040   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042     program_suffix=$ac_optarg ;;
1043
1044   -program-transform-name | --program-transform-name \
1045   | --program-transform-nam | --program-transform-na \
1046   | --program-transform-n | --program-transform- \
1047   | --program-transform | --program-transfor \
1048   | --program-transfo | --program-transf \
1049   | --program-trans | --program-tran \
1050   | --progr-tra | --program-tr | --program-t)
1051     ac_prev=program_transform_name ;;
1052   -program-transform-name=* | --program-transform-name=* \
1053   | --program-transform-nam=* | --program-transform-na=* \
1054   | --program-transform-n=* | --program-transform-=* \
1055   | --program-transform=* | --program-transfor=* \
1056   | --program-transfo=* | --program-transf=* \
1057   | --program-trans=* | --program-tran=* \
1058   | --progr-tra=* | --program-tr=* | --program-t=*)
1059     program_transform_name=$ac_optarg ;;
1060
1061   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062     ac_prev=pdfdir ;;
1063   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064     pdfdir=$ac_optarg ;;
1065
1066   -psdir | --psdir | --psdi | --psd | --ps)
1067     ac_prev=psdir ;;
1068   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069     psdir=$ac_optarg ;;
1070
1071   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072   | -silent | --silent | --silen | --sile | --sil)
1073     silent=yes ;;
1074
1075   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076     ac_prev=sbindir ;;
1077   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078   | --sbi=* | --sb=*)
1079     sbindir=$ac_optarg ;;
1080
1081   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083   | --sharedst | --shareds | --shared | --share | --shar \
1084   | --sha | --sh)
1085     ac_prev=sharedstatedir ;;
1086   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089   | --sha=* | --sh=*)
1090     sharedstatedir=$ac_optarg ;;
1091
1092   -site | --site | --sit)
1093     ac_prev=site ;;
1094   -site=* | --site=* | --sit=*)
1095     site=$ac_optarg ;;
1096
1097   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098     ac_prev=srcdir ;;
1099   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100     srcdir=$ac_optarg ;;
1101
1102   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103   | --syscon | --sysco | --sysc | --sys | --sy)
1104     ac_prev=sysconfdir ;;
1105   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107     sysconfdir=$ac_optarg ;;
1108
1109   -target | --target | --targe | --targ | --tar | --ta | --t)
1110     ac_prev=target_alias ;;
1111   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112     target_alias=$ac_optarg ;;
1113
1114   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115     verbose=yes ;;
1116
1117   -version | --version | --versio | --versi | --vers | -V)
1118     ac_init_version=: ;;
1119
1120   -with-* | --with-*)
1121     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122     # Reject names that are not valid shell variable names.
1123     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1124       { echo "$as_me: error: invalid package name: $ac_package" >&2
1125    { (exit 1); exit 1; }; }
1126     ac_package=`echo $ac_package| sed 's/-/_/g'`
1127     eval with_$ac_package=\$ac_optarg ;;
1128
1129   -without-* | --without-*)
1130     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131     # Reject names that are not valid shell variable names.
1132     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1133       { echo "$as_me: error: invalid package name: $ac_package" >&2
1134    { (exit 1); exit 1; }; }
1135     ac_package=`echo $ac_package | sed 's/-/_/g'`
1136     eval with_$ac_package=no ;;
1137
1138   --x)
1139     # Obsolete; use --with-x.
1140     with_x=yes ;;
1141
1142   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143   | --x-incl | --x-inc | --x-in | --x-i)
1144     ac_prev=x_includes ;;
1145   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147     x_includes=$ac_optarg ;;
1148
1149   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151     ac_prev=x_libraries ;;
1152   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154     x_libraries=$ac_optarg ;;
1155
1156   -*) { echo "$as_me: error: unrecognized option: $ac_option
1157 Try \`$0 --help' for more information." >&2
1158    { (exit 1); exit 1; }; }
1159     ;;
1160
1161   *=*)
1162     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1163     # Reject names that are not valid shell variable names.
1164     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1165       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1166    { (exit 1); exit 1; }; }
1167     eval $ac_envvar=\$ac_optarg
1168     export $ac_envvar ;;
1169
1170   *)
1171     # FIXME: should be removed in autoconf 3.0.
1172     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1176     ;;
1177
1178   esac
1179 done
1180
1181 if test -n "$ac_prev"; then
1182   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183   { echo "$as_me: error: missing argument to $ac_option" >&2
1184    { (exit 1); exit 1; }; }
1185 fi
1186
1187 # Be sure to have absolute directory names.
1188 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189                 datadir sysconfdir sharedstatedir localstatedir includedir \
1190                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191                 libdir localedir mandir
1192 do
1193   eval ac_val=\$$ac_var
1194   case $ac_val in
1195     [\\/$]* | ?:[\\/]* )  continue;;
1196     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197   esac
1198   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1199    { (exit 1); exit 1; }; }
1200 done
1201
1202 # There might be people who depend on the old broken behavior: `$host'
1203 # used to hold the argument of --host etc.
1204 # FIXME: To remove some day.
1205 build=$build_alias
1206 host=$host_alias
1207 target=$target_alias
1208
1209 # FIXME: To remove some day.
1210 if test "x$host_alias" != x; then
1211   if test "x$build_alias" = x; then
1212     cross_compiling=maybe
1213     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1214     If a cross compiler is detected then cross compile mode will be used." >&2
1215   elif test "x$build_alias" != "x$host_alias"; then
1216     cross_compiling=yes
1217   fi
1218 fi
1219
1220 ac_tool_prefix=
1221 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1222
1223 test "$silent" = yes && exec 6>/dev/null
1224
1225
1226 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227 ac_ls_di=`ls -di .` &&
1228 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229   { echo "$as_me: error: Working directory cannot be determined" >&2
1230    { (exit 1); exit 1; }; }
1231 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232   { echo "$as_me: error: pwd does not report name of working directory" >&2
1233    { (exit 1); exit 1; }; }
1234
1235
1236 # Find the source files, if location was not specified.
1237 if test -z "$srcdir"; then
1238   ac_srcdir_defaulted=yes
1239   # Try the directory containing this script, then the parent directory.
1240   ac_confdir=`$as_dirname -- "$0" ||
1241 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242          X"$0" : 'X\(//\)[^/]' \| \
1243          X"$0" : 'X\(//\)$' \| \
1244          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1245 echo X"$0" |
1246     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247             s//\1/
1248             q
1249           }
1250           /^X\(\/\/\)[^/].*/{
1251             s//\1/
1252             q
1253           }
1254           /^X\(\/\/\)$/{
1255             s//\1/
1256             q
1257           }
1258           /^X\(\/\).*/{
1259             s//\1/
1260             q
1261           }
1262           s/.*/./; q'`
1263   srcdir=$ac_confdir
1264   if test ! -r "$srcdir/$ac_unique_file"; then
1265     srcdir=..
1266   fi
1267 else
1268   ac_srcdir_defaulted=no
1269 fi
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1273    { (exit 1); exit 1; }; }
1274 fi
1275 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1276 ac_abs_confdir=`(
1277         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1278    { (exit 1); exit 1; }; }
1279         pwd)`
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1282   srcdir=.
1283 fi
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1287 case $srcdir in
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 esac
1290 for ac_var in $ac_precious_vars; do
1291   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292   eval ac_env_${ac_var}_value=\$${ac_var}
1293   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295 done
1296
1297 #
1298 # Report the --help message.
1299 #
1300 if test "$ac_init_help" = "long"; then
1301   # Omit some internal or obsolete options to make the list less imposing.
1302   # This message is too long to be a string in the A/UX 3.1 sh.
1303   cat <<_ACEOF
1304 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1305
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1307
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE.  See below for descriptions of some of the useful variables.
1310
1311 Defaults for the options are specified in brackets.
1312
1313 Configuration:
1314   -h, --help              display this help and exit
1315       --help=short        display options specific to this package
1316       --help=recursive    display the short help of all the included packages
1317   -V, --version           display version information and exit
1318   -q, --quiet, --silent   do not print \`checking...' messages
1319       --cache-file=FILE   cache test results in FILE [disabled]
1320   -C, --config-cache      alias for \`--cache-file=config.cache'
1321   -n, --no-create         do not create output files
1322       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1323
1324 Installation directories:
1325   --prefix=PREFIX         install architecture-independent files in PREFIX
1326                           [$ac_default_prefix]
1327   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1328                           [PREFIX]
1329
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1334
1335 For better control, use the options below.
1336
1337 Fine tuning of the installation directories:
1338   --bindir=DIR           user executables [EPREFIX/bin]
1339   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1340   --libexecdir=DIR       program executables [EPREFIX/libexec]
1341   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1342   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1343   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1344   --libdir=DIR           object code libraries [EPREFIX/lib]
1345   --includedir=DIR       C header files [PREFIX/include]
1346   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1347   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1348   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1349   --infodir=DIR          info documentation [DATAROOTDIR/info]
1350   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1351   --mandir=DIR           man documentation [DATAROOTDIR/man]
1352   --docdir=DIR           documentation root [DATAROOTDIR/doc/--sample--]
1353   --htmldir=DIR          html documentation [DOCDIR]
1354   --dvidir=DIR           dvi documentation [DOCDIR]
1355   --pdfdir=DIR           pdf documentation [DOCDIR]
1356   --psdir=DIR            ps documentation [DOCDIR]
1357 _ACEOF
1358
1359   cat <<\_ACEOF
1360
1361 System types:
1362   --build=BUILD     configure for building on BUILD [guessed]
1363   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1364   --target=TARGET   configure for building compilers for TARGET [HOST]
1365 _ACEOF
1366 fi
1367
1368 if test -n "$ac_init_help"; then
1369   case $ac_init_help in
1370      short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1371    esac
1372   cat <<\_ACEOF
1373
1374 Optional Features:
1375   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1376   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1377   --enable-polly          Use polly if available (default is YES)
1378   --enable-libcpp         Use libc++ if available (default is NO)
1379   --enable-cxx11          Use c++11 if available (default is NO)
1380   --enable-optimized      Compile with optimizations enabled (default is NO)
1381   --enable-profiling      Compile with profiling enabled (default is NO)
1382   --enable-assertions     Compile with assertion checks enabled (default is
1383                           YES)
1384   --enable-werror         Compile with -Werror enabled (default is NO)
1385   --enable-expensive-checks
1386                           Compile with expensive debug checks enabled (default
1387                           is NO)
1388   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1389                           NO)
1390   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1391                           optimization is on and YES if it's off)
1392   --enable-jit            Enable Just In Time Compiling (default is YES)
1393   --enable-docs           Build documents (default is YES)
1394   --enable-doxygen        Build doxygen documentation (default is NO)
1395   --enable-threads        Use threads if available (default is YES)
1396   --enable-pthreads       Use pthreads if available (default is YES)
1397   --enable-pic            Build LLVM with Position Independent Code (default
1398                           is YES)
1399   --enable-shared         Build a shared library and link tools against it
1400                           (default is NO)
1401   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1402                           Win32 DLL (default is YES)
1403   --enable-timestamps     Enable embedding timestamp information in build
1404                           (default is YES)
1405   --enable-targets        Build specific host targets: all or
1406                           target1,target2,... Valid targets are: host, x86,
1407                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1408                           xcore, msp430, nvptx, systemz, r600, and cpp
1409                           (default=all)
1410   --enable-bindings       Build specific language bindings:
1411                           all,auto,none,{binding-name} (default=auto)
1412   --enable-libffi         Check for the presence of libffi (default is NO)
1413   --enable-ltdl-install   install libltdl
1414
1415 Optional Packages:
1416   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1417   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1418   --with-llvmsrc          Location of LLVM Source Code
1419   --with-llvmobj          Location of LLVM Object Code
1420   --with-optimize-option  Select the compiler options to use for optimized
1421                           builds
1422   --with-extra-options    Specify additional options to compile LLVM with
1423   --with-extra-ld-options Specify additional options to link LLVM with
1424   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1425                           is stdlib)
1426   --with-clang-resource-dir
1427                           Relative directory from the Clang binary for
1428                           resource files
1429   --with-c-include-dirs   Colon separated list of directories clang will
1430                           search for headers
1431   --with-gcc-toolchain    Directory where gcc is installed.
1432   --with-binutils-include Specify path to binutils/include/ containing
1433                           plugin-api.h file for gold plugin.
1434   --with-bug-report-url   Specify the URL where bug reports should be
1435                           submitted (default=http://llvm.org/bugs/)
1436   --with-tclinclude       directory where tcl headers are
1437   --with-udis86=<path>    Use udis86 external x86 disassembler library
1438   --with-oprofile=<prefix>
1439                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1440
1441 Some influential environment variables:
1442   CC          C compiler command
1443   CFLAGS      C compiler flags
1444   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1445               nonstandard directory <lib dir>
1446   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1447               you have headers in a nonstandard directory <include dir>
1448   CXX         C++ compiler command
1449   CXXFLAGS    C++ compiler flags
1450   CPP         C preprocessor
1451
1452 Use these variables to override the choices made by `configure' or to help
1453 it to find libraries and programs with nonstandard names/locations.
1454
1455 Report bugs to <bugs@yourdomain>.
1456 _ACEOF
1457 ac_status=$?
1458 fi
1459
1460 if test "$ac_init_help" = "recursive"; then
1461   # If there are subdirs, report their specific --help.
1462   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463     test -d "$ac_dir" || continue
1464     ac_builddir=.
1465
1466 case "$ac_dir" in
1467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *)
1469   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1470   # A ".." for each directory in $ac_dir_suffix.
1471   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1472   case $ac_top_builddir_sub in
1473   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475   esac ;;
1476 esac
1477 ac_abs_top_builddir=$ac_pwd
1478 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479 # for backward compatibility:
1480 ac_top_builddir=$ac_top_build_prefix
1481
1482 case $srcdir in
1483   .)  # We are building in place.
1484     ac_srcdir=.
1485     ac_top_srcdir=$ac_top_builddir_sub
1486     ac_abs_top_srcdir=$ac_pwd ;;
1487   [\\/]* | ?:[\\/]* )  # Absolute name.
1488     ac_srcdir=$srcdir$ac_dir_suffix;
1489     ac_top_srcdir=$srcdir
1490     ac_abs_top_srcdir=$srcdir ;;
1491   *) # Relative name.
1492     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493     ac_top_srcdir=$ac_top_build_prefix$srcdir
1494     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495 esac
1496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497
1498     cd "$ac_dir" || { ac_status=$?; continue; }
1499     # Check for guested configure.
1500     if test -f "$ac_srcdir/configure.gnu"; then
1501       echo &&
1502       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503     elif test -f "$ac_srcdir/configure"; then
1504       echo &&
1505       $SHELL "$ac_srcdir/configure" --help=recursive
1506     else
1507       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1508     fi || ac_status=$?
1509     cd "$ac_pwd" || { ac_status=$?; break; }
1510   done
1511 fi
1512
1513 test -n "$ac_init_help" && exit $ac_status
1514 if $ac_init_version; then
1515   cat <<\_ACEOF
1516 [SAMPLE] configure [x.xx]
1517 generated by GNU Autoconf 2.60
1518
1519 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1520 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1523 _ACEOF
1524   exit
1525 fi
1526 cat >config.log <<_ACEOF
1527 This file contains any messages produced by compilers while
1528 running configure, to aid debugging if configure makes a mistake.
1529
1530 It was created by [SAMPLE] $as_me [x.xx], which was
1531 generated by GNU Autoconf 2.60.  Invocation command line was
1532
1533   $ $0 $@
1534
1535 _ACEOF
1536 exec 5>>config.log
1537 {
1538 cat <<_ASUNAME
1539 ## --------- ##
1540 ## Platform. ##
1541 ## --------- ##
1542
1543 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1544 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1545 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1546 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1547 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1548
1549 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1550 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1551
1552 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1553 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1554 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1555 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1556 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1557 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1558 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1559
1560 _ASUNAME
1561
1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563 for as_dir in $PATH
1564 do
1565   IFS=$as_save_IFS
1566   test -z "$as_dir" && as_dir=.
1567   echo "PATH: $as_dir"
1568 done
1569 IFS=$as_save_IFS
1570
1571 } >&5
1572
1573 cat >&5 <<_ACEOF
1574
1575
1576 ## ----------- ##
1577 ## Core tests. ##
1578 ## ----------- ##
1579
1580 _ACEOF
1581
1582
1583 # Keep a trace of the command line.
1584 # Strip out --no-create and --no-recursion so they do not pile up.
1585 # Strip out --silent because we don't want to record it for future runs.
1586 # Also quote any args containing shell meta-characters.
1587 # Make two passes to allow for proper duplicate-argument suppression.
1588 ac_configure_args=
1589 ac_configure_args0=
1590 ac_configure_args1=
1591 ac_must_keep_next=false
1592 for ac_pass in 1 2
1593 do
1594   for ac_arg
1595   do
1596     case $ac_arg in
1597     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1598     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1599     | -silent | --silent | --silen | --sile | --sil)
1600       continue ;;
1601     *\'*)
1602       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1603     esac
1604     case $ac_pass in
1605     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1606     2)
1607       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1608       if test $ac_must_keep_next = true; then
1609         ac_must_keep_next=false # Got value, back to normal.
1610       else
1611         case $ac_arg in
1612           *=* | --config-cache | -C | -disable-* | --disable-* \
1613           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1614           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1615           | -with-* | --with-* | -without-* | --without-* | --x)
1616             case "$ac_configure_args0 " in
1617               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1618             esac
1619             ;;
1620           -* ) ac_must_keep_next=true ;;
1621         esac
1622       fi
1623       ac_configure_args="$ac_configure_args '$ac_arg'"
1624       ;;
1625     esac
1626   done
1627 done
1628 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1629 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1630
1631 # When interrupted or exit'd, cleanup temporary files, and complete
1632 # config.log.  We remove comments because anyway the quotes in there
1633 # would cause problems or look ugly.
1634 # WARNING: Use '\'' to represent an apostrophe within the trap.
1635 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1636 trap 'exit_status=$?
1637   # Save into config.log some information that might help in debugging.
1638   {
1639     echo
1640
1641     cat <<\_ASBOX
1642 ## ---------------- ##
1643 ## Cache variables. ##
1644 ## ---------------- ##
1645 _ASBOX
1646     echo
1647     # The following way of writing the cache mishandles newlines in values,
1648 (
1649   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1650     eval ac_val=\$$ac_var
1651     case $ac_val in #(
1652     *${as_nl}*)
1653       case $ac_var in #(
1654       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1655 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1656       esac
1657       case $ac_var in #(
1658       _ | IFS | as_nl) ;; #(
1659       *) $as_unset $ac_var ;;
1660       esac ;;
1661     esac
1662   done
1663   (set) 2>&1 |
1664     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1665     *${as_nl}ac_space=\ *)
1666       sed -n \
1667         "s/'\''/'\''\\\\'\'''\''/g;
1668           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1669       ;; #(
1670     *)
1671       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1672       ;;
1673     esac |
1674     sort
1675 )
1676     echo
1677
1678     cat <<\_ASBOX
1679 ## ----------------- ##
1680 ## Output variables. ##
1681 ## ----------------- ##
1682 _ASBOX
1683     echo
1684     for ac_var in $ac_subst_vars
1685     do
1686       eval ac_val=\$$ac_var
1687       case $ac_val in
1688       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1689       esac
1690       echo "$ac_var='\''$ac_val'\''"
1691     done | sort
1692     echo
1693
1694     if test -n "$ac_subst_files"; then
1695       cat <<\_ASBOX
1696 ## ------------------- ##
1697 ## File substitutions. ##
1698 ## ------------------- ##
1699 _ASBOX
1700       echo
1701       for ac_var in $ac_subst_files
1702       do
1703         eval ac_val=\$$ac_var
1704         case $ac_val in
1705         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1706         esac
1707         echo "$ac_var='\''$ac_val'\''"
1708       done | sort
1709       echo
1710     fi
1711
1712     if test -s confdefs.h; then
1713       cat <<\_ASBOX
1714 ## ----------- ##
1715 ## confdefs.h. ##
1716 ## ----------- ##
1717 _ASBOX
1718       echo
1719       cat confdefs.h
1720       echo
1721     fi
1722     test "$ac_signal" != 0 &&
1723       echo "$as_me: caught signal $ac_signal"
1724     echo "$as_me: exit $exit_status"
1725   } >&5
1726   rm -f core *.core core.conftest.* &&
1727     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1728     exit $exit_status
1729 ' 0
1730 for ac_signal in 1 2 13 15; do
1731   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1732 done
1733 ac_signal=0
1734
1735 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1736 rm -f -r conftest* confdefs.h
1737
1738 # Predefined preprocessor variables.
1739
1740 cat >>confdefs.h <<_ACEOF
1741 #define PACKAGE_NAME "$PACKAGE_NAME"
1742 _ACEOF
1743
1744
1745 cat >>confdefs.h <<_ACEOF
1746 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1747 _ACEOF
1748
1749
1750 cat >>confdefs.h <<_ACEOF
1751 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1752 _ACEOF
1753
1754
1755 cat >>confdefs.h <<_ACEOF
1756 #define PACKAGE_STRING "$PACKAGE_STRING"
1757 _ACEOF
1758
1759
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1762 _ACEOF
1763
1764
1765 # Let the site file select an alternate cache file if it wants to.
1766 # Prefer explicitly selected file to automatically selected ones.
1767 if test -n "$CONFIG_SITE"; then
1768   set x "$CONFIG_SITE"
1769 elif test "x$prefix" != xNONE; then
1770   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1771 else
1772   set x "$ac_default_prefix/share/config.site" \
1773         "$ac_default_prefix/etc/config.site"
1774 fi
1775 shift
1776 for ac_site_file
1777 do
1778   if test -r "$ac_site_file"; then
1779     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1780 echo "$as_me: loading site script $ac_site_file" >&6;}
1781     sed 's/^/| /' "$ac_site_file" >&5
1782     . "$ac_site_file"
1783   fi
1784 done
1785
1786 if test -r "$cache_file"; then
1787   # Some versions of bash will fail to source /dev/null (special
1788   # files actually), so we avoid doing that.
1789   if test -f "$cache_file"; then
1790     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1791 echo "$as_me: loading cache $cache_file" >&6;}
1792     case $cache_file in
1793       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1794       *)                      . "./$cache_file";;
1795     esac
1796   fi
1797 else
1798   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1799 echo "$as_me: creating cache $cache_file" >&6;}
1800   >$cache_file
1801 fi
1802
1803 # Check that the precious variables saved in the cache have kept the same
1804 # value.
1805 ac_cache_corrupted=false
1806 for ac_var in $ac_precious_vars; do
1807   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1808   eval ac_new_set=\$ac_env_${ac_var}_set
1809   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1810   eval ac_new_val=\$ac_env_${ac_var}_value
1811   case $ac_old_set,$ac_new_set in
1812     set,)
1813       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1814 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1815       ac_cache_corrupted=: ;;
1816     ,set)
1817       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1818 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1819       ac_cache_corrupted=: ;;
1820     ,);;
1821     *)
1822       if test "x$ac_old_val" != "x$ac_new_val"; then
1823         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1824 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1825         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1826 echo "$as_me:   former value:  $ac_old_val" >&2;}
1827         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1828 echo "$as_me:   current value: $ac_new_val" >&2;}
1829         ac_cache_corrupted=:
1830       fi;;
1831   esac
1832   # Pass precious variables to config.status.
1833   if test "$ac_new_set" = set; then
1834     case $ac_new_val in
1835     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1836     *) ac_arg=$ac_var=$ac_new_val ;;
1837     esac
1838     case " $ac_configure_args " in
1839       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1840       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1841     esac
1842   fi
1843 done
1844 if $ac_cache_corrupted; then
1845   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1846 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1847   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1848 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1849    { (exit 1); exit 1; }; }
1850 fi
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876 ac_ext=c
1877 ac_cpp='$CPP $CPPFLAGS'
1878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1881
1882
1883
1884 LLVM_SRC_ROOT="../.."
1885 LLVM_OBJ_ROOT="../.."
1886
1887 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1888 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1889
1890
1891 # Check whether --with-llvmsrc was given.
1892 if test "${with_llvmsrc+set}" = set; then
1893   withval=$with_llvmsrc; llvm_src="$withval"
1894 else
1895   llvm_src="$LLVM_ABS_SRC_ROOT"
1896 fi
1897
1898   LLVM_SRC=$llvm_src
1899
1900
1901 # Check whether --with-llvmobj was given.
1902 if test "${with_llvmobj+set}" = set; then
1903   withval=$with_llvmobj; llvm_obj="$withval"
1904 else
1905   llvm_obj="$LLVM_ABS_OBJ_ROOT"
1906 fi
1907
1908   LLVM_OBJ=$llvm_obj
1909
1910   ac_config_commands="$ac_config_commands setup"
1911
1912
1913
1914 { echo "$as_me:$LINENO: checking llvm-config" >&5
1915 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1916 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1917 if ! test -f "$llvm_config_path" ; then
1918    llvm_config_path="no"
1919 fi
1920 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1921 echo "${ECHO_T}$llvm_config_path" >&6; }
1922
1923 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1924 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1925 if test "$llvm_config_path" != no ; then
1926   llvm_package_version=`$llvm_config_path --version`
1927 else
1928   llvm_package_version="unknown";
1929 fi
1930 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1931 echo "${ECHO_T}$llvm_package_version" >&6; }
1932 LLVM_VERSION=$llvm_package_version
1933
1934
1935
1936
1937 ac_aux_dir=
1938 for ac_dir in autoconf "$srcdir"/autoconf; do
1939   if test -f "$ac_dir/install-sh"; then
1940     ac_aux_dir=$ac_dir
1941     ac_install_sh="$ac_aux_dir/install-sh -c"
1942     break
1943   elif test -f "$ac_dir/install.sh"; then
1944     ac_aux_dir=$ac_dir
1945     ac_install_sh="$ac_aux_dir/install.sh -c"
1946     break
1947   elif test -f "$ac_dir/shtool"; then
1948     ac_aux_dir=$ac_dir
1949     ac_install_sh="$ac_aux_dir/shtool install -c"
1950     break
1951   fi
1952 done
1953 if test -z "$ac_aux_dir"; then
1954   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1955 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1956    { (exit 1); exit 1; }; }
1957 fi
1958
1959 # These three variables are undocumented and unsupported,
1960 # and are intended to be withdrawn in a future Autoconf release.
1961 # They can cause serious problems if a builder's source tree is in a directory
1962 # whose full name contains unusual characters.
1963 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1964 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1965 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1966
1967
1968
1969
1970 ac_ext=c
1971 ac_cpp='$CPP $CPPFLAGS'
1972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975 if test -n "$ac_tool_prefix"; then
1976   for ac_prog in clang llvm-gcc gcc
1977   do
1978     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1982 if test "${ac_cv_prog_CC+set}" = set; then
1983   echo $ECHO_N "(cached) $ECHO_C" >&6
1984 else
1985   if test -n "$CC"; then
1986   ac_cv_prog_CC="$CC" # Let the user override the test.
1987 else
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1990 do
1991   IFS=$as_save_IFS
1992   test -z "$as_dir" && as_dir=.
1993   for ac_exec_ext in '' $ac_executable_extensions; do
1994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1995     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997     break 2
1998   fi
1999 done
2000 done
2001 IFS=$as_save_IFS
2002
2003 fi
2004 fi
2005 CC=$ac_cv_prog_CC
2006 if test -n "$CC"; then
2007   { echo "$as_me:$LINENO: result: $CC" >&5
2008 echo "${ECHO_T}$CC" >&6; }
2009 else
2010   { echo "$as_me:$LINENO: result: no" >&5
2011 echo "${ECHO_T}no" >&6; }
2012 fi
2013
2014
2015     test -n "$CC" && break
2016   done
2017 fi
2018 if test -z "$CC"; then
2019   ac_ct_CC=$CC
2020   for ac_prog in clang llvm-gcc gcc
2021 do
2022   # Extract the first word of "$ac_prog", so it can be a program name with args.
2023 set dummy $ac_prog; ac_word=$2
2024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2027   echo $ECHO_N "(cached) $ECHO_C" >&6
2028 else
2029   if test -n "$ac_ct_CC"; then
2030   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2031 else
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033 for as_dir in $PATH
2034 do
2035   IFS=$as_save_IFS
2036   test -z "$as_dir" && as_dir=.
2037   for ac_exec_ext in '' $ac_executable_extensions; do
2038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2039     ac_cv_prog_ac_ct_CC="$ac_prog"
2040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041     break 2
2042   fi
2043 done
2044 done
2045 IFS=$as_save_IFS
2046
2047 fi
2048 fi
2049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2050 if test -n "$ac_ct_CC"; then
2051   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2052 echo "${ECHO_T}$ac_ct_CC" >&6; }
2053 else
2054   { echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6; }
2056 fi
2057
2058
2059   test -n "$ac_ct_CC" && break
2060 done
2061
2062   if test "x$ac_ct_CC" = x; then
2063     CC=""
2064   else
2065     case $cross_compiling:$ac_tool_warned in
2066 yes:)
2067 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2068 whose name does not start with the host triplet.  If you think this
2069 configuration is useful to you, please write to autoconf@gnu.org." >&5
2070 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2071 whose name does not start with the host triplet.  If you think this
2072 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2073 ac_tool_warned=yes ;;
2074 esac
2075     CC=$ac_ct_CC
2076   fi
2077 fi
2078
2079
2080 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081 See \`config.log' for more details." >&5
2082 echo "$as_me: error: no acceptable C compiler found in \$PATH
2083 See \`config.log' for more details." >&2;}
2084    { (exit 1); exit 1; }; }
2085
2086 # Provide some information about the compiler.
2087 echo "$as_me:$LINENO: checking for C compiler version" >&5
2088 ac_compiler=`set X $ac_compile; echo $2`
2089 { (ac_try="$ac_compiler --version >&5"
2090 case "(($ac_try" in
2091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092   *) ac_try_echo=$ac_try;;
2093 esac
2094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2095   (eval "$ac_compiler --version >&5") 2>&5
2096   ac_status=$?
2097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098   (exit $ac_status); }
2099 { (ac_try="$ac_compiler -v >&5"
2100 case "(($ac_try" in
2101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102   *) ac_try_echo=$ac_try;;
2103 esac
2104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2105   (eval "$ac_compiler -v >&5") 2>&5
2106   ac_status=$?
2107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108   (exit $ac_status); }
2109 { (ac_try="$ac_compiler -V >&5"
2110 case "(($ac_try" in
2111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112   *) ac_try_echo=$ac_try;;
2113 esac
2114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2115   (eval "$ac_compiler -V >&5") 2>&5
2116   ac_status=$?
2117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118   (exit $ac_status); }
2119
2120 cat >conftest.$ac_ext <<_ACEOF
2121 /* confdefs.h.  */
2122 _ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h.  */
2126
2127 int
2128 main ()
2129 {
2130
2131   ;
2132   return 0;
2133 }
2134 _ACEOF
2135 ac_clean_files_save=$ac_clean_files
2136 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2137 # Try to create an executable without -o first, disregard a.out.
2138 # It will help us diagnose broken compilers, and finding out an intuition
2139 # of exeext.
2140 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2141 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2142 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2143 #
2144 # List of possible output files, starting from the most likely.
2145 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2146 # only as a last resort.  b.out is created by i960 compilers.
2147 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2148 #
2149 # The IRIX 6 linker writes into existing files which may not be
2150 # executable, retaining their permissions.  Remove them first so a
2151 # subsequent execution test works.
2152 ac_rmfiles=
2153 for ac_file in $ac_files
2154 do
2155   case $ac_file in
2156     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2157     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2158   esac
2159 done
2160 rm -f $ac_rmfiles
2161
2162 if { (ac_try="$ac_link_default"
2163 case "(($ac_try" in
2164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165   *) ac_try_echo=$ac_try;;
2166 esac
2167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2168   (eval "$ac_link_default") 2>&5
2169   ac_status=$?
2170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171   (exit $ac_status); }; then
2172   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2173 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2174 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2175 # so that the user can short-circuit this test for compilers unknown to
2176 # Autoconf.
2177 for ac_file in $ac_files
2178 do
2179   test -f "$ac_file" || continue
2180   case $ac_file in
2181     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2182         ;;
2183     [ab].out )
2184         # We found the default executable, but exeext='' is most
2185         # certainly right.
2186         break;;
2187     *.* )
2188         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2189         then :; else
2190            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2191         fi
2192         # We set ac_cv_exeext here because the later test for it is not
2193         # safe: cross compilers may not add the suffix if given an `-o'
2194         # argument, so we may need to know it at that point already.
2195         # Even if this section looks crufty: it has the advantage of
2196         # actually working.
2197         break;;
2198     * )
2199         break;;
2200   esac
2201 done
2202 test "$ac_cv_exeext" = no && ac_cv_exeext=
2203
2204 else
2205   echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2207
2208 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2209 See \`config.log' for more details." >&5
2210 echo "$as_me: error: C compiler cannot create executables
2211 See \`config.log' for more details." >&2;}
2212    { (exit 77); exit 77; }; }
2213 fi
2214
2215 ac_exeext=$ac_cv_exeext
2216 { echo "$as_me:$LINENO: result: $ac_file" >&5
2217 echo "${ECHO_T}$ac_file" >&6; }
2218
2219 # Check that the compiler produces executables we can run.  If not, either
2220 # the compiler is broken, or we cross compile.
2221 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2222 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2223 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2224 # If not cross compiling, check that we can run a simple program.
2225 if test "$cross_compiling" != yes; then
2226   if { ac_try='./$ac_file'
2227   { (case "(($ac_try" in
2228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229   *) ac_try_echo=$ac_try;;
2230 esac
2231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2232   (eval "$ac_try") 2>&5
2233   ac_status=$?
2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235   (exit $ac_status); }; }; then
2236     cross_compiling=no
2237   else
2238     if test "$cross_compiling" = maybe; then
2239         cross_compiling=yes
2240     else
2241         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2242 If you meant to cross compile, use \`--host'.
2243 See \`config.log' for more details." >&5
2244 echo "$as_me: error: cannot run C compiled programs.
2245 If you meant to cross compile, use \`--host'.
2246 See \`config.log' for more details." >&2;}
2247    { (exit 1); exit 1; }; }
2248     fi
2249   fi
2250 fi
2251 { echo "$as_me:$LINENO: result: yes" >&5
2252 echo "${ECHO_T}yes" >&6; }
2253
2254 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2255 ac_clean_files=$ac_clean_files_save
2256 # Check that the compiler produces executables we can run.  If not, either
2257 # the compiler is broken, or we cross compile.
2258 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2259 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2260 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2261 echo "${ECHO_T}$cross_compiling" >&6; }
2262
2263 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2264 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2265 if { (ac_try="$ac_link"
2266 case "(($ac_try" in
2267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268   *) ac_try_echo=$ac_try;;
2269 esac
2270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2271   (eval "$ac_link") 2>&5
2272   ac_status=$?
2273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274   (exit $ac_status); }; then
2275   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2276 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2277 # work properly (i.e., refer to `conftest.exe'), while it won't with
2278 # `rm'.
2279 for ac_file in conftest.exe conftest conftest.*; do
2280   test -f "$ac_file" || continue
2281   case $ac_file in
2282     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2283     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2284           break;;
2285     * ) break;;
2286   esac
2287 done
2288 else
2289   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2290 See \`config.log' for more details." >&5
2291 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2292 See \`config.log' for more details." >&2;}
2293    { (exit 1); exit 1; }; }
2294 fi
2295
2296 rm -f conftest$ac_cv_exeext
2297 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2298 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2299
2300 rm -f conftest.$ac_ext
2301 EXEEXT=$ac_cv_exeext
2302 ac_exeext=$EXEEXT
2303 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2304 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2305 if test "${ac_cv_objext+set}" = set; then
2306   echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308   cat >conftest.$ac_ext <<_ACEOF
2309 /* confdefs.h.  */
2310 _ACEOF
2311 cat confdefs.h >>conftest.$ac_ext
2312 cat >>conftest.$ac_ext <<_ACEOF
2313 /* end confdefs.h.  */
2314
2315 int
2316 main ()
2317 {
2318
2319   ;
2320   return 0;
2321 }
2322 _ACEOF
2323 rm -f conftest.o conftest.obj
2324 if { (ac_try="$ac_compile"
2325 case "(($ac_try" in
2326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327   *) ac_try_echo=$ac_try;;
2328 esac
2329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2330   (eval "$ac_compile") 2>&5
2331   ac_status=$?
2332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333   (exit $ac_status); }; then
2334   for ac_file in conftest.o conftest.obj conftest.*; do
2335   test -f "$ac_file" || continue;
2336   case $ac_file in
2337     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2338     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2339        break;;
2340   esac
2341 done
2342 else
2343   echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2345
2346 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2347 See \`config.log' for more details." >&5
2348 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2349 See \`config.log' for more details." >&2;}
2350    { (exit 1); exit 1; }; }
2351 fi
2352
2353 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2354 fi
2355 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2356 echo "${ECHO_T}$ac_cv_objext" >&6; }
2357 OBJEXT=$ac_cv_objext
2358 ac_objext=$OBJEXT
2359 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2360 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2361 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2362   echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364   cat >conftest.$ac_ext <<_ACEOF
2365 /* confdefs.h.  */
2366 _ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h.  */
2370
2371 int
2372 main ()
2373 {
2374 #ifndef __GNUC__
2375        choke me
2376 #endif
2377
2378   ;
2379   return 0;
2380 }
2381 _ACEOF
2382 rm -f conftest.$ac_objext
2383 if { (ac_try="$ac_compile"
2384 case "(($ac_try" in
2385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386   *) ac_try_echo=$ac_try;;
2387 esac
2388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389   (eval "$ac_compile") 2>conftest.er1
2390   ac_status=$?
2391   grep -v '^ *+' conftest.er1 >conftest.err
2392   rm -f conftest.er1
2393   cat conftest.err >&5
2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395   (exit $ac_status); } &&
2396          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2397   { (case "(($ac_try" in
2398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399   *) ac_try_echo=$ac_try;;
2400 esac
2401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402   (eval "$ac_try") 2>&5
2403   ac_status=$?
2404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405   (exit $ac_status); }; } &&
2406          { ac_try='test -s conftest.$ac_objext'
2407   { (case "(($ac_try" in
2408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409   *) ac_try_echo=$ac_try;;
2410 esac
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412   (eval "$ac_try") 2>&5
2413   ac_status=$?
2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); }; }; then
2416   ac_compiler_gnu=yes
2417 else
2418   echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2420
2421         ac_compiler_gnu=no
2422 fi
2423
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2426
2427 fi
2428 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2429 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2430 GCC=`test $ac_compiler_gnu = yes && echo yes`
2431 ac_test_CFLAGS=${CFLAGS+set}
2432 ac_save_CFLAGS=$CFLAGS
2433 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2434 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2435 if test "${ac_cv_prog_cc_g+set}" = set; then
2436   echo $ECHO_N "(cached) $ECHO_C" >&6
2437 else
2438   ac_save_c_werror_flag=$ac_c_werror_flag
2439    ac_c_werror_flag=yes
2440    ac_cv_prog_cc_g=no
2441    CFLAGS="-g"
2442    cat >conftest.$ac_ext <<_ACEOF
2443 /* confdefs.h.  */
2444 _ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h.  */
2448
2449 int
2450 main ()
2451 {
2452
2453   ;
2454   return 0;
2455 }
2456 _ACEOF
2457 rm -f conftest.$ac_objext
2458 if { (ac_try="$ac_compile"
2459 case "(($ac_try" in
2460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461   *) ac_try_echo=$ac_try;;
2462 esac
2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464   (eval "$ac_compile") 2>conftest.er1
2465   ac_status=$?
2466   grep -v '^ *+' conftest.er1 >conftest.err
2467   rm -f conftest.er1
2468   cat conftest.err >&5
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); } &&
2471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2472   { (case "(($ac_try" in
2473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474   *) ac_try_echo=$ac_try;;
2475 esac
2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477   (eval "$ac_try") 2>&5
2478   ac_status=$?
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); }; } &&
2481          { ac_try='test -s conftest.$ac_objext'
2482   { (case "(($ac_try" in
2483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484   *) ac_try_echo=$ac_try;;
2485 esac
2486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2487   (eval "$ac_try") 2>&5
2488   ac_status=$?
2489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490   (exit $ac_status); }; }; then
2491   ac_cv_prog_cc_g=yes
2492 else
2493   echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2495
2496         CFLAGS=""
2497       cat >conftest.$ac_ext <<_ACEOF
2498 /* confdefs.h.  */
2499 _ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h.  */
2503
2504 int
2505 main ()
2506 {
2507
2508   ;
2509   return 0;
2510 }
2511 _ACEOF
2512 rm -f conftest.$ac_objext
2513 if { (ac_try="$ac_compile"
2514 case "(($ac_try" in
2515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516   *) ac_try_echo=$ac_try;;
2517 esac
2518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519   (eval "$ac_compile") 2>conftest.er1
2520   ac_status=$?
2521   grep -v '^ *+' conftest.er1 >conftest.err
2522   rm -f conftest.er1
2523   cat conftest.err >&5
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); } &&
2526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2527   { (case "(($ac_try" in
2528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529   *) ac_try_echo=$ac_try;;
2530 esac
2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532   (eval "$ac_try") 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; } &&
2536          { ac_try='test -s conftest.$ac_objext'
2537   { (case "(($ac_try" in
2538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539   *) ac_try_echo=$ac_try;;
2540 esac
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542   (eval "$ac_try") 2>&5
2543   ac_status=$?
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); }; }; then
2546   :
2547 else
2548   echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2550
2551         ac_c_werror_flag=$ac_save_c_werror_flag
2552          CFLAGS="-g"
2553          cat >conftest.$ac_ext <<_ACEOF
2554 /* confdefs.h.  */
2555 _ACEOF
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h.  */
2559
2560 int
2561 main ()
2562 {
2563
2564   ;
2565   return 0;
2566 }
2567 _ACEOF
2568 rm -f conftest.$ac_objext
2569 if { (ac_try="$ac_compile"
2570 case "(($ac_try" in
2571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572   *) ac_try_echo=$ac_try;;
2573 esac
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575   (eval "$ac_compile") 2>conftest.er1
2576   ac_status=$?
2577   grep -v '^ *+' conftest.er1 >conftest.err
2578   rm -f conftest.er1
2579   cat conftest.err >&5
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); } &&
2582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2583   { (case "(($ac_try" in
2584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585   *) ac_try_echo=$ac_try;;
2586 esac
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588   (eval "$ac_try") 2>&5
2589   ac_status=$?
2590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591   (exit $ac_status); }; } &&
2592          { ac_try='test -s conftest.$ac_objext'
2593   { (case "(($ac_try" in
2594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595   *) ac_try_echo=$ac_try;;
2596 esac
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598   (eval "$ac_try") 2>&5
2599   ac_status=$?
2600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); }; }; then
2602   ac_cv_prog_cc_g=yes
2603 else
2604   echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2606
2607
2608 fi
2609
2610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611 fi
2612
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 fi
2615
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617    ac_c_werror_flag=$ac_save_c_werror_flag
2618 fi
2619 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2620 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2621 if test "$ac_test_CFLAGS" = set; then
2622   CFLAGS=$ac_save_CFLAGS
2623 elif test $ac_cv_prog_cc_g = yes; then
2624   if test "$GCC" = yes; then
2625     CFLAGS="-g -O2"
2626   else
2627     CFLAGS="-g"
2628   fi
2629 else
2630   if test "$GCC" = yes; then
2631     CFLAGS="-O2"
2632   else
2633     CFLAGS=
2634   fi
2635 fi
2636 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2637 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2638 if test "${ac_cv_prog_cc_c89+set}" = set; then
2639   echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641   ac_cv_prog_cc_c89=no
2642 ac_save_CC=$CC
2643 cat >conftest.$ac_ext <<_ACEOF
2644 /* confdefs.h.  */
2645 _ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h.  */
2649 #include <stdarg.h>
2650 #include <stdio.h>
2651 #include <sys/types.h>
2652 #include <sys/stat.h>
2653 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2654 struct buf { int x; };
2655 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2656 static char *e (p, i)
2657      char **p;
2658      int i;
2659 {
2660   return p[i];
2661 }
2662 static char *f (char * (*g) (char **, int), char **p, ...)
2663 {
2664   char *s;
2665   va_list v;
2666   va_start (v,p);
2667   s = g (p, va_arg (v,int));
2668   va_end (v);
2669   return s;
2670 }
2671
2672 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2673    function prototypes and stuff, but not '\xHH' hex character constants.
2674    These don't provoke an error unfortunately, instead are silently treated
2675    as 'x'.  The following induces an error, until -std is added to get
2676    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2677    array size at least.  It's necessary to write '\x00'==0 to get something
2678    that's true only with -std.  */
2679 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2680
2681 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2682    inside strings and character constants.  */
2683 #define FOO(x) 'x'
2684 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2685
2686 int test (int i, double x);
2687 struct s1 {int (*f) (int a);};
2688 struct s2 {int (*f) (double a);};
2689 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2690 int argc;
2691 char **argv;
2692 int
2693 main ()
2694 {
2695 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2696   ;
2697   return 0;
2698 }
2699 _ACEOF
2700 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2701         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2702 do
2703   CC="$ac_save_CC $ac_arg"
2704   rm -f conftest.$ac_objext
2705 if { (ac_try="$ac_compile"
2706 case "(($ac_try" in
2707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708   *) ac_try_echo=$ac_try;;
2709 esac
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711   (eval "$ac_compile") 2>conftest.er1
2712   ac_status=$?
2713   grep -v '^ *+' conftest.er1 >conftest.err
2714   rm -f conftest.er1
2715   cat conftest.err >&5
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); } &&
2718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2719   { (case "(($ac_try" in
2720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721   *) ac_try_echo=$ac_try;;
2722 esac
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724   (eval "$ac_try") 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }; } &&
2728          { ac_try='test -s conftest.$ac_objext'
2729   { (case "(($ac_try" in
2730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731   *) ac_try_echo=$ac_try;;
2732 esac
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734   (eval "$ac_try") 2>&5
2735   ac_status=$?
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); }; }; then
2738   ac_cv_prog_cc_c89=$ac_arg
2739 else
2740   echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2742
2743
2744 fi
2745
2746 rm -f core conftest.err conftest.$ac_objext
2747   test "x$ac_cv_prog_cc_c89" != "xno" && break
2748 done
2749 rm -f conftest.$ac_ext
2750 CC=$ac_save_CC
2751
2752 fi
2753 # AC_CACHE_VAL
2754 case "x$ac_cv_prog_cc_c89" in
2755   x)
2756     { echo "$as_me:$LINENO: result: none needed" >&5
2757 echo "${ECHO_T}none needed" >&6; } ;;
2758   xno)
2759     { echo "$as_me:$LINENO: result: unsupported" >&5
2760 echo "${ECHO_T}unsupported" >&6; } ;;
2761   *)
2762     CC="$CC $ac_cv_prog_cc_c89"
2763     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2764 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2765 esac
2766
2767
2768 ac_ext=c
2769 ac_cpp='$CPP $CPPFLAGS'
2770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2773
2774 ac_ext=cpp
2775 ac_cpp='$CXXCPP $CPPFLAGS'
2776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2779 if test -z "$CXX"; then
2780   if test -n "$CCC"; then
2781     CXX=$CCC
2782   else
2783     if test -n "$ac_tool_prefix"; then
2784   for ac_prog in clang++ llvm-g++ g++
2785   do
2786     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2790 if test "${ac_cv_prog_CXX+set}" = set; then
2791   echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793   if test -n "$CXX"; then
2794   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799   IFS=$as_save_IFS
2800   test -z "$as_dir" && as_dir=.
2801   for ac_exec_ext in '' $ac_executable_extensions; do
2802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2803     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805     break 2
2806   fi
2807 done
2808 done
2809 IFS=$as_save_IFS
2810
2811 fi
2812 fi
2813 CXX=$ac_cv_prog_CXX
2814 if test -n "$CXX"; then
2815   { echo "$as_me:$LINENO: result: $CXX" >&5
2816 echo "${ECHO_T}$CXX" >&6; }
2817 else
2818   { echo "$as_me:$LINENO: result: no" >&5
2819 echo "${ECHO_T}no" >&6; }
2820 fi
2821
2822
2823     test -n "$CXX" && break
2824   done
2825 fi
2826 if test -z "$CXX"; then
2827   ac_ct_CXX=$CXX
2828   for ac_prog in clang++ llvm-g++ g++
2829 do
2830   # Extract the first word of "$ac_prog", so it can be a program name with args.
2831 set dummy $ac_prog; ac_word=$2
2832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2834 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2835   echo $ECHO_N "(cached) $ECHO_C" >&6
2836 else
2837   if test -n "$ac_ct_CXX"; then
2838   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2842 do
2843   IFS=$as_save_IFS
2844   test -z "$as_dir" && as_dir=.
2845   for ac_exec_ext in '' $ac_executable_extensions; do
2846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2847     ac_cv_prog_ac_ct_CXX="$ac_prog"
2848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849     break 2
2850   fi
2851 done
2852 done
2853 IFS=$as_save_IFS
2854
2855 fi
2856 fi
2857 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2858 if test -n "$ac_ct_CXX"; then
2859   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2860 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2861 else
2862   { echo "$as_me:$LINENO: result: no" >&5
2863 echo "${ECHO_T}no" >&6; }
2864 fi
2865
2866
2867   test -n "$ac_ct_CXX" && break
2868 done
2869
2870   if test "x$ac_ct_CXX" = x; then
2871     CXX="g++"
2872   else
2873     case $cross_compiling:$ac_tool_warned in
2874 yes:)
2875 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2876 whose name does not start with the host triplet.  If you think this
2877 configuration is useful to you, please write to autoconf@gnu.org." >&5
2878 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2879 whose name does not start with the host triplet.  If you think this
2880 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2881 ac_tool_warned=yes ;;
2882 esac
2883     CXX=$ac_ct_CXX
2884   fi
2885 fi
2886
2887   fi
2888 fi
2889 # Provide some information about the compiler.
2890 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2891 ac_compiler=`set X $ac_compile; echo $2`
2892 { (ac_try="$ac_compiler --version >&5"
2893 case "(($ac_try" in
2894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895   *) ac_try_echo=$ac_try;;
2896 esac
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898   (eval "$ac_compiler --version >&5") 2>&5
2899   ac_status=$?
2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901   (exit $ac_status); }
2902 { (ac_try="$ac_compiler -v >&5"
2903 case "(($ac_try" in
2904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905   *) ac_try_echo=$ac_try;;
2906 esac
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908   (eval "$ac_compiler -v >&5") 2>&5
2909   ac_status=$?
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); }
2912 { (ac_try="$ac_compiler -V >&5"
2913 case "(($ac_try" in
2914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915   *) ac_try_echo=$ac_try;;
2916 esac
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918   (eval "$ac_compiler -V >&5") 2>&5
2919   ac_status=$?
2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921   (exit $ac_status); }
2922
2923 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2924 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2925 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2926   echo $ECHO_N "(cached) $ECHO_C" >&6
2927 else
2928   cat >conftest.$ac_ext <<_ACEOF
2929 /* confdefs.h.  */
2930 _ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h.  */
2934
2935 int
2936 main ()
2937 {
2938 #ifndef __GNUC__
2939        choke me
2940 #endif
2941
2942   ;
2943   return 0;
2944 }
2945 _ACEOF
2946 rm -f conftest.$ac_objext
2947 if { (ac_try="$ac_compile"
2948 case "(($ac_try" in
2949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950   *) ac_try_echo=$ac_try;;
2951 esac
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953   (eval "$ac_compile") 2>conftest.er1
2954   ac_status=$?
2955   grep -v '^ *+' conftest.er1 >conftest.err
2956   rm -f conftest.er1
2957   cat conftest.err >&5
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); } &&
2960          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2961   { (case "(($ac_try" in
2962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963   *) ac_try_echo=$ac_try;;
2964 esac
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966   (eval "$ac_try") 2>&5
2967   ac_status=$?
2968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969   (exit $ac_status); }; } &&
2970          { ac_try='test -s conftest.$ac_objext'
2971   { (case "(($ac_try" in
2972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973   *) ac_try_echo=$ac_try;;
2974 esac
2975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976   (eval "$ac_try") 2>&5
2977   ac_status=$?
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); }; }; then
2980   ac_compiler_gnu=yes
2981 else
2982   echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2984
2985         ac_compiler_gnu=no
2986 fi
2987
2988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2990
2991 fi
2992 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2993 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2994 GXX=`test $ac_compiler_gnu = yes && echo yes`
2995 ac_test_CXXFLAGS=${CXXFLAGS+set}
2996 ac_save_CXXFLAGS=$CXXFLAGS
2997 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2998 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2999 if test "${ac_cv_prog_cxx_g+set}" = set; then
3000   echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3003    ac_cxx_werror_flag=yes
3004    ac_cv_prog_cxx_g=no
3005    CXXFLAGS="-g"
3006    cat >conftest.$ac_ext <<_ACEOF
3007 /* confdefs.h.  */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h.  */
3012
3013 int
3014 main ()
3015 {
3016
3017   ;
3018   return 0;
3019 }
3020 _ACEOF
3021 rm -f conftest.$ac_objext
3022 if { (ac_try="$ac_compile"
3023 case "(($ac_try" in
3024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025   *) ac_try_echo=$ac_try;;
3026 esac
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028   (eval "$ac_compile") 2>conftest.er1
3029   ac_status=$?
3030   grep -v '^ *+' conftest.er1 >conftest.err
3031   rm -f conftest.er1
3032   cat conftest.err >&5
3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); } &&
3035          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3036   { (case "(($ac_try" in
3037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038   *) ac_try_echo=$ac_try;;
3039 esac
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041   (eval "$ac_try") 2>&5
3042   ac_status=$?
3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044   (exit $ac_status); }; } &&
3045          { ac_try='test -s conftest.$ac_objext'
3046   { (case "(($ac_try" in
3047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048   *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051   (eval "$ac_try") 2>&5
3052   ac_status=$?
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); }; }; then
3055   ac_cv_prog_cxx_g=yes
3056 else
3057   echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3059
3060         CXXFLAGS=""
3061       cat >conftest.$ac_ext <<_ACEOF
3062 /* confdefs.h.  */
3063 _ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h.  */
3067
3068 int
3069 main ()
3070 {
3071
3072   ;
3073   return 0;
3074 }
3075 _ACEOF
3076 rm -f conftest.$ac_objext
3077 if { (ac_try="$ac_compile"
3078 case "(($ac_try" in
3079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080   *) ac_try_echo=$ac_try;;
3081 esac
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083   (eval "$ac_compile") 2>conftest.er1
3084   ac_status=$?
3085   grep -v '^ *+' conftest.er1 >conftest.err
3086   rm -f conftest.er1
3087   cat conftest.err >&5
3088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089   (exit $ac_status); } &&
3090          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3091   { (case "(($ac_try" in
3092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093   *) ac_try_echo=$ac_try;;
3094 esac
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096   (eval "$ac_try") 2>&5
3097   ac_status=$?
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); }; } &&
3100          { ac_try='test -s conftest.$ac_objext'
3101   { (case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106   (eval "$ac_try") 2>&5
3107   ac_status=$?
3108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109   (exit $ac_status); }; }; then
3110   :
3111 else
3112   echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3114
3115         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3116          CXXFLAGS="-g"
3117          cat >conftest.$ac_ext <<_ACEOF
3118 /* confdefs.h.  */
3119 _ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h.  */
3123
3124 int
3125 main ()
3126 {
3127
3128   ;
3129   return 0;
3130 }
3131 _ACEOF
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3134 case "(($ac_try" in
3135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136   *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139   (eval "$ac_compile") 2>conftest.er1
3140   ac_status=$?
3141   grep -v '^ *+' conftest.er1 >conftest.err
3142   rm -f conftest.er1
3143   cat conftest.err >&5
3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); } &&
3146          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3147   { (case "(($ac_try" in
3148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149   *) ac_try_echo=$ac_try;;
3150 esac
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152   (eval "$ac_try") 2>&5
3153   ac_status=$?
3154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155   (exit $ac_status); }; } &&
3156          { ac_try='test -s conftest.$ac_objext'
3157   { (case "(($ac_try" in
3158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159   *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162   (eval "$ac_try") 2>&5
3163   ac_status=$?
3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); }; }; then
3166   ac_cv_prog_cxx_g=yes
3167 else
3168   echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3170
3171
3172 fi
3173
3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175 fi
3176
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178 fi
3179
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3182 fi
3183 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3184 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3185 if test "$ac_test_CXXFLAGS" = set; then
3186   CXXFLAGS=$ac_save_CXXFLAGS
3187 elif test $ac_cv_prog_cxx_g = yes; then
3188   if test "$GXX" = yes; then
3189     CXXFLAGS="-g -O2"
3190   else
3191     CXXFLAGS="-g"
3192   fi
3193 else
3194   if test "$GXX" = yes; then
3195     CXXFLAGS="-O2"
3196   else
3197     CXXFLAGS=
3198   fi
3199 fi
3200 ac_ext=c
3201 ac_cpp='$CPP $CPPFLAGS'
3202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3205
3206 ac_ext=c
3207 ac_cpp='$CPP $CPPFLAGS'
3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3212 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3213 # On Suns, sometimes $CPP names a directory.
3214 if test -n "$CPP" && test -d "$CPP"; then
3215   CPP=
3216 fi
3217 if test -z "$CPP"; then
3218   if test "${ac_cv_prog_CPP+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221       # Double quotes because CPP needs to be expanded
3222     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3223     do
3224       ac_preproc_ok=false
3225 for ac_c_preproc_warn_flag in '' yes
3226 do
3227   # Use a header file that comes with gcc, so configuring glibc
3228   # with a fresh cross-compiler works.
3229   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230   # <limits.h> exists even on freestanding compilers.
3231   # On the NeXT, cc -E runs the code through the compiler's parser,
3232   # not just through cpp. "Syntax error" is here to catch this case.
3233   cat >conftest.$ac_ext <<_ACEOF
3234 /* confdefs.h.  */
3235 _ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h.  */
3239 #ifdef __STDC__
3240 # include <limits.h>
3241 #else
3242 # include <assert.h>
3243 #endif
3244                      Syntax error
3245 _ACEOF
3246 if { (ac_try="$ac_cpp conftest.$ac_ext"
3247 case "(($ac_try" in
3248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249   *) ac_try_echo=$ac_try;;
3250 esac
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3253   ac_status=$?
3254   grep -v '^ *+' conftest.er1 >conftest.err
3255   rm -f conftest.er1
3256   cat conftest.err >&5
3257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258   (exit $ac_status); } >/dev/null; then
3259   if test -s conftest.err; then
3260     ac_cpp_err=$ac_c_preproc_warn_flag
3261     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3262   else
3263     ac_cpp_err=
3264   fi
3265 else
3266   ac_cpp_err=yes
3267 fi
3268 if test -z "$ac_cpp_err"; then
3269   :
3270 else
3271   echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3273
3274   # Broken: fails on valid input.
3275 continue
3276 fi
3277
3278 rm -f conftest.err conftest.$ac_ext
3279
3280   # OK, works on sane cases.  Now check whether nonexistent headers
3281   # can be detected and how.
3282   cat >conftest.$ac_ext <<_ACEOF
3283 /* confdefs.h.  */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h.  */
3288 #include <ac_nonexistent.h>
3289 _ACEOF
3290 if { (ac_try="$ac_cpp conftest.$ac_ext"
3291 case "(($ac_try" in
3292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293   *) ac_try_echo=$ac_try;;
3294 esac
3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3297   ac_status=$?
3298   grep -v '^ *+' conftest.er1 >conftest.err
3299   rm -f conftest.er1
3300   cat conftest.err >&5
3301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302   (exit $ac_status); } >/dev/null; then
3303   if test -s conftest.err; then
3304     ac_cpp_err=$ac_c_preproc_warn_flag
3305     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3306   else
3307     ac_cpp_err=
3308   fi
3309 else
3310   ac_cpp_err=yes
3311 fi
3312 if test -z "$ac_cpp_err"; then
3313   # Broken: success on invalid input.
3314 continue
3315 else
3316   echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3318
3319   # Passes both tests.
3320 ac_preproc_ok=:
3321 break
3322 fi
3323
3324 rm -f conftest.err conftest.$ac_ext
3325
3326 done
3327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3328 rm -f conftest.err conftest.$ac_ext
3329 if $ac_preproc_ok; then
3330   break
3331 fi
3332
3333     done
3334     ac_cv_prog_CPP=$CPP
3335
3336 fi
3337   CPP=$ac_cv_prog_CPP
3338 else
3339   ac_cv_prog_CPP=$CPP
3340 fi
3341 { echo "$as_me:$LINENO: result: $CPP" >&5
3342 echo "${ECHO_T}$CPP" >&6; }
3343 ac_preproc_ok=false
3344 for ac_c_preproc_warn_flag in '' yes
3345 do
3346   # Use a header file that comes with gcc, so configuring glibc
3347   # with a fresh cross-compiler works.
3348   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349   # <limits.h> exists even on freestanding compilers.
3350   # On the NeXT, cc -E runs the code through the compiler's parser,
3351   # not just through cpp. "Syntax error" is here to catch this case.
3352   cat >conftest.$ac_ext <<_ACEOF
3353 /* confdefs.h.  */
3354 _ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h.  */
3358 #ifdef __STDC__
3359 # include <limits.h>
3360 #else
3361 # include <assert.h>
3362 #endif
3363                      Syntax error
3364 _ACEOF
3365 if { (ac_try="$ac_cpp conftest.$ac_ext"
3366 case "(($ac_try" in
3367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368   *) ac_try_echo=$ac_try;;
3369 esac
3370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3372   ac_status=$?
3373   grep -v '^ *+' conftest.er1 >conftest.err
3374   rm -f conftest.er1
3375   cat conftest.err >&5
3376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377   (exit $ac_status); } >/dev/null; then
3378   if test -s conftest.err; then
3379     ac_cpp_err=$ac_c_preproc_warn_flag
3380     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3381   else
3382     ac_cpp_err=
3383   fi
3384 else
3385   ac_cpp_err=yes
3386 fi
3387 if test -z "$ac_cpp_err"; then
3388   :
3389 else
3390   echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3392
3393   # Broken: fails on valid input.
3394 continue
3395 fi
3396
3397 rm -f conftest.err conftest.$ac_ext
3398
3399   # OK, works on sane cases.  Now check whether nonexistent headers
3400   # can be detected and how.
3401   cat >conftest.$ac_ext <<_ACEOF
3402 /* confdefs.h.  */
3403 _ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h.  */
3407 #include <ac_nonexistent.h>
3408 _ACEOF
3409 if { (ac_try="$ac_cpp conftest.$ac_ext"
3410 case "(($ac_try" in
3411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412   *) ac_try_echo=$ac_try;;
3413 esac
3414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3415   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3416   ac_status=$?
3417   grep -v '^ *+' conftest.er1 >conftest.err
3418   rm -f conftest.er1
3419   cat conftest.err >&5
3420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421   (exit $ac_status); } >/dev/null; then
3422   if test -s conftest.err; then
3423     ac_cpp_err=$ac_c_preproc_warn_flag
3424     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3425   else
3426     ac_cpp_err=
3427   fi
3428 else
3429   ac_cpp_err=yes
3430 fi
3431 if test -z "$ac_cpp_err"; then
3432   # Broken: success on invalid input.
3433 continue
3434 else
3435   echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3437
3438   # Passes both tests.
3439 ac_preproc_ok=:
3440 break
3441 fi
3442
3443 rm -f conftest.err conftest.$ac_ext
3444
3445 done
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then
3449   :
3450 else
3451   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3452 See \`config.log' for more details." >&5
3453 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3454 See \`config.log' for more details." >&2;}
3455    { (exit 1); exit 1; }; }
3456 fi
3457
3458 ac_ext=c
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
3464
3465
3466
3467 # Check whether --enable-polly was given.
3468 if test "${enable_polly+set}" = set; then
3469   enableval=$enable_polly;
3470 else
3471   enableval=default
3472 fi
3473
3474 case "$enableval" in
3475   yes) ENABLE_POLLY=1
3476  ;;
3477   no)  ENABLE_POLLY=0
3478  ;;
3479   default) ENABLE_POLLY=1
3480  ;;
3481   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3482 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3483    { (exit 1); exit 1; }; } ;;
3484 esac
3485
3486
3487 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3488   LLVM_HAS_POLLY=1
3489
3490   subdirs="$subdirs tools/polly"
3491
3492 fi
3493
3494
3495 # Make sure we can run config.sub.
3496 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3497   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3498 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3499    { (exit 1); exit 1; }; }
3500
3501 { echo "$as_me:$LINENO: checking build system type" >&5
3502 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3503 if test "${ac_cv_build+set}" = set; then
3504   echo $ECHO_N "(cached) $ECHO_C" >&6
3505 else
3506   ac_build_alias=$build_alias
3507 test "x$ac_build_alias" = x &&
3508   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3509 test "x$ac_build_alias" = x &&
3510   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3511 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3512    { (exit 1); exit 1; }; }
3513 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3514   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3515 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3516    { (exit 1); exit 1; }; }
3517
3518 fi
3519 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3520 echo "${ECHO_T}$ac_cv_build" >&6; }
3521 case $ac_cv_build in
3522 *-*-*) ;;
3523 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3524 echo "$as_me: error: invalid value of canonical build" >&2;}
3525    { (exit 1); exit 1; }; };;
3526 esac
3527 build=$ac_cv_build
3528 ac_save_IFS=$IFS; IFS='-'
3529 set x $ac_cv_build
3530 shift
3531 build_cpu=$1
3532 build_vendor=$2
3533 shift; shift
3534 # Remember, the first character of IFS is used to create $*,
3535 # except with old shells:
3536 build_os=$*
3537 IFS=$ac_save_IFS
3538 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3539
3540
3541 { echo "$as_me:$LINENO: checking host system type" >&5
3542 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3543 if test "${ac_cv_host+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   if test "x$host_alias" = x; then
3547   ac_cv_host=$ac_cv_build
3548 else
3549   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3550     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3551 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3552    { (exit 1); exit 1; }; }
3553 fi
3554
3555 fi
3556 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3557 echo "${ECHO_T}$ac_cv_host" >&6; }
3558 case $ac_cv_host in
3559 *-*-*) ;;
3560 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3561 echo "$as_me: error: invalid value of canonical host" >&2;}
3562    { (exit 1); exit 1; }; };;
3563 esac
3564 host=$ac_cv_host
3565 ac_save_IFS=$IFS; IFS='-'
3566 set x $ac_cv_host
3567 shift
3568 host_cpu=$1
3569 host_vendor=$2
3570 shift; shift
3571 # Remember, the first character of IFS is used to create $*,
3572 # except with old shells:
3573 host_os=$*
3574 IFS=$ac_save_IFS
3575 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3576
3577
3578 { echo "$as_me:$LINENO: checking target system type" >&5
3579 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3580 if test "${ac_cv_target+set}" = set; then
3581   echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583   if test "x$target_alias" = x; then
3584   ac_cv_target=$ac_cv_host
3585 else
3586   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3587     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3588 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3589    { (exit 1); exit 1; }; }
3590 fi
3591
3592 fi
3593 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3594 echo "${ECHO_T}$ac_cv_target" >&6; }
3595 case $ac_cv_target in
3596 *-*-*) ;;
3597 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3598 echo "$as_me: error: invalid value of canonical target" >&2;}
3599    { (exit 1); exit 1; }; };;
3600 esac
3601 target=$ac_cv_target
3602 ac_save_IFS=$IFS; IFS='-'
3603 set x $ac_cv_target
3604 shift
3605 target_cpu=$1
3606 target_vendor=$2
3607 shift; shift
3608 # Remember, the first character of IFS is used to create $*,
3609 # except with old shells:
3610 target_os=$*
3611 IFS=$ac_save_IFS
3612 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3613
3614
3615 # The aliases save the names the user supplied, while $host etc.
3616 # will get canonicalized.
3617 test -n "$target_alias" &&
3618   test "$program_prefix$program_suffix$program_transform_name" = \
3619     NONENONEs,x,x, &&
3620   program_prefix=${target_alias}-
3621
3622 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3623 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3624 if test "${llvm_cv_os_type+set}" = set; then
3625   echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627   case $host in
3628   *-*-aix*)
3629     llvm_cv_link_all_option="-Wl,--whole-archive"
3630     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3631     llvm_cv_os_type="AIX"
3632     llvm_cv_platform_type="Unix" ;;
3633   *-*-irix*)
3634     llvm_cv_link_all_option="-Wl,--whole-archive"
3635     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3636     llvm_cv_os_type="IRIX"
3637     llvm_cv_platform_type="Unix" ;;
3638   *-*-cygwin*)
3639     llvm_cv_link_all_option="-Wl,--whole-archive"
3640     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3641     llvm_cv_os_type="Cygwin"
3642     llvm_cv_platform_type="Unix" ;;
3643   *-*-darwin*)
3644     llvm_cv_link_all_option="-Wl,-all_load"
3645     llvm_cv_no_link_all_option="-Wl,-noall_load"
3646     llvm_cv_os_type="Darwin"
3647     llvm_cv_platform_type="Unix" ;;
3648   *-*-minix*)
3649     llvm_cv_link_all_option="-Wl,-all_load"
3650     llvm_cv_no_link_all_option="-Wl,-noall_load"
3651     llvm_cv_os_type="Minix"
3652     llvm_cv_platform_type="Unix" ;;
3653   *-*-freebsd* | *-*-kfreebsd-gnu)
3654     llvm_cv_link_all_option="-Wl,--whole-archive"
3655     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3656     llvm_cv_os_type="FreeBSD"
3657     llvm_cv_platform_type="Unix" ;;
3658   *-*-openbsd*)
3659     llvm_cv_link_all_option="-Wl,--whole-archive"
3660     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3661     llvm_cv_os_type="OpenBSD"
3662     llvm_cv_platform_type="Unix" ;;
3663   *-*-netbsd*)
3664     llvm_cv_link_all_option="-Wl,--whole-archive"
3665     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3666     llvm_cv_os_type="NetBSD"
3667     llvm_cv_platform_type="Unix" ;;
3668   *-*-dragonfly*)
3669     llvm_cv_link_all_option="-Wl,--whole-archive"
3670     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3671     llvm_cv_os_type="DragonFly"
3672     llvm_cv_platform_type="Unix" ;;
3673   *-*-hpux*)
3674     llvm_cv_link_all_option="-Wl,--whole-archive"
3675     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3676     llvm_cv_os_type="HP-UX"
3677     llvm_cv_platform_type="Unix" ;;
3678   *-*-interix*)
3679     llvm_cv_link_all_option="-Wl,--whole-archive"
3680     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3681     llvm_cv_os_type="Interix"
3682     llvm_cv_platform_type="Unix" ;;
3683   *-*-linux*)
3684     llvm_cv_link_all_option="-Wl,--whole-archive"
3685     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3686     llvm_cv_os_type="Linux"
3687     llvm_cv_platform_type="Unix" ;;
3688   *-*-gnu*)
3689     llvm_cv_link_all_option="-Wl,--whole-archive"
3690     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3691     llvm_cv_os_type="GNU"
3692     llvm_cv_platform_type="Unix" ;;
3693   *-*-solaris*)
3694     llvm_cv_link_all_option="-Wl,-z,allextract"
3695     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3696     llvm_cv_os_type="SunOS"
3697     llvm_cv_platform_type="Unix" ;;
3698   *-*-auroraux*)
3699     llvm_cv_link_all_option="-Wl,-z,allextract"
3700     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3701     llvm_cv_os_type="AuroraUX"
3702     llvm_cv_platform_type="Unix" ;;
3703   *-*-win32*)
3704     llvm_cv_link_all_option="-Wl,--whole-archive"
3705     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3706     llvm_cv_os_type="Win32"
3707     llvm_cv_platform_type="Win32" ;;
3708   *-*-mingw*)
3709     llvm_cv_link_all_option="-Wl,--whole-archive"
3710     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3711     llvm_cv_os_type="MingW"
3712     llvm_cv_platform_type="Win32" ;;
3713   *-*-haiku*)
3714     llvm_cv_link_all_option="-Wl,--whole-archive"
3715     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716     llvm_cv_os_type="Haiku"
3717     llvm_cv_platform_type="Unix" ;;
3718   *-unknown-eabi*)
3719     llvm_cv_link_all_option="-Wl,--whole-archive"
3720     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721     llvm_cv_os_type="Freestanding"
3722     llvm_cv_platform_type="Unix" ;;
3723   *-unknown-elf*)
3724     llvm_cv_link_all_option="-Wl,--whole-archive"
3725     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726     llvm_cv_os_type="Freestanding"
3727     llvm_cv_platform_type="Unix" ;;
3728   *)
3729     llvm_cv_link_all_option=""
3730     llvm_cv_no_link_all_option=""
3731     llvm_cv_os_type="Unknown"
3732     llvm_cv_platform_type="Unknown" ;;
3733 esac
3734 fi
3735 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3736 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3737
3738 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3739 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3740 if test "${llvm_cv_target_os_type+set}" = set; then
3741   echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743   case $target in
3744   *-*-aix*)
3745     llvm_cv_target_os_type="AIX" ;;
3746   *-*-irix*)
3747     llvm_cv_target_os_type="IRIX" ;;
3748   *-*-cygwin*)
3749     llvm_cv_target_os_type="Cygwin" ;;
3750   *-*-darwin*)
3751     llvm_cv_target_os_type="Darwin" ;;
3752   *-*-minix*)
3753     llvm_cv_target_os_type="Minix" ;;
3754   *-*-freebsd* | *-*-kfreebsd-gnu)
3755     llvm_cv_target_os_type="FreeBSD" ;;
3756   *-*-openbsd*)
3757     llvm_cv_target_os_type="OpenBSD" ;;
3758   *-*-netbsd*)
3759     llvm_cv_target_os_type="NetBSD" ;;
3760   *-*-dragonfly*)
3761     llvm_cv_target_os_type="DragonFly" ;;
3762   *-*-hpux*)
3763     llvm_cv_target_os_type="HP-UX" ;;
3764   *-*-interix*)
3765     llvm_cv_target_os_type="Interix" ;;
3766   *-*-linux*)
3767     llvm_cv_target_os_type="Linux" ;;
3768   *-*-gnu*)
3769     llvm_cv_target_os_type="GNU" ;;
3770   *-*-solaris*)
3771     llvm_cv_target_os_type="SunOS" ;;
3772   *-*-auroraux*)
3773     llvm_cv_target_os_type="AuroraUX" ;;
3774   *-*-win32*)
3775     llvm_cv_target_os_type="Win32" ;;
3776   *-*-mingw*)
3777     llvm_cv_target_os_type="MingW" ;;
3778   *-*-haiku*)
3779     llvm_cv_target_os_type="Haiku" ;;
3780   *-*-rtems*)
3781     llvm_cv_target_os_type="RTEMS" ;;
3782   *-*-nacl*)
3783     llvm_cv_target_os_type="NativeClient" ;;
3784   *-unknown-eabi*)
3785     llvm_cv_target_os_type="Freestanding" ;;
3786   *)
3787     llvm_cv_target_os_type="Unknown" ;;
3788 esac
3789 fi
3790 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3791 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3792
3793 if test "$llvm_cv_os_type" = "Unknown" ; then
3794   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3795 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3796    { (exit 1); exit 1; }; }
3797 fi
3798
3799 OS=$llvm_cv_os_type
3800
3801 HOST_OS=$llvm_cv_os_type
3802
3803 TARGET_OS=$llvm_cv_target_os_type
3804
3805
3806 LINKALL=$llvm_cv_link_all_option
3807
3808 NOLINKALL=$llvm_cv_no_link_all_option
3809
3810
3811 case $llvm_cv_platform_type in
3812   Unix)
3813
3814 cat >>confdefs.h <<\_ACEOF
3815 #define LLVM_ON_UNIX 1
3816 _ACEOF
3817
3818     LLVM_ON_UNIX=1
3819
3820     LLVM_ON_WIN32=0
3821
3822     ;;
3823   Win32)
3824
3825 cat >>confdefs.h <<\_ACEOF
3826 #define LLVM_ON_WIN32 1
3827 _ACEOF
3828
3829     LLVM_ON_UNIX=0
3830
3831     LLVM_ON_WIN32=1
3832
3833     ;;
3834 esac
3835
3836 { echo "$as_me:$LINENO: checking target architecture" >&5
3837 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3838 if test "${llvm_cv_target_arch+set}" = set; then
3839   echo $ECHO_N "(cached) $ECHO_C" >&6
3840 else
3841   case $target in
3842   i?86-*)                 llvm_cv_target_arch="x86" ;;
3843   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3844   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3845   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3846   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3847   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
3848   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
3849   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
3850   xcore-*)                llvm_cv_target_arch="XCore" ;;
3851   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3852   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3853   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3854   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3855   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
3856   *)                      llvm_cv_target_arch="Unknown" ;;
3857 esac
3858 fi
3859 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3860 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3861
3862 if test "$llvm_cv_target_arch" = "Unknown" ; then
3863   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3864 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3865 fi
3866
3867 # Determine the LLVM native architecture for the target
3868 case "$llvm_cv_target_arch" in
3869     x86)     LLVM_NATIVE_ARCH="X86" ;;
3870     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3871     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3872 esac
3873
3874 ARCH=$llvm_cv_target_arch
3875
3876
3877
3878
3879 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3880 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3881 if test "${ac_cv_path_GREP+set}" = set; then
3882   echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884   # Extract the first word of "grep ggrep" to use in msg output
3885 if test -z "$GREP"; then
3886 set dummy grep ggrep; ac_prog_name=$2
3887 if test "${ac_cv_path_GREP+set}" = set; then
3888   echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890   ac_path_GREP_found=false
3891 # Loop through the user's path and test for each of PROGNAME-LIST
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3894 do
3895   IFS=$as_save_IFS
3896   test -z "$as_dir" && as_dir=.
3897   for ac_prog in grep ggrep; do
3898   for ac_exec_ext in '' $ac_executable_extensions; do
3899     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3900     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3901     # Check for GNU ac_path_GREP and select it if it is found.
3902   # Check for GNU $ac_path_GREP
3903 case `"$ac_path_GREP" --version 2>&1` in
3904 *GNU*)
3905   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3906 *)
3907   ac_count=0
3908   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3909   while :
3910   do
3911     cat "conftest.in" "conftest.in" >"conftest.tmp"
3912     mv "conftest.tmp" "conftest.in"
3913     cp "conftest.in" "conftest.nl"
3914     echo 'GREP' >> "conftest.nl"
3915     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3916     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3917     ac_count=`expr $ac_count + 1`
3918     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3919       # Best one so far, save it but keep looking for a better one
3920       ac_cv_path_GREP="$ac_path_GREP"
3921       ac_path_GREP_max=$ac_count
3922     fi
3923     # 10*(2^10) chars as input seems more than enough
3924     test $ac_count -gt 10 && break
3925   done
3926   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3927 esac
3928
3929
3930     $ac_path_GREP_found && break 3
3931   done
3932 done
3933
3934 done
3935 IFS=$as_save_IFS
3936
3937
3938 fi
3939
3940 GREP="$ac_cv_path_GREP"
3941 if test -z "$GREP"; then
3942   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3943 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3944    { (exit 1); exit 1; }; }
3945 fi
3946
3947 else
3948   ac_cv_path_GREP=$GREP
3949 fi
3950
3951
3952 fi
3953 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3954 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3955  GREP="$ac_cv_path_GREP"
3956
3957
3958 { echo "$as_me:$LINENO: checking for egrep" >&5
3959 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3960 if test "${ac_cv_path_EGREP+set}" = set; then
3961   echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3964    then ac_cv_path_EGREP="$GREP -E"
3965    else
3966      # Extract the first word of "egrep" to use in msg output
3967 if test -z "$EGREP"; then
3968 set dummy egrep; ac_prog_name=$2
3969 if test "${ac_cv_path_EGREP+set}" = set; then
3970   echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972   ac_path_EGREP_found=false
3973 # Loop through the user's path and test for each of PROGNAME-LIST
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3976 do
3977   IFS=$as_save_IFS
3978   test -z "$as_dir" && as_dir=.
3979   for ac_prog in egrep; do
3980   for ac_exec_ext in '' $ac_executable_extensions; do
3981     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3982     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3983     # Check for GNU ac_path_EGREP and select it if it is found.
3984   # Check for GNU $ac_path_EGREP
3985 case `"$ac_path_EGREP" --version 2>&1` in
3986 *GNU*)
3987   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3988 *)
3989   ac_count=0
3990   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3991   while :
3992   do
3993     cat "conftest.in" "conftest.in" >"conftest.tmp"
3994     mv "conftest.tmp" "conftest.in"
3995     cp "conftest.in" "conftest.nl"
3996     echo 'EGREP' >> "conftest.nl"
3997     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3998     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3999     ac_count=`expr $ac_count + 1`
4000     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4001       # Best one so far, save it but keep looking for a better one
4002       ac_cv_path_EGREP="$ac_path_EGREP"
4003       ac_path_EGREP_max=$ac_count
4004     fi
4005     # 10*(2^10) chars as input seems more than enough
4006     test $ac_count -gt 10 && break
4007   done
4008   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4009 esac
4010
4011
4012     $ac_path_EGREP_found && break 3
4013   done
4014 done
4015
4016 done
4017 IFS=$as_save_IFS
4018
4019
4020 fi
4021
4022 EGREP="$ac_cv_path_EGREP"
4023 if test -z "$EGREP"; then
4024   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4025 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4026    { (exit 1); exit 1; }; }
4027 fi
4028
4029 else
4030   ac_cv_path_EGREP=$EGREP
4031 fi
4032
4033
4034    fi
4035 fi
4036 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4037 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4038  EGREP="$ac_cv_path_EGREP"
4039
4040
4041 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4043 if test "${ac_cv_header_stdc+set}" = set; then
4044   echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046   cat >conftest.$ac_ext <<_ACEOF
4047 /* confdefs.h.  */
4048 _ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h.  */
4052 #include <stdlib.h>
4053 #include <stdarg.h>
4054 #include <string.h>
4055 #include <float.h>
4056
4057 int
4058 main ()
4059 {
4060
4061   ;
4062   return 0;
4063 }
4064 _ACEOF
4065 rm -f conftest.$ac_objext
4066 if { (ac_try="$ac_compile"
4067 case "(($ac_try" in
4068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069   *) ac_try_echo=$ac_try;;
4070 esac
4071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072   (eval "$ac_compile") 2>conftest.er1
4073   ac_status=$?
4074   grep -v '^ *+' conftest.er1 >conftest.err
4075   rm -f conftest.er1
4076   cat conftest.err >&5
4077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078   (exit $ac_status); } &&
4079          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4080   { (case "(($ac_try" in
4081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082   *) ac_try_echo=$ac_try;;
4083 esac
4084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085   (eval "$ac_try") 2>&5
4086   ac_status=$?
4087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088   (exit $ac_status); }; } &&
4089          { ac_try='test -s conftest.$ac_objext'
4090   { (case "(($ac_try" in
4091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092   *) ac_try_echo=$ac_try;;
4093 esac
4094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4095   (eval "$ac_try") 2>&5
4096   ac_status=$?
4097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098   (exit $ac_status); }; }; then
4099   ac_cv_header_stdc=yes
4100 else
4101   echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104         ac_cv_header_stdc=no
4105 fi
4106
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108
4109 if test $ac_cv_header_stdc = yes; then
4110   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4111   cat >conftest.$ac_ext <<_ACEOF
4112 /* confdefs.h.  */
4113 _ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h.  */
4117 #include <string.h>
4118
4119 _ACEOF
4120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4121   $EGREP "memchr" >/dev/null 2>&1; then
4122   :
4123 else
4124   ac_cv_header_stdc=no
4125 fi
4126 rm -f conftest*
4127
4128 fi
4129
4130 if test $ac_cv_header_stdc = yes; then
4131   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4132   cat >conftest.$ac_ext <<_ACEOF
4133 /* confdefs.h.  */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h.  */
4138 #include <stdlib.h>
4139
4140 _ACEOF
4141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4142   $EGREP "free" >/dev/null 2>&1; then
4143   :
4144 else
4145   ac_cv_header_stdc=no
4146 fi
4147 rm -f conftest*
4148
4149 fi
4150
4151 if test $ac_cv_header_stdc = yes; then
4152   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4153   if test "$cross_compiling" = yes; then
4154   :
4155 else
4156   cat >conftest.$ac_ext <<_ACEOF
4157 /* confdefs.h.  */
4158 _ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h.  */
4162 #include <ctype.h>
4163 #include <stdlib.h>
4164 #if ((' ' & 0x0FF) == 0x020)
4165 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4166 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4167 #else
4168 # define ISLOWER(c) \
4169                    (('a' <= (c) && (c) <= 'i') \
4170                      || ('j' <= (c) && (c) <= 'r') \
4171                      || ('s' <= (c) && (c) <= 'z'))
4172 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4173 #endif
4174
4175 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4176 int
4177 main ()
4178 {
4179   int i;
4180   for (i = 0; i < 256; i++)
4181     if (XOR (islower (i), ISLOWER (i))
4182         || toupper (i) != TOUPPER (i))
4183       return 2;
4184   return 0;
4185 }
4186 _ACEOF
4187 rm -f conftest$ac_exeext
4188 if { (ac_try="$ac_link"
4189 case "(($ac_try" in
4190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191   *) ac_try_echo=$ac_try;;
4192 esac
4193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4194   (eval "$ac_link") 2>&5
4195   ac_status=$?
4196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4198   { (case "(($ac_try" in
4199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200   *) ac_try_echo=$ac_try;;
4201 esac
4202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203   (eval "$ac_try") 2>&5
4204   ac_status=$?
4205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206   (exit $ac_status); }; }; then
4207   :
4208 else
4209   echo "$as_me: program exited with status $ac_status" >&5
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4212
4213 ( exit $ac_status )
4214 ac_cv_header_stdc=no
4215 fi
4216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4217 fi
4218
4219
4220 fi
4221 fi
4222 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4223 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4224 if test $ac_cv_header_stdc = yes; then
4225
4226 cat >>confdefs.h <<\_ACEOF
4227 #define STDC_HEADERS 1
4228 _ACEOF
4229
4230 fi
4231
4232 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4243                   inttypes.h stdint.h unistd.h
4244 do
4245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4249   echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251   cat >conftest.$ac_ext <<_ACEOF
4252 /* confdefs.h.  */
4253 _ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h.  */
4257 $ac_includes_default
4258
4259 #include <$ac_header>
4260 _ACEOF
4261 rm -f conftest.$ac_objext
4262 if { (ac_try="$ac_compile"
4263 case "(($ac_try" in
4264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265   *) ac_try_echo=$ac_try;;
4266 esac
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268   (eval "$ac_compile") 2>conftest.er1
4269   ac_status=$?
4270   grep -v '^ *+' conftest.er1 >conftest.err
4271   rm -f conftest.er1
4272   cat conftest.err >&5
4273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); } &&
4275          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4276   { (case "(($ac_try" in
4277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278   *) ac_try_echo=$ac_try;;
4279 esac
4280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281   (eval "$ac_try") 2>&5
4282   ac_status=$?
4283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284   (exit $ac_status); }; } &&
4285          { ac_try='test -s conftest.$ac_objext'
4286   { (case "(($ac_try" in
4287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288   *) ac_try_echo=$ac_try;;
4289 esac
4290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291   (eval "$ac_try") 2>&5
4292   ac_status=$?
4293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294   (exit $ac_status); }; }; then
4295   eval "$as_ac_Header=yes"
4296 else
4297   echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4299
4300         eval "$as_ac_Header=no"
4301 fi
4302
4303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 fi
4305 ac_res=`eval echo '${'$as_ac_Header'}'`
4306                { echo "$as_me:$LINENO: result: $ac_res" >&5
4307 echo "${ECHO_T}$ac_res" >&6; }
4308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4309   cat >>confdefs.h <<_ACEOF
4310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4311 _ACEOF
4312
4313 fi
4314
4315 done
4316
4317
4318 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4319 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4320 if test "${ac_cv_c_bigendian+set}" = set; then
4321   echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323   # See if sys/param.h defines the BYTE_ORDER macro.
4324 cat >conftest.$ac_ext <<_ACEOF
4325 /* confdefs.h.  */
4326 _ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h.  */
4330 #include <sys/types.h>
4331 #include <sys/param.h>
4332
4333 int
4334 main ()
4335 {
4336 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4337  bogus endian macros
4338 #endif
4339
4340   ;
4341   return 0;
4342 }
4343 _ACEOF
4344 rm -f conftest.$ac_objext
4345 if { (ac_try="$ac_compile"
4346 case "(($ac_try" in
4347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348   *) ac_try_echo=$ac_try;;
4349 esac
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351   (eval "$ac_compile") 2>conftest.er1
4352   ac_status=$?
4353   grep -v '^ *+' conftest.er1 >conftest.err
4354   rm -f conftest.er1
4355   cat conftest.err >&5
4356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357   (exit $ac_status); } &&
4358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4359   { (case "(($ac_try" in
4360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361   *) ac_try_echo=$ac_try;;
4362 esac
4363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364   (eval "$ac_try") 2>&5
4365   ac_status=$?
4366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367   (exit $ac_status); }; } &&
4368          { ac_try='test -s conftest.$ac_objext'
4369   { (case "(($ac_try" in
4370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371   *) ac_try_echo=$ac_try;;
4372 esac
4373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374   (eval "$ac_try") 2>&5
4375   ac_status=$?
4376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); }; }; then
4378   # It does; now see whether it defined to BIG_ENDIAN or not.
4379 cat >conftest.$ac_ext <<_ACEOF
4380 /* confdefs.h.  */
4381 _ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h.  */
4385 #include <sys/types.h>
4386 #include <sys/param.h>
4387
4388 int
4389 main ()
4390 {
4391 #if BYTE_ORDER != BIG_ENDIAN
4392  not big endian
4393 #endif
4394
4395   ;
4396   return 0;
4397 }
4398 _ACEOF
4399 rm -f conftest.$ac_objext
4400 if { (ac_try="$ac_compile"
4401 case "(($ac_try" in
4402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403   *) ac_try_echo=$ac_try;;
4404 esac
4405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406   (eval "$ac_compile") 2>conftest.er1
4407   ac_status=$?
4408   grep -v '^ *+' conftest.er1 >conftest.err
4409   rm -f conftest.er1
4410   cat conftest.err >&5
4411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412   (exit $ac_status); } &&
4413          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4414   { (case "(($ac_try" in
4415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416   *) ac_try_echo=$ac_try;;
4417 esac
4418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4419   (eval "$ac_try") 2>&5
4420   ac_status=$?
4421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422   (exit $ac_status); }; } &&
4423          { ac_try='test -s conftest.$ac_objext'
4424   { (case "(($ac_try" in
4425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426   *) ac_try_echo=$ac_try;;
4427 esac
4428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429   (eval "$ac_try") 2>&5
4430   ac_status=$?
4431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432   (exit $ac_status); }; }; then
4433   ac_cv_c_bigendian=yes
4434 else
4435   echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.$ac_ext >&5
4437
4438         ac_cv_c_bigendian=no
4439 fi
4440
4441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4442 else
4443   echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4445
4446         # It does not; compile a test program.
4447 if test "$cross_compiling" = yes; then
4448   # try to guess the endianness by grepping values into an object file
4449   ac_cv_c_bigendian=unknown
4450   cat >conftest.$ac_ext <<_ACEOF
4451 /* confdefs.h.  */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h.  */
4456 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4457 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4458 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4459 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4460 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4461 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4462 int
4463 main ()
4464 {
4465  _ascii (); _ebcdic ();
4466   ;
4467   return 0;
4468 }
4469 _ACEOF
4470 rm -f conftest.$ac_objext
4471 if { (ac_try="$ac_compile"
4472 case "(($ac_try" in
4473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474   *) ac_try_echo=$ac_try;;
4475 esac
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477   (eval "$ac_compile") 2>conftest.er1
4478   ac_status=$?
4479   grep -v '^ *+' conftest.er1 >conftest.err
4480   rm -f conftest.er1
4481   cat conftest.err >&5
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); } &&
4484          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4485   { (case "(($ac_try" in
4486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487   *) ac_try_echo=$ac_try;;
4488 esac
4489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4490   (eval "$ac_try") 2>&5
4491   ac_status=$?
4492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493   (exit $ac_status); }; } &&
4494          { ac_try='test -s conftest.$ac_objext'
4495   { (case "(($ac_try" in
4496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497   *) ac_try_echo=$ac_try;;
4498 esac
4499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4500   (eval "$ac_try") 2>&5
4501   ac_status=$?
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); }; }; then
4504   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4505   ac_cv_c_bigendian=yes
4506 fi
4507 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4508   if test "$ac_cv_c_bigendian" = unknown; then
4509     ac_cv_c_bigendian=no
4510   else
4511     # finding both strings is unlikely to happen, but who knows?
4512     ac_cv_c_bigendian=unknown
4513   fi
4514 fi
4515 else
4516   echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4518
4519
4520 fi
4521
4522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523 else
4524   cat >conftest.$ac_ext <<_ACEOF
4525 /* confdefs.h.  */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h.  */
4530 $ac_includes_default
4531 int
4532 main ()
4533 {
4534
4535   /* Are we little or big endian?  From Harbison&Steele.  */
4536   union
4537   {
4538     long int l;
4539     char c[sizeof (long int)];
4540   } u;
4541   u.l = 1;
4542   return u.c[sizeof (long int) - 1] == 1;
4543
4544   ;
4545   return 0;
4546 }
4547 _ACEOF
4548 rm -f conftest$ac_exeext
4549 if { (ac_try="$ac_link"
4550 case "(($ac_try" in
4551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4552   *) ac_try_echo=$ac_try;;
4553 esac
4554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4555   (eval "$ac_link") 2>&5
4556   ac_status=$?
4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4559   { (case "(($ac_try" in
4560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561   *) ac_try_echo=$ac_try;;
4562 esac
4563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4564   (eval "$ac_try") 2>&5
4565   ac_status=$?
4566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567   (exit $ac_status); }; }; then
4568   ac_cv_c_bigendian=no
4569 else
4570   echo "$as_me: program exited with status $ac_status" >&5
4571 echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4573
4574 ( exit $ac_status )
4575 ac_cv_c_bigendian=yes
4576 fi
4577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4578 fi
4579
4580
4581 fi
4582
4583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4584 fi
4585 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4586 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4587 case $ac_cv_c_bigendian in
4588   yes)
4589     ENDIAN=big
4590  ;;
4591   no)
4592     ENDIAN=little
4593  ;;
4594   *)
4595     { { echo "$as_me:$LINENO: error: unknown endianness
4596 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4597 echo "$as_me: error: unknown endianness
4598 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4599    { (exit 1); exit 1; }; } ;;
4600 esac
4601
4602
4603 if test "$cross_compiling" = yes; then
4604   LLVM_CROSS_COMPILING=1
4605
4606
4607 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4608 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4609 if test "${ac_cv_build_exeext+set}" = set; then
4610   echo $ECHO_N "(cached) $ECHO_C" >&6
4611 else
4612   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4613   ac_cv_build_exeext=.exe
4614 else
4615   ac_build_prefix=${build_alias}-
4616
4617   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4618 set dummy ${ac_build_prefix}gcc; ac_word=$2
4619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4621 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4622   echo $ECHO_N "(cached) $ECHO_C" >&6
4623 else
4624   if test -n "$BUILD_CC"; then
4625   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4626 else
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH
4629 do
4630   IFS=$as_save_IFS
4631   test -z "$as_dir" && as_dir=.
4632   for ac_exec_ext in '' $ac_executable_extensions; do
4633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4634     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4636     break 2
4637   fi
4638 done
4639 done
4640 IFS=$as_save_IFS
4641
4642 fi
4643 fi
4644 BUILD_CC=$ac_cv_prog_BUILD_CC
4645 if test -n "$BUILD_CC"; then
4646   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4647 echo "${ECHO_T}$BUILD_CC" >&6; }
4648 else
4649   { echo "$as_me:$LINENO: result: no" >&5
4650 echo "${ECHO_T}no" >&6; }
4651 fi
4652
4653
4654   if test -z "$BUILD_CC"; then
4655      # Extract the first word of "gcc", so it can be a program name with args.
4656 set dummy gcc; ac_word=$2
4657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4659 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662   if test -n "$BUILD_CC"; then
4663   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4664 else
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH
4667 do
4668   IFS=$as_save_IFS
4669   test -z "$as_dir" && as_dir=.
4670   for ac_exec_ext in '' $ac_executable_extensions; do
4671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4672     ac_cv_prog_BUILD_CC="gcc"
4673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674     break 2
4675   fi
4676 done
4677 done
4678 IFS=$as_save_IFS
4679
4680 fi
4681 fi
4682 BUILD_CC=$ac_cv_prog_BUILD_CC
4683 if test -n "$BUILD_CC"; then
4684   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4685 echo "${ECHO_T}$BUILD_CC" >&6; }
4686 else
4687   { echo "$as_me:$LINENO: result: no" >&5
4688 echo "${ECHO_T}no" >&6; }
4689 fi
4690
4691
4692      if test -z "$BUILD_CC"; then
4693        # Extract the first word of "cc", so it can be a program name with args.
4694 set dummy cc; ac_word=$2
4695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4698   echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700   if test -n "$BUILD_CC"; then
4701   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4702 else
4703   ac_prog_rejected=no
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4706 do
4707   IFS=$as_save_IFS
4708   test -z "$as_dir" && as_dir=.
4709   for ac_exec_ext in '' $ac_executable_extensions; do
4710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4711     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4712        ac_prog_rejected=yes
4713        continue
4714      fi
4715     ac_cv_prog_BUILD_CC="cc"
4716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717     break 2
4718   fi
4719 done
4720 done
4721 IFS=$as_save_IFS
4722
4723 if test $ac_prog_rejected = yes; then
4724   # We found a bogon in the path, so make sure we never use it.
4725   set dummy $ac_cv_prog_BUILD_CC
4726   shift
4727   if test $# != 0; then
4728     # We chose a different compiler from the bogus one.
4729     # However, it has the same basename, so the bogon will be chosen
4730     # first if we set BUILD_CC to just the basename; use the full file name.
4731     shift
4732     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4733   fi
4734 fi
4735 fi
4736 fi
4737 BUILD_CC=$ac_cv_prog_BUILD_CC
4738 if test -n "$BUILD_CC"; then
4739   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4740 echo "${ECHO_T}$BUILD_CC" >&6; }
4741 else
4742   { echo "$as_me:$LINENO: result: no" >&5
4743 echo "${ECHO_T}no" >&6; }
4744 fi
4745
4746
4747      fi
4748   fi
4749   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4750 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4751    { (exit 1); exit 1; }; }
4752   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4753   rm -f conftest*
4754   echo 'int main () { return 0; }' > conftest.$ac_ext
4755   ac_cv_build_exeext=
4756   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4757   (eval $ac_build_link) 2>&5
4758   ac_status=$?
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); }; then
4761     for file in conftest.*; do
4762       case $file in
4763       *.c | *.o | *.obj | *.dSYM) ;;
4764       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4765       esac
4766     done
4767   else
4768     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4769 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4770    { (exit 1); exit 1; }; }
4771   fi
4772   rm -f conftest*
4773   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4774 fi
4775 fi
4776
4777 BUILD_EXEEXT=""
4778 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4779 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4780 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4781 ac_build_exeext=$BUILD_EXEEXT
4782
4783   ac_build_prefix=${build_alias}-
4784   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4785 set dummy ${ac_build_prefix}g++; ac_word=$2
4786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4788 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4789   echo $ECHO_N "(cached) $ECHO_C" >&6
4790 else
4791   if test -n "$BUILD_CXX"; then
4792   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4793 else
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH
4796 do
4797   IFS=$as_save_IFS
4798   test -z "$as_dir" && as_dir=.
4799   for ac_exec_ext in '' $ac_executable_extensions; do
4800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4801     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4803     break 2
4804   fi
4805 done
4806 done
4807 IFS=$as_save_IFS
4808
4809 fi
4810 fi
4811 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4812 if test -n "$BUILD_CXX"; then
4813   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4814 echo "${ECHO_T}$BUILD_CXX" >&6; }
4815 else
4816   { echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6; }
4818 fi
4819
4820
4821   if test -z "$BUILD_CXX"; then
4822      # Extract the first word of "g++", so it can be a program name with args.
4823 set dummy g++; ac_word=$2
4824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4826 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4827   echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829   if test -n "$BUILD_CXX"; then
4830   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4831 else
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4834 do
4835   IFS=$as_save_IFS
4836   test -z "$as_dir" && as_dir=.
4837   for ac_exec_ext in '' $ac_executable_extensions; do
4838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4839     ac_cv_prog_BUILD_CXX="g++"
4840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841     break 2
4842   fi
4843 done
4844 done
4845 IFS=$as_save_IFS
4846
4847 fi
4848 fi
4849 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4850 if test -n "$BUILD_CXX"; then
4851   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4852 echo "${ECHO_T}$BUILD_CXX" >&6; }
4853 else
4854   { echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6; }
4856 fi
4857
4858
4859      if test -z "$BUILD_CXX"; then
4860        # Extract the first word of "c++", so it can be a program name with args.
4861 set dummy c++; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4865   echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867   if test -n "$BUILD_CXX"; then
4868   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4869 else
4870   ac_prog_rejected=no
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 for as_dir in $PATH
4873 do
4874   IFS=$as_save_IFS
4875   test -z "$as_dir" && as_dir=.
4876   for ac_exec_ext in '' $ac_executable_extensions; do
4877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4878     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4879        ac_prog_rejected=yes
4880        continue
4881      fi
4882     ac_cv_prog_BUILD_CXX="c++"
4883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884     break 2
4885   fi
4886 done
4887 done
4888 IFS=$as_save_IFS
4889
4890 if test $ac_prog_rejected = yes; then
4891   # We found a bogon in the path, so make sure we never use it.
4892   set dummy $ac_cv_prog_BUILD_CXX
4893   shift
4894   if test $# != 0; then
4895     # We chose a different compiler from the bogus one.
4896     # However, it has the same basename, so the bogon will be chosen
4897     # first if we set BUILD_CXX to just the basename; use the full file name.
4898     shift
4899     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4900   fi
4901 fi
4902 fi
4903 fi
4904 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4905 if test -n "$BUILD_CXX"; then
4906   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4907 echo "${ECHO_T}$BUILD_CXX" >&6; }
4908 else
4909   { echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6; }
4911 fi
4912
4913
4914      fi
4915   fi
4916 else
4917   LLVM_CROSS_COMPILING=0
4918
4919 fi
4920
4921 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4922   cvsbuild="yes"
4923   optimize="no"
4924   CVSBUILD=CVSBUILD=1
4925
4926 else
4927   cvsbuild="no"
4928   optimize="yes"
4929 fi
4930
4931
4932 # Check whether --enable-libcpp was given.
4933 if test "${enable_libcpp+set}" = set; then
4934   enableval=$enable_libcpp;
4935 else
4936   enableval=default
4937 fi
4938
4939 case "$enableval" in
4940   yes) ENABLE_LIBCPP=1
4941  ;;
4942   no)  ENABLE_LIBCPP=0
4943  ;;
4944   default) ENABLE_LIBCPP=0
4945 ;;
4946   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4947 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4948    { (exit 1); exit 1; }; } ;;
4949 esac
4950
4951 # Check whether --enable-cxx11 was given.
4952 if test "${enable_cxx11+set}" = set; then
4953   enableval=$enable_cxx11;
4954 else
4955   enableval=default
4956 fi
4957
4958 case "$enableval" in
4959   yes) ENABLE_CXX11=1
4960  ;;
4961   no)  ENABLE_CXX11=0
4962  ;;
4963   default) ENABLE_CXX11=0
4964 ;;
4965   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4966 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4967    { (exit 1); exit 1; }; } ;;
4968 esac
4969
4970 # Check whether --enable-optimized was given.
4971 if test "${enable_optimized+set}" = set; then
4972   enableval=$enable_optimized;
4973 else
4974   enableval=$optimize
4975 fi
4976
4977 if test ${enableval} = "no" ; then
4978   ENABLE_OPTIMIZED=
4979
4980 else
4981   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4982
4983 fi
4984
4985 # Check whether --enable-profiling was given.
4986 if test "${enable_profiling+set}" = set; then
4987   enableval=$enable_profiling;
4988 else
4989   enableval="no"
4990 fi
4991
4992 if test ${enableval} = "no" ; then
4993   ENABLE_PROFILING=
4994
4995 else
4996   ENABLE_PROFILING=ENABLE_PROFILING=1
4997
4998 fi
4999
5000 # Check whether --enable-assertions was given.
5001 if test "${enable_assertions+set}" = set; then
5002   enableval=$enable_assertions;
5003 else
5004   enableval="yes"
5005 fi
5006
5007 if test ${enableval} = "yes" ; then
5008   DISABLE_ASSERTIONS=
5009
5010 else
5011   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5012
5013 fi
5014
5015 # Check whether --enable-werror was given.
5016 if test "${enable_werror+set}" = set; then
5017   enableval=$enable_werror;
5018 else
5019   enableval="no"
5020 fi
5021
5022 case "$enableval" in
5023   yes) ENABLE_WERROR=1
5024  ;;
5025   no)  ENABLE_WERROR=0
5026  ;;
5027   default) ENABLE_WERROR=0
5028 ;;
5029   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5030 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5031    { (exit 1); exit 1; }; } ;;
5032 esac
5033
5034 # Check whether --enable-expensive-checks was given.
5035 if test "${enable_expensive_checks+set}" = set; then
5036   enableval=$enable_expensive_checks;
5037 else
5038   enableval="no"
5039 fi
5040
5041 if test ${enableval} = "yes" ; then
5042   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5043
5044   EXPENSIVE_CHECKS=yes
5045
5046 else
5047   ENABLE_EXPENSIVE_CHECKS=
5048
5049   EXPENSIVE_CHECKS=no
5050
5051 fi
5052
5053 # Check whether --enable-debug-runtime was given.
5054 if test "${enable_debug_runtime+set}" = set; then
5055   enableval=$enable_debug_runtime;
5056 else
5057   enableval=no
5058 fi
5059
5060 if test ${enableval} = "no" ; then
5061   DEBUG_RUNTIME=
5062
5063 else
5064   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5065
5066 fi
5067
5068 # Check whether --enable-debug-symbols was given.
5069 if test "${enable_debug_symbols+set}" = set; then
5070   enableval=$enable_debug_symbols;
5071 else
5072   enableval=no
5073 fi
5074
5075 if test ${enableval} = "no" ; then
5076   DEBUG_SYMBOLS=
5077
5078 else
5079   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5080
5081 fi
5082
5083 # Check whether --enable-jit was given.
5084 if test "${enable_jit+set}" = set; then
5085   enableval=$enable_jit;
5086 else
5087   enableval=default
5088 fi
5089
5090 if test ${enableval} = "no"
5091 then
5092   JIT=
5093
5094 else
5095   case "$llvm_cv_target_arch" in
5096     x86)         TARGET_HAS_JIT=1
5097  ;;
5098     Sparc)       TARGET_HAS_JIT=0
5099  ;;
5100     PowerPC)     TARGET_HAS_JIT=1
5101  ;;
5102     x86_64)      TARGET_HAS_JIT=1
5103  ;;
5104     ARM)         TARGET_HAS_JIT=1
5105  ;;
5106     AArch64)     TARGET_HAS_JIT=0
5107  ;;
5108     Mips)        TARGET_HAS_JIT=1
5109  ;;
5110     XCore)       TARGET_HAS_JIT=0
5111  ;;
5112     MSP430)      TARGET_HAS_JIT=0
5113  ;;
5114     Hexagon)     TARGET_HAS_JIT=0
5115  ;;
5116     MBlaze)      TARGET_HAS_JIT=0
5117  ;;
5118     NVPTX)       TARGET_HAS_JIT=0
5119  ;;
5120     SystemZ)     TARGET_HAS_JIT=1
5121  ;;
5122     *)           TARGET_HAS_JIT=0
5123  ;;
5124   esac
5125 fi
5126
5127 # Check whether --enable-docs was given.
5128 if test "${enable_docs+set}" = set; then
5129   enableval=$enable_docs;
5130 else
5131   enableval=default
5132 fi
5133
5134 case "$enableval" in
5135   yes) ENABLE_DOCS=1
5136  ;;
5137   no)  ENABLE_DOCS=0
5138  ;;
5139   default) ENABLE_DOCS=1
5140  ;;
5141   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5142 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5143    { (exit 1); exit 1; }; } ;;
5144 esac
5145
5146 # Check whether --enable-doxygen was given.
5147 if test "${enable_doxygen+set}" = set; then
5148   enableval=$enable_doxygen;
5149 else
5150   enableval=default
5151 fi
5152
5153 case "$enableval" in
5154   yes) ENABLE_DOXYGEN=1
5155  ;;
5156   no)  ENABLE_DOXYGEN=0
5157  ;;
5158   default) ENABLE_DOXYGEN=0
5159  ;;
5160   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5161 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5162    { (exit 1); exit 1; }; } ;;
5163 esac
5164
5165 # Check whether --enable-threads was given.
5166 if test "${enable_threads+set}" = set; then
5167   enableval=$enable_threads;
5168 else
5169   enableval=default
5170 fi
5171
5172 case "$enableval" in
5173   yes) ENABLE_THREADS=1
5174  ;;
5175   no)  ENABLE_THREADS=0
5176  ;;
5177   default) ENABLE_THREADS=1
5178  ;;
5179   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5180 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5181    { (exit 1); exit 1; }; } ;;
5182 esac
5183
5184 cat >>confdefs.h <<_ACEOF
5185 #define ENABLE_THREADS $ENABLE_THREADS
5186 _ACEOF
5187
5188
5189 # Check whether --enable-pthreads was given.
5190 if test "${enable_pthreads+set}" = set; then
5191   enableval=$enable_pthreads;
5192 else
5193   enableval=default
5194 fi
5195
5196 case "$enableval" in
5197   yes) ENABLE_PTHREADS=1
5198  ;;
5199   no)  ENABLE_PTHREADS=0
5200  ;;
5201   default) ENABLE_PTHREADS=1
5202  ;;
5203   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5204 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5205    { (exit 1); exit 1; }; } ;;
5206 esac
5207
5208 # Check whether --enable-pic was given.
5209 if test "${enable_pic+set}" = set; then
5210   enableval=$enable_pic;
5211 else
5212   enableval=default
5213 fi
5214
5215 case "$enableval" in
5216   yes) ENABLE_PIC=1
5217  ;;
5218   no)  ENABLE_PIC=0
5219  ;;
5220   default) ENABLE_PIC=1
5221  ;;
5222   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5223 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5224    { (exit 1); exit 1; }; } ;;
5225 esac
5226
5227 cat >>confdefs.h <<_ACEOF
5228 #define ENABLE_PIC $ENABLE_PIC
5229 _ACEOF
5230
5231
5232 # Check whether --enable-shared was given.
5233 if test "${enable_shared+set}" = set; then
5234   enableval=$enable_shared;
5235 else
5236   enableval=default
5237 fi
5238
5239 case "$enableval" in
5240   yes) ENABLE_SHARED=1
5241  ;;
5242   no)  ENABLE_SHARED=0
5243  ;;
5244   default) ENABLE_SHARED=0
5245  ;;
5246   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5247 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5248    { (exit 1); exit 1; }; } ;;
5249 esac
5250
5251 # Check whether --enable-embed-stdcxx was given.
5252 if test "${enable_embed_stdcxx+set}" = set; then
5253   enableval=$enable_embed_stdcxx;
5254 else
5255   enableval=default
5256 fi
5257
5258 case "$enableval" in
5259   yes) ENABLE_EMBED_STDCXX=1
5260  ;;
5261   no)  ENABLE_EMBED_STDCXX=0
5262  ;;
5263   default) ENABLE_EMBED_STDCXX=1
5264  ;;
5265   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5266 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5267    { (exit 1); exit 1; }; } ;;
5268 esac
5269
5270 # Check whether --enable-timestamps was given.
5271 if test "${enable_timestamps+set}" = set; then
5272   enableval=$enable_timestamps;
5273 else
5274   enableval=default
5275 fi
5276
5277 case "$enableval" in
5278   yes) ENABLE_TIMESTAMPS=1
5279  ;;
5280   no)  ENABLE_TIMESTAMPS=0
5281  ;;
5282   default) ENABLE_TIMESTAMPS=1
5283  ;;
5284   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5285 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5286    { (exit 1); exit 1; }; } ;;
5287 esac
5288
5289 cat >>confdefs.h <<_ACEOF
5290 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5291 _ACEOF
5292
5293
5294 TARGETS_TO_BUILD=""
5295 # Check whether --enable-targets was given.
5296 if test "${enable_targets+set}" = set; then
5297   enableval=$enable_targets;
5298 else
5299   enableval=all
5300 fi
5301
5302 if test "$enableval" = host-only ; then
5303   enableval=host
5304 fi
5305 case "$enableval" in
5306   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon SystemZ R600" ;;
5307   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5308       case "$a_target" in
5309         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5310         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5311         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5312         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5313         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5314         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5315         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5316         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5317         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5318         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5319         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5320         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5321         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5322         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5323         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5324         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5325         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5326         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5327         host) case "$llvm_cv_target_arch" in
5328             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5329             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5330             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5331             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5332             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5333             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5334             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5335             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5336             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5337             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5338             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5339             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5340             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5341             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5342 echo "$as_me: error: Can not set target to build" >&2;}
5343    { (exit 1); exit 1; }; } ;;
5344           esac ;;
5345         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5346 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5347    { (exit 1); exit 1; }; } ;;
5348       esac
5349   done
5350   ;;
5351 esac
5352 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5353
5354
5355 # Determine whether we are building LLVM support for the native architecture.
5356 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5357 for a_target in $TARGETS_TO_BUILD; do
5358   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5359
5360 cat >>confdefs.h <<_ACEOF
5361 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5362 _ACEOF
5363
5364     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5365     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5366     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5367     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5368     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5369       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5370     fi
5371     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5372       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5373     fi
5374
5375 cat >>confdefs.h <<_ACEOF
5376 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5377 _ACEOF
5378
5379
5380 cat >>confdefs.h <<_ACEOF
5381 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5382 _ACEOF
5383
5384
5385 cat >>confdefs.h <<_ACEOF
5386 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5387 _ACEOF
5388
5389
5390 cat >>confdefs.h <<_ACEOF
5391 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5392 _ACEOF
5393
5394     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5395
5396 cat >>confdefs.h <<_ACEOF
5397 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5398 _ACEOF
5399
5400     fi
5401     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5402
5403 cat >>confdefs.h <<_ACEOF
5404 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5405 _ACEOF
5406
5407     fi
5408   fi
5409 done
5410
5411 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5412 # target feature def files.
5413 LLVM_ENUM_TARGETS=""
5414 LLVM_ENUM_ASM_PRINTERS=""
5415 LLVM_ENUM_ASM_PARSERS=""
5416 LLVM_ENUM_DISASSEMBLERS=""
5417 for target_to_build in $TARGETS_TO_BUILD; do
5418   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5419   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5420     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5421   fi
5422   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5423     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5424   fi
5425   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5426     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5427   fi
5428 done
5429
5430
5431
5432
5433
5434
5435 # Check whether --with-optimize-option was given.
5436 if test "${with_optimize_option+set}" = set; then
5437   withval=$with_optimize_option;
5438 else
5439   withval=default
5440 fi
5441
5442 { echo "$as_me:$LINENO: checking optimization flags" >&5
5443 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5444 case "$withval" in
5445   default)
5446     case "$llvm_cv_os_type" in
5447     FreeBSD) optimize_option=-O2 ;;
5448     MingW) optimize_option=-O2 ;;
5449     *)     optimize_option=-O3 ;;
5450     esac ;;
5451   *) optimize_option="$withval" ;;
5452 esac
5453 OPTIMIZE_OPTION=$optimize_option
5454
5455 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5456 echo "${ECHO_T}$optimize_option" >&6; }
5457
5458
5459 # Check whether --with-extra-options was given.
5460 if test "${with_extra_options+set}" = set; then
5461   withval=$with_extra_options;
5462 else
5463   withval=default
5464 fi
5465
5466 case "$withval" in
5467   default) EXTRA_OPTIONS= ;;
5468   *) EXTRA_OPTIONS=$withval ;;
5469 esac
5470 EXTRA_OPTIONS=$EXTRA_OPTIONS
5471
5472
5473
5474 # Check whether --with-extra-ld-options was given.
5475 if test "${with_extra_ld_options+set}" = set; then
5476   withval=$with_extra_ld_options;
5477 else
5478   withval=default
5479 fi
5480
5481 case "$withval" in
5482   default) EXTRA_LD_OPTIONS= ;;
5483   *) EXTRA_LD_OPTIONS=$withval ;;
5484 esac
5485 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5486
5487
5488 # Check whether --enable-bindings was given.
5489 if test "${enable_bindings+set}" = set; then
5490   enableval=$enable_bindings;
5491 else
5492   enableval=default
5493 fi
5494
5495 BINDINGS_TO_BUILD=""
5496 case "$enableval" in
5497   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5498   all ) BINDINGS_TO_BUILD="ocaml" ;;
5499   none | no) BINDINGS_TO_BUILD="" ;;
5500   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5501       case "$a_binding" in
5502         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5503         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5504 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5505    { (exit 1); exit 1; }; } ;;
5506       esac
5507   done
5508   ;;
5509 esac
5510
5511
5512 # Check whether --with-ocaml-libdir was given.
5513 if test "${with_ocaml_libdir+set}" = set; then
5514   withval=$with_ocaml_libdir;
5515 else
5516   withval=auto
5517 fi
5518
5519 case "$withval" in
5520   auto) with_ocaml_libdir="$withval" ;;
5521   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5522   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5523 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5524    { (exit 1); exit 1; }; } ;;
5525 esac
5526
5527
5528 # Check whether --with-clang-resource-dir was given.
5529 if test "${with_clang_resource_dir+set}" = set; then
5530   withval=$with_clang_resource_dir;
5531 else
5532   withval=""
5533 fi
5534
5535
5536 cat >>confdefs.h <<_ACEOF
5537 #define CLANG_RESOURCE_DIR "$withval"
5538 _ACEOF
5539
5540
5541
5542 # Check whether --with-c-include-dirs was given.
5543 if test "${with_c_include_dirs+set}" = set; then
5544   withval=$with_c_include_dirs;
5545 else
5546   withval=""
5547 fi
5548
5549
5550 cat >>confdefs.h <<_ACEOF
5551 #define C_INCLUDE_DIRS "$withval"
5552 _ACEOF
5553
5554
5555 # Clang normally uses the system c++ headers and libraries. With this option,
5556 # clang will use the ones provided by a gcc installation instead. This option should
5557 # be passed the same value that was used with --prefix when configuring gcc.
5558
5559 # Check whether --with-gcc-toolchain was given.
5560 if test "${with_gcc_toolchain+set}" = set; then
5561   withval=$with_gcc_toolchain;
5562 else
5563   withval=""
5564 fi
5565
5566
5567 cat >>confdefs.h <<_ACEOF
5568 #define GCC_INSTALL_PREFIX "$withval"
5569 _ACEOF
5570
5571
5572
5573 # Check whether --with-binutils-include was given.
5574 if test "${with_binutils_include+set}" = set; then
5575   withval=$with_binutils_include;
5576 else
5577   withval=default
5578 fi
5579
5580 case "$withval" in
5581   default) WITH_BINUTILS_INCDIR=default ;;
5582   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5583   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5584 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5585    { (exit 1); exit 1; }; } ;;
5586 esac
5587 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5588   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5589
5590   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5591      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5592      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5593 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5594    { (exit 1); exit 1; }; };
5595   fi
5596 fi
5597
5598
5599 # Check whether --with-bug-report-url was given.
5600 if test "${with_bug_report_url+set}" = set; then
5601   withval=$with_bug_report_url;
5602 else
5603   withval="http://llvm.org/bugs/"
5604 fi
5605
5606
5607 cat >>confdefs.h <<_ACEOF
5608 #define BUG_REPORT_URL "$withval"
5609 _ACEOF
5610
5611
5612 # Check whether --enable-libffi was given.
5613 if test "${enable_libffi+set}" = set; then
5614   enableval=$enable_libffi; case "$enableval" in
5615     yes) llvm_cv_enable_libffi="yes" ;;
5616     no)  llvm_cv_enable_libffi="no"  ;;
5617     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5618 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5619    { (exit 1); exit 1; }; } ;;
5620   esac
5621 else
5622   llvm_cv_enable_libffi=no
5623 fi
5624
5625
5626
5627 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5628 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5629 if test "${lt_cv_path_NM+set}" = set; then
5630   echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632   if test -n "$NM"; then
5633   # Let the user override the test.
5634   lt_cv_path_NM="$NM"
5635 else
5636   lt_nm_to_check="${ac_tool_prefix}nm"
5637   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5638     lt_nm_to_check="$lt_nm_to_check nm"
5639   fi
5640   for lt_tmp_nm in $lt_nm_to_check; do
5641     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5642     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5643       IFS="$lt_save_ifs"
5644       test -z "$ac_dir" && ac_dir=.
5645       tmp_nm="$ac_dir/$lt_tmp_nm"
5646       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5647         # Check to see if the nm accepts a BSD-compat flag.
5648         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5649         #   nm: unknown option "B" ignored
5650         # Tru64's nm complains that /dev/null is an invalid object file
5651         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5652         */dev/null* | *'Invalid file or object type'*)
5653           lt_cv_path_NM="$tmp_nm -B"
5654           break
5655           ;;
5656         *)
5657           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5658           */dev/null*)
5659             lt_cv_path_NM="$tmp_nm -p"
5660             break
5661             ;;
5662           *)
5663             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5664             continue # so that we can try to find one that supports BSD flags
5665             ;;
5666           esac
5667           ;;
5668         esac
5669       fi
5670     done
5671     IFS="$lt_save_ifs"
5672   done
5673   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5674 fi
5675 fi
5676 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5677 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5678 NM="$lt_cv_path_NM"
5679
5680
5681
5682 { echo "$as_me:$LINENO: checking for GNU make" >&5
5683 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5684 if test "${llvm_cv_gnu_make_command+set}" = set; then
5685   echo $ECHO_N "(cached) $ECHO_C" >&6
5686 else
5687   llvm_cv_gnu_make_command=''
5688  for a in "$MAKE" make gmake gnumake ; do
5689   if test -z "$a" ; then continue ; fi ;
5690   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5691   then
5692    llvm_cv_gnu_make_command=$a ;
5693    break;
5694   fi
5695  done
5696 fi
5697 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5698 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5699  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5700    ifGNUmake='' ;
5701  else
5702    ifGNUmake='#' ;
5703    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5704 echo "${ECHO_T}\"Not found\"" >&6; };
5705  fi
5706
5707
5708 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5709 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5710 LN_S=$as_ln_s
5711 if test "$LN_S" = "ln -s"; then
5712   { echo "$as_me:$LINENO: result: yes" >&5
5713 echo "${ECHO_T}yes" >&6; }
5714 else
5715   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5716 echo "${ECHO_T}no, using $LN_S" >&6; }
5717 fi
5718
5719 # Extract the first word of "cmp", so it can be a program name with args.
5720 set dummy cmp; ac_word=$2
5721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5723 if test "${ac_cv_path_CMP+set}" = set; then
5724   echo $ECHO_N "(cached) $ECHO_C" >&6
5725 else
5726   case $CMP in
5727   [\\/]* | ?:[\\/]*)
5728   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5729   ;;
5730   *)
5731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732 for as_dir in $PATH
5733 do
5734   IFS=$as_save_IFS
5735   test -z "$as_dir" && as_dir=.
5736   for ac_exec_ext in '' $ac_executable_extensions; do
5737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5738     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5740     break 2
5741   fi
5742 done
5743 done
5744 IFS=$as_save_IFS
5745
5746   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5747   ;;
5748 esac
5749 fi
5750 CMP=$ac_cv_path_CMP
5751 if test -n "$CMP"; then
5752   { echo "$as_me:$LINENO: result: $CMP" >&5
5753 echo "${ECHO_T}$CMP" >&6; }
5754 else
5755   { echo "$as_me:$LINENO: result: no" >&5
5756 echo "${ECHO_T}no" >&6; }
5757 fi
5758
5759
5760 # Extract the first word of "cp", so it can be a program name with args.
5761 set dummy cp; ac_word=$2
5762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5764 if test "${ac_cv_path_CP+set}" = set; then
5765   echo $ECHO_N "(cached) $ECHO_C" >&6
5766 else
5767   case $CP in
5768   [\\/]* | ?:[\\/]*)
5769   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5770   ;;
5771   *)
5772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH
5774 do
5775   IFS=$as_save_IFS
5776   test -z "$as_dir" && as_dir=.
5777   for ac_exec_ext in '' $ac_executable_extensions; do
5778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5779     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5781     break 2
5782   fi
5783 done
5784 done
5785 IFS=$as_save_IFS
5786
5787   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5788   ;;
5789 esac
5790 fi
5791 CP=$ac_cv_path_CP
5792 if test -n "$CP"; then
5793   { echo "$as_me:$LINENO: result: $CP" >&5
5794 echo "${ECHO_T}$CP" >&6; }
5795 else
5796   { echo "$as_me:$LINENO: result: no" >&5
5797 echo "${ECHO_T}no" >&6; }
5798 fi
5799
5800
5801 # Extract the first word of "date", so it can be a program name with args.
5802 set dummy date; ac_word=$2
5803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5805 if test "${ac_cv_path_DATE+set}" = set; then
5806   echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808   case $DATE in
5809   [\\/]* | ?:[\\/]*)
5810   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5811   ;;
5812   *)
5813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH
5815 do
5816   IFS=$as_save_IFS
5817   test -z "$as_dir" && as_dir=.
5818   for ac_exec_ext in '' $ac_executable_extensions; do
5819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5820     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5822     break 2
5823   fi
5824 done
5825 done
5826 IFS=$as_save_IFS
5827
5828   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5829   ;;
5830 esac
5831 fi
5832 DATE=$ac_cv_path_DATE
5833 if test -n "$DATE"; then
5834   { echo "$as_me:$LINENO: result: $DATE" >&5
5835 echo "${ECHO_T}$DATE" >&6; }
5836 else
5837   { echo "$as_me:$LINENO: result: no" >&5
5838 echo "${ECHO_T}no" >&6; }
5839 fi
5840
5841
5842 # Extract the first word of "find", so it can be a program name with args.
5843 set dummy find; ac_word=$2
5844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5846 if test "${ac_cv_path_FIND+set}" = set; then
5847   echo $ECHO_N "(cached) $ECHO_C" >&6
5848 else
5849   case $FIND in
5850   [\\/]* | ?:[\\/]*)
5851   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5852   ;;
5853   *)
5854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 for as_dir in $PATH
5856 do
5857   IFS=$as_save_IFS
5858   test -z "$as_dir" && as_dir=.
5859   for ac_exec_ext in '' $ac_executable_extensions; do
5860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5861     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5863     break 2
5864   fi
5865 done
5866 done
5867 IFS=$as_save_IFS
5868
5869   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5870   ;;
5871 esac
5872 fi
5873 FIND=$ac_cv_path_FIND
5874 if test -n "$FIND"; then
5875   { echo "$as_me:$LINENO: result: $FIND" >&5
5876 echo "${ECHO_T}$FIND" >&6; }
5877 else
5878   { echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6; }
5880 fi
5881
5882
5883 # Extract the first word of "grep", so it can be a program name with args.
5884 set dummy grep; ac_word=$2
5885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5887 if test "${ac_cv_path_GREP+set}" = set; then
5888   echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890   case $GREP in
5891   [\\/]* | ?:[\\/]*)
5892   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5893   ;;
5894   *)
5895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5897 do
5898   IFS=$as_save_IFS
5899   test -z "$as_dir" && as_dir=.
5900   for ac_exec_ext in '' $ac_executable_extensions; do
5901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5902     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5904     break 2
5905   fi
5906 done
5907 done
5908 IFS=$as_save_IFS
5909
5910   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5911   ;;
5912 esac
5913 fi
5914 GREP=$ac_cv_path_GREP
5915 if test -n "$GREP"; then
5916   { echo "$as_me:$LINENO: result: $GREP" >&5
5917 echo "${ECHO_T}$GREP" >&6; }
5918 else
5919   { echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6; }
5921 fi
5922
5923
5924 # Extract the first word of "mkdir", so it can be a program name with args.
5925 set dummy mkdir; ac_word=$2
5926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5928 if test "${ac_cv_path_MKDIR+set}" = set; then
5929   echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931   case $MKDIR in
5932   [\\/]* | ?:[\\/]*)
5933   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5934   ;;
5935   *)
5936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5938 do
5939   IFS=$as_save_IFS
5940   test -z "$as_dir" && as_dir=.
5941   for ac_exec_ext in '' $ac_executable_extensions; do
5942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5943     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945     break 2
5946   fi
5947 done
5948 done
5949 IFS=$as_save_IFS
5950
5951   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5952   ;;
5953 esac
5954 fi
5955 MKDIR=$ac_cv_path_MKDIR
5956 if test -n "$MKDIR"; then
5957   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5958 echo "${ECHO_T}$MKDIR" >&6; }
5959 else
5960   { echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6; }
5962 fi
5963
5964
5965 # Extract the first word of "mv", so it can be a program name with args.
5966 set dummy mv; ac_word=$2
5967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5969 if test "${ac_cv_path_MV+set}" = set; then
5970   echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972   case $MV in
5973   [\\/]* | ?:[\\/]*)
5974   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5975   ;;
5976   *)
5977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 for as_dir in $PATH
5979 do
5980   IFS=$as_save_IFS
5981   test -z "$as_dir" && as_dir=.
5982   for ac_exec_ext in '' $ac_executable_extensions; do
5983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5984     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5986     break 2
5987   fi
5988 done
5989 done
5990 IFS=$as_save_IFS
5991
5992   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5993   ;;
5994 esac
5995 fi
5996 MV=$ac_cv_path_MV
5997 if test -n "$MV"; then
5998   { echo "$as_me:$LINENO: result: $MV" >&5
5999 echo "${ECHO_T}$MV" >&6; }
6000 else
6001   { echo "$as_me:$LINENO: result: no" >&5
6002 echo "${ECHO_T}no" >&6; }
6003 fi
6004
6005
6006 if test -n "$ac_tool_prefix"; then
6007   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6008 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6011 if test "${ac_cv_prog_RANLIB+set}" = set; then
6012   echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014   if test -n "$RANLIB"; then
6015   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6016 else
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 for as_dir in $PATH
6019 do
6020   IFS=$as_save_IFS
6021   test -z "$as_dir" && as_dir=.
6022   for ac_exec_ext in '' $ac_executable_extensions; do
6023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6024     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6026     break 2
6027   fi
6028 done
6029 done
6030 IFS=$as_save_IFS
6031
6032 fi
6033 fi
6034 RANLIB=$ac_cv_prog_RANLIB
6035 if test -n "$RANLIB"; then
6036   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6037 echo "${ECHO_T}$RANLIB" >&6; }
6038 else
6039   { echo "$as_me:$LINENO: result: no" >&5
6040 echo "${ECHO_T}no" >&6; }
6041 fi
6042
6043
6044 fi
6045 if test -z "$ac_cv_prog_RANLIB"; then
6046   ac_ct_RANLIB=$RANLIB
6047   # Extract the first word of "ranlib", so it can be a program name with args.
6048 set dummy ranlib; ac_word=$2
6049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6051 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6052   echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054   if test -n "$ac_ct_RANLIB"; then
6055   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6056 else
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 for as_dir in $PATH
6059 do
6060   IFS=$as_save_IFS
6061   test -z "$as_dir" && as_dir=.
6062   for ac_exec_ext in '' $ac_executable_extensions; do
6063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6064     ac_cv_prog_ac_ct_RANLIB="ranlib"
6065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6066     break 2
6067   fi
6068 done
6069 done
6070 IFS=$as_save_IFS
6071
6072 fi
6073 fi
6074 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6075 if test -n "$ac_ct_RANLIB"; then
6076   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6077 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6078 else
6079   { echo "$as_me:$LINENO: result: no" >&5
6080 echo "${ECHO_T}no" >&6; }
6081 fi
6082
6083   if test "x$ac_ct_RANLIB" = x; then
6084     RANLIB=":"
6085   else
6086     case $cross_compiling:$ac_tool_warned in
6087 yes:)
6088 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6089 whose name does not start with the host triplet.  If you think this
6090 configuration is useful to you, please write to autoconf@gnu.org." >&5
6091 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6092 whose name does not start with the host triplet.  If you think this
6093 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6094 ac_tool_warned=yes ;;
6095 esac
6096     RANLIB=$ac_ct_RANLIB
6097   fi
6098 else
6099   RANLIB="$ac_cv_prog_RANLIB"
6100 fi
6101
6102 if test -n "$ac_tool_prefix"; then
6103   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6104 set dummy ${ac_tool_prefix}ar; ac_word=$2
6105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6107 if test "${ac_cv_prog_AR+set}" = set; then
6108   echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110   if test -n "$AR"; then
6111   ac_cv_prog_AR="$AR" # Let the user override the test.
6112 else
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH
6115 do
6116   IFS=$as_save_IFS
6117   test -z "$as_dir" && as_dir=.
6118   for ac_exec_ext in '' $ac_executable_extensions; do
6119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6120     ac_cv_prog_AR="${ac_tool_prefix}ar"
6121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6122     break 2
6123   fi
6124 done
6125 done
6126 IFS=$as_save_IFS
6127
6128 fi
6129 fi
6130 AR=$ac_cv_prog_AR
6131 if test -n "$AR"; then
6132   { echo "$as_me:$LINENO: result: $AR" >&5
6133 echo "${ECHO_T}$AR" >&6; }
6134 else
6135   { echo "$as_me:$LINENO: result: no" >&5
6136 echo "${ECHO_T}no" >&6; }
6137 fi
6138
6139
6140 fi
6141 if test -z "$ac_cv_prog_AR"; then
6142   ac_ct_AR=$AR
6143   # Extract the first word of "ar", so it can be a program name with args.
6144 set dummy ar; ac_word=$2
6145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6147 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6148   echo $ECHO_N "(cached) $ECHO_C" >&6
6149 else
6150   if test -n "$ac_ct_AR"; then
6151   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6152 else
6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154 for as_dir in $PATH
6155 do
6156   IFS=$as_save_IFS
6157   test -z "$as_dir" && as_dir=.
6158   for ac_exec_ext in '' $ac_executable_extensions; do
6159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6160     ac_cv_prog_ac_ct_AR="ar"
6161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6162     break 2
6163   fi
6164 done
6165 done
6166 IFS=$as_save_IFS
6167
6168 fi
6169 fi
6170 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6171 if test -n "$ac_ct_AR"; then
6172   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6173 echo "${ECHO_T}$ac_ct_AR" >&6; }
6174 else
6175   { echo "$as_me:$LINENO: result: no" >&5
6176 echo "${ECHO_T}no" >&6; }
6177 fi
6178
6179   if test "x$ac_ct_AR" = x; then
6180     AR="false"
6181   else
6182     case $cross_compiling:$ac_tool_warned in
6183 yes:)
6184 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6185 whose name does not start with the host triplet.  If you think this
6186 configuration is useful to you, please write to autoconf@gnu.org." >&5
6187 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6188 whose name does not start with the host triplet.  If you think this
6189 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6190 ac_tool_warned=yes ;;
6191 esac
6192     AR=$ac_ct_AR
6193   fi
6194 else
6195   AR="$ac_cv_prog_AR"
6196 fi
6197
6198 # Extract the first word of "rm", so it can be a program name with args.
6199 set dummy rm; ac_word=$2
6200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6202 if test "${ac_cv_path_RM+set}" = set; then
6203   echo $ECHO_N "(cached) $ECHO_C" >&6
6204 else
6205   case $RM in
6206   [\\/]* | ?:[\\/]*)
6207   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6208   ;;
6209   *)
6210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH
6212 do
6213   IFS=$as_save_IFS
6214   test -z "$as_dir" && as_dir=.
6215   for ac_exec_ext in '' $ac_executable_extensions; do
6216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6217     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6219     break 2
6220   fi
6221 done
6222 done
6223 IFS=$as_save_IFS
6224
6225   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6226   ;;
6227 esac
6228 fi
6229 RM=$ac_cv_path_RM
6230 if test -n "$RM"; then
6231   { echo "$as_me:$LINENO: result: $RM" >&5
6232 echo "${ECHO_T}$RM" >&6; }
6233 else
6234   { echo "$as_me:$LINENO: result: no" >&5
6235 echo "${ECHO_T}no" >&6; }
6236 fi
6237
6238
6239 # Extract the first word of "sed", so it can be a program name with args.
6240 set dummy sed; ac_word=$2
6241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6243 if test "${ac_cv_path_SED+set}" = set; then
6244   echo $ECHO_N "(cached) $ECHO_C" >&6
6245 else
6246   case $SED in
6247   [\\/]* | ?:[\\/]*)
6248   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6249   ;;
6250   *)
6251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 for as_dir in $PATH
6253 do
6254   IFS=$as_save_IFS
6255   test -z "$as_dir" && as_dir=.
6256   for ac_exec_ext in '' $ac_executable_extensions; do
6257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6258     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6260     break 2
6261   fi
6262 done
6263 done
6264 IFS=$as_save_IFS
6265
6266   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6267   ;;
6268 esac
6269 fi
6270 SED=$ac_cv_path_SED
6271 if test -n "$SED"; then
6272   { echo "$as_me:$LINENO: result: $SED" >&5
6273 echo "${ECHO_T}$SED" >&6; }
6274 else
6275   { echo "$as_me:$LINENO: result: no" >&5
6276 echo "${ECHO_T}no" >&6; }
6277 fi
6278
6279
6280 # Extract the first word of "tar", so it can be a program name with args.
6281 set dummy tar; ac_word=$2
6282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6284 if test "${ac_cv_path_TAR+set}" = set; then
6285   echo $ECHO_N "(cached) $ECHO_C" >&6
6286 else
6287   case $TAR in
6288   [\\/]* | ?:[\\/]*)
6289   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6290   ;;
6291   *)
6292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 for as_dir in $PATH
6294 do
6295   IFS=$as_save_IFS
6296   test -z "$as_dir" && as_dir=.
6297   for ac_exec_ext in '' $ac_executable_extensions; do
6298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6299     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6301     break 2
6302   fi
6303 done
6304 done
6305 IFS=$as_save_IFS
6306
6307   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6308   ;;
6309 esac
6310 fi
6311 TAR=$ac_cv_path_TAR
6312 if test -n "$TAR"; then
6313   { echo "$as_me:$LINENO: result: $TAR" >&5
6314 echo "${ECHO_T}$TAR" >&6; }
6315 else
6316   { echo "$as_me:$LINENO: result: no" >&5
6317 echo "${ECHO_T}no" >&6; }
6318 fi
6319
6320
6321 # Extract the first word of "pwd", so it can be a program name with args.
6322 set dummy pwd; ac_word=$2
6323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6325 if test "${ac_cv_path_BINPWD+set}" = set; then
6326   echo $ECHO_N "(cached) $ECHO_C" >&6
6327 else
6328   case $BINPWD in
6329   [\\/]* | ?:[\\/]*)
6330   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6331   ;;
6332   *)
6333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $PATH
6335 do
6336   IFS=$as_save_IFS
6337   test -z "$as_dir" && as_dir=.
6338   for ac_exec_ext in '' $ac_executable_extensions; do
6339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6340     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6342     break 2
6343   fi
6344 done
6345 done
6346 IFS=$as_save_IFS
6347
6348   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6349   ;;
6350 esac
6351 fi
6352 BINPWD=$ac_cv_path_BINPWD
6353 if test -n "$BINPWD"; then
6354   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6355 echo "${ECHO_T}$BINPWD" >&6; }
6356 else
6357   { echo "$as_me:$LINENO: result: no" >&5
6358 echo "${ECHO_T}no" >&6; }
6359 fi
6360
6361
6362
6363 # Extract the first word of "Graphviz", so it can be a program name with args.
6364 set dummy Graphviz; ac_word=$2
6365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6367 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6368   echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370   case $GRAPHVIZ in
6371   [\\/]* | ?:[\\/]*)
6372   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6373   ;;
6374   *)
6375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 for as_dir in $PATH
6377 do
6378   IFS=$as_save_IFS
6379   test -z "$as_dir" && as_dir=.
6380   for ac_exec_ext in '' $ac_executable_extensions; do
6381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6382     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6384     break 2
6385   fi
6386 done
6387 done
6388 IFS=$as_save_IFS
6389
6390   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6391   ;;
6392 esac
6393 fi
6394 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6395 if test -n "$GRAPHVIZ"; then
6396   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6397 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6398 else
6399   { echo "$as_me:$LINENO: result: no" >&5
6400 echo "${ECHO_T}no" >&6; }
6401 fi
6402
6403
6404 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6405
6406 cat >>confdefs.h <<\_ACEOF
6407 #define HAVE_GRAPHVIZ 1
6408 _ACEOF
6409
6410     if test "$llvm_cv_os_type" = "MingW" ; then
6411     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6412   fi
6413
6414 cat >>confdefs.h <<_ACEOF
6415 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6416 _ACEOF
6417
6418 fi
6419 # Extract the first word of "dot", so it can be a program name with args.
6420 set dummy dot; ac_word=$2
6421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6423 if test "${ac_cv_path_DOT+set}" = set; then
6424   echo $ECHO_N "(cached) $ECHO_C" >&6
6425 else
6426   case $DOT in
6427   [\\/]* | ?:[\\/]*)
6428   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6429   ;;
6430   *)
6431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 for as_dir in $PATH
6433 do
6434   IFS=$as_save_IFS
6435   test -z "$as_dir" && as_dir=.
6436   for ac_exec_ext in '' $ac_executable_extensions; do
6437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6438     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6440     break 2
6441   fi
6442 done
6443 done
6444 IFS=$as_save_IFS
6445
6446   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6447   ;;
6448 esac
6449 fi
6450 DOT=$ac_cv_path_DOT
6451 if test -n "$DOT"; then
6452   { echo "$as_me:$LINENO: result: $DOT" >&5
6453 echo "${ECHO_T}$DOT" >&6; }
6454 else
6455   { echo "$as_me:$LINENO: result: no" >&5
6456 echo "${ECHO_T}no" >&6; }
6457 fi
6458
6459
6460 if test "$DOT" != "echo dot" ; then
6461
6462 cat >>confdefs.h <<\_ACEOF
6463 #define HAVE_DOT 1
6464 _ACEOF
6465
6466     if test "$llvm_cv_os_type" = "MingW" ; then
6467     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6468   fi
6469
6470 cat >>confdefs.h <<_ACEOF
6471 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6472 _ACEOF
6473
6474 fi
6475 # Extract the first word of "fdp", so it can be a program name with args.
6476 set dummy fdp; ac_word=$2
6477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6479 if test "${ac_cv_path_FDP+set}" = set; then
6480   echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482   case $FDP in
6483   [\\/]* | ?:[\\/]*)
6484   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6485   ;;
6486   *)
6487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 for as_dir in $PATH
6489 do
6490   IFS=$as_save_IFS
6491   test -z "$as_dir" && as_dir=.
6492   for ac_exec_ext in '' $ac_executable_extensions; do
6493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6494     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6496     break 2
6497   fi
6498 done
6499 done
6500 IFS=$as_save_IFS
6501
6502   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6503   ;;
6504 esac
6505 fi
6506 FDP=$ac_cv_path_FDP
6507 if test -n "$FDP"; then
6508   { echo "$as_me:$LINENO: result: $FDP" >&5
6509 echo "${ECHO_T}$FDP" >&6; }
6510 else
6511   { echo "$as_me:$LINENO: result: no" >&5
6512 echo "${ECHO_T}no" >&6; }
6513 fi
6514
6515
6516 if test "$FDP" != "echo fdp" ; then
6517
6518 cat >>confdefs.h <<\_ACEOF
6519 #define HAVE_FDP 1
6520 _ACEOF
6521
6522     if test "$llvm_cv_os_type" = "MingW" ; then
6523     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6524   fi
6525
6526 cat >>confdefs.h <<_ACEOF
6527 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6528 _ACEOF
6529
6530 fi
6531 # Extract the first word of "neato", so it can be a program name with args.
6532 set dummy neato; ac_word=$2
6533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6535 if test "${ac_cv_path_NEATO+set}" = set; then
6536   echo $ECHO_N "(cached) $ECHO_C" >&6
6537 else
6538   case $NEATO in
6539   [\\/]* | ?:[\\/]*)
6540   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6541   ;;
6542   *)
6543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 for as_dir in $PATH
6545 do
6546   IFS=$as_save_IFS
6547   test -z "$as_dir" && as_dir=.
6548   for ac_exec_ext in '' $ac_executable_extensions; do
6549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6550     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6552     break 2
6553   fi
6554 done
6555 done
6556 IFS=$as_save_IFS
6557
6558   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6559   ;;
6560 esac
6561 fi
6562 NEATO=$ac_cv_path_NEATO
6563 if test -n "$NEATO"; then
6564   { echo "$as_me:$LINENO: result: $NEATO" >&5
6565 echo "${ECHO_T}$NEATO" >&6; }
6566 else
6567   { echo "$as_me:$LINENO: result: no" >&5
6568 echo "${ECHO_T}no" >&6; }
6569 fi
6570
6571
6572 if test "$NEATO" != "echo neato" ; then
6573
6574 cat >>confdefs.h <<\_ACEOF
6575 #define HAVE_NEATO 1
6576 _ACEOF
6577
6578     if test "$llvm_cv_os_type" = "MingW" ; then
6579     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6580   fi
6581
6582 cat >>confdefs.h <<_ACEOF
6583 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6584 _ACEOF
6585
6586 fi
6587 # Extract the first word of "twopi", so it can be a program name with args.
6588 set dummy twopi; ac_word=$2
6589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6591 if test "${ac_cv_path_TWOPI+set}" = set; then
6592   echo $ECHO_N "(cached) $ECHO_C" >&6
6593 else
6594   case $TWOPI in
6595   [\\/]* | ?:[\\/]*)
6596   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6597   ;;
6598   *)
6599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 for as_dir in $PATH
6601 do
6602   IFS=$as_save_IFS
6603   test -z "$as_dir" && as_dir=.
6604   for ac_exec_ext in '' $ac_executable_extensions; do
6605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6606     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608     break 2
6609   fi
6610 done
6611 done
6612 IFS=$as_save_IFS
6613
6614   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6615   ;;
6616 esac
6617 fi
6618 TWOPI=$ac_cv_path_TWOPI
6619 if test -n "$TWOPI"; then
6620   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6621 echo "${ECHO_T}$TWOPI" >&6; }
6622 else
6623   { echo "$as_me:$LINENO: result: no" >&5
6624 echo "${ECHO_T}no" >&6; }
6625 fi
6626
6627
6628 if test "$TWOPI" != "echo twopi" ; then
6629
6630 cat >>confdefs.h <<\_ACEOF
6631 #define HAVE_TWOPI 1
6632 _ACEOF
6633
6634     if test "$llvm_cv_os_type" = "MingW" ; then
6635     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6636   fi
6637
6638 cat >>confdefs.h <<_ACEOF
6639 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6640 _ACEOF
6641
6642 fi
6643 # Extract the first word of "circo", so it can be a program name with args.
6644 set dummy circo; ac_word=$2
6645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6647 if test "${ac_cv_path_CIRCO+set}" = set; then
6648   echo $ECHO_N "(cached) $ECHO_C" >&6
6649 else
6650   case $CIRCO in
6651   [\\/]* | ?:[\\/]*)
6652   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6653   ;;
6654   *)
6655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 for as_dir in $PATH
6657 do
6658   IFS=$as_save_IFS
6659   test -z "$as_dir" && as_dir=.
6660   for ac_exec_ext in '' $ac_executable_extensions; do
6661   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6662     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6664     break 2
6665   fi
6666 done
6667 done
6668 IFS=$as_save_IFS
6669
6670   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6671   ;;
6672 esac
6673 fi
6674 CIRCO=$ac_cv_path_CIRCO
6675 if test -n "$CIRCO"; then
6676   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6677 echo "${ECHO_T}$CIRCO" >&6; }
6678 else
6679   { echo "$as_me:$LINENO: result: no" >&5
6680 echo "${ECHO_T}no" >&6; }
6681 fi
6682
6683
6684 if test "$CIRCO" != "echo circo" ; then
6685
6686 cat >>confdefs.h <<\_ACEOF
6687 #define HAVE_CIRCO 1
6688 _ACEOF
6689
6690     if test "$llvm_cv_os_type" = "MingW" ; then
6691     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6692   fi
6693
6694 cat >>confdefs.h <<_ACEOF
6695 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6696 _ACEOF
6697
6698 fi
6699 for ac_prog in gv gsview32
6700 do
6701   # Extract the first word of "$ac_prog", so it can be a program name with args.
6702 set dummy $ac_prog; ac_word=$2
6703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6705 if test "${ac_cv_path_GV+set}" = set; then
6706   echo $ECHO_N "(cached) $ECHO_C" >&6
6707 else
6708   case $GV in
6709   [\\/]* | ?:[\\/]*)
6710   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6711   ;;
6712   *)
6713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 for as_dir in $PATH
6715 do
6716   IFS=$as_save_IFS
6717   test -z "$as_dir" && as_dir=.
6718   for ac_exec_ext in '' $ac_executable_extensions; do
6719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6720     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6722     break 2
6723   fi
6724 done
6725 done
6726 IFS=$as_save_IFS
6727
6728   ;;
6729 esac
6730 fi
6731 GV=$ac_cv_path_GV
6732 if test -n "$GV"; then
6733   { echo "$as_me:$LINENO: result: $GV" >&5
6734 echo "${ECHO_T}$GV" >&6; }
6735 else
6736   { echo "$as_me:$LINENO: result: no" >&5
6737 echo "${ECHO_T}no" >&6; }
6738 fi
6739
6740
6741   test -n "$GV" && break
6742 done
6743 test -n "$GV" || GV="echo gv"
6744
6745 if test "$GV" != "echo gv" ; then
6746
6747 cat >>confdefs.h <<\_ACEOF
6748 #define HAVE_GV 1
6749 _ACEOF
6750
6751     if test "$llvm_cv_os_type" = "MingW" ; then
6752     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6753   fi
6754
6755 cat >>confdefs.h <<_ACEOF
6756 #define LLVM_PATH_GV "$GV${EXEEXT}"
6757 _ACEOF
6758
6759 fi
6760 # Extract the first word of "dotty", so it can be a program name with args.
6761 set dummy dotty; ac_word=$2
6762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6764 if test "${ac_cv_path_DOTTY+set}" = set; then
6765   echo $ECHO_N "(cached) $ECHO_C" >&6
6766 else
6767   case $DOTTY in
6768   [\\/]* | ?:[\\/]*)
6769   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6770   ;;
6771   *)
6772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6774 do
6775   IFS=$as_save_IFS
6776   test -z "$as_dir" && as_dir=.
6777   for ac_exec_ext in '' $ac_executable_extensions; do
6778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6779     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6781     break 2
6782   fi
6783 done
6784 done
6785 IFS=$as_save_IFS
6786
6787   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6788   ;;
6789 esac
6790 fi
6791 DOTTY=$ac_cv_path_DOTTY
6792 if test -n "$DOTTY"; then
6793   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6794 echo "${ECHO_T}$DOTTY" >&6; }
6795 else
6796   { echo "$as_me:$LINENO: result: no" >&5
6797 echo "${ECHO_T}no" >&6; }
6798 fi
6799
6800
6801 if test "$DOTTY" != "echo dotty" ; then
6802
6803 cat >>confdefs.h <<\_ACEOF
6804 #define HAVE_DOTTY 1
6805 _ACEOF
6806
6807     if test "$llvm_cv_os_type" = "MingW" ; then
6808     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6809   fi
6810
6811 cat >>confdefs.h <<_ACEOF
6812 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6813 _ACEOF
6814
6815 fi
6816 # Extract the first word of "xdot.py", so it can be a program name with args.
6817 set dummy xdot.py; ac_word=$2
6818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6820 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6821   echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823   case $XDOT_PY in
6824   [\\/]* | ?:[\\/]*)
6825   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6826   ;;
6827   *)
6828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 for as_dir in $PATH
6830 do
6831   IFS=$as_save_IFS
6832   test -z "$as_dir" && as_dir=.
6833   for ac_exec_ext in '' $ac_executable_extensions; do
6834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6835     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6837     break 2
6838   fi
6839 done
6840 done
6841 IFS=$as_save_IFS
6842
6843   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6844   ;;
6845 esac
6846 fi
6847 XDOT_PY=$ac_cv_path_XDOT_PY
6848 if test -n "$XDOT_PY"; then
6849   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6850 echo "${ECHO_T}$XDOT_PY" >&6; }
6851 else
6852   { echo "$as_me:$LINENO: result: no" >&5
6853 echo "${ECHO_T}no" >&6; }
6854 fi
6855
6856
6857 if test "$XDOT_PY" != "echo xdot.py" ; then
6858
6859 cat >>confdefs.h <<\_ACEOF
6860 #define HAVE_XDOT_PY 1
6861 _ACEOF
6862
6863     if test "$llvm_cv_os_type" = "MingW" ; then
6864     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6865   fi
6866
6867 cat >>confdefs.h <<_ACEOF
6868 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6869 _ACEOF
6870
6871 fi
6872
6873 # Find a good install program.  We prefer a C program (faster),
6874 # so one script is as good as another.  But avoid the broken or
6875 # incompatible versions:
6876 # SysV /etc/install, /usr/sbin/install
6877 # SunOS /usr/etc/install
6878 # IRIX /sbin/install
6879 # AIX /bin/install
6880 # AmigaOS /C/install, which installs bootblocks on floppy discs
6881 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6882 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6883 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6884 # OS/2's system install, which has a completely different semantic
6885 # ./install, which can be erroneously created by make from ./install.sh.
6886 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6887 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6888 if test -z "$INSTALL"; then
6889 if test "${ac_cv_path_install+set}" = set; then
6890   echo $ECHO_N "(cached) $ECHO_C" >&6
6891 else
6892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6894 do
6895   IFS=$as_save_IFS
6896   test -z "$as_dir" && as_dir=.
6897   # Account for people who put trailing slashes in PATH elements.
6898 case $as_dir/ in
6899   ./ | .// | /cC/* | \
6900   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6901   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6902   /usr/ucb/* ) ;;
6903   *)
6904     # OSF1 and SCO ODT 3.0 have their own names for install.
6905     # Don't use installbsd from OSF since it installs stuff as root
6906     # by default.
6907     for ac_prog in ginstall scoinst install; do
6908       for ac_exec_ext in '' $ac_executable_extensions; do
6909         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6910           if test $ac_prog = install &&
6911             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6912             # AIX install.  It has an incompatible calling convention.
6913             :
6914           elif test $ac_prog = install &&
6915             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6916             # program-specific install script used by HP pwplus--don't use.
6917             :
6918           else
6919             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6920             break 3
6921           fi
6922         fi
6923       done
6924     done
6925     ;;
6926 esac
6927 done
6928 IFS=$as_save_IFS
6929
6930
6931 fi
6932   if test "${ac_cv_path_install+set}" = set; then
6933     INSTALL=$ac_cv_path_install
6934   else
6935     # As a last resort, use the slow shell script.  Don't cache a
6936     # value for INSTALL within a source directory, because that will
6937     # break other packages using the cache if that directory is
6938     # removed, or if the value is a relative name.
6939     INSTALL=$ac_install_sh
6940   fi
6941 fi
6942 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6943 echo "${ECHO_T}$INSTALL" >&6; }
6944
6945 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6946 # It thinks the first close brace ends the variable substitution.
6947 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6948
6949 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6950
6951 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6952
6953 case "$INSTALL" in
6954  [\\/$]* | ?:[\\/]* ) ;;
6955  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6956 esac
6957
6958 # Extract the first word of "bzip2", so it can be a program name with args.
6959 set dummy bzip2; ac_word=$2
6960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6962 if test "${ac_cv_path_BZIP2+set}" = set; then
6963   echo $ECHO_N "(cached) $ECHO_C" >&6
6964 else
6965   case $BZIP2 in
6966   [\\/]* | ?:[\\/]*)
6967   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6968   ;;
6969   *)
6970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6972 do
6973   IFS=$as_save_IFS
6974   test -z "$as_dir" && as_dir=.
6975   for ac_exec_ext in '' $ac_executable_extensions; do
6976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6977     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979     break 2
6980   fi
6981 done
6982 done
6983 IFS=$as_save_IFS
6984
6985   ;;
6986 esac
6987 fi
6988 BZIP2=$ac_cv_path_BZIP2
6989 if test -n "$BZIP2"; then
6990   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6991 echo "${ECHO_T}$BZIP2" >&6; }
6992 else
6993   { echo "$as_me:$LINENO: result: no" >&5
6994 echo "${ECHO_T}no" >&6; }
6995 fi
6996
6997
6998 # Extract the first word of "cat", so it can be a program name with args.
6999 set dummy cat; ac_word=$2
7000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7002 if test "${ac_cv_path_CAT+set}" = set; then
7003   echo $ECHO_N "(cached) $ECHO_C" >&6
7004 else
7005   case $CAT in
7006   [\\/]* | ?:[\\/]*)
7007   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7008   ;;
7009   *)
7010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 for as_dir in $PATH
7012 do
7013   IFS=$as_save_IFS
7014   test -z "$as_dir" && as_dir=.
7015   for ac_exec_ext in '' $ac_executable_extensions; do
7016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7017     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7019     break 2
7020   fi
7021 done
7022 done
7023 IFS=$as_save_IFS
7024
7025   ;;
7026 esac
7027 fi
7028 CAT=$ac_cv_path_CAT
7029 if test -n "$CAT"; then
7030   { echo "$as_me:$LINENO: result: $CAT" >&5
7031 echo "${ECHO_T}$CAT" >&6; }
7032 else
7033   { echo "$as_me:$LINENO: result: no" >&5
7034 echo "${ECHO_T}no" >&6; }
7035 fi
7036
7037
7038 # Extract the first word of "doxygen", so it can be a program name with args.
7039 set dummy doxygen; ac_word=$2
7040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7042 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7043   echo $ECHO_N "(cached) $ECHO_C" >&6
7044 else
7045   case $DOXYGEN in
7046   [\\/]* | ?:[\\/]*)
7047   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7048   ;;
7049   *)
7050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051 for as_dir in $PATH
7052 do
7053   IFS=$as_save_IFS
7054   test -z "$as_dir" && as_dir=.
7055   for ac_exec_ext in '' $ac_executable_extensions; do
7056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7057     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7059     break 2
7060   fi
7061 done
7062 done
7063 IFS=$as_save_IFS
7064
7065   ;;
7066 esac
7067 fi
7068 DOXYGEN=$ac_cv_path_DOXYGEN
7069 if test -n "$DOXYGEN"; then
7070   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7071 echo "${ECHO_T}$DOXYGEN" >&6; }
7072 else
7073   { echo "$as_me:$LINENO: result: no" >&5
7074 echo "${ECHO_T}no" >&6; }
7075 fi
7076
7077
7078 # Extract the first word of "groff", so it can be a program name with args.
7079 set dummy groff; ac_word=$2
7080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082 if test "${ac_cv_path_GROFF+set}" = set; then
7083   echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085   case $GROFF in
7086   [\\/]* | ?:[\\/]*)
7087   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7088   ;;
7089   *)
7090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7092 do
7093   IFS=$as_save_IFS
7094   test -z "$as_dir" && as_dir=.
7095   for ac_exec_ext in '' $ac_executable_extensions; do
7096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7097     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099     break 2
7100   fi
7101 done
7102 done
7103 IFS=$as_save_IFS
7104
7105   ;;
7106 esac
7107 fi
7108 GROFF=$ac_cv_path_GROFF
7109 if test -n "$GROFF"; then
7110   { echo "$as_me:$LINENO: result: $GROFF" >&5
7111 echo "${ECHO_T}$GROFF" >&6; }
7112 else
7113   { echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6; }
7115 fi
7116
7117
7118 # Extract the first word of "gzip", so it can be a program name with args.
7119 set dummy gzip; ac_word=$2
7120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7122 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7123   echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125   case $GZIPBIN in
7126   [\\/]* | ?:[\\/]*)
7127   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7128   ;;
7129   *)
7130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 for as_dir in $PATH
7132 do
7133   IFS=$as_save_IFS
7134   test -z "$as_dir" && as_dir=.
7135   for ac_exec_ext in '' $ac_executable_extensions; do
7136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7137     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7139     break 2
7140   fi
7141 done
7142 done
7143 IFS=$as_save_IFS
7144
7145   ;;
7146 esac
7147 fi
7148 GZIPBIN=$ac_cv_path_GZIPBIN
7149 if test -n "$GZIPBIN"; then
7150   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7151 echo "${ECHO_T}$GZIPBIN" >&6; }
7152 else
7153   { echo "$as_me:$LINENO: result: no" >&5
7154 echo "${ECHO_T}no" >&6; }
7155 fi
7156
7157
7158 # Extract the first word of "pod2html", so it can be a program name with args.
7159 set dummy pod2html; ac_word=$2
7160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7162 if test "${ac_cv_path_POD2HTML+set}" = set; then
7163   echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165   case $POD2HTML in
7166   [\\/]* | ?:[\\/]*)
7167   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7168   ;;
7169   *)
7170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7172 do
7173   IFS=$as_save_IFS
7174   test -z "$as_dir" && as_dir=.
7175   for ac_exec_ext in '' $ac_executable_extensions; do
7176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7177     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179     break 2
7180   fi
7181 done
7182 done
7183 IFS=$as_save_IFS
7184
7185   ;;
7186 esac
7187 fi
7188 POD2HTML=$ac_cv_path_POD2HTML
7189 if test -n "$POD2HTML"; then
7190   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7191 echo "${ECHO_T}$POD2HTML" >&6; }
7192 else
7193   { echo "$as_me:$LINENO: result: no" >&5
7194 echo "${ECHO_T}no" >&6; }
7195 fi
7196
7197
7198 # Extract the first word of "pod2man", so it can be a program name with args.
7199 set dummy pod2man; ac_word=$2
7200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7202 if test "${ac_cv_path_POD2MAN+set}" = set; then
7203   echo $ECHO_N "(cached) $ECHO_C" >&6
7204 else
7205   case $POD2MAN in
7206   [\\/]* | ?:[\\/]*)
7207   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7208   ;;
7209   *)
7210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 for as_dir in $PATH
7212 do
7213   IFS=$as_save_IFS
7214   test -z "$as_dir" && as_dir=.
7215   for ac_exec_ext in '' $ac_executable_extensions; do
7216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7217     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7219     break 2
7220   fi
7221 done
7222 done
7223 IFS=$as_save_IFS
7224
7225   ;;
7226 esac
7227 fi
7228 POD2MAN=$ac_cv_path_POD2MAN
7229 if test -n "$POD2MAN"; then
7230   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7231 echo "${ECHO_T}$POD2MAN" >&6; }
7232 else
7233   { echo "$as_me:$LINENO: result: no" >&5
7234 echo "${ECHO_T}no" >&6; }
7235 fi
7236
7237
7238 # Extract the first word of "pdfroff", so it can be a program name with args.
7239 set dummy pdfroff; ac_word=$2
7240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7242 if test "${ac_cv_path_PDFROFF+set}" = set; then
7243   echo $ECHO_N "(cached) $ECHO_C" >&6
7244 else
7245   case $PDFROFF in
7246   [\\/]* | ?:[\\/]*)
7247   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7248   ;;
7249   *)
7250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 for as_dir in $PATH
7252 do
7253   IFS=$as_save_IFS
7254   test -z "$as_dir" && as_dir=.
7255   for ac_exec_ext in '' $ac_executable_extensions; do
7256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7257     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259     break 2
7260   fi
7261 done
7262 done
7263 IFS=$as_save_IFS
7264
7265   ;;
7266 esac
7267 fi
7268 PDFROFF=$ac_cv_path_PDFROFF
7269 if test -n "$PDFROFF"; then
7270   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7271 echo "${ECHO_T}$PDFROFF" >&6; }
7272 else
7273   { echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6; }
7275 fi
7276
7277
7278 # Extract the first word of "runtest", so it can be a program name with args.
7279 set dummy runtest; ac_word=$2
7280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7282 if test "${ac_cv_path_RUNTEST+set}" = set; then
7283   echo $ECHO_N "(cached) $ECHO_C" >&6
7284 else
7285   case $RUNTEST in
7286   [\\/]* | ?:[\\/]*)
7287   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7288   ;;
7289   *)
7290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7292 do
7293   IFS=$as_save_IFS
7294   test -z "$as_dir" && as_dir=.
7295   for ac_exec_ext in '' $ac_executable_extensions; do
7296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7297     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7299     break 2
7300   fi
7301 done
7302 done
7303 IFS=$as_save_IFS
7304
7305   ;;
7306 esac
7307 fi
7308 RUNTEST=$ac_cv_path_RUNTEST
7309 if test -n "$RUNTEST"; then
7310   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7311 echo "${ECHO_T}$RUNTEST" >&6; }
7312 else
7313   { echo "$as_me:$LINENO: result: no" >&5
7314 echo "${ECHO_T}no" >&6; }
7315 fi
7316
7317
7318
7319 no_itcl=true
7320 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7321 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7322
7323 # Check whether --with-tclinclude was given.
7324 if test "${with_tclinclude+set}" = set; then
7325   withval=$with_tclinclude; with_tclinclude=${withval}
7326 else
7327   with_tclinclude=''
7328 fi
7329
7330 if test "${ac_cv_path_tclsh+set}" = set; then
7331   echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333
7334 if test x"${with_tclinclude}" != x ; then
7335   if test -f ${with_tclinclude}/tclsh ; then
7336     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7337   elif test -f ${with_tclinclude}/src/tclsh ; then
7338     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7339   else
7340     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7341 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7342    { (exit 1); exit 1; }; }
7343   fi
7344 fi
7345 fi
7346
7347
7348 if test x"${ac_cv_path_tclsh}" = x ; then
7349   { echo "$as_me:$LINENO: result: none" >&5
7350 echo "${ECHO_T}none" >&6; }
7351   for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7352 do
7353   # Extract the first word of "$ac_prog", so it can be a program name with args.
7354 set dummy $ac_prog; ac_word=$2
7355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7357 if test "${ac_cv_path_TCLSH+set}" = set; then
7358   echo $ECHO_N "(cached) $ECHO_C" >&6
7359 else
7360   case $TCLSH in
7361   [\\/]* | ?:[\\/]*)
7362   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7363   ;;
7364   *)
7365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 for as_dir in $PATH
7367 do
7368   IFS=$as_save_IFS
7369   test -z "$as_dir" && as_dir=.
7370   for ac_exec_ext in '' $ac_executable_extensions; do
7371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7372     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7374     break 2
7375   fi
7376 done
7377 done
7378 IFS=$as_save_IFS
7379
7380   ;;
7381 esac
7382 fi
7383 TCLSH=$ac_cv_path_TCLSH
7384 if test -n "$TCLSH"; then
7385   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7386 echo "${ECHO_T}$TCLSH" >&6; }
7387 else
7388   { echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6; }
7390 fi
7391
7392
7393   test -n "$TCLSH" && break
7394 done
7395
7396   if test x"${TCLSH}" = x ; then
7397     ac_cv_path_tclsh='';
7398   else
7399     ac_cv_path_tclsh="${TCLSH}";
7400   fi
7401 else
7402   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7403 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7404   TCLSH="${ac_cv_path_tclsh}"
7405
7406 fi
7407
7408 # Extract the first word of "zip", so it can be a program name with args.
7409 set dummy zip; ac_word=$2
7410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7412 if test "${ac_cv_path_ZIP+set}" = set; then
7413   echo $ECHO_N "(cached) $ECHO_C" >&6
7414 else
7415   case $ZIP in
7416   [\\/]* | ?:[\\/]*)
7417   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7418   ;;
7419   *)
7420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 for as_dir in $PATH
7422 do
7423   IFS=$as_save_IFS
7424   test -z "$as_dir" && as_dir=.
7425   for ac_exec_ext in '' $ac_executable_extensions; do
7426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7427     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7429     break 2
7430   fi
7431 done
7432 done
7433 IFS=$as_save_IFS
7434
7435   ;;
7436 esac
7437 fi
7438 ZIP=$ac_cv_path_ZIP
7439 if test -n "$ZIP"; then
7440   { echo "$as_me:$LINENO: result: $ZIP" >&5
7441 echo "${ECHO_T}$ZIP" >&6; }
7442 else
7443   { echo "$as_me:$LINENO: result: no" >&5
7444 echo "${ECHO_T}no" >&6; }
7445 fi
7446
7447
7448 for ac_prog in ocamlc
7449 do
7450   # Extract the first word of "$ac_prog", so it can be a program name with args.
7451 set dummy $ac_prog; ac_word=$2
7452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7454 if test "${ac_cv_path_OCAMLC+set}" = set; then
7455   echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457   case $OCAMLC in
7458   [\\/]* | ?:[\\/]*)
7459   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7460   ;;
7461   *)
7462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 for as_dir in $PATH
7464 do
7465   IFS=$as_save_IFS
7466   test -z "$as_dir" && as_dir=.
7467   for ac_exec_ext in '' $ac_executable_extensions; do
7468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7469     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471     break 2
7472   fi
7473 done
7474 done
7475 IFS=$as_save_IFS
7476
7477   ;;
7478 esac
7479 fi
7480 OCAMLC=$ac_cv_path_OCAMLC
7481 if test -n "$OCAMLC"; then
7482   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7483 echo "${ECHO_T}$OCAMLC" >&6; }
7484 else
7485   { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7487 fi
7488
7489
7490   test -n "$OCAMLC" && break
7491 done
7492
7493 for ac_prog in ocamlopt
7494 do
7495   # Extract the first word of "$ac_prog", so it can be a program name with args.
7496 set dummy $ac_prog; ac_word=$2
7497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7499 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7500   echo $ECHO_N "(cached) $ECHO_C" >&6
7501 else
7502   case $OCAMLOPT in
7503   [\\/]* | ?:[\\/]*)
7504   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7505   ;;
7506   *)
7507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 for as_dir in $PATH
7509 do
7510   IFS=$as_save_IFS
7511   test -z "$as_dir" && as_dir=.
7512   for ac_exec_ext in '' $ac_executable_extensions; do
7513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7514     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7516     break 2
7517   fi
7518 done
7519 done
7520 IFS=$as_save_IFS
7521
7522   ;;
7523 esac
7524 fi
7525 OCAMLOPT=$ac_cv_path_OCAMLOPT
7526 if test -n "$OCAMLOPT"; then
7527   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7528 echo "${ECHO_T}$OCAMLOPT" >&6; }
7529 else
7530   { echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6; }
7532 fi
7533
7534
7535   test -n "$OCAMLOPT" && break
7536 done
7537
7538 for ac_prog in ocamldep
7539 do
7540   # Extract the first word of "$ac_prog", so it can be a program name with args.
7541 set dummy $ac_prog; ac_word=$2
7542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7544 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7545   echo $ECHO_N "(cached) $ECHO_C" >&6
7546 else
7547   case $OCAMLDEP in
7548   [\\/]* | ?:[\\/]*)
7549   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7550   ;;
7551   *)
7552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7554 do
7555   IFS=$as_save_IFS
7556   test -z "$as_dir" && as_dir=.
7557   for ac_exec_ext in '' $ac_executable_extensions; do
7558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7559     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7561     break 2
7562   fi
7563 done
7564 done
7565 IFS=$as_save_IFS
7566
7567   ;;
7568 esac
7569 fi
7570 OCAMLDEP=$ac_cv_path_OCAMLDEP
7571 if test -n "$OCAMLDEP"; then
7572   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7573 echo "${ECHO_T}$OCAMLDEP" >&6; }
7574 else
7575   { echo "$as_me:$LINENO: result: no" >&5
7576 echo "${ECHO_T}no" >&6; }
7577 fi
7578
7579
7580   test -n "$OCAMLDEP" && break
7581 done
7582
7583 for ac_prog in ocamldoc
7584 do
7585   # Extract the first word of "$ac_prog", so it can be a program name with args.
7586 set dummy $ac_prog; ac_word=$2
7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7590   echo $ECHO_N "(cached) $ECHO_C" >&6
7591 else
7592   case $OCAMLDOC in
7593   [\\/]* | ?:[\\/]*)
7594   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7595   ;;
7596   *)
7597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH
7599 do
7600   IFS=$as_save_IFS
7601   test -z "$as_dir" && as_dir=.
7602   for ac_exec_ext in '' $ac_executable_extensions; do
7603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606     break 2
7607   fi
7608 done
7609 done
7610 IFS=$as_save_IFS
7611
7612   ;;
7613 esac
7614 fi
7615 OCAMLDOC=$ac_cv_path_OCAMLDOC
7616 if test -n "$OCAMLDOC"; then
7617   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7618 echo "${ECHO_T}$OCAMLDOC" >&6; }
7619 else
7620   { echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6; }
7622 fi
7623
7624
7625   test -n "$OCAMLDOC" && break
7626 done
7627
7628 for ac_prog in gas as
7629 do
7630   # Extract the first word of "$ac_prog", so it can be a program name with args.
7631 set dummy $ac_prog; ac_word=$2
7632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7634 if test "${ac_cv_path_GAS+set}" = set; then
7635   echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637   case $GAS in
7638   [\\/]* | ?:[\\/]*)
7639   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7640   ;;
7641   *)
7642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 for as_dir in $PATH
7644 do
7645   IFS=$as_save_IFS
7646   test -z "$as_dir" && as_dir=.
7647   for ac_exec_ext in '' $ac_executable_extensions; do
7648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7649     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7651     break 2
7652   fi
7653 done
7654 done
7655 IFS=$as_save_IFS
7656
7657   ;;
7658 esac
7659 fi
7660 GAS=$ac_cv_path_GAS
7661 if test -n "$GAS"; then
7662   { echo "$as_me:$LINENO: result: $GAS" >&5
7663 echo "${ECHO_T}$GAS" >&6; }
7664 else
7665   { echo "$as_me:$LINENO: result: no" >&5
7666 echo "${ECHO_T}no" >&6; }
7667 fi
7668
7669
7670   test -n "$GAS" && break
7671 done
7672
7673
7674 { echo "$as_me:$LINENO: checking for linker version" >&5
7675 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7676 if test "${llvm_cv_link_version+set}" = set; then
7677   echo $ECHO_N "(cached) $ECHO_C" >&6
7678 else
7679
7680    version_string="$(ld -v 2>&1 | head -1)"
7681
7682    # Check for ld64.
7683    if (echo "$version_string" | grep -q "ld64"); then
7684      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7685    else
7686      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7687    fi
7688
7689 fi
7690 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7691 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7692
7693 cat >>confdefs.h <<_ACEOF
7694 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7695 _ACEOF
7696
7697
7698
7699 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7700 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7701 if test "${llvm_cv_link_use_r+set}" = set; then
7702   echo $ECHO_N "(cached) $ECHO_C" >&6
7703 else
7704    ac_ext=c
7705 ac_cpp='$CPP $CPPFLAGS'
7706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7709
7710   oldcflags="$CFLAGS"
7711   CFLAGS="$CFLAGS -Wl,-R."
7712   cat >conftest.$ac_ext <<_ACEOF
7713 /* confdefs.h.  */
7714 _ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h.  */
7718
7719 int
7720 main ()
7721 {
7722
7723   ;
7724   return 0;
7725 }
7726 _ACEOF
7727 rm -f conftest.$ac_objext conftest$ac_exeext
7728 if { (ac_try="$ac_link"
7729 case "(($ac_try" in
7730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731   *) ac_try_echo=$ac_try;;
7732 esac
7733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7734   (eval "$ac_link") 2>conftest.er1
7735   ac_status=$?
7736   grep -v '^ *+' conftest.er1 >conftest.err
7737   rm -f conftest.er1
7738   cat conftest.err >&5
7739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740   (exit $ac_status); } &&
7741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7742   { (case "(($ac_try" in
7743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7744   *) ac_try_echo=$ac_try;;
7745 esac
7746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7747   (eval "$ac_try") 2>&5
7748   ac_status=$?
7749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750   (exit $ac_status); }; } &&
7751          { ac_try='test -s conftest$ac_exeext'
7752   { (case "(($ac_try" in
7753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7754   *) ac_try_echo=$ac_try;;
7755 esac
7756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7757   (eval "$ac_try") 2>&5
7758   ac_status=$?
7759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760   (exit $ac_status); }; }; then
7761   llvm_cv_link_use_r=yes
7762 else
7763   echo "$as_me: failed program was:" >&5
7764 sed 's/^/| /' conftest.$ac_ext >&5
7765
7766         llvm_cv_link_use_r=no
7767 fi
7768
7769 rm -f core conftest.err conftest.$ac_objext \
7770       conftest$ac_exeext conftest.$ac_ext
7771   CFLAGS="$oldcflags"
7772   ac_ext=c
7773 ac_cpp='$CPP $CPPFLAGS'
7774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7777
7778
7779 fi
7780 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7781 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7782 if test "$llvm_cv_link_use_r" = yes ; then
7783
7784 cat >>confdefs.h <<\_ACEOF
7785 #define HAVE_LINK_R 1
7786 _ACEOF
7787
7788   fi
7789
7790
7791 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7792 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7793 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7794   echo $ECHO_N "(cached) $ECHO_C" >&6
7795 else
7796    ac_ext=c
7797 ac_cpp='$CPP $CPPFLAGS'
7798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7801
7802   oldcflags="$CFLAGS"
7803   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7804   cat >conftest.$ac_ext <<_ACEOF
7805 /* confdefs.h.  */
7806 _ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h.  */
7810
7811 int
7812 main ()
7813 {
7814
7815   ;
7816   return 0;
7817 }
7818 _ACEOF
7819 rm -f conftest.$ac_objext conftest$ac_exeext
7820 if { (ac_try="$ac_link"
7821 case "(($ac_try" in
7822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7823   *) ac_try_echo=$ac_try;;
7824 esac
7825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7826   (eval "$ac_link") 2>conftest.er1
7827   ac_status=$?
7828   grep -v '^ *+' conftest.er1 >conftest.err
7829   rm -f conftest.er1
7830   cat conftest.err >&5
7831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832   (exit $ac_status); } &&
7833          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7834   { (case "(($ac_try" in
7835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836   *) ac_try_echo=$ac_try;;
7837 esac
7838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7839   (eval "$ac_try") 2>&5
7840   ac_status=$?
7841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842   (exit $ac_status); }; } &&
7843          { ac_try='test -s conftest$ac_exeext'
7844   { (case "(($ac_try" in
7845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846   *) ac_try_echo=$ac_try;;
7847 esac
7848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7849   (eval "$ac_try") 2>&5
7850   ac_status=$?
7851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852   (exit $ac_status); }; }; then
7853   llvm_cv_link_use_export_dynamic=yes
7854 else
7855   echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.$ac_ext >&5
7857
7858         llvm_cv_link_use_export_dynamic=no
7859 fi
7860
7861 rm -f core conftest.err conftest.$ac_objext \
7862       conftest$ac_exeext conftest.$ac_ext
7863   CFLAGS="$oldcflags"
7864   ac_ext=c
7865 ac_cpp='$CPP $CPPFLAGS'
7866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7869
7870
7871 fi
7872 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7873 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7874 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7875
7876 cat >>confdefs.h <<\_ACEOF
7877 #define HAVE_LINK_EXPORT_DYNAMIC 1
7878 _ACEOF
7879
7880   fi
7881
7882
7883 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7884 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7885 if test "${llvm_cv_link_use_version_script+set}" = set; then
7886   echo $ECHO_N "(cached) $ECHO_C" >&6
7887 else
7888    ac_ext=c
7889 ac_cpp='$CPP $CPPFLAGS'
7890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7893
7894   oldcflags="$CFLAGS"
7895
7896   # The following code is from the autoconf manual,
7897   # "11.13: Limitations of Usual Tools".
7898   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7899   # Use mktemp if possible; otherwise fall back on mkdir,
7900   # with $RANDOM to make collisions less likely.
7901   : ${TMPDIR=/tmp}
7902   {
7903     tmp=`
7904       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7905     ` &&
7906     test -n "$tmp" && test -d "$tmp"
7907   } || {
7908     tmp=$TMPDIR/foo$$-$RANDOM
7909     (umask 077 && mkdir "$tmp")
7910   } || exit $?
7911
7912   echo "{" > "$tmp/export.map"
7913   echo "  global: main;" >> "$tmp/export.map"
7914   echo "  local: *;" >> "$tmp/export.map"
7915   echo "};" >> "$tmp/export.map"
7916
7917   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7918   cat >conftest.$ac_ext <<_ACEOF
7919 /* confdefs.h.  */
7920 _ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h.  */
7924
7925 int
7926 main ()
7927 {
7928
7929   ;
7930   return 0;
7931 }
7932 _ACEOF
7933 rm -f conftest.$ac_objext conftest$ac_exeext
7934 if { (ac_try="$ac_link"
7935 case "(($ac_try" in
7936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937   *) ac_try_echo=$ac_try;;
7938 esac
7939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940   (eval "$ac_link") 2>conftest.er1
7941   ac_status=$?
7942   grep -v '^ *+' conftest.er1 >conftest.err
7943   rm -f conftest.er1
7944   cat conftest.err >&5
7945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946   (exit $ac_status); } &&
7947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7948   { (case "(($ac_try" in
7949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950   *) ac_try_echo=$ac_try;;
7951 esac
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953   (eval "$ac_try") 2>&5
7954   ac_status=$?
7955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956   (exit $ac_status); }; } &&
7957          { ac_try='test -s conftest$ac_exeext'
7958   { (case "(($ac_try" in
7959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7960   *) ac_try_echo=$ac_try;;
7961 esac
7962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7963   (eval "$ac_try") 2>&5
7964   ac_status=$?
7965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966   (exit $ac_status); }; }; then
7967   llvm_cv_link_use_version_script=yes
7968 else
7969   echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7971
7972         llvm_cv_link_use_version_script=no
7973 fi
7974
7975 rm -f core conftest.err conftest.$ac_objext \
7976       conftest$ac_exeext conftest.$ac_ext
7977   rm "$tmp/export.map"
7978   rmdir "$tmp"
7979   CFLAGS="$oldcflags"
7980   ac_ext=c
7981 ac_cpp='$CPP $CPPFLAGS'
7982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7985
7986
7987 fi
7988 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7989 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7990 if test "$llvm_cv_link_use_version_script" = yes ; then
7991   HAVE_LINK_VERSION_SCRIPT=1
7992
7993   fi
7994
7995
7996
7997
7998 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7999 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8000 if test "${ac_cv_c_const+set}" = set; then
8001   echo $ECHO_N "(cached) $ECHO_C" >&6
8002 else
8003   cat >conftest.$ac_ext <<_ACEOF
8004 /* confdefs.h.  */
8005 _ACEOF
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h.  */
8009
8010 int
8011 main ()
8012 {
8013 /* FIXME: Include the comments suggested by Paul. */
8014 #ifndef __cplusplus
8015   /* Ultrix mips cc rejects this.  */
8016   typedef int charset[2];
8017   const charset x;
8018   /* SunOS 4.1.1 cc rejects this.  */
8019   char const *const *ccp;
8020   char **p;
8021   /* NEC SVR4.0.2 mips cc rejects this.  */
8022   struct point {int x, y;};
8023   static struct point const zero = {0,0};
8024   /* AIX XL C 1.02.0.0 rejects this.
8025      It does not let you subtract one const X* pointer from another in
8026      an arm of an if-expression whose if-part is not a constant
8027      expression */
8028   const char *g = "string";
8029   ccp = &g + (g ? g-g : 0);
8030   /* HPUX 7.0 cc rejects these. */
8031   ++ccp;
8032   p = (char**) ccp;
8033   ccp = (char const *const *) p;
8034   { /* SCO 3.2v4 cc rejects this.  */
8035     char *t;
8036     char const *s = 0 ? (char *) 0 : (char const *) 0;
8037
8038     *t++ = 0;
8039     if (s) return 0;
8040   }
8041   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8042     int x[] = {25, 17};
8043     const int *foo = &x[0];
8044     ++foo;
8045   }
8046   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8047     typedef const int *iptr;
8048     iptr p = 0;
8049     ++p;
8050   }
8051   { /* AIX XL C 1.02.0.0 rejects this saying
8052        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8053     struct s { int j; const int *ap[3]; };
8054     struct s *b; b->j = 5;
8055   }
8056   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8057     const int foo = 10;
8058     if (!foo) return 0;
8059   }
8060   return !x[0] && !zero.x;
8061 #endif
8062
8063   ;
8064   return 0;
8065 }
8066 _ACEOF
8067 rm -f conftest.$ac_objext
8068 if { (ac_try="$ac_compile"
8069 case "(($ac_try" in
8070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071   *) ac_try_echo=$ac_try;;
8072 esac
8073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074   (eval "$ac_compile") 2>conftest.er1
8075   ac_status=$?
8076   grep -v '^ *+' conftest.er1 >conftest.err
8077   rm -f conftest.er1
8078   cat conftest.err >&5
8079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080   (exit $ac_status); } &&
8081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8082   { (case "(($ac_try" in
8083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8084   *) ac_try_echo=$ac_try;;
8085 esac
8086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8087   (eval "$ac_try") 2>&5
8088   ac_status=$?
8089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090   (exit $ac_status); }; } &&
8091          { ac_try='test -s conftest.$ac_objext'
8092   { (case "(($ac_try" in
8093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094   *) ac_try_echo=$ac_try;;
8095 esac
8096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097   (eval "$ac_try") 2>&5
8098   ac_status=$?
8099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100   (exit $ac_status); }; }; then
8101   ac_cv_c_const=yes
8102 else
8103   echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8105
8106         ac_cv_c_const=no
8107 fi
8108
8109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8110 fi
8111 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8112 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8113 if test $ac_cv_c_const = no; then
8114
8115 cat >>confdefs.h <<\_ACEOF
8116 #define const
8117 _ACEOF
8118
8119 fi
8120
8121
8122
8123
8124
8125
8126 ac_header_dirent=no
8127 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8128   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8129 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8130 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8132   echo $ECHO_N "(cached) $ECHO_C" >&6
8133 else
8134   cat >conftest.$ac_ext <<_ACEOF
8135 /* confdefs.h.  */
8136 _ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h.  */
8140 #include <sys/types.h>
8141 #include <$ac_hdr>
8142
8143 int
8144 main ()
8145 {
8146 if ((DIR *) 0)
8147 return 0;
8148   ;
8149   return 0;
8150 }
8151 _ACEOF
8152 rm -f conftest.$ac_objext
8153 if { (ac_try="$ac_compile"
8154 case "(($ac_try" in
8155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156   *) ac_try_echo=$ac_try;;
8157 esac
8158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159   (eval "$ac_compile") 2>conftest.er1
8160   ac_status=$?
8161   grep -v '^ *+' conftest.er1 >conftest.err
8162   rm -f conftest.er1
8163   cat conftest.err >&5
8164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165   (exit $ac_status); } &&
8166          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8167   { (case "(($ac_try" in
8168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169   *) ac_try_echo=$ac_try;;
8170 esac
8171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172   (eval "$ac_try") 2>&5
8173   ac_status=$?
8174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175   (exit $ac_status); }; } &&
8176          { ac_try='test -s conftest.$ac_objext'
8177   { (case "(($ac_try" in
8178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179   *) ac_try_echo=$ac_try;;
8180 esac
8181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182   (eval "$ac_try") 2>&5
8183   ac_status=$?
8184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185   (exit $ac_status); }; }; then
8186   eval "$as_ac_Header=yes"
8187 else
8188   echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8190
8191         eval "$as_ac_Header=no"
8192 fi
8193
8194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8195 fi
8196 ac_res=`eval echo '${'$as_ac_Header'}'`
8197                { echo "$as_me:$LINENO: result: $ac_res" >&5
8198 echo "${ECHO_T}$ac_res" >&6; }
8199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8200   cat >>confdefs.h <<_ACEOF
8201 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8202 _ACEOF
8203
8204 ac_header_dirent=$ac_hdr; break
8205 fi
8206
8207 done
8208 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8209 if test $ac_header_dirent = dirent.h; then
8210   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8211 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8212 if test "${ac_cv_search_opendir+set}" = set; then
8213   echo $ECHO_N "(cached) $ECHO_C" >&6
8214 else
8215   ac_func_search_save_LIBS=$LIBS
8216 cat >conftest.$ac_ext <<_ACEOF
8217 /* confdefs.h.  */
8218 _ACEOF
8219 cat confdefs.h >>conftest.$ac_ext
8220 cat >>conftest.$ac_ext <<_ACEOF
8221 /* end confdefs.h.  */
8222
8223 /* Override any GCC internal prototype to avoid an error.
8224    Use char because int might match the return type of a GCC
8225    builtin and then its argument prototype would still apply.  */
8226 #ifdef __cplusplus
8227 extern "C"
8228 #endif
8229 char opendir ();
8230 int
8231 main ()
8232 {
8233 return opendir ();
8234   ;
8235   return 0;
8236 }
8237 _ACEOF
8238 for ac_lib in '' dir; do
8239   if test -z "$ac_lib"; then
8240     ac_res="none required"
8241   else
8242     ac_res=-l$ac_lib
8243     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8244   fi
8245   rm -f conftest.$ac_objext conftest$ac_exeext
8246 if { (ac_try="$ac_link"
8247 case "(($ac_try" in
8248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249   *) ac_try_echo=$ac_try;;
8250 esac
8251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252   (eval "$ac_link") 2>conftest.er1
8253   ac_status=$?
8254   grep -v '^ *+' conftest.er1 >conftest.err
8255   rm -f conftest.er1
8256   cat conftest.err >&5
8257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258   (exit $ac_status); } &&
8259          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8260   { (case "(($ac_try" in
8261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8262   *) ac_try_echo=$ac_try;;
8263 esac
8264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8265   (eval "$ac_try") 2>&5
8266   ac_status=$?
8267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268   (exit $ac_status); }; } &&
8269          { ac_try='test -s conftest$ac_exeext'
8270   { (case "(($ac_try" in
8271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272   *) ac_try_echo=$ac_try;;
8273 esac
8274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275   (eval "$ac_try") 2>&5
8276   ac_status=$?
8277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278   (exit $ac_status); }; }; then
8279   ac_cv_search_opendir=$ac_res
8280 else
8281   echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8283
8284
8285 fi
8286
8287 rm -f core conftest.err conftest.$ac_objext \
8288       conftest$ac_exeext
8289   if test "${ac_cv_search_opendir+set}" = set; then
8290   break
8291 fi
8292 done
8293 if test "${ac_cv_search_opendir+set}" = set; then
8294   :
8295 else
8296   ac_cv_search_opendir=no
8297 fi
8298 rm conftest.$ac_ext
8299 LIBS=$ac_func_search_save_LIBS
8300 fi
8301 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8302 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8303 ac_res=$ac_cv_search_opendir
8304 if test "$ac_res" != no; then
8305   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8306
8307 fi
8308
8309 else
8310   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8311 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8312 if test "${ac_cv_search_opendir+set}" = set; then
8313   echo $ECHO_N "(cached) $ECHO_C" >&6
8314 else
8315   ac_func_search_save_LIBS=$LIBS
8316 cat >conftest.$ac_ext <<_ACEOF
8317 /* confdefs.h.  */
8318 _ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h.  */
8322
8323 /* Override any GCC internal prototype to avoid an error.
8324    Use char because int might match the return type of a GCC
8325    builtin and then its argument prototype would still apply.  */
8326 #ifdef __cplusplus
8327 extern "C"
8328 #endif
8329 char opendir ();
8330 int
8331 main ()
8332 {
8333 return opendir ();
8334   ;
8335   return 0;
8336 }
8337 _ACEOF
8338 for ac_lib in '' x; do
8339   if test -z "$ac_lib"; then
8340     ac_res="none required"
8341   else
8342     ac_res=-l$ac_lib
8343     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8344   fi
8345   rm -f conftest.$ac_objext conftest$ac_exeext
8346 if { (ac_try="$ac_link"
8347 case "(($ac_try" in
8348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8349   *) ac_try_echo=$ac_try;;
8350 esac
8351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8352   (eval "$ac_link") 2>conftest.er1
8353   ac_status=$?
8354   grep -v '^ *+' conftest.er1 >conftest.err
8355   rm -f conftest.er1
8356   cat conftest.err >&5
8357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358   (exit $ac_status); } &&
8359          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8360   { (case "(($ac_try" in
8361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362   *) ac_try_echo=$ac_try;;
8363 esac
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365   (eval "$ac_try") 2>&5
8366   ac_status=$?
8367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368   (exit $ac_status); }; } &&
8369          { ac_try='test -s conftest$ac_exeext'
8370   { (case "(($ac_try" in
8371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372   *) ac_try_echo=$ac_try;;
8373 esac
8374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375   (eval "$ac_try") 2>&5
8376   ac_status=$?
8377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378   (exit $ac_status); }; }; then
8379   ac_cv_search_opendir=$ac_res
8380 else
8381   echo "$as_me: failed program was:" >&5
8382 sed 's/^/| /' conftest.$ac_ext >&5
8383
8384
8385 fi
8386
8387 rm -f core conftest.err conftest.$ac_objext \
8388       conftest$ac_exeext
8389   if test "${ac_cv_search_opendir+set}" = set; then
8390   break
8391 fi
8392 done
8393 if test "${ac_cv_search_opendir+set}" = set; then
8394   :
8395 else
8396   ac_cv_search_opendir=no
8397 fi
8398 rm conftest.$ac_ext
8399 LIBS=$ac_func_search_save_LIBS
8400 fi
8401 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8402 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8403 ac_res=$ac_cv_search_opendir
8404 if test "$ac_res" != no; then
8405   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8406
8407 fi
8408
8409 fi
8410
8411
8412 for ac_header in dlfcn.h
8413 do
8414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8416   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8419   echo $ECHO_N "(cached) $ECHO_C" >&6
8420 fi
8421 ac_res=`eval echo '${'$as_ac_Header'}'`
8422                { echo "$as_me:$LINENO: result: $ac_res" >&5
8423 echo "${ECHO_T}$ac_res" >&6; }
8424 else
8425   # Is the header compilable?
8426 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8428 cat >conftest.$ac_ext <<_ACEOF
8429 /* confdefs.h.  */
8430 _ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h.  */
8434 $ac_includes_default
8435 #include <$ac_header>
8436 _ACEOF
8437 rm -f conftest.$ac_objext
8438 if { (ac_try="$ac_compile"
8439 case "(($ac_try" in
8440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441   *) ac_try_echo=$ac_try;;
8442 esac
8443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444   (eval "$ac_compile") 2>conftest.er1
8445   ac_status=$?
8446   grep -v '^ *+' conftest.er1 >conftest.err
8447   rm -f conftest.er1
8448   cat conftest.err >&5
8449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450   (exit $ac_status); } &&
8451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8452   { (case "(($ac_try" in
8453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454   *) ac_try_echo=$ac_try;;
8455 esac
8456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457   (eval "$ac_try") 2>&5
8458   ac_status=$?
8459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460   (exit $ac_status); }; } &&
8461          { ac_try='test -s conftest.$ac_objext'
8462   { (case "(($ac_try" in
8463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464   *) ac_try_echo=$ac_try;;
8465 esac
8466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467   (eval "$ac_try") 2>&5
8468   ac_status=$?
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); }; }; then
8471   ac_header_compiler=yes
8472 else
8473   echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8475
8476         ac_header_compiler=no
8477 fi
8478
8479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8481 echo "${ECHO_T}$ac_header_compiler" >&6; }
8482
8483 # Is the header present?
8484 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8486 cat >conftest.$ac_ext <<_ACEOF
8487 /* confdefs.h.  */
8488 _ACEOF
8489 cat confdefs.h >>conftest.$ac_ext
8490 cat >>conftest.$ac_ext <<_ACEOF
8491 /* end confdefs.h.  */
8492 #include <$ac_header>
8493 _ACEOF
8494 if { (ac_try="$ac_cpp conftest.$ac_ext"
8495 case "(($ac_try" in
8496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497   *) ac_try_echo=$ac_try;;
8498 esac
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8501   ac_status=$?
8502   grep -v '^ *+' conftest.er1 >conftest.err
8503   rm -f conftest.er1
8504   cat conftest.err >&5
8505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506   (exit $ac_status); } >/dev/null; then
8507   if test -s conftest.err; then
8508     ac_cpp_err=$ac_c_preproc_warn_flag
8509     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8510   else
8511     ac_cpp_err=
8512   fi
8513 else
8514   ac_cpp_err=yes
8515 fi
8516 if test -z "$ac_cpp_err"; then
8517   ac_header_preproc=yes
8518 else
8519   echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8521
8522   ac_header_preproc=no
8523 fi
8524
8525 rm -f conftest.err conftest.$ac_ext
8526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8527 echo "${ECHO_T}$ac_header_preproc" >&6; }
8528
8529 # So?  What about this header?
8530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8531   yes:no: )
8532     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8534     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8536     ac_header_preproc=yes
8537     ;;
8538   no:yes:* )
8539     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8541     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8542 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8543     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8545     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8546 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8547     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8549     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8551     ( cat <<\_ASBOX
8552 ## ------------------------------ ##
8553 ## Report this to bugs@yourdomain ##
8554 ## ------------------------------ ##
8555 _ASBOX
8556      ) | sed "s/^/$as_me: WARNING:     /" >&2
8557     ;;
8558 esac
8559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8562   echo $ECHO_N "(cached) $ECHO_C" >&6
8563 else
8564   eval "$as_ac_Header=\$ac_header_preproc"
8565 fi
8566 ac_res=`eval echo '${'$as_ac_Header'}'`
8567                { echo "$as_me:$LINENO: result: $ac_res" >&5
8568 echo "${ECHO_T}$ac_res" >&6; }
8569
8570 fi
8571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8572   cat >>confdefs.h <<_ACEOF
8573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8574 _ACEOF
8575
8576 fi
8577
8578 done
8579
8580 # Check whether --enable-ltdl-install was given.
8581 if test "${enable_ltdl_install+set}" = set; then
8582   enableval=$enable_ltdl_install;
8583 fi
8584
8585
8586
8587
8588 if test x"${enable_ltdl_install-no}" != xno; then
8589   INSTALL_LTDL_TRUE=
8590   INSTALL_LTDL_FALSE='#'
8591 else
8592   INSTALL_LTDL_TRUE='#'
8593   INSTALL_LTDL_FALSE=
8594 fi
8595
8596
8597
8598 if test x"${enable_ltdl_convenience-no}" != xno; then
8599   CONVENIENCE_LTDL_TRUE=
8600   CONVENIENCE_LTDL_FALSE='#'
8601 else
8602   CONVENIENCE_LTDL_TRUE='#'
8603   CONVENIENCE_LTDL_FALSE=
8604 fi
8605
8606
8607 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8608 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8609 library_names_spec=
8610 libname_spec='lib$name'
8611 soname_spec=
8612 shrext_cmds=".so"
8613 postinstall_cmds=
8614 postuninstall_cmds=
8615 finish_cmds=
8616 finish_eval=
8617 shlibpath_var=
8618 shlibpath_overrides_runpath=unknown
8619 version_type=none
8620 dynamic_linker="$host_os ld.so"
8621 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8622 if test "$GCC" = yes; then
8623   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8624   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8625     # if the path contains ";" then we assume it to be the separator
8626     # otherwise default to the standard path separator (i.e. ":") - it is
8627     # assumed that no part of a normal pathname contains ";" but that should
8628     # okay in the real world where ";" in dirpaths is itself problematic.
8629     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8630   else
8631     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8632   fi
8633 else
8634   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8635 fi
8636 need_lib_prefix=unknown
8637 hardcode_into_libs=no
8638
8639 # when you set need_version to no, make sure it does not cause -set_version
8640 # flags to be left without arguments
8641 need_version=unknown
8642
8643 case $host_os in
8644 aix3*)
8645   version_type=linux
8646   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8647   shlibpath_var=LIBPATH
8648
8649   # AIX 3 has no versioning support, so we append a major version to the name.
8650   soname_spec='${libname}${release}${shared_ext}$major'
8651   ;;
8652
8653 aix4* | aix5*)
8654   version_type=linux
8655   need_lib_prefix=no
8656   need_version=no
8657   hardcode_into_libs=yes
8658   if test "$host_cpu" = ia64; then
8659     # AIX 5 supports IA64
8660     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8661     shlibpath_var=LD_LIBRARY_PATH
8662   else
8663     # With GCC up to 2.95.x, collect2 would create an import file
8664     # for dependence libraries.  The import file would start with
8665     # the line `#! .'.  This would cause the generated library to
8666     # depend on `.', always an invalid library.  This was fixed in
8667     # development snapshots of GCC prior to 3.0.
8668     case $host_os in
8669       aix4 | aix4.[01] | aix4.[01].*)
8670       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8671            echo ' yes '
8672            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8673         :
8674       else
8675         can_build_shared=no
8676       fi
8677       ;;
8678     esac
8679     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8680     # soname into executable. Probably we can add versioning support to
8681     # collect2, so additional links can be useful in future.
8682     if test "$aix_use_runtimelinking" = yes; then
8683       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8684       # instead of lib<name>.a to let people know that these are not
8685       # typical AIX shared libraries.
8686       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8687     else
8688       # We preserve .a as extension for shared libraries through AIX4.2
8689       # and later when we are not doing run time linking.
8690       library_names_spec='${libname}${release}.a $libname.a'
8691       soname_spec='${libname}${release}${shared_ext}$major'
8692     fi
8693     shlibpath_var=LIBPATH
8694   fi
8695   ;;
8696
8697 amigaos*)
8698   library_names_spec='$libname.ixlibrary $libname.a'
8699   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8700   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8701   ;;
8702
8703 beos*)
8704   library_names_spec='${libname}${shared_ext}'
8705   dynamic_linker="$host_os ld.so"
8706   shlibpath_var=LIBRARY_PATH
8707   ;;
8708
8709 bsdi[45]*)
8710   version_type=linux
8711   need_version=no
8712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8713   soname_spec='${libname}${release}${shared_ext}$major'
8714   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8715   shlibpath_var=LD_LIBRARY_PATH
8716   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8717   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8718   # the default ld.so.conf also contains /usr/contrib/lib and
8719   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8720   # libtool to hard-code these into programs
8721   ;;
8722
8723 cygwin* | mingw* | pw32*)
8724   version_type=windows
8725   shrext_cmds=".dll"
8726   need_version=no
8727   need_lib_prefix=no
8728
8729   case $GCC,$host_os in
8730   yes,cygwin* | yes,mingw* | yes,pw32*)
8731     library_names_spec='$libname.dll.a'
8732     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8733     postinstall_cmds='base_file=`basename \${file}`~
8734       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8735       dldir=$destdir/`dirname \$dlpath`~
8736       test -d \$dldir || mkdir -p \$dldir~
8737       $install_prog $dir/$dlname \$dldir/$dlname~
8738       chmod a+x \$dldir/$dlname'
8739     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8740       dlpath=$dir/\$dldll~
8741        $rm \$dlpath'
8742     shlibpath_overrides_runpath=yes
8743
8744     case $host_os in
8745     cygwin*)
8746       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8747       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8748       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8749       ;;
8750     mingw*)
8751       # MinGW DLLs use traditional 'lib' prefix
8752       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8753       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8754       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8755         # It is most probably a Windows format PATH printed by
8756         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8757         # path with ; separators, and with drive letters. We can handle the
8758         # drive letters (cygwin fileutils understands them), so leave them,
8759         # especially as we might pass files found there to a mingw objdump,
8760         # which wouldn't understand a cygwinified path. Ahh.
8761         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8762       else
8763         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8764       fi
8765       ;;
8766     pw32*)
8767       # pw32 DLLs use 'pw' prefix rather than 'lib'
8768       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8769       ;;
8770     esac
8771     ;;
8772
8773   *)
8774     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8775     ;;
8776   esac
8777   dynamic_linker='Win32 ld.exe'
8778   # FIXME: first we should search . and the directory the executable is in
8779   shlibpath_var=PATH
8780   ;;
8781
8782 darwin* | rhapsody*)
8783   dynamic_linker="$host_os dyld"
8784   version_type=darwin
8785   need_lib_prefix=no
8786   need_version=no
8787   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8788   soname_spec='${libname}${release}${major}$shared_ext'
8789   shlibpath_overrides_runpath=yes
8790   shlibpath_var=DYLD_LIBRARY_PATH
8791   shrext_cmds='.dylib'
8792   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8793   if test "$GCC" = yes; then
8794     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8795   else
8796     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8797   fi
8798   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8799   ;;
8800
8801 dgux*)
8802   version_type=linux
8803   need_lib_prefix=no
8804   need_version=no
8805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8806   soname_spec='${libname}${release}${shared_ext}$major'
8807   shlibpath_var=LD_LIBRARY_PATH
8808   ;;
8809
8810 freebsd1.*)
8811   dynamic_linker=no
8812   ;;
8813
8814 kfreebsd*-gnu)
8815   version_type=linux
8816   need_lib_prefix=no
8817   need_version=no
8818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8819   soname_spec='${libname}${release}${shared_ext}$major'
8820   shlibpath_var=LD_LIBRARY_PATH
8821   shlibpath_overrides_runpath=no
8822   hardcode_into_libs=yes
8823   dynamic_linker='GNU ld.so'
8824   ;;
8825
8826 freebsd* | dragonfly*)
8827   # DragonFly does not have aout.  When/if they implement a new
8828   # versioning mechanism, adjust this.
8829   if test -x /usr/bin/objformat; then
8830     objformat=`/usr/bin/objformat`
8831   else
8832     case $host_os in
8833     freebsd[123].*) objformat=aout ;;
8834     *) objformat=elf ;;
8835     esac
8836   fi
8837   version_type=freebsd-$objformat
8838   case $version_type in
8839     freebsd-elf*)
8840       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8841       need_version=no
8842       need_lib_prefix=no
8843       ;;
8844     freebsd-*)
8845       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8846       need_version=yes
8847       ;;
8848   esac
8849   shlibpath_var=LD_LIBRARY_PATH
8850   case $host_os in
8851   freebsd2.*)
8852     shlibpath_overrides_runpath=yes
8853     ;;
8854   freebsd3.[01]* | freebsdelf3.[01]*)
8855     shlibpath_overrides_runpath=yes
8856     hardcode_into_libs=yes
8857     ;;
8858   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8859   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8860     shlibpath_overrides_runpath=no
8861     hardcode_into_libs=yes
8862     ;;
8863   freebsd*) # from 4.6 on
8864     shlibpath_overrides_runpath=yes
8865     hardcode_into_libs=yes
8866     ;;
8867   esac
8868   ;;
8869
8870 gnu*)
8871   version_type=linux
8872   need_lib_prefix=no
8873   need_version=no
8874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8875   soname_spec='${libname}${release}${shared_ext}$major'
8876   shlibpath_var=LD_LIBRARY_PATH
8877   hardcode_into_libs=yes
8878   ;;
8879
8880 hpux9* | hpux10* | hpux11*)
8881   # Give a soname corresponding to the major version so that dld.sl refuses to
8882   # link against other versions.
8883   version_type=sunos
8884   need_lib_prefix=no
8885   need_version=no
8886   case $host_cpu in
8887   ia64*)
8888     shrext_cmds='.so'
8889     hardcode_into_libs=yes
8890     dynamic_linker="$host_os dld.so"
8891     shlibpath_var=LD_LIBRARY_PATH
8892     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8893     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8894     soname_spec='${libname}${release}${shared_ext}$major'
8895     if test "X$HPUX_IA64_MODE" = X32; then
8896       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8897     else
8898       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8899     fi
8900     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8901     ;;
8902    hppa*64*)
8903      shrext_cmds='.sl'
8904      hardcode_into_libs=yes
8905      dynamic_linker="$host_os dld.sl"
8906      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8907      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8908      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8909      soname_spec='${libname}${release}${shared_ext}$major'
8910      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8911      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8912      ;;
8913    *)
8914     shrext_cmds='.sl'
8915     dynamic_linker="$host_os dld.sl"
8916     shlibpath_var=SHLIB_PATH
8917     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8918     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8919     soname_spec='${libname}${release}${shared_ext}$major'
8920     ;;
8921   esac
8922   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8923   postinstall_cmds='chmod 555 $lib'
8924   ;;
8925
8926 interix3*)
8927   version_type=linux
8928   need_lib_prefix=no
8929   need_version=no
8930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8931   soname_spec='${libname}${release}${shared_ext}$major'
8932   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8933   shlibpath_var=LD_LIBRARY_PATH
8934   shlibpath_overrides_runpath=no
8935   hardcode_into_libs=yes
8936   ;;
8937
8938 irix5* | irix6* | nonstopux*)
8939   case $host_os in
8940     nonstopux*) version_type=nonstopux ;;
8941     *)
8942         if test "$lt_cv_prog_gnu_ld" = yes; then
8943                 version_type=linux
8944         else
8945                 version_type=irix
8946         fi ;;
8947   esac
8948   need_lib_prefix=no
8949   need_version=no
8950   soname_spec='${libname}${release}${shared_ext}$major'
8951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8952   case $host_os in
8953   irix5* | nonstopux*)
8954     libsuff= shlibsuff=
8955     ;;
8956   *)
8957     case $LD in # libtool.m4 will add one of these switches to LD
8958     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8959       libsuff= shlibsuff= libmagic=32-bit;;
8960     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8961       libsuff=32 shlibsuff=N32 libmagic=N32;;
8962     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8963       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8964     *) libsuff= shlibsuff= libmagic=never-match;;
8965     esac
8966     ;;
8967   esac
8968   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8969   shlibpath_overrides_runpath=no
8970   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8971   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8972   hardcode_into_libs=yes
8973   ;;
8974
8975 # No shared lib support for Linux oldld, aout, or coff.
8976 linux*oldld* | linux*aout* | linux*coff*)
8977   dynamic_linker=no
8978   ;;
8979
8980 # This must be Linux ELF.
8981 linux*)
8982   version_type=linux
8983   need_lib_prefix=no
8984   need_version=no
8985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8986   soname_spec='${libname}${release}${shared_ext}$major'
8987   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8988   shlibpath_var=LD_LIBRARY_PATH
8989   shlibpath_overrides_runpath=no
8990   # This implies no fast_install, which is unacceptable.
8991   # Some rework will be needed to allow for fast_install
8992   # before this can be enabled.
8993   hardcode_into_libs=yes
8994
8995   # Append ld.so.conf contents to the search path
8996   if test -f /etc/ld.so.conf; then
8997     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8998     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8999   fi
9000
9001   # We used to test for /lib/ld.so.1 and disable shared libraries on
9002   # powerpc, because MkLinux only supported shared libraries with the
9003   # GNU dynamic linker.  Since this was broken with cross compilers,
9004   # most powerpc-linux boxes support dynamic linking these days and
9005   # people can always --disable-shared, the test was removed, and we
9006   # assume the GNU/Linux dynamic linker is in use.
9007   dynamic_linker='GNU/Linux ld.so'
9008   ;;
9009
9010 knetbsd*-gnu)
9011   version_type=linux
9012   need_lib_prefix=no
9013   need_version=no
9014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9015   soname_spec='${libname}${release}${shared_ext}$major'
9016   shlibpath_var=LD_LIBRARY_PATH
9017   shlibpath_overrides_runpath=no
9018   hardcode_into_libs=yes
9019   dynamic_linker='GNU ld.so'
9020   ;;
9021
9022 netbsd*)
9023   version_type=sunos
9024   need_lib_prefix=no
9025   need_version=no
9026   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9027     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9028     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9029     dynamic_linker='NetBSD (a.out) ld.so'
9030   else
9031     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9032     soname_spec='${libname}${release}${shared_ext}$major'
9033     dynamic_linker='NetBSD ld.elf_so'
9034   fi
9035   shlibpath_var=LD_LIBRARY_PATH
9036   shlibpath_overrides_runpath=yes
9037   hardcode_into_libs=yes
9038   ;;
9039
9040 newsos6)
9041   version_type=linux
9042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9043   shlibpath_var=LD_LIBRARY_PATH
9044   shlibpath_overrides_runpath=yes
9045   ;;
9046
9047 nto-qnx*)
9048   version_type=linux
9049   need_lib_prefix=no
9050   need_version=no
9051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9052   soname_spec='${libname}${release}${shared_ext}$major'
9053   shlibpath_var=LD_LIBRARY_PATH
9054   shlibpath_overrides_runpath=yes
9055   ;;
9056
9057 openbsd*)
9058   version_type=sunos
9059   sys_lib_dlsearch_path_spec="/usr/lib"
9060   need_lib_prefix=no
9061   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9062   case $host_os in
9063     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9064     *)                         need_version=no  ;;
9065   esac
9066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9067   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9068   shlibpath_var=LD_LIBRARY_PATH
9069   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9070     case $host_os in
9071       openbsd2.[89] | openbsd2.[89].*)
9072         shlibpath_overrides_runpath=no
9073         ;;
9074       *)
9075         shlibpath_overrides_runpath=yes
9076         ;;
9077       esac
9078   else
9079     shlibpath_overrides_runpath=yes
9080   fi
9081   ;;
9082
9083 os2*)
9084   libname_spec='$name'
9085   shrext_cmds=".dll"
9086   need_lib_prefix=no
9087   library_names_spec='$libname${shared_ext} $libname.a'
9088   dynamic_linker='OS/2 ld.exe'
9089   shlibpath_var=LIBPATH
9090   ;;
9091
9092 osf3* | osf4* | osf5*)
9093   version_type=osf
9094   need_lib_prefix=no
9095   need_version=no
9096   soname_spec='${libname}${release}${shared_ext}$major'
9097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9098   shlibpath_var=LD_LIBRARY_PATH
9099   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9100   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9101   ;;
9102
9103 solaris*)
9104   version_type=linux
9105   need_lib_prefix=no
9106   need_version=no
9107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9108   soname_spec='${libname}${release}${shared_ext}$major'
9109   shlibpath_var=LD_LIBRARY_PATH
9110   shlibpath_overrides_runpath=yes
9111   hardcode_into_libs=yes
9112   # ldd complains unless libraries are executable
9113   postinstall_cmds='chmod +x $lib'
9114   ;;
9115
9116 sunos4*)
9117   version_type=sunos
9118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9119   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9120   shlibpath_var=LD_LIBRARY_PATH
9121   shlibpath_overrides_runpath=yes
9122   if test "$with_gnu_ld" = yes; then
9123     need_lib_prefix=no
9124   fi
9125   need_version=yes
9126   ;;
9127
9128 sysv4 | sysv4.3*)
9129   version_type=linux
9130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9131   soname_spec='${libname}${release}${shared_ext}$major'
9132   shlibpath_var=LD_LIBRARY_PATH
9133   case $host_vendor in
9134     sni)
9135       shlibpath_overrides_runpath=no
9136       need_lib_prefix=no
9137       export_dynamic_flag_spec='${wl}-Blargedynsym'
9138       runpath_var=LD_RUN_PATH
9139       ;;
9140     siemens)
9141       need_lib_prefix=no
9142       ;;
9143     motorola)
9144       need_lib_prefix=no
9145       need_version=no
9146       shlibpath_overrides_runpath=no
9147       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9148       ;;
9149   esac
9150   ;;
9151
9152 sysv4*MP*)
9153   if test -d /usr/nec ;then
9154     version_type=linux
9155     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9156     soname_spec='$libname${shared_ext}.$major'
9157     shlibpath_var=LD_LIBRARY_PATH
9158   fi
9159   ;;
9160
9161 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9162   version_type=freebsd-elf
9163   need_lib_prefix=no
9164   need_version=no
9165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9166   soname_spec='${libname}${release}${shared_ext}$major'
9167   shlibpath_var=LD_LIBRARY_PATH
9168   hardcode_into_libs=yes
9169   if test "$with_gnu_ld" = yes; then
9170     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9171     shlibpath_overrides_runpath=no
9172   else
9173     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9174     shlibpath_overrides_runpath=yes
9175     case $host_os in
9176       sco3.2v5*)
9177         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9178         ;;
9179     esac
9180   fi
9181   sys_lib_dlsearch_path_spec='/usr/lib'
9182   ;;
9183
9184 uts4*)
9185   version_type=linux
9186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187   soname_spec='${libname}${release}${shared_ext}$major'
9188   shlibpath_var=LD_LIBRARY_PATH
9189   ;;
9190
9191 *)
9192   dynamic_linker=no
9193   ;;
9194 esac
9195 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9196 echo "${ECHO_T}$dynamic_linker" >&6; }
9197 test "$dynamic_linker" = no && can_build_shared=no
9198
9199 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9200 if test "$GCC" = yes; then
9201   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9202 fi
9203
9204
9205 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9206 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9207 if test "${libltdl_cv_shlibext+set}" = set; then
9208   echo $ECHO_N "(cached) $ECHO_C" >&6
9209 else
9210
9211 module=yes
9212 eval libltdl_cv_shlibext=$shrext_cmds
9213
9214 fi
9215 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9216 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9217 if test -n "$libltdl_cv_shlibext"; then
9218
9219 cat >>confdefs.h <<_ACEOF
9220 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9221 _ACEOF
9222
9223 fi
9224
9225
9226 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9227 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9228 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9229   echo $ECHO_N "(cached) $ECHO_C" >&6
9230 else
9231   libltdl_cv_shlibpath_var="$shlibpath_var"
9232 fi
9233 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9234 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9235 if test -n "$libltdl_cv_shlibpath_var"; then
9236
9237 cat >>confdefs.h <<_ACEOF
9238 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9239 _ACEOF
9240
9241 fi
9242
9243
9244 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9245 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9246 if test "${libltdl_cv_sys_search_path+set}" = set; then
9247   echo $ECHO_N "(cached) $ECHO_C" >&6
9248 else
9249   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9250 fi
9251 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9252 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9253 if test -n "$libltdl_cv_sys_search_path"; then
9254   sys_search_path=
9255   for dir in $libltdl_cv_sys_search_path; do
9256     if test -z "$sys_search_path"; then
9257       sys_search_path="$dir"
9258     else
9259       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9260     fi
9261   done
9262
9263 cat >>confdefs.h <<_ACEOF
9264 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9265 _ACEOF
9266
9267 fi
9268
9269 { echo "$as_me:$LINENO: checking for objdir" >&5
9270 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9271 if test "${libltdl_cv_objdir+set}" = set; then
9272   echo $ECHO_N "(cached) $ECHO_C" >&6
9273 else
9274   libltdl_cv_objdir="$objdir"
9275   if test -n "$objdir"; then
9276     :
9277   else
9278     rm -f .libs 2>/dev/null
9279     mkdir .libs 2>/dev/null
9280     if test -d .libs; then
9281       libltdl_cv_objdir=.libs
9282     else
9283       # MS-DOS does not allow filenames that begin with a dot.
9284       libltdl_cv_objdir=_libs
9285     fi
9286   rmdir .libs 2>/dev/null
9287   fi
9288
9289 fi
9290 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9291 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9292
9293 cat >>confdefs.h <<_ACEOF
9294 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9295 _ACEOF
9296
9297
9298
9299
9300
9301
9302 # Check for command to grab the raw symbol name followed by C symbol from nm.
9303 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9304 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9305 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9306   echo $ECHO_N "(cached) $ECHO_C" >&6
9307 else
9308
9309 # These are sane defaults that work on at least a few old systems.
9310 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9311
9312 # Character class describing NM global symbol codes.
9313 symcode='[BCDEGRST]'
9314
9315 # Regexp to match symbols that can be accessed directly from C.
9316 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9317
9318 # Transform an extracted symbol line into a proper C declaration
9319 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9320
9321 # Transform an extracted symbol line into symbol name and symbol address
9322 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'"
9323
9324 # Define system-specific variables.
9325 case $host_os in
9326 aix*)
9327   symcode='[BCDT]'
9328   ;;
9329 cygwin* | mingw* | pw32*)
9330   symcode='[ABCDGISTW]'
9331   ;;
9332 hpux*) # Its linker distinguishes data from code symbols
9333   if test "$host_cpu" = ia64; then
9334     symcode='[ABCDEGRST]'
9335   fi
9336   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9337   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'"
9338   ;;
9339 linux*)
9340   if test "$host_cpu" = ia64; then
9341     symcode='[ABCDGIRSTW]'
9342     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9343     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'"
9344   fi
9345   ;;
9346 irix* | nonstopux*)
9347   symcode='[BCDEGRST]'
9348   ;;
9349 osf*)
9350   symcode='[BCDEGQRST]'
9351   ;;
9352 solaris*)
9353   symcode='[BDRT]'
9354   ;;
9355 sco3.2v5*)
9356   symcode='[DT]'
9357   ;;
9358 sysv4.2uw2*)
9359   symcode='[DT]'
9360   ;;
9361 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9362   symcode='[ABDT]'
9363   ;;
9364 sysv4)
9365   symcode='[DFNSTU]'
9366   ;;
9367 esac
9368
9369 # Handle CRLF in mingw tool chain
9370 opt_cr=
9371 case $build_os in
9372 mingw*)
9373   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9374   ;;
9375 esac
9376
9377 # If we're using GNU nm, then use its standard symbol codes.
9378 case `$NM -V 2>&1` in
9379 *GNU* | *'with BFD'*)
9380   symcode='[ABCDGIRSTW]' ;;
9381 esac
9382
9383 # Try without a prefix undercore, then with it.
9384 for ac_symprfx in "" "_"; do
9385
9386   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9387   symxfrm="\\1 $ac_symprfx\\2 \\2"
9388
9389   # Write the raw and C identifiers.
9390   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9391
9392   # Check to see that the pipe works correctly.
9393   pipe_works=no
9394
9395   rm -f conftest*
9396   cat > conftest.$ac_ext <<EOF
9397 #ifdef __cplusplus
9398 extern "C" {
9399 #endif
9400 char nm_test_var;
9401 void nm_test_func(){}
9402 #ifdef __cplusplus
9403 }
9404 #endif
9405 int main(){nm_test_var='a';nm_test_func();return(0);}
9406 EOF
9407
9408   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9409   (eval $ac_compile) 2>&5
9410   ac_status=$?
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); }; then
9413     # Now try to grab the symbols.
9414     nlist=conftest.nm
9415     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9416   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9417   ac_status=$?
9418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419   (exit $ac_status); } && test -s "$nlist"; then
9420       # Try sorting and uniquifying the output.
9421       if sort "$nlist" | uniq > "$nlist"T; then
9422         mv -f "$nlist"T "$nlist"
9423       else
9424         rm -f "$nlist"T
9425       fi
9426
9427       # Make sure that we snagged all the symbols we need.
9428       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9429         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9430           cat <<EOF > conftest.$ac_ext
9431 #ifdef __cplusplus
9432 extern "C" {
9433 #endif
9434
9435 EOF
9436           # Now generate the symbol file.
9437           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9438
9439           cat <<EOF >> conftest.$ac_ext
9440 #if defined (__STDC__) && __STDC__
9441 # define lt_ptr_t void *
9442 #else
9443 # define lt_ptr_t char *
9444 # define const
9445 #endif
9446
9447 /* The mapping between symbol names and symbols. */
9448 const struct {
9449   const char *name;
9450   lt_ptr_t address;
9451 }
9452 lt_preloaded_symbols[] =
9453 {
9454 EOF
9455           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9456           cat <<\EOF >> conftest.$ac_ext
9457   {0, (lt_ptr_t) 0}
9458 };
9459
9460 #ifdef __cplusplus
9461 }
9462 #endif
9463 EOF
9464           # Now try linking the two files.
9465           mv conftest.$ac_objext conftstm.$ac_objext
9466           lt_save_LIBS="$LIBS"
9467           lt_save_CFLAGS="$CFLAGS"
9468           LIBS="conftstm.$ac_objext"
9469           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9470           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9471   (eval $ac_link) 2>&5
9472   ac_status=$?
9473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9475             pipe_works=yes
9476           fi
9477           LIBS="$lt_save_LIBS"
9478           CFLAGS="$lt_save_CFLAGS"
9479         else
9480           echo "cannot find nm_test_func in $nlist" >&5
9481         fi
9482       else
9483         echo "cannot find nm_test_var in $nlist" >&5
9484       fi
9485     else
9486       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9487     fi
9488   else
9489     echo "$progname: failed program was:" >&5
9490     cat conftest.$ac_ext >&5
9491   fi
9492   rm -f conftest* conftst*
9493
9494   # Do not use the global_symbol_pipe unless it works.
9495   if test "$pipe_works" = yes; then
9496     break
9497   else
9498     lt_cv_sys_global_symbol_pipe=
9499   fi
9500 done
9501
9502 fi
9503
9504 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9505   lt_cv_sys_global_symbol_to_cdecl=
9506 fi
9507 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9508   { echo "$as_me:$LINENO: result: failed" >&5
9509 echo "${ECHO_T}failed" >&6; }
9510 else
9511   { echo "$as_me:$LINENO: result: ok" >&5
9512 echo "${ECHO_T}ok" >&6; }
9513 fi
9514
9515
9516 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9517 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9518 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9519   echo $ECHO_N "(cached) $ECHO_C" >&6
9520 else
9521   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9522     libltdl_cv_preloaded_symbols=yes
9523   else
9524     libltdl_cv_preloaded_symbols=no
9525   fi
9526
9527 fi
9528 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9529 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9530 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9531
9532 cat >>confdefs.h <<\_ACEOF
9533 #define HAVE_PRELOADED_SYMBOLS 1
9534 _ACEOF
9535
9536 fi
9537
9538 LIBADD_DL=
9539
9540 ac_ext=c
9541 ac_cpp='$CPP $CPPFLAGS'
9542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9545
9546
9547 { echo "$as_me:$LINENO: checking for shl_load" >&5
9548 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9549 if test "${ac_cv_func_shl_load+set}" = set; then
9550   echo $ECHO_N "(cached) $ECHO_C" >&6
9551 else
9552   cat >conftest.$ac_ext <<_ACEOF
9553 /* confdefs.h.  */
9554 _ACEOF
9555 cat confdefs.h >>conftest.$ac_ext
9556 cat >>conftest.$ac_ext <<_ACEOF
9557 /* end confdefs.h.  */
9558 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9559    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9560 #define shl_load innocuous_shl_load
9561
9562 /* System header to define __stub macros and hopefully few prototypes,
9563     which can conflict with char shl_load (); below.
9564     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9565     <limits.h> exists even on freestanding compilers.  */
9566
9567 #ifdef __STDC__
9568 # include <limits.h>
9569 #else
9570 # include <assert.h>
9571 #endif
9572
9573 #undef shl_load
9574
9575 /* Override any GCC internal prototype to avoid an error.
9576    Use char because int might match the return type of a GCC
9577    builtin and then its argument prototype would still apply.  */
9578 #ifdef __cplusplus
9579 extern "C"
9580 #endif
9581 char shl_load ();
9582 /* The GNU C library defines this for functions which it implements
9583     to always fail with ENOSYS.  Some functions are actually named
9584     something starting with __ and the normal name is an alias.  */
9585 #if defined __stub_shl_load || defined __stub___shl_load
9586 choke me
9587 #endif
9588
9589 int
9590 main ()
9591 {
9592 return shl_load ();
9593   ;
9594   return 0;
9595 }
9596 _ACEOF
9597 rm -f conftest.$ac_objext conftest$ac_exeext
9598 if { (ac_try="$ac_link"
9599 case "(($ac_try" in
9600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9601   *) ac_try_echo=$ac_try;;
9602 esac
9603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9604   (eval "$ac_link") 2>conftest.er1
9605   ac_status=$?
9606   grep -v '^ *+' conftest.er1 >conftest.err
9607   rm -f conftest.er1
9608   cat conftest.err >&5
9609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610   (exit $ac_status); } &&
9611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9612   { (case "(($ac_try" in
9613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9614   *) ac_try_echo=$ac_try;;
9615 esac
9616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9617   (eval "$ac_try") 2>&5
9618   ac_status=$?
9619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620   (exit $ac_status); }; } &&
9621          { ac_try='test -s conftest$ac_exeext'
9622   { (case "(($ac_try" in
9623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9624   *) ac_try_echo=$ac_try;;
9625 esac
9626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9627   (eval "$ac_try") 2>&5
9628   ac_status=$?
9629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630   (exit $ac_status); }; }; then
9631   ac_cv_func_shl_load=yes
9632 else
9633   echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9635
9636         ac_cv_func_shl_load=no
9637 fi
9638
9639 rm -f core conftest.err conftest.$ac_objext \
9640       conftest$ac_exeext conftest.$ac_ext
9641 fi
9642 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9643 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9644 if test $ac_cv_func_shl_load = yes; then
9645
9646 cat >>confdefs.h <<\_ACEOF
9647 #define HAVE_SHL_LOAD 1
9648 _ACEOF
9649
9650 else
9651   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9652 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9653 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9654   echo $ECHO_N "(cached) $ECHO_C" >&6
9655 else
9656   ac_check_lib_save_LIBS=$LIBS
9657 LIBS="-ldld  $LIBS"
9658 cat >conftest.$ac_ext <<_ACEOF
9659 /* confdefs.h.  */
9660 _ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h.  */
9664
9665 /* Override any GCC internal prototype to avoid an error.
9666    Use char because int might match the return type of a GCC
9667    builtin and then its argument prototype would still apply.  */
9668 #ifdef __cplusplus
9669 extern "C"
9670 #endif
9671 char shl_load ();
9672 int
9673 main ()
9674 {
9675 return shl_load ();
9676   ;
9677   return 0;
9678 }
9679 _ACEOF
9680 rm -f conftest.$ac_objext conftest$ac_exeext
9681 if { (ac_try="$ac_link"
9682 case "(($ac_try" in
9683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9684   *) ac_try_echo=$ac_try;;
9685 esac
9686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9687   (eval "$ac_link") 2>conftest.er1
9688   ac_status=$?
9689   grep -v '^ *+' conftest.er1 >conftest.err
9690   rm -f conftest.er1
9691   cat conftest.err >&5
9692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693   (exit $ac_status); } &&
9694          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9695   { (case "(($ac_try" in
9696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9697   *) ac_try_echo=$ac_try;;
9698 esac
9699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9700   (eval "$ac_try") 2>&5
9701   ac_status=$?
9702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703   (exit $ac_status); }; } &&
9704          { ac_try='test -s conftest$ac_exeext'
9705   { (case "(($ac_try" in
9706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707   *) ac_try_echo=$ac_try;;
9708 esac
9709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9710   (eval "$ac_try") 2>&5
9711   ac_status=$?
9712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713   (exit $ac_status); }; }; then
9714   ac_cv_lib_dld_shl_load=yes
9715 else
9716   echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9718
9719         ac_cv_lib_dld_shl_load=no
9720 fi
9721
9722 rm -f core conftest.err conftest.$ac_objext \
9723       conftest$ac_exeext conftest.$ac_ext
9724 LIBS=$ac_check_lib_save_LIBS
9725 fi
9726 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9727 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9728 if test $ac_cv_lib_dld_shl_load = yes; then
9729
9730 cat >>confdefs.h <<\_ACEOF
9731 #define HAVE_SHL_LOAD 1
9732 _ACEOF
9733
9734         LIBADD_DL="$LIBADD_DL -ldld"
9735 else
9736   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9737 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9738 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9739   echo $ECHO_N "(cached) $ECHO_C" >&6
9740 else
9741   ac_check_lib_save_LIBS=$LIBS
9742 LIBS="-ldl  $LIBS"
9743 cat >conftest.$ac_ext <<_ACEOF
9744 /* confdefs.h.  */
9745 _ACEOF
9746 cat confdefs.h >>conftest.$ac_ext
9747 cat >>conftest.$ac_ext <<_ACEOF
9748 /* end confdefs.h.  */
9749
9750 /* Override any GCC internal prototype to avoid an error.
9751    Use char because int might match the return type of a GCC
9752    builtin and then its argument prototype would still apply.  */
9753 #ifdef __cplusplus
9754 extern "C"
9755 #endif
9756 char dlopen ();
9757 int
9758 main ()
9759 {
9760 return dlopen ();
9761   ;
9762   return 0;
9763 }
9764 _ACEOF
9765 rm -f conftest.$ac_objext conftest$ac_exeext
9766 if { (ac_try="$ac_link"
9767 case "(($ac_try" in
9768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769   *) ac_try_echo=$ac_try;;
9770 esac
9771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772   (eval "$ac_link") 2>conftest.er1
9773   ac_status=$?
9774   grep -v '^ *+' conftest.er1 >conftest.err
9775   rm -f conftest.er1
9776   cat conftest.err >&5
9777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778   (exit $ac_status); } &&
9779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9780   { (case "(($ac_try" in
9781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782   *) ac_try_echo=$ac_try;;
9783 esac
9784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785   (eval "$ac_try") 2>&5
9786   ac_status=$?
9787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788   (exit $ac_status); }; } &&
9789          { ac_try='test -s conftest$ac_exeext'
9790   { (case "(($ac_try" in
9791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9792   *) ac_try_echo=$ac_try;;
9793 esac
9794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9795   (eval "$ac_try") 2>&5
9796   ac_status=$?
9797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798   (exit $ac_status); }; }; then
9799   ac_cv_lib_dl_dlopen=yes
9800 else
9801   echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9803
9804         ac_cv_lib_dl_dlopen=no
9805 fi
9806
9807 rm -f core conftest.err conftest.$ac_objext \
9808       conftest$ac_exeext conftest.$ac_ext
9809 LIBS=$ac_check_lib_save_LIBS
9810 fi
9811 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9812 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9813 if test $ac_cv_lib_dl_dlopen = yes; then
9814
9815 cat >>confdefs.h <<\_ACEOF
9816 #define HAVE_LIBDL 1
9817 _ACEOF
9818
9819                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9820 else
9821   cat >conftest.$ac_ext <<_ACEOF
9822 /* confdefs.h.  */
9823 _ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h.  */
9827 #if HAVE_DLFCN_H
9828 #  include <dlfcn.h>
9829 #endif
9830
9831 int
9832 main ()
9833 {
9834 dlopen(0, 0);
9835   ;
9836   return 0;
9837 }
9838 _ACEOF
9839 rm -f conftest.$ac_objext conftest$ac_exeext
9840 if { (ac_try="$ac_link"
9841 case "(($ac_try" in
9842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843   *) ac_try_echo=$ac_try;;
9844 esac
9845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846   (eval "$ac_link") 2>conftest.er1
9847   ac_status=$?
9848   grep -v '^ *+' conftest.er1 >conftest.err
9849   rm -f conftest.er1
9850   cat conftest.err >&5
9851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852   (exit $ac_status); } &&
9853          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9854   { (case "(($ac_try" in
9855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856   *) ac_try_echo=$ac_try;;
9857 esac
9858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9859   (eval "$ac_try") 2>&5
9860   ac_status=$?
9861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862   (exit $ac_status); }; } &&
9863          { ac_try='test -s conftest$ac_exeext'
9864   { (case "(($ac_try" in
9865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866   *) ac_try_echo=$ac_try;;
9867 esac
9868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869   (eval "$ac_try") 2>&5
9870   ac_status=$?
9871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872   (exit $ac_status); }; }; then
9873
9874 cat >>confdefs.h <<\_ACEOF
9875 #define HAVE_LIBDL 1
9876 _ACEOF
9877  libltdl_cv_func_dlopen="yes"
9878 else
9879   echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9881
9882         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9883 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9884 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9885   echo $ECHO_N "(cached) $ECHO_C" >&6
9886 else
9887   ac_check_lib_save_LIBS=$LIBS
9888 LIBS="-lsvld  $LIBS"
9889 cat >conftest.$ac_ext <<_ACEOF
9890 /* confdefs.h.  */
9891 _ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h.  */
9895
9896 /* Override any GCC internal prototype to avoid an error.
9897    Use char because int might match the return type of a GCC
9898    builtin and then its argument prototype would still apply.  */
9899 #ifdef __cplusplus
9900 extern "C"
9901 #endif
9902 char dlopen ();
9903 int
9904 main ()
9905 {
9906 return dlopen ();
9907   ;
9908   return 0;
9909 }
9910 _ACEOF
9911 rm -f conftest.$ac_objext conftest$ac_exeext
9912 if { (ac_try="$ac_link"
9913 case "(($ac_try" in
9914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915   *) ac_try_echo=$ac_try;;
9916 esac
9917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918   (eval "$ac_link") 2>conftest.er1
9919   ac_status=$?
9920   grep -v '^ *+' conftest.er1 >conftest.err
9921   rm -f conftest.er1
9922   cat conftest.err >&5
9923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924   (exit $ac_status); } &&
9925          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9926   { (case "(($ac_try" in
9927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9928   *) ac_try_echo=$ac_try;;
9929 esac
9930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9931   (eval "$ac_try") 2>&5
9932   ac_status=$?
9933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934   (exit $ac_status); }; } &&
9935          { ac_try='test -s conftest$ac_exeext'
9936   { (case "(($ac_try" in
9937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9938   *) ac_try_echo=$ac_try;;
9939 esac
9940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9941   (eval "$ac_try") 2>&5
9942   ac_status=$?
9943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944   (exit $ac_status); }; }; then
9945   ac_cv_lib_svld_dlopen=yes
9946 else
9947   echo "$as_me: failed program was:" >&5
9948 sed 's/^/| /' conftest.$ac_ext >&5
9949
9950         ac_cv_lib_svld_dlopen=no
9951 fi
9952
9953 rm -f core conftest.err conftest.$ac_objext \
9954       conftest$ac_exeext conftest.$ac_ext
9955 LIBS=$ac_check_lib_save_LIBS
9956 fi
9957 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9958 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9959 if test $ac_cv_lib_svld_dlopen = yes; then
9960
9961 cat >>confdefs.h <<\_ACEOF
9962 #define HAVE_LIBDL 1
9963 _ACEOF
9964
9965                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9966 else
9967   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9968 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9969 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9970   echo $ECHO_N "(cached) $ECHO_C" >&6
9971 else
9972   ac_check_lib_save_LIBS=$LIBS
9973 LIBS="-ldld  $LIBS"
9974 cat >conftest.$ac_ext <<_ACEOF
9975 /* confdefs.h.  */
9976 _ACEOF
9977 cat confdefs.h >>conftest.$ac_ext
9978 cat >>conftest.$ac_ext <<_ACEOF
9979 /* end confdefs.h.  */
9980
9981 /* Override any GCC internal prototype to avoid an error.
9982    Use char because int might match the return type of a GCC
9983    builtin and then its argument prototype would still apply.  */
9984 #ifdef __cplusplus
9985 extern "C"
9986 #endif
9987 char dld_link ();
9988 int
9989 main ()
9990 {
9991 return dld_link ();
9992   ;
9993   return 0;
9994 }
9995 _ACEOF
9996 rm -f conftest.$ac_objext conftest$ac_exeext
9997 if { (ac_try="$ac_link"
9998 case "(($ac_try" in
9999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000   *) ac_try_echo=$ac_try;;
10001 esac
10002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003   (eval "$ac_link") 2>conftest.er1
10004   ac_status=$?
10005   grep -v '^ *+' conftest.er1 >conftest.err
10006   rm -f conftest.er1
10007   cat conftest.err >&5
10008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009   (exit $ac_status); } &&
10010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10011   { (case "(($ac_try" in
10012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013   *) ac_try_echo=$ac_try;;
10014 esac
10015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10016   (eval "$ac_try") 2>&5
10017   ac_status=$?
10018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019   (exit $ac_status); }; } &&
10020          { ac_try='test -s conftest$ac_exeext'
10021   { (case "(($ac_try" in
10022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10023   *) ac_try_echo=$ac_try;;
10024 esac
10025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10026   (eval "$ac_try") 2>&5
10027   ac_status=$?
10028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029   (exit $ac_status); }; }; then
10030   ac_cv_lib_dld_dld_link=yes
10031 else
10032   echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10034
10035         ac_cv_lib_dld_dld_link=no
10036 fi
10037
10038 rm -f core conftest.err conftest.$ac_objext \
10039       conftest$ac_exeext conftest.$ac_ext
10040 LIBS=$ac_check_lib_save_LIBS
10041 fi
10042 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10043 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10044 if test $ac_cv_lib_dld_dld_link = yes; then
10045
10046 cat >>confdefs.h <<\_ACEOF
10047 #define HAVE_DLD 1
10048 _ACEOF
10049
10050                 LIBADD_DL="$LIBADD_DL -ldld"
10051 else
10052   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10053 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10054 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10055   echo $ECHO_N "(cached) $ECHO_C" >&6
10056 else
10057   cat >conftest.$ac_ext <<_ACEOF
10058 /* confdefs.h.  */
10059 _ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h.  */
10063 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10064    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10065 #define _dyld_func_lookup innocuous__dyld_func_lookup
10066
10067 /* System header to define __stub macros and hopefully few prototypes,
10068     which can conflict with char _dyld_func_lookup (); below.
10069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10070     <limits.h> exists even on freestanding compilers.  */
10071
10072 #ifdef __STDC__
10073 # include <limits.h>
10074 #else
10075 # include <assert.h>
10076 #endif
10077
10078 #undef _dyld_func_lookup
10079
10080 /* Override any GCC internal prototype to avoid an error.
10081    Use char because int might match the return type of a GCC
10082    builtin and then its argument prototype would still apply.  */
10083 #ifdef __cplusplus
10084 extern "C"
10085 #endif
10086 char _dyld_func_lookup ();
10087 /* The GNU C library defines this for functions which it implements
10088     to always fail with ENOSYS.  Some functions are actually named
10089     something starting with __ and the normal name is an alias.  */
10090 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10091 choke me
10092 #endif
10093
10094 int
10095 main ()
10096 {
10097 return _dyld_func_lookup ();
10098   ;
10099   return 0;
10100 }
10101 _ACEOF
10102 rm -f conftest.$ac_objext conftest$ac_exeext
10103 if { (ac_try="$ac_link"
10104 case "(($ac_try" in
10105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106   *) ac_try_echo=$ac_try;;
10107 esac
10108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10109   (eval "$ac_link") 2>conftest.er1
10110   ac_status=$?
10111   grep -v '^ *+' conftest.er1 >conftest.err
10112   rm -f conftest.er1
10113   cat conftest.err >&5
10114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); } &&
10116          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10117   { (case "(($ac_try" in
10118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119   *) ac_try_echo=$ac_try;;
10120 esac
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122   (eval "$ac_try") 2>&5
10123   ac_status=$?
10124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125   (exit $ac_status); }; } &&
10126          { ac_try='test -s conftest$ac_exeext'
10127   { (case "(($ac_try" in
10128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10129   *) ac_try_echo=$ac_try;;
10130 esac
10131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10132   (eval "$ac_try") 2>&5
10133   ac_status=$?
10134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135   (exit $ac_status); }; }; then
10136   ac_cv_func__dyld_func_lookup=yes
10137 else
10138   echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10140
10141         ac_cv_func__dyld_func_lookup=no
10142 fi
10143
10144 rm -f core conftest.err conftest.$ac_objext \
10145       conftest$ac_exeext conftest.$ac_ext
10146 fi
10147 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10148 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10149 if test $ac_cv_func__dyld_func_lookup = yes; then
10150
10151 cat >>confdefs.h <<\_ACEOF
10152 #define HAVE_DYLD 1
10153 _ACEOF
10154
10155 fi
10156
10157
10158 fi
10159
10160
10161 fi
10162
10163
10164 fi
10165
10166 rm -f core conftest.err conftest.$ac_objext \
10167       conftest$ac_exeext conftest.$ac_ext
10168
10169 fi
10170
10171
10172 fi
10173
10174
10175 fi
10176
10177
10178 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10179 then
10180   lt_save_LIBS="$LIBS"
10181   LIBS="$LIBS $LIBADD_DL"
10182
10183 for ac_func in dlerror
10184 do
10185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10186 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10188 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10189   echo $ECHO_N "(cached) $ECHO_C" >&6
10190 else
10191   cat >conftest.$ac_ext <<_ACEOF
10192 /* confdefs.h.  */
10193 _ACEOF
10194 cat confdefs.h >>conftest.$ac_ext
10195 cat >>conftest.$ac_ext <<_ACEOF
10196 /* end confdefs.h.  */
10197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10198    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10199 #define $ac_func innocuous_$ac_func
10200
10201 /* System header to define __stub macros and hopefully few prototypes,
10202     which can conflict with char $ac_func (); below.
10203     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10204     <limits.h> exists even on freestanding compilers.  */
10205
10206 #ifdef __STDC__
10207 # include <limits.h>
10208 #else
10209 # include <assert.h>
10210 #endif
10211
10212 #undef $ac_func
10213
10214 /* Override any GCC internal prototype to avoid an error.
10215    Use char because int might match the return type of a GCC
10216    builtin and then its argument prototype would still apply.  */
10217 #ifdef __cplusplus
10218 extern "C"
10219 #endif
10220 char $ac_func ();
10221 /* The GNU C library defines this for functions which it implements
10222     to always fail with ENOSYS.  Some functions are actually named
10223     something starting with __ and the normal name is an alias.  */
10224 #if defined __stub_$ac_func || defined __stub___$ac_func
10225 choke me
10226 #endif
10227
10228 int
10229 main ()
10230 {
10231 return $ac_func ();
10232   ;
10233   return 0;
10234 }
10235 _ACEOF
10236 rm -f conftest.$ac_objext conftest$ac_exeext
10237 if { (ac_try="$ac_link"
10238 case "(($ac_try" in
10239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240   *) ac_try_echo=$ac_try;;
10241 esac
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243   (eval "$ac_link") 2>conftest.er1
10244   ac_status=$?
10245   grep -v '^ *+' conftest.er1 >conftest.err
10246   rm -f conftest.er1
10247   cat conftest.err >&5
10248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249   (exit $ac_status); } &&
10250          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10251   { (case "(($ac_try" in
10252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10253   *) ac_try_echo=$ac_try;;
10254 esac
10255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10256   (eval "$ac_try") 2>&5
10257   ac_status=$?
10258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259   (exit $ac_status); }; } &&
10260          { ac_try='test -s conftest$ac_exeext'
10261   { (case "(($ac_try" in
10262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10263   *) ac_try_echo=$ac_try;;
10264 esac
10265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10266   (eval "$ac_try") 2>&5
10267   ac_status=$?
10268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269   (exit $ac_status); }; }; then
10270   eval "$as_ac_var=yes"
10271 else
10272   echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10274
10275         eval "$as_ac_var=no"
10276 fi
10277
10278 rm -f core conftest.err conftest.$ac_objext \
10279       conftest$ac_exeext conftest.$ac_ext
10280 fi
10281 ac_res=`eval echo '${'$as_ac_var'}'`
10282                { echo "$as_me:$LINENO: result: $ac_res" >&5
10283 echo "${ECHO_T}$ac_res" >&6; }
10284 if test `eval echo '${'$as_ac_var'}'` = yes; then
10285   cat >>confdefs.h <<_ACEOF
10286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10287 _ACEOF
10288
10289 fi
10290 done
10291
10292   LIBS="$lt_save_LIBS"
10293 fi
10294 ac_ext=c
10295 ac_cpp='$CPP $CPPFLAGS'
10296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10299
10300
10301
10302 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10303 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10304 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10305   echo $ECHO_N "(cached) $ECHO_C" >&6
10306 else
10307   ac_cv_sys_symbol_underscore=no
10308   cat > conftest.$ac_ext <<EOF
10309 void nm_test_func(){}
10310 int main(){nm_test_func;return 0;}
10311 EOF
10312   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10313   (eval $ac_compile) 2>&5
10314   ac_status=$?
10315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316   (exit $ac_status); }; then
10317     # Now try to grab the symbols.
10318     ac_nlist=conftest.nm
10319     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10320   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10321   ac_status=$?
10322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323   (exit $ac_status); } && test -s "$ac_nlist"; then
10324       # See whether the symbols have a leading underscore.
10325       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10326         ac_cv_sys_symbol_underscore=yes
10327       else
10328         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10329           :
10330         else
10331           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10332         fi
10333       fi
10334     else
10335       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10336     fi
10337   else
10338     echo "configure: failed program was:" >&5
10339     cat conftest.c >&5
10340   fi
10341   rm -rf conftest*
10342
10343 fi
10344 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10345 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10346
10347
10348 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10349   if test x"$libltdl_cv_func_dlopen" = xyes ||
10350      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10351         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10352 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10353 if test "${libltdl_cv_need_uscore+set}" = set; then
10354   echo $ECHO_N "(cached) $ECHO_C" >&6
10355 else
10356   libltdl_cv_need_uscore=unknown
10357           save_LIBS="$LIBS"
10358           LIBS="$LIBS $LIBADD_DL"
10359           if test "$cross_compiling" = yes; then :
10360   libltdl_cv_need_uscore=cross
10361 else
10362   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10363   lt_status=$lt_dlunknown
10364   cat > conftest.$ac_ext <<EOF
10365 #line 10365 "configure"
10366 #include "confdefs.h"
10367
10368 #if HAVE_DLFCN_H
10369 #include <dlfcn.h>
10370 #endif
10371
10372 #include <stdio.h>
10373
10374 #ifdef RTLD_GLOBAL
10375 #  define LT_DLGLOBAL           RTLD_GLOBAL
10376 #else
10377 #  ifdef DL_GLOBAL
10378 #    define LT_DLGLOBAL         DL_GLOBAL
10379 #  else
10380 #    define LT_DLGLOBAL         0
10381 #  endif
10382 #endif
10383
10384 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10385    find out it does not work in some platform. */
10386 #ifndef LT_DLLAZY_OR_NOW
10387 #  ifdef RTLD_LAZY
10388 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10389 #  else
10390 #    ifdef DL_LAZY
10391 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10392 #    else
10393 #      ifdef RTLD_NOW
10394 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10395 #      else
10396 #        ifdef DL_NOW
10397 #          define LT_DLLAZY_OR_NOW      DL_NOW
10398 #        else
10399 #          define LT_DLLAZY_OR_NOW      0
10400 #        endif
10401 #      endif
10402 #    endif
10403 #  endif
10404 #endif
10405
10406 #ifdef __cplusplus
10407 extern "C" void exit (int);
10408 #endif
10409
10410 void fnord() { int i=42;}
10411 int main ()
10412 {
10413   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10414   int status = $lt_dlunknown;
10415
10416   if (self)
10417     {
10418       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10419       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10420       /* dlclose (self); */
10421     }
10422   else
10423     puts (dlerror ());
10424
10425     exit (status);
10426 }
10427 EOF
10428   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10429   (eval $ac_link) 2>&5
10430   ac_status=$?
10431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10433     (./conftest; exit; ) >&5 2>/dev/null
10434     lt_status=$?
10435     case x$lt_status in
10436       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10437       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10438       x$lt_dlunknown|x*)  ;;
10439     esac
10440   else :
10441     # compilation failed
10442
10443   fi
10444 fi
10445 rm -fr conftest*
10446
10447           LIBS="$save_LIBS"
10448
10449 fi
10450 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10451 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10452   fi
10453 fi
10454
10455 if test x"$libltdl_cv_need_uscore" = xyes; then
10456
10457 cat >>confdefs.h <<\_ACEOF
10458 #define NEED_USCORE 1
10459 _ACEOF
10460
10461 fi
10462
10463
10464 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10465 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10466 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10467   echo $ECHO_N "(cached) $ECHO_C" >&6
10468 else
10469   # PORTME does your system automatically load deplibs for dlopen?
10470   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10471   # For now, we just catch OSes we know something about -- in the
10472   # future, we'll try test this programmatically.
10473   libltdl_cv_sys_dlopen_deplibs=unknown
10474   case "$host_os" in
10475   aix3*|aix4.1.*|aix4.2.*)
10476     # Unknown whether this is true for these versions of AIX, but
10477     # we want this `case' here to explicitly catch those versions.
10478     libltdl_cv_sys_dlopen_deplibs=unknown
10479     ;;
10480   aix[45]*)
10481     libltdl_cv_sys_dlopen_deplibs=yes
10482     ;;
10483   darwin*)
10484     # Assuming the user has installed a libdl from somewhere, this is true
10485     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10486     libltdl_cv_sys_dlopen_deplibs=yes
10487     ;;
10488   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10489     # GNU and its variants, using gnu ld.so (Glibc)
10490     libltdl_cv_sys_dlopen_deplibs=yes
10491     ;;
10492   hpux10*|hpux11*)
10493     libltdl_cv_sys_dlopen_deplibs=yes
10494     ;;
10495   interix*)
10496     libltdl_cv_sys_dlopen_deplibs=yes
10497     ;;
10498   irix[12345]*|irix6.[01]*)
10499     # Catch all versions of IRIX before 6.2, and indicate that we don't
10500     # know how it worked for any of those versions.
10501     libltdl_cv_sys_dlopen_deplibs=unknown
10502     ;;
10503   irix*)
10504     # The case above catches anything before 6.2, and it's known that
10505     # at 6.2 and later dlopen does load deplibs.
10506     libltdl_cv_sys_dlopen_deplibs=yes
10507     ;;
10508   netbsd*)
10509     libltdl_cv_sys_dlopen_deplibs=yes
10510     ;;
10511   openbsd*)
10512     libltdl_cv_sys_dlopen_deplibs=yes
10513     ;;
10514   osf[1234]*)
10515     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10516     # it did *not* use an RPATH in a shared library to find objects the
10517     # library depends on, so we explicitly say `no'.
10518     libltdl_cv_sys_dlopen_deplibs=no
10519     ;;
10520   osf5.0|osf5.0a|osf5.1)
10521     # dlopen *does* load deplibs and with the right loader patch applied
10522     # it even uses RPATH in a shared library to search for shared objects
10523     # that the library depends on, but there's no easy way to know if that
10524     # patch is installed.  Since this is the case, all we can really
10525     # say is unknown -- it depends on the patch being installed.  If
10526     # it is, this changes to `yes'.  Without it, it would be `no'.
10527     libltdl_cv_sys_dlopen_deplibs=unknown
10528     ;;
10529   osf*)
10530     # the two cases above should catch all versions of osf <= 5.1.  Read
10531     # the comments above for what we know about them.
10532     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10533     # is used to find them so we can finally say `yes'.
10534     libltdl_cv_sys_dlopen_deplibs=yes
10535     ;;
10536   solaris*)
10537     libltdl_cv_sys_dlopen_deplibs=yes
10538     ;;
10539   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10540     libltdl_cv_sys_dlopen_deplibs=yes
10541     ;;
10542   esac
10543
10544 fi
10545 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10546 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10547 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10548
10549 cat >>confdefs.h <<\_ACEOF
10550 #define LTDL_DLOPEN_DEPLIBS 1
10551 _ACEOF
10552
10553 fi
10554
10555
10556 for ac_header in argz.h
10557 do
10558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10560   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10563   echo $ECHO_N "(cached) $ECHO_C" >&6
10564 fi
10565 ac_res=`eval echo '${'$as_ac_Header'}'`
10566                { echo "$as_me:$LINENO: result: $ac_res" >&5
10567 echo "${ECHO_T}$ac_res" >&6; }
10568 else
10569   # Is the header compilable?
10570 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10572 cat >conftest.$ac_ext <<_ACEOF
10573 /* confdefs.h.  */
10574 _ACEOF
10575 cat confdefs.h >>conftest.$ac_ext
10576 cat >>conftest.$ac_ext <<_ACEOF
10577 /* end confdefs.h.  */
10578 $ac_includes_default
10579 #include <$ac_header>
10580 _ACEOF
10581 rm -f conftest.$ac_objext
10582 if { (ac_try="$ac_compile"
10583 case "(($ac_try" in
10584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585   *) ac_try_echo=$ac_try;;
10586 esac
10587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10588   (eval "$ac_compile") 2>conftest.er1
10589   ac_status=$?
10590   grep -v '^ *+' conftest.er1 >conftest.err
10591   rm -f conftest.er1
10592   cat conftest.err >&5
10593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594   (exit $ac_status); } &&
10595          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10596   { (case "(($ac_try" in
10597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10598   *) ac_try_echo=$ac_try;;
10599 esac
10600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10601   (eval "$ac_try") 2>&5
10602   ac_status=$?
10603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604   (exit $ac_status); }; } &&
10605          { ac_try='test -s conftest.$ac_objext'
10606   { (case "(($ac_try" in
10607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10608   *) ac_try_echo=$ac_try;;
10609 esac
10610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10611   (eval "$ac_try") 2>&5
10612   ac_status=$?
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); }; }; then
10615   ac_header_compiler=yes
10616 else
10617   echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10619
10620         ac_header_compiler=no
10621 fi
10622
10623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10624 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10625 echo "${ECHO_T}$ac_header_compiler" >&6; }
10626
10627 # Is the header present?
10628 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10629 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10630 cat >conftest.$ac_ext <<_ACEOF
10631 /* confdefs.h.  */
10632 _ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h.  */
10636 #include <$ac_header>
10637 _ACEOF
10638 if { (ac_try="$ac_cpp conftest.$ac_ext"
10639 case "(($ac_try" in
10640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641   *) ac_try_echo=$ac_try;;
10642 esac
10643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10645   ac_status=$?
10646   grep -v '^ *+' conftest.er1 >conftest.err
10647   rm -f conftest.er1
10648   cat conftest.err >&5
10649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650   (exit $ac_status); } >/dev/null; then
10651   if test -s conftest.err; then
10652     ac_cpp_err=$ac_c_preproc_warn_flag
10653     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10654   else
10655     ac_cpp_err=
10656   fi
10657 else
10658   ac_cpp_err=yes
10659 fi
10660 if test -z "$ac_cpp_err"; then
10661   ac_header_preproc=yes
10662 else
10663   echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10665
10666   ac_header_preproc=no
10667 fi
10668
10669 rm -f conftest.err conftest.$ac_ext
10670 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10671 echo "${ECHO_T}$ac_header_preproc" >&6; }
10672
10673 # So?  What about this header?
10674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10675   yes:no: )
10676     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10677 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10678     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10679 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10680     ac_header_preproc=yes
10681     ;;
10682   no:yes:* )
10683     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10685     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10686 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10687     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10688 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10689     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10690 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10691     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10693     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10694 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10695     ( cat <<\_ASBOX
10696 ## ------------------------------ ##
10697 ## Report this to bugs@yourdomain ##
10698 ## ------------------------------ ##
10699 _ASBOX
10700      ) | sed "s/^/$as_me: WARNING:     /" >&2
10701     ;;
10702 esac
10703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10706   echo $ECHO_N "(cached) $ECHO_C" >&6
10707 else
10708   eval "$as_ac_Header=\$ac_header_preproc"
10709 fi
10710 ac_res=`eval echo '${'$as_ac_Header'}'`
10711                { echo "$as_me:$LINENO: result: $ac_res" >&5
10712 echo "${ECHO_T}$ac_res" >&6; }
10713
10714 fi
10715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10716   cat >>confdefs.h <<_ACEOF
10717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10718 _ACEOF
10719
10720 fi
10721
10722 done
10723
10724
10725 { echo "$as_me:$LINENO: checking for error_t" >&5
10726 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10727 if test "${ac_cv_type_error_t+set}" = set; then
10728   echo $ECHO_N "(cached) $ECHO_C" >&6
10729 else
10730   cat >conftest.$ac_ext <<_ACEOF
10731 /* confdefs.h.  */
10732 _ACEOF
10733 cat confdefs.h >>conftest.$ac_ext
10734 cat >>conftest.$ac_ext <<_ACEOF
10735 /* end confdefs.h.  */
10736 #if HAVE_ARGZ_H
10737 #  include <argz.h>
10738 #endif
10739
10740 typedef error_t ac__type_new_;
10741 int
10742 main ()
10743 {
10744 if ((ac__type_new_ *) 0)
10745   return 0;
10746 if (sizeof (ac__type_new_))
10747   return 0;
10748   ;
10749   return 0;
10750 }
10751 _ACEOF
10752 rm -f conftest.$ac_objext
10753 if { (ac_try="$ac_compile"
10754 case "(($ac_try" in
10755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756   *) ac_try_echo=$ac_try;;
10757 esac
10758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10759   (eval "$ac_compile") 2>conftest.er1
10760   ac_status=$?
10761   grep -v '^ *+' conftest.er1 >conftest.err
10762   rm -f conftest.er1
10763   cat conftest.err >&5
10764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765   (exit $ac_status); } &&
10766          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10767   { (case "(($ac_try" in
10768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10769   *) ac_try_echo=$ac_try;;
10770 esac
10771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10772   (eval "$ac_try") 2>&5
10773   ac_status=$?
10774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775   (exit $ac_status); }; } &&
10776          { ac_try='test -s conftest.$ac_objext'
10777   { (case "(($ac_try" in
10778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779   *) ac_try_echo=$ac_try;;
10780 esac
10781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782   (eval "$ac_try") 2>&5
10783   ac_status=$?
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); }; }; then
10786   ac_cv_type_error_t=yes
10787 else
10788   echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10790
10791         ac_cv_type_error_t=no
10792 fi
10793
10794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10795 fi
10796 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10797 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10798 if test $ac_cv_type_error_t = yes; then
10799
10800 cat >>confdefs.h <<_ACEOF
10801 #define HAVE_ERROR_T 1
10802 _ACEOF
10803
10804
10805 else
10806
10807 cat >>confdefs.h <<\_ACEOF
10808 #define error_t int
10809 _ACEOF
10810
10811 fi
10812
10813
10814
10815
10816
10817
10818
10819 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10820 do
10821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10822 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10825   echo $ECHO_N "(cached) $ECHO_C" >&6
10826 else
10827   cat >conftest.$ac_ext <<_ACEOF
10828 /* confdefs.h.  */
10829 _ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h.  */
10833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10834    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10835 #define $ac_func innocuous_$ac_func
10836
10837 /* System header to define __stub macros and hopefully few prototypes,
10838     which can conflict with char $ac_func (); below.
10839     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10840     <limits.h> exists even on freestanding compilers.  */
10841
10842 #ifdef __STDC__
10843 # include <limits.h>
10844 #else
10845 # include <assert.h>
10846 #endif
10847
10848 #undef $ac_func
10849
10850 /* Override any GCC internal prototype to avoid an error.
10851    Use char because int might match the return type of a GCC
10852    builtin and then its argument prototype would still apply.  */
10853 #ifdef __cplusplus
10854 extern "C"
10855 #endif
10856 char $ac_func ();
10857 /* The GNU C library defines this for functions which it implements
10858     to always fail with ENOSYS.  Some functions are actually named
10859     something starting with __ and the normal name is an alias.  */
10860 #if defined __stub_$ac_func || defined __stub___$ac_func
10861 choke me
10862 #endif
10863
10864 int
10865 main ()
10866 {
10867 return $ac_func ();
10868   ;
10869   return 0;
10870 }
10871 _ACEOF
10872 rm -f conftest.$ac_objext conftest$ac_exeext
10873 if { (ac_try="$ac_link"
10874 case "(($ac_try" in
10875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876   *) ac_try_echo=$ac_try;;
10877 esac
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879   (eval "$ac_link") 2>conftest.er1
10880   ac_status=$?
10881   grep -v '^ *+' conftest.er1 >conftest.err
10882   rm -f conftest.er1
10883   cat conftest.err >&5
10884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885   (exit $ac_status); } &&
10886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10887   { (case "(($ac_try" in
10888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889   *) ac_try_echo=$ac_try;;
10890 esac
10891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892   (eval "$ac_try") 2>&5
10893   ac_status=$?
10894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895   (exit $ac_status); }; } &&
10896          { ac_try='test -s conftest$ac_exeext'
10897   { (case "(($ac_try" in
10898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10899   *) ac_try_echo=$ac_try;;
10900 esac
10901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902   (eval "$ac_try") 2>&5
10903   ac_status=$?
10904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905   (exit $ac_status); }; }; then
10906   eval "$as_ac_var=yes"
10907 else
10908   echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10910
10911         eval "$as_ac_var=no"
10912 fi
10913
10914 rm -f core conftest.err conftest.$ac_objext \
10915       conftest$ac_exeext conftest.$ac_ext
10916 fi
10917 ac_res=`eval echo '${'$as_ac_var'}'`
10918                { echo "$as_me:$LINENO: result: $ac_res" >&5
10919 echo "${ECHO_T}$ac_res" >&6; }
10920 if test `eval echo '${'$as_ac_var'}'` = yes; then
10921   cat >>confdefs.h <<_ACEOF
10922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10923 _ACEOF
10924
10925 fi
10926 done
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
10952
10953
10954
10955 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10956                   stdio.h unistd.h
10957 do
10958 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10960   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10963   echo $ECHO_N "(cached) $ECHO_C" >&6
10964 fi
10965 ac_res=`eval echo '${'$as_ac_Header'}'`
10966                { echo "$as_me:$LINENO: result: $ac_res" >&5
10967 echo "${ECHO_T}$ac_res" >&6; }
10968 else
10969   # Is the header compilable?
10970 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10972 cat >conftest.$ac_ext <<_ACEOF
10973 /* confdefs.h.  */
10974 _ACEOF
10975 cat confdefs.h >>conftest.$ac_ext
10976 cat >>conftest.$ac_ext <<_ACEOF
10977 /* end confdefs.h.  */
10978 $ac_includes_default
10979 #include <$ac_header>
10980 _ACEOF
10981 rm -f conftest.$ac_objext
10982 if { (ac_try="$ac_compile"
10983 case "(($ac_try" in
10984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985   *) ac_try_echo=$ac_try;;
10986 esac
10987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10988   (eval "$ac_compile") 2>conftest.er1
10989   ac_status=$?
10990   grep -v '^ *+' conftest.er1 >conftest.err
10991   rm -f conftest.er1
10992   cat conftest.err >&5
10993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994   (exit $ac_status); } &&
10995          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10996   { (case "(($ac_try" in
10997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998   *) ac_try_echo=$ac_try;;
10999 esac
11000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11001   (eval "$ac_try") 2>&5
11002   ac_status=$?
11003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004   (exit $ac_status); }; } &&
11005          { ac_try='test -s conftest.$ac_objext'
11006   { (case "(($ac_try" in
11007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11008   *) ac_try_echo=$ac_try;;
11009 esac
11010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11011   (eval "$ac_try") 2>&5
11012   ac_status=$?
11013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014   (exit $ac_status); }; }; then
11015   ac_header_compiler=yes
11016 else
11017   echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11019
11020         ac_header_compiler=no
11021 fi
11022
11023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11024 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11025 echo "${ECHO_T}$ac_header_compiler" >&6; }
11026
11027 # Is the header present?
11028 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11030 cat >conftest.$ac_ext <<_ACEOF
11031 /* confdefs.h.  */
11032 _ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h.  */
11036 #include <$ac_header>
11037 _ACEOF
11038 if { (ac_try="$ac_cpp conftest.$ac_ext"
11039 case "(($ac_try" in
11040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041   *) ac_try_echo=$ac_try;;
11042 esac
11043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11045   ac_status=$?
11046   grep -v '^ *+' conftest.er1 >conftest.err
11047   rm -f conftest.er1
11048   cat conftest.err >&5
11049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050   (exit $ac_status); } >/dev/null; then
11051   if test -s conftest.err; then
11052     ac_cpp_err=$ac_c_preproc_warn_flag
11053     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11054   else
11055     ac_cpp_err=
11056   fi
11057 else
11058   ac_cpp_err=yes
11059 fi
11060 if test -z "$ac_cpp_err"; then
11061   ac_header_preproc=yes
11062 else
11063   echo "$as_me: failed program was:" >&5
11064 sed 's/^/| /' conftest.$ac_ext >&5
11065
11066   ac_header_preproc=no
11067 fi
11068
11069 rm -f conftest.err conftest.$ac_ext
11070 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11071 echo "${ECHO_T}$ac_header_preproc" >&6; }
11072
11073 # So?  What about this header?
11074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11075   yes:no: )
11076     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11078     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11080     ac_header_preproc=yes
11081     ;;
11082   no:yes:* )
11083     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11085     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11086 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11087     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11089     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11090 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11091     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11093     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11095     ( cat <<\_ASBOX
11096 ## ------------------------------ ##
11097 ## Report this to bugs@yourdomain ##
11098 ## ------------------------------ ##
11099 _ASBOX
11100      ) | sed "s/^/$as_me: WARNING:     /" >&2
11101     ;;
11102 esac
11103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11106   echo $ECHO_N "(cached) $ECHO_C" >&6
11107 else
11108   eval "$as_ac_Header=\$ac_header_preproc"
11109 fi
11110 ac_res=`eval echo '${'$as_ac_Header'}'`
11111                { echo "$as_me:$LINENO: result: $ac_res" >&5
11112 echo "${ECHO_T}$ac_res" >&6; }
11113
11114 fi
11115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11116   cat >>confdefs.h <<_ACEOF
11117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11118 _ACEOF
11119
11120 fi
11121
11122 done
11123
11124
11125
11126
11127
11128 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11129 do
11130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11132   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11135   echo $ECHO_N "(cached) $ECHO_C" >&6
11136 fi
11137 ac_res=`eval echo '${'$as_ac_Header'}'`
11138                { echo "$as_me:$LINENO: result: $ac_res" >&5
11139 echo "${ECHO_T}$ac_res" >&6; }
11140 else
11141   # Is the header compilable?
11142 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11144 cat >conftest.$ac_ext <<_ACEOF
11145 /* confdefs.h.  */
11146 _ACEOF
11147 cat confdefs.h >>conftest.$ac_ext
11148 cat >>conftest.$ac_ext <<_ACEOF
11149 /* end confdefs.h.  */
11150 $ac_includes_default
11151 #include <$ac_header>
11152 _ACEOF
11153 rm -f conftest.$ac_objext
11154 if { (ac_try="$ac_compile"
11155 case "(($ac_try" in
11156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11157   *) ac_try_echo=$ac_try;;
11158 esac
11159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11160   (eval "$ac_compile") 2>conftest.er1
11161   ac_status=$?
11162   grep -v '^ *+' conftest.er1 >conftest.err
11163   rm -f conftest.er1
11164   cat conftest.err >&5
11165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166   (exit $ac_status); } &&
11167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11168   { (case "(($ac_try" in
11169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11170   *) ac_try_echo=$ac_try;;
11171 esac
11172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11173   (eval "$ac_try") 2>&5
11174   ac_status=$?
11175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176   (exit $ac_status); }; } &&
11177          { ac_try='test -s conftest.$ac_objext'
11178   { (case "(($ac_try" in
11179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180   *) ac_try_echo=$ac_try;;
11181 esac
11182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183   (eval "$ac_try") 2>&5
11184   ac_status=$?
11185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186   (exit $ac_status); }; }; then
11187   ac_header_compiler=yes
11188 else
11189   echo "$as_me: failed program was:" >&5
11190 sed 's/^/| /' conftest.$ac_ext >&5
11191
11192         ac_header_compiler=no
11193 fi
11194
11195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11197 echo "${ECHO_T}$ac_header_compiler" >&6; }
11198
11199 # Is the header present?
11200 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11202 cat >conftest.$ac_ext <<_ACEOF
11203 /* confdefs.h.  */
11204 _ACEOF
11205 cat confdefs.h >>conftest.$ac_ext
11206 cat >>conftest.$ac_ext <<_ACEOF
11207 /* end confdefs.h.  */
11208 #include <$ac_header>
11209 _ACEOF
11210 if { (ac_try="$ac_cpp conftest.$ac_ext"
11211 case "(($ac_try" in
11212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213   *) ac_try_echo=$ac_try;;
11214 esac
11215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11217   ac_status=$?
11218   grep -v '^ *+' conftest.er1 >conftest.err
11219   rm -f conftest.er1
11220   cat conftest.err >&5
11221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222   (exit $ac_status); } >/dev/null; then
11223   if test -s conftest.err; then
11224     ac_cpp_err=$ac_c_preproc_warn_flag
11225     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11226   else
11227     ac_cpp_err=
11228   fi
11229 else
11230   ac_cpp_err=yes
11231 fi
11232 if test -z "$ac_cpp_err"; then
11233   ac_header_preproc=yes
11234 else
11235   echo "$as_me: failed program was:" >&5
11236 sed 's/^/| /' conftest.$ac_ext >&5
11237
11238   ac_header_preproc=no
11239 fi
11240
11241 rm -f conftest.err conftest.$ac_ext
11242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11243 echo "${ECHO_T}$ac_header_preproc" >&6; }
11244
11245 # So?  What about this header?
11246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11247   yes:no: )
11248     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11250     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11252     ac_header_preproc=yes
11253     ;;
11254   no:yes:* )
11255     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11257     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11258 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11259     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11261     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11262 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11263     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11265     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11267     ( cat <<\_ASBOX
11268 ## ------------------------------ ##
11269 ## Report this to bugs@yourdomain ##
11270 ## ------------------------------ ##
11271 _ASBOX
11272      ) | sed "s/^/$as_me: WARNING:     /" >&2
11273     ;;
11274 esac
11275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11278   echo $ECHO_N "(cached) $ECHO_C" >&6
11279 else
11280   eval "$as_ac_Header=\$ac_header_preproc"
11281 fi
11282 ac_res=`eval echo '${'$as_ac_Header'}'`
11283                { echo "$as_me:$LINENO: result: $ac_res" >&5
11284 echo "${ECHO_T}$ac_res" >&6; }
11285
11286 fi
11287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11288   cat >>confdefs.h <<_ACEOF
11289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11290 _ACEOF
11291
11292 fi
11293
11294 done
11295
11296
11297
11298 for ac_header in string.h strings.h
11299 do
11300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11302   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11305   echo $ECHO_N "(cached) $ECHO_C" >&6
11306 fi
11307 ac_res=`eval echo '${'$as_ac_Header'}'`
11308                { echo "$as_me:$LINENO: result: $ac_res" >&5
11309 echo "${ECHO_T}$ac_res" >&6; }
11310 else
11311   # Is the header compilable?
11312 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11314 cat >conftest.$ac_ext <<_ACEOF
11315 /* confdefs.h.  */
11316 _ACEOF
11317 cat confdefs.h >>conftest.$ac_ext
11318 cat >>conftest.$ac_ext <<_ACEOF
11319 /* end confdefs.h.  */
11320 $ac_includes_default
11321 #include <$ac_header>
11322 _ACEOF
11323 rm -f conftest.$ac_objext
11324 if { (ac_try="$ac_compile"
11325 case "(($ac_try" in
11326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327   *) ac_try_echo=$ac_try;;
11328 esac
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330   (eval "$ac_compile") 2>conftest.er1
11331   ac_status=$?
11332   grep -v '^ *+' conftest.er1 >conftest.err
11333   rm -f conftest.er1
11334   cat conftest.err >&5
11335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336   (exit $ac_status); } &&
11337          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11338   { (case "(($ac_try" in
11339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340   *) ac_try_echo=$ac_try;;
11341 esac
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343   (eval "$ac_try") 2>&5
11344   ac_status=$?
11345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346   (exit $ac_status); }; } &&
11347          { ac_try='test -s conftest.$ac_objext'
11348   { (case "(($ac_try" in
11349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11350   *) ac_try_echo=$ac_try;;
11351 esac
11352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11353   (eval "$ac_try") 2>&5
11354   ac_status=$?
11355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356   (exit $ac_status); }; }; then
11357   ac_header_compiler=yes
11358 else
11359   echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11361
11362         ac_header_compiler=no
11363 fi
11364
11365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11366 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11367 echo "${ECHO_T}$ac_header_compiler" >&6; }
11368
11369 # Is the header present?
11370 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11372 cat >conftest.$ac_ext <<_ACEOF
11373 /* confdefs.h.  */
11374 _ACEOF
11375 cat confdefs.h >>conftest.$ac_ext
11376 cat >>conftest.$ac_ext <<_ACEOF
11377 /* end confdefs.h.  */
11378 #include <$ac_header>
11379 _ACEOF
11380 if { (ac_try="$ac_cpp conftest.$ac_ext"
11381 case "(($ac_try" in
11382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383   *) ac_try_echo=$ac_try;;
11384 esac
11385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11387   ac_status=$?
11388   grep -v '^ *+' conftest.er1 >conftest.err
11389   rm -f conftest.er1
11390   cat conftest.err >&5
11391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392   (exit $ac_status); } >/dev/null; then
11393   if test -s conftest.err; then
11394     ac_cpp_err=$ac_c_preproc_warn_flag
11395     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11396   else
11397     ac_cpp_err=
11398   fi
11399 else
11400   ac_cpp_err=yes
11401 fi
11402 if test -z "$ac_cpp_err"; then
11403   ac_header_preproc=yes
11404 else
11405   echo "$as_me: failed program was:" >&5
11406 sed 's/^/| /' conftest.$ac_ext >&5
11407
11408   ac_header_preproc=no
11409 fi
11410
11411 rm -f conftest.err conftest.$ac_ext
11412 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11413 echo "${ECHO_T}$ac_header_preproc" >&6; }
11414
11415 # So?  What about this header?
11416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11417   yes:no: )
11418     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11419 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11420     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11421 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11422     ac_header_preproc=yes
11423     ;;
11424   no:yes:* )
11425     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11426 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11427     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11428 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11429     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11430 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11431     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11432 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11435     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11436 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11437     ( cat <<\_ASBOX
11438 ## ------------------------------ ##
11439 ## Report this to bugs@yourdomain ##
11440 ## ------------------------------ ##
11441 _ASBOX
11442      ) | sed "s/^/$as_me: WARNING:     /" >&2
11443     ;;
11444 esac
11445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11448   echo $ECHO_N "(cached) $ECHO_C" >&6
11449 else
11450   eval "$as_ac_Header=\$ac_header_preproc"
11451 fi
11452 ac_res=`eval echo '${'$as_ac_Header'}'`
11453                { echo "$as_me:$LINENO: result: $ac_res" >&5
11454 echo "${ECHO_T}$ac_res" >&6; }
11455
11456 fi
11457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11458   cat >>confdefs.h <<_ACEOF
11459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11460 _ACEOF
11461  break
11462 fi
11463
11464 done
11465
11466
11467
11468
11469 for ac_func in strchr index
11470 do
11471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11475   echo $ECHO_N "(cached) $ECHO_C" >&6
11476 else
11477   cat >conftest.$ac_ext <<_ACEOF
11478 /* confdefs.h.  */
11479 _ACEOF
11480 cat confdefs.h >>conftest.$ac_ext
11481 cat >>conftest.$ac_ext <<_ACEOF
11482 /* end confdefs.h.  */
11483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11485 #define $ac_func innocuous_$ac_func
11486
11487 /* System header to define __stub macros and hopefully few prototypes,
11488     which can conflict with char $ac_func (); below.
11489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11490     <limits.h> exists even on freestanding compilers.  */
11491
11492 #ifdef __STDC__
11493 # include <limits.h>
11494 #else
11495 # include <assert.h>
11496 #endif
11497
11498 #undef $ac_func
11499
11500 /* Override any GCC internal prototype to avoid an error.
11501    Use char because int might match the return type of a GCC
11502    builtin and then its argument prototype would still apply.  */
11503 #ifdef __cplusplus
11504 extern "C"
11505 #endif
11506 char $ac_func ();
11507 /* The GNU C library defines this for functions which it implements
11508     to always fail with ENOSYS.  Some functions are actually named
11509     something starting with __ and the normal name is an alias.  */
11510 #if defined __stub_$ac_func || defined __stub___$ac_func
11511 choke me
11512 #endif
11513
11514 int
11515 main ()
11516 {
11517 return $ac_func ();
11518   ;
11519   return 0;
11520 }
11521 _ACEOF
11522 rm -f conftest.$ac_objext conftest$ac_exeext
11523 if { (ac_try="$ac_link"
11524 case "(($ac_try" in
11525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526   *) ac_try_echo=$ac_try;;
11527 esac
11528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11529   (eval "$ac_link") 2>conftest.er1
11530   ac_status=$?
11531   grep -v '^ *+' conftest.er1 >conftest.err
11532   rm -f conftest.er1
11533   cat conftest.err >&5
11534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535   (exit $ac_status); } &&
11536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11537   { (case "(($ac_try" in
11538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11539   *) ac_try_echo=$ac_try;;
11540 esac
11541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11542   (eval "$ac_try") 2>&5
11543   ac_status=$?
11544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545   (exit $ac_status); }; } &&
11546          { ac_try='test -s conftest$ac_exeext'
11547   { (case "(($ac_try" in
11548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11549   *) ac_try_echo=$ac_try;;
11550 esac
11551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11552   (eval "$ac_try") 2>&5
11553   ac_status=$?
11554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555   (exit $ac_status); }; }; then
11556   eval "$as_ac_var=yes"
11557 else
11558   echo "$as_me: failed program was:" >&5
11559 sed 's/^/| /' conftest.$ac_ext >&5
11560
11561         eval "$as_ac_var=no"
11562 fi
11563
11564 rm -f core conftest.err conftest.$ac_objext \
11565       conftest$ac_exeext conftest.$ac_ext
11566 fi
11567 ac_res=`eval echo '${'$as_ac_var'}'`
11568                { echo "$as_me:$LINENO: result: $ac_res" >&5
11569 echo "${ECHO_T}$ac_res" >&6; }
11570 if test `eval echo '${'$as_ac_var'}'` = yes; then
11571   cat >>confdefs.h <<_ACEOF
11572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11573 _ACEOF
11574  break
11575 fi
11576 done
11577
11578
11579
11580 for ac_func in strrchr rindex
11581 do
11582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11583 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11586   echo $ECHO_N "(cached) $ECHO_C" >&6
11587 else
11588   cat >conftest.$ac_ext <<_ACEOF
11589 /* confdefs.h.  */
11590 _ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h.  */
11594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11596 #define $ac_func innocuous_$ac_func
11597
11598 /* System header to define __stub macros and hopefully few prototypes,
11599     which can conflict with char $ac_func (); below.
11600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11601     <limits.h> exists even on freestanding compilers.  */
11602
11603 #ifdef __STDC__
11604 # include <limits.h>
11605 #else
11606 # include <assert.h>
11607 #endif
11608
11609 #undef $ac_func
11610
11611 /* Override any GCC internal prototype to avoid an error.
11612    Use char because int might match the return type of a GCC
11613    builtin and then its argument prototype would still apply.  */
11614 #ifdef __cplusplus
11615 extern "C"
11616 #endif
11617 char $ac_func ();
11618 /* The GNU C library defines this for functions which it implements
11619     to always fail with ENOSYS.  Some functions are actually named
11620     something starting with __ and the normal name is an alias.  */
11621 #if defined __stub_$ac_func || defined __stub___$ac_func
11622 choke me
11623 #endif
11624
11625 int
11626 main ()
11627 {
11628 return $ac_func ();
11629   ;
11630   return 0;
11631 }
11632 _ACEOF
11633 rm -f conftest.$ac_objext conftest$ac_exeext
11634 if { (ac_try="$ac_link"
11635 case "(($ac_try" in
11636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637   *) ac_try_echo=$ac_try;;
11638 esac
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640   (eval "$ac_link") 2>conftest.er1
11641   ac_status=$?
11642   grep -v '^ *+' conftest.er1 >conftest.err
11643   rm -f conftest.er1
11644   cat conftest.err >&5
11645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646   (exit $ac_status); } &&
11647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11648   { (case "(($ac_try" in
11649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650   *) ac_try_echo=$ac_try;;
11651 esac
11652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11653   (eval "$ac_try") 2>&5
11654   ac_status=$?
11655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656   (exit $ac_status); }; } &&
11657          { ac_try='test -s conftest$ac_exeext'
11658   { (case "(($ac_try" in
11659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11660   *) ac_try_echo=$ac_try;;
11661 esac
11662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11663   (eval "$ac_try") 2>&5
11664   ac_status=$?
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); }; }; then
11667   eval "$as_ac_var=yes"
11668 else
11669   echo "$as_me: failed program was:" >&5
11670 sed 's/^/| /' conftest.$ac_ext >&5
11671
11672         eval "$as_ac_var=no"
11673 fi
11674
11675 rm -f core conftest.err conftest.$ac_objext \
11676       conftest$ac_exeext conftest.$ac_ext
11677 fi
11678 ac_res=`eval echo '${'$as_ac_var'}'`
11679                { echo "$as_me:$LINENO: result: $ac_res" >&5
11680 echo "${ECHO_T}$ac_res" >&6; }
11681 if test `eval echo '${'$as_ac_var'}'` = yes; then
11682   cat >>confdefs.h <<_ACEOF
11683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11684 _ACEOF
11685  break
11686 fi
11687 done
11688
11689
11690
11691 for ac_func in memcpy bcopy
11692 do
11693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11694 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11697   echo $ECHO_N "(cached) $ECHO_C" >&6
11698 else
11699   cat >conftest.$ac_ext <<_ACEOF
11700 /* confdefs.h.  */
11701 _ACEOF
11702 cat confdefs.h >>conftest.$ac_ext
11703 cat >>conftest.$ac_ext <<_ACEOF
11704 /* end confdefs.h.  */
11705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11706    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11707 #define $ac_func innocuous_$ac_func
11708
11709 /* System header to define __stub macros and hopefully few prototypes,
11710     which can conflict with char $ac_func (); below.
11711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11712     <limits.h> exists even on freestanding compilers.  */
11713
11714 #ifdef __STDC__
11715 # include <limits.h>
11716 #else
11717 # include <assert.h>
11718 #endif
11719
11720 #undef $ac_func
11721
11722 /* Override any GCC internal prototype to avoid an error.
11723    Use char because int might match the return type of a GCC
11724    builtin and then its argument prototype would still apply.  */
11725 #ifdef __cplusplus
11726 extern "C"
11727 #endif
11728 char $ac_func ();
11729 /* The GNU C library defines this for functions which it implements
11730     to always fail with ENOSYS.  Some functions are actually named
11731     something starting with __ and the normal name is an alias.  */
11732 #if defined __stub_$ac_func || defined __stub___$ac_func
11733 choke me
11734 #endif
11735
11736 int
11737 main ()
11738 {
11739 return $ac_func ();
11740   ;
11741   return 0;
11742 }
11743 _ACEOF
11744 rm -f conftest.$ac_objext conftest$ac_exeext
11745 if { (ac_try="$ac_link"
11746 case "(($ac_try" in
11747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748   *) ac_try_echo=$ac_try;;
11749 esac
11750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751   (eval "$ac_link") 2>conftest.er1
11752   ac_status=$?
11753   grep -v '^ *+' conftest.er1 >conftest.err
11754   rm -f conftest.er1
11755   cat conftest.err >&5
11756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757   (exit $ac_status); } &&
11758          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11759   { (case "(($ac_try" in
11760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11761   *) ac_try_echo=$ac_try;;
11762 esac
11763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11764   (eval "$ac_try") 2>&5
11765   ac_status=$?
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); }; } &&
11768          { ac_try='test -s conftest$ac_exeext'
11769   { (case "(($ac_try" in
11770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11771   *) ac_try_echo=$ac_try;;
11772 esac
11773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11774   (eval "$ac_try") 2>&5
11775   ac_status=$?
11776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); }; }; then
11778   eval "$as_ac_var=yes"
11779 else
11780   echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11782
11783         eval "$as_ac_var=no"
11784 fi
11785
11786 rm -f core conftest.err conftest.$ac_objext \
11787       conftest$ac_exeext conftest.$ac_ext
11788 fi
11789 ac_res=`eval echo '${'$as_ac_var'}'`
11790                { echo "$as_me:$LINENO: result: $ac_res" >&5
11791 echo "${ECHO_T}$ac_res" >&6; }
11792 if test `eval echo '${'$as_ac_var'}'` = yes; then
11793   cat >>confdefs.h <<_ACEOF
11794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11795 _ACEOF
11796  break
11797 fi
11798 done
11799
11800
11801
11802 for ac_func in memmove strcmp
11803 do
11804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11805 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11807 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11808   echo $ECHO_N "(cached) $ECHO_C" >&6
11809 else
11810   cat >conftest.$ac_ext <<_ACEOF
11811 /* confdefs.h.  */
11812 _ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h.  */
11816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11817    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11818 #define $ac_func innocuous_$ac_func
11819
11820 /* System header to define __stub macros and hopefully few prototypes,
11821     which can conflict with char $ac_func (); below.
11822     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11823     <limits.h> exists even on freestanding compilers.  */
11824
11825 #ifdef __STDC__
11826 # include <limits.h>
11827 #else
11828 # include <assert.h>
11829 #endif
11830
11831 #undef $ac_func
11832
11833 /* Override any GCC internal prototype to avoid an error.
11834    Use char because int might match the return type of a GCC
11835    builtin and then its argument prototype would still apply.  */
11836 #ifdef __cplusplus
11837 extern "C"
11838 #endif
11839 char $ac_func ();
11840 /* The GNU C library defines this for functions which it implements
11841     to always fail with ENOSYS.  Some functions are actually named
11842     something starting with __ and the normal name is an alias.  */
11843 #if defined __stub_$ac_func || defined __stub___$ac_func
11844 choke me
11845 #endif
11846
11847 int
11848 main ()
11849 {
11850 return $ac_func ();
11851   ;
11852   return 0;
11853 }
11854 _ACEOF
11855 rm -f conftest.$ac_objext conftest$ac_exeext
11856 if { (ac_try="$ac_link"
11857 case "(($ac_try" in
11858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859   *) ac_try_echo=$ac_try;;
11860 esac
11861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862   (eval "$ac_link") 2>conftest.er1
11863   ac_status=$?
11864   grep -v '^ *+' conftest.er1 >conftest.err
11865   rm -f conftest.er1
11866   cat conftest.err >&5
11867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868   (exit $ac_status); } &&
11869          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11870   { (case "(($ac_try" in
11871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872   *) ac_try_echo=$ac_try;;
11873 esac
11874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11875   (eval "$ac_try") 2>&5
11876   ac_status=$?
11877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878   (exit $ac_status); }; } &&
11879          { ac_try='test -s conftest$ac_exeext'
11880   { (case "(($ac_try" in
11881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11882   *) ac_try_echo=$ac_try;;
11883 esac
11884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11885   (eval "$ac_try") 2>&5
11886   ac_status=$?
11887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888   (exit $ac_status); }; }; then
11889   eval "$as_ac_var=yes"
11890 else
11891   echo "$as_me: failed program was:" >&5
11892 sed 's/^/| /' conftest.$ac_ext >&5
11893
11894         eval "$as_ac_var=no"
11895 fi
11896
11897 rm -f core conftest.err conftest.$ac_objext \
11898       conftest$ac_exeext conftest.$ac_ext
11899 fi
11900 ac_res=`eval echo '${'$as_ac_var'}'`
11901                { echo "$as_me:$LINENO: result: $ac_res" >&5
11902 echo "${ECHO_T}$ac_res" >&6; }
11903 if test `eval echo '${'$as_ac_var'}'` = yes; then
11904   cat >>confdefs.h <<_ACEOF
11905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11906 _ACEOF
11907
11908 fi
11909 done
11910
11911
11912
11913
11914 for ac_func in closedir opendir readdir
11915 do
11916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11917 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11919 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11920   echo $ECHO_N "(cached) $ECHO_C" >&6
11921 else
11922   cat >conftest.$ac_ext <<_ACEOF
11923 /* confdefs.h.  */
11924 _ACEOF
11925 cat confdefs.h >>conftest.$ac_ext
11926 cat >>conftest.$ac_ext <<_ACEOF
11927 /* end confdefs.h.  */
11928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11929    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11930 #define $ac_func innocuous_$ac_func
11931
11932 /* System header to define __stub macros and hopefully few prototypes,
11933     which can conflict with char $ac_func (); below.
11934     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11935     <limits.h> exists even on freestanding compilers.  */
11936
11937 #ifdef __STDC__
11938 # include <limits.h>
11939 #else
11940 # include <assert.h>
11941 #endif
11942
11943 #undef $ac_func
11944
11945 /* Override any GCC internal prototype to avoid an error.
11946    Use char because int might match the return type of a GCC
11947    builtin and then its argument prototype would still apply.  */
11948 #ifdef __cplusplus
11949 extern "C"
11950 #endif
11951 char $ac_func ();
11952 /* The GNU C library defines this for functions which it implements
11953     to always fail with ENOSYS.  Some functions are actually named
11954     something starting with __ and the normal name is an alias.  */
11955 #if defined __stub_$ac_func || defined __stub___$ac_func
11956 choke me
11957 #endif
11958
11959 int
11960 main ()
11961 {
11962 return $ac_func ();
11963   ;
11964   return 0;
11965 }
11966 _ACEOF
11967 rm -f conftest.$ac_objext conftest$ac_exeext
11968 if { (ac_try="$ac_link"
11969 case "(($ac_try" in
11970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971   *) ac_try_echo=$ac_try;;
11972 esac
11973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974   (eval "$ac_link") 2>conftest.er1
11975   ac_status=$?
11976   grep -v '^ *+' conftest.er1 >conftest.err
11977   rm -f conftest.er1
11978   cat conftest.err >&5
11979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980   (exit $ac_status); } &&
11981          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11982   { (case "(($ac_try" in
11983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984   *) ac_try_echo=$ac_try;;
11985 esac
11986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987   (eval "$ac_try") 2>&5
11988   ac_status=$?
11989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990   (exit $ac_status); }; } &&
11991          { ac_try='test -s conftest$ac_exeext'
11992   { (case "(($ac_try" in
11993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994   *) ac_try_echo=$ac_try;;
11995 esac
11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997   (eval "$ac_try") 2>&5
11998   ac_status=$?
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); }; }; then
12001   eval "$as_ac_var=yes"
12002 else
12003   echo "$as_me: failed program was:" >&5
12004 sed 's/^/| /' conftest.$ac_ext >&5
12005
12006         eval "$as_ac_var=no"
12007 fi
12008
12009 rm -f core conftest.err conftest.$ac_objext \
12010       conftest$ac_exeext conftest.$ac_ext
12011 fi
12012 ac_res=`eval echo '${'$as_ac_var'}'`
12013                { echo "$as_me:$LINENO: result: $ac_res" >&5
12014 echo "${ECHO_T}$ac_res" >&6; }
12015 if test `eval echo '${'$as_ac_var'}'` = yes; then
12016   cat >>confdefs.h <<_ACEOF
12017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12018 _ACEOF
12019
12020 fi
12021 done
12022
12023
12024
12025 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12026 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12027
12028 ICC=no
12029 IXX=no
12030 case $CC in
12031   icc*|icpc*)
12032     ICC=yes
12033     IXX=yes
12034     ;;
12035    *)
12036     ;;
12037 esac
12038
12039 if test "$GCC" != "yes" && test "$ICC" != "yes"
12040 then
12041   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12042 echo "$as_me: error: gcc|icc required but not found" >&2;}
12043    { (exit 1); exit 1; }; }
12044 fi
12045
12046 if test "$GXX" != "yes" && test "$IXX" != "yes"
12047 then
12048   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12049 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12050    { (exit 1); exit 1; }; }
12051 fi
12052
12053 if test "$GCC" = "yes"
12054 then
12055   cat >conftest.$ac_ext <<_ACEOF
12056 #if !defined(__GNUC__) || __GNUC__ < 3
12057 #error Unsupported GCC version
12058 #endif
12059
12060 _ACEOF
12061 rm -f conftest.$ac_objext
12062 if { (ac_try="$ac_compile"
12063 case "(($ac_try" in
12064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065   *) ac_try_echo=$ac_try;;
12066 esac
12067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12068   (eval "$ac_compile") 2>conftest.er1
12069   ac_status=$?
12070   grep -v '^ *+' conftest.er1 >conftest.err
12071   rm -f conftest.er1
12072   cat conftest.err >&5
12073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074   (exit $ac_status); } &&
12075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12076   { (case "(($ac_try" in
12077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078   *) ac_try_echo=$ac_try;;
12079 esac
12080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12081   (eval "$ac_try") 2>&5
12082   ac_status=$?
12083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084   (exit $ac_status); }; } &&
12085          { ac_try='test -s conftest.$ac_objext'
12086   { (case "(($ac_try" in
12087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12088   *) ac_try_echo=$ac_try;;
12089 esac
12090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12091   (eval "$ac_try") 2>&5
12092   ac_status=$?
12093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094   (exit $ac_status); }; }; then
12095   :
12096 else
12097   echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.$ac_ext >&5
12099
12100         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12101 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12102    { (exit 1); exit 1; }; }
12103 fi
12104
12105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12106 fi
12107
12108 if test -z "$llvm_cv_gnu_make_command"
12109 then
12110   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12111 echo "$as_me: error: GNU Make required but not found" >&2;}
12112    { (exit 1); exit 1; }; }
12113 fi
12114
12115 { echo "$as_me:$LINENO: result: ok" >&5
12116 echo "${ECHO_T}ok" >&6; }
12117
12118 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12119 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12120 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12121
12122 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12123
12124 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12125
12126 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12127 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12128
12129
12130
12131 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12132 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12133 if test "${ac_cv_lib_m_sin+set}" = set; then
12134   echo $ECHO_N "(cached) $ECHO_C" >&6
12135 else
12136   ac_check_lib_save_LIBS=$LIBS
12137 LIBS="-lm  $LIBS"
12138 cat >conftest.$ac_ext <<_ACEOF
12139 /* confdefs.h.  */
12140 _ACEOF
12141 cat confdefs.h >>conftest.$ac_ext
12142 cat >>conftest.$ac_ext <<_ACEOF
12143 /* end confdefs.h.  */
12144
12145 /* Override any GCC internal prototype to avoid an error.
12146    Use char because int might match the return type of a GCC
12147    builtin and then its argument prototype would still apply.  */
12148 #ifdef __cplusplus
12149 extern "C"
12150 #endif
12151 char sin ();
12152 int
12153 main ()
12154 {
12155 return sin ();
12156   ;
12157   return 0;
12158 }
12159 _ACEOF
12160 rm -f conftest.$ac_objext conftest$ac_exeext
12161 if { (ac_try="$ac_link"
12162 case "(($ac_try" in
12163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12164   *) ac_try_echo=$ac_try;;
12165 esac
12166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12167   (eval "$ac_link") 2>conftest.er1
12168   ac_status=$?
12169   grep -v '^ *+' conftest.er1 >conftest.err
12170   rm -f conftest.er1
12171   cat conftest.err >&5
12172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173   (exit $ac_status); } &&
12174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12175   { (case "(($ac_try" in
12176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177   *) ac_try_echo=$ac_try;;
12178 esac
12179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180   (eval "$ac_try") 2>&5
12181   ac_status=$?
12182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183   (exit $ac_status); }; } &&
12184          { ac_try='test -s conftest$ac_exeext'
12185   { (case "(($ac_try" in
12186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12187   *) ac_try_echo=$ac_try;;
12188 esac
12189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12190   (eval "$ac_try") 2>&5
12191   ac_status=$?
12192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193   (exit $ac_status); }; }; then
12194   ac_cv_lib_m_sin=yes
12195 else
12196   echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.$ac_ext >&5
12198
12199         ac_cv_lib_m_sin=no
12200 fi
12201
12202 rm -f core conftest.err conftest.$ac_objext \
12203       conftest$ac_exeext conftest.$ac_ext
12204 LIBS=$ac_check_lib_save_LIBS
12205 fi
12206 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12207 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12208 if test $ac_cv_lib_m_sin = yes; then
12209   cat >>confdefs.h <<_ACEOF
12210 #define HAVE_LIBM 1
12211 _ACEOF
12212
12213   LIBS="-lm $LIBS"
12214
12215 fi
12216
12217 if test "$llvm_cv_os_type" = "MingW" ; then
12218
12219 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12220 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12221 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12222   echo $ECHO_N "(cached) $ECHO_C" >&6
12223 else
12224   ac_check_lib_save_LIBS=$LIBS
12225 LIBS="-limagehlp  $LIBS"
12226 cat >conftest.$ac_ext <<_ACEOF
12227 /* confdefs.h.  */
12228 _ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h.  */
12232
12233
12234 int
12235 main ()
12236 {
12237 return main ();
12238   ;
12239   return 0;
12240 }
12241 _ACEOF
12242 rm -f conftest.$ac_objext conftest$ac_exeext
12243 if { (ac_try="$ac_link"
12244 case "(($ac_try" in
12245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12246   *) ac_try_echo=$ac_try;;
12247 esac
12248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249   (eval "$ac_link") 2>conftest.er1
12250   ac_status=$?
12251   grep -v '^ *+' conftest.er1 >conftest.err
12252   rm -f conftest.er1
12253   cat conftest.err >&5
12254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255   (exit $ac_status); } &&
12256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12257   { (case "(($ac_try" in
12258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12259   *) ac_try_echo=$ac_try;;
12260 esac
12261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12262   (eval "$ac_try") 2>&5
12263   ac_status=$?
12264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265   (exit $ac_status); }; } &&
12266          { ac_try='test -s conftest$ac_exeext'
12267   { (case "(($ac_try" in
12268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269   *) ac_try_echo=$ac_try;;
12270 esac
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272   (eval "$ac_try") 2>&5
12273   ac_status=$?
12274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275   (exit $ac_status); }; }; then
12276   ac_cv_lib_imagehlp_main=yes
12277 else
12278   echo "$as_me: failed program was:" >&5
12279 sed 's/^/| /' conftest.$ac_ext >&5
12280
12281         ac_cv_lib_imagehlp_main=no
12282 fi
12283
12284 rm -f core conftest.err conftest.$ac_objext \
12285       conftest$ac_exeext conftest.$ac_ext
12286 LIBS=$ac_check_lib_save_LIBS
12287 fi
12288 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12289 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12290 if test $ac_cv_lib_imagehlp_main = yes; then
12291   cat >>confdefs.h <<_ACEOF
12292 #define HAVE_LIBIMAGEHLP 1
12293 _ACEOF
12294
12295   LIBS="-limagehlp $LIBS"
12296
12297 fi
12298
12299
12300 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12301 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12302 if test "${ac_cv_lib_psapi_main+set}" = set; then
12303   echo $ECHO_N "(cached) $ECHO_C" >&6
12304 else
12305   ac_check_lib_save_LIBS=$LIBS
12306 LIBS="-lpsapi  $LIBS"
12307 cat >conftest.$ac_ext <<_ACEOF
12308 /* confdefs.h.  */
12309 _ACEOF
12310 cat confdefs.h >>conftest.$ac_ext
12311 cat >>conftest.$ac_ext <<_ACEOF
12312 /* end confdefs.h.  */
12313
12314
12315 int
12316 main ()
12317 {
12318 return main ();
12319   ;
12320   return 0;
12321 }
12322 _ACEOF
12323 rm -f conftest.$ac_objext conftest$ac_exeext
12324 if { (ac_try="$ac_link"
12325 case "(($ac_try" in
12326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327   *) ac_try_echo=$ac_try;;
12328 esac
12329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330   (eval "$ac_link") 2>conftest.er1
12331   ac_status=$?
12332   grep -v '^ *+' conftest.er1 >conftest.err
12333   rm -f conftest.er1
12334   cat conftest.err >&5
12335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336   (exit $ac_status); } &&
12337          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12338   { (case "(($ac_try" in
12339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340   *) ac_try_echo=$ac_try;;
12341 esac
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343   (eval "$ac_try") 2>&5
12344   ac_status=$?
12345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346   (exit $ac_status); }; } &&
12347          { ac_try='test -s conftest$ac_exeext'
12348   { (case "(($ac_try" in
12349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350   *) ac_try_echo=$ac_try;;
12351 esac
12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353   (eval "$ac_try") 2>&5
12354   ac_status=$?
12355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); }; }; then
12357   ac_cv_lib_psapi_main=yes
12358 else
12359   echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12361
12362         ac_cv_lib_psapi_main=no
12363 fi
12364
12365 rm -f core conftest.err conftest.$ac_objext \
12366       conftest$ac_exeext conftest.$ac_ext
12367 LIBS=$ac_check_lib_save_LIBS
12368 fi
12369 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12370 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12371 if test $ac_cv_lib_psapi_main = yes; then
12372   cat >>confdefs.h <<_ACEOF
12373 #define HAVE_LIBPSAPI 1
12374 _ACEOF
12375
12376   LIBS="-lpsapi $LIBS"
12377
12378 fi
12379
12380 fi
12381
12382 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12383 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12384 if test "${ac_cv_search_dlopen+set}" = set; then
12385   echo $ECHO_N "(cached) $ECHO_C" >&6
12386 else
12387   ac_func_search_save_LIBS=$LIBS
12388 cat >conftest.$ac_ext <<_ACEOF
12389 /* confdefs.h.  */
12390 _ACEOF
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h.  */
12394
12395 /* Override any GCC internal prototype to avoid an error.
12396    Use char because int might match the return type of a GCC
12397    builtin and then its argument prototype would still apply.  */
12398 #ifdef __cplusplus
12399 extern "C"
12400 #endif
12401 char dlopen ();
12402 int
12403 main ()
12404 {
12405 return dlopen ();
12406   ;
12407   return 0;
12408 }
12409 _ACEOF
12410 for ac_lib in '' dl; do
12411   if test -z "$ac_lib"; then
12412     ac_res="none required"
12413   else
12414     ac_res=-l$ac_lib
12415     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12416   fi
12417   rm -f conftest.$ac_objext conftest$ac_exeext
12418 if { (ac_try="$ac_link"
12419 case "(($ac_try" in
12420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421   *) ac_try_echo=$ac_try;;
12422 esac
12423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424   (eval "$ac_link") 2>conftest.er1
12425   ac_status=$?
12426   grep -v '^ *+' conftest.er1 >conftest.err
12427   rm -f conftest.er1
12428   cat conftest.err >&5
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); } &&
12431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12432   { (case "(($ac_try" in
12433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434   *) ac_try_echo=$ac_try;;
12435 esac
12436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12437   (eval "$ac_try") 2>&5
12438   ac_status=$?
12439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440   (exit $ac_status); }; } &&
12441          { ac_try='test -s conftest$ac_exeext'
12442   { (case "(($ac_try" in
12443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12444   *) ac_try_echo=$ac_try;;
12445 esac
12446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12447   (eval "$ac_try") 2>&5
12448   ac_status=$?
12449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450   (exit $ac_status); }; }; then
12451   ac_cv_search_dlopen=$ac_res
12452 else
12453   echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12455
12456
12457 fi
12458
12459 rm -f core conftest.err conftest.$ac_objext \
12460       conftest$ac_exeext
12461   if test "${ac_cv_search_dlopen+set}" = set; then
12462   break
12463 fi
12464 done
12465 if test "${ac_cv_search_dlopen+set}" = set; then
12466   :
12467 else
12468   ac_cv_search_dlopen=no
12469 fi
12470 rm conftest.$ac_ext
12471 LIBS=$ac_func_search_save_LIBS
12472 fi
12473 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12474 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12475 ac_res=$ac_cv_search_dlopen
12476 if test "$ac_res" != no; then
12477   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12478
12479 cat >>confdefs.h <<\_ACEOF
12480 #define HAVE_DLOPEN 1
12481 _ACEOF
12482
12483 else
12484   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12485 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12486 fi
12487
12488
12489 if test "$llvm_cv_enable_libffi" = "yes" ; then
12490   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12491 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12492 if test "${ac_cv_search_ffi_call+set}" = set; then
12493   echo $ECHO_N "(cached) $ECHO_C" >&6
12494 else
12495   ac_func_search_save_LIBS=$LIBS
12496 cat >conftest.$ac_ext <<_ACEOF
12497 /* confdefs.h.  */
12498 _ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h.  */
12502
12503 /* Override any GCC internal prototype to avoid an error.
12504    Use char because int might match the return type of a GCC
12505    builtin and then its argument prototype would still apply.  */
12506 #ifdef __cplusplus
12507 extern "C"
12508 #endif
12509 char ffi_call ();
12510 int
12511 main ()
12512 {
12513 return ffi_call ();
12514   ;
12515   return 0;
12516 }
12517 _ACEOF
12518 for ac_lib in '' ffi; do
12519   if test -z "$ac_lib"; then
12520     ac_res="none required"
12521   else
12522     ac_res=-l$ac_lib
12523     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12524   fi
12525   rm -f conftest.$ac_objext conftest$ac_exeext
12526 if { (ac_try="$ac_link"
12527 case "(($ac_try" in
12528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529   *) ac_try_echo=$ac_try;;
12530 esac
12531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532   (eval "$ac_link") 2>conftest.er1
12533   ac_status=$?
12534   grep -v '^ *+' conftest.er1 >conftest.err
12535   rm -f conftest.er1
12536   cat conftest.err >&5
12537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538   (exit $ac_status); } &&
12539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12540   { (case "(($ac_try" in
12541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12542   *) ac_try_echo=$ac_try;;
12543 esac
12544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12545   (eval "$ac_try") 2>&5
12546   ac_status=$?
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); }; } &&
12549          { ac_try='test -s conftest$ac_exeext'
12550   { (case "(($ac_try" in
12551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552   *) ac_try_echo=$ac_try;;
12553 esac
12554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12555   (eval "$ac_try") 2>&5
12556   ac_status=$?
12557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558   (exit $ac_status); }; }; then
12559   ac_cv_search_ffi_call=$ac_res
12560 else
12561   echo "$as_me: failed program was:" >&5
12562 sed 's/^/| /' conftest.$ac_ext >&5
12563
12564
12565 fi
12566
12567 rm -f core conftest.err conftest.$ac_objext \
12568       conftest$ac_exeext
12569   if test "${ac_cv_search_ffi_call+set}" = set; then
12570   break
12571 fi
12572 done
12573 if test "${ac_cv_search_ffi_call+set}" = set; then
12574   :
12575 else
12576   ac_cv_search_ffi_call=no
12577 fi
12578 rm conftest.$ac_ext
12579 LIBS=$ac_func_search_save_LIBS
12580 fi
12581 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12582 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12583 ac_res=$ac_cv_search_ffi_call
12584 if test "$ac_res" != no; then
12585   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12586
12587 cat >>confdefs.h <<\_ACEOF
12588 #define HAVE_FFI_CALL 1
12589 _ACEOF
12590
12591 else
12592   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12593 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12594    { (exit 1); exit 1; }; }
12595 fi
12596
12597 fi
12598
12599 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12600 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12601 if test "${ac_cv_search_mallinfo+set}" = set; then
12602   echo $ECHO_N "(cached) $ECHO_C" >&6
12603 else
12604   ac_func_search_save_LIBS=$LIBS
12605 cat >conftest.$ac_ext <<_ACEOF
12606 /* confdefs.h.  */
12607 _ACEOF
12608 cat confdefs.h >>conftest.$ac_ext
12609 cat >>conftest.$ac_ext <<_ACEOF
12610 /* end confdefs.h.  */
12611
12612 /* Override any GCC internal prototype to avoid an error.
12613    Use char because int might match the return type of a GCC
12614    builtin and then its argument prototype would still apply.  */
12615 #ifdef __cplusplus
12616 extern "C"
12617 #endif
12618 char mallinfo ();
12619 int
12620 main ()
12621 {
12622 return mallinfo ();
12623   ;
12624   return 0;
12625 }
12626 _ACEOF
12627 for ac_lib in '' malloc; do
12628   if test -z "$ac_lib"; then
12629     ac_res="none required"
12630   else
12631     ac_res=-l$ac_lib
12632     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12633   fi
12634   rm -f conftest.$ac_objext conftest$ac_exeext
12635 if { (ac_try="$ac_link"
12636 case "(($ac_try" in
12637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638   *) ac_try_echo=$ac_try;;
12639 esac
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641   (eval "$ac_link") 2>conftest.er1
12642   ac_status=$?
12643   grep -v '^ *+' conftest.er1 >conftest.err
12644   rm -f conftest.er1
12645   cat conftest.err >&5
12646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647   (exit $ac_status); } &&
12648          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12649   { (case "(($ac_try" in
12650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651   *) ac_try_echo=$ac_try;;
12652 esac
12653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12654   (eval "$ac_try") 2>&5
12655   ac_status=$?
12656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657   (exit $ac_status); }; } &&
12658          { ac_try='test -s conftest$ac_exeext'
12659   { (case "(($ac_try" in
12660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12661   *) ac_try_echo=$ac_try;;
12662 esac
12663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12664   (eval "$ac_try") 2>&5
12665   ac_status=$?
12666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667   (exit $ac_status); }; }; then
12668   ac_cv_search_mallinfo=$ac_res
12669 else
12670   echo "$as_me: failed program was:" >&5
12671 sed 's/^/| /' conftest.$ac_ext >&5
12672
12673
12674 fi
12675
12676 rm -f core conftest.err conftest.$ac_objext \
12677       conftest$ac_exeext
12678   if test "${ac_cv_search_mallinfo+set}" = set; then
12679   break
12680 fi
12681 done
12682 if test "${ac_cv_search_mallinfo+set}" = set; then
12683   :
12684 else
12685   ac_cv_search_mallinfo=no
12686 fi
12687 rm conftest.$ac_ext
12688 LIBS=$ac_func_search_save_LIBS
12689 fi
12690 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12691 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12692 ac_res=$ac_cv_search_mallinfo
12693 if test "$ac_res" != no; then
12694   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12695
12696 cat >>confdefs.h <<\_ACEOF
12697 #define HAVE_MALLINFO 1
12698 _ACEOF
12699
12700 fi
12701
12702
12703 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12704
12705 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12706 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12707 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12708   echo $ECHO_N "(cached) $ECHO_C" >&6
12709 else
12710   ac_check_lib_save_LIBS=$LIBS
12711 LIBS="-lpthread  $LIBS"
12712 cat >conftest.$ac_ext <<_ACEOF
12713 /* confdefs.h.  */
12714 _ACEOF
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h.  */
12718
12719 /* Override any GCC internal prototype to avoid an error.
12720    Use char because int might match the return type of a GCC
12721    builtin and then its argument prototype would still apply.  */
12722 #ifdef __cplusplus
12723 extern "C"
12724 #endif
12725 char pthread_mutex_init ();
12726 int
12727 main ()
12728 {
12729 return pthread_mutex_init ();
12730   ;
12731   return 0;
12732 }
12733 _ACEOF
12734 rm -f conftest.$ac_objext conftest$ac_exeext
12735 if { (ac_try="$ac_link"
12736 case "(($ac_try" in
12737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738   *) ac_try_echo=$ac_try;;
12739 esac
12740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741   (eval "$ac_link") 2>conftest.er1
12742   ac_status=$?
12743   grep -v '^ *+' conftest.er1 >conftest.err
12744   rm -f conftest.er1
12745   cat conftest.err >&5
12746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747   (exit $ac_status); } &&
12748          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12749   { (case "(($ac_try" in
12750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12751   *) ac_try_echo=$ac_try;;
12752 esac
12753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12754   (eval "$ac_try") 2>&5
12755   ac_status=$?
12756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757   (exit $ac_status); }; } &&
12758          { ac_try='test -s conftest$ac_exeext'
12759   { (case "(($ac_try" in
12760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12761   *) ac_try_echo=$ac_try;;
12762 esac
12763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12764   (eval "$ac_try") 2>&5
12765   ac_status=$?
12766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767   (exit $ac_status); }; }; then
12768   ac_cv_lib_pthread_pthread_mutex_init=yes
12769 else
12770   echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.$ac_ext >&5
12772
12773         ac_cv_lib_pthread_pthread_mutex_init=no
12774 fi
12775
12776 rm -f core conftest.err conftest.$ac_objext \
12777       conftest$ac_exeext conftest.$ac_ext
12778 LIBS=$ac_check_lib_save_LIBS
12779 fi
12780 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12781 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12782 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12783   cat >>confdefs.h <<_ACEOF
12784 #define HAVE_LIBPTHREAD 1
12785 _ACEOF
12786
12787   LIBS="-lpthread $LIBS"
12788
12789 fi
12790
12791   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12792 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12793 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12794   echo $ECHO_N "(cached) $ECHO_C" >&6
12795 else
12796   ac_func_search_save_LIBS=$LIBS
12797 cat >conftest.$ac_ext <<_ACEOF
12798 /* confdefs.h.  */
12799 _ACEOF
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h.  */
12803
12804 /* Override any GCC internal prototype to avoid an error.
12805    Use char because int might match the return type of a GCC
12806    builtin and then its argument prototype would still apply.  */
12807 #ifdef __cplusplus
12808 extern "C"
12809 #endif
12810 char pthread_mutex_lock ();
12811 int
12812 main ()
12813 {
12814 return pthread_mutex_lock ();
12815   ;
12816   return 0;
12817 }
12818 _ACEOF
12819 for ac_lib in '' pthread; do
12820   if test -z "$ac_lib"; then
12821     ac_res="none required"
12822   else
12823     ac_res=-l$ac_lib
12824     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12825   fi
12826   rm -f conftest.$ac_objext conftest$ac_exeext
12827 if { (ac_try="$ac_link"
12828 case "(($ac_try" in
12829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830   *) ac_try_echo=$ac_try;;
12831 esac
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833   (eval "$ac_link") 2>conftest.er1
12834   ac_status=$?
12835   grep -v '^ *+' conftest.er1 >conftest.err
12836   rm -f conftest.er1
12837   cat conftest.err >&5
12838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839   (exit $ac_status); } &&
12840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12841   { (case "(($ac_try" in
12842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12843   *) ac_try_echo=$ac_try;;
12844 esac
12845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12846   (eval "$ac_try") 2>&5
12847   ac_status=$?
12848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849   (exit $ac_status); }; } &&
12850          { ac_try='test -s conftest$ac_exeext'
12851   { (case "(($ac_try" in
12852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12853   *) ac_try_echo=$ac_try;;
12854 esac
12855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12856   (eval "$ac_try") 2>&5
12857   ac_status=$?
12858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859   (exit $ac_status); }; }; then
12860   ac_cv_search_pthread_mutex_lock=$ac_res
12861 else
12862   echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12864
12865
12866 fi
12867
12868 rm -f core conftest.err conftest.$ac_objext \
12869       conftest$ac_exeext
12870   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12871   break
12872 fi
12873 done
12874 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12875   :
12876 else
12877   ac_cv_search_pthread_mutex_lock=no
12878 fi
12879 rm conftest.$ac_ext
12880 LIBS=$ac_func_search_save_LIBS
12881 fi
12882 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12883 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12884 ac_res=$ac_cv_search_pthread_mutex_lock
12885 if test "$ac_res" != no; then
12886   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12887
12888 cat >>confdefs.h <<\_ACEOF
12889 #define HAVE_PTHREAD_MUTEX_LOCK 1
12890 _ACEOF
12891
12892 fi
12893
12894   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12895 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12896 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12897   echo $ECHO_N "(cached) $ECHO_C" >&6
12898 else
12899   ac_func_search_save_LIBS=$LIBS
12900 cat >conftest.$ac_ext <<_ACEOF
12901 /* confdefs.h.  */
12902 _ACEOF
12903 cat confdefs.h >>conftest.$ac_ext
12904 cat >>conftest.$ac_ext <<_ACEOF
12905 /* end confdefs.h.  */
12906
12907 /* Override any GCC internal prototype to avoid an error.
12908    Use char because int might match the return type of a GCC
12909    builtin and then its argument prototype would still apply.  */
12910 #ifdef __cplusplus
12911 extern "C"
12912 #endif
12913 char pthread_rwlock_init ();
12914 int
12915 main ()
12916 {
12917 return pthread_rwlock_init ();
12918   ;
12919   return 0;
12920 }
12921 _ACEOF
12922 for ac_lib in '' pthread; do
12923   if test -z "$ac_lib"; then
12924     ac_res="none required"
12925   else
12926     ac_res=-l$ac_lib
12927     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12928   fi
12929   rm -f conftest.$ac_objext conftest$ac_exeext
12930 if { (ac_try="$ac_link"
12931 case "(($ac_try" in
12932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12933   *) ac_try_echo=$ac_try;;
12934 esac
12935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12936   (eval "$ac_link") 2>conftest.er1
12937   ac_status=$?
12938   grep -v '^ *+' conftest.er1 >conftest.err
12939   rm -f conftest.er1
12940   cat conftest.err >&5
12941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942   (exit $ac_status); } &&
12943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12944   { (case "(($ac_try" in
12945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946   *) ac_try_echo=$ac_try;;
12947 esac
12948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12949   (eval "$ac_try") 2>&5
12950   ac_status=$?
12951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952   (exit $ac_status); }; } &&
12953          { ac_try='test -s conftest$ac_exeext'
12954   { (case "(($ac_try" in
12955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956   *) ac_try_echo=$ac_try;;
12957 esac
12958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959   (eval "$ac_try") 2>&5
12960   ac_status=$?
12961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962   (exit $ac_status); }; }; then
12963   ac_cv_search_pthread_rwlock_init=$ac_res
12964 else
12965   echo "$as_me: failed program was:" >&5
12966 sed 's/^/| /' conftest.$ac_ext >&5
12967
12968
12969 fi
12970
12971 rm -f core conftest.err conftest.$ac_objext \
12972       conftest$ac_exeext
12973   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12974   break
12975 fi
12976 done
12977 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12978   :
12979 else
12980   ac_cv_search_pthread_rwlock_init=no
12981 fi
12982 rm conftest.$ac_ext
12983 LIBS=$ac_func_search_save_LIBS
12984 fi
12985 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12986 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12987 ac_res=$ac_cv_search_pthread_rwlock_init
12988 if test "$ac_res" != no; then
12989   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12990
12991 cat >>confdefs.h <<\_ACEOF
12992 #define HAVE_PTHREAD_RWLOCK_INIT 1
12993 _ACEOF
12994
12995 fi
12996
12997   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12998 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12999 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13000   echo $ECHO_N "(cached) $ECHO_C" >&6
13001 else
13002   ac_func_search_save_LIBS=$LIBS
13003 cat >conftest.$ac_ext <<_ACEOF
13004 /* confdefs.h.  */
13005 _ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h.  */
13009
13010 /* Override any GCC internal prototype to avoid an error.
13011    Use char because int might match the return type of a GCC
13012    builtin and then its argument prototype would still apply.  */
13013 #ifdef __cplusplus
13014 extern "C"
13015 #endif
13016 char pthread_getspecific ();
13017 int
13018 main ()
13019 {
13020 return pthread_getspecific ();
13021   ;
13022   return 0;
13023 }
13024 _ACEOF
13025 for ac_lib in '' pthread; do
13026   if test -z "$ac_lib"; then
13027     ac_res="none required"
13028   else
13029     ac_res=-l$ac_lib
13030     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13031   fi
13032   rm -f conftest.$ac_objext conftest$ac_exeext
13033 if { (ac_try="$ac_link"
13034 case "(($ac_try" in
13035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036   *) ac_try_echo=$ac_try;;
13037 esac
13038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13039   (eval "$ac_link") 2>conftest.er1
13040   ac_status=$?
13041   grep -v '^ *+' conftest.er1 >conftest.err
13042   rm -f conftest.er1
13043   cat conftest.err >&5
13044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045   (exit $ac_status); } &&
13046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13047   { (case "(($ac_try" in
13048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049   *) ac_try_echo=$ac_try;;
13050 esac
13051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052   (eval "$ac_try") 2>&5
13053   ac_status=$?
13054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055   (exit $ac_status); }; } &&
13056          { ac_try='test -s conftest$ac_exeext'
13057   { (case "(($ac_try" in
13058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059   *) ac_try_echo=$ac_try;;
13060 esac
13061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062   (eval "$ac_try") 2>&5
13063   ac_status=$?
13064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065   (exit $ac_status); }; }; then
13066   ac_cv_search_pthread_getspecific=$ac_res
13067 else
13068   echo "$as_me: failed program was:" >&5
13069 sed 's/^/| /' conftest.$ac_ext >&5
13070
13071
13072 fi
13073
13074 rm -f core conftest.err conftest.$ac_objext \
13075       conftest$ac_exeext
13076   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13077   break
13078 fi
13079 done
13080 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13081   :
13082 else
13083   ac_cv_search_pthread_getspecific=no
13084 fi
13085 rm conftest.$ac_ext
13086 LIBS=$ac_func_search_save_LIBS
13087 fi
13088 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13089 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13090 ac_res=$ac_cv_search_pthread_getspecific
13091 if test "$ac_res" != no; then
13092   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13093
13094 cat >>confdefs.h <<\_ACEOF
13095 #define HAVE_PTHREAD_GETSPECIFIC 1
13096 _ACEOF
13097
13098 fi
13099
13100 fi
13101
13102
13103 # Check whether --with-udis86 was given.
13104 if test "${with_udis86+set}" = set; then
13105   withval=$with_udis86;
13106       USE_UDIS86=1
13107
13108       case "$withval" in
13109         /usr/lib|yes) ;;
13110         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13111       esac
13112
13113 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13114 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13115 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13116   echo $ECHO_N "(cached) $ECHO_C" >&6
13117 else
13118   ac_check_lib_save_LIBS=$LIBS
13119 LIBS="-ludis86  $LIBS"
13120 cat >conftest.$ac_ext <<_ACEOF
13121 /* confdefs.h.  */
13122 _ACEOF
13123 cat confdefs.h >>conftest.$ac_ext
13124 cat >>conftest.$ac_ext <<_ACEOF
13125 /* end confdefs.h.  */
13126
13127 /* Override any GCC internal prototype to avoid an error.
13128    Use char because int might match the return type of a GCC
13129    builtin and then its argument prototype would still apply.  */
13130 #ifdef __cplusplus
13131 extern "C"
13132 #endif
13133 char ud_init ();
13134 int
13135 main ()
13136 {
13137 return ud_init ();
13138   ;
13139   return 0;
13140 }
13141 _ACEOF
13142 rm -f conftest.$ac_objext conftest$ac_exeext
13143 if { (ac_try="$ac_link"
13144 case "(($ac_try" in
13145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13146   *) ac_try_echo=$ac_try;;
13147 esac
13148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13149   (eval "$ac_link") 2>conftest.er1
13150   ac_status=$?
13151   grep -v '^ *+' conftest.er1 >conftest.err
13152   rm -f conftest.er1
13153   cat conftest.err >&5
13154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155   (exit $ac_status); } &&
13156          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13157   { (case "(($ac_try" in
13158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159   *) ac_try_echo=$ac_try;;
13160 esac
13161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162   (eval "$ac_try") 2>&5
13163   ac_status=$?
13164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165   (exit $ac_status); }; } &&
13166          { ac_try='test -s conftest$ac_exeext'
13167   { (case "(($ac_try" in
13168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169   *) ac_try_echo=$ac_try;;
13170 esac
13171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13172   (eval "$ac_try") 2>&5
13173   ac_status=$?
13174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175   (exit $ac_status); }; }; then
13176   ac_cv_lib_udis86_ud_init=yes
13177 else
13178   echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13180
13181         ac_cv_lib_udis86_ud_init=no
13182 fi
13183
13184 rm -f core conftest.err conftest.$ac_objext \
13185       conftest$ac_exeext conftest.$ac_ext
13186 LIBS=$ac_check_lib_save_LIBS
13187 fi
13188 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13189 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13190 if test $ac_cv_lib_udis86_ud_init = yes; then
13191   cat >>confdefs.h <<_ACEOF
13192 #define HAVE_LIBUDIS86 1
13193 _ACEOF
13194
13195   LIBS="-ludis86 $LIBS"
13196
13197 else
13198
13199         echo "Error! You need to have libudis86 around."
13200         exit -1
13201
13202 fi
13203
13204
13205 else
13206   USE_UDIS86=0
13207
13208 fi
13209
13210
13211 cat >>confdefs.h <<_ACEOF
13212 #define USE_UDIS86 $USE_UDIS86
13213 _ACEOF
13214
13215
13216
13217 # Check whether --with-oprofile was given.
13218 if test "${with_oprofile+set}" = set; then
13219   withval=$with_oprofile;
13220       USE_OPROFILE=1
13221
13222       case "$withval" in
13223         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13224         no) llvm_cv_oppath=
13225             USE_OPROFILE=0
13226  ;;
13227         *) llvm_cv_oppath="${withval}/lib/oprofile"
13228            CPPFLAGS="-I${withval}/include";;
13229       esac
13230       if test -n "$llvm_cv_oppath" ; then
13231         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13232                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13233 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13234 if test "${ac_cv_search_bfd_init+set}" = set; then
13235   echo $ECHO_N "(cached) $ECHO_C" >&6
13236 else
13237   ac_func_search_save_LIBS=$LIBS
13238 cat >conftest.$ac_ext <<_ACEOF
13239 /* confdefs.h.  */
13240 _ACEOF
13241 cat confdefs.h >>conftest.$ac_ext
13242 cat >>conftest.$ac_ext <<_ACEOF
13243 /* end confdefs.h.  */
13244
13245 /* Override any GCC internal prototype to avoid an error.
13246    Use char because int might match the return type of a GCC
13247    builtin and then its argument prototype would still apply.  */
13248 #ifdef __cplusplus
13249 extern "C"
13250 #endif
13251 char bfd_init ();
13252 int
13253 main ()
13254 {
13255 return bfd_init ();
13256   ;
13257   return 0;
13258 }
13259 _ACEOF
13260 for ac_lib in '' bfd; do
13261   if test -z "$ac_lib"; then
13262     ac_res="none required"
13263   else
13264     ac_res=-l$ac_lib
13265     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13266   fi
13267   rm -f conftest.$ac_objext conftest$ac_exeext
13268 if { (ac_try="$ac_link"
13269 case "(($ac_try" in
13270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13271   *) ac_try_echo=$ac_try;;
13272 esac
13273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13274   (eval "$ac_link") 2>conftest.er1
13275   ac_status=$?
13276   grep -v '^ *+' conftest.er1 >conftest.err
13277   rm -f conftest.er1
13278   cat conftest.err >&5
13279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280   (exit $ac_status); } &&
13281          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13282   { (case "(($ac_try" in
13283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284   *) ac_try_echo=$ac_try;;
13285 esac
13286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287   (eval "$ac_try") 2>&5
13288   ac_status=$?
13289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290   (exit $ac_status); }; } &&
13291          { ac_try='test -s conftest$ac_exeext'
13292   { (case "(($ac_try" in
13293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294   *) ac_try_echo=$ac_try;;
13295 esac
13296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297   (eval "$ac_try") 2>&5
13298   ac_status=$?
13299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300   (exit $ac_status); }; }; then
13301   ac_cv_search_bfd_init=$ac_res
13302 else
13303   echo "$as_me: failed program was:" >&5
13304 sed 's/^/| /' conftest.$ac_ext >&5
13305
13306
13307 fi
13308
13309 rm -f core conftest.err conftest.$ac_objext \
13310       conftest$ac_exeext
13311   if test "${ac_cv_search_bfd_init+set}" = set; then
13312   break
13313 fi
13314 done
13315 if test "${ac_cv_search_bfd_init+set}" = set; then
13316   :
13317 else
13318   ac_cv_search_bfd_init=no
13319 fi
13320 rm conftest.$ac_ext
13321 LIBS=$ac_func_search_save_LIBS
13322 fi
13323 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13324 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13325 ac_res=$ac_cv_search_bfd_init
13326 if test "$ac_res" != no; then
13327   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13328
13329 fi
13330
13331         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13332 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13333 if test "${ac_cv_search_op_open_agent+set}" = set; then
13334   echo $ECHO_N "(cached) $ECHO_C" >&6
13335 else
13336   ac_func_search_save_LIBS=$LIBS
13337 cat >conftest.$ac_ext <<_ACEOF
13338 /* confdefs.h.  */
13339 _ACEOF
13340 cat confdefs.h >>conftest.$ac_ext
13341 cat >>conftest.$ac_ext <<_ACEOF
13342 /* end confdefs.h.  */
13343
13344 /* Override any GCC internal prototype to avoid an error.
13345    Use char because int might match the return type of a GCC
13346    builtin and then its argument prototype would still apply.  */
13347 #ifdef __cplusplus
13348 extern "C"
13349 #endif
13350 char op_open_agent ();
13351 int
13352 main ()
13353 {
13354 return op_open_agent ();
13355   ;
13356   return 0;
13357 }
13358 _ACEOF
13359 for ac_lib in '' opagent; do
13360   if test -z "$ac_lib"; then
13361     ac_res="none required"
13362   else
13363     ac_res=-l$ac_lib
13364     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13365   fi
13366   rm -f conftest.$ac_objext conftest$ac_exeext
13367 if { (ac_try="$ac_link"
13368 case "(($ac_try" in
13369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370   *) ac_try_echo=$ac_try;;
13371 esac
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373   (eval "$ac_link") 2>conftest.er1
13374   ac_status=$?
13375   grep -v '^ *+' conftest.er1 >conftest.err
13376   rm -f conftest.er1
13377   cat conftest.err >&5
13378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379   (exit $ac_status); } &&
13380          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13381   { (case "(($ac_try" in
13382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383   *) ac_try_echo=$ac_try;;
13384 esac
13385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386   (eval "$ac_try") 2>&5
13387   ac_status=$?
13388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389   (exit $ac_status); }; } &&
13390          { ac_try='test -s conftest$ac_exeext'
13391   { (case "(($ac_try" in
13392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13393   *) ac_try_echo=$ac_try;;
13394 esac
13395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13396   (eval "$ac_try") 2>&5
13397   ac_status=$?
13398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399   (exit $ac_status); }; }; then
13400   ac_cv_search_op_open_agent=$ac_res
13401 else
13402   echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13404
13405
13406 fi
13407
13408 rm -f core conftest.err conftest.$ac_objext \
13409       conftest$ac_exeext
13410   if test "${ac_cv_search_op_open_agent+set}" = set; then
13411   break
13412 fi
13413 done
13414 if test "${ac_cv_search_op_open_agent+set}" = set; then
13415   :
13416 else
13417   ac_cv_search_op_open_agent=no
13418 fi
13419 rm conftest.$ac_ext
13420 LIBS=$ac_func_search_save_LIBS
13421 fi
13422 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13423 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13424 ac_res=$ac_cv_search_op_open_agent
13425 if test "$ac_res" != no; then
13426   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13427
13428 else
13429
13430           echo "Error! You need to have libopagent around."
13431           exit -1
13432
13433 fi
13434
13435         if test "${ac_cv_header_opagent_h+set}" = set; then
13436   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13437 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13438 if test "${ac_cv_header_opagent_h+set}" = set; then
13439   echo $ECHO_N "(cached) $ECHO_C" >&6
13440 fi
13441 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13442 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13443 else
13444   # Is the header compilable?
13445 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13446 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13447 cat >conftest.$ac_ext <<_ACEOF
13448 /* confdefs.h.  */
13449 _ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h.  */
13453 $ac_includes_default
13454 #include <opagent.h>
13455 _ACEOF
13456 rm -f conftest.$ac_objext
13457 if { (ac_try="$ac_compile"
13458 case "(($ac_try" in
13459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460   *) ac_try_echo=$ac_try;;
13461 esac
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463   (eval "$ac_compile") 2>conftest.er1
13464   ac_status=$?
13465   grep -v '^ *+' conftest.er1 >conftest.err
13466   rm -f conftest.er1
13467   cat conftest.err >&5
13468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469   (exit $ac_status); } &&
13470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13471   { (case "(($ac_try" in
13472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473   *) ac_try_echo=$ac_try;;
13474 esac
13475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13476   (eval "$ac_try") 2>&5
13477   ac_status=$?
13478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479   (exit $ac_status); }; } &&
13480          { ac_try='test -s conftest.$ac_objext'
13481   { (case "(($ac_try" in
13482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13483   *) ac_try_echo=$ac_try;;
13484 esac
13485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13486   (eval "$ac_try") 2>&5
13487   ac_status=$?
13488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489   (exit $ac_status); }; }; then
13490   ac_header_compiler=yes
13491 else
13492   echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13494
13495         ac_header_compiler=no
13496 fi
13497
13498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13499 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13500 echo "${ECHO_T}$ac_header_compiler" >&6; }
13501
13502 # Is the header present?
13503 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13504 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13505 cat >conftest.$ac_ext <<_ACEOF
13506 /* confdefs.h.  */
13507 _ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h.  */
13511 #include <opagent.h>
13512 _ACEOF
13513 if { (ac_try="$ac_cpp conftest.$ac_ext"
13514 case "(($ac_try" in
13515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516   *) ac_try_echo=$ac_try;;
13517 esac
13518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13520   ac_status=$?
13521   grep -v '^ *+' conftest.er1 >conftest.err
13522   rm -f conftest.er1
13523   cat conftest.err >&5
13524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525   (exit $ac_status); } >/dev/null; then
13526   if test -s conftest.err; then
13527     ac_cpp_err=$ac_c_preproc_warn_flag
13528     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13529   else
13530     ac_cpp_err=
13531   fi
13532 else
13533   ac_cpp_err=yes
13534 fi
13535 if test -z "$ac_cpp_err"; then
13536   ac_header_preproc=yes
13537 else
13538   echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13540
13541   ac_header_preproc=no
13542 fi
13543
13544 rm -f conftest.err conftest.$ac_ext
13545 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13546 echo "${ECHO_T}$ac_header_preproc" >&6; }
13547
13548 # So?  What about this header?
13549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13550   yes:no: )
13551     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13552 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13553     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13554 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13555     ac_header_preproc=yes
13556     ;;
13557   no:yes:* )
13558     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13559 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13560     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13561 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13562     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13563 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13564     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13565 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13566     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13567 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13568     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13569 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13570     ( cat <<\_ASBOX
13571 ## ------------------------------ ##
13572 ## Report this to bugs@yourdomain ##
13573 ## ------------------------------ ##
13574 _ASBOX
13575      ) | sed "s/^/$as_me: WARNING:     /" >&2
13576     ;;
13577 esac
13578 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13579 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13580 if test "${ac_cv_header_opagent_h+set}" = set; then
13581   echo $ECHO_N "(cached) $ECHO_C" >&6
13582 else
13583   ac_cv_header_opagent_h=$ac_header_preproc
13584 fi
13585 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13586 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13587
13588 fi
13589 if test $ac_cv_header_opagent_h = yes; then
13590   :
13591 else
13592
13593           echo "Error! You need to have opagent.h around."
13594           exit -1
13595
13596 fi
13597
13598
13599       fi
13600
13601 else
13602
13603       USE_OPROFILE=0
13604
13605
13606 fi
13607
13608
13609 cat >>confdefs.h <<_ACEOF
13610 #define USE_OPROFILE $USE_OPROFILE
13611 _ACEOF
13612
13613
13614
13615
13616
13617
13618
13619
13620 ac_header_dirent=no
13621 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13622   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13623 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13624 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13626   echo $ECHO_N "(cached) $ECHO_C" >&6
13627 else
13628   cat >conftest.$ac_ext <<_ACEOF
13629 /* confdefs.h.  */
13630 _ACEOF
13631 cat confdefs.h >>conftest.$ac_ext
13632 cat >>conftest.$ac_ext <<_ACEOF
13633 /* end confdefs.h.  */
13634 #include <sys/types.h>
13635 #include <$ac_hdr>
13636
13637 int
13638 main ()
13639 {
13640 if ((DIR *) 0)
13641 return 0;
13642   ;
13643   return 0;
13644 }
13645 _ACEOF
13646 rm -f conftest.$ac_objext
13647 if { (ac_try="$ac_compile"
13648 case "(($ac_try" in
13649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650   *) ac_try_echo=$ac_try;;
13651 esac
13652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653   (eval "$ac_compile") 2>conftest.er1
13654   ac_status=$?
13655   grep -v '^ *+' conftest.er1 >conftest.err
13656   rm -f conftest.er1
13657   cat conftest.err >&5
13658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659   (exit $ac_status); } &&
13660          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13661   { (case "(($ac_try" in
13662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13663   *) ac_try_echo=$ac_try;;
13664 esac
13665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13666   (eval "$ac_try") 2>&5
13667   ac_status=$?
13668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669   (exit $ac_status); }; } &&
13670          { ac_try='test -s conftest.$ac_objext'
13671   { (case "(($ac_try" in
13672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13673   *) ac_try_echo=$ac_try;;
13674 esac
13675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13676   (eval "$ac_try") 2>&5
13677   ac_status=$?
13678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679   (exit $ac_status); }; }; then
13680   eval "$as_ac_Header=yes"
13681 else
13682   echo "$as_me: failed program was:" >&5
13683 sed 's/^/| /' conftest.$ac_ext >&5
13684
13685         eval "$as_ac_Header=no"
13686 fi
13687
13688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13689 fi
13690 ac_res=`eval echo '${'$as_ac_Header'}'`
13691                { echo "$as_me:$LINENO: result: $ac_res" >&5
13692 echo "${ECHO_T}$ac_res" >&6; }
13693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13694   cat >>confdefs.h <<_ACEOF
13695 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13696 _ACEOF
13697
13698 ac_header_dirent=$ac_hdr; break
13699 fi
13700
13701 done
13702 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13703 if test $ac_header_dirent = dirent.h; then
13704   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13705 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13706 if test "${ac_cv_search_opendir+set}" = set; then
13707   echo $ECHO_N "(cached) $ECHO_C" >&6
13708 else
13709   ac_func_search_save_LIBS=$LIBS
13710 cat >conftest.$ac_ext <<_ACEOF
13711 /* confdefs.h.  */
13712 _ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h.  */
13716
13717 /* Override any GCC internal prototype to avoid an error.
13718    Use char because int might match the return type of a GCC
13719    builtin and then its argument prototype would still apply.  */
13720 #ifdef __cplusplus
13721 extern "C"
13722 #endif
13723 char opendir ();
13724 int
13725 main ()
13726 {
13727 return opendir ();
13728   ;
13729   return 0;
13730 }
13731 _ACEOF
13732 for ac_lib in '' dir; do
13733   if test -z "$ac_lib"; then
13734     ac_res="none required"
13735   else
13736     ac_res=-l$ac_lib
13737     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13738   fi
13739   rm -f conftest.$ac_objext conftest$ac_exeext
13740 if { (ac_try="$ac_link"
13741 case "(($ac_try" in
13742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13743   *) ac_try_echo=$ac_try;;
13744 esac
13745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13746   (eval "$ac_link") 2>conftest.er1
13747   ac_status=$?
13748   grep -v '^ *+' conftest.er1 >conftest.err
13749   rm -f conftest.er1
13750   cat conftest.err >&5
13751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752   (exit $ac_status); } &&
13753          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13754   { (case "(($ac_try" in
13755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13756   *) ac_try_echo=$ac_try;;
13757 esac
13758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13759   (eval "$ac_try") 2>&5
13760   ac_status=$?
13761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762   (exit $ac_status); }; } &&
13763          { ac_try='test -s conftest$ac_exeext'
13764   { (case "(($ac_try" in
13765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13766   *) ac_try_echo=$ac_try;;
13767 esac
13768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13769   (eval "$ac_try") 2>&5
13770   ac_status=$?
13771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772   (exit $ac_status); }; }; then
13773   ac_cv_search_opendir=$ac_res
13774 else
13775   echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.$ac_ext >&5
13777
13778
13779 fi
13780
13781 rm -f core conftest.err conftest.$ac_objext \
13782       conftest$ac_exeext
13783   if test "${ac_cv_search_opendir+set}" = set; then
13784   break
13785 fi
13786 done
13787 if test "${ac_cv_search_opendir+set}" = set; then
13788   :
13789 else
13790   ac_cv_search_opendir=no
13791 fi
13792 rm conftest.$ac_ext
13793 LIBS=$ac_func_search_save_LIBS
13794 fi
13795 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13796 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13797 ac_res=$ac_cv_search_opendir
13798 if test "$ac_res" != no; then
13799   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13800
13801 fi
13802
13803 else
13804   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13805 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13806 if test "${ac_cv_search_opendir+set}" = set; then
13807   echo $ECHO_N "(cached) $ECHO_C" >&6
13808 else
13809   ac_func_search_save_LIBS=$LIBS
13810 cat >conftest.$ac_ext <<_ACEOF
13811 /* confdefs.h.  */
13812 _ACEOF
13813 cat confdefs.h >>conftest.$ac_ext
13814 cat >>conftest.$ac_ext <<_ACEOF
13815 /* end confdefs.h.  */
13816
13817 /* Override any GCC internal prototype to avoid an error.
13818    Use char because int might match the return type of a GCC
13819    builtin and then its argument prototype would still apply.  */
13820 #ifdef __cplusplus
13821 extern "C"
13822 #endif
13823 char opendir ();
13824 int
13825 main ()
13826 {
13827 return opendir ();
13828   ;
13829   return 0;
13830 }
13831 _ACEOF
13832 for ac_lib in '' x; do
13833   if test -z "$ac_lib"; then
13834     ac_res="none required"
13835   else
13836     ac_res=-l$ac_lib
13837     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13838   fi
13839   rm -f conftest.$ac_objext conftest$ac_exeext
13840 if { (ac_try="$ac_link"
13841 case "(($ac_try" in
13842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843   *) ac_try_echo=$ac_try;;
13844 esac
13845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846   (eval "$ac_link") 2>conftest.er1
13847   ac_status=$?
13848   grep -v '^ *+' conftest.er1 >conftest.err
13849   rm -f conftest.er1
13850   cat conftest.err >&5
13851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852   (exit $ac_status); } &&
13853          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13854   { (case "(($ac_try" in
13855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13856   *) ac_try_echo=$ac_try;;
13857 esac
13858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13859   (eval "$ac_try") 2>&5
13860   ac_status=$?
13861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862   (exit $ac_status); }; } &&
13863          { ac_try='test -s conftest$ac_exeext'
13864   { (case "(($ac_try" in
13865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13866   *) ac_try_echo=$ac_try;;
13867 esac
13868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13869   (eval "$ac_try") 2>&5
13870   ac_status=$?
13871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872   (exit $ac_status); }; }; then
13873   ac_cv_search_opendir=$ac_res
13874 else
13875   echo "$as_me: failed program was:" >&5
13876 sed 's/^/| /' conftest.$ac_ext >&5
13877
13878
13879 fi
13880
13881 rm -f core conftest.err conftest.$ac_objext \
13882       conftest$ac_exeext
13883   if test "${ac_cv_search_opendir+set}" = set; then
13884   break
13885 fi
13886 done
13887 if test "${ac_cv_search_opendir+set}" = set; then
13888   :
13889 else
13890   ac_cv_search_opendir=no
13891 fi
13892 rm conftest.$ac_ext
13893 LIBS=$ac_func_search_save_LIBS
13894 fi
13895 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13896 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13897 ac_res=$ac_cv_search_opendir
13898 if test "$ac_res" != no; then
13899   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13900
13901 fi
13902
13903 fi
13904
13905 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13906 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13907 if test "${ac_cv_header_mmap_anon+set}" = set; then
13908   echo $ECHO_N "(cached) $ECHO_C" >&6
13909 else
13910    ac_ext=c
13911 ac_cpp='$CPP $CPPFLAGS'
13912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13915
13916   cat >conftest.$ac_ext <<_ACEOF
13917 /* confdefs.h.  */
13918 _ACEOF
13919 cat confdefs.h >>conftest.$ac_ext
13920 cat >>conftest.$ac_ext <<_ACEOF
13921 /* end confdefs.h.  */
13922 #include <sys/mman.h>
13923 #include <unistd.h>
13924 #include <fcntl.h>
13925 int
13926 main ()
13927 {
13928 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13929   ;
13930   return 0;
13931 }
13932 _ACEOF
13933 rm -f conftest.$ac_objext
13934 if { (ac_try="$ac_compile"
13935 case "(($ac_try" in
13936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13937   *) ac_try_echo=$ac_try;;
13938 esac
13939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13940   (eval "$ac_compile") 2>conftest.er1
13941   ac_status=$?
13942   grep -v '^ *+' conftest.er1 >conftest.err
13943   rm -f conftest.er1
13944   cat conftest.err >&5
13945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946   (exit $ac_status); } &&
13947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13948   { (case "(($ac_try" in
13949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950   *) ac_try_echo=$ac_try;;
13951 esac
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953   (eval "$ac_try") 2>&5
13954   ac_status=$?
13955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956   (exit $ac_status); }; } &&
13957          { ac_try='test -s conftest.$ac_objext'
13958   { (case "(($ac_try" in
13959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13960   *) ac_try_echo=$ac_try;;
13961 esac
13962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13963   (eval "$ac_try") 2>&5
13964   ac_status=$?
13965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966   (exit $ac_status); }; }; then
13967   ac_cv_header_mmap_anon=yes
13968 else
13969   echo "$as_me: failed program was:" >&5
13970 sed 's/^/| /' conftest.$ac_ext >&5
13971
13972         ac_cv_header_mmap_anon=no
13973 fi
13974
13975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13976   ac_ext=c
13977 ac_cpp='$CPP $CPPFLAGS'
13978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13981
13982
13983 fi
13984 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13985 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13986 if test "$ac_cv_header_mmap_anon" = yes; then
13987
13988 cat >>confdefs.h <<\_ACEOF
13989 #define HAVE_MMAP_ANONYMOUS 1
13990 _ACEOF
13991
13992 fi
13993
13994 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13995 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13996 if test "${ac_cv_header_stat_broken+set}" = set; then
13997   echo $ECHO_N "(cached) $ECHO_C" >&6
13998 else
13999   cat >conftest.$ac_ext <<_ACEOF
14000 /* confdefs.h.  */
14001 _ACEOF
14002 cat confdefs.h >>conftest.$ac_ext
14003 cat >>conftest.$ac_ext <<_ACEOF
14004 /* end confdefs.h.  */
14005 #include <sys/types.h>
14006 #include <sys/stat.h>
14007
14008 #if defined S_ISBLK && defined S_IFDIR
14009 # if S_ISBLK (S_IFDIR)
14010 You lose.
14011 # endif
14012 #endif
14013
14014 #if defined S_ISBLK && defined S_IFCHR
14015 # if S_ISBLK (S_IFCHR)
14016 You lose.
14017 # endif
14018 #endif
14019
14020 #if defined S_ISLNK && defined S_IFREG
14021 # if S_ISLNK (S_IFREG)
14022 You lose.
14023 # endif
14024 #endif
14025
14026 #if defined S_ISSOCK && defined S_IFREG
14027 # if S_ISSOCK (S_IFREG)
14028 You lose.
14029 # endif
14030 #endif
14031
14032 _ACEOF
14033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14034   $EGREP "You lose" >/dev/null 2>&1; then
14035   ac_cv_header_stat_broken=yes
14036 else
14037   ac_cv_header_stat_broken=no
14038 fi
14039 rm -f conftest*
14040
14041 fi
14042 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14043 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14044 if test $ac_cv_header_stat_broken = yes; then
14045
14046 cat >>confdefs.h <<\_ACEOF
14047 #define STAT_MACROS_BROKEN 1
14048 _ACEOF
14049
14050 fi
14051
14052 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14053 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14054 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14055   echo $ECHO_N "(cached) $ECHO_C" >&6
14056 else
14057   cat >conftest.$ac_ext <<_ACEOF
14058 /* confdefs.h.  */
14059 _ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h.  */
14063 #include <sys/types.h>
14064 #include <sys/wait.h>
14065 #ifndef WEXITSTATUS
14066 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14067 #endif
14068 #ifndef WIFEXITED
14069 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14070 #endif
14071
14072 int
14073 main ()
14074 {
14075   int s;
14076   wait (&s);
14077   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14078   ;
14079   return 0;
14080 }
14081 _ACEOF
14082 rm -f conftest.$ac_objext
14083 if { (ac_try="$ac_compile"
14084 case "(($ac_try" in
14085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14086   *) ac_try_echo=$ac_try;;
14087 esac
14088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14089   (eval "$ac_compile") 2>conftest.er1
14090   ac_status=$?
14091   grep -v '^ *+' conftest.er1 >conftest.err
14092   rm -f conftest.er1
14093   cat conftest.err >&5
14094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095   (exit $ac_status); } &&
14096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14097   { (case "(($ac_try" in
14098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14099   *) ac_try_echo=$ac_try;;
14100 esac
14101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14102   (eval "$ac_try") 2>&5
14103   ac_status=$?
14104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105   (exit $ac_status); }; } &&
14106          { ac_try='test -s conftest.$ac_objext'
14107   { (case "(($ac_try" in
14108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14109   *) ac_try_echo=$ac_try;;
14110 esac
14111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112   (eval "$ac_try") 2>&5
14113   ac_status=$?
14114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115   (exit $ac_status); }; }; then
14116   ac_cv_header_sys_wait_h=yes
14117 else
14118   echo "$as_me: failed program was:" >&5
14119 sed 's/^/| /' conftest.$ac_ext >&5
14120
14121         ac_cv_header_sys_wait_h=no
14122 fi
14123
14124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14125 fi
14126 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14127 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14128 if test $ac_cv_header_sys_wait_h = yes; then
14129
14130 cat >>confdefs.h <<\_ACEOF
14131 #define HAVE_SYS_WAIT_H 1
14132 _ACEOF
14133
14134 fi
14135
14136 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14137 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14138 if test "${ac_cv_header_time+set}" = set; then
14139   echo $ECHO_N "(cached) $ECHO_C" >&6
14140 else
14141   cat >conftest.$ac_ext <<_ACEOF
14142 /* confdefs.h.  */
14143 _ACEOF
14144 cat confdefs.h >>conftest.$ac_ext
14145 cat >>conftest.$ac_ext <<_ACEOF
14146 /* end confdefs.h.  */
14147 #include <sys/types.h>
14148 #include <sys/time.h>
14149 #include <time.h>
14150
14151 int
14152 main ()
14153 {
14154 if ((struct tm *) 0)
14155 return 0;
14156   ;
14157   return 0;
14158 }
14159 _ACEOF
14160 rm -f conftest.$ac_objext
14161 if { (ac_try="$ac_compile"
14162 case "(($ac_try" in
14163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14164   *) ac_try_echo=$ac_try;;
14165 esac
14166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14167   (eval "$ac_compile") 2>conftest.er1
14168   ac_status=$?
14169   grep -v '^ *+' conftest.er1 >conftest.err
14170   rm -f conftest.er1
14171   cat conftest.err >&5
14172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173   (exit $ac_status); } &&
14174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14175   { (case "(($ac_try" in
14176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14177   *) ac_try_echo=$ac_try;;
14178 esac
14179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14180   (eval "$ac_try") 2>&5
14181   ac_status=$?
14182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183   (exit $ac_status); }; } &&
14184          { ac_try='test -s conftest.$ac_objext'
14185   { (case "(($ac_try" in
14186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14187   *) ac_try_echo=$ac_try;;
14188 esac
14189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14190   (eval "$ac_try") 2>&5
14191   ac_status=$?
14192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193   (exit $ac_status); }; }; then
14194   ac_cv_header_time=yes
14195 else
14196   echo "$as_me: failed program was:" >&5
14197 sed 's/^/| /' conftest.$ac_ext >&5
14198
14199         ac_cv_header_time=no
14200 fi
14201
14202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14203 fi
14204 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14205 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14206 if test $ac_cv_header_time = yes; then
14207
14208 cat >>confdefs.h <<\_ACEOF
14209 #define TIME_WITH_SYS_TIME 1
14210 _ACEOF
14211
14212 fi
14213
14214
14215
14216
14217
14218
14219
14220
14221 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14222 do
14223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14225   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14228   echo $ECHO_N "(cached) $ECHO_C" >&6
14229 fi
14230 ac_res=`eval echo '${'$as_ac_Header'}'`
14231                { echo "$as_me:$LINENO: result: $ac_res" >&5
14232 echo "${ECHO_T}$ac_res" >&6; }
14233 else
14234   # Is the header compilable?
14235 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14236 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14237 cat >conftest.$ac_ext <<_ACEOF
14238 /* confdefs.h.  */
14239 _ACEOF
14240 cat confdefs.h >>conftest.$ac_ext
14241 cat >>conftest.$ac_ext <<_ACEOF
14242 /* end confdefs.h.  */
14243 $ac_includes_default
14244 #include <$ac_header>
14245 _ACEOF
14246 rm -f conftest.$ac_objext
14247 if { (ac_try="$ac_compile"
14248 case "(($ac_try" in
14249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14250   *) ac_try_echo=$ac_try;;
14251 esac
14252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14253   (eval "$ac_compile") 2>conftest.er1
14254   ac_status=$?
14255   grep -v '^ *+' conftest.er1 >conftest.err
14256   rm -f conftest.er1
14257   cat conftest.err >&5
14258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259   (exit $ac_status); } &&
14260          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14261   { (case "(($ac_try" in
14262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263   *) ac_try_echo=$ac_try;;
14264 esac
14265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266   (eval "$ac_try") 2>&5
14267   ac_status=$?
14268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269   (exit $ac_status); }; } &&
14270          { ac_try='test -s conftest.$ac_objext'
14271   { (case "(($ac_try" in
14272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273   *) ac_try_echo=$ac_try;;
14274 esac
14275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276   (eval "$ac_try") 2>&5
14277   ac_status=$?
14278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279   (exit $ac_status); }; }; then
14280   ac_header_compiler=yes
14281 else
14282   echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14284
14285         ac_header_compiler=no
14286 fi
14287
14288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14289 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14290 echo "${ECHO_T}$ac_header_compiler" >&6; }
14291
14292 # Is the header present?
14293 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14295 cat >conftest.$ac_ext <<_ACEOF
14296 /* confdefs.h.  */
14297 _ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h.  */
14301 #include <$ac_header>
14302 _ACEOF
14303 if { (ac_try="$ac_cpp conftest.$ac_ext"
14304 case "(($ac_try" in
14305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306   *) ac_try_echo=$ac_try;;
14307 esac
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14310   ac_status=$?
14311   grep -v '^ *+' conftest.er1 >conftest.err
14312   rm -f conftest.er1
14313   cat conftest.err >&5
14314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315   (exit $ac_status); } >/dev/null; then
14316   if test -s conftest.err; then
14317     ac_cpp_err=$ac_c_preproc_warn_flag
14318     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14319   else
14320     ac_cpp_err=
14321   fi
14322 else
14323   ac_cpp_err=yes
14324 fi
14325 if test -z "$ac_cpp_err"; then
14326   ac_header_preproc=yes
14327 else
14328   echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14330
14331   ac_header_preproc=no
14332 fi
14333
14334 rm -f conftest.err conftest.$ac_ext
14335 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14336 echo "${ECHO_T}$ac_header_preproc" >&6; }
14337
14338 # So?  What about this header?
14339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14340   yes:no: )
14341     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14342 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14343     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14344 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14345     ac_header_preproc=yes
14346     ;;
14347   no:yes:* )
14348     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14349 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14350     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14351 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14352     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14353 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14354     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14355 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14356     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14358     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14359 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14360     ( cat <<\_ASBOX
14361 ## ------------------------------ ##
14362 ## Report this to bugs@yourdomain ##
14363 ## ------------------------------ ##
14364 _ASBOX
14365      ) | sed "s/^/$as_me: WARNING:     /" >&2
14366     ;;
14367 esac
14368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14371   echo $ECHO_N "(cached) $ECHO_C" >&6
14372 else
14373   eval "$as_ac_Header=\$ac_header_preproc"
14374 fi
14375 ac_res=`eval echo '${'$as_ac_Header'}'`
14376                { echo "$as_me:$LINENO: result: $ac_res" >&5
14377 echo "${ECHO_T}$ac_res" >&6; }
14378
14379 fi
14380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14381   cat >>confdefs.h <<_ACEOF
14382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14383 _ACEOF
14384
14385 fi
14386
14387 done
14388
14389
14390
14391
14392
14393
14394
14395 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14396 do
14397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14399   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14402   echo $ECHO_N "(cached) $ECHO_C" >&6
14403 fi
14404 ac_res=`eval echo '${'$as_ac_Header'}'`
14405                { echo "$as_me:$LINENO: result: $ac_res" >&5
14406 echo "${ECHO_T}$ac_res" >&6; }
14407 else
14408   # Is the header compilable?
14409 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14411 cat >conftest.$ac_ext <<_ACEOF
14412 /* confdefs.h.  */
14413 _ACEOF
14414 cat confdefs.h >>conftest.$ac_ext
14415 cat >>conftest.$ac_ext <<_ACEOF
14416 /* end confdefs.h.  */
14417 $ac_includes_default
14418 #include <$ac_header>
14419 _ACEOF
14420 rm -f conftest.$ac_objext
14421 if { (ac_try="$ac_compile"
14422 case "(($ac_try" in
14423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424   *) ac_try_echo=$ac_try;;
14425 esac
14426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14427   (eval "$ac_compile") 2>conftest.er1
14428   ac_status=$?
14429   grep -v '^ *+' conftest.er1 >conftest.err
14430   rm -f conftest.er1
14431   cat conftest.err >&5
14432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433   (exit $ac_status); } &&
14434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14435   { (case "(($ac_try" in
14436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437   *) ac_try_echo=$ac_try;;
14438 esac
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440   (eval "$ac_try") 2>&5
14441   ac_status=$?
14442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443   (exit $ac_status); }; } &&
14444          { ac_try='test -s conftest.$ac_objext'
14445   { (case "(($ac_try" in
14446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447   *) ac_try_echo=$ac_try;;
14448 esac
14449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450   (eval "$ac_try") 2>&5
14451   ac_status=$?
14452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453   (exit $ac_status); }; }; then
14454   ac_header_compiler=yes
14455 else
14456   echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14458
14459         ac_header_compiler=no
14460 fi
14461
14462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14464 echo "${ECHO_T}$ac_header_compiler" >&6; }
14465
14466 # Is the header present?
14467 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14469 cat >conftest.$ac_ext <<_ACEOF
14470 /* confdefs.h.  */
14471 _ACEOF
14472 cat confdefs.h >>conftest.$ac_ext
14473 cat >>conftest.$ac_ext <<_ACEOF
14474 /* end confdefs.h.  */
14475 #include <$ac_header>
14476 _ACEOF
14477 if { (ac_try="$ac_cpp conftest.$ac_ext"
14478 case "(($ac_try" in
14479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480   *) ac_try_echo=$ac_try;;
14481 esac
14482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14483   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14484   ac_status=$?
14485   grep -v '^ *+' conftest.er1 >conftest.err
14486   rm -f conftest.er1
14487   cat conftest.err >&5
14488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489   (exit $ac_status); } >/dev/null; then
14490   if test -s conftest.err; then
14491     ac_cpp_err=$ac_c_preproc_warn_flag
14492     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14493   else
14494     ac_cpp_err=
14495   fi
14496 else
14497   ac_cpp_err=yes
14498 fi
14499 if test -z "$ac_cpp_err"; then
14500   ac_header_preproc=yes
14501 else
14502   echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14504
14505   ac_header_preproc=no
14506 fi
14507
14508 rm -f conftest.err conftest.$ac_ext
14509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14510 echo "${ECHO_T}$ac_header_preproc" >&6; }
14511
14512 # So?  What about this header?
14513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14514   yes:no: )
14515     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14517     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14519     ac_header_preproc=yes
14520     ;;
14521   no:yes:* )
14522     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14524     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14525 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14526     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14528     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14529 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14530     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14532     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14534     ( cat <<\_ASBOX
14535 ## ------------------------------ ##
14536 ## Report this to bugs@yourdomain ##
14537 ## ------------------------------ ##
14538 _ASBOX
14539      ) | sed "s/^/$as_me: WARNING:     /" >&2
14540     ;;
14541 esac
14542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14545   echo $ECHO_N "(cached) $ECHO_C" >&6
14546 else
14547   eval "$as_ac_Header=\$ac_header_preproc"
14548 fi
14549 ac_res=`eval echo '${'$as_ac_Header'}'`
14550                { echo "$as_me:$LINENO: result: $ac_res" >&5
14551 echo "${ECHO_T}$ac_res" >&6; }
14552
14553 fi
14554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14555   cat >>confdefs.h <<_ACEOF
14556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14557 _ACEOF
14558
14559 fi
14560
14561 done
14562
14563
14564
14565 for ac_header in utime.h windows.h
14566 do
14567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14569   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14572   echo $ECHO_N "(cached) $ECHO_C" >&6
14573 fi
14574 ac_res=`eval echo '${'$as_ac_Header'}'`
14575                { echo "$as_me:$LINENO: result: $ac_res" >&5
14576 echo "${ECHO_T}$ac_res" >&6; }
14577 else
14578   # Is the header compilable?
14579 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14581 cat >conftest.$ac_ext <<_ACEOF
14582 /* confdefs.h.  */
14583 _ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h.  */
14587 $ac_includes_default
14588 #include <$ac_header>
14589 _ACEOF
14590 rm -f conftest.$ac_objext
14591 if { (ac_try="$ac_compile"
14592 case "(($ac_try" in
14593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14594   *) ac_try_echo=$ac_try;;
14595 esac
14596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14597   (eval "$ac_compile") 2>conftest.er1
14598   ac_status=$?
14599   grep -v '^ *+' conftest.er1 >conftest.err
14600   rm -f conftest.er1
14601   cat conftest.err >&5
14602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603   (exit $ac_status); } &&
14604          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14605   { (case "(($ac_try" in
14606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14607   *) ac_try_echo=$ac_try;;
14608 esac
14609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14610   (eval "$ac_try") 2>&5
14611   ac_status=$?
14612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613   (exit $ac_status); }; } &&
14614          { ac_try='test -s conftest.$ac_objext'
14615   { (case "(($ac_try" in
14616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14617   *) ac_try_echo=$ac_try;;
14618 esac
14619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14620   (eval "$ac_try") 2>&5
14621   ac_status=$?
14622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623   (exit $ac_status); }; }; then
14624   ac_header_compiler=yes
14625 else
14626   echo "$as_me: failed program was:" >&5
14627 sed 's/^/| /' conftest.$ac_ext >&5
14628
14629         ac_header_compiler=no
14630 fi
14631
14632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14634 echo "${ECHO_T}$ac_header_compiler" >&6; }
14635
14636 # Is the header present?
14637 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14639 cat >conftest.$ac_ext <<_ACEOF
14640 /* confdefs.h.  */
14641 _ACEOF
14642 cat confdefs.h >>conftest.$ac_ext
14643 cat >>conftest.$ac_ext <<_ACEOF
14644 /* end confdefs.h.  */
14645 #include <$ac_header>
14646 _ACEOF
14647 if { (ac_try="$ac_cpp conftest.$ac_ext"
14648 case "(($ac_try" in
14649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650   *) ac_try_echo=$ac_try;;
14651 esac
14652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14654   ac_status=$?
14655   grep -v '^ *+' conftest.er1 >conftest.err
14656   rm -f conftest.er1
14657   cat conftest.err >&5
14658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659   (exit $ac_status); } >/dev/null; then
14660   if test -s conftest.err; then
14661     ac_cpp_err=$ac_c_preproc_warn_flag
14662     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14663   else
14664     ac_cpp_err=
14665   fi
14666 else
14667   ac_cpp_err=yes
14668 fi
14669 if test -z "$ac_cpp_err"; then
14670   ac_header_preproc=yes
14671 else
14672   echo "$as_me: failed program was:" >&5
14673 sed 's/^/| /' conftest.$ac_ext >&5
14674
14675   ac_header_preproc=no
14676 fi
14677
14678 rm -f conftest.err conftest.$ac_ext
14679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14680 echo "${ECHO_T}$ac_header_preproc" >&6; }
14681
14682 # So?  What about this header?
14683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14684   yes:no: )
14685     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14687     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14689     ac_header_preproc=yes
14690     ;;
14691   no:yes:* )
14692     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14694     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14695 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14696     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14698     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14699 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14700     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14702     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14704     ( cat <<\_ASBOX
14705 ## ------------------------------ ##
14706 ## Report this to bugs@yourdomain ##
14707 ## ------------------------------ ##
14708 _ASBOX
14709      ) | sed "s/^/$as_me: WARNING:     /" >&2
14710     ;;
14711 esac
14712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14715   echo $ECHO_N "(cached) $ECHO_C" >&6
14716 else
14717   eval "$as_ac_Header=\$ac_header_preproc"
14718 fi
14719 ac_res=`eval echo '${'$as_ac_Header'}'`
14720                { echo "$as_me:$LINENO: result: $ac_res" >&5
14721 echo "${ECHO_T}$ac_res" >&6; }
14722
14723 fi
14724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14725   cat >>confdefs.h <<_ACEOF
14726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14727 _ACEOF
14728
14729 fi
14730
14731 done
14732
14733
14734
14735
14736
14737
14738 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14739 do
14740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14742   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14745   echo $ECHO_N "(cached) $ECHO_C" >&6
14746 fi
14747 ac_res=`eval echo '${'$as_ac_Header'}'`
14748                { echo "$as_me:$LINENO: result: $ac_res" >&5
14749 echo "${ECHO_T}$ac_res" >&6; }
14750 else
14751   # Is the header compilable?
14752 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14754 cat >conftest.$ac_ext <<_ACEOF
14755 /* confdefs.h.  */
14756 _ACEOF
14757 cat confdefs.h >>conftest.$ac_ext
14758 cat >>conftest.$ac_ext <<_ACEOF
14759 /* end confdefs.h.  */
14760 $ac_includes_default
14761 #include <$ac_header>
14762 _ACEOF
14763 rm -f conftest.$ac_objext
14764 if { (ac_try="$ac_compile"
14765 case "(($ac_try" in
14766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14767   *) ac_try_echo=$ac_try;;
14768 esac
14769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14770   (eval "$ac_compile") 2>conftest.er1
14771   ac_status=$?
14772   grep -v '^ *+' conftest.er1 >conftest.err
14773   rm -f conftest.er1
14774   cat conftest.err >&5
14775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776   (exit $ac_status); } &&
14777          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14778   { (case "(($ac_try" in
14779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14780   *) ac_try_echo=$ac_try;;
14781 esac
14782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14783   (eval "$ac_try") 2>&5
14784   ac_status=$?
14785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786   (exit $ac_status); }; } &&
14787          { ac_try='test -s conftest.$ac_objext'
14788   { (case "(($ac_try" in
14789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14790   *) ac_try_echo=$ac_try;;
14791 esac
14792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14793   (eval "$ac_try") 2>&5
14794   ac_status=$?
14795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796   (exit $ac_status); }; }; then
14797   ac_header_compiler=yes
14798 else
14799   echo "$as_me: failed program was:" >&5
14800 sed 's/^/| /' conftest.$ac_ext >&5
14801
14802         ac_header_compiler=no
14803 fi
14804
14805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14806 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14807 echo "${ECHO_T}$ac_header_compiler" >&6; }
14808
14809 # Is the header present?
14810 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14811 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14812 cat >conftest.$ac_ext <<_ACEOF
14813 /* confdefs.h.  */
14814 _ACEOF
14815 cat confdefs.h >>conftest.$ac_ext
14816 cat >>conftest.$ac_ext <<_ACEOF
14817 /* end confdefs.h.  */
14818 #include <$ac_header>
14819 _ACEOF
14820 if { (ac_try="$ac_cpp conftest.$ac_ext"
14821 case "(($ac_try" in
14822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14823   *) ac_try_echo=$ac_try;;
14824 esac
14825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14826   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14827   ac_status=$?
14828   grep -v '^ *+' conftest.er1 >conftest.err
14829   rm -f conftest.er1
14830   cat conftest.err >&5
14831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832   (exit $ac_status); } >/dev/null; then
14833   if test -s conftest.err; then
14834     ac_cpp_err=$ac_c_preproc_warn_flag
14835     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14836   else
14837     ac_cpp_err=
14838   fi
14839 else
14840   ac_cpp_err=yes
14841 fi
14842 if test -z "$ac_cpp_err"; then
14843   ac_header_preproc=yes
14844 else
14845   echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14847
14848   ac_header_preproc=no
14849 fi
14850
14851 rm -f conftest.err conftest.$ac_ext
14852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14853 echo "${ECHO_T}$ac_header_preproc" >&6; }
14854
14855 # So?  What about this header?
14856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14857   yes:no: )
14858     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14860     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14862     ac_header_preproc=yes
14863     ;;
14864   no:yes:* )
14865     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14867     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14868 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14869     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14871     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14872 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14873     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14875     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14877     ( cat <<\_ASBOX
14878 ## ------------------------------ ##
14879 ## Report this to bugs@yourdomain ##
14880 ## ------------------------------ ##
14881 _ASBOX
14882      ) | sed "s/^/$as_me: WARNING:     /" >&2
14883     ;;
14884 esac
14885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14888   echo $ECHO_N "(cached) $ECHO_C" >&6
14889 else
14890   eval "$as_ac_Header=\$ac_header_preproc"
14891 fi
14892 ac_res=`eval echo '${'$as_ac_Header'}'`
14893                { echo "$as_me:$LINENO: result: $ac_res" >&5
14894 echo "${ECHO_T}$ac_res" >&6; }
14895
14896 fi
14897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14898   cat >>confdefs.h <<_ACEOF
14899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14900 _ACEOF
14901
14902 fi
14903
14904 done
14905
14906
14907
14908
14909
14910 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14911 do
14912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14914   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14917   echo $ECHO_N "(cached) $ECHO_C" >&6
14918 fi
14919 ac_res=`eval echo '${'$as_ac_Header'}'`
14920                { echo "$as_me:$LINENO: result: $ac_res" >&5
14921 echo "${ECHO_T}$ac_res" >&6; }
14922 else
14923   # Is the header compilable?
14924 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14926 cat >conftest.$ac_ext <<_ACEOF
14927 /* confdefs.h.  */
14928 _ACEOF
14929 cat confdefs.h >>conftest.$ac_ext
14930 cat >>conftest.$ac_ext <<_ACEOF
14931 /* end confdefs.h.  */
14932 $ac_includes_default
14933 #include <$ac_header>
14934 _ACEOF
14935 rm -f conftest.$ac_objext
14936 if { (ac_try="$ac_compile"
14937 case "(($ac_try" in
14938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14939   *) ac_try_echo=$ac_try;;
14940 esac
14941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14942   (eval "$ac_compile") 2>conftest.er1
14943   ac_status=$?
14944   grep -v '^ *+' conftest.er1 >conftest.err
14945   rm -f conftest.er1
14946   cat conftest.err >&5
14947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948   (exit $ac_status); } &&
14949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14950   { (case "(($ac_try" in
14951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14952   *) ac_try_echo=$ac_try;;
14953 esac
14954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14955   (eval "$ac_try") 2>&5
14956   ac_status=$?
14957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958   (exit $ac_status); }; } &&
14959          { ac_try='test -s conftest.$ac_objext'
14960   { (case "(($ac_try" in
14961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14962   *) ac_try_echo=$ac_try;;
14963 esac
14964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14965   (eval "$ac_try") 2>&5
14966   ac_status=$?
14967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968   (exit $ac_status); }; }; then
14969   ac_header_compiler=yes
14970 else
14971   echo "$as_me: failed program was:" >&5
14972 sed 's/^/| /' conftest.$ac_ext >&5
14973
14974         ac_header_compiler=no
14975 fi
14976
14977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14978 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14979 echo "${ECHO_T}$ac_header_compiler" >&6; }
14980
14981 # Is the header present?
14982 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14984 cat >conftest.$ac_ext <<_ACEOF
14985 /* confdefs.h.  */
14986 _ACEOF
14987 cat confdefs.h >>conftest.$ac_ext
14988 cat >>conftest.$ac_ext <<_ACEOF
14989 /* end confdefs.h.  */
14990 #include <$ac_header>
14991 _ACEOF
14992 if { (ac_try="$ac_cpp conftest.$ac_ext"
14993 case "(($ac_try" in
14994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14995   *) ac_try_echo=$ac_try;;
14996 esac
14997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14998   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14999   ac_status=$?
15000   grep -v '^ *+' conftest.er1 >conftest.err
15001   rm -f conftest.er1
15002   cat conftest.err >&5
15003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004   (exit $ac_status); } >/dev/null; then
15005   if test -s conftest.err; then
15006     ac_cpp_err=$ac_c_preproc_warn_flag
15007     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15008   else
15009     ac_cpp_err=
15010   fi
15011 else
15012   ac_cpp_err=yes
15013 fi
15014 if test -z "$ac_cpp_err"; then
15015   ac_header_preproc=yes
15016 else
15017   echo "$as_me: failed program was:" >&5
15018 sed 's/^/| /' conftest.$ac_ext >&5
15019
15020   ac_header_preproc=no
15021 fi
15022
15023 rm -f conftest.err conftest.$ac_ext
15024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15025 echo "${ECHO_T}$ac_header_preproc" >&6; }
15026
15027 # So?  What about this header?
15028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15029   yes:no: )
15030     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15032     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15034     ac_header_preproc=yes
15035     ;;
15036   no:yes:* )
15037     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15039     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15040 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15041     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15043     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15044 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15045     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15047     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15049     ( cat <<\_ASBOX
15050 ## ------------------------------ ##
15051 ## Report this to bugs@yourdomain ##
15052 ## ------------------------------ ##
15053 _ASBOX
15054      ) | sed "s/^/$as_me: WARNING:     /" >&2
15055     ;;
15056 esac
15057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15060   echo $ECHO_N "(cached) $ECHO_C" >&6
15061 else
15062   eval "$as_ac_Header=\$ac_header_preproc"
15063 fi
15064 ac_res=`eval echo '${'$as_ac_Header'}'`
15065                { echo "$as_me:$LINENO: result: $ac_res" >&5
15066 echo "${ECHO_T}$ac_res" >&6; }
15067
15068 fi
15069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15070   cat >>confdefs.h <<_ACEOF
15071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15072 _ACEOF
15073
15074 fi
15075
15076 done
15077
15078
15079 for ac_header in valgrind/valgrind.h
15080 do
15081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15083   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15086   echo $ECHO_N "(cached) $ECHO_C" >&6
15087 fi
15088 ac_res=`eval echo '${'$as_ac_Header'}'`
15089                { echo "$as_me:$LINENO: result: $ac_res" >&5
15090 echo "${ECHO_T}$ac_res" >&6; }
15091 else
15092   # Is the header compilable?
15093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15095 cat >conftest.$ac_ext <<_ACEOF
15096 /* confdefs.h.  */
15097 _ACEOF
15098 cat confdefs.h >>conftest.$ac_ext
15099 cat >>conftest.$ac_ext <<_ACEOF
15100 /* end confdefs.h.  */
15101 $ac_includes_default
15102 #include <$ac_header>
15103 _ACEOF
15104 rm -f conftest.$ac_objext
15105 if { (ac_try="$ac_compile"
15106 case "(($ac_try" in
15107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108   *) ac_try_echo=$ac_try;;
15109 esac
15110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15111   (eval "$ac_compile") 2>conftest.er1
15112   ac_status=$?
15113   grep -v '^ *+' conftest.er1 >conftest.err
15114   rm -f conftest.er1
15115   cat conftest.err >&5
15116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117   (exit $ac_status); } &&
15118          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15119   { (case "(($ac_try" in
15120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121   *) ac_try_echo=$ac_try;;
15122 esac
15123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15124   (eval "$ac_try") 2>&5
15125   ac_status=$?
15126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127   (exit $ac_status); }; } &&
15128          { ac_try='test -s conftest.$ac_objext'
15129   { (case "(($ac_try" in
15130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131   *) ac_try_echo=$ac_try;;
15132 esac
15133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134   (eval "$ac_try") 2>&5
15135   ac_status=$?
15136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137   (exit $ac_status); }; }; then
15138   ac_header_compiler=yes
15139 else
15140   echo "$as_me: failed program was:" >&5
15141 sed 's/^/| /' conftest.$ac_ext >&5
15142
15143         ac_header_compiler=no
15144 fi
15145
15146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15148 echo "${ECHO_T}$ac_header_compiler" >&6; }
15149
15150 # Is the header present?
15151 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15153 cat >conftest.$ac_ext <<_ACEOF
15154 /* confdefs.h.  */
15155 _ACEOF
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h.  */
15159 #include <$ac_header>
15160 _ACEOF
15161 if { (ac_try="$ac_cpp conftest.$ac_ext"
15162 case "(($ac_try" in
15163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164   *) ac_try_echo=$ac_try;;
15165 esac
15166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15167   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15168   ac_status=$?
15169   grep -v '^ *+' conftest.er1 >conftest.err
15170   rm -f conftest.er1
15171   cat conftest.err >&5
15172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173   (exit $ac_status); } >/dev/null; then
15174   if test -s conftest.err; then
15175     ac_cpp_err=$ac_c_preproc_warn_flag
15176     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15177   else
15178     ac_cpp_err=
15179   fi
15180 else
15181   ac_cpp_err=yes
15182 fi
15183 if test -z "$ac_cpp_err"; then
15184   ac_header_preproc=yes
15185 else
15186   echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15188
15189   ac_header_preproc=no
15190 fi
15191
15192 rm -f conftest.err conftest.$ac_ext
15193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15194 echo "${ECHO_T}$ac_header_preproc" >&6; }
15195
15196 # So?  What about this header?
15197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15198   yes:no: )
15199     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15201     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15203     ac_header_preproc=yes
15204     ;;
15205   no:yes:* )
15206     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15208     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15209 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15210     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15212     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15213 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15216     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15218     ( cat <<\_ASBOX
15219 ## ------------------------------ ##
15220 ## Report this to bugs@yourdomain ##
15221 ## ------------------------------ ##
15222 _ASBOX
15223      ) | sed "s/^/$as_me: WARNING:     /" >&2
15224     ;;
15225 esac
15226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15229   echo $ECHO_N "(cached) $ECHO_C" >&6
15230 else
15231   eval "$as_ac_Header=\$ac_header_preproc"
15232 fi
15233 ac_res=`eval echo '${'$as_ac_Header'}'`
15234                { echo "$as_me:$LINENO: result: $ac_res" >&5
15235 echo "${ECHO_T}$ac_res" >&6; }
15236
15237 fi
15238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15239   cat >>confdefs.h <<_ACEOF
15240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15241 _ACEOF
15242
15243 fi
15244
15245 done
15246
15247
15248 for ac_header in fenv.h
15249 do
15250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15252   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15255   echo $ECHO_N "(cached) $ECHO_C" >&6
15256 fi
15257 ac_res=`eval echo '${'$as_ac_Header'}'`
15258                { echo "$as_me:$LINENO: result: $ac_res" >&5
15259 echo "${ECHO_T}$ac_res" >&6; }
15260 else
15261   # Is the header compilable?
15262 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15264 cat >conftest.$ac_ext <<_ACEOF
15265 /* confdefs.h.  */
15266 _ACEOF
15267 cat confdefs.h >>conftest.$ac_ext
15268 cat >>conftest.$ac_ext <<_ACEOF
15269 /* end confdefs.h.  */
15270 $ac_includes_default
15271 #include <$ac_header>
15272 _ACEOF
15273 rm -f conftest.$ac_objext
15274 if { (ac_try="$ac_compile"
15275 case "(($ac_try" in
15276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15277   *) ac_try_echo=$ac_try;;
15278 esac
15279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15280   (eval "$ac_compile") 2>conftest.er1
15281   ac_status=$?
15282   grep -v '^ *+' conftest.er1 >conftest.err
15283   rm -f conftest.er1
15284   cat conftest.err >&5
15285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286   (exit $ac_status); } &&
15287          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15288   { (case "(($ac_try" in
15289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15290   *) ac_try_echo=$ac_try;;
15291 esac
15292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15293   (eval "$ac_try") 2>&5
15294   ac_status=$?
15295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296   (exit $ac_status); }; } &&
15297          { ac_try='test -s conftest.$ac_objext'
15298   { (case "(($ac_try" in
15299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300   *) ac_try_echo=$ac_try;;
15301 esac
15302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303   (eval "$ac_try") 2>&5
15304   ac_status=$?
15305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306   (exit $ac_status); }; }; then
15307   ac_header_compiler=yes
15308 else
15309   echo "$as_me: failed program was:" >&5
15310 sed 's/^/| /' conftest.$ac_ext >&5
15311
15312         ac_header_compiler=no
15313 fi
15314
15315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15317 echo "${ECHO_T}$ac_header_compiler" >&6; }
15318
15319 # Is the header present?
15320 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15321 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15322 cat >conftest.$ac_ext <<_ACEOF
15323 /* confdefs.h.  */
15324 _ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h.  */
15328 #include <$ac_header>
15329 _ACEOF
15330 if { (ac_try="$ac_cpp conftest.$ac_ext"
15331 case "(($ac_try" in
15332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333   *) ac_try_echo=$ac_try;;
15334 esac
15335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15336   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15337   ac_status=$?
15338   grep -v '^ *+' conftest.er1 >conftest.err
15339   rm -f conftest.er1
15340   cat conftest.err >&5
15341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342   (exit $ac_status); } >/dev/null; then
15343   if test -s conftest.err; then
15344     ac_cpp_err=$ac_c_preproc_warn_flag
15345     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15346   else
15347     ac_cpp_err=
15348   fi
15349 else
15350   ac_cpp_err=yes
15351 fi
15352 if test -z "$ac_cpp_err"; then
15353   ac_header_preproc=yes
15354 else
15355   echo "$as_me: failed program was:" >&5
15356 sed 's/^/| /' conftest.$ac_ext >&5
15357
15358   ac_header_preproc=no
15359 fi
15360
15361 rm -f conftest.err conftest.$ac_ext
15362 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15363 echo "${ECHO_T}$ac_header_preproc" >&6; }
15364
15365 # So?  What about this header?
15366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15367   yes:no: )
15368     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15370     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15371 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15372     ac_header_preproc=yes
15373     ;;
15374   no:yes:* )
15375     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15377     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15378 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15379     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15380 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15381     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15382 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15383     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15385     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15386 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15387     ( cat <<\_ASBOX
15388 ## ------------------------------ ##
15389 ## Report this to bugs@yourdomain ##
15390 ## ------------------------------ ##
15391 _ASBOX
15392      ) | sed "s/^/$as_me: WARNING:     /" >&2
15393     ;;
15394 esac
15395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15398   echo $ECHO_N "(cached) $ECHO_C" >&6
15399 else
15400   eval "$as_ac_Header=\$ac_header_preproc"
15401 fi
15402 ac_res=`eval echo '${'$as_ac_Header'}'`
15403                { echo "$as_me:$LINENO: result: $ac_res" >&5
15404 echo "${ECHO_T}$ac_res" >&6; }
15405
15406 fi
15407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15408   cat >>confdefs.h <<_ACEOF
15409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15410 _ACEOF
15411
15412 fi
15413
15414 done
15415
15416 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15417
15418 for ac_header in pthread.h
15419 do
15420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15422   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15425   echo $ECHO_N "(cached) $ECHO_C" >&6
15426 fi
15427 ac_res=`eval echo '${'$as_ac_Header'}'`
15428                { echo "$as_me:$LINENO: result: $ac_res" >&5
15429 echo "${ECHO_T}$ac_res" >&6; }
15430 else
15431   # Is the header compilable?
15432 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15434 cat >conftest.$ac_ext <<_ACEOF
15435 /* confdefs.h.  */
15436 _ACEOF
15437 cat confdefs.h >>conftest.$ac_ext
15438 cat >>conftest.$ac_ext <<_ACEOF
15439 /* end confdefs.h.  */
15440 $ac_includes_default
15441 #include <$ac_header>
15442 _ACEOF
15443 rm -f conftest.$ac_objext
15444 if { (ac_try="$ac_compile"
15445 case "(($ac_try" in
15446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15447   *) ac_try_echo=$ac_try;;
15448 esac
15449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15450   (eval "$ac_compile") 2>conftest.er1
15451   ac_status=$?
15452   grep -v '^ *+' conftest.er1 >conftest.err
15453   rm -f conftest.er1
15454   cat conftest.err >&5
15455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456   (exit $ac_status); } &&
15457          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15458   { (case "(($ac_try" in
15459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15460   *) ac_try_echo=$ac_try;;
15461 esac
15462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15463   (eval "$ac_try") 2>&5
15464   ac_status=$?
15465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466   (exit $ac_status); }; } &&
15467          { ac_try='test -s conftest.$ac_objext'
15468   { (case "(($ac_try" in
15469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15470   *) ac_try_echo=$ac_try;;
15471 esac
15472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15473   (eval "$ac_try") 2>&5
15474   ac_status=$?
15475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476   (exit $ac_status); }; }; then
15477   ac_header_compiler=yes
15478 else
15479   echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15481
15482         ac_header_compiler=no
15483 fi
15484
15485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15486 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15487 echo "${ECHO_T}$ac_header_compiler" >&6; }
15488
15489 # Is the header present?
15490 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15492 cat >conftest.$ac_ext <<_ACEOF
15493 /* confdefs.h.  */
15494 _ACEOF
15495 cat confdefs.h >>conftest.$ac_ext
15496 cat >>conftest.$ac_ext <<_ACEOF
15497 /* end confdefs.h.  */
15498 #include <$ac_header>
15499 _ACEOF
15500 if { (ac_try="$ac_cpp conftest.$ac_ext"
15501 case "(($ac_try" in
15502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503   *) ac_try_echo=$ac_try;;
15504 esac
15505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15506   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15507   ac_status=$?
15508   grep -v '^ *+' conftest.er1 >conftest.err
15509   rm -f conftest.er1
15510   cat conftest.err >&5
15511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512   (exit $ac_status); } >/dev/null; then
15513   if test -s conftest.err; then
15514     ac_cpp_err=$ac_c_preproc_warn_flag
15515     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15516   else
15517     ac_cpp_err=
15518   fi
15519 else
15520   ac_cpp_err=yes
15521 fi
15522 if test -z "$ac_cpp_err"; then
15523   ac_header_preproc=yes
15524 else
15525   echo "$as_me: failed program was:" >&5
15526 sed 's/^/| /' conftest.$ac_ext >&5
15527
15528   ac_header_preproc=no
15529 fi
15530
15531 rm -f conftest.err conftest.$ac_ext
15532 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15533 echo "${ECHO_T}$ac_header_preproc" >&6; }
15534
15535 # So?  What about this header?
15536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15537   yes:no: )
15538     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15542     ac_header_preproc=yes
15543     ;;
15544   no:yes:* )
15545     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15547     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15548 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15549     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15551     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15552 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15555     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15557     ( cat <<\_ASBOX
15558 ## ------------------------------ ##
15559 ## Report this to bugs@yourdomain ##
15560 ## ------------------------------ ##
15561 _ASBOX
15562      ) | sed "s/^/$as_me: WARNING:     /" >&2
15563     ;;
15564 esac
15565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15568   echo $ECHO_N "(cached) $ECHO_C" >&6
15569 else
15570   eval "$as_ac_Header=\$ac_header_preproc"
15571 fi
15572 ac_res=`eval echo '${'$as_ac_Header'}'`
15573                { echo "$as_me:$LINENO: result: $ac_res" >&5
15574 echo "${ECHO_T}$ac_res" >&6; }
15575
15576 fi
15577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15578   cat >>confdefs.h <<_ACEOF
15579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15580 _ACEOF
15581  HAVE_PTHREAD=1
15582
15583 else
15584   HAVE_PTHREAD=0
15585
15586 fi
15587
15588 done
15589
15590 else
15591   HAVE_PTHREAD=0
15592
15593 fi
15594
15595 if test "$llvm_cv_enable_libffi" = "yes" ; then
15596
15597
15598 for ac_header in ffi.h ffi/ffi.h
15599 do
15600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15602   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15605   echo $ECHO_N "(cached) $ECHO_C" >&6
15606 fi
15607 ac_res=`eval echo '${'$as_ac_Header'}'`
15608                { echo "$as_me:$LINENO: result: $ac_res" >&5
15609 echo "${ECHO_T}$ac_res" >&6; }
15610 else
15611   # Is the header compilable?
15612 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15614 cat >conftest.$ac_ext <<_ACEOF
15615 /* confdefs.h.  */
15616 _ACEOF
15617 cat confdefs.h >>conftest.$ac_ext
15618 cat >>conftest.$ac_ext <<_ACEOF
15619 /* end confdefs.h.  */
15620 $ac_includes_default
15621 #include <$ac_header>
15622 _ACEOF
15623 rm -f conftest.$ac_objext
15624 if { (ac_try="$ac_compile"
15625 case "(($ac_try" in
15626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627   *) ac_try_echo=$ac_try;;
15628 esac
15629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630   (eval "$ac_compile") 2>conftest.er1
15631   ac_status=$?
15632   grep -v '^ *+' conftest.er1 >conftest.err
15633   rm -f conftest.er1
15634   cat conftest.err >&5
15635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636   (exit $ac_status); } &&
15637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15638   { (case "(($ac_try" in
15639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640   *) ac_try_echo=$ac_try;;
15641 esac
15642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643   (eval "$ac_try") 2>&5
15644   ac_status=$?
15645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646   (exit $ac_status); }; } &&
15647          { ac_try='test -s conftest.$ac_objext'
15648   { (case "(($ac_try" in
15649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15650   *) ac_try_echo=$ac_try;;
15651 esac
15652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15653   (eval "$ac_try") 2>&5
15654   ac_status=$?
15655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656   (exit $ac_status); }; }; then
15657   ac_header_compiler=yes
15658 else
15659   echo "$as_me: failed program was:" >&5
15660 sed 's/^/| /' conftest.$ac_ext >&5
15661
15662         ac_header_compiler=no
15663 fi
15664
15665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15667 echo "${ECHO_T}$ac_header_compiler" >&6; }
15668
15669 # Is the header present?
15670 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15672 cat >conftest.$ac_ext <<_ACEOF
15673 /* confdefs.h.  */
15674 _ACEOF
15675 cat confdefs.h >>conftest.$ac_ext
15676 cat >>conftest.$ac_ext <<_ACEOF
15677 /* end confdefs.h.  */
15678 #include <$ac_header>
15679 _ACEOF
15680 if { (ac_try="$ac_cpp conftest.$ac_ext"
15681 case "(($ac_try" in
15682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683   *) ac_try_echo=$ac_try;;
15684 esac
15685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15687   ac_status=$?
15688   grep -v '^ *+' conftest.er1 >conftest.err
15689   rm -f conftest.er1
15690   cat conftest.err >&5
15691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692   (exit $ac_status); } >/dev/null; then
15693   if test -s conftest.err; then
15694     ac_cpp_err=$ac_c_preproc_warn_flag
15695     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15696   else
15697     ac_cpp_err=
15698   fi
15699 else
15700   ac_cpp_err=yes
15701 fi
15702 if test -z "$ac_cpp_err"; then
15703   ac_header_preproc=yes
15704 else
15705   echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15707
15708   ac_header_preproc=no
15709 fi
15710
15711 rm -f conftest.err conftest.$ac_ext
15712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15713 echo "${ECHO_T}$ac_header_preproc" >&6; }
15714
15715 # So?  What about this header?
15716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15717   yes:no: )
15718     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15720     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15722     ac_header_preproc=yes
15723     ;;
15724   no:yes:* )
15725     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15727     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15728 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15729     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15731     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15732 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15733     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15735     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15737     ( cat <<\_ASBOX
15738 ## ------------------------------ ##
15739 ## Report this to bugs@yourdomain ##
15740 ## ------------------------------ ##
15741 _ASBOX
15742      ) | sed "s/^/$as_me: WARNING:     /" >&2
15743     ;;
15744 esac
15745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15748   echo $ECHO_N "(cached) $ECHO_C" >&6
15749 else
15750   eval "$as_ac_Header=\$ac_header_preproc"
15751 fi
15752 ac_res=`eval echo '${'$as_ac_Header'}'`
15753                { echo "$as_me:$LINENO: result: $ac_res" >&5
15754 echo "${ECHO_T}$ac_res" >&6; }
15755
15756 fi
15757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15758   cat >>confdefs.h <<_ACEOF
15759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15760 _ACEOF
15761
15762 fi
15763
15764 done
15765
15766 fi
15767
15768
15769 for ac_header in CrashReporterClient.h
15770 do
15771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15773   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15776   echo $ECHO_N "(cached) $ECHO_C" >&6
15777 fi
15778 ac_res=`eval echo '${'$as_ac_Header'}'`
15779                { echo "$as_me:$LINENO: result: $ac_res" >&5
15780 echo "${ECHO_T}$ac_res" >&6; }
15781 else
15782   # Is the header compilable?
15783 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15784 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15785 cat >conftest.$ac_ext <<_ACEOF
15786 /* confdefs.h.  */
15787 _ACEOF
15788 cat confdefs.h >>conftest.$ac_ext
15789 cat >>conftest.$ac_ext <<_ACEOF
15790 /* end confdefs.h.  */
15791 $ac_includes_default
15792 #include <$ac_header>
15793 _ACEOF
15794 rm -f conftest.$ac_objext
15795 if { (ac_try="$ac_compile"
15796 case "(($ac_try" in
15797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798   *) ac_try_echo=$ac_try;;
15799 esac
15800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15801   (eval "$ac_compile") 2>conftest.er1
15802   ac_status=$?
15803   grep -v '^ *+' conftest.er1 >conftest.err
15804   rm -f conftest.er1
15805   cat conftest.err >&5
15806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807   (exit $ac_status); } &&
15808          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15809   { (case "(($ac_try" in
15810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15811   *) ac_try_echo=$ac_try;;
15812 esac
15813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15814   (eval "$ac_try") 2>&5
15815   ac_status=$?
15816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817   (exit $ac_status); }; } &&
15818          { ac_try='test -s conftest.$ac_objext'
15819   { (case "(($ac_try" in
15820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15821   *) ac_try_echo=$ac_try;;
15822 esac
15823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15824   (eval "$ac_try") 2>&5
15825   ac_status=$?
15826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827   (exit $ac_status); }; }; then
15828   ac_header_compiler=yes
15829 else
15830   echo "$as_me: failed program was:" >&5
15831 sed 's/^/| /' conftest.$ac_ext >&5
15832
15833         ac_header_compiler=no
15834 fi
15835
15836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15837 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15838 echo "${ECHO_T}$ac_header_compiler" >&6; }
15839
15840 # Is the header present?
15841 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15843 cat >conftest.$ac_ext <<_ACEOF
15844 /* confdefs.h.  */
15845 _ACEOF
15846 cat confdefs.h >>conftest.$ac_ext
15847 cat >>conftest.$ac_ext <<_ACEOF
15848 /* end confdefs.h.  */
15849 #include <$ac_header>
15850 _ACEOF
15851 if { (ac_try="$ac_cpp conftest.$ac_ext"
15852 case "(($ac_try" in
15853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15854   *) ac_try_echo=$ac_try;;
15855 esac
15856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15857   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15858   ac_status=$?
15859   grep -v '^ *+' conftest.er1 >conftest.err
15860   rm -f conftest.er1
15861   cat conftest.err >&5
15862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863   (exit $ac_status); } >/dev/null; then
15864   if test -s conftest.err; then
15865     ac_cpp_err=$ac_c_preproc_warn_flag
15866     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15867   else
15868     ac_cpp_err=
15869   fi
15870 else
15871   ac_cpp_err=yes
15872 fi
15873 if test -z "$ac_cpp_err"; then
15874   ac_header_preproc=yes
15875 else
15876   echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15878
15879   ac_header_preproc=no
15880 fi
15881
15882 rm -f conftest.err conftest.$ac_ext
15883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15884 echo "${ECHO_T}$ac_header_preproc" >&6; }
15885
15886 # So?  What about this header?
15887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15888   yes:no: )
15889     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15893     ac_header_preproc=yes
15894     ;;
15895   no:yes:* )
15896     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15898     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15899 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15900     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15902     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15903 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15904     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15906     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15908     ( cat <<\_ASBOX
15909 ## ------------------------------ ##
15910 ## Report this to bugs@yourdomain ##
15911 ## ------------------------------ ##
15912 _ASBOX
15913      ) | sed "s/^/$as_me: WARNING:     /" >&2
15914     ;;
15915 esac
15916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15919   echo $ECHO_N "(cached) $ECHO_C" >&6
15920 else
15921   eval "$as_ac_Header=\$ac_header_preproc"
15922 fi
15923 ac_res=`eval echo '${'$as_ac_Header'}'`
15924                { echo "$as_me:$LINENO: result: $ac_res" >&5
15925 echo "${ECHO_T}$ac_res" >&6; }
15926
15927 fi
15928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15929   cat >>confdefs.h <<_ACEOF
15930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15931 _ACEOF
15932
15933 fi
15934
15935 done
15936
15937
15938 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15939 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15940 cat >conftest.$ac_ext <<_ACEOF
15941 /* confdefs.h.  */
15942 _ACEOF
15943 cat confdefs.h >>conftest.$ac_ext
15944 cat >>conftest.$ac_ext <<_ACEOF
15945 /* end confdefs.h.  */
15946 extern const char *__crashreporter_info__;
15947       int main() {
15948         __crashreporter_info__ = "test";
15949         return 0;
15950       }
15951
15952 _ACEOF
15953 rm -f conftest.$ac_objext conftest$ac_exeext
15954 if { (ac_try="$ac_link"
15955 case "(($ac_try" in
15956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15957   *) ac_try_echo=$ac_try;;
15958 esac
15959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15960   (eval "$ac_link") 2>conftest.er1
15961   ac_status=$?
15962   grep -v '^ *+' conftest.er1 >conftest.err
15963   rm -f conftest.er1
15964   cat conftest.err >&5
15965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966   (exit $ac_status); } &&
15967          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15968   { (case "(($ac_try" in
15969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15970   *) ac_try_echo=$ac_try;;
15971 esac
15972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15973   (eval "$ac_try") 2>&5
15974   ac_status=$?
15975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976   (exit $ac_status); }; } &&
15977          { ac_try='test -s conftest$ac_exeext'
15978   { (case "(($ac_try" in
15979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15980   *) ac_try_echo=$ac_try;;
15981 esac
15982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15983   (eval "$ac_try") 2>&5
15984   ac_status=$?
15985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986   (exit $ac_status); }; }; then
15987   { echo "$as_me:$LINENO: result: yes" >&5
15988 echo "${ECHO_T}yes" >&6; }
15989
15990 cat >>confdefs.h <<\_ACEOF
15991 #define HAVE_CRASHREPORTER_INFO 1
15992 _ACEOF
15993
15994 else
15995   echo "$as_me: failed program was:" >&5
15996 sed 's/^/| /' conftest.$ac_ext >&5
15997
15998         { echo "$as_me:$LINENO: result: no" >&5
15999 echo "${ECHO_T}no" >&6; }
16000
16001 cat >>confdefs.h <<\_ACEOF
16002 #define HAVE_CRASHREPORTER_INFO 0
16003 _ACEOF
16004
16005 fi
16006
16007 rm -f core conftest.err conftest.$ac_objext \
16008       conftest$ac_exeext conftest.$ac_ext
16009
16010
16011
16012
16013   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16014 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16015 if test "${ac_cv_huge_val_sanity+set}" = set; then
16016   echo $ECHO_N "(cached) $ECHO_C" >&6
16017 else
16018
16019     ac_ext=cpp
16020 ac_cpp='$CXXCPP $CPPFLAGS'
16021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16024
16025     ac_save_CXXFLAGS=$CXXFLAGS
16026     CXXFLAGS="$CXXFLAGS -pedantic"
16027     if test "$cross_compiling" = yes; then
16028   ac_cv_huge_val_sanity=yes
16029 else
16030   cat >conftest.$ac_ext <<_ACEOF
16031 /* confdefs.h.  */
16032 _ACEOF
16033 cat confdefs.h >>conftest.$ac_ext
16034 cat >>conftest.$ac_ext <<_ACEOF
16035 /* end confdefs.h.  */
16036 #include <math.h>
16037 int
16038 main ()
16039 {
16040 double x = HUGE_VAL; return x != x;
16041   ;
16042   return 0;
16043 }
16044 _ACEOF
16045 rm -f conftest$ac_exeext
16046 if { (ac_try="$ac_link"
16047 case "(($ac_try" in
16048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049   *) ac_try_echo=$ac_try;;
16050 esac
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052   (eval "$ac_link") 2>&5
16053   ac_status=$?
16054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16056   { (case "(($ac_try" in
16057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16058   *) ac_try_echo=$ac_try;;
16059 esac
16060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16061   (eval "$ac_try") 2>&5
16062   ac_status=$?
16063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064   (exit $ac_status); }; }; then
16065   ac_cv_huge_val_sanity=yes
16066 else
16067   echo "$as_me: program exited with status $ac_status" >&5
16068 echo "$as_me: failed program was:" >&5
16069 sed 's/^/| /' conftest.$ac_ext >&5
16070
16071 ( exit $ac_status )
16072 ac_cv_huge_val_sanity=no
16073 fi
16074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16075 fi
16076
16077
16078     CXXFLAGS=$ac_save_CXXFLAGS
16079     ac_ext=c
16080 ac_cpp='$CPP $CPPFLAGS'
16081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16084
16085
16086 fi
16087 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16088 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16089   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16090
16091
16092 { echo "$as_me:$LINENO: checking for pid_t" >&5
16093 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16094 if test "${ac_cv_type_pid_t+set}" = set; then
16095   echo $ECHO_N "(cached) $ECHO_C" >&6
16096 else
16097   cat >conftest.$ac_ext <<_ACEOF
16098 /* confdefs.h.  */
16099 _ACEOF
16100 cat confdefs.h >>conftest.$ac_ext
16101 cat >>conftest.$ac_ext <<_ACEOF
16102 /* end confdefs.h.  */
16103 $ac_includes_default
16104 typedef pid_t ac__type_new_;
16105 int
16106 main ()
16107 {
16108 if ((ac__type_new_ *) 0)
16109   return 0;
16110 if (sizeof (ac__type_new_))
16111   return 0;
16112   ;
16113   return 0;
16114 }
16115 _ACEOF
16116 rm -f conftest.$ac_objext
16117 if { (ac_try="$ac_compile"
16118 case "(($ac_try" in
16119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16120   *) ac_try_echo=$ac_try;;
16121 esac
16122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16123   (eval "$ac_compile") 2>conftest.er1
16124   ac_status=$?
16125   grep -v '^ *+' conftest.er1 >conftest.err
16126   rm -f conftest.er1
16127   cat conftest.err >&5
16128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129   (exit $ac_status); } &&
16130          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16131   { (case "(($ac_try" in
16132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16133   *) ac_try_echo=$ac_try;;
16134 esac
16135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16136   (eval "$ac_try") 2>&5
16137   ac_status=$?
16138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139   (exit $ac_status); }; } &&
16140          { ac_try='test -s conftest.$ac_objext'
16141   { (case "(($ac_try" in
16142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16143   *) ac_try_echo=$ac_try;;
16144 esac
16145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16146   (eval "$ac_try") 2>&5
16147   ac_status=$?
16148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149   (exit $ac_status); }; }; then
16150   ac_cv_type_pid_t=yes
16151 else
16152   echo "$as_me: failed program was:" >&5
16153 sed 's/^/| /' conftest.$ac_ext >&5
16154
16155         ac_cv_type_pid_t=no
16156 fi
16157
16158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16159 fi
16160 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16161 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16162 if test $ac_cv_type_pid_t = yes; then
16163   :
16164 else
16165
16166 cat >>confdefs.h <<_ACEOF
16167 #define pid_t int
16168 _ACEOF
16169
16170 fi
16171
16172 { echo "$as_me:$LINENO: checking for size_t" >&5
16173 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16174 if test "${ac_cv_type_size_t+set}" = set; then
16175   echo $ECHO_N "(cached) $ECHO_C" >&6
16176 else
16177   cat >conftest.$ac_ext <<_ACEOF
16178 /* confdefs.h.  */
16179 _ACEOF
16180 cat confdefs.h >>conftest.$ac_ext
16181 cat >>conftest.$ac_ext <<_ACEOF
16182 /* end confdefs.h.  */
16183 $ac_includes_default
16184 typedef size_t ac__type_new_;
16185 int
16186 main ()
16187 {
16188 if ((ac__type_new_ *) 0)
16189   return 0;
16190 if (sizeof (ac__type_new_))
16191   return 0;
16192   ;
16193   return 0;
16194 }
16195 _ACEOF
16196 rm -f conftest.$ac_objext
16197 if { (ac_try="$ac_compile"
16198 case "(($ac_try" in
16199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16200   *) ac_try_echo=$ac_try;;
16201 esac
16202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16203   (eval "$ac_compile") 2>conftest.er1
16204   ac_status=$?
16205   grep -v '^ *+' conftest.er1 >conftest.err
16206   rm -f conftest.er1
16207   cat conftest.err >&5
16208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209   (exit $ac_status); } &&
16210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16211   { (case "(($ac_try" in
16212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213   *) ac_try_echo=$ac_try;;
16214 esac
16215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16216   (eval "$ac_try") 2>&5
16217   ac_status=$?
16218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219   (exit $ac_status); }; } &&
16220          { ac_try='test -s conftest.$ac_objext'
16221   { (case "(($ac_try" in
16222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16223   *) ac_try_echo=$ac_try;;
16224 esac
16225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16226   (eval "$ac_try") 2>&5
16227   ac_status=$?
16228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229   (exit $ac_status); }; }; then
16230   ac_cv_type_size_t=yes
16231 else
16232   echo "$as_me: failed program was:" >&5
16233 sed 's/^/| /' conftest.$ac_ext >&5
16234
16235         ac_cv_type_size_t=no
16236 fi
16237
16238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16239 fi
16240 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16241 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16242 if test $ac_cv_type_size_t = yes; then
16243   :
16244 else
16245
16246 cat >>confdefs.h <<_ACEOF
16247 #define size_t unsigned int
16248 _ACEOF
16249
16250 fi
16251
16252
16253 cat >>confdefs.h <<_ACEOF
16254 #define RETSIGTYPE void
16255 _ACEOF
16256
16257 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16258 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16259 if test "${ac_cv_struct_tm+set}" = set; then
16260   echo $ECHO_N "(cached) $ECHO_C" >&6
16261 else
16262   cat >conftest.$ac_ext <<_ACEOF
16263 /* confdefs.h.  */
16264 _ACEOF
16265 cat confdefs.h >>conftest.$ac_ext
16266 cat >>conftest.$ac_ext <<_ACEOF
16267 /* end confdefs.h.  */
16268 #include <sys/types.h>
16269 #include <time.h>
16270
16271 int
16272 main ()
16273 {
16274 struct tm *tp; tp->tm_sec;
16275   ;
16276   return 0;
16277 }
16278 _ACEOF
16279 rm -f conftest.$ac_objext
16280 if { (ac_try="$ac_compile"
16281 case "(($ac_try" in
16282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283   *) ac_try_echo=$ac_try;;
16284 esac
16285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286   (eval "$ac_compile") 2>conftest.er1
16287   ac_status=$?
16288   grep -v '^ *+' conftest.er1 >conftest.err
16289   rm -f conftest.er1
16290   cat conftest.err >&5
16291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292   (exit $ac_status); } &&
16293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16294   { (case "(($ac_try" in
16295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296   *) ac_try_echo=$ac_try;;
16297 esac
16298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16299   (eval "$ac_try") 2>&5
16300   ac_status=$?
16301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302   (exit $ac_status); }; } &&
16303          { ac_try='test -s conftest.$ac_objext'
16304   { (case "(($ac_try" in
16305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16306   *) ac_try_echo=$ac_try;;
16307 esac
16308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16309   (eval "$ac_try") 2>&5
16310   ac_status=$?
16311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312   (exit $ac_status); }; }; then
16313   ac_cv_struct_tm=time.h
16314 else
16315   echo "$as_me: failed program was:" >&5
16316 sed 's/^/| /' conftest.$ac_ext >&5
16317
16318         ac_cv_struct_tm=sys/time.h
16319 fi
16320
16321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16322 fi
16323 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16324 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16325 if test $ac_cv_struct_tm = sys/time.h; then
16326
16327 cat >>confdefs.h <<\_ACEOF
16328 #define TM_IN_SYS_TIME 1
16329 _ACEOF
16330
16331 fi
16332
16333 { echo "$as_me:$LINENO: checking for int64_t" >&5
16334 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16335 if test "${ac_cv_type_int64_t+set}" = set; then
16336   echo $ECHO_N "(cached) $ECHO_C" >&6
16337 else
16338   cat >conftest.$ac_ext <<_ACEOF
16339 /* confdefs.h.  */
16340 _ACEOF
16341 cat confdefs.h >>conftest.$ac_ext
16342 cat >>conftest.$ac_ext <<_ACEOF
16343 /* end confdefs.h.  */
16344 $ac_includes_default
16345 typedef int64_t ac__type_new_;
16346 int
16347 main ()
16348 {
16349 if ((ac__type_new_ *) 0)
16350   return 0;
16351 if (sizeof (ac__type_new_))
16352   return 0;
16353   ;
16354   return 0;
16355 }
16356 _ACEOF
16357 rm -f conftest.$ac_objext
16358 if { (ac_try="$ac_compile"
16359 case "(($ac_try" in
16360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361   *) ac_try_echo=$ac_try;;
16362 esac
16363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16364   (eval "$ac_compile") 2>conftest.er1
16365   ac_status=$?
16366   grep -v '^ *+' conftest.er1 >conftest.err
16367   rm -f conftest.er1
16368   cat conftest.err >&5
16369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370   (exit $ac_status); } &&
16371          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16372   { (case "(($ac_try" in
16373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374   *) ac_try_echo=$ac_try;;
16375 esac
16376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377   (eval "$ac_try") 2>&5
16378   ac_status=$?
16379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380   (exit $ac_status); }; } &&
16381          { ac_try='test -s conftest.$ac_objext'
16382   { (case "(($ac_try" in
16383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16384   *) ac_try_echo=$ac_try;;
16385 esac
16386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16387   (eval "$ac_try") 2>&5
16388   ac_status=$?
16389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390   (exit $ac_status); }; }; then
16391   ac_cv_type_int64_t=yes
16392 else
16393   echo "$as_me: failed program was:" >&5
16394 sed 's/^/| /' conftest.$ac_ext >&5
16395
16396         ac_cv_type_int64_t=no
16397 fi
16398
16399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16400 fi
16401 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16402 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16403 if test $ac_cv_type_int64_t = yes; then
16404
16405 cat >>confdefs.h <<_ACEOF
16406 #define HAVE_INT64_T 1
16407 _ACEOF
16408
16409
16410 else
16411   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16412 echo "$as_me: error: Type int64_t required but not found" >&2;}
16413    { (exit 1); exit 1; }; }
16414 fi
16415
16416 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16417 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16418 if test "${ac_cv_type_uint64_t+set}" = set; then
16419   echo $ECHO_N "(cached) $ECHO_C" >&6
16420 else
16421   cat >conftest.$ac_ext <<_ACEOF
16422 /* confdefs.h.  */
16423 _ACEOF
16424 cat confdefs.h >>conftest.$ac_ext
16425 cat >>conftest.$ac_ext <<_ACEOF
16426 /* end confdefs.h.  */
16427 $ac_includes_default
16428 typedef uint64_t ac__type_new_;
16429 int
16430 main ()
16431 {
16432 if ((ac__type_new_ *) 0)
16433   return 0;
16434 if (sizeof (ac__type_new_))
16435   return 0;
16436   ;
16437   return 0;
16438 }
16439 _ACEOF
16440 rm -f conftest.$ac_objext
16441 if { (ac_try="$ac_compile"
16442 case "(($ac_try" in
16443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444   *) ac_try_echo=$ac_try;;
16445 esac
16446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447   (eval "$ac_compile") 2>conftest.er1
16448   ac_status=$?
16449   grep -v '^ *+' conftest.er1 >conftest.err
16450   rm -f conftest.er1
16451   cat conftest.err >&5
16452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453   (exit $ac_status); } &&
16454          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16455   { (case "(($ac_try" in
16456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457   *) ac_try_echo=$ac_try;;
16458 esac
16459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460   (eval "$ac_try") 2>&5
16461   ac_status=$?
16462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463   (exit $ac_status); }; } &&
16464          { ac_try='test -s conftest.$ac_objext'
16465   { (case "(($ac_try" in
16466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467   *) ac_try_echo=$ac_try;;
16468 esac
16469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16470   (eval "$ac_try") 2>&5
16471   ac_status=$?
16472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473   (exit $ac_status); }; }; then
16474   ac_cv_type_uint64_t=yes
16475 else
16476   echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16478
16479         ac_cv_type_uint64_t=no
16480 fi
16481
16482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16483 fi
16484 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16485 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16486 if test $ac_cv_type_uint64_t = yes; then
16487
16488 cat >>confdefs.h <<_ACEOF
16489 #define HAVE_UINT64_T 1
16490 _ACEOF
16491
16492
16493 else
16494   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16495 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16496 if test "${ac_cv_type_u_int64_t+set}" = set; then
16497   echo $ECHO_N "(cached) $ECHO_C" >&6
16498 else
16499   cat >conftest.$ac_ext <<_ACEOF
16500 /* confdefs.h.  */
16501 _ACEOF
16502 cat confdefs.h >>conftest.$ac_ext
16503 cat >>conftest.$ac_ext <<_ACEOF
16504 /* end confdefs.h.  */
16505 $ac_includes_default
16506 typedef u_int64_t ac__type_new_;
16507 int
16508 main ()
16509 {
16510 if ((ac__type_new_ *) 0)
16511   return 0;
16512 if (sizeof (ac__type_new_))
16513   return 0;
16514   ;
16515   return 0;
16516 }
16517 _ACEOF
16518 rm -f conftest.$ac_objext
16519 if { (ac_try="$ac_compile"
16520 case "(($ac_try" in
16521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522   *) ac_try_echo=$ac_try;;
16523 esac
16524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16525   (eval "$ac_compile") 2>conftest.er1
16526   ac_status=$?
16527   grep -v '^ *+' conftest.er1 >conftest.err
16528   rm -f conftest.er1
16529   cat conftest.err >&5
16530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531   (exit $ac_status); } &&
16532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16533   { (case "(($ac_try" in
16534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16535   *) ac_try_echo=$ac_try;;
16536 esac
16537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16538   (eval "$ac_try") 2>&5
16539   ac_status=$?
16540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541   (exit $ac_status); }; } &&
16542          { ac_try='test -s conftest.$ac_objext'
16543   { (case "(($ac_try" in
16544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16545   *) ac_try_echo=$ac_try;;
16546 esac
16547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16548   (eval "$ac_try") 2>&5
16549   ac_status=$?
16550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551   (exit $ac_status); }; }; then
16552   ac_cv_type_u_int64_t=yes
16553 else
16554   echo "$as_me: failed program was:" >&5
16555 sed 's/^/| /' conftest.$ac_ext >&5
16556
16557         ac_cv_type_u_int64_t=no
16558 fi
16559
16560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16561 fi
16562 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16563 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16564 if test $ac_cv_type_u_int64_t = yes; then
16565
16566 cat >>confdefs.h <<_ACEOF
16567 #define HAVE_U_INT64_T 1
16568 _ACEOF
16569
16570
16571 else
16572   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16573 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16574    { (exit 1); exit 1; }; }
16575 fi
16576
16577 fi
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16589 do
16590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16591 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16593 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16594   echo $ECHO_N "(cached) $ECHO_C" >&6
16595 else
16596   cat >conftest.$ac_ext <<_ACEOF
16597 /* confdefs.h.  */
16598 _ACEOF
16599 cat confdefs.h >>conftest.$ac_ext
16600 cat >>conftest.$ac_ext <<_ACEOF
16601 /* end confdefs.h.  */
16602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16604 #define $ac_func innocuous_$ac_func
16605
16606 /* System header to define __stub macros and hopefully few prototypes,
16607     which can conflict with char $ac_func (); below.
16608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16609     <limits.h> exists even on freestanding compilers.  */
16610
16611 #ifdef __STDC__
16612 # include <limits.h>
16613 #else
16614 # include <assert.h>
16615 #endif
16616
16617 #undef $ac_func
16618
16619 /* Override any GCC internal prototype to avoid an error.
16620    Use char because int might match the return type of a GCC
16621    builtin and then its argument prototype would still apply.  */
16622 #ifdef __cplusplus
16623 extern "C"
16624 #endif
16625 char $ac_func ();
16626 /* The GNU C library defines this for functions which it implements
16627     to always fail with ENOSYS.  Some functions are actually named
16628     something starting with __ and the normal name is an alias.  */
16629 #if defined __stub_$ac_func || defined __stub___$ac_func
16630 choke me
16631 #endif
16632
16633 int
16634 main ()
16635 {
16636 return $ac_func ();
16637   ;
16638   return 0;
16639 }
16640 _ACEOF
16641 rm -f conftest.$ac_objext conftest$ac_exeext
16642 if { (ac_try="$ac_link"
16643 case "(($ac_try" in
16644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16645   *) ac_try_echo=$ac_try;;
16646 esac
16647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16648   (eval "$ac_link") 2>conftest.er1
16649   ac_status=$?
16650   grep -v '^ *+' conftest.er1 >conftest.err
16651   rm -f conftest.er1
16652   cat conftest.err >&5
16653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654   (exit $ac_status); } &&
16655          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16656   { (case "(($ac_try" in
16657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658   *) ac_try_echo=$ac_try;;
16659 esac
16660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16661   (eval "$ac_try") 2>&5
16662   ac_status=$?
16663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664   (exit $ac_status); }; } &&
16665          { ac_try='test -s conftest$ac_exeext'
16666   { (case "(($ac_try" in
16667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668   *) ac_try_echo=$ac_try;;
16669 esac
16670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16671   (eval "$ac_try") 2>&5
16672   ac_status=$?
16673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674   (exit $ac_status); }; }; then
16675   eval "$as_ac_var=yes"
16676 else
16677   echo "$as_me: failed program was:" >&5
16678 sed 's/^/| /' conftest.$ac_ext >&5
16679
16680         eval "$as_ac_var=no"
16681 fi
16682
16683 rm -f core conftest.err conftest.$ac_objext \
16684       conftest$ac_exeext conftest.$ac_ext
16685 fi
16686 ac_res=`eval echo '${'$as_ac_var'}'`
16687                { echo "$as_me:$LINENO: result: $ac_res" >&5
16688 echo "${ECHO_T}$ac_res" >&6; }
16689 if test `eval echo '${'$as_ac_var'}'` = yes; then
16690   cat >>confdefs.h <<_ACEOF
16691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16692 _ACEOF
16693
16694 fi
16695 done
16696
16697
16698
16699
16700
16701 for ac_func in powf fmodf strtof round
16702 do
16703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16704 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16706 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16707   echo $ECHO_N "(cached) $ECHO_C" >&6
16708 else
16709   cat >conftest.$ac_ext <<_ACEOF
16710 /* confdefs.h.  */
16711 _ACEOF
16712 cat confdefs.h >>conftest.$ac_ext
16713 cat >>conftest.$ac_ext <<_ACEOF
16714 /* end confdefs.h.  */
16715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16716    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16717 #define $ac_func innocuous_$ac_func
16718
16719 /* System header to define __stub macros and hopefully few prototypes,
16720     which can conflict with char $ac_func (); below.
16721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16722     <limits.h> exists even on freestanding compilers.  */
16723
16724 #ifdef __STDC__
16725 # include <limits.h>
16726 #else
16727 # include <assert.h>
16728 #endif
16729
16730 #undef $ac_func
16731
16732 /* Override any GCC internal prototype to avoid an error.
16733    Use char because int might match the return type of a GCC
16734    builtin and then its argument prototype would still apply.  */
16735 #ifdef __cplusplus
16736 extern "C"
16737 #endif
16738 char $ac_func ();
16739 /* The GNU C library defines this for functions which it implements
16740     to always fail with ENOSYS.  Some functions are actually named
16741     something starting with __ and the normal name is an alias.  */
16742 #if defined __stub_$ac_func || defined __stub___$ac_func
16743 choke me
16744 #endif
16745
16746 int
16747 main ()
16748 {
16749 return $ac_func ();
16750   ;
16751   return 0;
16752 }
16753 _ACEOF
16754 rm -f conftest.$ac_objext conftest$ac_exeext
16755 if { (ac_try="$ac_link"
16756 case "(($ac_try" in
16757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16758   *) ac_try_echo=$ac_try;;
16759 esac
16760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16761   (eval "$ac_link") 2>conftest.er1
16762   ac_status=$?
16763   grep -v '^ *+' conftest.er1 >conftest.err
16764   rm -f conftest.er1
16765   cat conftest.err >&5
16766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767   (exit $ac_status); } &&
16768          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16769   { (case "(($ac_try" in
16770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16771   *) ac_try_echo=$ac_try;;
16772 esac
16773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16774   (eval "$ac_try") 2>&5
16775   ac_status=$?
16776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777   (exit $ac_status); }; } &&
16778          { ac_try='test -s conftest$ac_exeext'
16779   { (case "(($ac_try" in
16780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781   *) ac_try_echo=$ac_try;;
16782 esac
16783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16784   (eval "$ac_try") 2>&5
16785   ac_status=$?
16786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787   (exit $ac_status); }; }; then
16788   eval "$as_ac_var=yes"
16789 else
16790   echo "$as_me: failed program was:" >&5
16791 sed 's/^/| /' conftest.$ac_ext >&5
16792
16793         eval "$as_ac_var=no"
16794 fi
16795
16796 rm -f core conftest.err conftest.$ac_objext \
16797       conftest$ac_exeext conftest.$ac_ext
16798 fi
16799 ac_res=`eval echo '${'$as_ac_var'}'`
16800                { echo "$as_me:$LINENO: result: $ac_res" >&5
16801 echo "${ECHO_T}$ac_res" >&6; }
16802 if test `eval echo '${'$as_ac_var'}'` = yes; then
16803   cat >>confdefs.h <<_ACEOF
16804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16805 _ACEOF
16806
16807 fi
16808 done
16809
16810
16811
16812
16813
16814
16815 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16816 do
16817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16818 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16820 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16821   echo $ECHO_N "(cached) $ECHO_C" >&6
16822 else
16823   cat >conftest.$ac_ext <<_ACEOF
16824 /* confdefs.h.  */
16825 _ACEOF
16826 cat confdefs.h >>conftest.$ac_ext
16827 cat >>conftest.$ac_ext <<_ACEOF
16828 /* end confdefs.h.  */
16829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16830    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16831 #define $ac_func innocuous_$ac_func
16832
16833 /* System header to define __stub macros and hopefully few prototypes,
16834     which can conflict with char $ac_func (); below.
16835     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16836     <limits.h> exists even on freestanding compilers.  */
16837
16838 #ifdef __STDC__
16839 # include <limits.h>
16840 #else
16841 # include <assert.h>
16842 #endif
16843
16844 #undef $ac_func
16845
16846 /* Override any GCC internal prototype to avoid an error.
16847    Use char because int might match the return type of a GCC
16848    builtin and then its argument prototype would still apply.  */
16849 #ifdef __cplusplus
16850 extern "C"
16851 #endif
16852 char $ac_func ();
16853 /* The GNU C library defines this for functions which it implements
16854     to always fail with ENOSYS.  Some functions are actually named
16855     something starting with __ and the normal name is an alias.  */
16856 #if defined __stub_$ac_func || defined __stub___$ac_func
16857 choke me
16858 #endif
16859
16860 int
16861 main ()
16862 {
16863 return $ac_func ();
16864   ;
16865   return 0;
16866 }
16867 _ACEOF
16868 rm -f conftest.$ac_objext conftest$ac_exeext
16869 if { (ac_try="$ac_link"
16870 case "(($ac_try" in
16871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16872   *) ac_try_echo=$ac_try;;
16873 esac
16874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16875   (eval "$ac_link") 2>conftest.er1
16876   ac_status=$?
16877   grep -v '^ *+' conftest.er1 >conftest.err
16878   rm -f conftest.er1
16879   cat conftest.err >&5
16880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881   (exit $ac_status); } &&
16882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16883   { (case "(($ac_try" in
16884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16885   *) ac_try_echo=$ac_try;;
16886 esac
16887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16888   (eval "$ac_try") 2>&5
16889   ac_status=$?
16890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891   (exit $ac_status); }; } &&
16892          { ac_try='test -s conftest$ac_exeext'
16893   { (case "(($ac_try" in
16894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895   *) ac_try_echo=$ac_try;;
16896 esac
16897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16898   (eval "$ac_try") 2>&5
16899   ac_status=$?
16900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901   (exit $ac_status); }; }; then
16902   eval "$as_ac_var=yes"
16903 else
16904   echo "$as_me: failed program was:" >&5
16905 sed 's/^/| /' conftest.$ac_ext >&5
16906
16907         eval "$as_ac_var=no"
16908 fi
16909
16910 rm -f core conftest.err conftest.$ac_objext \
16911       conftest$ac_exeext conftest.$ac_ext
16912 fi
16913 ac_res=`eval echo '${'$as_ac_var'}'`
16914                { echo "$as_me:$LINENO: result: $ac_res" >&5
16915 echo "${ECHO_T}$ac_res" >&6; }
16916 if test `eval echo '${'$as_ac_var'}'` = yes; then
16917   cat >>confdefs.h <<_ACEOF
16918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16919 _ACEOF
16920
16921 fi
16922 done
16923
16924
16925
16926
16927 for ac_func in isatty mkdtemp mkstemp
16928 do
16929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16930 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16933   echo $ECHO_N "(cached) $ECHO_C" >&6
16934 else
16935   cat >conftest.$ac_ext <<_ACEOF
16936 /* confdefs.h.  */
16937 _ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h.  */
16941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16943 #define $ac_func innocuous_$ac_func
16944
16945 /* System header to define __stub macros and hopefully few prototypes,
16946     which can conflict with char $ac_func (); below.
16947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16948     <limits.h> exists even on freestanding compilers.  */
16949
16950 #ifdef __STDC__
16951 # include <limits.h>
16952 #else
16953 # include <assert.h>
16954 #endif
16955
16956 #undef $ac_func
16957
16958 /* Override any GCC internal prototype to avoid an error.
16959    Use char because int might match the return type of a GCC
16960    builtin and then its argument prototype would still apply.  */
16961 #ifdef __cplusplus
16962 extern "C"
16963 #endif
16964 char $ac_func ();
16965 /* The GNU C library defines this for functions which it implements
16966     to always fail with ENOSYS.  Some functions are actually named
16967     something starting with __ and the normal name is an alias.  */
16968 #if defined __stub_$ac_func || defined __stub___$ac_func
16969 choke me
16970 #endif
16971
16972 int
16973 main ()
16974 {
16975 return $ac_func ();
16976   ;
16977   return 0;
16978 }
16979 _ACEOF
16980 rm -f conftest.$ac_objext conftest$ac_exeext
16981 if { (ac_try="$ac_link"
16982 case "(($ac_try" in
16983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984   *) ac_try_echo=$ac_try;;
16985 esac
16986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987   (eval "$ac_link") 2>conftest.er1
16988   ac_status=$?
16989   grep -v '^ *+' conftest.er1 >conftest.err
16990   rm -f conftest.er1
16991   cat conftest.err >&5
16992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993   (exit $ac_status); } &&
16994          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16995   { (case "(($ac_try" in
16996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997   *) ac_try_echo=$ac_try;;
16998 esac
16999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000   (eval "$ac_try") 2>&5
17001   ac_status=$?
17002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003   (exit $ac_status); }; } &&
17004          { ac_try='test -s conftest$ac_exeext'
17005   { (case "(($ac_try" in
17006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007   *) ac_try_echo=$ac_try;;
17008 esac
17009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010   (eval "$ac_try") 2>&5
17011   ac_status=$?
17012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013   (exit $ac_status); }; }; then
17014   eval "$as_ac_var=yes"
17015 else
17016   echo "$as_me: failed program was:" >&5
17017 sed 's/^/| /' conftest.$ac_ext >&5
17018
17019         eval "$as_ac_var=no"
17020 fi
17021
17022 rm -f core conftest.err conftest.$ac_objext \
17023       conftest$ac_exeext conftest.$ac_ext
17024 fi
17025 ac_res=`eval echo '${'$as_ac_var'}'`
17026                { echo "$as_me:$LINENO: result: $ac_res" >&5
17027 echo "${ECHO_T}$ac_res" >&6; }
17028 if test `eval echo '${'$as_ac_var'}'` = yes; then
17029   cat >>confdefs.h <<_ACEOF
17030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17031 _ACEOF
17032
17033 fi
17034 done
17035
17036
17037
17038
17039
17040
17041
17042 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17043 do
17044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17045 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17048   echo $ECHO_N "(cached) $ECHO_C" >&6
17049 else
17050   cat >conftest.$ac_ext <<_ACEOF
17051 /* confdefs.h.  */
17052 _ACEOF
17053 cat confdefs.h >>conftest.$ac_ext
17054 cat >>conftest.$ac_ext <<_ACEOF
17055 /* end confdefs.h.  */
17056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17057    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17058 #define $ac_func innocuous_$ac_func
17059
17060 /* System header to define __stub macros and hopefully few prototypes,
17061     which can conflict with char $ac_func (); below.
17062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17063     <limits.h> exists even on freestanding compilers.  */
17064
17065 #ifdef __STDC__
17066 # include <limits.h>
17067 #else
17068 # include <assert.h>
17069 #endif
17070
17071 #undef $ac_func
17072
17073 /* Override any GCC internal prototype to avoid an error.
17074    Use char because int might match the return type of a GCC
17075    builtin and then its argument prototype would still apply.  */
17076 #ifdef __cplusplus
17077 extern "C"
17078 #endif
17079 char $ac_func ();
17080 /* The GNU C library defines this for functions which it implements
17081     to always fail with ENOSYS.  Some functions are actually named
17082     something starting with __ and the normal name is an alias.  */
17083 #if defined __stub_$ac_func || defined __stub___$ac_func
17084 choke me
17085 #endif
17086
17087 int
17088 main ()
17089 {
17090 return $ac_func ();
17091   ;
17092   return 0;
17093 }
17094 _ACEOF
17095 rm -f conftest.$ac_objext conftest$ac_exeext
17096 if { (ac_try="$ac_link"
17097 case "(($ac_try" in
17098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099   *) ac_try_echo=$ac_try;;
17100 esac
17101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102   (eval "$ac_link") 2>conftest.er1
17103   ac_status=$?
17104   grep -v '^ *+' conftest.er1 >conftest.err
17105   rm -f conftest.er1
17106   cat conftest.err >&5
17107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108   (exit $ac_status); } &&
17109          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17110   { (case "(($ac_try" in
17111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112   *) ac_try_echo=$ac_try;;
17113 esac
17114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17115   (eval "$ac_try") 2>&5
17116   ac_status=$?
17117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118   (exit $ac_status); }; } &&
17119          { ac_try='test -s conftest$ac_exeext'
17120   { (case "(($ac_try" in
17121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122   *) ac_try_echo=$ac_try;;
17123 esac
17124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17125   (eval "$ac_try") 2>&5
17126   ac_status=$?
17127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128   (exit $ac_status); }; }; then
17129   eval "$as_ac_var=yes"
17130 else
17131   echo "$as_me: failed program was:" >&5
17132 sed 's/^/| /' conftest.$ac_ext >&5
17133
17134         eval "$as_ac_var=no"
17135 fi
17136
17137 rm -f core conftest.err conftest.$ac_objext \
17138       conftest$ac_exeext conftest.$ac_ext
17139 fi
17140 ac_res=`eval echo '${'$as_ac_var'}'`
17141                { echo "$as_me:$LINENO: result: $ac_res" >&5
17142 echo "${ECHO_T}$ac_res" >&6; }
17143 if test `eval echo '${'$as_ac_var'}'` = yes; then
17144   cat >>confdefs.h <<_ACEOF
17145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17146 _ACEOF
17147
17148 fi
17149 done
17150
17151
17152
17153
17154 for ac_func in strerror strerror_r setenv
17155 do
17156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17157 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17159 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17160   echo $ECHO_N "(cached) $ECHO_C" >&6
17161 else
17162   cat >conftest.$ac_ext <<_ACEOF
17163 /* confdefs.h.  */
17164 _ACEOF
17165 cat confdefs.h >>conftest.$ac_ext
17166 cat >>conftest.$ac_ext <<_ACEOF
17167 /* end confdefs.h.  */
17168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17169    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17170 #define $ac_func innocuous_$ac_func
17171
17172 /* System header to define __stub macros and hopefully few prototypes,
17173     which can conflict with char $ac_func (); below.
17174     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17175     <limits.h> exists even on freestanding compilers.  */
17176
17177 #ifdef __STDC__
17178 # include <limits.h>
17179 #else
17180 # include <assert.h>
17181 #endif
17182
17183 #undef $ac_func
17184
17185 /* Override any GCC internal prototype to avoid an error.
17186    Use char because int might match the return type of a GCC
17187    builtin and then its argument prototype would still apply.  */
17188 #ifdef __cplusplus
17189 extern "C"
17190 #endif
17191 char $ac_func ();
17192 /* The GNU C library defines this for functions which it implements
17193     to always fail with ENOSYS.  Some functions are actually named
17194     something starting with __ and the normal name is an alias.  */
17195 #if defined __stub_$ac_func || defined __stub___$ac_func
17196 choke me
17197 #endif
17198
17199 int
17200 main ()
17201 {
17202 return $ac_func ();
17203   ;
17204   return 0;
17205 }
17206 _ACEOF
17207 rm -f conftest.$ac_objext conftest$ac_exeext
17208 if { (ac_try="$ac_link"
17209 case "(($ac_try" in
17210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17211   *) ac_try_echo=$ac_try;;
17212 esac
17213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17214   (eval "$ac_link") 2>conftest.er1
17215   ac_status=$?
17216   grep -v '^ *+' conftest.er1 >conftest.err
17217   rm -f conftest.er1
17218   cat conftest.err >&5
17219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220   (exit $ac_status); } &&
17221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17222   { (case "(($ac_try" in
17223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17224   *) ac_try_echo=$ac_try;;
17225 esac
17226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17227   (eval "$ac_try") 2>&5
17228   ac_status=$?
17229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230   (exit $ac_status); }; } &&
17231          { ac_try='test -s conftest$ac_exeext'
17232   { (case "(($ac_try" in
17233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234   *) ac_try_echo=$ac_try;;
17235 esac
17236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17237   (eval "$ac_try") 2>&5
17238   ac_status=$?
17239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240   (exit $ac_status); }; }; then
17241   eval "$as_ac_var=yes"
17242 else
17243   echo "$as_me: failed program was:" >&5
17244 sed 's/^/| /' conftest.$ac_ext >&5
17245
17246         eval "$as_ac_var=no"
17247 fi
17248
17249 rm -f core conftest.err conftest.$ac_objext \
17250       conftest$ac_exeext conftest.$ac_ext
17251 fi
17252 ac_res=`eval echo '${'$as_ac_var'}'`
17253                { echo "$as_me:$LINENO: result: $ac_res" >&5
17254 echo "${ECHO_T}$ac_res" >&6; }
17255 if test `eval echo '${'$as_ac_var'}'` = yes; then
17256   cat >>confdefs.h <<_ACEOF
17257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17258 _ACEOF
17259
17260 fi
17261 done
17262
17263
17264
17265
17266
17267 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17268 do
17269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17270 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17272 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17273   echo $ECHO_N "(cached) $ECHO_C" >&6
17274 else
17275   cat >conftest.$ac_ext <<_ACEOF
17276 /* confdefs.h.  */
17277 _ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h.  */
17281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17282    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17283 #define $ac_func innocuous_$ac_func
17284
17285 /* System header to define __stub macros and hopefully few prototypes,
17286     which can conflict with char $ac_func (); below.
17287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17288     <limits.h> exists even on freestanding compilers.  */
17289
17290 #ifdef __STDC__
17291 # include <limits.h>
17292 #else
17293 # include <assert.h>
17294 #endif
17295
17296 #undef $ac_func
17297
17298 /* Override any GCC internal prototype to avoid an error.
17299    Use char because int might match the return type of a GCC
17300    builtin and then its argument prototype would still apply.  */
17301 #ifdef __cplusplus
17302 extern "C"
17303 #endif
17304 char $ac_func ();
17305 /* The GNU C library defines this for functions which it implements
17306     to always fail with ENOSYS.  Some functions are actually named
17307     something starting with __ and the normal name is an alias.  */
17308 #if defined __stub_$ac_func || defined __stub___$ac_func
17309 choke me
17310 #endif
17311
17312 int
17313 main ()
17314 {
17315 return $ac_func ();
17316   ;
17317   return 0;
17318 }
17319 _ACEOF
17320 rm -f conftest.$ac_objext conftest$ac_exeext
17321 if { (ac_try="$ac_link"
17322 case "(($ac_try" in
17323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324   *) ac_try_echo=$ac_try;;
17325 esac
17326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327   (eval "$ac_link") 2>conftest.er1
17328   ac_status=$?
17329   grep -v '^ *+' conftest.er1 >conftest.err
17330   rm -f conftest.er1
17331   cat conftest.err >&5
17332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333   (exit $ac_status); } &&
17334          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17335   { (case "(($ac_try" in
17336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337   *) ac_try_echo=$ac_try;;
17338 esac
17339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340   (eval "$ac_try") 2>&5
17341   ac_status=$?
17342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343   (exit $ac_status); }; } &&
17344          { ac_try='test -s conftest$ac_exeext'
17345   { (case "(($ac_try" in
17346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347   *) ac_try_echo=$ac_try;;
17348 esac
17349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350   (eval "$ac_try") 2>&5
17351   ac_status=$?
17352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353   (exit $ac_status); }; }; then
17354   eval "$as_ac_var=yes"
17355 else
17356   echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17358
17359         eval "$as_ac_var=no"
17360 fi
17361
17362 rm -f core conftest.err conftest.$ac_objext \
17363       conftest$ac_exeext conftest.$ac_ext
17364 fi
17365 ac_res=`eval echo '${'$as_ac_var'}'`
17366                { echo "$as_me:$LINENO: result: $ac_res" >&5
17367 echo "${ECHO_T}$ac_res" >&6; }
17368 if test `eval echo '${'$as_ac_var'}'` = yes; then
17369   cat >>confdefs.h <<_ACEOF
17370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17371 _ACEOF
17372
17373 fi
17374 done
17375
17376
17377
17378
17379
17380
17381 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17382 do
17383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17387   echo $ECHO_N "(cached) $ECHO_C" >&6
17388 else
17389   cat >conftest.$ac_ext <<_ACEOF
17390 /* confdefs.h.  */
17391 _ACEOF
17392 cat confdefs.h >>conftest.$ac_ext
17393 cat >>conftest.$ac_ext <<_ACEOF
17394 /* end confdefs.h.  */
17395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17397 #define $ac_func innocuous_$ac_func
17398
17399 /* System header to define __stub macros and hopefully few prototypes,
17400     which can conflict with char $ac_func (); below.
17401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17402     <limits.h> exists even on freestanding compilers.  */
17403
17404 #ifdef __STDC__
17405 # include <limits.h>
17406 #else
17407 # include <assert.h>
17408 #endif
17409
17410 #undef $ac_func
17411
17412 /* Override any GCC internal prototype to avoid an error.
17413    Use char because int might match the return type of a GCC
17414    builtin and then its argument prototype would still apply.  */
17415 #ifdef __cplusplus
17416 extern "C"
17417 #endif
17418 char $ac_func ();
17419 /* The GNU C library defines this for functions which it implements
17420     to always fail with ENOSYS.  Some functions are actually named
17421     something starting with __ and the normal name is an alias.  */
17422 #if defined __stub_$ac_func || defined __stub___$ac_func
17423 choke me
17424 #endif
17425
17426 int
17427 main ()
17428 {
17429 return $ac_func ();
17430   ;
17431   return 0;
17432 }
17433 _ACEOF
17434 rm -f conftest.$ac_objext conftest$ac_exeext
17435 if { (ac_try="$ac_link"
17436 case "(($ac_try" in
17437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438   *) ac_try_echo=$ac_try;;
17439 esac
17440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441   (eval "$ac_link") 2>conftest.er1
17442   ac_status=$?
17443   grep -v '^ *+' conftest.er1 >conftest.err
17444   rm -f conftest.er1
17445   cat conftest.err >&5
17446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447   (exit $ac_status); } &&
17448          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17449   { (case "(($ac_try" in
17450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17451   *) ac_try_echo=$ac_try;;
17452 esac
17453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17454   (eval "$ac_try") 2>&5
17455   ac_status=$?
17456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457   (exit $ac_status); }; } &&
17458          { ac_try='test -s conftest$ac_exeext'
17459   { (case "(($ac_try" in
17460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17461   *) ac_try_echo=$ac_try;;
17462 esac
17463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17464   (eval "$ac_try") 2>&5
17465   ac_status=$?
17466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467   (exit $ac_status); }; }; then
17468   eval "$as_ac_var=yes"
17469 else
17470   echo "$as_me: failed program was:" >&5
17471 sed 's/^/| /' conftest.$ac_ext >&5
17472
17473         eval "$as_ac_var=no"
17474 fi
17475
17476 rm -f core conftest.err conftest.$ac_objext \
17477       conftest$ac_exeext conftest.$ac_ext
17478 fi
17479 ac_res=`eval echo '${'$as_ac_var'}'`
17480                { echo "$as_me:$LINENO: result: $ac_res" >&5
17481 echo "${ECHO_T}$ac_res" >&6; }
17482 if test `eval echo '${'$as_ac_var'}'` = yes; then
17483   cat >>confdefs.h <<_ACEOF
17484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17485 _ACEOF
17486
17487 fi
17488 done
17489
17490 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17491 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17492 if test "${llvm_cv_c_printf_a+set}" = set; then
17493   echo $ECHO_N "(cached) $ECHO_C" >&6
17494 else
17495   ac_ext=c
17496 ac_cpp='$CPP $CPPFLAGS'
17497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17500
17501  if test "$cross_compiling" = yes; then
17502   llvmac_cv_c_printf_a=no
17503 else
17504   cat >conftest.$ac_ext <<_ACEOF
17505
17506   /* confdefs.h.  */
17507 _ACEOF
17508 cat confdefs.h >>conftest.$ac_ext
17509 cat >>conftest.$ac_ext <<_ACEOF
17510 /* end confdefs.h.  */
17511
17512 #include <stdio.h>
17513 #include <stdlib.h>
17514
17515 int
17516 main ()
17517 {
17518
17519 volatile double A, B;
17520 char Buffer[100];
17521 A = 1;
17522 A /= 10.0;
17523 sprintf(Buffer, "%a", A);
17524 B = atof(Buffer);
17525 if (A != B)
17526   return (1);
17527 if (A != 0x1.999999999999ap-4)
17528   return (1);
17529 return (0);
17530   ;
17531   return 0;
17532 }
17533 _ACEOF
17534 rm -f conftest$ac_exeext
17535 if { (ac_try="$ac_link"
17536 case "(($ac_try" in
17537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538   *) ac_try_echo=$ac_try;;
17539 esac
17540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541   (eval "$ac_link") 2>&5
17542   ac_status=$?
17543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17545   { (case "(($ac_try" in
17546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17547   *) ac_try_echo=$ac_try;;
17548 esac
17549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17550   (eval "$ac_try") 2>&5
17551   ac_status=$?
17552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553   (exit $ac_status); }; }; then
17554   llvm_cv_c_printf_a=yes
17555 else
17556   echo "$as_me: program exited with status $ac_status" >&5
17557 echo "$as_me: failed program was:" >&5
17558 sed 's/^/| /' conftest.$ac_ext >&5
17559
17560 ( exit $ac_status )
17561 llvmac_cv_c_printf_a=no
17562 fi
17563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17564 fi
17565
17566
17567  ac_ext=c
17568 ac_cpp='$CPP $CPPFLAGS'
17569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17572
17573 fi
17574 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17575 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17576  if test "$llvm_cv_c_printf_a" = "yes"; then
17577
17578 cat >>confdefs.h <<\_ACEOF
17579 #define HAVE_PRINTF_A 1
17580 _ACEOF
17581
17582  fi
17583
17584
17585 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17586 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17587 if test "${ac_cv_func_rand48+set}" = set; then
17588   echo $ECHO_N "(cached) $ECHO_C" >&6
17589 else
17590   ac_ext=cpp
17591 ac_cpp='$CXXCPP $CPPFLAGS'
17592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17595
17596    cat >conftest.$ac_ext <<_ACEOF
17597 /* confdefs.h.  */
17598 _ACEOF
17599 cat confdefs.h >>conftest.$ac_ext
17600 cat >>conftest.$ac_ext <<_ACEOF
17601 /* end confdefs.h.  */
17602 #include <stdlib.h>
17603 int
17604 main ()
17605 {
17606 srand48(0);lrand48();drand48();
17607   ;
17608   return 0;
17609 }
17610 _ACEOF
17611 rm -f conftest.$ac_objext
17612 if { (ac_try="$ac_compile"
17613 case "(($ac_try" in
17614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615   *) ac_try_echo=$ac_try;;
17616 esac
17617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618   (eval "$ac_compile") 2>conftest.er1
17619   ac_status=$?
17620   grep -v '^ *+' conftest.er1 >conftest.err
17621   rm -f conftest.er1
17622   cat conftest.err >&5
17623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624   (exit $ac_status); } &&
17625          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17626   { (case "(($ac_try" in
17627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628   *) ac_try_echo=$ac_try;;
17629 esac
17630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17631   (eval "$ac_try") 2>&5
17632   ac_status=$?
17633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634   (exit $ac_status); }; } &&
17635          { ac_try='test -s conftest.$ac_objext'
17636   { (case "(($ac_try" in
17637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638   *) ac_try_echo=$ac_try;;
17639 esac
17640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641   (eval "$ac_try") 2>&5
17642   ac_status=$?
17643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644   (exit $ac_status); }; }; then
17645   ac_cv_func_rand48=yes
17646 else
17647   echo "$as_me: failed program was:" >&5
17648 sed 's/^/| /' conftest.$ac_ext >&5
17649
17650         ac_cv_func_rand48=no
17651 fi
17652
17653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17654   ac_ext=c
17655 ac_cpp='$CPP $CPPFLAGS'
17656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17659
17660 fi
17661 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17662 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17663
17664 if test "$ac_cv_func_rand48" = "yes" ; then
17665
17666 cat >>confdefs.h <<\_ACEOF
17667 #define HAVE_RAND48 1
17668 _ACEOF
17669
17670 fi
17671
17672
17673 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17674 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17675 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17676   echo $ECHO_N "(cached) $ECHO_C" >&6
17677 else
17678   cat >conftest.$ac_ext <<_ACEOF
17679 /* confdefs.h.  */
17680 _ACEOF
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h.  */
17684 $ac_includes_default
17685 int
17686 main ()
17687 {
17688 #ifndef strerror_s
17689   char *p = (char *) strerror_s;
17690   return !p;
17691 #endif
17692
17693   ;
17694   return 0;
17695 }
17696 _ACEOF
17697 rm -f conftest.$ac_objext
17698 if { (ac_try="$ac_compile"
17699 case "(($ac_try" in
17700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17701   *) ac_try_echo=$ac_try;;
17702 esac
17703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17704   (eval "$ac_compile") 2>conftest.er1
17705   ac_status=$?
17706   grep -v '^ *+' conftest.er1 >conftest.err
17707   rm -f conftest.er1
17708   cat conftest.err >&5
17709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710   (exit $ac_status); } &&
17711          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17712   { (case "(($ac_try" in
17713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17714   *) ac_try_echo=$ac_try;;
17715 esac
17716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17717   (eval "$ac_try") 2>&5
17718   ac_status=$?
17719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720   (exit $ac_status); }; } &&
17721          { ac_try='test -s conftest.$ac_objext'
17722   { (case "(($ac_try" in
17723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724   *) ac_try_echo=$ac_try;;
17725 esac
17726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727   (eval "$ac_try") 2>&5
17728   ac_status=$?
17729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730   (exit $ac_status); }; }; then
17731   ac_cv_have_decl_strerror_s=yes
17732 else
17733   echo "$as_me: failed program was:" >&5
17734 sed 's/^/| /' conftest.$ac_ext >&5
17735
17736         ac_cv_have_decl_strerror_s=no
17737 fi
17738
17739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17740 fi
17741 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17742 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17743 if test $ac_cv_have_decl_strerror_s = yes; then
17744
17745 cat >>confdefs.h <<_ACEOF
17746 #define HAVE_DECL_STRERROR_S 1
17747 _ACEOF
17748
17749
17750 else
17751   cat >>confdefs.h <<_ACEOF
17752 #define HAVE_DECL_STRERROR_S 0
17753 _ACEOF
17754
17755
17756 fi
17757
17758
17759
17760 if test "$llvm_cv_os_type" = "MingW" ; then
17761   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17762 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17763 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17764   echo $ECHO_N "(cached) $ECHO_C" >&6
17765 else
17766   ac_check_lib_save_LIBS=$LIBS
17767 LIBS="-lgcc  $LIBS"
17768 cat >conftest.$ac_ext <<_ACEOF
17769 /* confdefs.h.  */
17770 _ACEOF
17771 cat confdefs.h >>conftest.$ac_ext
17772 cat >>conftest.$ac_ext <<_ACEOF
17773 /* end confdefs.h.  */
17774
17775 /* Override any GCC internal prototype to avoid an error.
17776    Use char because int might match the return type of a GCC
17777    builtin and then its argument prototype would still apply.  */
17778 #ifdef __cplusplus
17779 extern "C"
17780 #endif
17781 char _alloca ();
17782 int
17783 main ()
17784 {
17785 return _alloca ();
17786   ;
17787   return 0;
17788 }
17789 _ACEOF
17790 rm -f conftest.$ac_objext conftest$ac_exeext
17791 if { (ac_try="$ac_link"
17792 case "(($ac_try" in
17793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794   *) ac_try_echo=$ac_try;;
17795 esac
17796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17797   (eval "$ac_link") 2>conftest.er1
17798   ac_status=$?
17799   grep -v '^ *+' conftest.er1 >conftest.err
17800   rm -f conftest.er1
17801   cat conftest.err >&5
17802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803   (exit $ac_status); } &&
17804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17805   { (case "(($ac_try" in
17806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807   *) ac_try_echo=$ac_try;;
17808 esac
17809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17810   (eval "$ac_try") 2>&5
17811   ac_status=$?
17812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813   (exit $ac_status); }; } &&
17814          { ac_try='test -s conftest$ac_exeext'
17815   { (case "(($ac_try" in
17816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817   *) ac_try_echo=$ac_try;;
17818 esac
17819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17820   (eval "$ac_try") 2>&5
17821   ac_status=$?
17822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823   (exit $ac_status); }; }; then
17824   ac_cv_lib_gcc__alloca=yes
17825 else
17826   echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.$ac_ext >&5
17828
17829         ac_cv_lib_gcc__alloca=no
17830 fi
17831
17832 rm -f core conftest.err conftest.$ac_objext \
17833       conftest$ac_exeext conftest.$ac_ext
17834 LIBS=$ac_check_lib_save_LIBS
17835 fi
17836 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17837 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17838 if test $ac_cv_lib_gcc__alloca = yes; then
17839
17840 cat >>confdefs.h <<\_ACEOF
17841 #define HAVE__ALLOCA 1
17842 _ACEOF
17843
17844 fi
17845
17846   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17847 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17848 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17849   echo $ECHO_N "(cached) $ECHO_C" >&6
17850 else
17851   ac_check_lib_save_LIBS=$LIBS
17852 LIBS="-lgcc  $LIBS"
17853 cat >conftest.$ac_ext <<_ACEOF
17854 /* confdefs.h.  */
17855 _ACEOF
17856 cat confdefs.h >>conftest.$ac_ext
17857 cat >>conftest.$ac_ext <<_ACEOF
17858 /* end confdefs.h.  */
17859
17860 /* Override any GCC internal prototype to avoid an error.
17861    Use char because int might match the return type of a GCC
17862    builtin and then its argument prototype would still apply.  */
17863 #ifdef __cplusplus
17864 extern "C"
17865 #endif
17866 char __alloca ();
17867 int
17868 main ()
17869 {
17870 return __alloca ();
17871   ;
17872   return 0;
17873 }
17874 _ACEOF
17875 rm -f conftest.$ac_objext conftest$ac_exeext
17876 if { (ac_try="$ac_link"
17877 case "(($ac_try" in
17878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17879   *) ac_try_echo=$ac_try;;
17880 esac
17881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17882   (eval "$ac_link") 2>conftest.er1
17883   ac_status=$?
17884   grep -v '^ *+' conftest.er1 >conftest.err
17885   rm -f conftest.er1
17886   cat conftest.err >&5
17887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888   (exit $ac_status); } &&
17889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17890   { (case "(($ac_try" in
17891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17892   *) ac_try_echo=$ac_try;;
17893 esac
17894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17895   (eval "$ac_try") 2>&5
17896   ac_status=$?
17897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898   (exit $ac_status); }; } &&
17899          { ac_try='test -s conftest$ac_exeext'
17900   { (case "(($ac_try" in
17901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902   *) ac_try_echo=$ac_try;;
17903 esac
17904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17905   (eval "$ac_try") 2>&5
17906   ac_status=$?
17907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908   (exit $ac_status); }; }; then
17909   ac_cv_lib_gcc___alloca=yes
17910 else
17911   echo "$as_me: failed program was:" >&5
17912 sed 's/^/| /' conftest.$ac_ext >&5
17913
17914         ac_cv_lib_gcc___alloca=no
17915 fi
17916
17917 rm -f core conftest.err conftest.$ac_objext \
17918       conftest$ac_exeext conftest.$ac_ext
17919 LIBS=$ac_check_lib_save_LIBS
17920 fi
17921 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17922 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17923 if test $ac_cv_lib_gcc___alloca = yes; then
17924
17925 cat >>confdefs.h <<\_ACEOF
17926 #define HAVE___ALLOCA 1
17927 _ACEOF
17928
17929 fi
17930
17931   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17932 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17933 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17934   echo $ECHO_N "(cached) $ECHO_C" >&6
17935 else
17936   ac_check_lib_save_LIBS=$LIBS
17937 LIBS="-lgcc  $LIBS"
17938 cat >conftest.$ac_ext <<_ACEOF
17939 /* confdefs.h.  */
17940 _ACEOF
17941 cat confdefs.h >>conftest.$ac_ext
17942 cat >>conftest.$ac_ext <<_ACEOF
17943 /* end confdefs.h.  */
17944
17945 /* Override any GCC internal prototype to avoid an error.
17946    Use char because int might match the return type of a GCC
17947    builtin and then its argument prototype would still apply.  */
17948 #ifdef __cplusplus
17949 extern "C"
17950 #endif
17951 char __chkstk ();
17952 int
17953 main ()
17954 {
17955 return __chkstk ();
17956   ;
17957   return 0;
17958 }
17959 _ACEOF
17960 rm -f conftest.$ac_objext conftest$ac_exeext
17961 if { (ac_try="$ac_link"
17962 case "(($ac_try" in
17963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17964   *) ac_try_echo=$ac_try;;
17965 esac
17966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17967   (eval "$ac_link") 2>conftest.er1
17968   ac_status=$?
17969   grep -v '^ *+' conftest.er1 >conftest.err
17970   rm -f conftest.er1
17971   cat conftest.err >&5
17972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973   (exit $ac_status); } &&
17974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17975   { (case "(($ac_try" in
17976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17977   *) ac_try_echo=$ac_try;;
17978 esac
17979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17980   (eval "$ac_try") 2>&5
17981   ac_status=$?
17982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983   (exit $ac_status); }; } &&
17984          { ac_try='test -s conftest$ac_exeext'
17985   { (case "(($ac_try" in
17986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987   *) ac_try_echo=$ac_try;;
17988 esac
17989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990   (eval "$ac_try") 2>&5
17991   ac_status=$?
17992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993   (exit $ac_status); }; }; then
17994   ac_cv_lib_gcc___chkstk=yes
17995 else
17996   echo "$as_me: failed program was:" >&5
17997 sed 's/^/| /' conftest.$ac_ext >&5
17998
17999         ac_cv_lib_gcc___chkstk=no
18000 fi
18001
18002 rm -f core conftest.err conftest.$ac_objext \
18003       conftest$ac_exeext conftest.$ac_ext
18004 LIBS=$ac_check_lib_save_LIBS
18005 fi
18006 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18007 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18008 if test $ac_cv_lib_gcc___chkstk = yes; then
18009
18010 cat >>confdefs.h <<\_ACEOF
18011 #define HAVE___CHKSTK 1
18012 _ACEOF
18013
18014 fi
18015
18016   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18017 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18018 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18019   echo $ECHO_N "(cached) $ECHO_C" >&6
18020 else
18021   ac_check_lib_save_LIBS=$LIBS
18022 LIBS="-lgcc  $LIBS"
18023 cat >conftest.$ac_ext <<_ACEOF
18024 /* confdefs.h.  */
18025 _ACEOF
18026 cat confdefs.h >>conftest.$ac_ext
18027 cat >>conftest.$ac_ext <<_ACEOF
18028 /* end confdefs.h.  */
18029
18030 /* Override any GCC internal prototype to avoid an error.
18031    Use char because int might match the return type of a GCC
18032    builtin and then its argument prototype would still apply.  */
18033 #ifdef __cplusplus
18034 extern "C"
18035 #endif
18036 char ___chkstk ();
18037 int
18038 main ()
18039 {
18040 return ___chkstk ();
18041   ;
18042   return 0;
18043 }
18044 _ACEOF
18045 rm -f conftest.$ac_objext conftest$ac_exeext
18046 if { (ac_try="$ac_link"
18047 case "(($ac_try" in
18048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18049   *) ac_try_echo=$ac_try;;
18050 esac
18051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18052   (eval "$ac_link") 2>conftest.er1
18053   ac_status=$?
18054   grep -v '^ *+' conftest.er1 >conftest.err
18055   rm -f conftest.er1
18056   cat conftest.err >&5
18057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058   (exit $ac_status); } &&
18059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18060   { (case "(($ac_try" in
18061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18062   *) ac_try_echo=$ac_try;;
18063 esac
18064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18065   (eval "$ac_try") 2>&5
18066   ac_status=$?
18067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068   (exit $ac_status); }; } &&
18069          { ac_try='test -s conftest$ac_exeext'
18070   { (case "(($ac_try" in
18071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18072   *) ac_try_echo=$ac_try;;
18073 esac
18074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18075   (eval "$ac_try") 2>&5
18076   ac_status=$?
18077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078   (exit $ac_status); }; }; then
18079   ac_cv_lib_gcc____chkstk=yes
18080 else
18081   echo "$as_me: failed program was:" >&5
18082 sed 's/^/| /' conftest.$ac_ext >&5
18083
18084         ac_cv_lib_gcc____chkstk=no
18085 fi
18086
18087 rm -f core conftest.err conftest.$ac_objext \
18088       conftest$ac_exeext conftest.$ac_ext
18089 LIBS=$ac_check_lib_save_LIBS
18090 fi
18091 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18092 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18093 if test $ac_cv_lib_gcc____chkstk = yes; then
18094
18095 cat >>confdefs.h <<\_ACEOF
18096 #define HAVE____CHKSTK 1
18097 _ACEOF
18098
18099 fi
18100
18101
18102   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18103 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18104 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18105   echo $ECHO_N "(cached) $ECHO_C" >&6
18106 else
18107   ac_check_lib_save_LIBS=$LIBS
18108 LIBS="-lgcc  $LIBS"
18109 cat >conftest.$ac_ext <<_ACEOF
18110 /* confdefs.h.  */
18111 _ACEOF
18112 cat confdefs.h >>conftest.$ac_ext
18113 cat >>conftest.$ac_ext <<_ACEOF
18114 /* end confdefs.h.  */
18115
18116 /* Override any GCC internal prototype to avoid an error.
18117    Use char because int might match the return type of a GCC
18118    builtin and then its argument prototype would still apply.  */
18119 #ifdef __cplusplus
18120 extern "C"
18121 #endif
18122 char __ashldi3 ();
18123 int
18124 main ()
18125 {
18126 return __ashldi3 ();
18127   ;
18128   return 0;
18129 }
18130 _ACEOF
18131 rm -f conftest.$ac_objext conftest$ac_exeext
18132 if { (ac_try="$ac_link"
18133 case "(($ac_try" in
18134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18135   *) ac_try_echo=$ac_try;;
18136 esac
18137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18138   (eval "$ac_link") 2>conftest.er1
18139   ac_status=$?
18140   grep -v '^ *+' conftest.er1 >conftest.err
18141   rm -f conftest.er1
18142   cat conftest.err >&5
18143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144   (exit $ac_status); } &&
18145          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18146   { (case "(($ac_try" in
18147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18148   *) ac_try_echo=$ac_try;;
18149 esac
18150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18151   (eval "$ac_try") 2>&5
18152   ac_status=$?
18153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154   (exit $ac_status); }; } &&
18155          { ac_try='test -s conftest$ac_exeext'
18156   { (case "(($ac_try" in
18157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18158   *) ac_try_echo=$ac_try;;
18159 esac
18160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161   (eval "$ac_try") 2>&5
18162   ac_status=$?
18163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164   (exit $ac_status); }; }; then
18165   ac_cv_lib_gcc___ashldi3=yes
18166 else
18167   echo "$as_me: failed program was:" >&5
18168 sed 's/^/| /' conftest.$ac_ext >&5
18169
18170         ac_cv_lib_gcc___ashldi3=no
18171 fi
18172
18173 rm -f core conftest.err conftest.$ac_objext \
18174       conftest$ac_exeext conftest.$ac_ext
18175 LIBS=$ac_check_lib_save_LIBS
18176 fi
18177 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18178 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18179 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18180
18181 cat >>confdefs.h <<\_ACEOF
18182 #define HAVE___ASHLDI3 1
18183 _ACEOF
18184
18185 fi
18186
18187   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18188 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18189 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18190   echo $ECHO_N "(cached) $ECHO_C" >&6
18191 else
18192   ac_check_lib_save_LIBS=$LIBS
18193 LIBS="-lgcc  $LIBS"
18194 cat >conftest.$ac_ext <<_ACEOF
18195 /* confdefs.h.  */
18196 _ACEOF
18197 cat confdefs.h >>conftest.$ac_ext
18198 cat >>conftest.$ac_ext <<_ACEOF
18199 /* end confdefs.h.  */
18200
18201 /* Override any GCC internal prototype to avoid an error.
18202    Use char because int might match the return type of a GCC
18203    builtin and then its argument prototype would still apply.  */
18204 #ifdef __cplusplus
18205 extern "C"
18206 #endif
18207 char __ashrdi3 ();
18208 int
18209 main ()
18210 {
18211 return __ashrdi3 ();
18212   ;
18213   return 0;
18214 }
18215 _ACEOF
18216 rm -f conftest.$ac_objext conftest$ac_exeext
18217 if { (ac_try="$ac_link"
18218 case "(($ac_try" in
18219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18220   *) ac_try_echo=$ac_try;;
18221 esac
18222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18223   (eval "$ac_link") 2>conftest.er1
18224   ac_status=$?
18225   grep -v '^ *+' conftest.er1 >conftest.err
18226   rm -f conftest.er1
18227   cat conftest.err >&5
18228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229   (exit $ac_status); } &&
18230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18231   { (case "(($ac_try" in
18232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18233   *) ac_try_echo=$ac_try;;
18234 esac
18235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18236   (eval "$ac_try") 2>&5
18237   ac_status=$?
18238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239   (exit $ac_status); }; } &&
18240          { ac_try='test -s conftest$ac_exeext'
18241   { (case "(($ac_try" in
18242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243   *) ac_try_echo=$ac_try;;
18244 esac
18245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18246   (eval "$ac_try") 2>&5
18247   ac_status=$?
18248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249   (exit $ac_status); }; }; then
18250   ac_cv_lib_gcc___ashrdi3=yes
18251 else
18252   echo "$as_me: failed program was:" >&5
18253 sed 's/^/| /' conftest.$ac_ext >&5
18254
18255         ac_cv_lib_gcc___ashrdi3=no
18256 fi
18257
18258 rm -f core conftest.err conftest.$ac_objext \
18259       conftest$ac_exeext conftest.$ac_ext
18260 LIBS=$ac_check_lib_save_LIBS
18261 fi
18262 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18263 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18264 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18265
18266 cat >>confdefs.h <<\_ACEOF
18267 #define HAVE___ASHRDI3 1
18268 _ACEOF
18269
18270 fi
18271
18272   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18273 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18274 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18275   echo $ECHO_N "(cached) $ECHO_C" >&6
18276 else
18277   ac_check_lib_save_LIBS=$LIBS
18278 LIBS="-lgcc  $LIBS"
18279 cat >conftest.$ac_ext <<_ACEOF
18280 /* confdefs.h.  */
18281 _ACEOF
18282 cat confdefs.h >>conftest.$ac_ext
18283 cat >>conftest.$ac_ext <<_ACEOF
18284 /* end confdefs.h.  */
18285
18286 /* Override any GCC internal prototype to avoid an error.
18287    Use char because int might match the return type of a GCC
18288    builtin and then its argument prototype would still apply.  */
18289 #ifdef __cplusplus
18290 extern "C"
18291 #endif
18292 char __divdi3 ();
18293 int
18294 main ()
18295 {
18296 return __divdi3 ();
18297   ;
18298   return 0;
18299 }
18300 _ACEOF
18301 rm -f conftest.$ac_objext conftest$ac_exeext
18302 if { (ac_try="$ac_link"
18303 case "(($ac_try" in
18304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18305   *) ac_try_echo=$ac_try;;
18306 esac
18307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18308   (eval "$ac_link") 2>conftest.er1
18309   ac_status=$?
18310   grep -v '^ *+' conftest.er1 >conftest.err
18311   rm -f conftest.er1
18312   cat conftest.err >&5
18313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314   (exit $ac_status); } &&
18315          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18316   { (case "(($ac_try" in
18317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18318   *) ac_try_echo=$ac_try;;
18319 esac
18320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18321   (eval "$ac_try") 2>&5
18322   ac_status=$?
18323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324   (exit $ac_status); }; } &&
18325          { ac_try='test -s conftest$ac_exeext'
18326   { (case "(($ac_try" in
18327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328   *) ac_try_echo=$ac_try;;
18329 esac
18330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331   (eval "$ac_try") 2>&5
18332   ac_status=$?
18333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334   (exit $ac_status); }; }; then
18335   ac_cv_lib_gcc___divdi3=yes
18336 else
18337   echo "$as_me: failed program was:" >&5
18338 sed 's/^/| /' conftest.$ac_ext >&5
18339
18340         ac_cv_lib_gcc___divdi3=no
18341 fi
18342
18343 rm -f core conftest.err conftest.$ac_objext \
18344       conftest$ac_exeext conftest.$ac_ext
18345 LIBS=$ac_check_lib_save_LIBS
18346 fi
18347 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18348 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18349 if test $ac_cv_lib_gcc___divdi3 = yes; then
18350
18351 cat >>confdefs.h <<\_ACEOF
18352 #define HAVE___DIVDI3 1
18353 _ACEOF
18354
18355 fi
18356
18357   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18358 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18359 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18360   echo $ECHO_N "(cached) $ECHO_C" >&6
18361 else
18362   ac_check_lib_save_LIBS=$LIBS
18363 LIBS="-lgcc  $LIBS"
18364 cat >conftest.$ac_ext <<_ACEOF
18365 /* confdefs.h.  */
18366 _ACEOF
18367 cat confdefs.h >>conftest.$ac_ext
18368 cat >>conftest.$ac_ext <<_ACEOF
18369 /* end confdefs.h.  */
18370
18371 /* Override any GCC internal prototype to avoid an error.
18372    Use char because int might match the return type of a GCC
18373    builtin and then its argument prototype would still apply.  */
18374 #ifdef __cplusplus
18375 extern "C"
18376 #endif
18377 char __fixdfdi ();
18378 int
18379 main ()
18380 {
18381 return __fixdfdi ();
18382   ;
18383   return 0;
18384 }
18385 _ACEOF
18386 rm -f conftest.$ac_objext conftest$ac_exeext
18387 if { (ac_try="$ac_link"
18388 case "(($ac_try" in
18389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390   *) ac_try_echo=$ac_try;;
18391 esac
18392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18393   (eval "$ac_link") 2>conftest.er1
18394   ac_status=$?
18395   grep -v '^ *+' conftest.er1 >conftest.err
18396   rm -f conftest.er1
18397   cat conftest.err >&5
18398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399   (exit $ac_status); } &&
18400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18401   { (case "(($ac_try" in
18402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18403   *) ac_try_echo=$ac_try;;
18404 esac
18405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18406   (eval "$ac_try") 2>&5
18407   ac_status=$?
18408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409   (exit $ac_status); }; } &&
18410          { ac_try='test -s conftest$ac_exeext'
18411   { (case "(($ac_try" in
18412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18413   *) ac_try_echo=$ac_try;;
18414 esac
18415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18416   (eval "$ac_try") 2>&5
18417   ac_status=$?
18418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419   (exit $ac_status); }; }; then
18420   ac_cv_lib_gcc___fixdfdi=yes
18421 else
18422   echo "$as_me: failed program was:" >&5
18423 sed 's/^/| /' conftest.$ac_ext >&5
18424
18425         ac_cv_lib_gcc___fixdfdi=no
18426 fi
18427
18428 rm -f core conftest.err conftest.$ac_objext \
18429       conftest$ac_exeext conftest.$ac_ext
18430 LIBS=$ac_check_lib_save_LIBS
18431 fi
18432 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18433 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18434 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18435
18436 cat >>confdefs.h <<\_ACEOF
18437 #define HAVE___FIXDFDI 1
18438 _ACEOF
18439
18440 fi
18441
18442   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18443 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18444 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18445   echo $ECHO_N "(cached) $ECHO_C" >&6
18446 else
18447   ac_check_lib_save_LIBS=$LIBS
18448 LIBS="-lgcc  $LIBS"
18449 cat >conftest.$ac_ext <<_ACEOF
18450 /* confdefs.h.  */
18451 _ACEOF
18452 cat confdefs.h >>conftest.$ac_ext
18453 cat >>conftest.$ac_ext <<_ACEOF
18454 /* end confdefs.h.  */
18455
18456 /* Override any GCC internal prototype to avoid an error.
18457    Use char because int might match the return type of a GCC
18458    builtin and then its argument prototype would still apply.  */
18459 #ifdef __cplusplus
18460 extern "C"
18461 #endif
18462 char __fixsfdi ();
18463 int
18464 main ()
18465 {
18466 return __fixsfdi ();
18467   ;
18468   return 0;
18469 }
18470 _ACEOF
18471 rm -f conftest.$ac_objext conftest$ac_exeext
18472 if { (ac_try="$ac_link"
18473 case "(($ac_try" in
18474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18475   *) ac_try_echo=$ac_try;;
18476 esac
18477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18478   (eval "$ac_link") 2>conftest.er1
18479   ac_status=$?
18480   grep -v '^ *+' conftest.er1 >conftest.err
18481   rm -f conftest.er1
18482   cat conftest.err >&5
18483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484   (exit $ac_status); } &&
18485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18486   { (case "(($ac_try" in
18487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18488   *) ac_try_echo=$ac_try;;
18489 esac
18490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18491   (eval "$ac_try") 2>&5
18492   ac_status=$?
18493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494   (exit $ac_status); }; } &&
18495          { ac_try='test -s conftest$ac_exeext'
18496   { (case "(($ac_try" in
18497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498   *) ac_try_echo=$ac_try;;
18499 esac
18500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501   (eval "$ac_try") 2>&5
18502   ac_status=$?
18503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504   (exit $ac_status); }; }; then
18505   ac_cv_lib_gcc___fixsfdi=yes
18506 else
18507   echo "$as_me: failed program was:" >&5
18508 sed 's/^/| /' conftest.$ac_ext >&5
18509
18510         ac_cv_lib_gcc___fixsfdi=no
18511 fi
18512
18513 rm -f core conftest.err conftest.$ac_objext \
18514       conftest$ac_exeext conftest.$ac_ext
18515 LIBS=$ac_check_lib_save_LIBS
18516 fi
18517 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18518 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18519 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18520
18521 cat >>confdefs.h <<\_ACEOF
18522 #define HAVE___FIXSFDI 1
18523 _ACEOF
18524
18525 fi
18526
18527   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18528 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18529 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18530   echo $ECHO_N "(cached) $ECHO_C" >&6
18531 else
18532   ac_check_lib_save_LIBS=$LIBS
18533 LIBS="-lgcc  $LIBS"
18534 cat >conftest.$ac_ext <<_ACEOF
18535 /* confdefs.h.  */
18536 _ACEOF
18537 cat confdefs.h >>conftest.$ac_ext
18538 cat >>conftest.$ac_ext <<_ACEOF
18539 /* end confdefs.h.  */
18540
18541 /* Override any GCC internal prototype to avoid an error.
18542    Use char because int might match the return type of a GCC
18543    builtin and then its argument prototype would still apply.  */
18544 #ifdef __cplusplus
18545 extern "C"
18546 #endif
18547 char __floatdidf ();
18548 int
18549 main ()
18550 {
18551 return __floatdidf ();
18552   ;
18553   return 0;
18554 }
18555 _ACEOF
18556 rm -f conftest.$ac_objext conftest$ac_exeext
18557 if { (ac_try="$ac_link"
18558 case "(($ac_try" in
18559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18560   *) ac_try_echo=$ac_try;;
18561 esac
18562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18563   (eval "$ac_link") 2>conftest.er1
18564   ac_status=$?
18565   grep -v '^ *+' conftest.er1 >conftest.err
18566   rm -f conftest.er1
18567   cat conftest.err >&5
18568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569   (exit $ac_status); } &&
18570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18571   { (case "(($ac_try" in
18572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573   *) ac_try_echo=$ac_try;;
18574 esac
18575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576   (eval "$ac_try") 2>&5
18577   ac_status=$?
18578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579   (exit $ac_status); }; } &&
18580          { ac_try='test -s conftest$ac_exeext'
18581   { (case "(($ac_try" in
18582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18583   *) ac_try_echo=$ac_try;;
18584 esac
18585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18586   (eval "$ac_try") 2>&5
18587   ac_status=$?
18588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589   (exit $ac_status); }; }; then
18590   ac_cv_lib_gcc___floatdidf=yes
18591 else
18592   echo "$as_me: failed program was:" >&5
18593 sed 's/^/| /' conftest.$ac_ext >&5
18594
18595         ac_cv_lib_gcc___floatdidf=no
18596 fi
18597
18598 rm -f core conftest.err conftest.$ac_objext \
18599       conftest$ac_exeext conftest.$ac_ext
18600 LIBS=$ac_check_lib_save_LIBS
18601 fi
18602 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18603 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18604 if test $ac_cv_lib_gcc___floatdidf = yes; then
18605
18606 cat >>confdefs.h <<\_ACEOF
18607 #define HAVE___FLOATDIDF 1
18608 _ACEOF
18609
18610 fi
18611
18612   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18613 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18614 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18615   echo $ECHO_N "(cached) $ECHO_C" >&6
18616 else
18617   ac_check_lib_save_LIBS=$LIBS
18618 LIBS="-lgcc  $LIBS"
18619 cat >conftest.$ac_ext <<_ACEOF
18620 /* confdefs.h.  */
18621 _ACEOF
18622 cat confdefs.h >>conftest.$ac_ext
18623 cat >>conftest.$ac_ext <<_ACEOF
18624 /* end confdefs.h.  */
18625
18626 /* Override any GCC internal prototype to avoid an error.
18627    Use char because int might match the return type of a GCC
18628    builtin and then its argument prototype would still apply.  */
18629 #ifdef __cplusplus
18630 extern "C"
18631 #endif
18632 char __lshrdi3 ();
18633 int
18634 main ()
18635 {
18636 return __lshrdi3 ();
18637   ;
18638   return 0;
18639 }
18640 _ACEOF
18641 rm -f conftest.$ac_objext conftest$ac_exeext
18642 if { (ac_try="$ac_link"
18643 case "(($ac_try" in
18644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18645   *) ac_try_echo=$ac_try;;
18646 esac
18647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18648   (eval "$ac_link") 2>conftest.er1
18649   ac_status=$?
18650   grep -v '^ *+' conftest.er1 >conftest.err
18651   rm -f conftest.er1
18652   cat conftest.err >&5
18653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654   (exit $ac_status); } &&
18655          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18656   { (case "(($ac_try" in
18657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18658   *) ac_try_echo=$ac_try;;
18659 esac
18660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18661   (eval "$ac_try") 2>&5
18662   ac_status=$?
18663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664   (exit $ac_status); }; } &&
18665          { ac_try='test -s conftest$ac_exeext'
18666   { (case "(($ac_try" in
18667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18668   *) ac_try_echo=$ac_try;;
18669 esac
18670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18671   (eval "$ac_try") 2>&5
18672   ac_status=$?
18673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674   (exit $ac_status); }; }; then
18675   ac_cv_lib_gcc___lshrdi3=yes
18676 else
18677   echo "$as_me: failed program was:" >&5
18678 sed 's/^/| /' conftest.$ac_ext >&5
18679
18680         ac_cv_lib_gcc___lshrdi3=no
18681 fi
18682
18683 rm -f core conftest.err conftest.$ac_objext \
18684       conftest$ac_exeext conftest.$ac_ext
18685 LIBS=$ac_check_lib_save_LIBS
18686 fi
18687 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18688 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18689 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18690
18691 cat >>confdefs.h <<\_ACEOF
18692 #define HAVE___LSHRDI3 1
18693 _ACEOF
18694
18695 fi
18696
18697   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18698 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18699 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18700   echo $ECHO_N "(cached) $ECHO_C" >&6
18701 else
18702   ac_check_lib_save_LIBS=$LIBS
18703 LIBS="-lgcc  $LIBS"
18704 cat >conftest.$ac_ext <<_ACEOF
18705 /* confdefs.h.  */
18706 _ACEOF
18707 cat confdefs.h >>conftest.$ac_ext
18708 cat >>conftest.$ac_ext <<_ACEOF
18709 /* end confdefs.h.  */
18710
18711 /* Override any GCC internal prototype to avoid an error.
18712    Use char because int might match the return type of a GCC
18713    builtin and then its argument prototype would still apply.  */
18714 #ifdef __cplusplus
18715 extern "C"
18716 #endif
18717 char __moddi3 ();
18718 int
18719 main ()
18720 {
18721 return __moddi3 ();
18722   ;
18723   return 0;
18724 }
18725 _ACEOF
18726 rm -f conftest.$ac_objext conftest$ac_exeext
18727 if { (ac_try="$ac_link"
18728 case "(($ac_try" in
18729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18730   *) ac_try_echo=$ac_try;;
18731 esac
18732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18733   (eval "$ac_link") 2>conftest.er1
18734   ac_status=$?
18735   grep -v '^ *+' conftest.er1 >conftest.err
18736   rm -f conftest.er1
18737   cat conftest.err >&5
18738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739   (exit $ac_status); } &&
18740          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18741   { (case "(($ac_try" in
18742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18743   *) ac_try_echo=$ac_try;;
18744 esac
18745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18746   (eval "$ac_try") 2>&5
18747   ac_status=$?
18748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749   (exit $ac_status); }; } &&
18750          { ac_try='test -s conftest$ac_exeext'
18751   { (case "(($ac_try" in
18752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753   *) ac_try_echo=$ac_try;;
18754 esac
18755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18756   (eval "$ac_try") 2>&5
18757   ac_status=$?
18758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759   (exit $ac_status); }; }; then
18760   ac_cv_lib_gcc___moddi3=yes
18761 else
18762   echo "$as_me: failed program was:" >&5
18763 sed 's/^/| /' conftest.$ac_ext >&5
18764
18765         ac_cv_lib_gcc___moddi3=no
18766 fi
18767
18768 rm -f core conftest.err conftest.$ac_objext \
18769       conftest$ac_exeext conftest.$ac_ext
18770 LIBS=$ac_check_lib_save_LIBS
18771 fi
18772 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18773 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18774 if test $ac_cv_lib_gcc___moddi3 = yes; then
18775
18776 cat >>confdefs.h <<\_ACEOF
18777 #define HAVE___MODDI3 1
18778 _ACEOF
18779
18780 fi
18781
18782   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18783 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18784 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18785   echo $ECHO_N "(cached) $ECHO_C" >&6
18786 else
18787   ac_check_lib_save_LIBS=$LIBS
18788 LIBS="-lgcc  $LIBS"
18789 cat >conftest.$ac_ext <<_ACEOF
18790 /* confdefs.h.  */
18791 _ACEOF
18792 cat confdefs.h >>conftest.$ac_ext
18793 cat >>conftest.$ac_ext <<_ACEOF
18794 /* end confdefs.h.  */
18795
18796 /* Override any GCC internal prototype to avoid an error.
18797    Use char because int might match the return type of a GCC
18798    builtin and then its argument prototype would still apply.  */
18799 #ifdef __cplusplus
18800 extern "C"
18801 #endif
18802 char __udivdi3 ();
18803 int
18804 main ()
18805 {
18806 return __udivdi3 ();
18807   ;
18808   return 0;
18809 }
18810 _ACEOF
18811 rm -f conftest.$ac_objext conftest$ac_exeext
18812 if { (ac_try="$ac_link"
18813 case "(($ac_try" in
18814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18815   *) ac_try_echo=$ac_try;;
18816 esac
18817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18818   (eval "$ac_link") 2>conftest.er1
18819   ac_status=$?
18820   grep -v '^ *+' conftest.er1 >conftest.err
18821   rm -f conftest.er1
18822   cat conftest.err >&5
18823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824   (exit $ac_status); } &&
18825          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18826   { (case "(($ac_try" in
18827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828   *) ac_try_echo=$ac_try;;
18829 esac
18830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18831   (eval "$ac_try") 2>&5
18832   ac_status=$?
18833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834   (exit $ac_status); }; } &&
18835          { ac_try='test -s conftest$ac_exeext'
18836   { (case "(($ac_try" in
18837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838   *) ac_try_echo=$ac_try;;
18839 esac
18840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841   (eval "$ac_try") 2>&5
18842   ac_status=$?
18843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844   (exit $ac_status); }; }; then
18845   ac_cv_lib_gcc___udivdi3=yes
18846 else
18847   echo "$as_me: failed program was:" >&5
18848 sed 's/^/| /' conftest.$ac_ext >&5
18849
18850         ac_cv_lib_gcc___udivdi3=no
18851 fi
18852
18853 rm -f core conftest.err conftest.$ac_objext \
18854       conftest$ac_exeext conftest.$ac_ext
18855 LIBS=$ac_check_lib_save_LIBS
18856 fi
18857 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18858 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18859 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18860
18861 cat >>confdefs.h <<\_ACEOF
18862 #define HAVE___UDIVDI3 1
18863 _ACEOF
18864
18865 fi
18866
18867   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18868 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18869 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18870   echo $ECHO_N "(cached) $ECHO_C" >&6
18871 else
18872   ac_check_lib_save_LIBS=$LIBS
18873 LIBS="-lgcc  $LIBS"
18874 cat >conftest.$ac_ext <<_ACEOF
18875 /* confdefs.h.  */
18876 _ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h.  */
18880
18881 /* Override any GCC internal prototype to avoid an error.
18882    Use char because int might match the return type of a GCC
18883    builtin and then its argument prototype would still apply.  */
18884 #ifdef __cplusplus
18885 extern "C"
18886 #endif
18887 char __umoddi3 ();
18888 int
18889 main ()
18890 {
18891 return __umoddi3 ();
18892   ;
18893   return 0;
18894 }
18895 _ACEOF
18896 rm -f conftest.$ac_objext conftest$ac_exeext
18897 if { (ac_try="$ac_link"
18898 case "(($ac_try" in
18899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18900   *) ac_try_echo=$ac_try;;
18901 esac
18902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18903   (eval "$ac_link") 2>conftest.er1
18904   ac_status=$?
18905   grep -v '^ *+' conftest.er1 >conftest.err
18906   rm -f conftest.er1
18907   cat conftest.err >&5
18908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909   (exit $ac_status); } &&
18910          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18911   { (case "(($ac_try" in
18912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18913   *) ac_try_echo=$ac_try;;
18914 esac
18915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18916   (eval "$ac_try") 2>&5
18917   ac_status=$?
18918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919   (exit $ac_status); }; } &&
18920          { ac_try='test -s conftest$ac_exeext'
18921   { (case "(($ac_try" in
18922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18923   *) ac_try_echo=$ac_try;;
18924 esac
18925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18926   (eval "$ac_try") 2>&5
18927   ac_status=$?
18928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929   (exit $ac_status); }; }; then
18930   ac_cv_lib_gcc___umoddi3=yes
18931 else
18932   echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18934
18935         ac_cv_lib_gcc___umoddi3=no
18936 fi
18937
18938 rm -f core conftest.err conftest.$ac_objext \
18939       conftest$ac_exeext conftest.$ac_ext
18940 LIBS=$ac_check_lib_save_LIBS
18941 fi
18942 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18943 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18944 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18945
18946 cat >>confdefs.h <<\_ACEOF
18947 #define HAVE___UMODDI3 1
18948 _ACEOF
18949
18950 fi
18951
18952
18953   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18954 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18955 if test "${ac_cv_lib_gcc___main+set}" = set; then
18956   echo $ECHO_N "(cached) $ECHO_C" >&6
18957 else
18958   ac_check_lib_save_LIBS=$LIBS
18959 LIBS="-lgcc  $LIBS"
18960 cat >conftest.$ac_ext <<_ACEOF
18961 /* confdefs.h.  */
18962 _ACEOF
18963 cat confdefs.h >>conftest.$ac_ext
18964 cat >>conftest.$ac_ext <<_ACEOF
18965 /* end confdefs.h.  */
18966
18967 /* Override any GCC internal prototype to avoid an error.
18968    Use char because int might match the return type of a GCC
18969    builtin and then its argument prototype would still apply.  */
18970 #ifdef __cplusplus
18971 extern "C"
18972 #endif
18973 char __main ();
18974 int
18975 main ()
18976 {
18977 return __main ();
18978   ;
18979   return 0;
18980 }
18981 _ACEOF
18982 rm -f conftest.$ac_objext conftest$ac_exeext
18983 if { (ac_try="$ac_link"
18984 case "(($ac_try" in
18985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18986   *) ac_try_echo=$ac_try;;
18987 esac
18988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18989   (eval "$ac_link") 2>conftest.er1
18990   ac_status=$?
18991   grep -v '^ *+' conftest.er1 >conftest.err
18992   rm -f conftest.er1
18993   cat conftest.err >&5
18994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995   (exit $ac_status); } &&
18996          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18997   { (case "(($ac_try" in
18998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999   *) ac_try_echo=$ac_try;;
19000 esac
19001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002   (eval "$ac_try") 2>&5
19003   ac_status=$?
19004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005   (exit $ac_status); }; } &&
19006          { ac_try='test -s conftest$ac_exeext'
19007   { (case "(($ac_try" in
19008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19009   *) ac_try_echo=$ac_try;;
19010 esac
19011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19012   (eval "$ac_try") 2>&5
19013   ac_status=$?
19014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015   (exit $ac_status); }; }; then
19016   ac_cv_lib_gcc___main=yes
19017 else
19018   echo "$as_me: failed program was:" >&5
19019 sed 's/^/| /' conftest.$ac_ext >&5
19020
19021         ac_cv_lib_gcc___main=no
19022 fi
19023
19024 rm -f core conftest.err conftest.$ac_objext \
19025       conftest$ac_exeext conftest.$ac_ext
19026 LIBS=$ac_check_lib_save_LIBS
19027 fi
19028 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19029 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19030 if test $ac_cv_lib_gcc___main = yes; then
19031
19032 cat >>confdefs.h <<\_ACEOF
19033 #define HAVE___MAIN 1
19034 _ACEOF
19035
19036 fi
19037
19038   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19039 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19040 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19041   echo $ECHO_N "(cached) $ECHO_C" >&6
19042 else
19043   ac_check_lib_save_LIBS=$LIBS
19044 LIBS="-lgcc  $LIBS"
19045 cat >conftest.$ac_ext <<_ACEOF
19046 /* confdefs.h.  */
19047 _ACEOF
19048 cat confdefs.h >>conftest.$ac_ext
19049 cat >>conftest.$ac_ext <<_ACEOF
19050 /* end confdefs.h.  */
19051
19052 /* Override any GCC internal prototype to avoid an error.
19053    Use char because int might match the return type of a GCC
19054    builtin and then its argument prototype would still apply.  */
19055 #ifdef __cplusplus
19056 extern "C"
19057 #endif
19058 char __cmpdi2 ();
19059 int
19060 main ()
19061 {
19062 return __cmpdi2 ();
19063   ;
19064   return 0;
19065 }
19066 _ACEOF
19067 rm -f conftest.$ac_objext conftest$ac_exeext
19068 if { (ac_try="$ac_link"
19069 case "(($ac_try" in
19070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19071   *) ac_try_echo=$ac_try;;
19072 esac
19073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19074   (eval "$ac_link") 2>conftest.er1
19075   ac_status=$?
19076   grep -v '^ *+' conftest.er1 >conftest.err
19077   rm -f conftest.er1
19078   cat conftest.err >&5
19079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080   (exit $ac_status); } &&
19081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19082   { (case "(($ac_try" in
19083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19084   *) ac_try_echo=$ac_try;;
19085 esac
19086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19087   (eval "$ac_try") 2>&5
19088   ac_status=$?
19089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090   (exit $ac_status); }; } &&
19091          { ac_try='test -s conftest$ac_exeext'
19092   { (case "(($ac_try" in
19093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19094   *) ac_try_echo=$ac_try;;
19095 esac
19096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19097   (eval "$ac_try") 2>&5
19098   ac_status=$?
19099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100   (exit $ac_status); }; }; then
19101   ac_cv_lib_gcc___cmpdi2=yes
19102 else
19103   echo "$as_me: failed program was:" >&5
19104 sed 's/^/| /' conftest.$ac_ext >&5
19105
19106         ac_cv_lib_gcc___cmpdi2=no
19107 fi
19108
19109 rm -f core conftest.err conftest.$ac_objext \
19110       conftest$ac_exeext conftest.$ac_ext
19111 LIBS=$ac_check_lib_save_LIBS
19112 fi
19113 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19114 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19115 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19116
19117 cat >>confdefs.h <<\_ACEOF
19118 #define HAVE___CMPDI2 1
19119 _ACEOF
19120
19121 fi
19122
19123 fi
19124
19125 if test "$llvm_cv_os_type" = "MingW" ; then
19126   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19127 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19128   cat >conftest.$ac_ext <<_ACEOF
19129 #include <windows.h>
19130 #include <imagehlp.h>
19131 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19132 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19133 _ACEOF
19134 rm -f conftest.$ac_objext
19135 if { (ac_try="$ac_compile"
19136 case "(($ac_try" in
19137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19138   *) ac_try_echo=$ac_try;;
19139 esac
19140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19141   (eval "$ac_compile") 2>conftest.er1
19142   ac_status=$?
19143   grep -v '^ *+' conftest.er1 >conftest.err
19144   rm -f conftest.er1
19145   cat conftest.err >&5
19146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147   (exit $ac_status); } &&
19148          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19149   { (case "(($ac_try" in
19150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19151   *) ac_try_echo=$ac_try;;
19152 esac
19153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19154   (eval "$ac_try") 2>&5
19155   ac_status=$?
19156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157   (exit $ac_status); }; } &&
19158          { ac_try='test -s conftest.$ac_objext'
19159   { (case "(($ac_try" in
19160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19161   *) ac_try_echo=$ac_try;;
19162 esac
19163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19164   (eval "$ac_try") 2>&5
19165   ac_status=$?
19166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167   (exit $ac_status); }; }; then
19168
19169   { echo "$as_me:$LINENO: result: yes" >&5
19170 echo "${ECHO_T}yes" >&6; }
19171   llvm_cv_win32_elmcb_pcstr="PCSTR"
19172
19173 else
19174   echo "$as_me: failed program was:" >&5
19175 sed 's/^/| /' conftest.$ac_ext >&5
19176
19177
19178   { echo "$as_me:$LINENO: result: no" >&5
19179 echo "${ECHO_T}no" >&6; }
19180   llvm_cv_win32_elmcb_pcstr="PSTR"
19181
19182 fi
19183
19184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19185
19186 cat >>confdefs.h <<_ACEOF
19187 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19188 _ACEOF
19189
19190 fi
19191
19192
19193 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19194 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19195 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19196   echo $ECHO_N "(cached) $ECHO_C" >&6
19197 else
19198   ac_ext=cpp
19199 ac_cpp='$CXXCPP $CPPFLAGS'
19200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19203
19204    cat >conftest.$ac_ext <<_ACEOF
19205 /* confdefs.h.  */
19206 _ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h.  */
19210 #include <math.h>
19211 int
19212 main ()
19213 {
19214 float f; isnan(f);
19215   ;
19216   return 0;
19217 }
19218 _ACEOF
19219 rm -f conftest.$ac_objext
19220 if { (ac_try="$ac_compile"
19221 case "(($ac_try" in
19222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19223   *) ac_try_echo=$ac_try;;
19224 esac
19225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19226   (eval "$ac_compile") 2>conftest.er1
19227   ac_status=$?
19228   grep -v '^ *+' conftest.er1 >conftest.err
19229   rm -f conftest.er1
19230   cat conftest.err >&5
19231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232   (exit $ac_status); } &&
19233          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19234   { (case "(($ac_try" in
19235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19236   *) ac_try_echo=$ac_try;;
19237 esac
19238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19239   (eval "$ac_try") 2>&5
19240   ac_status=$?
19241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242   (exit $ac_status); }; } &&
19243          { ac_try='test -s conftest.$ac_objext'
19244   { (case "(($ac_try" in
19245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19246   *) ac_try_echo=$ac_try;;
19247 esac
19248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19249   (eval "$ac_try") 2>&5
19250   ac_status=$?
19251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252   (exit $ac_status); }; }; then
19253   ac_cv_func_isnan_in_math_h=yes
19254 else
19255   echo "$as_me: failed program was:" >&5
19256 sed 's/^/| /' conftest.$ac_ext >&5
19257
19258         ac_cv_func_isnan_in_math_h=no
19259 fi
19260
19261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19262   ac_ext=c
19263 ac_cpp='$CPP $CPPFLAGS'
19264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19267
19268 fi
19269 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19270 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19271
19272
19273 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19274
19275 cat >>confdefs.h <<\_ACEOF
19276 #define HAVE_ISNAN_IN_MATH_H 1
19277 _ACEOF
19278
19279 fi
19280
19281 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19282 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19283 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19284   echo $ECHO_N "(cached) $ECHO_C" >&6
19285 else
19286   ac_ext=cpp
19287 ac_cpp='$CXXCPP $CPPFLAGS'
19288 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19289 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19290 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19291
19292    cat >conftest.$ac_ext <<_ACEOF
19293 /* confdefs.h.  */
19294 _ACEOF
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h.  */
19298 #include <cmath>
19299 int
19300 main ()
19301 {
19302 float f; isnan(f);
19303   ;
19304   return 0;
19305 }
19306 _ACEOF
19307 rm -f conftest.$ac_objext
19308 if { (ac_try="$ac_compile"
19309 case "(($ac_try" in
19310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19311   *) ac_try_echo=$ac_try;;
19312 esac
19313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19314   (eval "$ac_compile") 2>conftest.er1
19315   ac_status=$?
19316   grep -v '^ *+' conftest.er1 >conftest.err
19317   rm -f conftest.er1
19318   cat conftest.err >&5
19319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320   (exit $ac_status); } &&
19321          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19322   { (case "(($ac_try" in
19323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19324   *) ac_try_echo=$ac_try;;
19325 esac
19326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19327   (eval "$ac_try") 2>&5
19328   ac_status=$?
19329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330   (exit $ac_status); }; } &&
19331          { ac_try='test -s conftest.$ac_objext'
19332   { (case "(($ac_try" in
19333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19334   *) ac_try_echo=$ac_try;;
19335 esac
19336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19337   (eval "$ac_try") 2>&5
19338   ac_status=$?
19339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340   (exit $ac_status); }; }; then
19341   ac_cv_func_isnan_in_cmath=yes
19342 else
19343   echo "$as_me: failed program was:" >&5
19344 sed 's/^/| /' conftest.$ac_ext >&5
19345
19346         ac_cv_func_isnan_in_cmath=no
19347 fi
19348
19349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19350   ac_ext=c
19351 ac_cpp='$CPP $CPPFLAGS'
19352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19355
19356 fi
19357 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19358 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19359
19360 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19361
19362 cat >>confdefs.h <<\_ACEOF
19363 #define HAVE_ISNAN_IN_CMATH 1
19364 _ACEOF
19365
19366 fi
19367
19368 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19369 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19370 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19371   echo $ECHO_N "(cached) $ECHO_C" >&6
19372 else
19373   ac_ext=cpp
19374 ac_cpp='$CXXCPP $CPPFLAGS'
19375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19378
19379    cat >conftest.$ac_ext <<_ACEOF
19380 /* confdefs.h.  */
19381 _ACEOF
19382 cat confdefs.h >>conftest.$ac_ext
19383 cat >>conftest.$ac_ext <<_ACEOF
19384 /* end confdefs.h.  */
19385 #include <cmath>
19386 int
19387 main ()
19388 {
19389 float f; std::isnan(f);
19390   ;
19391   return 0;
19392 }
19393 _ACEOF
19394 rm -f conftest.$ac_objext
19395 if { (ac_try="$ac_compile"
19396 case "(($ac_try" in
19397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19398   *) ac_try_echo=$ac_try;;
19399 esac
19400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19401   (eval "$ac_compile") 2>conftest.er1
19402   ac_status=$?
19403   grep -v '^ *+' conftest.er1 >conftest.err
19404   rm -f conftest.er1
19405   cat conftest.err >&5
19406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407   (exit $ac_status); } &&
19408          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19409   { (case "(($ac_try" in
19410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411   *) ac_try_echo=$ac_try;;
19412 esac
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414   (eval "$ac_try") 2>&5
19415   ac_status=$?
19416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417   (exit $ac_status); }; } &&
19418          { ac_try='test -s conftest.$ac_objext'
19419   { (case "(($ac_try" in
19420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421   *) ac_try_echo=$ac_try;;
19422 esac
19423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424   (eval "$ac_try") 2>&5
19425   ac_status=$?
19426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427   (exit $ac_status); }; }; then
19428   ac_cv_func_std_isnan_in_cmath=yes
19429 else
19430   echo "$as_me: failed program was:" >&5
19431 sed 's/^/| /' conftest.$ac_ext >&5
19432
19433         ac_cv_func_std_isnan_in_cmath=no
19434 fi
19435
19436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19437   ac_ext=c
19438 ac_cpp='$CPP $CPPFLAGS'
19439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19442
19443 fi
19444 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19445 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19446
19447 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19448
19449 cat >>confdefs.h <<\_ACEOF
19450 #define HAVE_STD_ISNAN_IN_CMATH 1
19451 _ACEOF
19452
19453 fi
19454
19455
19456 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19457 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19458 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19459   echo $ECHO_N "(cached) $ECHO_C" >&6
19460 else
19461   ac_ext=cpp
19462 ac_cpp='$CXXCPP $CPPFLAGS'
19463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19466
19467    cat >conftest.$ac_ext <<_ACEOF
19468 /* confdefs.h.  */
19469 _ACEOF
19470 cat confdefs.h >>conftest.$ac_ext
19471 cat >>conftest.$ac_ext <<_ACEOF
19472 /* end confdefs.h.  */
19473 #include <math.h>
19474 int
19475 main ()
19476 {
19477 float f; isinf(f);
19478   ;
19479   return 0;
19480 }
19481 _ACEOF
19482 rm -f conftest.$ac_objext
19483 if { (ac_try="$ac_compile"
19484 case "(($ac_try" in
19485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486   *) ac_try_echo=$ac_try;;
19487 esac
19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489   (eval "$ac_compile") 2>conftest.er1
19490   ac_status=$?
19491   grep -v '^ *+' conftest.er1 >conftest.err
19492   rm -f conftest.er1
19493   cat conftest.err >&5
19494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495   (exit $ac_status); } &&
19496          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19497   { (case "(($ac_try" in
19498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19499   *) ac_try_echo=$ac_try;;
19500 esac
19501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19502   (eval "$ac_try") 2>&5
19503   ac_status=$?
19504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505   (exit $ac_status); }; } &&
19506          { ac_try='test -s conftest.$ac_objext'
19507   { (case "(($ac_try" in
19508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509   *) ac_try_echo=$ac_try;;
19510 esac
19511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19512   (eval "$ac_try") 2>&5
19513   ac_status=$?
19514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515   (exit $ac_status); }; }; then
19516   ac_cv_func_isinf_in_math_h=yes
19517 else
19518   echo "$as_me: failed program was:" >&5
19519 sed 's/^/| /' conftest.$ac_ext >&5
19520
19521         ac_cv_func_isinf_in_math_h=no
19522 fi
19523
19524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19525   ac_ext=c
19526 ac_cpp='$CPP $CPPFLAGS'
19527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19530
19531 fi
19532 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19533 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19534
19535 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19536
19537 cat >>confdefs.h <<\_ACEOF
19538 #define HAVE_ISINF_IN_MATH_H 1
19539 _ACEOF
19540
19541 fi
19542
19543 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19544 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19545 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19546   echo $ECHO_N "(cached) $ECHO_C" >&6
19547 else
19548   ac_ext=cpp
19549 ac_cpp='$CXXCPP $CPPFLAGS'
19550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19553
19554    cat >conftest.$ac_ext <<_ACEOF
19555 /* confdefs.h.  */
19556 _ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h.  */
19560 #include <cmath>
19561 int
19562 main ()
19563 {
19564 float f; isinf(f);
19565   ;
19566   return 0;
19567 }
19568 _ACEOF
19569 rm -f conftest.$ac_objext
19570 if { (ac_try="$ac_compile"
19571 case "(($ac_try" in
19572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19573   *) ac_try_echo=$ac_try;;
19574 esac
19575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19576   (eval "$ac_compile") 2>conftest.er1
19577   ac_status=$?
19578   grep -v '^ *+' conftest.er1 >conftest.err
19579   rm -f conftest.er1
19580   cat conftest.err >&5
19581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582   (exit $ac_status); } &&
19583          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19584   { (case "(($ac_try" in
19585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586   *) ac_try_echo=$ac_try;;
19587 esac
19588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19589   (eval "$ac_try") 2>&5
19590   ac_status=$?
19591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592   (exit $ac_status); }; } &&
19593          { ac_try='test -s conftest.$ac_objext'
19594   { (case "(($ac_try" in
19595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596   *) ac_try_echo=$ac_try;;
19597 esac
19598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19599   (eval "$ac_try") 2>&5
19600   ac_status=$?
19601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602   (exit $ac_status); }; }; then
19603   ac_cv_func_isinf_in_cmath=yes
19604 else
19605   echo "$as_me: failed program was:" >&5
19606 sed 's/^/| /' conftest.$ac_ext >&5
19607
19608         ac_cv_func_isinf_in_cmath=no
19609 fi
19610
19611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19612   ac_ext=c
19613 ac_cpp='$CPP $CPPFLAGS'
19614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19617
19618 fi
19619 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19620 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19621
19622 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19623
19624 cat >>confdefs.h <<\_ACEOF
19625 #define HAVE_ISINF_IN_CMATH 1
19626 _ACEOF
19627
19628 fi
19629
19630 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19631 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19632 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19633   echo $ECHO_N "(cached) $ECHO_C" >&6
19634 else
19635   ac_ext=cpp
19636 ac_cpp='$CXXCPP $CPPFLAGS'
19637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19640
19641    cat >conftest.$ac_ext <<_ACEOF
19642 /* confdefs.h.  */
19643 _ACEOF
19644 cat confdefs.h >>conftest.$ac_ext
19645 cat >>conftest.$ac_ext <<_ACEOF
19646 /* end confdefs.h.  */
19647 #include <cmath>
19648 int
19649 main ()
19650 {
19651 float f; std::isinf(f);
19652   ;
19653   return 0;
19654 }
19655 _ACEOF
19656 rm -f conftest.$ac_objext
19657 if { (ac_try="$ac_compile"
19658 case "(($ac_try" in
19659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19660   *) ac_try_echo=$ac_try;;
19661 esac
19662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19663   (eval "$ac_compile") 2>conftest.er1
19664   ac_status=$?
19665   grep -v '^ *+' conftest.er1 >conftest.err
19666   rm -f conftest.er1
19667   cat conftest.err >&5
19668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669   (exit $ac_status); } &&
19670          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19671   { (case "(($ac_try" in
19672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673   *) ac_try_echo=$ac_try;;
19674 esac
19675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19676   (eval "$ac_try") 2>&5
19677   ac_status=$?
19678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679   (exit $ac_status); }; } &&
19680          { ac_try='test -s conftest.$ac_objext'
19681   { (case "(($ac_try" in
19682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683   *) ac_try_echo=$ac_try;;
19684 esac
19685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686   (eval "$ac_try") 2>&5
19687   ac_status=$?
19688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689   (exit $ac_status); }; }; then
19690   ac_cv_func_std_isinf_in_cmath=yes
19691 else
19692   echo "$as_me: failed program was:" >&5
19693 sed 's/^/| /' conftest.$ac_ext >&5
19694
19695         ac_cv_func_std_isinf_in_cmath=no
19696 fi
19697
19698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19699   ac_ext=c
19700 ac_cpp='$CPP $CPPFLAGS'
19701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19704
19705 fi
19706 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19707 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19708
19709 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19710
19711 cat >>confdefs.h <<\_ACEOF
19712 #define HAVE_STD_ISINF_IN_CMATH 1
19713 _ACEOF
19714
19715 fi
19716
19717 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19718 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19719 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19720   echo $ECHO_N "(cached) $ECHO_C" >&6
19721 else
19722   ac_ext=cpp
19723 ac_cpp='$CXXCPP $CPPFLAGS'
19724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19727
19728    cat >conftest.$ac_ext <<_ACEOF
19729 /* confdefs.h.  */
19730 _ACEOF
19731 cat confdefs.h >>conftest.$ac_ext
19732 cat >>conftest.$ac_ext <<_ACEOF
19733 /* end confdefs.h.  */
19734 #include <ieeefp.h>
19735 int
19736 main ()
19737 {
19738 float f; finite(f);
19739   ;
19740   return 0;
19741 }
19742 _ACEOF
19743 rm -f conftest.$ac_objext
19744 if { (ac_try="$ac_compile"
19745 case "(($ac_try" in
19746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19747   *) ac_try_echo=$ac_try;;
19748 esac
19749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19750   (eval "$ac_compile") 2>conftest.er1
19751   ac_status=$?
19752   grep -v '^ *+' conftest.er1 >conftest.err
19753   rm -f conftest.er1
19754   cat conftest.err >&5
19755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756   (exit $ac_status); } &&
19757          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19758   { (case "(($ac_try" in
19759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760   *) ac_try_echo=$ac_try;;
19761 esac
19762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19763   (eval "$ac_try") 2>&5
19764   ac_status=$?
19765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766   (exit $ac_status); }; } &&
19767          { ac_try='test -s conftest.$ac_objext'
19768   { (case "(($ac_try" in
19769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770   *) ac_try_echo=$ac_try;;
19771 esac
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773   (eval "$ac_try") 2>&5
19774   ac_status=$?
19775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776   (exit $ac_status); }; }; then
19777   ac_cv_func_finite_in_ieeefp_h=yes
19778 else
19779   echo "$as_me: failed program was:" >&5
19780 sed 's/^/| /' conftest.$ac_ext >&5
19781
19782         ac_cv_func_finite_in_ieeefp_h=no
19783 fi
19784
19785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19786   ac_ext=c
19787 ac_cpp='$CPP $CPPFLAGS'
19788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19791
19792 fi
19793 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19794 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19795
19796 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19797
19798 cat >>confdefs.h <<\_ACEOF
19799 #define HAVE_FINITE_IN_IEEEFP_H 1
19800 _ACEOF
19801
19802 fi
19803
19804
19805
19806 if test "$llvm_cv_platform_type" = "Unix" ; then
19807
19808
19809 for ac_header in stdlib.h unistd.h
19810 do
19811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19813   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19816   echo $ECHO_N "(cached) $ECHO_C" >&6
19817 fi
19818 ac_res=`eval echo '${'$as_ac_Header'}'`
19819                { echo "$as_me:$LINENO: result: $ac_res" >&5
19820 echo "${ECHO_T}$ac_res" >&6; }
19821 else
19822   # Is the header compilable?
19823 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19825 cat >conftest.$ac_ext <<_ACEOF
19826 /* confdefs.h.  */
19827 _ACEOF
19828 cat confdefs.h >>conftest.$ac_ext
19829 cat >>conftest.$ac_ext <<_ACEOF
19830 /* end confdefs.h.  */
19831 $ac_includes_default
19832 #include <$ac_header>
19833 _ACEOF
19834 rm -f conftest.$ac_objext
19835 if { (ac_try="$ac_compile"
19836 case "(($ac_try" in
19837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838   *) ac_try_echo=$ac_try;;
19839 esac
19840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19841   (eval "$ac_compile") 2>conftest.er1
19842   ac_status=$?
19843   grep -v '^ *+' conftest.er1 >conftest.err
19844   rm -f conftest.er1
19845   cat conftest.err >&5
19846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847   (exit $ac_status); } &&
19848          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19849   { (case "(($ac_try" in
19850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19851   *) ac_try_echo=$ac_try;;
19852 esac
19853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19854   (eval "$ac_try") 2>&5
19855   ac_status=$?
19856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857   (exit $ac_status); }; } &&
19858          { ac_try='test -s conftest.$ac_objext'
19859   { (case "(($ac_try" in
19860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19861   *) ac_try_echo=$ac_try;;
19862 esac
19863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19864   (eval "$ac_try") 2>&5
19865   ac_status=$?
19866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867   (exit $ac_status); }; }; then
19868   ac_header_compiler=yes
19869 else
19870   echo "$as_me: failed program was:" >&5
19871 sed 's/^/| /' conftest.$ac_ext >&5
19872
19873         ac_header_compiler=no
19874 fi
19875
19876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19878 echo "${ECHO_T}$ac_header_compiler" >&6; }
19879
19880 # Is the header present?
19881 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19883 cat >conftest.$ac_ext <<_ACEOF
19884 /* confdefs.h.  */
19885 _ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h.  */
19889 #include <$ac_header>
19890 _ACEOF
19891 if { (ac_try="$ac_cpp conftest.$ac_ext"
19892 case "(($ac_try" in
19893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19894   *) ac_try_echo=$ac_try;;
19895 esac
19896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19897   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19898   ac_status=$?
19899   grep -v '^ *+' conftest.er1 >conftest.err
19900   rm -f conftest.er1
19901   cat conftest.err >&5
19902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903   (exit $ac_status); } >/dev/null; then
19904   if test -s conftest.err; then
19905     ac_cpp_err=$ac_c_preproc_warn_flag
19906     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19907   else
19908     ac_cpp_err=
19909   fi
19910 else
19911   ac_cpp_err=yes
19912 fi
19913 if test -z "$ac_cpp_err"; then
19914   ac_header_preproc=yes
19915 else
19916   echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19918
19919   ac_header_preproc=no
19920 fi
19921
19922 rm -f conftest.err conftest.$ac_ext
19923 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19924 echo "${ECHO_T}$ac_header_preproc" >&6; }
19925
19926 # So?  What about this header?
19927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19928   yes:no: )
19929     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19931     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19932 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19933     ac_header_preproc=yes
19934     ;;
19935   no:yes:* )
19936     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19938     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19939 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19940     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19941 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19942     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19943 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19944     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19945 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19946     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19947 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19948     ( cat <<\_ASBOX
19949 ## ------------------------------ ##
19950 ## Report this to bugs@yourdomain ##
19951 ## ------------------------------ ##
19952 _ASBOX
19953      ) | sed "s/^/$as_me: WARNING:     /" >&2
19954     ;;
19955 esac
19956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19959   echo $ECHO_N "(cached) $ECHO_C" >&6
19960 else
19961   eval "$as_ac_Header=\$ac_header_preproc"
19962 fi
19963 ac_res=`eval echo '${'$as_ac_Header'}'`
19964                { echo "$as_me:$LINENO: result: $ac_res" >&5
19965 echo "${ECHO_T}$ac_res" >&6; }
19966
19967 fi
19968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19969   cat >>confdefs.h <<_ACEOF
19970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19971 _ACEOF
19972
19973 fi
19974
19975 done
19976
19977
19978 for ac_func in getpagesize
19979 do
19980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19981 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19983 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19984   echo $ECHO_N "(cached) $ECHO_C" >&6
19985 else
19986   cat >conftest.$ac_ext <<_ACEOF
19987 /* confdefs.h.  */
19988 _ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h.  */
19992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19993    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19994 #define $ac_func innocuous_$ac_func
19995
19996 /* System header to define __stub macros and hopefully few prototypes,
19997     which can conflict with char $ac_func (); below.
19998     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19999     <limits.h> exists even on freestanding compilers.  */
20000
20001 #ifdef __STDC__
20002 # include <limits.h>
20003 #else
20004 # include <assert.h>
20005 #endif
20006
20007 #undef $ac_func
20008
20009 /* Override any GCC internal prototype to avoid an error.
20010    Use char because int might match the return type of a GCC
20011    builtin and then its argument prototype would still apply.  */
20012 #ifdef __cplusplus
20013 extern "C"
20014 #endif
20015 char $ac_func ();
20016 /* The GNU C library defines this for functions which it implements
20017     to always fail with ENOSYS.  Some functions are actually named
20018     something starting with __ and the normal name is an alias.  */
20019 #if defined __stub_$ac_func || defined __stub___$ac_func
20020 choke me
20021 #endif
20022
20023 int
20024 main ()
20025 {
20026 return $ac_func ();
20027   ;
20028   return 0;
20029 }
20030 _ACEOF
20031 rm -f conftest.$ac_objext conftest$ac_exeext
20032 if { (ac_try="$ac_link"
20033 case "(($ac_try" in
20034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035   *) ac_try_echo=$ac_try;;
20036 esac
20037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038   (eval "$ac_link") 2>conftest.er1
20039   ac_status=$?
20040   grep -v '^ *+' conftest.er1 >conftest.err
20041   rm -f conftest.er1
20042   cat conftest.err >&5
20043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044   (exit $ac_status); } &&
20045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20046   { (case "(($ac_try" in
20047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20048   *) ac_try_echo=$ac_try;;
20049 esac
20050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20051   (eval "$ac_try") 2>&5
20052   ac_status=$?
20053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054   (exit $ac_status); }; } &&
20055          { ac_try='test -s conftest$ac_exeext'
20056   { (case "(($ac_try" in
20057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058   *) ac_try_echo=$ac_try;;
20059 esac
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061   (eval "$ac_try") 2>&5
20062   ac_status=$?
20063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064   (exit $ac_status); }; }; then
20065   eval "$as_ac_var=yes"
20066 else
20067   echo "$as_me: failed program was:" >&5
20068 sed 's/^/| /' conftest.$ac_ext >&5
20069
20070         eval "$as_ac_var=no"
20071 fi
20072
20073 rm -f core conftest.err conftest.$ac_objext \
20074       conftest$ac_exeext conftest.$ac_ext
20075 fi
20076 ac_res=`eval echo '${'$as_ac_var'}'`
20077                { echo "$as_me:$LINENO: result: $ac_res" >&5
20078 echo "${ECHO_T}$ac_res" >&6; }
20079 if test `eval echo '${'$as_ac_var'}'` = yes; then
20080   cat >>confdefs.h <<_ACEOF
20081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20082 _ACEOF
20083
20084 fi
20085 done
20086
20087 { echo "$as_me:$LINENO: checking for working mmap" >&5
20088 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20089 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20090   echo $ECHO_N "(cached) $ECHO_C" >&6
20091 else
20092   if test "$cross_compiling" = yes; then
20093   ac_cv_func_mmap_fixed_mapped=no
20094 else
20095   cat >conftest.$ac_ext <<_ACEOF
20096 /* confdefs.h.  */
20097 _ACEOF
20098 cat confdefs.h >>conftest.$ac_ext
20099 cat >>conftest.$ac_ext <<_ACEOF
20100 /* end confdefs.h.  */
20101 $ac_includes_default
20102 /* malloc might have been renamed as rpl_malloc. */
20103 #undef malloc
20104
20105 /* Thanks to Mike Haertel and Jim Avera for this test.
20106    Here is a matrix of mmap possibilities:
20107         mmap private not fixed
20108         mmap private fixed at somewhere currently unmapped
20109         mmap private fixed at somewhere already mapped
20110         mmap shared not fixed
20111         mmap shared fixed at somewhere currently unmapped
20112         mmap shared fixed at somewhere already mapped
20113    For private mappings, we should verify that changes cannot be read()
20114    back from the file, nor mmap's back from the file at a different
20115    address.  (There have been systems where private was not correctly
20116    implemented like the infamous i386 svr4.0, and systems where the
20117    VM page cache was not coherent with the file system buffer cache
20118    like early versions of FreeBSD and possibly contemporary NetBSD.)
20119    For shared mappings, we should conversely verify that changes get
20120    propagated back to all the places they're supposed to be.
20121
20122    Grep wants private fixed already mapped.
20123    The main things grep needs to know about mmap are:
20124    * does it exist and is it safe to write into the mmap'd area
20125    * how to use it (BSD variants)  */
20126
20127 #include <fcntl.h>
20128 #include <sys/mman.h>
20129
20130 #if !STDC_HEADERS && !HAVE_STDLIB_H
20131 char *malloc ();
20132 #endif
20133
20134 /* This mess was copied from the GNU getpagesize.h.  */
20135 #if !HAVE_GETPAGESIZE
20136 /* Assume that all systems that can run configure have sys/param.h.  */
20137 # if !HAVE_SYS_PARAM_H
20138 #  define HAVE_SYS_PARAM_H 1
20139 # endif
20140
20141 # ifdef _SC_PAGESIZE
20142 #  define getpagesize() sysconf(_SC_PAGESIZE)
20143 # else /* no _SC_PAGESIZE */
20144 #  if HAVE_SYS_PARAM_H
20145 #   include <sys/param.h>
20146 #   ifdef EXEC_PAGESIZE
20147 #    define getpagesize() EXEC_PAGESIZE
20148 #   else /* no EXEC_PAGESIZE */
20149 #    ifdef NBPG
20150 #     define getpagesize() NBPG * CLSIZE
20151 #     ifndef CLSIZE
20152 #      define CLSIZE 1
20153 #     endif /* no CLSIZE */
20154 #    else /* no NBPG */
20155 #     ifdef NBPC
20156 #      define getpagesize() NBPC
20157 #     else /* no NBPC */
20158 #      ifdef PAGESIZE
20159 #       define getpagesize() PAGESIZE
20160 #      endif /* PAGESIZE */
20161 #     endif /* no NBPC */
20162 #    endif /* no NBPG */
20163 #   endif /* no EXEC_PAGESIZE */
20164 #  else /* no HAVE_SYS_PARAM_H */
20165 #   define getpagesize() 8192   /* punt totally */
20166 #  endif /* no HAVE_SYS_PARAM_H */
20167 # endif /* no _SC_PAGESIZE */
20168
20169 #endif /* no HAVE_GETPAGESIZE */
20170
20171 int
20172 main ()
20173 {
20174   char *data, *data2, *data3;
20175   int i, pagesize;
20176   int fd;
20177
20178   pagesize = getpagesize ();
20179
20180   /* First, make a file with some known garbage in it. */
20181   data = (char *) malloc (pagesize);
20182   if (!data)
20183     return 1;
20184   for (i = 0; i < pagesize; ++i)
20185     *(data + i) = rand ();
20186   umask (0);
20187   fd = creat ("conftest.mmap", 0600);
20188   if (fd < 0)
20189     return 1;
20190   if (write (fd, data, pagesize) != pagesize)
20191     return 1;
20192   close (fd);
20193
20194   /* Next, try to mmap the file at a fixed address which already has
20195      something else allocated at it.  If we can, also make sure that
20196      we see the same garbage.  */
20197   fd = open ("conftest.mmap", O_RDWR);
20198   if (fd < 0)
20199     return 1;
20200   data2 = (char *) malloc (2 * pagesize);
20201   if (!data2)
20202     return 1;
20203   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20204   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20205                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20206     return 1;
20207   for (i = 0; i < pagesize; ++i)
20208     if (*(data + i) != *(data2 + i))
20209       return 1;
20210
20211   /* Finally, make sure that changes to the mapped area do not
20212      percolate back to the file as seen by read().  (This is a bug on
20213      some variants of i386 svr4.0.)  */
20214   for (i = 0; i < pagesize; ++i)
20215     *(data2 + i) = *(data2 + i) + 1;
20216   data3 = (char *) malloc (pagesize);
20217   if (!data3)
20218     return 1;
20219   if (read (fd, data3, pagesize) != pagesize)
20220     return 1;
20221   for (i = 0; i < pagesize; ++i)
20222     if (*(data + i) != *(data3 + i))
20223       return 1;
20224   close (fd);
20225   return 0;
20226 }
20227 _ACEOF
20228 rm -f conftest$ac_exeext
20229 if { (ac_try="$ac_link"
20230 case "(($ac_try" in
20231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232   *) ac_try_echo=$ac_try;;
20233 esac
20234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235   (eval "$ac_link") 2>&5
20236   ac_status=$?
20237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20239   { (case "(($ac_try" in
20240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20241   *) ac_try_echo=$ac_try;;
20242 esac
20243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20244   (eval "$ac_try") 2>&5
20245   ac_status=$?
20246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247   (exit $ac_status); }; }; then
20248   ac_cv_func_mmap_fixed_mapped=yes
20249 else
20250   echo "$as_me: program exited with status $ac_status" >&5
20251 echo "$as_me: failed program was:" >&5
20252 sed 's/^/| /' conftest.$ac_ext >&5
20253
20254 ( exit $ac_status )
20255 ac_cv_func_mmap_fixed_mapped=no
20256 fi
20257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20258 fi
20259
20260
20261 fi
20262 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20263 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20264 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20265
20266 cat >>confdefs.h <<\_ACEOF
20267 #define HAVE_MMAP 1
20268 _ACEOF
20269
20270 fi
20271 rm -f conftest.mmap
20272
20273   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20274 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20275 if test "${ac_cv_func_mmap_file+set}" = set; then
20276   echo $ECHO_N "(cached) $ECHO_C" >&6
20277 else
20278    ac_ext=c
20279 ac_cpp='$CPP $CPPFLAGS'
20280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20283
20284   if test "$cross_compiling" = yes; then
20285   ac_cv_func_mmap_file=no
20286 else
20287   cat >conftest.$ac_ext <<_ACEOF
20288
20289     /* confdefs.h.  */
20290 _ACEOF
20291 cat confdefs.h >>conftest.$ac_ext
20292 cat >>conftest.$ac_ext <<_ACEOF
20293 /* end confdefs.h.  */
20294
20295 #include <sys/types.h>
20296 #include <sys/mman.h>
20297 #include <fcntl.h>
20298
20299 int
20300 main ()
20301 {
20302
20303   int fd;
20304   fd = creat ("foo",0777);
20305   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20306   unlink ("foo");
20307   return (fd != (int) MAP_FAILED);
20308   ;
20309   return 0;
20310 }
20311 _ACEOF
20312 rm -f conftest$ac_exeext
20313 if { (ac_try="$ac_link"
20314 case "(($ac_try" in
20315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20316   *) ac_try_echo=$ac_try;;
20317 esac
20318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20319   (eval "$ac_link") 2>&5
20320   ac_status=$?
20321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20323   { (case "(($ac_try" in
20324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20325   *) ac_try_echo=$ac_try;;
20326 esac
20327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20328   (eval "$ac_try") 2>&5
20329   ac_status=$?
20330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331   (exit $ac_status); }; }; then
20332   ac_cv_func_mmap_file=yes
20333 else
20334   echo "$as_me: program exited with status $ac_status" >&5
20335 echo "$as_me: failed program was:" >&5
20336 sed 's/^/| /' conftest.$ac_ext >&5
20337
20338 ( exit $ac_status )
20339 ac_cv_func_mmap_file=no
20340 fi
20341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20342 fi
20343
20344
20345   ac_ext=c
20346 ac_cpp='$CPP $CPPFLAGS'
20347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20350
20351
20352 fi
20353 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20354 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20355 if test "$ac_cv_func_mmap_file" = yes; then
20356
20357 cat >>confdefs.h <<\_ACEOF
20358 #define HAVE_MMAP_FILE
20359 _ACEOF
20360
20361    MMAP_FILE=yes
20362
20363 fi
20364
20365   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20366 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20367 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20368   echo $ECHO_N "(cached) $ECHO_C" >&6
20369 else
20370   if test "$llvm_cv_os_type" = "Interix" ; then
20371    ac_cv_need_dev_zero_for_mmap=yes
20372  else
20373    ac_cv_need_dev_zero_for_mmap=no
20374  fi
20375
20376 fi
20377 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20378 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20379 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20380
20381 cat >>confdefs.h <<\_ACEOF
20382 #define NEED_DEV_ZERO_FOR_MMAP 1
20383 _ACEOF
20384
20385 fi
20386
20387   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20388   then
20389     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20390 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20391   fi
20392   if test "$ac_cv_func_mmap_file" = "no"
20393   then
20394     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20395 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20396   fi
20397 fi
20398
20399 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20400 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20401 ac_ext=cpp
20402 ac_cpp='$CXXCPP $CPPFLAGS'
20403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20406
20407 cat >conftest.$ac_ext <<_ACEOF
20408 /* confdefs.h.  */
20409 _ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h.  */
20413 int main() {
20414         volatile unsigned long val = 1;
20415         __sync_synchronize();
20416         __sync_val_compare_and_swap(&val, 1, 0);
20417         __sync_add_and_fetch(&val, 1);
20418         __sync_sub_and_fetch(&val, 1);
20419         return 0;
20420       }
20421
20422 _ACEOF
20423 rm -f conftest.$ac_objext conftest$ac_exeext
20424 if { (ac_try="$ac_link"
20425 case "(($ac_try" in
20426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427   *) ac_try_echo=$ac_try;;
20428 esac
20429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20430   (eval "$ac_link") 2>conftest.er1
20431   ac_status=$?
20432   grep -v '^ *+' conftest.er1 >conftest.err
20433   rm -f conftest.er1
20434   cat conftest.err >&5
20435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436   (exit $ac_status); } &&
20437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20438   { (case "(($ac_try" in
20439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440   *) ac_try_echo=$ac_try;;
20441 esac
20442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20443   (eval "$ac_try") 2>&5
20444   ac_status=$?
20445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446   (exit $ac_status); }; } &&
20447          { ac_try='test -s conftest$ac_exeext'
20448   { (case "(($ac_try" in
20449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20450   *) ac_try_echo=$ac_try;;
20451 esac
20452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20453   (eval "$ac_try") 2>&5
20454   ac_status=$?
20455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456   (exit $ac_status); }; }; then
20457   ac_ext=c
20458 ac_cpp='$CPP $CPPFLAGS'
20459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20462
20463   { echo "$as_me:$LINENO: result: yes" >&5
20464 echo "${ECHO_T}yes" >&6; }
20465
20466 cat >>confdefs.h <<\_ACEOF
20467 #define LLVM_HAS_ATOMICS 1
20468 _ACEOF
20469
20470 else
20471   echo "$as_me: failed program was:" >&5
20472 sed 's/^/| /' conftest.$ac_ext >&5
20473
20474         { echo "$as_me:$LINENO: result: no" >&5
20475 echo "${ECHO_T}no" >&6; }
20476
20477 cat >>confdefs.h <<\_ACEOF
20478 #define LLVM_HAS_ATOMICS 0
20479 _ACEOF
20480
20481   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20482 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20483 fi
20484
20485 rm -f core conftest.err conftest.$ac_objext \
20486       conftest$ac_exeext conftest.$ac_ext
20487
20488
20489 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20490   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20491 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20492 if test "${llvm_cv_linux_mixed+set}" = set; then
20493   echo $ECHO_N "(cached) $ECHO_C" >&6
20494 else
20495    ac_ext=c
20496 ac_cpp='$CPP $CPPFLAGS'
20497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20500
20501   cat >conftest.$ac_ext <<_ACEOF
20502 /* confdefs.h.  */
20503 _ACEOF
20504 cat confdefs.h >>conftest.$ac_ext
20505 cat >>conftest.$ac_ext <<_ACEOF
20506 /* end confdefs.h.  */
20507 #ifndef __x86_64__
20508        error: Not x86-64 even if uname says so!
20509       #endif
20510
20511 int
20512 main ()
20513 {
20514
20515   ;
20516   return 0;
20517 }
20518 _ACEOF
20519 rm -f conftest.$ac_objext
20520 if { (ac_try="$ac_compile"
20521 case "(($ac_try" in
20522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20523   *) ac_try_echo=$ac_try;;
20524 esac
20525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20526   (eval "$ac_compile") 2>conftest.er1
20527   ac_status=$?
20528   grep -v '^ *+' conftest.er1 >conftest.err
20529   rm -f conftest.er1
20530   cat conftest.err >&5
20531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532   (exit $ac_status); } &&
20533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20534   { (case "(($ac_try" in
20535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20536   *) ac_try_echo=$ac_try;;
20537 esac
20538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20539   (eval "$ac_try") 2>&5
20540   ac_status=$?
20541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542   (exit $ac_status); }; } &&
20543          { ac_try='test -s conftest.$ac_objext'
20544   { (case "(($ac_try" in
20545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20546   *) ac_try_echo=$ac_try;;
20547 esac
20548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20549   (eval "$ac_try") 2>&5
20550   ac_status=$?
20551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552   (exit $ac_status); }; }; then
20553   llvm_cv_linux_mixed=no
20554 else
20555   echo "$as_me: failed program was:" >&5
20556 sed 's/^/| /' conftest.$ac_ext >&5
20557
20558         llvm_cv_linux_mixed=yes
20559 fi
20560
20561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20562   ac_ext=c
20563 ac_cpp='$CPP $CPPFLAGS'
20564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20567
20568
20569 fi
20570 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20571 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20572
20573   if test "$llvm_cv_linux_mixed" = "yes"; then
20574     llvm_cv_target_arch="x86"
20575     ARCH="x86"
20576   fi
20577 fi
20578
20579
20580 for ac_func in __dso_handle
20581 do
20582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20583 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20586   echo $ECHO_N "(cached) $ECHO_C" >&6
20587 else
20588   cat >conftest.$ac_ext <<_ACEOF
20589 /* confdefs.h.  */
20590 _ACEOF
20591 cat confdefs.h >>conftest.$ac_ext
20592 cat >>conftest.$ac_ext <<_ACEOF
20593 /* end confdefs.h.  */
20594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20596 #define $ac_func innocuous_$ac_func
20597
20598 /* System header to define __stub macros and hopefully few prototypes,
20599     which can conflict with char $ac_func (); below.
20600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20601     <limits.h> exists even on freestanding compilers.  */
20602
20603 #ifdef __STDC__
20604 # include <limits.h>
20605 #else
20606 # include <assert.h>
20607 #endif
20608
20609 #undef $ac_func
20610
20611 /* Override any GCC internal prototype to avoid an error.
20612    Use char because int might match the return type of a GCC
20613    builtin and then its argument prototype would still apply.  */
20614 #ifdef __cplusplus
20615 extern "C"
20616 #endif
20617 char $ac_func ();
20618 /* The GNU C library defines this for functions which it implements
20619     to always fail with ENOSYS.  Some functions are actually named
20620     something starting with __ and the normal name is an alias.  */
20621 #if defined __stub_$ac_func || defined __stub___$ac_func
20622 choke me
20623 #endif
20624
20625 int
20626 main ()
20627 {
20628 return $ac_func ();
20629   ;
20630   return 0;
20631 }
20632 _ACEOF
20633 rm -f conftest.$ac_objext conftest$ac_exeext
20634 if { (ac_try="$ac_link"
20635 case "(($ac_try" in
20636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20637   *) ac_try_echo=$ac_try;;
20638 esac
20639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20640   (eval "$ac_link") 2>conftest.er1
20641   ac_status=$?
20642   grep -v '^ *+' conftest.er1 >conftest.err
20643   rm -f conftest.er1
20644   cat conftest.err >&5
20645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646   (exit $ac_status); } &&
20647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20648   { (case "(($ac_try" in
20649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650   *) ac_try_echo=$ac_try;;
20651 esac
20652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20653   (eval "$ac_try") 2>&5
20654   ac_status=$?
20655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656   (exit $ac_status); }; } &&
20657          { ac_try='test -s conftest$ac_exeext'
20658   { (case "(($ac_try" in
20659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660   *) ac_try_echo=$ac_try;;
20661 esac
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663   (eval "$ac_try") 2>&5
20664   ac_status=$?
20665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666   (exit $ac_status); }; }; then
20667   eval "$as_ac_var=yes"
20668 else
20669   echo "$as_me: failed program was:" >&5
20670 sed 's/^/| /' conftest.$ac_ext >&5
20671
20672         eval "$as_ac_var=no"
20673 fi
20674
20675 rm -f core conftest.err conftest.$ac_objext \
20676       conftest$ac_exeext conftest.$ac_ext
20677 fi
20678 ac_res=`eval echo '${'$as_ac_var'}'`
20679                { echo "$as_me:$LINENO: result: $ac_res" >&5
20680 echo "${ECHO_T}$ac_res" >&6; }
20681 if test `eval echo '${'$as_ac_var'}'` = yes; then
20682   cat >>confdefs.h <<_ACEOF
20683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20684 _ACEOF
20685
20686 fi
20687 done
20688
20689
20690 SHLIBEXT=$libltdl_cv_shlibext
20691
20692
20693 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20694
20695
20696 # Translate the various configuration directories and other basic
20697 # information into substitutions that will end up in Makefile.config.in
20698 # that these configured values can be used by the makefiles
20699 if test "${prefix}" = "NONE" ; then
20700   prefix="/usr/local"
20701 fi
20702 eval LLVM_PREFIX="${prefix}";
20703 eval LLVM_BINDIR="${prefix}/bin";
20704 eval LLVM_DATADIR="${prefix}/share/llvm";
20705 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20706 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20707 eval LLVM_INCLUDEDIR="${prefix}/include";
20708 eval LLVM_INFODIR="${prefix}/info";
20709 eval LLVM_MANDIR="${prefix}/man";
20710 LLVM_CONFIGTIME=`date`
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721 # Place the various directores into the config.h file as #defines so that we
20722 # can know about the installation paths within LLVM.
20723
20724 cat >>confdefs.h <<_ACEOF
20725 #define LLVM_PREFIX "$LLVM_PREFIX"
20726 _ACEOF
20727
20728
20729 cat >>confdefs.h <<_ACEOF
20730 #define LLVM_BINDIR "$LLVM_BINDIR"
20731 _ACEOF
20732
20733
20734 cat >>confdefs.h <<_ACEOF
20735 #define LLVM_DATADIR "$LLVM_DATADIR"
20736 _ACEOF
20737
20738
20739 cat >>confdefs.h <<_ACEOF
20740 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20741 _ACEOF
20742
20743
20744 cat >>confdefs.h <<_ACEOF
20745 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20746 _ACEOF
20747
20748
20749 cat >>confdefs.h <<_ACEOF
20750 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20751 _ACEOF
20752
20753
20754 cat >>confdefs.h <<_ACEOF
20755 #define LLVM_INFODIR "$LLVM_INFODIR"
20756 _ACEOF
20757
20758
20759 cat >>confdefs.h <<_ACEOF
20760 #define LLVM_MANDIR "$LLVM_MANDIR"
20761 _ACEOF
20762
20763
20764 cat >>confdefs.h <<_ACEOF
20765 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20766 _ACEOF
20767
20768
20769 cat >>confdefs.h <<_ACEOF
20770 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
20771 _ACEOF
20772
20773
20774 # Determine which bindings to build.
20775 if test "$BINDINGS_TO_BUILD" = auto ; then
20776   BINDINGS_TO_BUILD=""
20777   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20778     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20779   fi
20780 fi
20781 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20782
20783
20784 # This isn't really configurey, but it avoids having to repeat the list in
20785 # other files.
20786 ALL_BINDINGS=ocaml
20787
20788
20789 # Do any work necessary to ensure that bindings have what they need.
20790 binding_prereqs_failed=0
20791 for a_binding in $BINDINGS_TO_BUILD ; do
20792   case "$a_binding" in
20793   ocaml)
20794     if test "x$OCAMLC" = x ; then
20795       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20796 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20797       binding_prereqs_failed=1
20798     fi
20799     if test "x$OCAMLDEP" = x ; then
20800       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20801 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20802       binding_prereqs_failed=1
20803     fi
20804     if test "x$OCAMLOPT" = x ; then
20805       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20806 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20807           fi
20808     if test "x$with_ocaml_libdir" != xauto ; then
20809       OCAML_LIBDIR=$with_ocaml_libdir
20810
20811     else
20812       ocaml_stdlib="`"$OCAMLC" -where`"
20813       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20814       then
20815         # ocaml stdlib is beneath our prefix; use stdlib
20816         OCAML_LIBDIR=$ocaml_stdlib
20817
20818       else
20819         # ocaml stdlib is outside our prefix; use libdir/ocaml
20820         OCAML_LIBDIR=${prefix}/lib/ocaml
20821
20822       fi
20823     fi
20824     ;;
20825   esac
20826 done
20827 if test "$binding_prereqs_failed" = 1 ; then
20828   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20829 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20830    { (exit 1); exit 1; }; }
20831 fi
20832
20833 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20834 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20835 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20836   echo $ECHO_N "(cached) $ECHO_C" >&6
20837 else
20838    ac_ext=cpp
20839 ac_cpp='$CXXCPP $CPPFLAGS'
20840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20843
20844   oldcxxflags="$CXXFLAGS"
20845   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
20846   cat >conftest.$ac_ext <<_ACEOF
20847 /* confdefs.h.  */
20848 _ACEOF
20849 cat confdefs.h >>conftest.$ac_ext
20850 cat >>conftest.$ac_ext <<_ACEOF
20851 /* end confdefs.h.  */
20852 template <typename T> struct X { void __attribute__((noinline)) f() {} };
20853 int
20854 main ()
20855 {
20856 X<int>().f();
20857   ;
20858   return 0;
20859 }
20860 _ACEOF
20861 rm -f conftest.$ac_objext
20862 if { (ac_try="$ac_compile"
20863 case "(($ac_try" in
20864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865   *) ac_try_echo=$ac_try;;
20866 esac
20867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868   (eval "$ac_compile") 2>conftest.er1
20869   ac_status=$?
20870   grep -v '^ *+' conftest.er1 >conftest.err
20871   rm -f conftest.er1
20872   cat conftest.err >&5
20873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874   (exit $ac_status); } &&
20875          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20876   { (case "(($ac_try" in
20877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878   *) ac_try_echo=$ac_try;;
20879 esac
20880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20881   (eval "$ac_try") 2>&5
20882   ac_status=$?
20883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884   (exit $ac_status); }; } &&
20885          { ac_try='test -s conftest.$ac_objext'
20886   { (case "(($ac_try" in
20887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888   *) ac_try_echo=$ac_try;;
20889 esac
20890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891   (eval "$ac_try") 2>&5
20892   ac_status=$?
20893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894   (exit $ac_status); }; }; then
20895   llvm_cv_cxx_visibility_inlines_hidden=yes
20896 else
20897   echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20899
20900         llvm_cv_cxx_visibility_inlines_hidden=no
20901 fi
20902
20903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20904   CXXFLAGS="$oldcxxflags"
20905   ac_ext=c
20906 ac_cpp='$CPP $CPPFLAGS'
20907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20910
20911
20912 fi
20913 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20914 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20915 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20916   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20917
20918 else
20919   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20920
20921 fi
20922
20923
20924 if test "$llvm_cv_link_use_r" = "yes" ; then
20925   RPATH="-Wl,-R"
20926 else
20927   RPATH="-Wl,-rpath"
20928 fi
20929
20930
20931 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20932   RDYNAMIC="-Wl,-export-dynamic"
20933 else
20934   RDYNAMIC=""
20935 fi
20936
20937
20938
20939
20940 ac_config_files="$ac_config_files Makefile.common"
20941
20942 ac_config_files="$ac_config_files Makefile.llvm.config"
20943
20944
20945 ac_config_commands="$ac_config_commands Makefile"
20946
20947
20948 ac_config_commands="$ac_config_commands lib/Makefile"
20949
20950
20951 ac_config_commands="$ac_config_commands lib/sample/Makefile"
20952
20953
20954 ac_config_commands="$ac_config_commands tools/Makefile"
20955
20956
20957 ac_config_commands="$ac_config_commands tools/sample/Makefile"
20958
20959
20960
20961 cat >confcache <<\_ACEOF
20962 # This file is a shell script that caches the results of configure
20963 # tests run on this system so they can be shared between configure
20964 # scripts and configure runs, see configure's option --config-cache.
20965 # It is not useful on other systems.  If it contains results you don't
20966 # want to keep, you may remove or edit it.
20967 #
20968 # config.status only pays attention to the cache file if you give it
20969 # the --recheck option to rerun configure.
20970 #
20971 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20972 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20973 # following values.
20974
20975 _ACEOF
20976
20977 # The following way of writing the cache mishandles newlines in values,
20978 # but we know of no workaround that is simple, portable, and efficient.
20979 # So, we kill variables containing newlines.
20980 # Ultrix sh set writes to stderr and can't be redirected directly,
20981 # and sets the high bit in the cache file unless we assign to the vars.
20982 (
20983   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20984     eval ac_val=\$$ac_var
20985     case $ac_val in #(
20986     *${as_nl}*)
20987       case $ac_var in #(
20988       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20989 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20990       esac
20991       case $ac_var in #(
20992       _ | IFS | as_nl) ;; #(
20993       *) $as_unset $ac_var ;;
20994       esac ;;
20995     esac
20996   done
20997
20998   (set) 2>&1 |
20999     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21000     *${as_nl}ac_space=\ *)
21001       # `set' does not quote correctly, so add quotes (double-quote
21002       # substitution turns \\\\ into \\, and sed turns \\ into \).
21003       sed -n \
21004         "s/'/'\\\\''/g;
21005           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21006       ;; #(
21007     *)
21008       # `set' quotes correctly as required by POSIX, so do not add quotes.
21009       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21010       ;;
21011     esac |
21012     sort
21013 ) |
21014   sed '
21015      /^ac_cv_env_/b end
21016      t clear
21017      :clear
21018      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21019      t end
21020      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21021      :end' >>confcache
21022 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21023   if test -w "$cache_file"; then
21024     test "x$cache_file" != "x/dev/null" &&
21025       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21026 echo "$as_me: updating cache $cache_file" >&6;}
21027     cat confcache >$cache_file
21028   else
21029     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21030 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21031   fi
21032 fi
21033 rm -f confcache
21034
21035 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21036 # Let make expand exec_prefix.
21037 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21038
21039 # Transform confdefs.h into DEFS.
21040 # Protect against shell expansion while executing Makefile rules.
21041 # Protect against Makefile macro expansion.
21042 #
21043 # If the first sed substitution is executed (which looks for macros that
21044 # take arguments), then branch to the quote section.  Otherwise,
21045 # look for a macro that doesn't take arguments.
21046 ac_script='
21047 t clear
21048 :clear
21049 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
21050 t quote
21051 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
21052 t quote
21053 b any
21054 :quote
21055 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21056 s/\[/\\&/g
21057 s/\]/\\&/g
21058 s/\$/$$/g
21059 H
21060 :any
21061 ${
21062         g
21063         s/^\n//
21064         s/\n/ /g
21065         p
21066 }
21067 '
21068 DEFS=`sed -n "$ac_script" confdefs.h`
21069
21070
21071 ac_libobjs=
21072 ac_ltlibobjs=
21073 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21074   # 1. Remove the extension, and $U if already installed.
21075   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21076   ac_i=`echo "$ac_i" | sed "$ac_script"`
21077   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21078   #    will be set to the directory where LIBOBJS objects are built.
21079   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21080   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21081 done
21082 LIBOBJS=$ac_libobjs
21083
21084 LTLIBOBJS=$ac_ltlibobjs
21085
21086
21087 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21088   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21089 Usually this means the macro was only invoked conditionally." >&5
21090 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21091 Usually this means the macro was only invoked conditionally." >&2;}
21092    { (exit 1); exit 1; }; }
21093 fi
21094 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21095   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21096 Usually this means the macro was only invoked conditionally." >&5
21097 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21098 Usually this means the macro was only invoked conditionally." >&2;}
21099    { (exit 1); exit 1; }; }
21100 fi
21101
21102 : ${CONFIG_STATUS=./config.status}
21103 ac_clean_files_save=$ac_clean_files
21104 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21105 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21106 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21107 cat >$CONFIG_STATUS <<_ACEOF
21108 #! $SHELL
21109 # Generated by $as_me.
21110 # Run this file to recreate the current configuration.
21111 # Compiler output produced by configure, useful for debugging
21112 # configure, is in config.log if it exists.
21113
21114 debug=false
21115 ac_cs_recheck=false
21116 ac_cs_silent=false
21117 SHELL=\${CONFIG_SHELL-$SHELL}
21118 _ACEOF
21119
21120 cat >>$CONFIG_STATUS <<\_ACEOF
21121 ## --------------------- ##
21122 ## M4sh Initialization.  ##
21123 ## --------------------- ##
21124
21125 # Be Bourne compatible
21126 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21127   emulate sh
21128   NULLCMD=:
21129   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21130   # is contrary to our usage.  Disable this feature.
21131   alias -g '${1+"$@"}'='"$@"'
21132   setopt NO_GLOB_SUBST
21133 else
21134   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21135 fi
21136 BIN_SH=xpg4; export BIN_SH # for Tru64
21137 DUALCASE=1; export DUALCASE # for MKS sh
21138
21139
21140 # PATH needs CR
21141 # Avoid depending upon Character Ranges.
21142 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21143 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21144 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21145 as_cr_digits='0123456789'
21146 as_cr_alnum=$as_cr_Letters$as_cr_digits
21147
21148 # The user is always right.
21149 if test "${PATH_SEPARATOR+set}" != set; then
21150   echo "#! /bin/sh" >conf$$.sh
21151   echo  "exit 0"   >>conf$$.sh
21152   chmod +x conf$$.sh
21153   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21154     PATH_SEPARATOR=';'
21155   else
21156     PATH_SEPARATOR=:
21157   fi
21158   rm -f conf$$.sh
21159 fi
21160
21161 # Support unset when possible.
21162 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21163   as_unset=unset
21164 else
21165   as_unset=false
21166 fi
21167
21168
21169 # IFS
21170 # We need space, tab and new line, in precisely that order.  Quoting is
21171 # there to prevent editors from complaining about space-tab.
21172 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21173 # splitting by setting IFS to empty value.)
21174 as_nl='
21175 '
21176 IFS=" ""        $as_nl"
21177
21178 # Find who we are.  Look in the path if we contain no directory separator.
21179 case $0 in
21180   *[\\/]* ) as_myself=$0 ;;
21181   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21182 for as_dir in $PATH
21183 do
21184   IFS=$as_save_IFS
21185   test -z "$as_dir" && as_dir=.
21186   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21187 done
21188 IFS=$as_save_IFS
21189
21190      ;;
21191 esac
21192 # We did not find ourselves, most probably we were run as `sh COMMAND'
21193 # in which case we are not to be found in the path.
21194 if test "x$as_myself" = x; then
21195   as_myself=$0
21196 fi
21197 if test ! -f "$as_myself"; then
21198   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21199   { (exit 1); exit 1; }
21200 fi
21201
21202 # Work around bugs in pre-3.0 UWIN ksh.
21203 for as_var in ENV MAIL MAILPATH
21204 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21205 done
21206 PS1='$ '
21207 PS2='> '
21208 PS4='+ '
21209
21210 # NLS nuisances.
21211 for as_var in \
21212   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21213   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21214   LC_TELEPHONE LC_TIME
21215 do
21216   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21217     eval $as_var=C; export $as_var
21218   else
21219     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21220   fi
21221 done
21222
21223 # Required to use basename.
21224 if expr a : '\(a\)' >/dev/null 2>&1 &&
21225    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21226   as_expr=expr
21227 else
21228   as_expr=false
21229 fi
21230
21231 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21232   as_basename=basename
21233 else
21234   as_basename=false
21235 fi
21236
21237
21238 # Name of the executable.
21239 as_me=`$as_basename -- "$0" ||
21240 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21241          X"$0" : 'X\(//\)$' \| \
21242          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21243 echo X/"$0" |
21244     sed '/^.*\/\([^/][^/]*\)\/*$/{
21245             s//\1/
21246             q
21247           }
21248           /^X\/\(\/\/\)$/{
21249             s//\1/
21250             q
21251           }
21252           /^X\/\(\/\).*/{
21253             s//\1/
21254             q
21255           }
21256           s/.*/./; q'`
21257
21258 # CDPATH.
21259 $as_unset CDPATH
21260
21261
21262
21263   as_lineno_1=$LINENO
21264   as_lineno_2=$LINENO
21265   test "x$as_lineno_1" != "x$as_lineno_2" &&
21266   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21267
21268   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21269   # uniformly replaced by the line number.  The first 'sed' inserts a
21270   # line-number line after each line using $LINENO; the second 'sed'
21271   # does the real work.  The second script uses 'N' to pair each
21272   # line-number line with the line containing $LINENO, and appends
21273   # trailing '-' during substitution so that $LINENO is not a special
21274   # case at line end.
21275   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21276   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21277   # E. McMahon (1931-1989) for sed's syntax.  :-)
21278   sed -n '
21279     p
21280     /[$]LINENO/=
21281   ' <$as_myself |
21282     sed '
21283       s/[$]LINENO.*/&-/
21284       t lineno
21285       b
21286       :lineno
21287       N
21288       :loop
21289       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21290       t loop
21291       s/-\n.*//
21292     ' >$as_me.lineno &&
21293   chmod +x "$as_me.lineno" ||
21294     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21295    { (exit 1); exit 1; }; }
21296
21297   # Don't try to exec as it changes $[0], causing all sort of problems
21298   # (the dirname of $[0] is not the place where we might find the
21299   # original and so on.  Autoconf is especially sensitive to this).
21300   . "./$as_me.lineno"
21301   # Exit status is that of the last command.
21302   exit
21303 }
21304
21305
21306 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21307   as_dirname=dirname
21308 else
21309   as_dirname=false
21310 fi
21311
21312 ECHO_C= ECHO_N= ECHO_T=
21313 case `echo -n x` in
21314 -n*)
21315   case `echo 'x\c'` in
21316   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21317   *)   ECHO_C='\c';;
21318   esac;;
21319 *)
21320   ECHO_N='-n';;
21321 esac
21322
21323 if expr a : '\(a\)' >/dev/null 2>&1 &&
21324    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21325   as_expr=expr
21326 else
21327   as_expr=false
21328 fi
21329
21330 rm -f conf$$ conf$$.exe conf$$.file
21331 if test -d conf$$.dir; then
21332   rm -f conf$$.dir/conf$$.file
21333 else
21334   rm -f conf$$.dir
21335   mkdir conf$$.dir
21336 fi
21337 echo >conf$$.file
21338 if ln -s conf$$.file conf$$ 2>/dev/null; then
21339   as_ln_s='ln -s'
21340   # ... but there are two gotchas:
21341   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21342   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21343   # In both cases, we have to default to `cp -p'.
21344   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21345     as_ln_s='cp -p'
21346 elif ln conf$$.file conf$$ 2>/dev/null; then
21347   as_ln_s=ln
21348 else
21349   as_ln_s='cp -p'
21350 fi
21351 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21352 rmdir conf$$.dir 2>/dev/null
21353
21354 if mkdir -p . 2>/dev/null; then
21355   as_mkdir_p=:
21356 else
21357   test -d ./-p && rmdir ./-p
21358   as_mkdir_p=false
21359 fi
21360
21361 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21362 # systems may use methods other than mode bits to determine executability.
21363 cat >conf$$.file <<_ASEOF
21364 #! /bin/sh
21365 exit 0
21366 _ASEOF
21367 chmod +x conf$$.file
21368 if test -x conf$$.file >/dev/null 2>&1; then
21369   as_executable_p="test -x"
21370 else
21371   as_executable_p=:
21372 fi
21373 rm -f conf$$.file
21374
21375 # Sed expression to map a string onto a valid CPP name.
21376 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21377
21378 # Sed expression to map a string onto a valid variable name.
21379 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21380
21381
21382 exec 6>&1
21383
21384 # Save the log message, to keep $[0] and so on meaningful, and to
21385 # report actual input values of CONFIG_FILES etc. instead of their
21386 # values after options handling.
21387 ac_log="
21388 This file was extended by [SAMPLE] $as_me [x.xx], which was
21389 generated by GNU Autoconf 2.60.  Invocation command line was
21390
21391   CONFIG_FILES    = $CONFIG_FILES
21392   CONFIG_HEADERS  = $CONFIG_HEADERS
21393   CONFIG_LINKS    = $CONFIG_LINKS
21394   CONFIG_COMMANDS = $CONFIG_COMMANDS
21395   $ $0 $@
21396
21397 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21398 "
21399
21400 _ACEOF
21401
21402 cat >>$CONFIG_STATUS <<_ACEOF
21403 # Files that config.status was made for.
21404 config_files="$ac_config_files"
21405 config_commands="$ac_config_commands"
21406
21407 _ACEOF
21408
21409 cat >>$CONFIG_STATUS <<\_ACEOF
21410 ac_cs_usage="\
21411 \`$as_me' instantiates files from templates according to the
21412 current configuration.
21413
21414 Usage: $0 [OPTIONS] [FILE]...
21415
21416   -h, --help       print this help, then exit
21417   -V, --version    print version number, then exit
21418   -q, --quiet      do not print progress messages
21419   -d, --debug      don't remove temporary files
21420       --recheck    update $as_me by reconfiguring in the same conditions
21421   --file=FILE[:TEMPLATE]
21422                    instantiate the configuration file FILE
21423
21424 Configuration files:
21425 $config_files
21426
21427 Configuration commands:
21428 $config_commands
21429
21430 Report bugs to <bug-autoconf@gnu.org>."
21431
21432 _ACEOF
21433 cat >>$CONFIG_STATUS <<_ACEOF
21434 ac_cs_version="\\
21435 [SAMPLE] config.status [x.xx]
21436 configured by $0, generated by GNU Autoconf 2.60,
21437   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21438
21439 Copyright (C) 2006 Free Software Foundation, Inc.
21440 This config.status script is free software; the Free Software Foundation
21441 gives unlimited permission to copy, distribute and modify it."
21442
21443 ac_pwd='$ac_pwd'
21444 srcdir='$srcdir'
21445 INSTALL='$INSTALL'
21446 _ACEOF
21447
21448 cat >>$CONFIG_STATUS <<\_ACEOF
21449 # If no file are specified by the user, then we need to provide default
21450 # value.  By we need to know if files were specified by the user.
21451 ac_need_defaults=:
21452 while test $# != 0
21453 do
21454   case $1 in
21455   --*=*)
21456     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21457     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21458     ac_shift=:
21459     ;;
21460   *)
21461     ac_option=$1
21462     ac_optarg=$2
21463     ac_shift=shift
21464     ;;
21465   esac
21466
21467   case $ac_option in
21468   # Handling of the options.
21469   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21470     ac_cs_recheck=: ;;
21471   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21472     echo "$ac_cs_version"; exit ;;
21473   --debug | --debu | --deb | --de | --d | -d )
21474     debug=: ;;
21475   --file | --fil | --fi | --f )
21476     $ac_shift
21477     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21478     ac_need_defaults=false;;
21479   --he | --h |  --help | --hel | -h )
21480     echo "$ac_cs_usage"; exit ;;
21481   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21482   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21483     ac_cs_silent=: ;;
21484
21485   # This is an error.
21486   -*) { echo "$as_me: error: unrecognized option: $1
21487 Try \`$0 --help' for more information." >&2
21488    { (exit 1); exit 1; }; } ;;
21489
21490   *) ac_config_targets="$ac_config_targets $1"
21491      ac_need_defaults=false ;;
21492
21493   esac
21494   shift
21495 done
21496
21497 ac_configure_extra_args=
21498
21499 if $ac_cs_silent; then
21500   exec 6>/dev/null
21501   ac_configure_extra_args="$ac_configure_extra_args --silent"
21502 fi
21503
21504 _ACEOF
21505 cat >>$CONFIG_STATUS <<_ACEOF
21506 if \$ac_cs_recheck; then
21507   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21508   CONFIG_SHELL=$SHELL
21509   export CONFIG_SHELL
21510   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21511 fi
21512
21513 _ACEOF
21514 cat >>$CONFIG_STATUS <<\_ACEOF
21515 exec 5>>config.log
21516 {
21517   echo
21518   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21519 ## Running $as_me. ##
21520 _ASBOX
21521   echo "$ac_log"
21522 } >&5
21523
21524 _ACEOF
21525 cat >>$CONFIG_STATUS <<_ACEOF
21526 #
21527 # INIT-COMMANDS
21528 #
21529 llvm_src="${LLVM_SRC}"
21530
21531 _ACEOF
21532
21533 cat >>$CONFIG_STATUS <<\_ACEOF
21534
21535 # Handling of arguments.
21536 for ac_config_target in $ac_config_targets
21537 do
21538   case $ac_config_target in
21539     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21540     "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21541     "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21542     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21543     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21544     "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21545     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21546     "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21547
21548   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21549 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21550    { (exit 1); exit 1; }; };;
21551   esac
21552 done
21553
21554
21555 # If the user did not use the arguments to specify the items to instantiate,
21556 # then the envvar interface is used.  Set only those that are not.
21557 # We use the long form for the default assignment because of an extremely
21558 # bizarre bug on SunOS 4.1.3.
21559 if $ac_need_defaults; then
21560   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21561   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21562 fi
21563
21564 # Have a temporary directory for convenience.  Make it in the build tree
21565 # simply because there is no reason against having it here, and in addition,
21566 # creating and moving files from /tmp can sometimes cause problems.
21567 # Hook for its removal unless debugging.
21568 # Note that there is a small window in which the directory will not be cleaned:
21569 # after its creation but before its name has been assigned to `$tmp'.
21570 $debug ||
21571 {
21572   tmp=
21573   trap 'exit_status=$?
21574   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21575 ' 0
21576   trap '{ (exit 1); exit 1; }' 1 2 13 15
21577 }
21578 # Create a (secure) tmp directory for tmp files.
21579
21580 {
21581   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21582   test -n "$tmp" && test -d "$tmp"
21583 }  ||
21584 {
21585   tmp=./conf$$-$RANDOM
21586   (umask 077 && mkdir "$tmp")
21587 } ||
21588 {
21589    echo "$me: cannot create a temporary directory in ." >&2
21590    { (exit 1); exit 1; }
21591 }
21592
21593 #
21594 # Set up the sed scripts for CONFIG_FILES section.
21595 #
21596
21597 # No need to generate the scripts if there are no CONFIG_FILES.
21598 # This happens for instance when ./config.status config.h
21599 if test -n "$CONFIG_FILES"; then
21600
21601 _ACEOF
21602
21603
21604
21605 ac_delim='%!_!# '
21606 for ac_last_try in false false false false false :; do
21607   cat >conf$$subs.sed <<_ACEOF
21608 SHELL!$SHELL$ac_delim
21609 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21610 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21611 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21612 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21613 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21614 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21615 exec_prefix!$exec_prefix$ac_delim
21616 prefix!$prefix$ac_delim
21617 program_transform_name!$program_transform_name$ac_delim
21618 bindir!$bindir$ac_delim
21619 sbindir!$sbindir$ac_delim
21620 libexecdir!$libexecdir$ac_delim
21621 datarootdir!$datarootdir$ac_delim
21622 datadir!$datadir$ac_delim
21623 sysconfdir!$sysconfdir$ac_delim
21624 sharedstatedir!$sharedstatedir$ac_delim
21625 localstatedir!$localstatedir$ac_delim
21626 includedir!$includedir$ac_delim
21627 oldincludedir!$oldincludedir$ac_delim
21628 docdir!$docdir$ac_delim
21629 infodir!$infodir$ac_delim
21630 htmldir!$htmldir$ac_delim
21631 dvidir!$dvidir$ac_delim
21632 pdfdir!$pdfdir$ac_delim
21633 psdir!$psdir$ac_delim
21634 libdir!$libdir$ac_delim
21635 localedir!$localedir$ac_delim
21636 mandir!$mandir$ac_delim
21637 DEFS!$DEFS$ac_delim
21638 ECHO_C!$ECHO_C$ac_delim
21639 ECHO_N!$ECHO_N$ac_delim
21640 ECHO_T!$ECHO_T$ac_delim
21641 LIBS!$LIBS$ac_delim
21642 build_alias!$build_alias$ac_delim
21643 host_alias!$host_alias$ac_delim
21644 target_alias!$target_alias$ac_delim
21645 LLVM_SRC!$LLVM_SRC$ac_delim
21646 LLVM_OBJ!$LLVM_OBJ$ac_delim
21647 LLVM_VERSION!$LLVM_VERSION$ac_delim
21648 CC!$CC$ac_delim
21649 CFLAGS!$CFLAGS$ac_delim
21650 LDFLAGS!$LDFLAGS$ac_delim
21651 CPPFLAGS!$CPPFLAGS$ac_delim
21652 ac_ct_CC!$ac_ct_CC$ac_delim
21653 EXEEXT!$EXEEXT$ac_delim
21654 OBJEXT!$OBJEXT$ac_delim
21655 CXX!$CXX$ac_delim
21656 CXXFLAGS!$CXXFLAGS$ac_delim
21657 ac_ct_CXX!$ac_ct_CXX$ac_delim
21658 CPP!$CPP$ac_delim
21659 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21660 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21661 subdirs!$subdirs$ac_delim
21662 build!$build$ac_delim
21663 build_cpu!$build_cpu$ac_delim
21664 build_vendor!$build_vendor$ac_delim
21665 build_os!$build_os$ac_delim
21666 host!$host$ac_delim
21667 host_cpu!$host_cpu$ac_delim
21668 host_vendor!$host_vendor$ac_delim
21669 host_os!$host_os$ac_delim
21670 target!$target$ac_delim
21671 target_cpu!$target_cpu$ac_delim
21672 target_vendor!$target_vendor$ac_delim
21673 target_os!$target_os$ac_delim
21674 OS!$OS$ac_delim
21675 HOST_OS!$HOST_OS$ac_delim
21676 TARGET_OS!$TARGET_OS$ac_delim
21677 LINKALL!$LINKALL$ac_delim
21678 NOLINKALL!$NOLINKALL$ac_delim
21679 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21680 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21681 ARCH!$ARCH$ac_delim
21682 ENDIAN!$ENDIAN$ac_delim
21683 GREP!$GREP$ac_delim
21684 EGREP!$EGREP$ac_delim
21685 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21686 BUILD_CC!$BUILD_CC$ac_delim
21687 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21688 BUILD_CXX!$BUILD_CXX$ac_delim
21689 CVSBUILD!$CVSBUILD$ac_delim
21690 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
21691 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
21692 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21693 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21694 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21695 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
21696 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21697 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21698 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21699 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21700 JIT!$JIT$ac_delim
21701 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21702 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21703 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21704 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21705 _ACEOF
21706
21707   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21708     break
21709   elif $ac_last_try; then
21710     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21711 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21712    { (exit 1); exit 1; }; }
21713   else
21714     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21715   fi
21716 done
21717
21718 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21719 if test -n "$ac_eof"; then
21720   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21721   ac_eof=`expr $ac_eof + 1`
21722 fi
21723
21724 cat >>$CONFIG_STATUS <<_ACEOF
21725 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21726 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21727 _ACEOF
21728 sed '
21729 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21730 s/^/s,@/; s/!/@,|#_!!_#|/
21731 :n
21732 t n
21733 s/'"$ac_delim"'$/,g/; t
21734 s/$/\\/; p
21735 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21736 ' >>$CONFIG_STATUS <conf$$subs.sed
21737 rm -f conf$$subs.sed
21738 cat >>$CONFIG_STATUS <<_ACEOF
21739 CEOF$ac_eof
21740 _ACEOF
21741
21742
21743 ac_delim='%!_!# '
21744 for ac_last_try in false false false false false :; do
21745   cat >conf$$subs.sed <<_ACEOF
21746 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21747 ENABLE_PIC!$ENABLE_PIC$ac_delim
21748 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21749 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21750 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21751 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21752 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21753 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21754 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21755 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21756 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21757 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21758 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21759 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21760 NM!$NM$ac_delim
21761 ifGNUmake!$ifGNUmake$ac_delim
21762 LN_S!$LN_S$ac_delim
21763 CMP!$CMP$ac_delim
21764 CP!$CP$ac_delim
21765 DATE!$DATE$ac_delim
21766 FIND!$FIND$ac_delim
21767 MKDIR!$MKDIR$ac_delim
21768 MV!$MV$ac_delim
21769 RANLIB!$RANLIB$ac_delim
21770 AR!$AR$ac_delim
21771 RM!$RM$ac_delim
21772 SED!$SED$ac_delim
21773 TAR!$TAR$ac_delim
21774 BINPWD!$BINPWD$ac_delim
21775 GRAPHVIZ!$GRAPHVIZ$ac_delim
21776 DOT!$DOT$ac_delim
21777 FDP!$FDP$ac_delim
21778 NEATO!$NEATO$ac_delim
21779 TWOPI!$TWOPI$ac_delim
21780 CIRCO!$CIRCO$ac_delim
21781 GV!$GV$ac_delim
21782 DOTTY!$DOTTY$ac_delim
21783 XDOT_PY!$XDOT_PY$ac_delim
21784 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21785 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21786 INSTALL_DATA!$INSTALL_DATA$ac_delim
21787 BZIP2!$BZIP2$ac_delim
21788 CAT!$CAT$ac_delim
21789 DOXYGEN!$DOXYGEN$ac_delim
21790 GROFF!$GROFF$ac_delim
21791 GZIPBIN!$GZIPBIN$ac_delim
21792 POD2HTML!$POD2HTML$ac_delim
21793 POD2MAN!$POD2MAN$ac_delim
21794 PDFROFF!$PDFROFF$ac_delim
21795 RUNTEST!$RUNTEST$ac_delim
21796 TCLSH!$TCLSH$ac_delim
21797 ZIP!$ZIP$ac_delim
21798 OCAMLC!$OCAMLC$ac_delim
21799 OCAMLOPT!$OCAMLOPT$ac_delim
21800 OCAMLDEP!$OCAMLDEP$ac_delim
21801 OCAMLDOC!$OCAMLDOC$ac_delim
21802 GAS!$GAS$ac_delim
21803 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21804 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21805 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21806 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21807 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21808 LIBADD_DL!$LIBADD_DL$ac_delim
21809 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21810 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21811 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
21812 USE_UDIS86!$USE_UDIS86$ac_delim
21813 USE_OPROFILE!$USE_OPROFILE$ac_delim
21814 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21815 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21816 MMAP_FILE!$MMAP_FILE$ac_delim
21817 SHLIBEXT!$SHLIBEXT$ac_delim
21818 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21819 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21820 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21821 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21822 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21823 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21824 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21825 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21826 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21827 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21828 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21829 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21830 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21831 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21832 RPATH!$RPATH$ac_delim
21833 RDYNAMIC!$RDYNAMIC$ac_delim
21834 LIBOBJS!$LIBOBJS$ac_delim
21835 LTLIBOBJS!$LTLIBOBJS$ac_delim
21836 _ACEOF
21837
21838   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
21839     break
21840   elif $ac_last_try; then
21841     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21842 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21843    { (exit 1); exit 1; }; }
21844   else
21845     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21846   fi
21847 done
21848
21849 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21850 if test -n "$ac_eof"; then
21851   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21852   ac_eof=`expr $ac_eof + 1`
21853 fi
21854
21855 cat >>$CONFIG_STATUS <<_ACEOF
21856 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21857 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21858 _ACEOF
21859 sed '
21860 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21861 s/^/s,@/; s/!/@,|#_!!_#|/
21862 :n
21863 t n
21864 s/'"$ac_delim"'$/,g/; t
21865 s/$/\\/; p
21866 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21867 ' >>$CONFIG_STATUS <conf$$subs.sed
21868 rm -f conf$$subs.sed
21869 cat >>$CONFIG_STATUS <<_ACEOF
21870 :end
21871 s/|#_!!_#|//g
21872 CEOF$ac_eof
21873 _ACEOF
21874
21875
21876 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21877 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21878 # trailing colons and then remove the whole line if VPATH becomes empty
21879 # (actually we leave an empty line to preserve line numbers).
21880 if test "x$srcdir" = x.; then
21881   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21882 s/:*\$(srcdir):*/:/
21883 s/:*\${srcdir}:*/:/
21884 s/:*@srcdir@:*/:/
21885 s/^\([^=]*=[     ]*\):*/\1/
21886 s/:*$//
21887 s/^[^=]*=[       ]*$//
21888 }'
21889 fi
21890
21891 cat >>$CONFIG_STATUS <<\_ACEOF
21892 fi # test -n "$CONFIG_FILES"
21893
21894
21895 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
21896 do
21897   case $ac_tag in
21898   :[FHLC]) ac_mode=$ac_tag; continue;;
21899   esac
21900   case $ac_mode$ac_tag in
21901   :[FHL]*:*);;
21902   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21903 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21904    { (exit 1); exit 1; }; };;
21905   :[FH]-) ac_tag=-:-;;
21906   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21907   esac
21908   ac_save_IFS=$IFS
21909   IFS=:
21910   set x $ac_tag
21911   IFS=$ac_save_IFS
21912   shift
21913   ac_file=$1
21914   shift
21915
21916   case $ac_mode in
21917   :L) ac_source=$1;;
21918   :[FH])
21919     ac_file_inputs=
21920     for ac_f
21921     do
21922       case $ac_f in
21923       -) ac_f="$tmp/stdin";;
21924       *) # Look for the file first in the build tree, then in the source tree
21925          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21926          # because $ac_f cannot contain `:'.
21927          test -f "$ac_f" ||
21928            case $ac_f in
21929            [\\/$]*) false;;
21930            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21931            esac ||
21932            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21933 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21934    { (exit 1); exit 1; }; };;
21935       esac
21936       ac_file_inputs="$ac_file_inputs $ac_f"
21937     done
21938
21939     # Let's still pretend it is `configure' which instantiates (i.e., don't
21940     # use $as_me), people would be surprised to read:
21941     #    /* config.h.  Generated by config.status.  */
21942     configure_input="Generated from "`IFS=:
21943           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21944     if test x"$ac_file" != x-; then
21945       configure_input="$ac_file.  $configure_input"
21946       { echo "$as_me:$LINENO: creating $ac_file" >&5
21947 echo "$as_me: creating $ac_file" >&6;}
21948     fi
21949
21950     case $ac_tag in
21951     *:-:* | *:-) cat >"$tmp/stdin";;
21952     esac
21953     ;;
21954   esac
21955
21956   ac_dir=`$as_dirname -- "$ac_file" ||
21957 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21958          X"$ac_file" : 'X\(//\)[^/]' \| \
21959          X"$ac_file" : 'X\(//\)$' \| \
21960          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21961 echo X"$ac_file" |
21962     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21963             s//\1/
21964             q
21965           }
21966           /^X\(\/\/\)[^/].*/{
21967             s//\1/
21968             q
21969           }
21970           /^X\(\/\/\)$/{
21971             s//\1/
21972             q
21973           }
21974           /^X\(\/\).*/{
21975             s//\1/
21976             q
21977           }
21978           s/.*/./; q'`
21979   { as_dir="$ac_dir"
21980   case $as_dir in #(
21981   -*) as_dir=./$as_dir;;
21982   esac
21983   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21984     as_dirs=
21985     while :; do
21986       case $as_dir in #(
21987       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21988       *) as_qdir=$as_dir;;
21989       esac
21990       as_dirs="'$as_qdir' $as_dirs"
21991       as_dir=`$as_dirname -- "$as_dir" ||
21992 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21993          X"$as_dir" : 'X\(//\)[^/]' \| \
21994          X"$as_dir" : 'X\(//\)$' \| \
21995          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21996 echo X"$as_dir" |
21997     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21998             s//\1/
21999             q
22000           }
22001           /^X\(\/\/\)[^/].*/{
22002             s//\1/
22003             q
22004           }
22005           /^X\(\/\/\)$/{
22006             s//\1/
22007             q
22008           }
22009           /^X\(\/\).*/{
22010             s//\1/
22011             q
22012           }
22013           s/.*/./; q'`
22014       test -d "$as_dir" && break
22015     done
22016     test -z "$as_dirs" || eval "mkdir $as_dirs"
22017   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22018 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22019    { (exit 1); exit 1; }; }; }
22020   ac_builddir=.
22021
22022 case "$ac_dir" in
22023 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22024 *)
22025   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22026   # A ".." for each directory in $ac_dir_suffix.
22027   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22028   case $ac_top_builddir_sub in
22029   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22030   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22031   esac ;;
22032 esac
22033 ac_abs_top_builddir=$ac_pwd
22034 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22035 # for backward compatibility:
22036 ac_top_builddir=$ac_top_build_prefix
22037
22038 case $srcdir in
22039   .)  # We are building in place.
22040     ac_srcdir=.
22041     ac_top_srcdir=$ac_top_builddir_sub
22042     ac_abs_top_srcdir=$ac_pwd ;;
22043   [\\/]* | ?:[\\/]* )  # Absolute name.
22044     ac_srcdir=$srcdir$ac_dir_suffix;
22045     ac_top_srcdir=$srcdir
22046     ac_abs_top_srcdir=$srcdir ;;
22047   *) # Relative name.
22048     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22049     ac_top_srcdir=$ac_top_build_prefix$srcdir
22050     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22051 esac
22052 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22053
22054
22055   case $ac_mode in
22056   :F)
22057   #
22058   # CONFIG_FILE
22059   #
22060
22061   case $INSTALL in
22062   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22063   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22064   esac
22065 _ACEOF
22066
22067 cat >>$CONFIG_STATUS <<\_ACEOF
22068 # If the template does not know about datarootdir, expand it.
22069 # FIXME: This hack should be removed a few years after 2.60.
22070 ac_datarootdir_hack=; ac_datarootdir_seen=
22071
22072 case `sed -n '/datarootdir/ {
22073   p
22074   q
22075 }
22076 /@datadir@/p
22077 /@docdir@/p
22078 /@infodir@/p
22079 /@localedir@/p
22080 /@mandir@/p
22081 ' $ac_file_inputs` in
22082 *datarootdir*) ac_datarootdir_seen=yes;;
22083 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22084   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22085 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22086 _ACEOF
22087 cat >>$CONFIG_STATUS <<_ACEOF
22088   ac_datarootdir_hack='
22089   s&@datadir@&$datadir&g
22090   s&@docdir@&$docdir&g
22091   s&@infodir@&$infodir&g
22092   s&@localedir@&$localedir&g
22093   s&@mandir@&$mandir&g
22094     s&\\\${datarootdir}&$datarootdir&g' ;;
22095 esac
22096 _ACEOF
22097
22098 # Neutralize VPATH when `$srcdir' = `.'.
22099 # Shell code in configure.ac might set extrasub.
22100 # FIXME: do we really want to maintain this feature?
22101 cat >>$CONFIG_STATUS <<_ACEOF
22102   sed "$ac_vpsub
22103 $extrasub
22104 _ACEOF
22105 cat >>$CONFIG_STATUS <<\_ACEOF
22106 :t
22107 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22108 s&@configure_input@&$configure_input&;t t
22109 s&@top_builddir@&$ac_top_builddir_sub&;t t
22110 s&@srcdir@&$ac_srcdir&;t t
22111 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22112 s&@top_srcdir@&$ac_top_srcdir&;t t
22113 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22114 s&@builddir@&$ac_builddir&;t t
22115 s&@abs_builddir@&$ac_abs_builddir&;t t
22116 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22117 s&@INSTALL@&$ac_INSTALL&;t t
22118 $ac_datarootdir_hack
22119 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22120
22121 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22122   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22123   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22124   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22125 which seems to be undefined.  Please make sure it is defined." >&5
22126 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22127 which seems to be undefined.  Please make sure it is defined." >&2;}
22128
22129   rm -f "$tmp/stdin"
22130   case $ac_file in
22131   -) cat "$tmp/out"; rm -f "$tmp/out";;
22132   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22133   esac
22134  ;;
22135
22136
22137   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22138 echo "$as_me: executing $ac_file commands" >&6;}
22139  ;;
22140   esac
22141
22142
22143   case $ac_file$ac_mode in
22144     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22145    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22146     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22147    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22148     "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22149    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22150     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22151    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22152     "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22153    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22154
22155   esac
22156 done # for ac_tag
22157
22158
22159 { (exit 0); exit 0; }
22160 _ACEOF
22161 chmod +x $CONFIG_STATUS
22162 ac_clean_files=$ac_clean_files_save
22163
22164
22165 # configure is writing to config.log, and then calls config.status.
22166 # config.status does its own redirection, appending to config.log.
22167 # Unfortunately, on DOS this fails, as config.log is still kept open
22168 # by configure, so config.status won't be able to write to it; its
22169 # output is simply discarded.  So we exec the FD to /dev/null,
22170 # effectively closing config.log, so it can be properly (re)opened and
22171 # appended to by config.status.  When coming back to configure, we
22172 # need to make the FD available again.
22173 if test "$no_create" != yes; then
22174   ac_cs_success=:
22175   ac_config_status_args=
22176   test "$silent" = yes &&
22177     ac_config_status_args="$ac_config_status_args --quiet"
22178   exec 5>/dev/null
22179   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22180   exec 5>>config.log
22181   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22182   # would make configure fail if this is the last instruction.
22183   $ac_cs_success || { (exit 1); exit 1; }
22184 fi
22185
22186 #
22187 # CONFIG_SUBDIRS section.
22188 #
22189 if test "$no_recursion" != yes; then
22190
22191   # Remove --cache-file and --srcdir arguments so they do not pile up.
22192   ac_sub_configure_args=
22193   ac_prev=
22194   eval "set x $ac_configure_args"
22195   shift
22196   for ac_arg
22197   do
22198     if test -n "$ac_prev"; then
22199       ac_prev=
22200       continue
22201     fi
22202     case $ac_arg in
22203     -cache-file | --cache-file | --cache-fil | --cache-fi \
22204     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22205       ac_prev=cache_file ;;
22206     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22207     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22208     | --c=*)
22209       ;;
22210     --config-cache | -C)
22211       ;;
22212     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22213       ac_prev=srcdir ;;
22214     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22215       ;;
22216     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22217       ac_prev=prefix ;;
22218     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22219       ;;
22220     *)
22221       case $ac_arg in
22222       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22223       esac
22224       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22225     esac
22226   done
22227
22228   # Always prepend --prefix to ensure using the same prefix
22229   # in subdir configurations.
22230   ac_arg="--prefix=$prefix"
22231   case $ac_arg in
22232   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22233   esac
22234   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22235
22236   ac_popdir=`pwd`
22237   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22238
22239     # Do not complain, so a configure script can configure whichever
22240     # parts of a large source tree are present.
22241     test -d "$srcdir/$ac_dir" || continue
22242
22243     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22244     echo "$as_me:$LINENO: $ac_msg" >&5
22245     echo "$ac_msg" >&6
22246     { as_dir="$ac_dir"
22247   case $as_dir in #(
22248   -*) as_dir=./$as_dir;;
22249   esac
22250   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22251     as_dirs=
22252     while :; do
22253       case $as_dir in #(
22254       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22255       *) as_qdir=$as_dir;;
22256       esac
22257       as_dirs="'$as_qdir' $as_dirs"
22258       as_dir=`$as_dirname -- "$as_dir" ||
22259 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22260          X"$as_dir" : 'X\(//\)[^/]' \| \
22261          X"$as_dir" : 'X\(//\)$' \| \
22262          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22263 echo X"$as_dir" |
22264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22265             s//\1/
22266             q
22267           }
22268           /^X\(\/\/\)[^/].*/{
22269             s//\1/
22270             q
22271           }
22272           /^X\(\/\/\)$/{
22273             s//\1/
22274             q
22275           }
22276           /^X\(\/\).*/{
22277             s//\1/
22278             q
22279           }
22280           s/.*/./; q'`
22281       test -d "$as_dir" && break
22282     done
22283     test -z "$as_dirs" || eval "mkdir $as_dirs"
22284   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22285 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22286    { (exit 1); exit 1; }; }; }
22287     ac_builddir=.
22288
22289 case "$ac_dir" in
22290 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22291 *)
22292   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22293   # A ".." for each directory in $ac_dir_suffix.
22294   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22295   case $ac_top_builddir_sub in
22296   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22297   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22298   esac ;;
22299 esac
22300 ac_abs_top_builddir=$ac_pwd
22301 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22302 # for backward compatibility:
22303 ac_top_builddir=$ac_top_build_prefix
22304
22305 case $srcdir in
22306   .)  # We are building in place.
22307     ac_srcdir=.
22308     ac_top_srcdir=$ac_top_builddir_sub
22309     ac_abs_top_srcdir=$ac_pwd ;;
22310   [\\/]* | ?:[\\/]* )  # Absolute name.
22311     ac_srcdir=$srcdir$ac_dir_suffix;
22312     ac_top_srcdir=$srcdir
22313     ac_abs_top_srcdir=$srcdir ;;
22314   *) # Relative name.
22315     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22316     ac_top_srcdir=$ac_top_build_prefix$srcdir
22317     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22318 esac
22319 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22320
22321
22322     cd "$ac_dir"
22323
22324     # Check for guested configure; otherwise get Cygnus style configure.
22325     if test -f "$ac_srcdir/configure.gnu"; then
22326       ac_sub_configure=$ac_srcdir/configure.gnu
22327     elif test -f "$ac_srcdir/configure"; then
22328       ac_sub_configure=$ac_srcdir/configure
22329     elif test -f "$ac_srcdir/configure.in"; then
22330       # This should be Cygnus configure.
22331       ac_sub_configure=$ac_aux_dir/configure
22332     else
22333       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22334 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22335       ac_sub_configure=
22336     fi
22337
22338     # The recursion is here.
22339     if test -n "$ac_sub_configure"; then
22340       # Make the cache file name correct relative to the subdirectory.
22341       case $cache_file in
22342       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22343       *) # Relative name.
22344         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22345       esac
22346
22347       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22348 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22349       # The eval makes quoting arguments work.
22350       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22351            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22352         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22353 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22354    { (exit 1); exit 1; }; }
22355     fi
22356
22357     cd "$ac_popdir"
22358   done
22359 fi
22360