bc04c9628de7889d6fb6b4a0d91f8886b0956c1f
[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 LLVM_ENABLE_ZLIB
702 ENABLE_PIC
703 ENABLE_SHARED
704 ENABLE_EMBED_STDCXX
705 ENABLE_TIMESTAMPS
706 TARGETS_TO_BUILD
707 LLVM_ENUM_TARGETS
708 LLVM_ENUM_ASM_PRINTERS
709 LLVM_ENUM_ASM_PARSERS
710 LLVM_ENUM_DISASSEMBLERS
711 OPTIMIZE_OPTION
712 EXTRA_OPTIONS
713 EXTRA_LD_OPTIONS
714 BINUTILS_INCDIR
715 NM
716 ifGNUmake
717 LN_S
718 CMP
719 CP
720 DATE
721 FIND
722 MKDIR
723 MV
724 RANLIB
725 AR
726 RM
727 SED
728 TAR
729 BINPWD
730 GRAPHVIZ
731 DOT
732 FDP
733 NEATO
734 TWOPI
735 CIRCO
736 GV
737 DOTTY
738 XDOT_PY
739 INSTALL_PROGRAM
740 INSTALL_SCRIPT
741 INSTALL_DATA
742 BZIP2
743 CAT
744 DOXYGEN
745 GROFF
746 GZIPBIN
747 POD2HTML
748 POD2MAN
749 PDFROFF
750 RUNTEST
751 TCLSH
752 ZIP
753 OCAMLC
754 OCAMLOPT
755 OCAMLDEP
756 OCAMLDOC
757 GAS
758 HAVE_LINK_VERSION_SCRIPT
759 INSTALL_LTDL_TRUE
760 INSTALL_LTDL_FALSE
761 CONVENIENCE_LTDL_TRUE
762 CONVENIENCE_LTDL_FALSE
763 LIBADD_DL
764 NO_VARIADIC_MACROS
765 NO_MISSING_FIELD_INITIALIZERS
766 COVERED_SWITCH_DEFAULT
767 USE_UDIS86
768 USE_OPROFILE
769 HAVE_PTHREAD
770 HAVE_LIBZ
771 HUGE_VAL_SANITY
772 MMAP_FILE
773 SHLIBEXT
774 SHLIBPATH_VAR
775 LLVM_PREFIX
776 LLVM_BINDIR
777 LLVM_DATADIR
778 LLVM_DOCSDIR
779 LLVM_ETCDIR
780 LLVM_INCLUDEDIR
781 LLVM_INFODIR
782 LLVM_MANDIR
783 LLVM_CONFIGTIME
784 BINDINGS_TO_BUILD
785 ALL_BINDINGS
786 OCAML_LIBDIR
787 ENABLE_VISIBILITY_INLINES_HIDDEN
788 RPATH
789 RDYNAMIC
790 LIBOBJS
791 LTLIBOBJS'
792 ac_subst_files=''
793       ac_precious_vars='build_alias
794 host_alias
795 target_alias
796 CC
797 CFLAGS
798 LDFLAGS
799 CPPFLAGS
800 CXX
801 CXXFLAGS
802 CCC
803 CPP'
804 ac_subdirs_all='tools/polly'
805
806 # Initialize some variables set by options.
807 ac_init_help=
808 ac_init_version=false
809 # The variables have the same names as the options, with
810 # dashes changed to underlines.
811 cache_file=/dev/null
812 exec_prefix=NONE
813 no_create=
814 no_recursion=
815 prefix=NONE
816 program_prefix=NONE
817 program_suffix=NONE
818 program_transform_name=s,x,x,
819 silent=
820 site=
821 srcdir=
822 verbose=
823 x_includes=NONE
824 x_libraries=NONE
825
826 # Installation directory options.
827 # These are left unexpanded so users can "make install exec_prefix=/foo"
828 # and all the variables that are supposed to be based on exec_prefix
829 # by default will actually change.
830 # Use braces instead of parens because sh, perl, etc. also accept them.
831 # (The list follows the same order as the GNU Coding Standards.)
832 bindir='${exec_prefix}/bin'
833 sbindir='${exec_prefix}/sbin'
834 libexecdir='${exec_prefix}/libexec'
835 datarootdir='${prefix}/share'
836 datadir='${datarootdir}'
837 sysconfdir='${prefix}/etc'
838 sharedstatedir='${prefix}/com'
839 localstatedir='${prefix}/var'
840 includedir='${prefix}/include'
841 oldincludedir='/usr/include'
842 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
843 infodir='${datarootdir}/info'
844 htmldir='${docdir}'
845 dvidir='${docdir}'
846 pdfdir='${docdir}'
847 psdir='${docdir}'
848 libdir='${exec_prefix}/lib'
849 localedir='${datarootdir}/locale'
850 mandir='${datarootdir}/man'
851
852 ac_prev=
853 ac_dashdash=
854 for ac_option
855 do
856   # If the previous option needs an argument, assign it.
857   if test -n "$ac_prev"; then
858     eval $ac_prev=\$ac_option
859     ac_prev=
860     continue
861   fi
862
863   case $ac_option in
864   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
865   *)    ac_optarg=yes ;;
866   esac
867
868   # Accept the important Cygnus configure options, so we can diagnose typos.
869
870   case $ac_dashdash$ac_option in
871   --)
872     ac_dashdash=yes ;;
873
874   -bindir | --bindir | --bindi | --bind | --bin | --bi)
875     ac_prev=bindir ;;
876   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877     bindir=$ac_optarg ;;
878
879   -build | --build | --buil | --bui | --bu)
880     ac_prev=build_alias ;;
881   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882     build_alias=$ac_optarg ;;
883
884   -cache-file | --cache-file | --cache-fil | --cache-fi \
885   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886     ac_prev=cache_file ;;
887   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889     cache_file=$ac_optarg ;;
890
891   --config-cache | -C)
892     cache_file=config.cache ;;
893
894   -datadir | --datadir | --datadi | --datad)
895     ac_prev=datadir ;;
896   -datadir=* | --datadir=* | --datadi=* | --datad=*)
897     datadir=$ac_optarg ;;
898
899   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900   | --dataroo | --dataro | --datar)
901     ac_prev=datarootdir ;;
902   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904     datarootdir=$ac_optarg ;;
905
906   -disable-* | --disable-*)
907     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908     # Reject names that are not valid shell variable names.
909     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
910       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
911    { (exit 1); exit 1; }; }
912     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
913     eval enable_$ac_feature=no ;;
914
915   -docdir | --docdir | --docdi | --doc | --do)
916     ac_prev=docdir ;;
917   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918     docdir=$ac_optarg ;;
919
920   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921     ac_prev=dvidir ;;
922   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923     dvidir=$ac_optarg ;;
924
925   -enable-* | --enable-*)
926     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927     # Reject names that are not valid shell variable names.
928     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
929       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
930    { (exit 1); exit 1; }; }
931     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
932     eval enable_$ac_feature=\$ac_optarg ;;
933
934   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936   | --exec | --exe | --ex)
937     ac_prev=exec_prefix ;;
938   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940   | --exec=* | --exe=* | --ex=*)
941     exec_prefix=$ac_optarg ;;
942
943   -gas | --gas | --ga | --g)
944     # Obsolete; use --with-gas.
945     with_gas=yes ;;
946
947   -help | --help | --hel | --he | -h)
948     ac_init_help=long ;;
949   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950     ac_init_help=recursive ;;
951   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952     ac_init_help=short ;;
953
954   -host | --host | --hos | --ho)
955     ac_prev=host_alias ;;
956   -host=* | --host=* | --hos=* | --ho=*)
957     host_alias=$ac_optarg ;;
958
959   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960     ac_prev=htmldir ;;
961   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962   | --ht=*)
963     htmldir=$ac_optarg ;;
964
965   -includedir | --includedir | --includedi | --included | --include \
966   | --includ | --inclu | --incl | --inc)
967     ac_prev=includedir ;;
968   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969   | --includ=* | --inclu=* | --incl=* | --inc=*)
970     includedir=$ac_optarg ;;
971
972   -infodir | --infodir | --infodi | --infod | --info | --inf)
973     ac_prev=infodir ;;
974   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975     infodir=$ac_optarg ;;
976
977   -libdir | --libdir | --libdi | --libd)
978     ac_prev=libdir ;;
979   -libdir=* | --libdir=* | --libdi=* | --libd=*)
980     libdir=$ac_optarg ;;
981
982   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983   | --libexe | --libex | --libe)
984     ac_prev=libexecdir ;;
985   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986   | --libexe=* | --libex=* | --libe=*)
987     libexecdir=$ac_optarg ;;
988
989   -localedir | --localedir | --localedi | --localed | --locale)
990     ac_prev=localedir ;;
991   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992     localedir=$ac_optarg ;;
993
994   -localstatedir | --localstatedir | --localstatedi | --localstated \
995   | --localstate | --localstat | --localsta | --localst | --locals)
996     ac_prev=localstatedir ;;
997   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999     localstatedir=$ac_optarg ;;
1000
1001   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002     ac_prev=mandir ;;
1003   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004     mandir=$ac_optarg ;;
1005
1006   -nfp | --nfp | --nf)
1007     # Obsolete; use --without-fp.
1008     with_fp=no ;;
1009
1010   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011   | --no-cr | --no-c | -n)
1012     no_create=yes ;;
1013
1014   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016     no_recursion=yes ;;
1017
1018   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020   | --oldin | --oldi | --old | --ol | --o)
1021     ac_prev=oldincludedir ;;
1022   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025     oldincludedir=$ac_optarg ;;
1026
1027   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028     ac_prev=prefix ;;
1029   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030     prefix=$ac_optarg ;;
1031
1032   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033   | --program-pre | --program-pr | --program-p)
1034     ac_prev=program_prefix ;;
1035   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037     program_prefix=$ac_optarg ;;
1038
1039   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040   | --program-suf | --program-su | --program-s)
1041     ac_prev=program_suffix ;;
1042   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044     program_suffix=$ac_optarg ;;
1045
1046   -program-transform-name | --program-transform-name \
1047   | --program-transform-nam | --program-transform-na \
1048   | --program-transform-n | --program-transform- \
1049   | --program-transform | --program-transfor \
1050   | --program-transfo | --program-transf \
1051   | --program-trans | --program-tran \
1052   | --progr-tra | --program-tr | --program-t)
1053     ac_prev=program_transform_name ;;
1054   -program-transform-name=* | --program-transform-name=* \
1055   | --program-transform-nam=* | --program-transform-na=* \
1056   | --program-transform-n=* | --program-transform-=* \
1057   | --program-transform=* | --program-transfor=* \
1058   | --program-transfo=* | --program-transf=* \
1059   | --program-trans=* | --program-tran=* \
1060   | --progr-tra=* | --program-tr=* | --program-t=*)
1061     program_transform_name=$ac_optarg ;;
1062
1063   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064     ac_prev=pdfdir ;;
1065   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066     pdfdir=$ac_optarg ;;
1067
1068   -psdir | --psdir | --psdi | --psd | --ps)
1069     ac_prev=psdir ;;
1070   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071     psdir=$ac_optarg ;;
1072
1073   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074   | -silent | --silent | --silen | --sile | --sil)
1075     silent=yes ;;
1076
1077   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078     ac_prev=sbindir ;;
1079   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080   | --sbi=* | --sb=*)
1081     sbindir=$ac_optarg ;;
1082
1083   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085   | --sharedst | --shareds | --shared | --share | --shar \
1086   | --sha | --sh)
1087     ac_prev=sharedstatedir ;;
1088   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091   | --sha=* | --sh=*)
1092     sharedstatedir=$ac_optarg ;;
1093
1094   -site | --site | --sit)
1095     ac_prev=site ;;
1096   -site=* | --site=* | --sit=*)
1097     site=$ac_optarg ;;
1098
1099   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100     ac_prev=srcdir ;;
1101   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102     srcdir=$ac_optarg ;;
1103
1104   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105   | --syscon | --sysco | --sysc | --sys | --sy)
1106     ac_prev=sysconfdir ;;
1107   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109     sysconfdir=$ac_optarg ;;
1110
1111   -target | --target | --targe | --targ | --tar | --ta | --t)
1112     ac_prev=target_alias ;;
1113   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114     target_alias=$ac_optarg ;;
1115
1116   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117     verbose=yes ;;
1118
1119   -version | --version | --versio | --versi | --vers | -V)
1120     ac_init_version=: ;;
1121
1122   -with-* | --with-*)
1123     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124     # Reject names that are not valid shell variable names.
1125     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1126       { echo "$as_me: error: invalid package name: $ac_package" >&2
1127    { (exit 1); exit 1; }; }
1128     ac_package=`echo $ac_package| sed 's/-/_/g'`
1129     eval with_$ac_package=\$ac_optarg ;;
1130
1131   -without-* | --without-*)
1132     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133     # Reject names that are not valid shell variable names.
1134     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1135       { echo "$as_me: error: invalid package name: $ac_package" >&2
1136    { (exit 1); exit 1; }; }
1137     ac_package=`echo $ac_package | sed 's/-/_/g'`
1138     eval with_$ac_package=no ;;
1139
1140   --x)
1141     # Obsolete; use --with-x.
1142     with_x=yes ;;
1143
1144   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1145   | --x-incl | --x-inc | --x-in | --x-i)
1146     ac_prev=x_includes ;;
1147   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1148   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1149     x_includes=$ac_optarg ;;
1150
1151   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1152   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1153     ac_prev=x_libraries ;;
1154   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1155   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1156     x_libraries=$ac_optarg ;;
1157
1158   -*) { echo "$as_me: error: unrecognized option: $ac_option
1159 Try \`$0 --help' for more information." >&2
1160    { (exit 1); exit 1; }; }
1161     ;;
1162
1163   *=*)
1164     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1165     # Reject names that are not valid shell variable names.
1166     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1167       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1168    { (exit 1); exit 1; }; }
1169     eval $ac_envvar=\$ac_optarg
1170     export $ac_envvar ;;
1171
1172   *)
1173     # FIXME: should be removed in autoconf 3.0.
1174     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1175     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1176       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1177     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1178     ;;
1179
1180   esac
1181 done
1182
1183 if test -n "$ac_prev"; then
1184   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1185   { echo "$as_me: error: missing argument to $ac_option" >&2
1186    { (exit 1); exit 1; }; }
1187 fi
1188
1189 # Be sure to have absolute directory names.
1190 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191                 datadir sysconfdir sharedstatedir localstatedir includedir \
1192                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193                 libdir localedir mandir
1194 do
1195   eval ac_val=\$$ac_var
1196   case $ac_val in
1197     [\\/$]* | ?:[\\/]* )  continue;;
1198     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1199   esac
1200   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1201    { (exit 1); exit 1; }; }
1202 done
1203
1204 # There might be people who depend on the old broken behavior: `$host'
1205 # used to hold the argument of --host etc.
1206 # FIXME: To remove some day.
1207 build=$build_alias
1208 host=$host_alias
1209 target=$target_alias
1210
1211 # FIXME: To remove some day.
1212 if test "x$host_alias" != x; then
1213   if test "x$build_alias" = x; then
1214     cross_compiling=maybe
1215     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1216     If a cross compiler is detected then cross compile mode will be used." >&2
1217   elif test "x$build_alias" != "x$host_alias"; then
1218     cross_compiling=yes
1219   fi
1220 fi
1221
1222 ac_tool_prefix=
1223 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1224
1225 test "$silent" = yes && exec 6>/dev/null
1226
1227
1228 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1229 ac_ls_di=`ls -di .` &&
1230 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1231   { echo "$as_me: error: Working directory cannot be determined" >&2
1232    { (exit 1); exit 1; }; }
1233 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1234   { echo "$as_me: error: pwd does not report name of working directory" >&2
1235    { (exit 1); exit 1; }; }
1236
1237
1238 # Find the source files, if location was not specified.
1239 if test -z "$srcdir"; then
1240   ac_srcdir_defaulted=yes
1241   # Try the directory containing this script, then the parent directory.
1242   ac_confdir=`$as_dirname -- "$0" ||
1243 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244          X"$0" : 'X\(//\)[^/]' \| \
1245          X"$0" : 'X\(//\)$' \| \
1246          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1247 echo X"$0" |
1248     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249             s//\1/
1250             q
1251           }
1252           /^X\(\/\/\)[^/].*/{
1253             s//\1/
1254             q
1255           }
1256           /^X\(\/\/\)$/{
1257             s//\1/
1258             q
1259           }
1260           /^X\(\/\).*/{
1261             s//\1/
1262             q
1263           }
1264           s/.*/./; q'`
1265   srcdir=$ac_confdir
1266   if test ! -r "$srcdir/$ac_unique_file"; then
1267     srcdir=..
1268   fi
1269 else
1270   ac_srcdir_defaulted=no
1271 fi
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1275    { (exit 1); exit 1; }; }
1276 fi
1277 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1278 ac_abs_confdir=`(
1279         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1280    { (exit 1); exit 1; }; }
1281         pwd)`
1282 # When building in place, set srcdir=.
1283 if test "$ac_abs_confdir" = "$ac_pwd"; then
1284   srcdir=.
1285 fi
1286 # Remove unnecessary trailing slashes from srcdir.
1287 # Double slashes in file names in object file debugging info
1288 # mess up M-x gdb in Emacs.
1289 case $srcdir in
1290 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291 esac
1292 for ac_var in $ac_precious_vars; do
1293   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1294   eval ac_env_${ac_var}_value=\$${ac_var}
1295   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1296   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297 done
1298
1299 #
1300 # Report the --help message.
1301 #
1302 if test "$ac_init_help" = "long"; then
1303   # Omit some internal or obsolete options to make the list less imposing.
1304   # This message is too long to be a string in the A/UX 3.1 sh.
1305   cat <<_ACEOF
1306 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1307
1308 Usage: $0 [OPTION]... [VAR=VALUE]...
1309
1310 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1311 VAR=VALUE.  See below for descriptions of some of the useful variables.
1312
1313 Defaults for the options are specified in brackets.
1314
1315 Configuration:
1316   -h, --help              display this help and exit
1317       --help=short        display options specific to this package
1318       --help=recursive    display the short help of all the included packages
1319   -V, --version           display version information and exit
1320   -q, --quiet, --silent   do not print \`checking...' messages
1321       --cache-file=FILE   cache test results in FILE [disabled]
1322   -C, --config-cache      alias for \`--cache-file=config.cache'
1323   -n, --no-create         do not create output files
1324       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1325
1326 Installation directories:
1327   --prefix=PREFIX         install architecture-independent files in PREFIX
1328                           [$ac_default_prefix]
1329   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1330                           [PREFIX]
1331
1332 By default, \`make install' will install all the files in
1333 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1334 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1335 for instance \`--prefix=\$HOME'.
1336
1337 For better control, use the options below.
1338
1339 Fine tuning of the installation directories:
1340   --bindir=DIR           user executables [EPREFIX/bin]
1341   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1342   --libexecdir=DIR       program executables [EPREFIX/libexec]
1343   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1344   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1345   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1346   --libdir=DIR           object code libraries [EPREFIX/lib]
1347   --includedir=DIR       C header files [PREFIX/include]
1348   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1349   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1350   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1351   --infodir=DIR          info documentation [DATAROOTDIR/info]
1352   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1353   --mandir=DIR           man documentation [DATAROOTDIR/man]
1354   --docdir=DIR           documentation root [DATAROOTDIR/doc/--sample--]
1355   --htmldir=DIR          html documentation [DOCDIR]
1356   --dvidir=DIR           dvi documentation [DOCDIR]
1357   --pdfdir=DIR           pdf documentation [DOCDIR]
1358   --psdir=DIR            ps documentation [DOCDIR]
1359 _ACEOF
1360
1361   cat <<\_ACEOF
1362
1363 System types:
1364   --build=BUILD     configure for building on BUILD [guessed]
1365   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1366   --target=TARGET   configure for building compilers for TARGET [HOST]
1367 _ACEOF
1368 fi
1369
1370 if test -n "$ac_init_help"; then
1371   case $ac_init_help in
1372      short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1373    esac
1374   cat <<\_ACEOF
1375
1376 Optional Features:
1377   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1378   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1379   --enable-polly          Use polly if available (default is YES)
1380   --enable-libcpp         Use libc++ if available (default is NO)
1381   --enable-cxx11          Use c++11 if available (default is NO)
1382   --enable-optimized      Compile with optimizations enabled (default is NO)
1383   --enable-profiling      Compile with profiling enabled (default is NO)
1384   --enable-assertions     Compile with assertion checks enabled (default is
1385                           YES)
1386   --enable-werror         Compile with -Werror enabled (default is NO)
1387   --enable-expensive-checks
1388                           Compile with expensive debug checks enabled (default
1389                           is NO)
1390   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1391                           NO)
1392   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1393                           optimization is on and YES if it's off)
1394   --enable-jit            Enable Just In Time Compiling (default is YES)
1395   --enable-docs           Build documents (default is YES)
1396   --enable-doxygen        Build doxygen documentation (default is NO)
1397   --enable-threads        Use threads if available (default is YES)
1398   --enable-pthreads       Use pthreads if available (default is YES)
1399   --enable-zlib           Use zlib for compression/decompression if available
1400                           (default is YES)
1401   --enable-pic            Build LLVM with Position Independent Code (default
1402                           is YES)
1403   --enable-shared         Build a shared library and link tools against it
1404                           (default is NO)
1405   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1406                           Win32 DLL (default is YES)
1407   --enable-timestamps     Enable embedding timestamp information in build
1408                           (default is YES)
1409   --enable-targets        Build specific host targets: all or
1410                           target1,target2,... Valid targets are: host, x86,
1411                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1412                           xcore, msp430, nvptx, systemz, r600, and cpp
1413                           (default=all)
1414   --enable-bindings       Build specific language bindings:
1415                           all,auto,none,{binding-name} (default=auto)
1416   --enable-terminfo       Query the terminfo database if available (default is
1417                           YES)
1418   --enable-libffi         Check for the presence of libffi (default is NO)
1419   --enable-ltdl-install   install libltdl
1420
1421 Optional Packages:
1422   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1423   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1424   --with-llvmsrc          Location of LLVM Source Code
1425   --with-llvmobj          Location of LLVM Object Code
1426   --with-optimize-option  Select the compiler options to use for optimized
1427                           builds
1428   --with-extra-options    Specify additional options to compile LLVM with
1429   --with-extra-ld-options Specify additional options to link LLVM with
1430   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1431                           is stdlib)
1432   --with-clang-resource-dir
1433                           Relative directory from the Clang binary for
1434                           resource files
1435   --with-c-include-dirs   Colon separated list of directories clang will
1436                           search for headers
1437   --with-gcc-toolchain    Directory where gcc is installed.
1438   --with-binutils-include Specify path to binutils/include/ containing
1439                           plugin-api.h file for gold plugin.
1440   --with-bug-report-url   Specify the URL where bug reports should be
1441                           submitted (default=http://llvm.org/bugs/)
1442   --with-tclinclude       directory where tcl headers are
1443   --with-udis86=<path>    Use udis86 external x86 disassembler library
1444   --with-oprofile=<prefix>
1445                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1446
1447 Some influential environment variables:
1448   CC          C compiler command
1449   CFLAGS      C compiler flags
1450   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1451               nonstandard directory <lib dir>
1452   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1453               you have headers in a nonstandard directory <include dir>
1454   CXX         C++ compiler command
1455   CXXFLAGS    C++ compiler flags
1456   CPP         C preprocessor
1457
1458 Use these variables to override the choices made by `configure' or to help
1459 it to find libraries and programs with nonstandard names/locations.
1460
1461 Report bugs to <bugs@yourdomain>.
1462 _ACEOF
1463 ac_status=$?
1464 fi
1465
1466 if test "$ac_init_help" = "recursive"; then
1467   # If there are subdirs, report their specific --help.
1468   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1469     test -d "$ac_dir" || continue
1470     ac_builddir=.
1471
1472 case "$ac_dir" in
1473 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *)
1475   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1476   # A ".." for each directory in $ac_dir_suffix.
1477   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1478   case $ac_top_builddir_sub in
1479   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481   esac ;;
1482 esac
1483 ac_abs_top_builddir=$ac_pwd
1484 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485 # for backward compatibility:
1486 ac_top_builddir=$ac_top_build_prefix
1487
1488 case $srcdir in
1489   .)  # We are building in place.
1490     ac_srcdir=.
1491     ac_top_srcdir=$ac_top_builddir_sub
1492     ac_abs_top_srcdir=$ac_pwd ;;
1493   [\\/]* | ?:[\\/]* )  # Absolute name.
1494     ac_srcdir=$srcdir$ac_dir_suffix;
1495     ac_top_srcdir=$srcdir
1496     ac_abs_top_srcdir=$srcdir ;;
1497   *) # Relative name.
1498     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499     ac_top_srcdir=$ac_top_build_prefix$srcdir
1500     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501 esac
1502 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503
1504     cd "$ac_dir" || { ac_status=$?; continue; }
1505     # Check for guested configure.
1506     if test -f "$ac_srcdir/configure.gnu"; then
1507       echo &&
1508       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509     elif test -f "$ac_srcdir/configure"; then
1510       echo &&
1511       $SHELL "$ac_srcdir/configure" --help=recursive
1512     else
1513       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514     fi || ac_status=$?
1515     cd "$ac_pwd" || { ac_status=$?; break; }
1516   done
1517 fi
1518
1519 test -n "$ac_init_help" && exit $ac_status
1520 if $ac_init_version; then
1521   cat <<\_ACEOF
1522 [SAMPLE] configure [x.xx]
1523 generated by GNU Autoconf 2.60
1524
1525 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1526 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1527 This configure script is free software; the Free Software Foundation
1528 gives unlimited permission to copy, distribute and modify it.
1529 _ACEOF
1530   exit
1531 fi
1532 cat >config.log <<_ACEOF
1533 This file contains any messages produced by compilers while
1534 running configure, to aid debugging if configure makes a mistake.
1535
1536 It was created by [SAMPLE] $as_me [x.xx], which was
1537 generated by GNU Autoconf 2.60.  Invocation command line was
1538
1539   $ $0 $@
1540
1541 _ACEOF
1542 exec 5>>config.log
1543 {
1544 cat <<_ASUNAME
1545 ## --------- ##
1546 ## Platform. ##
1547 ## --------- ##
1548
1549 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1550 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1551 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1552 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1553 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1554
1555 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1556 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1557
1558 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1559 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1560 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1561 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1562 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1563 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1564 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1565
1566 _ASUNAME
1567
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 for as_dir in $PATH
1570 do
1571   IFS=$as_save_IFS
1572   test -z "$as_dir" && as_dir=.
1573   echo "PATH: $as_dir"
1574 done
1575 IFS=$as_save_IFS
1576
1577 } >&5
1578
1579 cat >&5 <<_ACEOF
1580
1581
1582 ## ----------- ##
1583 ## Core tests. ##
1584 ## ----------- ##
1585
1586 _ACEOF
1587
1588
1589 # Keep a trace of the command line.
1590 # Strip out --no-create and --no-recursion so they do not pile up.
1591 # Strip out --silent because we don't want to record it for future runs.
1592 # Also quote any args containing shell meta-characters.
1593 # Make two passes to allow for proper duplicate-argument suppression.
1594 ac_configure_args=
1595 ac_configure_args0=
1596 ac_configure_args1=
1597 ac_must_keep_next=false
1598 for ac_pass in 1 2
1599 do
1600   for ac_arg
1601   do
1602     case $ac_arg in
1603     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1604     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1605     | -silent | --silent | --silen | --sile | --sil)
1606       continue ;;
1607     *\'*)
1608       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1609     esac
1610     case $ac_pass in
1611     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1612     2)
1613       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1614       if test $ac_must_keep_next = true; then
1615         ac_must_keep_next=false # Got value, back to normal.
1616       else
1617         case $ac_arg in
1618           *=* | --config-cache | -C | -disable-* | --disable-* \
1619           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1620           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1621           | -with-* | --with-* | -without-* | --without-* | --x)
1622             case "$ac_configure_args0 " in
1623               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1624             esac
1625             ;;
1626           -* ) ac_must_keep_next=true ;;
1627         esac
1628       fi
1629       ac_configure_args="$ac_configure_args '$ac_arg'"
1630       ;;
1631     esac
1632   done
1633 done
1634 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1635 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1636
1637 # When interrupted or exit'd, cleanup temporary files, and complete
1638 # config.log.  We remove comments because anyway the quotes in there
1639 # would cause problems or look ugly.
1640 # WARNING: Use '\'' to represent an apostrophe within the trap.
1641 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1642 trap 'exit_status=$?
1643   # Save into config.log some information that might help in debugging.
1644   {
1645     echo
1646
1647     cat <<\_ASBOX
1648 ## ---------------- ##
1649 ## Cache variables. ##
1650 ## ---------------- ##
1651 _ASBOX
1652     echo
1653     # The following way of writing the cache mishandles newlines in values,
1654 (
1655   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1656     eval ac_val=\$$ac_var
1657     case $ac_val in #(
1658     *${as_nl}*)
1659       case $ac_var in #(
1660       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1661 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1662       esac
1663       case $ac_var in #(
1664       _ | IFS | as_nl) ;; #(
1665       *) $as_unset $ac_var ;;
1666       esac ;;
1667     esac
1668   done
1669   (set) 2>&1 |
1670     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1671     *${as_nl}ac_space=\ *)
1672       sed -n \
1673         "s/'\''/'\''\\\\'\'''\''/g;
1674           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1675       ;; #(
1676     *)
1677       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1678       ;;
1679     esac |
1680     sort
1681 )
1682     echo
1683
1684     cat <<\_ASBOX
1685 ## ----------------- ##
1686 ## Output variables. ##
1687 ## ----------------- ##
1688 _ASBOX
1689     echo
1690     for ac_var in $ac_subst_vars
1691     do
1692       eval ac_val=\$$ac_var
1693       case $ac_val in
1694       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1695       esac
1696       echo "$ac_var='\''$ac_val'\''"
1697     done | sort
1698     echo
1699
1700     if test -n "$ac_subst_files"; then
1701       cat <<\_ASBOX
1702 ## ------------------- ##
1703 ## File substitutions. ##
1704 ## ------------------- ##
1705 _ASBOX
1706       echo
1707       for ac_var in $ac_subst_files
1708       do
1709         eval ac_val=\$$ac_var
1710         case $ac_val in
1711         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712         esac
1713         echo "$ac_var='\''$ac_val'\''"
1714       done | sort
1715       echo
1716     fi
1717
1718     if test -s confdefs.h; then
1719       cat <<\_ASBOX
1720 ## ----------- ##
1721 ## confdefs.h. ##
1722 ## ----------- ##
1723 _ASBOX
1724       echo
1725       cat confdefs.h
1726       echo
1727     fi
1728     test "$ac_signal" != 0 &&
1729       echo "$as_me: caught signal $ac_signal"
1730     echo "$as_me: exit $exit_status"
1731   } >&5
1732   rm -f core *.core core.conftest.* &&
1733     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1734     exit $exit_status
1735 ' 0
1736 for ac_signal in 1 2 13 15; do
1737   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1738 done
1739 ac_signal=0
1740
1741 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1742 rm -f -r conftest* confdefs.h
1743
1744 # Predefined preprocessor variables.
1745
1746 cat >>confdefs.h <<_ACEOF
1747 #define PACKAGE_NAME "$PACKAGE_NAME"
1748 _ACEOF
1749
1750
1751 cat >>confdefs.h <<_ACEOF
1752 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1753 _ACEOF
1754
1755
1756 cat >>confdefs.h <<_ACEOF
1757 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1758 _ACEOF
1759
1760
1761 cat >>confdefs.h <<_ACEOF
1762 #define PACKAGE_STRING "$PACKAGE_STRING"
1763 _ACEOF
1764
1765
1766 cat >>confdefs.h <<_ACEOF
1767 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1768 _ACEOF
1769
1770
1771 # Let the site file select an alternate cache file if it wants to.
1772 # Prefer explicitly selected file to automatically selected ones.
1773 if test -n "$CONFIG_SITE"; then
1774   set x "$CONFIG_SITE"
1775 elif test "x$prefix" != xNONE; then
1776   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1777 else
1778   set x "$ac_default_prefix/share/config.site" \
1779         "$ac_default_prefix/etc/config.site"
1780 fi
1781 shift
1782 for ac_site_file
1783 do
1784   if test -r "$ac_site_file"; then
1785     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1786 echo "$as_me: loading site script $ac_site_file" >&6;}
1787     sed 's/^/| /' "$ac_site_file" >&5
1788     . "$ac_site_file"
1789   fi
1790 done
1791
1792 if test -r "$cache_file"; then
1793   # Some versions of bash will fail to source /dev/null (special
1794   # files actually), so we avoid doing that.
1795   if test -f "$cache_file"; then
1796     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1797 echo "$as_me: loading cache $cache_file" >&6;}
1798     case $cache_file in
1799       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1800       *)                      . "./$cache_file";;
1801     esac
1802   fi
1803 else
1804   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1805 echo "$as_me: creating cache $cache_file" >&6;}
1806   >$cache_file
1807 fi
1808
1809 # Check that the precious variables saved in the cache have kept the same
1810 # value.
1811 ac_cache_corrupted=false
1812 for ac_var in $ac_precious_vars; do
1813   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1814   eval ac_new_set=\$ac_env_${ac_var}_set
1815   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1816   eval ac_new_val=\$ac_env_${ac_var}_value
1817   case $ac_old_set,$ac_new_set in
1818     set,)
1819       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1820 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1821       ac_cache_corrupted=: ;;
1822     ,set)
1823       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1824 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1825       ac_cache_corrupted=: ;;
1826     ,);;
1827     *)
1828       if test "x$ac_old_val" != "x$ac_new_val"; then
1829         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1830 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1831         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1832 echo "$as_me:   former value:  $ac_old_val" >&2;}
1833         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1834 echo "$as_me:   current value: $ac_new_val" >&2;}
1835         ac_cache_corrupted=:
1836       fi;;
1837   esac
1838   # Pass precious variables to config.status.
1839   if test "$ac_new_set" = set; then
1840     case $ac_new_val in
1841     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1842     *) ac_arg=$ac_var=$ac_new_val ;;
1843     esac
1844     case " $ac_configure_args " in
1845       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1846       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1847     esac
1848   fi
1849 done
1850 if $ac_cache_corrupted; then
1851   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1852 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1853   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1854 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1855    { (exit 1); exit 1; }; }
1856 fi
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882 ac_ext=c
1883 ac_cpp='$CPP $CPPFLAGS'
1884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1887
1888
1889
1890 LLVM_SRC_ROOT="../.."
1891 LLVM_OBJ_ROOT="../.."
1892
1893 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1894 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1895
1896
1897 # Check whether --with-llvmsrc was given.
1898 if test "${with_llvmsrc+set}" = set; then
1899   withval=$with_llvmsrc; llvm_src="$withval"
1900 else
1901   llvm_src="$LLVM_ABS_SRC_ROOT"
1902 fi
1903
1904   LLVM_SRC=$llvm_src
1905
1906
1907 # Check whether --with-llvmobj was given.
1908 if test "${with_llvmobj+set}" = set; then
1909   withval=$with_llvmobj; llvm_obj="$withval"
1910 else
1911   llvm_obj="$LLVM_ABS_OBJ_ROOT"
1912 fi
1913
1914   LLVM_OBJ=$llvm_obj
1915
1916   ac_config_commands="$ac_config_commands setup"
1917
1918
1919
1920 { echo "$as_me:$LINENO: checking llvm-config" >&5
1921 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1922 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1923 if ! test -f "$llvm_config_path" ; then
1924    llvm_config_path="no"
1925 fi
1926 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1927 echo "${ECHO_T}$llvm_config_path" >&6; }
1928
1929 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1930 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1931 if test "$llvm_config_path" != no ; then
1932   llvm_package_version=`$llvm_config_path --version`
1933 else
1934   llvm_package_version="unknown";
1935 fi
1936 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1937 echo "${ECHO_T}$llvm_package_version" >&6; }
1938 LLVM_VERSION=$llvm_package_version
1939
1940
1941
1942
1943 ac_aux_dir=
1944 for ac_dir in autoconf "$srcdir"/autoconf; do
1945   if test -f "$ac_dir/install-sh"; then
1946     ac_aux_dir=$ac_dir
1947     ac_install_sh="$ac_aux_dir/install-sh -c"
1948     break
1949   elif test -f "$ac_dir/install.sh"; then
1950     ac_aux_dir=$ac_dir
1951     ac_install_sh="$ac_aux_dir/install.sh -c"
1952     break
1953   elif test -f "$ac_dir/shtool"; then
1954     ac_aux_dir=$ac_dir
1955     ac_install_sh="$ac_aux_dir/shtool install -c"
1956     break
1957   fi
1958 done
1959 if test -z "$ac_aux_dir"; then
1960   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1961 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1962    { (exit 1); exit 1; }; }
1963 fi
1964
1965 # These three variables are undocumented and unsupported,
1966 # and are intended to be withdrawn in a future Autoconf release.
1967 # They can cause serious problems if a builder's source tree is in a directory
1968 # whose full name contains unusual characters.
1969 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1970 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1971 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1972
1973
1974
1975
1976 ac_ext=c
1977 ac_cpp='$CPP $CPPFLAGS'
1978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1981 if test -n "$ac_tool_prefix"; then
1982   for ac_prog in clang llvm-gcc gcc
1983   do
1984     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1988 if test "${ac_cv_prog_CC+set}" = set; then
1989   echo $ECHO_N "(cached) $ECHO_C" >&6
1990 else
1991   if test -n "$CC"; then
1992   ac_cv_prog_CC="$CC" # Let the user override the test.
1993 else
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 for as_dir in $PATH
1996 do
1997   IFS=$as_save_IFS
1998   test -z "$as_dir" && as_dir=.
1999   for ac_exec_ext in '' $ac_executable_extensions; do
2000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2001     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003     break 2
2004   fi
2005 done
2006 done
2007 IFS=$as_save_IFS
2008
2009 fi
2010 fi
2011 CC=$ac_cv_prog_CC
2012 if test -n "$CC"; then
2013   { echo "$as_me:$LINENO: result: $CC" >&5
2014 echo "${ECHO_T}$CC" >&6; }
2015 else
2016   { echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6; }
2018 fi
2019
2020
2021     test -n "$CC" && break
2022   done
2023 fi
2024 if test -z "$CC"; then
2025   ac_ct_CC=$CC
2026   for ac_prog in clang llvm-gcc gcc
2027 do
2028   # Extract the first word of "$ac_prog", so it can be a program name with args.
2029 set dummy $ac_prog; ac_word=$2
2030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2033   echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035   if test -n "$ac_ct_CC"; then
2036   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2037 else
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 for as_dir in $PATH
2040 do
2041   IFS=$as_save_IFS
2042   test -z "$as_dir" && as_dir=.
2043   for ac_exec_ext in '' $ac_executable_extensions; do
2044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2045     ac_cv_prog_ac_ct_CC="$ac_prog"
2046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047     break 2
2048   fi
2049 done
2050 done
2051 IFS=$as_save_IFS
2052
2053 fi
2054 fi
2055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2056 if test -n "$ac_ct_CC"; then
2057   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2058 echo "${ECHO_T}$ac_ct_CC" >&6; }
2059 else
2060   { echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6; }
2062 fi
2063
2064
2065   test -n "$ac_ct_CC" && break
2066 done
2067
2068   if test "x$ac_ct_CC" = x; then
2069     CC=""
2070   else
2071     case $cross_compiling:$ac_tool_warned in
2072 yes:)
2073 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2074 whose name does not start with the host triplet.  If you think this
2075 configuration is useful to you, please write to autoconf@gnu.org." >&5
2076 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2077 whose name does not start with the host triplet.  If you think this
2078 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2079 ac_tool_warned=yes ;;
2080 esac
2081     CC=$ac_ct_CC
2082   fi
2083 fi
2084
2085
2086 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2087 See \`config.log' for more details." >&5
2088 echo "$as_me: error: no acceptable C compiler found in \$PATH
2089 See \`config.log' for more details." >&2;}
2090    { (exit 1); exit 1; }; }
2091
2092 # Provide some information about the compiler.
2093 echo "$as_me:$LINENO: checking for C compiler version" >&5
2094 ac_compiler=`set X $ac_compile; echo $2`
2095 { (ac_try="$ac_compiler --version >&5"
2096 case "(($ac_try" in
2097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098   *) ac_try_echo=$ac_try;;
2099 esac
2100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2101   (eval "$ac_compiler --version >&5") 2>&5
2102   ac_status=$?
2103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104   (exit $ac_status); }
2105 { (ac_try="$ac_compiler -v >&5"
2106 case "(($ac_try" in
2107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108   *) ac_try_echo=$ac_try;;
2109 esac
2110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2111   (eval "$ac_compiler -v >&5") 2>&5
2112   ac_status=$?
2113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114   (exit $ac_status); }
2115 { (ac_try="$ac_compiler -V >&5"
2116 case "(($ac_try" in
2117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118   *) ac_try_echo=$ac_try;;
2119 esac
2120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2121   (eval "$ac_compiler -V >&5") 2>&5
2122   ac_status=$?
2123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124   (exit $ac_status); }
2125
2126 cat >conftest.$ac_ext <<_ACEOF
2127 /* confdefs.h.  */
2128 _ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h.  */
2132
2133 int
2134 main ()
2135 {
2136
2137   ;
2138   return 0;
2139 }
2140 _ACEOF
2141 ac_clean_files_save=$ac_clean_files
2142 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2143 # Try to create an executable without -o first, disregard a.out.
2144 # It will help us diagnose broken compilers, and finding out an intuition
2145 # of exeext.
2146 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2147 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2148 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2149 #
2150 # List of possible output files, starting from the most likely.
2151 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2152 # only as a last resort.  b.out is created by i960 compilers.
2153 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2154 #
2155 # The IRIX 6 linker writes into existing files which may not be
2156 # executable, retaining their permissions.  Remove them first so a
2157 # subsequent execution test works.
2158 ac_rmfiles=
2159 for ac_file in $ac_files
2160 do
2161   case $ac_file in
2162     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2163     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2164   esac
2165 done
2166 rm -f $ac_rmfiles
2167
2168 if { (ac_try="$ac_link_default"
2169 case "(($ac_try" in
2170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171   *) ac_try_echo=$ac_try;;
2172 esac
2173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2174   (eval "$ac_link_default") 2>&5
2175   ac_status=$?
2176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177   (exit $ac_status); }; then
2178   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2179 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2180 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2181 # so that the user can short-circuit this test for compilers unknown to
2182 # Autoconf.
2183 for ac_file in $ac_files
2184 do
2185   test -f "$ac_file" || continue
2186   case $ac_file in
2187     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2188         ;;
2189     [ab].out )
2190         # We found the default executable, but exeext='' is most
2191         # certainly right.
2192         break;;
2193     *.* )
2194         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2195         then :; else
2196            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2197         fi
2198         # We set ac_cv_exeext here because the later test for it is not
2199         # safe: cross compilers may not add the suffix if given an `-o'
2200         # argument, so we may need to know it at that point already.
2201         # Even if this section looks crufty: it has the advantage of
2202         # actually working.
2203         break;;
2204     * )
2205         break;;
2206   esac
2207 done
2208 test "$ac_cv_exeext" = no && ac_cv_exeext=
2209
2210 else
2211   echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2213
2214 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: C compiler cannot create executables
2217 See \`config.log' for more details." >&2;}
2218    { (exit 77); exit 77; }; }
2219 fi
2220
2221 ac_exeext=$ac_cv_exeext
2222 { echo "$as_me:$LINENO: result: $ac_file" >&5
2223 echo "${ECHO_T}$ac_file" >&6; }
2224
2225 # Check that the compiler produces executables we can run.  If not, either
2226 # the compiler is broken, or we cross compile.
2227 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2228 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2229 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2230 # If not cross compiling, check that we can run a simple program.
2231 if test "$cross_compiling" != yes; then
2232   if { ac_try='./$ac_file'
2233   { (case "(($ac_try" in
2234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235   *) ac_try_echo=$ac_try;;
2236 esac
2237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2238   (eval "$ac_try") 2>&5
2239   ac_status=$?
2240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241   (exit $ac_status); }; }; then
2242     cross_compiling=no
2243   else
2244     if test "$cross_compiling" = maybe; then
2245         cross_compiling=yes
2246     else
2247         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2248 If you meant to cross compile, use \`--host'.
2249 See \`config.log' for more details." >&5
2250 echo "$as_me: error: cannot run C compiled programs.
2251 If you meant to cross compile, use \`--host'.
2252 See \`config.log' for more details." >&2;}
2253    { (exit 1); exit 1; }; }
2254     fi
2255   fi
2256 fi
2257 { echo "$as_me:$LINENO: result: yes" >&5
2258 echo "${ECHO_T}yes" >&6; }
2259
2260 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2261 ac_clean_files=$ac_clean_files_save
2262 # Check that the compiler produces executables we can run.  If not, either
2263 # the compiler is broken, or we cross compile.
2264 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2265 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2266 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2267 echo "${ECHO_T}$cross_compiling" >&6; }
2268
2269 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2270 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2271 if { (ac_try="$ac_link"
2272 case "(($ac_try" in
2273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274   *) ac_try_echo=$ac_try;;
2275 esac
2276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2277   (eval "$ac_link") 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); }; then
2281   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2282 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2283 # work properly (i.e., refer to `conftest.exe'), while it won't with
2284 # `rm'.
2285 for ac_file in conftest.exe conftest conftest.*; do
2286   test -f "$ac_file" || continue
2287   case $ac_file in
2288     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2289     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2290           break;;
2291     * ) break;;
2292   esac
2293 done
2294 else
2295   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2296 See \`config.log' for more details." >&5
2297 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2298 See \`config.log' for more details." >&2;}
2299    { (exit 1); exit 1; }; }
2300 fi
2301
2302 rm -f conftest$ac_cv_exeext
2303 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2304 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2305
2306 rm -f conftest.$ac_ext
2307 EXEEXT=$ac_cv_exeext
2308 ac_exeext=$EXEEXT
2309 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2310 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2311 if test "${ac_cv_objext+set}" = set; then
2312   echo $ECHO_N "(cached) $ECHO_C" >&6
2313 else
2314   cat >conftest.$ac_ext <<_ACEOF
2315 /* confdefs.h.  */
2316 _ACEOF
2317 cat confdefs.h >>conftest.$ac_ext
2318 cat >>conftest.$ac_ext <<_ACEOF
2319 /* end confdefs.h.  */
2320
2321 int
2322 main ()
2323 {
2324
2325   ;
2326   return 0;
2327 }
2328 _ACEOF
2329 rm -f conftest.o conftest.obj
2330 if { (ac_try="$ac_compile"
2331 case "(($ac_try" in
2332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2333   *) ac_try_echo=$ac_try;;
2334 esac
2335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2336   (eval "$ac_compile") 2>&5
2337   ac_status=$?
2338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339   (exit $ac_status); }; then
2340   for ac_file in conftest.o conftest.obj conftest.*; do
2341   test -f "$ac_file" || continue;
2342   case $ac_file in
2343     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2344     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2345        break;;
2346   esac
2347 done
2348 else
2349   echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2351
2352 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2353 See \`config.log' for more details." >&5
2354 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2355 See \`config.log' for more details." >&2;}
2356    { (exit 1); exit 1; }; }
2357 fi
2358
2359 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2360 fi
2361 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2362 echo "${ECHO_T}$ac_cv_objext" >&6; }
2363 OBJEXT=$ac_cv_objext
2364 ac_objext=$OBJEXT
2365 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2366 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2367 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2368   echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370   cat >conftest.$ac_ext <<_ACEOF
2371 /* confdefs.h.  */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h.  */
2376
2377 int
2378 main ()
2379 {
2380 #ifndef __GNUC__
2381        choke me
2382 #endif
2383
2384   ;
2385   return 0;
2386 }
2387 _ACEOF
2388 rm -f conftest.$ac_objext
2389 if { (ac_try="$ac_compile"
2390 case "(($ac_try" in
2391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392   *) ac_try_echo=$ac_try;;
2393 esac
2394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2395   (eval "$ac_compile") 2>conftest.er1
2396   ac_status=$?
2397   grep -v '^ *+' conftest.er1 >conftest.err
2398   rm -f conftest.er1
2399   cat conftest.err >&5
2400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401   (exit $ac_status); } &&
2402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2403   { (case "(($ac_try" in
2404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405   *) ac_try_echo=$ac_try;;
2406 esac
2407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408   (eval "$ac_try") 2>&5
2409   ac_status=$?
2410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411   (exit $ac_status); }; } &&
2412          { ac_try='test -s conftest.$ac_objext'
2413   { (case "(($ac_try" in
2414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415   *) ac_try_echo=$ac_try;;
2416 esac
2417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418   (eval "$ac_try") 2>&5
2419   ac_status=$?
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); }; }; then
2422   ac_compiler_gnu=yes
2423 else
2424   echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2426
2427         ac_compiler_gnu=no
2428 fi
2429
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2432
2433 fi
2434 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2435 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2436 GCC=`test $ac_compiler_gnu = yes && echo yes`
2437 ac_test_CFLAGS=${CFLAGS+set}
2438 ac_save_CFLAGS=$CFLAGS
2439 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2440 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2441 if test "${ac_cv_prog_cc_g+set}" = set; then
2442   echo $ECHO_N "(cached) $ECHO_C" >&6
2443 else
2444   ac_save_c_werror_flag=$ac_c_werror_flag
2445    ac_c_werror_flag=yes
2446    ac_cv_prog_cc_g=no
2447    CFLAGS="-g"
2448    cat >conftest.$ac_ext <<_ACEOF
2449 /* confdefs.h.  */
2450 _ACEOF
2451 cat confdefs.h >>conftest.$ac_ext
2452 cat >>conftest.$ac_ext <<_ACEOF
2453 /* end confdefs.h.  */
2454
2455 int
2456 main ()
2457 {
2458
2459   ;
2460   return 0;
2461 }
2462 _ACEOF
2463 rm -f conftest.$ac_objext
2464 if { (ac_try="$ac_compile"
2465 case "(($ac_try" in
2466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467   *) ac_try_echo=$ac_try;;
2468 esac
2469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2470   (eval "$ac_compile") 2>conftest.er1
2471   ac_status=$?
2472   grep -v '^ *+' conftest.er1 >conftest.err
2473   rm -f conftest.er1
2474   cat conftest.err >&5
2475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476   (exit $ac_status); } &&
2477          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2478   { (case "(($ac_try" in
2479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480   *) ac_try_echo=$ac_try;;
2481 esac
2482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483   (eval "$ac_try") 2>&5
2484   ac_status=$?
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }; } &&
2487          { ac_try='test -s conftest.$ac_objext'
2488   { (case "(($ac_try" in
2489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490   *) ac_try_echo=$ac_try;;
2491 esac
2492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493   (eval "$ac_try") 2>&5
2494   ac_status=$?
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); }; }; then
2497   ac_cv_prog_cc_g=yes
2498 else
2499   echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2501
2502         CFLAGS=""
2503       cat >conftest.$ac_ext <<_ACEOF
2504 /* confdefs.h.  */
2505 _ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h.  */
2509
2510 int
2511 main ()
2512 {
2513
2514   ;
2515   return 0;
2516 }
2517 _ACEOF
2518 rm -f conftest.$ac_objext
2519 if { (ac_try="$ac_compile"
2520 case "(($ac_try" in
2521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522   *) ac_try_echo=$ac_try;;
2523 esac
2524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2525   (eval "$ac_compile") 2>conftest.er1
2526   ac_status=$?
2527   grep -v '^ *+' conftest.er1 >conftest.err
2528   rm -f conftest.er1
2529   cat conftest.err >&5
2530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531   (exit $ac_status); } &&
2532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2533   { (case "(($ac_try" in
2534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535   *) ac_try_echo=$ac_try;;
2536 esac
2537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538   (eval "$ac_try") 2>&5
2539   ac_status=$?
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); }; } &&
2542          { ac_try='test -s conftest.$ac_objext'
2543   { (case "(($ac_try" in
2544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545   *) ac_try_echo=$ac_try;;
2546 esac
2547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2548   (eval "$ac_try") 2>&5
2549   ac_status=$?
2550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551   (exit $ac_status); }; }; then
2552   :
2553 else
2554   echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2556
2557         ac_c_werror_flag=$ac_save_c_werror_flag
2558          CFLAGS="-g"
2559          cat >conftest.$ac_ext <<_ACEOF
2560 /* confdefs.h.  */
2561 _ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h.  */
2565
2566 int
2567 main ()
2568 {
2569
2570   ;
2571   return 0;
2572 }
2573 _ACEOF
2574 rm -f conftest.$ac_objext
2575 if { (ac_try="$ac_compile"
2576 case "(($ac_try" in
2577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578   *) ac_try_echo=$ac_try;;
2579 esac
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581   (eval "$ac_compile") 2>conftest.er1
2582   ac_status=$?
2583   grep -v '^ *+' conftest.er1 >conftest.err
2584   rm -f conftest.er1
2585   cat conftest.err >&5
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); } &&
2588          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2589   { (case "(($ac_try" in
2590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591   *) ac_try_echo=$ac_try;;
2592 esac
2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594   (eval "$ac_try") 2>&5
2595   ac_status=$?
2596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597   (exit $ac_status); }; } &&
2598          { ac_try='test -s conftest.$ac_objext'
2599   { (case "(($ac_try" in
2600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601   *) ac_try_echo=$ac_try;;
2602 esac
2603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604   (eval "$ac_try") 2>&5
2605   ac_status=$?
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); }; }; then
2608   ac_cv_prog_cc_g=yes
2609 else
2610   echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2612
2613
2614 fi
2615
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 fi
2618
2619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 fi
2621
2622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623    ac_c_werror_flag=$ac_save_c_werror_flag
2624 fi
2625 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2626 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2627 if test "$ac_test_CFLAGS" = set; then
2628   CFLAGS=$ac_save_CFLAGS
2629 elif test $ac_cv_prog_cc_g = yes; then
2630   if test "$GCC" = yes; then
2631     CFLAGS="-g -O2"
2632   else
2633     CFLAGS="-g"
2634   fi
2635 else
2636   if test "$GCC" = yes; then
2637     CFLAGS="-O2"
2638   else
2639     CFLAGS=
2640   fi
2641 fi
2642 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2643 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2644 if test "${ac_cv_prog_cc_c89+set}" = set; then
2645   echo $ECHO_N "(cached) $ECHO_C" >&6
2646 else
2647   ac_cv_prog_cc_c89=no
2648 ac_save_CC=$CC
2649 cat >conftest.$ac_ext <<_ACEOF
2650 /* confdefs.h.  */
2651 _ACEOF
2652 cat confdefs.h >>conftest.$ac_ext
2653 cat >>conftest.$ac_ext <<_ACEOF
2654 /* end confdefs.h.  */
2655 #include <stdarg.h>
2656 #include <stdio.h>
2657 #include <sys/types.h>
2658 #include <sys/stat.h>
2659 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2660 struct buf { int x; };
2661 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2662 static char *e (p, i)
2663      char **p;
2664      int i;
2665 {
2666   return p[i];
2667 }
2668 static char *f (char * (*g) (char **, int), char **p, ...)
2669 {
2670   char *s;
2671   va_list v;
2672   va_start (v,p);
2673   s = g (p, va_arg (v,int));
2674   va_end (v);
2675   return s;
2676 }
2677
2678 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2679    function prototypes and stuff, but not '\xHH' hex character constants.
2680    These don't provoke an error unfortunately, instead are silently treated
2681    as 'x'.  The following induces an error, until -std is added to get
2682    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2683    array size at least.  It's necessary to write '\x00'==0 to get something
2684    that's true only with -std.  */
2685 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2686
2687 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2688    inside strings and character constants.  */
2689 #define FOO(x) 'x'
2690 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2691
2692 int test (int i, double x);
2693 struct s1 {int (*f) (int a);};
2694 struct s2 {int (*f) (double a);};
2695 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2696 int argc;
2697 char **argv;
2698 int
2699 main ()
2700 {
2701 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2702   ;
2703   return 0;
2704 }
2705 _ACEOF
2706 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2707         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2708 do
2709   CC="$ac_save_CC $ac_arg"
2710   rm -f conftest.$ac_objext
2711 if { (ac_try="$ac_compile"
2712 case "(($ac_try" in
2713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714   *) ac_try_echo=$ac_try;;
2715 esac
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717   (eval "$ac_compile") 2>conftest.er1
2718   ac_status=$?
2719   grep -v '^ *+' conftest.er1 >conftest.err
2720   rm -f conftest.er1
2721   cat conftest.err >&5
2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723   (exit $ac_status); } &&
2724          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2725   { (case "(($ac_try" in
2726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727   *) ac_try_echo=$ac_try;;
2728 esac
2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730   (eval "$ac_try") 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }; } &&
2734          { ac_try='test -s conftest.$ac_objext'
2735   { (case "(($ac_try" in
2736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737   *) ac_try_echo=$ac_try;;
2738 esac
2739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740   (eval "$ac_try") 2>&5
2741   ac_status=$?
2742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743   (exit $ac_status); }; }; then
2744   ac_cv_prog_cc_c89=$ac_arg
2745 else
2746   echo "$as_me: failed program was:" >&5
2747 sed 's/^/| /' conftest.$ac_ext >&5
2748
2749
2750 fi
2751
2752 rm -f core conftest.err conftest.$ac_objext
2753   test "x$ac_cv_prog_cc_c89" != "xno" && break
2754 done
2755 rm -f conftest.$ac_ext
2756 CC=$ac_save_CC
2757
2758 fi
2759 # AC_CACHE_VAL
2760 case "x$ac_cv_prog_cc_c89" in
2761   x)
2762     { echo "$as_me:$LINENO: result: none needed" >&5
2763 echo "${ECHO_T}none needed" >&6; } ;;
2764   xno)
2765     { echo "$as_me:$LINENO: result: unsupported" >&5
2766 echo "${ECHO_T}unsupported" >&6; } ;;
2767   *)
2768     CC="$CC $ac_cv_prog_cc_c89"
2769     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2770 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2771 esac
2772
2773
2774 ac_ext=c
2775 ac_cpp='$CPP $CPPFLAGS'
2776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2779
2780 ac_ext=cpp
2781 ac_cpp='$CXXCPP $CPPFLAGS'
2782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2785 if test -z "$CXX"; then
2786   if test -n "$CCC"; then
2787     CXX=$CCC
2788   else
2789     if test -n "$ac_tool_prefix"; then
2790   for ac_prog in clang++ llvm-g++ g++
2791   do
2792     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2793 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2796 if test "${ac_cv_prog_CXX+set}" = set; then
2797   echo $ECHO_N "(cached) $ECHO_C" >&6
2798 else
2799   if test -n "$CXX"; then
2800   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2801 else
2802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 for as_dir in $PATH
2804 do
2805   IFS=$as_save_IFS
2806   test -z "$as_dir" && as_dir=.
2807   for ac_exec_ext in '' $ac_executable_extensions; do
2808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2809     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811     break 2
2812   fi
2813 done
2814 done
2815 IFS=$as_save_IFS
2816
2817 fi
2818 fi
2819 CXX=$ac_cv_prog_CXX
2820 if test -n "$CXX"; then
2821   { echo "$as_me:$LINENO: result: $CXX" >&5
2822 echo "${ECHO_T}$CXX" >&6; }
2823 else
2824   { echo "$as_me:$LINENO: result: no" >&5
2825 echo "${ECHO_T}no" >&6; }
2826 fi
2827
2828
2829     test -n "$CXX" && break
2830   done
2831 fi
2832 if test -z "$CXX"; then
2833   ac_ct_CXX=$CXX
2834   for ac_prog in clang++ llvm-g++ g++
2835 do
2836   # Extract the first word of "$ac_prog", so it can be a program name with args.
2837 set dummy $ac_prog; ac_word=$2
2838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2840 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2841   echo $ECHO_N "(cached) $ECHO_C" >&6
2842 else
2843   if test -n "$ac_ct_CXX"; then
2844   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849   IFS=$as_save_IFS
2850   test -z "$as_dir" && as_dir=.
2851   for ac_exec_ext in '' $ac_executable_extensions; do
2852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2853     ac_cv_prog_ac_ct_CXX="$ac_prog"
2854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855     break 2
2856   fi
2857 done
2858 done
2859 IFS=$as_save_IFS
2860
2861 fi
2862 fi
2863 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2864 if test -n "$ac_ct_CXX"; then
2865   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2866 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2867 else
2868   { echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6; }
2870 fi
2871
2872
2873   test -n "$ac_ct_CXX" && break
2874 done
2875
2876   if test "x$ac_ct_CXX" = x; then
2877     CXX="g++"
2878   else
2879     case $cross_compiling:$ac_tool_warned in
2880 yes:)
2881 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2882 whose name does not start with the host triplet.  If you think this
2883 configuration is useful to you, please write to autoconf@gnu.org." >&5
2884 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2885 whose name does not start with the host triplet.  If you think this
2886 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2887 ac_tool_warned=yes ;;
2888 esac
2889     CXX=$ac_ct_CXX
2890   fi
2891 fi
2892
2893   fi
2894 fi
2895 # Provide some information about the compiler.
2896 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2897 ac_compiler=`set X $ac_compile; echo $2`
2898 { (ac_try="$ac_compiler --version >&5"
2899 case "(($ac_try" in
2900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901   *) ac_try_echo=$ac_try;;
2902 esac
2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904   (eval "$ac_compiler --version >&5") 2>&5
2905   ac_status=$?
2906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907   (exit $ac_status); }
2908 { (ac_try="$ac_compiler -v >&5"
2909 case "(($ac_try" in
2910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911   *) ac_try_echo=$ac_try;;
2912 esac
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914   (eval "$ac_compiler -v >&5") 2>&5
2915   ac_status=$?
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); }
2918 { (ac_try="$ac_compiler -V >&5"
2919 case "(($ac_try" in
2920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921   *) ac_try_echo=$ac_try;;
2922 esac
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924   (eval "$ac_compiler -V >&5") 2>&5
2925   ac_status=$?
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); }
2928
2929 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2930 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2931 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2932   echo $ECHO_N "(cached) $ECHO_C" >&6
2933 else
2934   cat >conftest.$ac_ext <<_ACEOF
2935 /* confdefs.h.  */
2936 _ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h.  */
2940
2941 int
2942 main ()
2943 {
2944 #ifndef __GNUC__
2945        choke me
2946 #endif
2947
2948   ;
2949   return 0;
2950 }
2951 _ACEOF
2952 rm -f conftest.$ac_objext
2953 if { (ac_try="$ac_compile"
2954 case "(($ac_try" in
2955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956   *) ac_try_echo=$ac_try;;
2957 esac
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959   (eval "$ac_compile") 2>conftest.er1
2960   ac_status=$?
2961   grep -v '^ *+' conftest.er1 >conftest.err
2962   rm -f conftest.er1
2963   cat conftest.err >&5
2964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965   (exit $ac_status); } &&
2966          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2967   { (case "(($ac_try" in
2968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969   *) ac_try_echo=$ac_try;;
2970 esac
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972   (eval "$ac_try") 2>&5
2973   ac_status=$?
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); }; } &&
2976          { ac_try='test -s conftest.$ac_objext'
2977   { (case "(($ac_try" in
2978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979   *) ac_try_echo=$ac_try;;
2980 esac
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982   (eval "$ac_try") 2>&5
2983   ac_status=$?
2984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985   (exit $ac_status); }; }; then
2986   ac_compiler_gnu=yes
2987 else
2988   echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2990
2991         ac_compiler_gnu=no
2992 fi
2993
2994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2995 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2996
2997 fi
2998 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2999 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3000 GXX=`test $ac_compiler_gnu = yes && echo yes`
3001 ac_test_CXXFLAGS=${CXXFLAGS+set}
3002 ac_save_CXXFLAGS=$CXXFLAGS
3003 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3004 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3005 if test "${ac_cv_prog_cxx_g+set}" = set; then
3006   echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3009    ac_cxx_werror_flag=yes
3010    ac_cv_prog_cxx_g=no
3011    CXXFLAGS="-g"
3012    cat >conftest.$ac_ext <<_ACEOF
3013 /* confdefs.h.  */
3014 _ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h.  */
3018
3019 int
3020 main ()
3021 {
3022
3023   ;
3024   return 0;
3025 }
3026 _ACEOF
3027 rm -f conftest.$ac_objext
3028 if { (ac_try="$ac_compile"
3029 case "(($ac_try" in
3030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031   *) ac_try_echo=$ac_try;;
3032 esac
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034   (eval "$ac_compile") 2>conftest.er1
3035   ac_status=$?
3036   grep -v '^ *+' conftest.er1 >conftest.err
3037   rm -f conftest.er1
3038   cat conftest.err >&5
3039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040   (exit $ac_status); } &&
3041          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3042   { (case "(($ac_try" in
3043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044   *) ac_try_echo=$ac_try;;
3045 esac
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047   (eval "$ac_try") 2>&5
3048   ac_status=$?
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); }; } &&
3051          { ac_try='test -s conftest.$ac_objext'
3052   { (case "(($ac_try" in
3053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054   *) ac_try_echo=$ac_try;;
3055 esac
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057   (eval "$ac_try") 2>&5
3058   ac_status=$?
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); }; }; then
3061   ac_cv_prog_cxx_g=yes
3062 else
3063   echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3065
3066         CXXFLAGS=""
3067       cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h.  */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h.  */
3073
3074 int
3075 main ()
3076 {
3077
3078   ;
3079   return 0;
3080 }
3081 _ACEOF
3082 rm -f conftest.$ac_objext
3083 if { (ac_try="$ac_compile"
3084 case "(($ac_try" in
3085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086   *) ac_try_echo=$ac_try;;
3087 esac
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089   (eval "$ac_compile") 2>conftest.er1
3090   ac_status=$?
3091   grep -v '^ *+' conftest.er1 >conftest.err
3092   rm -f conftest.er1
3093   cat conftest.err >&5
3094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095   (exit $ac_status); } &&
3096          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3097   { (case "(($ac_try" in
3098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099   *) ac_try_echo=$ac_try;;
3100 esac
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102   (eval "$ac_try") 2>&5
3103   ac_status=$?
3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); }; } &&
3106          { ac_try='test -s conftest.$ac_objext'
3107   { (case "(($ac_try" in
3108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109   *) ac_try_echo=$ac_try;;
3110 esac
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112   (eval "$ac_try") 2>&5
3113   ac_status=$?
3114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115   (exit $ac_status); }; }; then
3116   :
3117 else
3118   echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3120
3121         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3122          CXXFLAGS="-g"
3123          cat >conftest.$ac_ext <<_ACEOF
3124 /* confdefs.h.  */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h.  */
3129
3130 int
3131 main ()
3132 {
3133
3134   ;
3135   return 0;
3136 }
3137 _ACEOF
3138 rm -f conftest.$ac_objext
3139 if { (ac_try="$ac_compile"
3140 case "(($ac_try" in
3141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142   *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145   (eval "$ac_compile") 2>conftest.er1
3146   ac_status=$?
3147   grep -v '^ *+' conftest.er1 >conftest.err
3148   rm -f conftest.er1
3149   cat conftest.err >&5
3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151   (exit $ac_status); } &&
3152          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3153   { (case "(($ac_try" in
3154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155   *) ac_try_echo=$ac_try;;
3156 esac
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158   (eval "$ac_try") 2>&5
3159   ac_status=$?
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); }; } &&
3162          { ac_try='test -s conftest.$ac_objext'
3163   { (case "(($ac_try" in
3164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165   *) ac_try_echo=$ac_try;;
3166 esac
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168   (eval "$ac_try") 2>&5
3169   ac_status=$?
3170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171   (exit $ac_status); }; }; then
3172   ac_cv_prog_cxx_g=yes
3173 else
3174   echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3176
3177
3178 fi
3179
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181 fi
3182
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 fi
3185
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3188 fi
3189 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3190 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3191 if test "$ac_test_CXXFLAGS" = set; then
3192   CXXFLAGS=$ac_save_CXXFLAGS
3193 elif test $ac_cv_prog_cxx_g = yes; then
3194   if test "$GXX" = yes; then
3195     CXXFLAGS="-g -O2"
3196   else
3197     CXXFLAGS="-g"
3198   fi
3199 else
3200   if test "$GXX" = yes; then
3201     CXXFLAGS="-O2"
3202   else
3203     CXXFLAGS=
3204   fi
3205 fi
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
3212 ac_ext=c
3213 ac_cpp='$CPP $CPPFLAGS'
3214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3217 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3218 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3219 # On Suns, sometimes $CPP names a directory.
3220 if test -n "$CPP" && test -d "$CPP"; then
3221   CPP=
3222 fi
3223 if test -z "$CPP"; then
3224   if test "${ac_cv_prog_CPP+set}" = set; then
3225   echo $ECHO_N "(cached) $ECHO_C" >&6
3226 else
3227       # Double quotes because CPP needs to be expanded
3228     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3229     do
3230       ac_preproc_ok=false
3231 for ac_c_preproc_warn_flag in '' yes
3232 do
3233   # Use a header file that comes with gcc, so configuring glibc
3234   # with a fresh cross-compiler works.
3235   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3236   # <limits.h> exists even on freestanding compilers.
3237   # On the NeXT, cc -E runs the code through the compiler's parser,
3238   # not just through cpp. "Syntax error" is here to catch this case.
3239   cat >conftest.$ac_ext <<_ACEOF
3240 /* confdefs.h.  */
3241 _ACEOF
3242 cat confdefs.h >>conftest.$ac_ext
3243 cat >>conftest.$ac_ext <<_ACEOF
3244 /* end confdefs.h.  */
3245 #ifdef __STDC__
3246 # include <limits.h>
3247 #else
3248 # include <assert.h>
3249 #endif
3250                      Syntax error
3251 _ACEOF
3252 if { (ac_try="$ac_cpp conftest.$ac_ext"
3253 case "(($ac_try" in
3254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255   *) ac_try_echo=$ac_try;;
3256 esac
3257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3259   ac_status=$?
3260   grep -v '^ *+' conftest.er1 >conftest.err
3261   rm -f conftest.er1
3262   cat conftest.err >&5
3263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264   (exit $ac_status); } >/dev/null; then
3265   if test -s conftest.err; then
3266     ac_cpp_err=$ac_c_preproc_warn_flag
3267     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3268   else
3269     ac_cpp_err=
3270   fi
3271 else
3272   ac_cpp_err=yes
3273 fi
3274 if test -z "$ac_cpp_err"; then
3275   :
3276 else
3277   echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3279
3280   # Broken: fails on valid input.
3281 continue
3282 fi
3283
3284 rm -f conftest.err conftest.$ac_ext
3285
3286   # OK, works on sane cases.  Now check whether nonexistent headers
3287   # can be detected and how.
3288   cat >conftest.$ac_ext <<_ACEOF
3289 /* confdefs.h.  */
3290 _ACEOF
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h.  */
3294 #include <ac_nonexistent.h>
3295 _ACEOF
3296 if { (ac_try="$ac_cpp conftest.$ac_ext"
3297 case "(($ac_try" in
3298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299   *) ac_try_echo=$ac_try;;
3300 esac
3301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3303   ac_status=$?
3304   grep -v '^ *+' conftest.er1 >conftest.err
3305   rm -f conftest.er1
3306   cat conftest.err >&5
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); } >/dev/null; then
3309   if test -s conftest.err; then
3310     ac_cpp_err=$ac_c_preproc_warn_flag
3311     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3312   else
3313     ac_cpp_err=
3314   fi
3315 else
3316   ac_cpp_err=yes
3317 fi
3318 if test -z "$ac_cpp_err"; then
3319   # Broken: success on invalid input.
3320 continue
3321 else
3322   echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3324
3325   # Passes both tests.
3326 ac_preproc_ok=:
3327 break
3328 fi
3329
3330 rm -f conftest.err conftest.$ac_ext
3331
3332 done
3333 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3334 rm -f conftest.err conftest.$ac_ext
3335 if $ac_preproc_ok; then
3336   break
3337 fi
3338
3339     done
3340     ac_cv_prog_CPP=$CPP
3341
3342 fi
3343   CPP=$ac_cv_prog_CPP
3344 else
3345   ac_cv_prog_CPP=$CPP
3346 fi
3347 { echo "$as_me:$LINENO: result: $CPP" >&5
3348 echo "${ECHO_T}$CPP" >&6; }
3349 ac_preproc_ok=false
3350 for ac_c_preproc_warn_flag in '' yes
3351 do
3352   # Use a header file that comes with gcc, so configuring glibc
3353   # with a fresh cross-compiler works.
3354   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3355   # <limits.h> exists even on freestanding compilers.
3356   # On the NeXT, cc -E runs the code through the compiler's parser,
3357   # not just through cpp. "Syntax error" is here to catch this case.
3358   cat >conftest.$ac_ext <<_ACEOF
3359 /* confdefs.h.  */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h.  */
3364 #ifdef __STDC__
3365 # include <limits.h>
3366 #else
3367 # include <assert.h>
3368 #endif
3369                      Syntax error
3370 _ACEOF
3371 if { (ac_try="$ac_cpp conftest.$ac_ext"
3372 case "(($ac_try" in
3373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374   *) ac_try_echo=$ac_try;;
3375 esac
3376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3378   ac_status=$?
3379   grep -v '^ *+' conftest.er1 >conftest.err
3380   rm -f conftest.er1
3381   cat conftest.err >&5
3382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383   (exit $ac_status); } >/dev/null; then
3384   if test -s conftest.err; then
3385     ac_cpp_err=$ac_c_preproc_warn_flag
3386     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3387   else
3388     ac_cpp_err=
3389   fi
3390 else
3391   ac_cpp_err=yes
3392 fi
3393 if test -z "$ac_cpp_err"; then
3394   :
3395 else
3396   echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3398
3399   # Broken: fails on valid input.
3400 continue
3401 fi
3402
3403 rm -f conftest.err conftest.$ac_ext
3404
3405   # OK, works on sane cases.  Now check whether nonexistent headers
3406   # can be detected and how.
3407   cat >conftest.$ac_ext <<_ACEOF
3408 /* confdefs.h.  */
3409 _ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h.  */
3413 #include <ac_nonexistent.h>
3414 _ACEOF
3415 if { (ac_try="$ac_cpp conftest.$ac_ext"
3416 case "(($ac_try" in
3417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418   *) ac_try_echo=$ac_try;;
3419 esac
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3422   ac_status=$?
3423   grep -v '^ *+' conftest.er1 >conftest.err
3424   rm -f conftest.er1
3425   cat conftest.err >&5
3426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427   (exit $ac_status); } >/dev/null; then
3428   if test -s conftest.err; then
3429     ac_cpp_err=$ac_c_preproc_warn_flag
3430     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3431   else
3432     ac_cpp_err=
3433   fi
3434 else
3435   ac_cpp_err=yes
3436 fi
3437 if test -z "$ac_cpp_err"; then
3438   # Broken: success on invalid input.
3439 continue
3440 else
3441   echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3443
3444   # Passes both tests.
3445 ac_preproc_ok=:
3446 break
3447 fi
3448
3449 rm -f conftest.err conftest.$ac_ext
3450
3451 done
3452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3453 rm -f conftest.err conftest.$ac_ext
3454 if $ac_preproc_ok; then
3455   :
3456 else
3457   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3458 See \`config.log' for more details." >&5
3459 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3460 See \`config.log' for more details." >&2;}
3461    { (exit 1); exit 1; }; }
3462 fi
3463
3464 ac_ext=c
3465 ac_cpp='$CPP $CPPFLAGS'
3466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3469
3470
3471
3472
3473 # Check whether --enable-polly was given.
3474 if test "${enable_polly+set}" = set; then
3475   enableval=$enable_polly;
3476 else
3477   enableval=default
3478 fi
3479
3480 case "$enableval" in
3481   yes) ENABLE_POLLY=1
3482  ;;
3483   no)  ENABLE_POLLY=0
3484  ;;
3485   default) ENABLE_POLLY=1
3486  ;;
3487   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3488 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3489    { (exit 1); exit 1; }; } ;;
3490 esac
3491
3492
3493 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3494   LLVM_HAS_POLLY=1
3495
3496   subdirs="$subdirs tools/polly"
3497
3498 fi
3499
3500
3501 # Make sure we can run config.sub.
3502 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3503   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3504 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3505    { (exit 1); exit 1; }; }
3506
3507 { echo "$as_me:$LINENO: checking build system type" >&5
3508 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3509 if test "${ac_cv_build+set}" = set; then
3510   echo $ECHO_N "(cached) $ECHO_C" >&6
3511 else
3512   ac_build_alias=$build_alias
3513 test "x$ac_build_alias" = x &&
3514   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3515 test "x$ac_build_alias" = x &&
3516   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3517 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3518    { (exit 1); exit 1; }; }
3519 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3520   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3521 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3522    { (exit 1); exit 1; }; }
3523
3524 fi
3525 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3526 echo "${ECHO_T}$ac_cv_build" >&6; }
3527 case $ac_cv_build in
3528 *-*-*) ;;
3529 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3530 echo "$as_me: error: invalid value of canonical build" >&2;}
3531    { (exit 1); exit 1; }; };;
3532 esac
3533 build=$ac_cv_build
3534 ac_save_IFS=$IFS; IFS='-'
3535 set x $ac_cv_build
3536 shift
3537 build_cpu=$1
3538 build_vendor=$2
3539 shift; shift
3540 # Remember, the first character of IFS is used to create $*,
3541 # except with old shells:
3542 build_os=$*
3543 IFS=$ac_save_IFS
3544 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3545
3546
3547 { echo "$as_me:$LINENO: checking host system type" >&5
3548 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3549 if test "${ac_cv_host+set}" = set; then
3550   echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552   if test "x$host_alias" = x; then
3553   ac_cv_host=$ac_cv_build
3554 else
3555   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3556     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3557 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3558    { (exit 1); exit 1; }; }
3559 fi
3560
3561 fi
3562 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3563 echo "${ECHO_T}$ac_cv_host" >&6; }
3564 case $ac_cv_host in
3565 *-*-*) ;;
3566 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3567 echo "$as_me: error: invalid value of canonical host" >&2;}
3568    { (exit 1); exit 1; }; };;
3569 esac
3570 host=$ac_cv_host
3571 ac_save_IFS=$IFS; IFS='-'
3572 set x $ac_cv_host
3573 shift
3574 host_cpu=$1
3575 host_vendor=$2
3576 shift; shift
3577 # Remember, the first character of IFS is used to create $*,
3578 # except with old shells:
3579 host_os=$*
3580 IFS=$ac_save_IFS
3581 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3582
3583
3584 { echo "$as_me:$LINENO: checking target system type" >&5
3585 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3586 if test "${ac_cv_target+set}" = set; then
3587   echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589   if test "x$target_alias" = x; then
3590   ac_cv_target=$ac_cv_host
3591 else
3592   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3593     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3594 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3595    { (exit 1); exit 1; }; }
3596 fi
3597
3598 fi
3599 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3600 echo "${ECHO_T}$ac_cv_target" >&6; }
3601 case $ac_cv_target in
3602 *-*-*) ;;
3603 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3604 echo "$as_me: error: invalid value of canonical target" >&2;}
3605    { (exit 1); exit 1; }; };;
3606 esac
3607 target=$ac_cv_target
3608 ac_save_IFS=$IFS; IFS='-'
3609 set x $ac_cv_target
3610 shift
3611 target_cpu=$1
3612 target_vendor=$2
3613 shift; shift
3614 # Remember, the first character of IFS is used to create $*,
3615 # except with old shells:
3616 target_os=$*
3617 IFS=$ac_save_IFS
3618 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3619
3620
3621 # The aliases save the names the user supplied, while $host etc.
3622 # will get canonicalized.
3623 test -n "$target_alias" &&
3624   test "$program_prefix$program_suffix$program_transform_name" = \
3625     NONENONEs,x,x, &&
3626   program_prefix=${target_alias}-
3627
3628 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3629 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3630 if test "${llvm_cv_os_type+set}" = set; then
3631   echo $ECHO_N "(cached) $ECHO_C" >&6
3632 else
3633   case $host in
3634   *-*-aix*)
3635     llvm_cv_link_all_option="-Wl,--whole-archive"
3636     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3637     llvm_cv_os_type="AIX"
3638     llvm_cv_platform_type="Unix" ;;
3639   *-*-irix*)
3640     llvm_cv_link_all_option="-Wl,--whole-archive"
3641     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3642     llvm_cv_os_type="IRIX"
3643     llvm_cv_platform_type="Unix" ;;
3644   *-*-cygwin*)
3645     llvm_cv_link_all_option="-Wl,--whole-archive"
3646     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3647     llvm_cv_os_type="Cygwin"
3648     llvm_cv_platform_type="Unix" ;;
3649   *-*-darwin*)
3650     llvm_cv_link_all_option="-Wl,-all_load"
3651     llvm_cv_no_link_all_option="-Wl,-noall_load"
3652     llvm_cv_os_type="Darwin"
3653     llvm_cv_platform_type="Unix" ;;
3654   *-*-minix*)
3655     llvm_cv_link_all_option="-Wl,-all_load"
3656     llvm_cv_no_link_all_option="-Wl,-noall_load"
3657     llvm_cv_os_type="Minix"
3658     llvm_cv_platform_type="Unix" ;;
3659   *-*-freebsd* | *-*-kfreebsd-gnu)
3660     llvm_cv_link_all_option="-Wl,--whole-archive"
3661     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3662     llvm_cv_os_type="FreeBSD"
3663     llvm_cv_platform_type="Unix" ;;
3664   *-*-openbsd*)
3665     llvm_cv_link_all_option="-Wl,--whole-archive"
3666     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3667     llvm_cv_os_type="OpenBSD"
3668     llvm_cv_platform_type="Unix" ;;
3669   *-*-netbsd*)
3670     llvm_cv_link_all_option="-Wl,--whole-archive"
3671     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3672     llvm_cv_os_type="NetBSD"
3673     llvm_cv_platform_type="Unix" ;;
3674   *-*-dragonfly*)
3675     llvm_cv_link_all_option="-Wl,--whole-archive"
3676     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3677     llvm_cv_os_type="DragonFly"
3678     llvm_cv_platform_type="Unix" ;;
3679   *-*-hpux*)
3680     llvm_cv_link_all_option="-Wl,--whole-archive"
3681     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3682     llvm_cv_os_type="HP-UX"
3683     llvm_cv_platform_type="Unix" ;;
3684   *-*-interix*)
3685     llvm_cv_link_all_option="-Wl,--whole-archive"
3686     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3687     llvm_cv_os_type="Interix"
3688     llvm_cv_platform_type="Unix" ;;
3689   *-*-linux*)
3690     llvm_cv_link_all_option="-Wl,--whole-archive"
3691     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3692     llvm_cv_os_type="Linux"
3693     llvm_cv_platform_type="Unix" ;;
3694   *-*-gnu*)
3695     llvm_cv_link_all_option="-Wl,--whole-archive"
3696     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3697     llvm_cv_os_type="GNU"
3698     llvm_cv_platform_type="Unix" ;;
3699   *-*-solaris*)
3700     llvm_cv_link_all_option="-Wl,-z,allextract"
3701     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3702     llvm_cv_os_type="SunOS"
3703     llvm_cv_platform_type="Unix" ;;
3704   *-*-auroraux*)
3705     llvm_cv_link_all_option="-Wl,-z,allextract"
3706     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3707     llvm_cv_os_type="AuroraUX"
3708     llvm_cv_platform_type="Unix" ;;
3709   *-*-win32*)
3710     llvm_cv_link_all_option="-Wl,--whole-archive"
3711     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3712     llvm_cv_os_type="Win32"
3713     llvm_cv_platform_type="Win32" ;;
3714   *-*-mingw*)
3715     llvm_cv_link_all_option="-Wl,--whole-archive"
3716     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3717     llvm_cv_os_type="MingW"
3718     llvm_cv_platform_type="Win32" ;;
3719   *-*-haiku*)
3720     llvm_cv_link_all_option="-Wl,--whole-archive"
3721     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3722     llvm_cv_os_type="Haiku"
3723     llvm_cv_platform_type="Unix" ;;
3724   *-unknown-eabi*)
3725     llvm_cv_link_all_option="-Wl,--whole-archive"
3726     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3727     llvm_cv_os_type="Freestanding"
3728     llvm_cv_platform_type="Unix" ;;
3729   *-unknown-elf*)
3730     llvm_cv_link_all_option="-Wl,--whole-archive"
3731     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3732     llvm_cv_os_type="Freestanding"
3733     llvm_cv_platform_type="Unix" ;;
3734   *)
3735     llvm_cv_link_all_option=""
3736     llvm_cv_no_link_all_option=""
3737     llvm_cv_os_type="Unknown"
3738     llvm_cv_platform_type="Unknown" ;;
3739 esac
3740 fi
3741 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3742 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3743
3744 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3745 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3746 if test "${llvm_cv_target_os_type+set}" = set; then
3747   echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749   case $target in
3750   *-*-aix*)
3751     llvm_cv_target_os_type="AIX" ;;
3752   *-*-irix*)
3753     llvm_cv_target_os_type="IRIX" ;;
3754   *-*-cygwin*)
3755     llvm_cv_target_os_type="Cygwin" ;;
3756   *-*-darwin*)
3757     llvm_cv_target_os_type="Darwin" ;;
3758   *-*-minix*)
3759     llvm_cv_target_os_type="Minix" ;;
3760   *-*-freebsd* | *-*-kfreebsd-gnu)
3761     llvm_cv_target_os_type="FreeBSD" ;;
3762   *-*-openbsd*)
3763     llvm_cv_target_os_type="OpenBSD" ;;
3764   *-*-netbsd*)
3765     llvm_cv_target_os_type="NetBSD" ;;
3766   *-*-dragonfly*)
3767     llvm_cv_target_os_type="DragonFly" ;;
3768   *-*-hpux*)
3769     llvm_cv_target_os_type="HP-UX" ;;
3770   *-*-interix*)
3771     llvm_cv_target_os_type="Interix" ;;
3772   *-*-linux*)
3773     llvm_cv_target_os_type="Linux" ;;
3774   *-*-gnu*)
3775     llvm_cv_target_os_type="GNU" ;;
3776   *-*-solaris*)
3777     llvm_cv_target_os_type="SunOS" ;;
3778   *-*-auroraux*)
3779     llvm_cv_target_os_type="AuroraUX" ;;
3780   *-*-win32*)
3781     llvm_cv_target_os_type="Win32" ;;
3782   *-*-mingw*)
3783     llvm_cv_target_os_type="MingW" ;;
3784   *-*-haiku*)
3785     llvm_cv_target_os_type="Haiku" ;;
3786   *-*-rtems*)
3787     llvm_cv_target_os_type="RTEMS" ;;
3788   *-*-nacl*)
3789     llvm_cv_target_os_type="NativeClient" ;;
3790   *-unknown-eabi*)
3791     llvm_cv_target_os_type="Freestanding" ;;
3792   *)
3793     llvm_cv_target_os_type="Unknown" ;;
3794 esac
3795 fi
3796 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3797 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3798
3799 if test "$llvm_cv_os_type" = "Unknown" ; then
3800   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3801 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3802    { (exit 1); exit 1; }; }
3803 fi
3804
3805 OS=$llvm_cv_os_type
3806
3807 HOST_OS=$llvm_cv_os_type
3808
3809 TARGET_OS=$llvm_cv_target_os_type
3810
3811
3812 LINKALL=$llvm_cv_link_all_option
3813
3814 NOLINKALL=$llvm_cv_no_link_all_option
3815
3816
3817 case $llvm_cv_platform_type in
3818   Unix)
3819
3820 cat >>confdefs.h <<\_ACEOF
3821 #define LLVM_ON_UNIX 1
3822 _ACEOF
3823
3824     LLVM_ON_UNIX=1
3825
3826     LLVM_ON_WIN32=0
3827
3828     ;;
3829   Win32)
3830
3831 cat >>confdefs.h <<\_ACEOF
3832 #define LLVM_ON_WIN32 1
3833 _ACEOF
3834
3835     LLVM_ON_UNIX=0
3836
3837     LLVM_ON_WIN32=1
3838
3839     ;;
3840 esac
3841
3842 { echo "$as_me:$LINENO: checking target architecture" >&5
3843 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3844 if test "${llvm_cv_target_arch+set}" = set; then
3845   echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847   case $target in
3848   i?86-*)                 llvm_cv_target_arch="x86" ;;
3849   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3850   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3851   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3852   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3853   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
3854   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
3855   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
3856   xcore-*)                llvm_cv_target_arch="XCore" ;;
3857   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3858   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
3859   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
3860   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
3861   *)                      llvm_cv_target_arch="Unknown" ;;
3862 esac
3863 fi
3864 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3865 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3866
3867 if test "$llvm_cv_target_arch" = "Unknown" ; then
3868   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3869 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3870 fi
3871
3872 # Determine the LLVM native architecture for the target
3873 case "$llvm_cv_target_arch" in
3874     x86)     LLVM_NATIVE_ARCH="X86" ;;
3875     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3876     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3877 esac
3878
3879 ARCH=$llvm_cv_target_arch
3880
3881
3882
3883
3884 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3885 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3886 if test "${ac_cv_path_GREP+set}" = set; then
3887   echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889   # Extract the first word of "grep ggrep" to use in msg output
3890 if test -z "$GREP"; then
3891 set dummy grep ggrep; ac_prog_name=$2
3892 if test "${ac_cv_path_GREP+set}" = set; then
3893   echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895   ac_path_GREP_found=false
3896 # Loop through the user's path and test for each of PROGNAME-LIST
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3899 do
3900   IFS=$as_save_IFS
3901   test -z "$as_dir" && as_dir=.
3902   for ac_prog in grep ggrep; do
3903   for ac_exec_ext in '' $ac_executable_extensions; do
3904     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3905     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3906     # Check for GNU ac_path_GREP and select it if it is found.
3907   # Check for GNU $ac_path_GREP
3908 case `"$ac_path_GREP" --version 2>&1` in
3909 *GNU*)
3910   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3911 *)
3912   ac_count=0
3913   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3914   while :
3915   do
3916     cat "conftest.in" "conftest.in" >"conftest.tmp"
3917     mv "conftest.tmp" "conftest.in"
3918     cp "conftest.in" "conftest.nl"
3919     echo 'GREP' >> "conftest.nl"
3920     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3921     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3922     ac_count=`expr $ac_count + 1`
3923     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3924       # Best one so far, save it but keep looking for a better one
3925       ac_cv_path_GREP="$ac_path_GREP"
3926       ac_path_GREP_max=$ac_count
3927     fi
3928     # 10*(2^10) chars as input seems more than enough
3929     test $ac_count -gt 10 && break
3930   done
3931   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3932 esac
3933
3934
3935     $ac_path_GREP_found && break 3
3936   done
3937 done
3938
3939 done
3940 IFS=$as_save_IFS
3941
3942
3943 fi
3944
3945 GREP="$ac_cv_path_GREP"
3946 if test -z "$GREP"; then
3947   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3948 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3949    { (exit 1); exit 1; }; }
3950 fi
3951
3952 else
3953   ac_cv_path_GREP=$GREP
3954 fi
3955
3956
3957 fi
3958 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3959 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3960  GREP="$ac_cv_path_GREP"
3961
3962
3963 { echo "$as_me:$LINENO: checking for egrep" >&5
3964 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3965 if test "${ac_cv_path_EGREP+set}" = set; then
3966   echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3969    then ac_cv_path_EGREP="$GREP -E"
3970    else
3971      # Extract the first word of "egrep" to use in msg output
3972 if test -z "$EGREP"; then
3973 set dummy egrep; ac_prog_name=$2
3974 if test "${ac_cv_path_EGREP+set}" = set; then
3975   echo $ECHO_N "(cached) $ECHO_C" >&6
3976 else
3977   ac_path_EGREP_found=false
3978 # Loop through the user's path and test for each of PROGNAME-LIST
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3981 do
3982   IFS=$as_save_IFS
3983   test -z "$as_dir" && as_dir=.
3984   for ac_prog in egrep; do
3985   for ac_exec_ext in '' $ac_executable_extensions; do
3986     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3987     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3988     # Check for GNU ac_path_EGREP and select it if it is found.
3989   # Check for GNU $ac_path_EGREP
3990 case `"$ac_path_EGREP" --version 2>&1` in
3991 *GNU*)
3992   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3993 *)
3994   ac_count=0
3995   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3996   while :
3997   do
3998     cat "conftest.in" "conftest.in" >"conftest.tmp"
3999     mv "conftest.tmp" "conftest.in"
4000     cp "conftest.in" "conftest.nl"
4001     echo 'EGREP' >> "conftest.nl"
4002     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4003     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4004     ac_count=`expr $ac_count + 1`
4005     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4006       # Best one so far, save it but keep looking for a better one
4007       ac_cv_path_EGREP="$ac_path_EGREP"
4008       ac_path_EGREP_max=$ac_count
4009     fi
4010     # 10*(2^10) chars as input seems more than enough
4011     test $ac_count -gt 10 && break
4012   done
4013   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4014 esac
4015
4016
4017     $ac_path_EGREP_found && break 3
4018   done
4019 done
4020
4021 done
4022 IFS=$as_save_IFS
4023
4024
4025 fi
4026
4027 EGREP="$ac_cv_path_EGREP"
4028 if test -z "$EGREP"; then
4029   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4030 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4031    { (exit 1); exit 1; }; }
4032 fi
4033
4034 else
4035   ac_cv_path_EGREP=$EGREP
4036 fi
4037
4038
4039    fi
4040 fi
4041 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4042 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4043  EGREP="$ac_cv_path_EGREP"
4044
4045
4046 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4047 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4048 if test "${ac_cv_header_stdc+set}" = set; then
4049   echo $ECHO_N "(cached) $ECHO_C" >&6
4050 else
4051   cat >conftest.$ac_ext <<_ACEOF
4052 /* confdefs.h.  */
4053 _ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h.  */
4057 #include <stdlib.h>
4058 #include <stdarg.h>
4059 #include <string.h>
4060 #include <float.h>
4061
4062 int
4063 main ()
4064 {
4065
4066   ;
4067   return 0;
4068 }
4069 _ACEOF
4070 rm -f conftest.$ac_objext
4071 if { (ac_try="$ac_compile"
4072 case "(($ac_try" in
4073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074   *) ac_try_echo=$ac_try;;
4075 esac
4076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4077   (eval "$ac_compile") 2>conftest.er1
4078   ac_status=$?
4079   grep -v '^ *+' conftest.er1 >conftest.err
4080   rm -f conftest.er1
4081   cat conftest.err >&5
4082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083   (exit $ac_status); } &&
4084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4085   { (case "(($ac_try" in
4086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087   *) ac_try_echo=$ac_try;;
4088 esac
4089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090   (eval "$ac_try") 2>&5
4091   ac_status=$?
4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093   (exit $ac_status); }; } &&
4094          { ac_try='test -s conftest.$ac_objext'
4095   { (case "(($ac_try" in
4096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097   *) ac_try_echo=$ac_try;;
4098 esac
4099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4100   (eval "$ac_try") 2>&5
4101   ac_status=$?
4102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103   (exit $ac_status); }; }; then
4104   ac_cv_header_stdc=yes
4105 else
4106   echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4108
4109         ac_cv_header_stdc=no
4110 fi
4111
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113
4114 if test $ac_cv_header_stdc = yes; then
4115   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4116   cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h.  */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h.  */
4122 #include <string.h>
4123
4124 _ACEOF
4125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4126   $EGREP "memchr" >/dev/null 2>&1; then
4127   :
4128 else
4129   ac_cv_header_stdc=no
4130 fi
4131 rm -f conftest*
4132
4133 fi
4134
4135 if test $ac_cv_header_stdc = yes; then
4136   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4137   cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h.  */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h.  */
4143 #include <stdlib.h>
4144
4145 _ACEOF
4146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4147   $EGREP "free" >/dev/null 2>&1; then
4148   :
4149 else
4150   ac_cv_header_stdc=no
4151 fi
4152 rm -f conftest*
4153
4154 fi
4155
4156 if test $ac_cv_header_stdc = yes; then
4157   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4158   if test "$cross_compiling" = yes; then
4159   :
4160 else
4161   cat >conftest.$ac_ext <<_ACEOF
4162 /* confdefs.h.  */
4163 _ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h.  */
4167 #include <ctype.h>
4168 #include <stdlib.h>
4169 #if ((' ' & 0x0FF) == 0x020)
4170 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4171 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4172 #else
4173 # define ISLOWER(c) \
4174                    (('a' <= (c) && (c) <= 'i') \
4175                      || ('j' <= (c) && (c) <= 'r') \
4176                      || ('s' <= (c) && (c) <= 'z'))
4177 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4178 #endif
4179
4180 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4181 int
4182 main ()
4183 {
4184   int i;
4185   for (i = 0; i < 256; i++)
4186     if (XOR (islower (i), ISLOWER (i))
4187         || toupper (i) != TOUPPER (i))
4188       return 2;
4189   return 0;
4190 }
4191 _ACEOF
4192 rm -f conftest$ac_exeext
4193 if { (ac_try="$ac_link"
4194 case "(($ac_try" in
4195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196   *) ac_try_echo=$ac_try;;
4197 esac
4198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199   (eval "$ac_link") 2>&5
4200   ac_status=$?
4201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4203   { (case "(($ac_try" in
4204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205   *) ac_try_echo=$ac_try;;
4206 esac
4207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208   (eval "$ac_try") 2>&5
4209   ac_status=$?
4210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211   (exit $ac_status); }; }; then
4212   :
4213 else
4214   echo "$as_me: program exited with status $ac_status" >&5
4215 echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4217
4218 ( exit $ac_status )
4219 ac_cv_header_stdc=no
4220 fi
4221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4222 fi
4223
4224
4225 fi
4226 fi
4227 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4228 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4229 if test $ac_cv_header_stdc = yes; then
4230
4231 cat >>confdefs.h <<\_ACEOF
4232 #define STDC_HEADERS 1
4233 _ACEOF
4234
4235 fi
4236
4237 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4248                   inttypes.h stdint.h unistd.h
4249 do
4250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4254   echo $ECHO_N "(cached) $ECHO_C" >&6
4255 else
4256   cat >conftest.$ac_ext <<_ACEOF
4257 /* confdefs.h.  */
4258 _ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h.  */
4262 $ac_includes_default
4263
4264 #include <$ac_header>
4265 _ACEOF
4266 rm -f conftest.$ac_objext
4267 if { (ac_try="$ac_compile"
4268 case "(($ac_try" in
4269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270   *) ac_try_echo=$ac_try;;
4271 esac
4272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4273   (eval "$ac_compile") 2>conftest.er1
4274   ac_status=$?
4275   grep -v '^ *+' conftest.er1 >conftest.err
4276   rm -f conftest.er1
4277   cat conftest.err >&5
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); } &&
4280          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4281   { (case "(($ac_try" in
4282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283   *) ac_try_echo=$ac_try;;
4284 esac
4285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286   (eval "$ac_try") 2>&5
4287   ac_status=$?
4288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289   (exit $ac_status); }; } &&
4290          { ac_try='test -s conftest.$ac_objext'
4291   { (case "(($ac_try" in
4292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293   *) ac_try_echo=$ac_try;;
4294 esac
4295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296   (eval "$ac_try") 2>&5
4297   ac_status=$?
4298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); }; }; then
4300   eval "$as_ac_Header=yes"
4301 else
4302   echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4304
4305         eval "$as_ac_Header=no"
4306 fi
4307
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 fi
4310 ac_res=`eval echo '${'$as_ac_Header'}'`
4311                { echo "$as_me:$LINENO: result: $ac_res" >&5
4312 echo "${ECHO_T}$ac_res" >&6; }
4313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4314   cat >>confdefs.h <<_ACEOF
4315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4316 _ACEOF
4317
4318 fi
4319
4320 done
4321
4322
4323 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4324 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4325 if test "${ac_cv_c_bigendian+set}" = set; then
4326   echo $ECHO_N "(cached) $ECHO_C" >&6
4327 else
4328   # See if sys/param.h defines the BYTE_ORDER macro.
4329 cat >conftest.$ac_ext <<_ACEOF
4330 /* confdefs.h.  */
4331 _ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h.  */
4335 #include <sys/types.h>
4336 #include <sys/param.h>
4337
4338 int
4339 main ()
4340 {
4341 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4342  bogus endian macros
4343 #endif
4344
4345   ;
4346   return 0;
4347 }
4348 _ACEOF
4349 rm -f conftest.$ac_objext
4350 if { (ac_try="$ac_compile"
4351 case "(($ac_try" in
4352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353   *) ac_try_echo=$ac_try;;
4354 esac
4355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4356   (eval "$ac_compile") 2>conftest.er1
4357   ac_status=$?
4358   grep -v '^ *+' conftest.er1 >conftest.err
4359   rm -f conftest.er1
4360   cat conftest.err >&5
4361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362   (exit $ac_status); } &&
4363          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4364   { (case "(($ac_try" in
4365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366   *) ac_try_echo=$ac_try;;
4367 esac
4368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369   (eval "$ac_try") 2>&5
4370   ac_status=$?
4371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372   (exit $ac_status); }; } &&
4373          { ac_try='test -s conftest.$ac_objext'
4374   { (case "(($ac_try" in
4375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376   *) ac_try_echo=$ac_try;;
4377 esac
4378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379   (eval "$ac_try") 2>&5
4380   ac_status=$?
4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); }; }; then
4383   # It does; now see whether it defined to BIG_ENDIAN or not.
4384 cat >conftest.$ac_ext <<_ACEOF
4385 /* confdefs.h.  */
4386 _ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h.  */
4390 #include <sys/types.h>
4391 #include <sys/param.h>
4392
4393 int
4394 main ()
4395 {
4396 #if BYTE_ORDER != BIG_ENDIAN
4397  not big endian
4398 #endif
4399
4400   ;
4401   return 0;
4402 }
4403 _ACEOF
4404 rm -f conftest.$ac_objext
4405 if { (ac_try="$ac_compile"
4406 case "(($ac_try" in
4407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4408   *) ac_try_echo=$ac_try;;
4409 esac
4410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4411   (eval "$ac_compile") 2>conftest.er1
4412   ac_status=$?
4413   grep -v '^ *+' conftest.er1 >conftest.err
4414   rm -f conftest.er1
4415   cat conftest.err >&5
4416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417   (exit $ac_status); } &&
4418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4419   { (case "(($ac_try" in
4420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421   *) ac_try_echo=$ac_try;;
4422 esac
4423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424   (eval "$ac_try") 2>&5
4425   ac_status=$?
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); }; } &&
4428          { ac_try='test -s conftest.$ac_objext'
4429   { (case "(($ac_try" in
4430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431   *) ac_try_echo=$ac_try;;
4432 esac
4433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434   (eval "$ac_try") 2>&5
4435   ac_status=$?
4436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437   (exit $ac_status); }; }; then
4438   ac_cv_c_bigendian=yes
4439 else
4440   echo "$as_me: failed program was:" >&5
4441 sed 's/^/| /' conftest.$ac_ext >&5
4442
4443         ac_cv_c_bigendian=no
4444 fi
4445
4446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447 else
4448   echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4450
4451         # It does not; compile a test program.
4452 if test "$cross_compiling" = yes; then
4453   # try to guess the endianness by grepping values into an object file
4454   ac_cv_c_bigendian=unknown
4455   cat >conftest.$ac_ext <<_ACEOF
4456 /* confdefs.h.  */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h.  */
4461 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4462 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4463 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4464 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4465 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4466 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4467 int
4468 main ()
4469 {
4470  _ascii (); _ebcdic ();
4471   ;
4472   return 0;
4473 }
4474 _ACEOF
4475 rm -f conftest.$ac_objext
4476 if { (ac_try="$ac_compile"
4477 case "(($ac_try" in
4478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4479   *) ac_try_echo=$ac_try;;
4480 esac
4481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4482   (eval "$ac_compile") 2>conftest.er1
4483   ac_status=$?
4484   grep -v '^ *+' conftest.er1 >conftest.err
4485   rm -f conftest.er1
4486   cat conftest.err >&5
4487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488   (exit $ac_status); } &&
4489          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4490   { (case "(($ac_try" in
4491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4492   *) ac_try_echo=$ac_try;;
4493 esac
4494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4495   (eval "$ac_try") 2>&5
4496   ac_status=$?
4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498   (exit $ac_status); }; } &&
4499          { ac_try='test -s conftest.$ac_objext'
4500   { (case "(($ac_try" in
4501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502   *) ac_try_echo=$ac_try;;
4503 esac
4504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4505   (eval "$ac_try") 2>&5
4506   ac_status=$?
4507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508   (exit $ac_status); }; }; then
4509   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4510   ac_cv_c_bigendian=yes
4511 fi
4512 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4513   if test "$ac_cv_c_bigendian" = unknown; then
4514     ac_cv_c_bigendian=no
4515   else
4516     # finding both strings is unlikely to happen, but who knows?
4517     ac_cv_c_bigendian=unknown
4518   fi
4519 fi
4520 else
4521   echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4523
4524
4525 fi
4526
4527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 else
4529   cat >conftest.$ac_ext <<_ACEOF
4530 /* confdefs.h.  */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h.  */
4535 $ac_includes_default
4536 int
4537 main ()
4538 {
4539
4540   /* Are we little or big endian?  From Harbison&Steele.  */
4541   union
4542   {
4543     long int l;
4544     char c[sizeof (long int)];
4545   } u;
4546   u.l = 1;
4547   return u.c[sizeof (long int) - 1] == 1;
4548
4549   ;
4550   return 0;
4551 }
4552 _ACEOF
4553 rm -f conftest$ac_exeext
4554 if { (ac_try="$ac_link"
4555 case "(($ac_try" in
4556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557   *) ac_try_echo=$ac_try;;
4558 esac
4559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4560   (eval "$ac_link") 2>&5
4561   ac_status=$?
4562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4564   { (case "(($ac_try" in
4565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566   *) ac_try_echo=$ac_try;;
4567 esac
4568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4569   (eval "$ac_try") 2>&5
4570   ac_status=$?
4571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572   (exit $ac_status); }; }; then
4573   ac_cv_c_bigendian=no
4574 else
4575   echo "$as_me: program exited with status $ac_status" >&5
4576 echo "$as_me: failed program was:" >&5
4577 sed 's/^/| /' conftest.$ac_ext >&5
4578
4579 ( exit $ac_status )
4580 ac_cv_c_bigendian=yes
4581 fi
4582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4583 fi
4584
4585
4586 fi
4587
4588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589 fi
4590 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4591 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4592 case $ac_cv_c_bigendian in
4593   yes)
4594     ENDIAN=big
4595  ;;
4596   no)
4597     ENDIAN=little
4598  ;;
4599   *)
4600     { { echo "$as_me:$LINENO: error: unknown endianness
4601 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4602 echo "$as_me: error: unknown endianness
4603 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4604    { (exit 1); exit 1; }; } ;;
4605 esac
4606
4607
4608 if test "$cross_compiling" = yes; then
4609   LLVM_CROSS_COMPILING=1
4610
4611
4612 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4613 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4614 if test "${ac_cv_build_exeext+set}" = set; then
4615   echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4618   ac_cv_build_exeext=.exe
4619 else
4620   ac_build_prefix=${build_alias}-
4621
4622   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4623 set dummy ${ac_build_prefix}gcc; ac_word=$2
4624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4626 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4627   echo $ECHO_N "(cached) $ECHO_C" >&6
4628 else
4629   if test -n "$BUILD_CC"; then
4630   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4631 else
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH
4634 do
4635   IFS=$as_save_IFS
4636   test -z "$as_dir" && as_dir=.
4637   for ac_exec_ext in '' $ac_executable_extensions; do
4638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4639     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4641     break 2
4642   fi
4643 done
4644 done
4645 IFS=$as_save_IFS
4646
4647 fi
4648 fi
4649 BUILD_CC=$ac_cv_prog_BUILD_CC
4650 if test -n "$BUILD_CC"; then
4651   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4652 echo "${ECHO_T}$BUILD_CC" >&6; }
4653 else
4654   { echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6; }
4656 fi
4657
4658
4659   if test -z "$BUILD_CC"; then
4660      # Extract the first word of "gcc", so it can be a program name with args.
4661 set dummy gcc; ac_word=$2
4662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4664 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4665   echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667   if test -n "$BUILD_CC"; then
4668   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4672 do
4673   IFS=$as_save_IFS
4674   test -z "$as_dir" && as_dir=.
4675   for ac_exec_ext in '' $ac_executable_extensions; do
4676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4677     ac_cv_prog_BUILD_CC="gcc"
4678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679     break 2
4680   fi
4681 done
4682 done
4683 IFS=$as_save_IFS
4684
4685 fi
4686 fi
4687 BUILD_CC=$ac_cv_prog_BUILD_CC
4688 if test -n "$BUILD_CC"; then
4689   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4690 echo "${ECHO_T}$BUILD_CC" >&6; }
4691 else
4692   { echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6; }
4694 fi
4695
4696
4697      if test -z "$BUILD_CC"; then
4698        # Extract the first word of "cc", so it can be a program name with args.
4699 set dummy cc; ac_word=$2
4700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4702 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4703   echo $ECHO_N "(cached) $ECHO_C" >&6
4704 else
4705   if test -n "$BUILD_CC"; then
4706   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4707 else
4708   ac_prog_rejected=no
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712   IFS=$as_save_IFS
4713   test -z "$as_dir" && as_dir=.
4714   for ac_exec_ext in '' $ac_executable_extensions; do
4715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4716     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4717        ac_prog_rejected=yes
4718        continue
4719      fi
4720     ac_cv_prog_BUILD_CC="cc"
4721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722     break 2
4723   fi
4724 done
4725 done
4726 IFS=$as_save_IFS
4727
4728 if test $ac_prog_rejected = yes; then
4729   # We found a bogon in the path, so make sure we never use it.
4730   set dummy $ac_cv_prog_BUILD_CC
4731   shift
4732   if test $# != 0; then
4733     # We chose a different compiler from the bogus one.
4734     # However, it has the same basename, so the bogon will be chosen
4735     # first if we set BUILD_CC to just the basename; use the full file name.
4736     shift
4737     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4738   fi
4739 fi
4740 fi
4741 fi
4742 BUILD_CC=$ac_cv_prog_BUILD_CC
4743 if test -n "$BUILD_CC"; then
4744   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4745 echo "${ECHO_T}$BUILD_CC" >&6; }
4746 else
4747   { echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6; }
4749 fi
4750
4751
4752      fi
4753   fi
4754   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4755 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4756    { (exit 1); exit 1; }; }
4757   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4758   rm -f conftest*
4759   echo 'int main () { return 0; }' > conftest.$ac_ext
4760   ac_cv_build_exeext=
4761   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4762   (eval $ac_build_link) 2>&5
4763   ac_status=$?
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); }; then
4766     for file in conftest.*; do
4767       case $file in
4768       *.c | *.o | *.obj | *.dSYM) ;;
4769       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4770       esac
4771     done
4772   else
4773     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4774 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4775    { (exit 1); exit 1; }; }
4776   fi
4777   rm -f conftest*
4778   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4779 fi
4780 fi
4781
4782 BUILD_EXEEXT=""
4783 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4784 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4785 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4786 ac_build_exeext=$BUILD_EXEEXT
4787
4788   ac_build_prefix=${build_alias}-
4789   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4790 set dummy ${ac_build_prefix}g++; ac_word=$2
4791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4793 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4794   echo $ECHO_N "(cached) $ECHO_C" >&6
4795 else
4796   if test -n "$BUILD_CXX"; then
4797   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4798 else
4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800 for as_dir in $PATH
4801 do
4802   IFS=$as_save_IFS
4803   test -z "$as_dir" && as_dir=.
4804   for ac_exec_ext in '' $ac_executable_extensions; do
4805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4806     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4808     break 2
4809   fi
4810 done
4811 done
4812 IFS=$as_save_IFS
4813
4814 fi
4815 fi
4816 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4817 if test -n "$BUILD_CXX"; then
4818   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4819 echo "${ECHO_T}$BUILD_CXX" >&6; }
4820 else
4821   { echo "$as_me:$LINENO: result: no" >&5
4822 echo "${ECHO_T}no" >&6; }
4823 fi
4824
4825
4826   if test -z "$BUILD_CXX"; then
4827      # Extract the first word of "g++", so it can be a program name with args.
4828 set dummy g++; ac_word=$2
4829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4831 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4832   echo $ECHO_N "(cached) $ECHO_C" >&6
4833 else
4834   if test -n "$BUILD_CXX"; then
4835   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4836 else
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 for as_dir in $PATH
4839 do
4840   IFS=$as_save_IFS
4841   test -z "$as_dir" && as_dir=.
4842   for ac_exec_ext in '' $ac_executable_extensions; do
4843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4844     ac_cv_prog_BUILD_CXX="g++"
4845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4846     break 2
4847   fi
4848 done
4849 done
4850 IFS=$as_save_IFS
4851
4852 fi
4853 fi
4854 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4855 if test -n "$BUILD_CXX"; then
4856   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4857 echo "${ECHO_T}$BUILD_CXX" >&6; }
4858 else
4859   { echo "$as_me:$LINENO: result: no" >&5
4860 echo "${ECHO_T}no" >&6; }
4861 fi
4862
4863
4864      if test -z "$BUILD_CXX"; then
4865        # Extract the first word of "c++", so it can be a program name with args.
4866 set dummy c++; ac_word=$2
4867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4869 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4870   echo $ECHO_N "(cached) $ECHO_C" >&6
4871 else
4872   if test -n "$BUILD_CXX"; then
4873   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4874 else
4875   ac_prog_rejected=no
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4878 do
4879   IFS=$as_save_IFS
4880   test -z "$as_dir" && as_dir=.
4881   for ac_exec_ext in '' $ac_executable_extensions; do
4882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4883     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4884        ac_prog_rejected=yes
4885        continue
4886      fi
4887     ac_cv_prog_BUILD_CXX="c++"
4888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4889     break 2
4890   fi
4891 done
4892 done
4893 IFS=$as_save_IFS
4894
4895 if test $ac_prog_rejected = yes; then
4896   # We found a bogon in the path, so make sure we never use it.
4897   set dummy $ac_cv_prog_BUILD_CXX
4898   shift
4899   if test $# != 0; then
4900     # We chose a different compiler from the bogus one.
4901     # However, it has the same basename, so the bogon will be chosen
4902     # first if we set BUILD_CXX to just the basename; use the full file name.
4903     shift
4904     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4905   fi
4906 fi
4907 fi
4908 fi
4909 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4910 if test -n "$BUILD_CXX"; then
4911   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4912 echo "${ECHO_T}$BUILD_CXX" >&6; }
4913 else
4914   { echo "$as_me:$LINENO: result: no" >&5
4915 echo "${ECHO_T}no" >&6; }
4916 fi
4917
4918
4919      fi
4920   fi
4921 else
4922   LLVM_CROSS_COMPILING=0
4923
4924 fi
4925
4926 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4927   cvsbuild="yes"
4928   optimize="no"
4929   CVSBUILD=CVSBUILD=1
4930
4931 else
4932   cvsbuild="no"
4933   optimize="yes"
4934 fi
4935
4936
4937 # Check whether --enable-libcpp was given.
4938 if test "${enable_libcpp+set}" = set; then
4939   enableval=$enable_libcpp;
4940 else
4941   enableval=default
4942 fi
4943
4944 case "$enableval" in
4945   yes) ENABLE_LIBCPP=1
4946  ;;
4947   no)  ENABLE_LIBCPP=0
4948  ;;
4949   default) ENABLE_LIBCPP=0
4950 ;;
4951   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4952 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4953    { (exit 1); exit 1; }; } ;;
4954 esac
4955
4956 # Check whether --enable-cxx11 was given.
4957 if test "${enable_cxx11+set}" = set; then
4958   enableval=$enable_cxx11;
4959 else
4960   enableval=default
4961 fi
4962
4963 case "$enableval" in
4964   yes) ENABLE_CXX11=1
4965  ;;
4966   no)  ENABLE_CXX11=0
4967  ;;
4968   default) ENABLE_CXX11=0
4969 ;;
4970   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4971 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4972    { (exit 1); exit 1; }; } ;;
4973 esac
4974
4975 # Check whether --enable-optimized was given.
4976 if test "${enable_optimized+set}" = set; then
4977   enableval=$enable_optimized;
4978 else
4979   enableval=$optimize
4980 fi
4981
4982 if test ${enableval} = "no" ; then
4983   ENABLE_OPTIMIZED=
4984
4985 else
4986   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4987
4988 fi
4989
4990 # Check whether --enable-profiling was given.
4991 if test "${enable_profiling+set}" = set; then
4992   enableval=$enable_profiling;
4993 else
4994   enableval="no"
4995 fi
4996
4997 if test ${enableval} = "no" ; then
4998   ENABLE_PROFILING=
4999
5000 else
5001   ENABLE_PROFILING=ENABLE_PROFILING=1
5002
5003 fi
5004
5005 # Check whether --enable-assertions was given.
5006 if test "${enable_assertions+set}" = set; then
5007   enableval=$enable_assertions;
5008 else
5009   enableval="yes"
5010 fi
5011
5012 if test ${enableval} = "yes" ; then
5013   DISABLE_ASSERTIONS=
5014
5015 else
5016   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5017
5018 fi
5019
5020 # Check whether --enable-werror was given.
5021 if test "${enable_werror+set}" = set; then
5022   enableval=$enable_werror;
5023 else
5024   enableval="no"
5025 fi
5026
5027 case "$enableval" in
5028   yes) ENABLE_WERROR=1
5029  ;;
5030   no)  ENABLE_WERROR=0
5031  ;;
5032   default) ENABLE_WERROR=0
5033 ;;
5034   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5035 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5036    { (exit 1); exit 1; }; } ;;
5037 esac
5038
5039 # Check whether --enable-expensive-checks was given.
5040 if test "${enable_expensive_checks+set}" = set; then
5041   enableval=$enable_expensive_checks;
5042 else
5043   enableval="no"
5044 fi
5045
5046 if test ${enableval} = "yes" ; then
5047   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5048
5049   EXPENSIVE_CHECKS=yes
5050
5051 else
5052   ENABLE_EXPENSIVE_CHECKS=
5053
5054   EXPENSIVE_CHECKS=no
5055
5056 fi
5057
5058 # Check whether --enable-debug-runtime was given.
5059 if test "${enable_debug_runtime+set}" = set; then
5060   enableval=$enable_debug_runtime;
5061 else
5062   enableval=no
5063 fi
5064
5065 if test ${enableval} = "no" ; then
5066   DEBUG_RUNTIME=
5067
5068 else
5069   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5070
5071 fi
5072
5073 # Check whether --enable-debug-symbols was given.
5074 if test "${enable_debug_symbols+set}" = set; then
5075   enableval=$enable_debug_symbols;
5076 else
5077   enableval=no
5078 fi
5079
5080 if test ${enableval} = "no" ; then
5081   DEBUG_SYMBOLS=
5082
5083 else
5084   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5085
5086 fi
5087
5088 # Check whether --enable-jit was given.
5089 if test "${enable_jit+set}" = set; then
5090   enableval=$enable_jit;
5091 else
5092   enableval=default
5093 fi
5094
5095 if test ${enableval} = "no"
5096 then
5097   JIT=
5098
5099 else
5100   case "$llvm_cv_target_arch" in
5101     x86)         TARGET_HAS_JIT=1
5102  ;;
5103     Sparc)       TARGET_HAS_JIT=0
5104  ;;
5105     PowerPC)     TARGET_HAS_JIT=1
5106  ;;
5107     x86_64)      TARGET_HAS_JIT=1
5108  ;;
5109     ARM)         TARGET_HAS_JIT=1
5110  ;;
5111     AArch64)     TARGET_HAS_JIT=0
5112  ;;
5113     Mips)        TARGET_HAS_JIT=1
5114  ;;
5115     XCore)       TARGET_HAS_JIT=0
5116  ;;
5117     MSP430)      TARGET_HAS_JIT=0
5118  ;;
5119     Hexagon)     TARGET_HAS_JIT=0
5120  ;;
5121     NVPTX)       TARGET_HAS_JIT=0
5122  ;;
5123     SystemZ)     TARGET_HAS_JIT=1
5124  ;;
5125     *)           TARGET_HAS_JIT=0
5126  ;;
5127   esac
5128 fi
5129
5130 # Check whether --enable-docs was given.
5131 if test "${enable_docs+set}" = set; then
5132   enableval=$enable_docs;
5133 else
5134   enableval=default
5135 fi
5136
5137 case "$enableval" in
5138   yes) ENABLE_DOCS=1
5139  ;;
5140   no)  ENABLE_DOCS=0
5141  ;;
5142   default) ENABLE_DOCS=1
5143  ;;
5144   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5145 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5146    { (exit 1); exit 1; }; } ;;
5147 esac
5148
5149 # Check whether --enable-doxygen was given.
5150 if test "${enable_doxygen+set}" = set; then
5151   enableval=$enable_doxygen;
5152 else
5153   enableval=default
5154 fi
5155
5156 case "$enableval" in
5157   yes) ENABLE_DOXYGEN=1
5158  ;;
5159   no)  ENABLE_DOXYGEN=0
5160  ;;
5161   default) ENABLE_DOXYGEN=0
5162  ;;
5163   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5164 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5165    { (exit 1); exit 1; }; } ;;
5166 esac
5167
5168 # Check whether --enable-threads was given.
5169 if test "${enable_threads+set}" = set; then
5170   enableval=$enable_threads;
5171 else
5172   enableval=default
5173 fi
5174
5175 case "$enableval" in
5176   yes) ENABLE_THREADS=1
5177  ;;
5178   no)  ENABLE_THREADS=0
5179  ;;
5180   default) ENABLE_THREADS=1
5181  ;;
5182   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5183 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5184    { (exit 1); exit 1; }; } ;;
5185 esac
5186
5187 cat >>confdefs.h <<_ACEOF
5188 #define ENABLE_THREADS $ENABLE_THREADS
5189 _ACEOF
5190
5191
5192 # Check whether --enable-pthreads was given.
5193 if test "${enable_pthreads+set}" = set; then
5194   enableval=$enable_pthreads;
5195 else
5196   enableval=default
5197 fi
5198
5199 case "$enableval" in
5200   yes) ENABLE_PTHREADS=1
5201  ;;
5202   no)  ENABLE_PTHREADS=0
5203  ;;
5204   default) ENABLE_PTHREADS=1
5205  ;;
5206   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5207 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5208    { (exit 1); exit 1; }; } ;;
5209 esac
5210
5211 # Check whether --enable-zlib was given.
5212 if test "${enable_zlib+set}" = set; then
5213   enableval=$enable_zlib;
5214 else
5215   enableval=default
5216 fi
5217
5218 case "$enableval" in
5219   yes) LLVM_ENABLE_ZLIB=1
5220  ;;
5221   no)  LLVM_ENABLE_ZLIB=0
5222  ;;
5223   default) LLVM_ENABLE_ZLIB=1
5224  ;;
5225   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5226 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5227    { (exit 1); exit 1; }; } ;;
5228 esac
5229
5230 cat >>confdefs.h <<_ACEOF
5231 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5232 _ACEOF
5233
5234
5235 # Check whether --enable-pic was given.
5236 if test "${enable_pic+set}" = set; then
5237   enableval=$enable_pic;
5238 else
5239   enableval=default
5240 fi
5241
5242 case "$enableval" in
5243   yes) ENABLE_PIC=1
5244  ;;
5245   no)  ENABLE_PIC=0
5246  ;;
5247   default) ENABLE_PIC=1
5248  ;;
5249   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5250 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5251    { (exit 1); exit 1; }; } ;;
5252 esac
5253
5254 cat >>confdefs.h <<_ACEOF
5255 #define ENABLE_PIC $ENABLE_PIC
5256 _ACEOF
5257
5258
5259 # Check whether --enable-shared was given.
5260 if test "${enable_shared+set}" = set; then
5261   enableval=$enable_shared;
5262 else
5263   enableval=default
5264 fi
5265
5266 case "$enableval" in
5267   yes) ENABLE_SHARED=1
5268  ;;
5269   no)  ENABLE_SHARED=0
5270  ;;
5271   default) ENABLE_SHARED=0
5272  ;;
5273   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5274 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5275    { (exit 1); exit 1; }; } ;;
5276 esac
5277
5278 # Check whether --enable-embed-stdcxx was given.
5279 if test "${enable_embed_stdcxx+set}" = set; then
5280   enableval=$enable_embed_stdcxx;
5281 else
5282   enableval=default
5283 fi
5284
5285 case "$enableval" in
5286   yes) ENABLE_EMBED_STDCXX=1
5287  ;;
5288   no)  ENABLE_EMBED_STDCXX=0
5289  ;;
5290   default) ENABLE_EMBED_STDCXX=1
5291  ;;
5292   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5293 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5294    { (exit 1); exit 1; }; } ;;
5295 esac
5296
5297 # Check whether --enable-timestamps was given.
5298 if test "${enable_timestamps+set}" = set; then
5299   enableval=$enable_timestamps;
5300 else
5301   enableval=default
5302 fi
5303
5304 case "$enableval" in
5305   yes) ENABLE_TIMESTAMPS=1
5306  ;;
5307   no)  ENABLE_TIMESTAMPS=0
5308  ;;
5309   default) ENABLE_TIMESTAMPS=1
5310  ;;
5311   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5312 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5313    { (exit 1); exit 1; }; } ;;
5314 esac
5315
5316 cat >>confdefs.h <<_ACEOF
5317 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5318 _ACEOF
5319
5320
5321 TARGETS_TO_BUILD=""
5322 # Check whether --enable-targets was given.
5323 if test "${enable_targets+set}" = set; then
5324   enableval=$enable_targets;
5325 else
5326   enableval=all
5327 fi
5328
5329 if test "$enableval" = host-only ; then
5330   enableval=host
5331 fi
5332 case "$enableval" in
5333   all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;;
5334   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5335       case "$a_target" in
5336         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5337         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5338         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5339         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5340         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5341         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5342         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5343         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5344         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5345         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5346         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5347         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5348         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5349         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5350         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5351         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5352         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5353         host) case "$llvm_cv_target_arch" in
5354             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5355             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5356             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5357             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5358             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5359             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5360             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5361             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5362             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5363             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5364             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5365             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5366             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5367 echo "$as_me: error: Can not set target to build" >&2;}
5368    { (exit 1); exit 1; }; } ;;
5369           esac ;;
5370         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5371 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5372    { (exit 1); exit 1; }; } ;;
5373       esac
5374   done
5375   ;;
5376 esac
5377 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5378
5379
5380 # Determine whether we are building LLVM support for the native architecture.
5381 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5382 for a_target in $TARGETS_TO_BUILD; do
5383   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5384
5385 cat >>confdefs.h <<_ACEOF
5386 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5387 _ACEOF
5388
5389     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5390     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5391     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5392     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5393     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5394       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5395     fi
5396     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5397       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5398     fi
5399
5400 cat >>confdefs.h <<_ACEOF
5401 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5402 _ACEOF
5403
5404
5405 cat >>confdefs.h <<_ACEOF
5406 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5407 _ACEOF
5408
5409
5410 cat >>confdefs.h <<_ACEOF
5411 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5412 _ACEOF
5413
5414
5415 cat >>confdefs.h <<_ACEOF
5416 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5417 _ACEOF
5418
5419     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5420
5421 cat >>confdefs.h <<_ACEOF
5422 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5423 _ACEOF
5424
5425     fi
5426     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5427
5428 cat >>confdefs.h <<_ACEOF
5429 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5430 _ACEOF
5431
5432     fi
5433   fi
5434 done
5435
5436 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5437 # target feature def files.
5438 LLVM_ENUM_TARGETS=""
5439 LLVM_ENUM_ASM_PRINTERS=""
5440 LLVM_ENUM_ASM_PARSERS=""
5441 LLVM_ENUM_DISASSEMBLERS=""
5442 for target_to_build in $TARGETS_TO_BUILD; do
5443   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5444   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5445     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5446   fi
5447   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5448     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5449   fi
5450   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5451     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5452   fi
5453 done
5454
5455
5456
5457
5458
5459
5460 # Check whether --with-optimize-option was given.
5461 if test "${with_optimize_option+set}" = set; then
5462   withval=$with_optimize_option;
5463 else
5464   withval=default
5465 fi
5466
5467 { echo "$as_me:$LINENO: checking optimization flags" >&5
5468 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5469 case "$withval" in
5470   default)
5471     case "$llvm_cv_os_type" in
5472     FreeBSD) optimize_option=-O2 ;;
5473     MingW) optimize_option=-O2 ;;
5474     *)     optimize_option=-O3 ;;
5475     esac ;;
5476   *) optimize_option="$withval" ;;
5477 esac
5478 OPTIMIZE_OPTION=$optimize_option
5479
5480 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5481 echo "${ECHO_T}$optimize_option" >&6; }
5482
5483
5484 # Check whether --with-extra-options was given.
5485 if test "${with_extra_options+set}" = set; then
5486   withval=$with_extra_options;
5487 else
5488   withval=default
5489 fi
5490
5491 case "$withval" in
5492   default) EXTRA_OPTIONS= ;;
5493   *) EXTRA_OPTIONS=$withval ;;
5494 esac
5495 EXTRA_OPTIONS=$EXTRA_OPTIONS
5496
5497
5498
5499 # Check whether --with-extra-ld-options was given.
5500 if test "${with_extra_ld_options+set}" = set; then
5501   withval=$with_extra_ld_options;
5502 else
5503   withval=default
5504 fi
5505
5506 case "$withval" in
5507   default) EXTRA_LD_OPTIONS= ;;
5508   *) EXTRA_LD_OPTIONS=$withval ;;
5509 esac
5510 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5511
5512
5513 # Check whether --enable-bindings was given.
5514 if test "${enable_bindings+set}" = set; then
5515   enableval=$enable_bindings;
5516 else
5517   enableval=default
5518 fi
5519
5520 BINDINGS_TO_BUILD=""
5521 case "$enableval" in
5522   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5523   all ) BINDINGS_TO_BUILD="ocaml" ;;
5524   none | no) BINDINGS_TO_BUILD="" ;;
5525   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5526       case "$a_binding" in
5527         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5528         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5529 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5530    { (exit 1); exit 1; }; } ;;
5531       esac
5532   done
5533   ;;
5534 esac
5535
5536
5537 # Check whether --with-ocaml-libdir was given.
5538 if test "${with_ocaml_libdir+set}" = set; then
5539   withval=$with_ocaml_libdir;
5540 else
5541   withval=auto
5542 fi
5543
5544 case "$withval" in
5545   auto) with_ocaml_libdir="$withval" ;;
5546   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5547   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5548 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5549    { (exit 1); exit 1; }; } ;;
5550 esac
5551
5552
5553 # Check whether --with-clang-resource-dir was given.
5554 if test "${with_clang_resource_dir+set}" = set; then
5555   withval=$with_clang_resource_dir;
5556 else
5557   withval=""
5558 fi
5559
5560
5561 cat >>confdefs.h <<_ACEOF
5562 #define CLANG_RESOURCE_DIR "$withval"
5563 _ACEOF
5564
5565
5566
5567 # Check whether --with-c-include-dirs was given.
5568 if test "${with_c_include_dirs+set}" = set; then
5569   withval=$with_c_include_dirs;
5570 else
5571   withval=""
5572 fi
5573
5574
5575 cat >>confdefs.h <<_ACEOF
5576 #define C_INCLUDE_DIRS "$withval"
5577 _ACEOF
5578
5579
5580 # Clang normally uses the system c++ headers and libraries. With this option,
5581 # clang will use the ones provided by a gcc installation instead. This option should
5582 # be passed the same value that was used with --prefix when configuring gcc.
5583
5584 # Check whether --with-gcc-toolchain was given.
5585 if test "${with_gcc_toolchain+set}" = set; then
5586   withval=$with_gcc_toolchain;
5587 else
5588   withval=""
5589 fi
5590
5591
5592 cat >>confdefs.h <<_ACEOF
5593 #define GCC_INSTALL_PREFIX "$withval"
5594 _ACEOF
5595
5596
5597
5598 # Check whether --with-binutils-include was given.
5599 if test "${with_binutils_include+set}" = set; then
5600   withval=$with_binutils_include;
5601 else
5602   withval=default
5603 fi
5604
5605 case "$withval" in
5606   default) WITH_BINUTILS_INCDIR=default ;;
5607   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5608   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5609 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5610    { (exit 1); exit 1; }; } ;;
5611 esac
5612 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5613   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5614
5615   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5616      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5617      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5618 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5619    { (exit 1); exit 1; }; };
5620   fi
5621 fi
5622
5623
5624 # Check whether --with-bug-report-url was given.
5625 if test "${with_bug_report_url+set}" = set; then
5626   withval=$with_bug_report_url;
5627 else
5628   withval="http://llvm.org/bugs/"
5629 fi
5630
5631
5632 cat >>confdefs.h <<_ACEOF
5633 #define BUG_REPORT_URL "$withval"
5634 _ACEOF
5635
5636
5637 # Check whether --enable-terminfo was given.
5638 if test "${enable_terminfo+set}" = set; then
5639   enableval=$enable_terminfo; case "$enableval" in
5640     yes) llvm_cv_enable_terminfo="yes" ;;
5641     no)  llvm_cv_enable_terminfo="no"  ;;
5642     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5643 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5644    { (exit 1); exit 1; }; } ;;
5645   esac
5646 else
5647   llvm_cv_enable_terminfo="yes"
5648 fi
5649
5650
5651 # Check whether --enable-libffi was given.
5652 if test "${enable_libffi+set}" = set; then
5653   enableval=$enable_libffi; case "$enableval" in
5654     yes) llvm_cv_enable_libffi="yes" ;;
5655     no)  llvm_cv_enable_libffi="no"  ;;
5656     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5657 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5658    { (exit 1); exit 1; }; } ;;
5659   esac
5660 else
5661   llvm_cv_enable_libffi=no
5662 fi
5663
5664
5665
5666 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5667 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5668 if test "${lt_cv_path_NM+set}" = set; then
5669   echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671   if test -n "$NM"; then
5672   # Let the user override the test.
5673   lt_cv_path_NM="$NM"
5674 else
5675   lt_nm_to_check="${ac_tool_prefix}nm"
5676   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5677     lt_nm_to_check="$lt_nm_to_check nm"
5678   fi
5679   for lt_tmp_nm in $lt_nm_to_check; do
5680     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5681     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5682       IFS="$lt_save_ifs"
5683       test -z "$ac_dir" && ac_dir=.
5684       tmp_nm="$ac_dir/$lt_tmp_nm"
5685       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5686         # Check to see if the nm accepts a BSD-compat flag.
5687         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5688         #   nm: unknown option "B" ignored
5689         # Tru64's nm complains that /dev/null is an invalid object file
5690         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5691         */dev/null* | *'Invalid file or object type'*)
5692           lt_cv_path_NM="$tmp_nm -B"
5693           break
5694           ;;
5695         *)
5696           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5697           */dev/null*)
5698             lt_cv_path_NM="$tmp_nm -p"
5699             break
5700             ;;
5701           *)
5702             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5703             continue # so that we can try to find one that supports BSD flags
5704             ;;
5705           esac
5706           ;;
5707         esac
5708       fi
5709     done
5710     IFS="$lt_save_ifs"
5711   done
5712   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5713 fi
5714 fi
5715 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5716 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5717 NM="$lt_cv_path_NM"
5718
5719
5720
5721 { echo "$as_me:$LINENO: checking for GNU make" >&5
5722 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5723 if test "${llvm_cv_gnu_make_command+set}" = set; then
5724   echo $ECHO_N "(cached) $ECHO_C" >&6
5725 else
5726   llvm_cv_gnu_make_command=''
5727  for a in "$MAKE" make gmake gnumake ; do
5728   if test -z "$a" ; then continue ; fi ;
5729   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5730   then
5731    llvm_cv_gnu_make_command=$a ;
5732    break;
5733   fi
5734  done
5735 fi
5736 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5737 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5738  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5739    ifGNUmake='' ;
5740  else
5741    ifGNUmake='#' ;
5742    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5743 echo "${ECHO_T}\"Not found\"" >&6; };
5744  fi
5745
5746
5747 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5748 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5749 LN_S=$as_ln_s
5750 if test "$LN_S" = "ln -s"; then
5751   { echo "$as_me:$LINENO: result: yes" >&5
5752 echo "${ECHO_T}yes" >&6; }
5753 else
5754   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5755 echo "${ECHO_T}no, using $LN_S" >&6; }
5756 fi
5757
5758 # Extract the first word of "cmp", so it can be a program name with args.
5759 set dummy cmp; ac_word=$2
5760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5762 if test "${ac_cv_path_CMP+set}" = set; then
5763   echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765   case $CMP in
5766   [\\/]* | ?:[\\/]*)
5767   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5768   ;;
5769   *)
5770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 for as_dir in $PATH
5772 do
5773   IFS=$as_save_IFS
5774   test -z "$as_dir" && as_dir=.
5775   for ac_exec_ext in '' $ac_executable_extensions; do
5776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5777     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5779     break 2
5780   fi
5781 done
5782 done
5783 IFS=$as_save_IFS
5784
5785   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5786   ;;
5787 esac
5788 fi
5789 CMP=$ac_cv_path_CMP
5790 if test -n "$CMP"; then
5791   { echo "$as_me:$LINENO: result: $CMP" >&5
5792 echo "${ECHO_T}$CMP" >&6; }
5793 else
5794   { echo "$as_me:$LINENO: result: no" >&5
5795 echo "${ECHO_T}no" >&6; }
5796 fi
5797
5798
5799 # Extract the first word of "cp", so it can be a program name with args.
5800 set dummy cp; ac_word=$2
5801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5803 if test "${ac_cv_path_CP+set}" = set; then
5804   echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806   case $CP in
5807   [\\/]* | ?:[\\/]*)
5808   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5809   ;;
5810   *)
5811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 for as_dir in $PATH
5813 do
5814   IFS=$as_save_IFS
5815   test -z "$as_dir" && as_dir=.
5816   for ac_exec_ext in '' $ac_executable_extensions; do
5817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5818     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5820     break 2
5821   fi
5822 done
5823 done
5824 IFS=$as_save_IFS
5825
5826   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5827   ;;
5828 esac
5829 fi
5830 CP=$ac_cv_path_CP
5831 if test -n "$CP"; then
5832   { echo "$as_me:$LINENO: result: $CP" >&5
5833 echo "${ECHO_T}$CP" >&6; }
5834 else
5835   { echo "$as_me:$LINENO: result: no" >&5
5836 echo "${ECHO_T}no" >&6; }
5837 fi
5838
5839
5840 # Extract the first word of "date", so it can be a program name with args.
5841 set dummy date; ac_word=$2
5842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5844 if test "${ac_cv_path_DATE+set}" = set; then
5845   echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847   case $DATE in
5848   [\\/]* | ?:[\\/]*)
5849   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5850   ;;
5851   *)
5852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853 for as_dir in $PATH
5854 do
5855   IFS=$as_save_IFS
5856   test -z "$as_dir" && as_dir=.
5857   for ac_exec_ext in '' $ac_executable_extensions; do
5858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5859     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5861     break 2
5862   fi
5863 done
5864 done
5865 IFS=$as_save_IFS
5866
5867   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5868   ;;
5869 esac
5870 fi
5871 DATE=$ac_cv_path_DATE
5872 if test -n "$DATE"; then
5873   { echo "$as_me:$LINENO: result: $DATE" >&5
5874 echo "${ECHO_T}$DATE" >&6; }
5875 else
5876   { echo "$as_me:$LINENO: result: no" >&5
5877 echo "${ECHO_T}no" >&6; }
5878 fi
5879
5880
5881 # Extract the first word of "find", so it can be a program name with args.
5882 set dummy find; ac_word=$2
5883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5885 if test "${ac_cv_path_FIND+set}" = set; then
5886   echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888   case $FIND in
5889   [\\/]* | ?:[\\/]*)
5890   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5891   ;;
5892   *)
5893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH
5895 do
5896   IFS=$as_save_IFS
5897   test -z "$as_dir" && as_dir=.
5898   for ac_exec_ext in '' $ac_executable_extensions; do
5899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5900     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5902     break 2
5903   fi
5904 done
5905 done
5906 IFS=$as_save_IFS
5907
5908   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5909   ;;
5910 esac
5911 fi
5912 FIND=$ac_cv_path_FIND
5913 if test -n "$FIND"; then
5914   { echo "$as_me:$LINENO: result: $FIND" >&5
5915 echo "${ECHO_T}$FIND" >&6; }
5916 else
5917   { echo "$as_me:$LINENO: result: no" >&5
5918 echo "${ECHO_T}no" >&6; }
5919 fi
5920
5921
5922 # Extract the first word of "grep", so it can be a program name with args.
5923 set dummy grep; ac_word=$2
5924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5926 if test "${ac_cv_path_GREP+set}" = set; then
5927   echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929   case $GREP in
5930   [\\/]* | ?:[\\/]*)
5931   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5932   ;;
5933   *)
5934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH
5936 do
5937   IFS=$as_save_IFS
5938   test -z "$as_dir" && as_dir=.
5939   for ac_exec_ext in '' $ac_executable_extensions; do
5940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5941     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5943     break 2
5944   fi
5945 done
5946 done
5947 IFS=$as_save_IFS
5948
5949   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5950   ;;
5951 esac
5952 fi
5953 GREP=$ac_cv_path_GREP
5954 if test -n "$GREP"; then
5955   { echo "$as_me:$LINENO: result: $GREP" >&5
5956 echo "${ECHO_T}$GREP" >&6; }
5957 else
5958   { echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6; }
5960 fi
5961
5962
5963 # Extract the first word of "mkdir", so it can be a program name with args.
5964 set dummy mkdir; ac_word=$2
5965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5967 if test "${ac_cv_path_MKDIR+set}" = set; then
5968   echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970   case $MKDIR in
5971   [\\/]* | ?:[\\/]*)
5972   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5973   ;;
5974   *)
5975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH
5977 do
5978   IFS=$as_save_IFS
5979   test -z "$as_dir" && as_dir=.
5980   for ac_exec_ext in '' $ac_executable_extensions; do
5981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5982     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5984     break 2
5985   fi
5986 done
5987 done
5988 IFS=$as_save_IFS
5989
5990   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5991   ;;
5992 esac
5993 fi
5994 MKDIR=$ac_cv_path_MKDIR
5995 if test -n "$MKDIR"; then
5996   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5997 echo "${ECHO_T}$MKDIR" >&6; }
5998 else
5999   { echo "$as_me:$LINENO: result: no" >&5
6000 echo "${ECHO_T}no" >&6; }
6001 fi
6002
6003
6004 # Extract the first word of "mv", so it can be a program name with args.
6005 set dummy mv; ac_word=$2
6006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6008 if test "${ac_cv_path_MV+set}" = set; then
6009   echo $ECHO_N "(cached) $ECHO_C" >&6
6010 else
6011   case $MV in
6012   [\\/]* | ?:[\\/]*)
6013   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6014   ;;
6015   *)
6016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 for as_dir in $PATH
6018 do
6019   IFS=$as_save_IFS
6020   test -z "$as_dir" && as_dir=.
6021   for ac_exec_ext in '' $ac_executable_extensions; do
6022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6023     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025     break 2
6026   fi
6027 done
6028 done
6029 IFS=$as_save_IFS
6030
6031   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6032   ;;
6033 esac
6034 fi
6035 MV=$ac_cv_path_MV
6036 if test -n "$MV"; then
6037   { echo "$as_me:$LINENO: result: $MV" >&5
6038 echo "${ECHO_T}$MV" >&6; }
6039 else
6040   { echo "$as_me:$LINENO: result: no" >&5
6041 echo "${ECHO_T}no" >&6; }
6042 fi
6043
6044
6045 if test -n "$ac_tool_prefix"; then
6046   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6047 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6050 if test "${ac_cv_prog_RANLIB+set}" = set; then
6051   echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053   if test -n "$RANLIB"; then
6054   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6055 else
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 for as_dir in $PATH
6058 do
6059   IFS=$as_save_IFS
6060   test -z "$as_dir" && as_dir=.
6061   for ac_exec_ext in '' $ac_executable_extensions; do
6062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6063     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065     break 2
6066   fi
6067 done
6068 done
6069 IFS=$as_save_IFS
6070
6071 fi
6072 fi
6073 RANLIB=$ac_cv_prog_RANLIB
6074 if test -n "$RANLIB"; then
6075   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6076 echo "${ECHO_T}$RANLIB" >&6; }
6077 else
6078   { echo "$as_me:$LINENO: result: no" >&5
6079 echo "${ECHO_T}no" >&6; }
6080 fi
6081
6082
6083 fi
6084 if test -z "$ac_cv_prog_RANLIB"; then
6085   ac_ct_RANLIB=$RANLIB
6086   # Extract the first word of "ranlib", so it can be a program name with args.
6087 set dummy ranlib; ac_word=$2
6088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6090 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6091   echo $ECHO_N "(cached) $ECHO_C" >&6
6092 else
6093   if test -n "$ac_ct_RANLIB"; then
6094   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6095 else
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 for as_dir in $PATH
6098 do
6099   IFS=$as_save_IFS
6100   test -z "$as_dir" && as_dir=.
6101   for ac_exec_ext in '' $ac_executable_extensions; do
6102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6103     ac_cv_prog_ac_ct_RANLIB="ranlib"
6104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6105     break 2
6106   fi
6107 done
6108 done
6109 IFS=$as_save_IFS
6110
6111 fi
6112 fi
6113 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6114 if test -n "$ac_ct_RANLIB"; then
6115   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6116 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6117 else
6118   { echo "$as_me:$LINENO: result: no" >&5
6119 echo "${ECHO_T}no" >&6; }
6120 fi
6121
6122   if test "x$ac_ct_RANLIB" = x; then
6123     RANLIB=":"
6124   else
6125     case $cross_compiling:$ac_tool_warned in
6126 yes:)
6127 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6128 whose name does not start with the host triplet.  If you think this
6129 configuration is useful to you, please write to autoconf@gnu.org." >&5
6130 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6131 whose name does not start with the host triplet.  If you think this
6132 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6133 ac_tool_warned=yes ;;
6134 esac
6135     RANLIB=$ac_ct_RANLIB
6136   fi
6137 else
6138   RANLIB="$ac_cv_prog_RANLIB"
6139 fi
6140
6141 if test -n "$ac_tool_prefix"; then
6142   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6143 set dummy ${ac_tool_prefix}ar; ac_word=$2
6144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6146 if test "${ac_cv_prog_AR+set}" = set; then
6147   echo $ECHO_N "(cached) $ECHO_C" >&6
6148 else
6149   if test -n "$AR"; then
6150   ac_cv_prog_AR="$AR" # Let the user override the test.
6151 else
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6154 do
6155   IFS=$as_save_IFS
6156   test -z "$as_dir" && as_dir=.
6157   for ac_exec_ext in '' $ac_executable_extensions; do
6158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6159     ac_cv_prog_AR="${ac_tool_prefix}ar"
6160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161     break 2
6162   fi
6163 done
6164 done
6165 IFS=$as_save_IFS
6166
6167 fi
6168 fi
6169 AR=$ac_cv_prog_AR
6170 if test -n "$AR"; then
6171   { echo "$as_me:$LINENO: result: $AR" >&5
6172 echo "${ECHO_T}$AR" >&6; }
6173 else
6174   { echo "$as_me:$LINENO: result: no" >&5
6175 echo "${ECHO_T}no" >&6; }
6176 fi
6177
6178
6179 fi
6180 if test -z "$ac_cv_prog_AR"; then
6181   ac_ct_AR=$AR
6182   # Extract the first word of "ar", so it can be a program name with args.
6183 set dummy ar; ac_word=$2
6184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6186 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6187   echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189   if test -n "$ac_ct_AR"; then
6190   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6191 else
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 for as_dir in $PATH
6194 do
6195   IFS=$as_save_IFS
6196   test -z "$as_dir" && as_dir=.
6197   for ac_exec_ext in '' $ac_executable_extensions; do
6198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6199     ac_cv_prog_ac_ct_AR="ar"
6200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6201     break 2
6202   fi
6203 done
6204 done
6205 IFS=$as_save_IFS
6206
6207 fi
6208 fi
6209 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6210 if test -n "$ac_ct_AR"; then
6211   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6212 echo "${ECHO_T}$ac_ct_AR" >&6; }
6213 else
6214   { echo "$as_me:$LINENO: result: no" >&5
6215 echo "${ECHO_T}no" >&6; }
6216 fi
6217
6218   if test "x$ac_ct_AR" = x; then
6219     AR="false"
6220   else
6221     case $cross_compiling:$ac_tool_warned in
6222 yes:)
6223 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6224 whose name does not start with the host triplet.  If you think this
6225 configuration is useful to you, please write to autoconf@gnu.org." >&5
6226 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6227 whose name does not start with the host triplet.  If you think this
6228 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6229 ac_tool_warned=yes ;;
6230 esac
6231     AR=$ac_ct_AR
6232   fi
6233 else
6234   AR="$ac_cv_prog_AR"
6235 fi
6236
6237 # Extract the first word of "rm", so it can be a program name with args.
6238 set dummy rm; ac_word=$2
6239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6241 if test "${ac_cv_path_RM+set}" = set; then
6242   echo $ECHO_N "(cached) $ECHO_C" >&6
6243 else
6244   case $RM in
6245   [\\/]* | ?:[\\/]*)
6246   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6247   ;;
6248   *)
6249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250 for as_dir in $PATH
6251 do
6252   IFS=$as_save_IFS
6253   test -z "$as_dir" && as_dir=.
6254   for ac_exec_ext in '' $ac_executable_extensions; do
6255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6256     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6258     break 2
6259   fi
6260 done
6261 done
6262 IFS=$as_save_IFS
6263
6264   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6265   ;;
6266 esac
6267 fi
6268 RM=$ac_cv_path_RM
6269 if test -n "$RM"; then
6270   { echo "$as_me:$LINENO: result: $RM" >&5
6271 echo "${ECHO_T}$RM" >&6; }
6272 else
6273   { echo "$as_me:$LINENO: result: no" >&5
6274 echo "${ECHO_T}no" >&6; }
6275 fi
6276
6277
6278 # Extract the first word of "sed", so it can be a program name with args.
6279 set dummy sed; ac_word=$2
6280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6282 if test "${ac_cv_path_SED+set}" = set; then
6283   echo $ECHO_N "(cached) $ECHO_C" >&6
6284 else
6285   case $SED in
6286   [\\/]* | ?:[\\/]*)
6287   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6288   ;;
6289   *)
6290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6292 do
6293   IFS=$as_save_IFS
6294   test -z "$as_dir" && as_dir=.
6295   for ac_exec_ext in '' $ac_executable_extensions; do
6296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6297     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299     break 2
6300   fi
6301 done
6302 done
6303 IFS=$as_save_IFS
6304
6305   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6306   ;;
6307 esac
6308 fi
6309 SED=$ac_cv_path_SED
6310 if test -n "$SED"; then
6311   { echo "$as_me:$LINENO: result: $SED" >&5
6312 echo "${ECHO_T}$SED" >&6; }
6313 else
6314   { echo "$as_me:$LINENO: result: no" >&5
6315 echo "${ECHO_T}no" >&6; }
6316 fi
6317
6318
6319 # Extract the first word of "tar", so it can be a program name with args.
6320 set dummy tar; ac_word=$2
6321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6323 if test "${ac_cv_path_TAR+set}" = set; then
6324   echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326   case $TAR in
6327   [\\/]* | ?:[\\/]*)
6328   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6329   ;;
6330   *)
6331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332 for as_dir in $PATH
6333 do
6334   IFS=$as_save_IFS
6335   test -z "$as_dir" && as_dir=.
6336   for ac_exec_ext in '' $ac_executable_extensions; do
6337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6338     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6340     break 2
6341   fi
6342 done
6343 done
6344 IFS=$as_save_IFS
6345
6346   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6347   ;;
6348 esac
6349 fi
6350 TAR=$ac_cv_path_TAR
6351 if test -n "$TAR"; then
6352   { echo "$as_me:$LINENO: result: $TAR" >&5
6353 echo "${ECHO_T}$TAR" >&6; }
6354 else
6355   { echo "$as_me:$LINENO: result: no" >&5
6356 echo "${ECHO_T}no" >&6; }
6357 fi
6358
6359
6360 # Extract the first word of "pwd", so it can be a program name with args.
6361 set dummy pwd; ac_word=$2
6362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6364 if test "${ac_cv_path_BINPWD+set}" = set; then
6365   echo $ECHO_N "(cached) $ECHO_C" >&6
6366 else
6367   case $BINPWD in
6368   [\\/]* | ?:[\\/]*)
6369   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6370   ;;
6371   *)
6372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH
6374 do
6375   IFS=$as_save_IFS
6376   test -z "$as_dir" && as_dir=.
6377   for ac_exec_ext in '' $ac_executable_extensions; do
6378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6379     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6381     break 2
6382   fi
6383 done
6384 done
6385 IFS=$as_save_IFS
6386
6387   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6388   ;;
6389 esac
6390 fi
6391 BINPWD=$ac_cv_path_BINPWD
6392 if test -n "$BINPWD"; then
6393   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6394 echo "${ECHO_T}$BINPWD" >&6; }
6395 else
6396   { echo "$as_me:$LINENO: result: no" >&5
6397 echo "${ECHO_T}no" >&6; }
6398 fi
6399
6400
6401
6402 # Extract the first word of "Graphviz", so it can be a program name with args.
6403 set dummy Graphviz; ac_word=$2
6404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6406 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6407   echo $ECHO_N "(cached) $ECHO_C" >&6
6408 else
6409   case $GRAPHVIZ in
6410   [\\/]* | ?:[\\/]*)
6411   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6412   ;;
6413   *)
6414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6416 do
6417   IFS=$as_save_IFS
6418   test -z "$as_dir" && as_dir=.
6419   for ac_exec_ext in '' $ac_executable_extensions; do
6420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6421     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6423     break 2
6424   fi
6425 done
6426 done
6427 IFS=$as_save_IFS
6428
6429   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6430   ;;
6431 esac
6432 fi
6433 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6434 if test -n "$GRAPHVIZ"; then
6435   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6436 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6437 else
6438   { echo "$as_me:$LINENO: result: no" >&5
6439 echo "${ECHO_T}no" >&6; }
6440 fi
6441
6442
6443 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6444
6445 cat >>confdefs.h <<\_ACEOF
6446 #define HAVE_GRAPHVIZ 1
6447 _ACEOF
6448
6449     if test "$llvm_cv_os_type" = "MingW" ; then
6450     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6451   fi
6452
6453 cat >>confdefs.h <<_ACEOF
6454 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6455 _ACEOF
6456
6457 fi
6458 # Extract the first word of "dot", so it can be a program name with args.
6459 set dummy dot; ac_word=$2
6460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6462 if test "${ac_cv_path_DOT+set}" = set; then
6463   echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465   case $DOT in
6466   [\\/]* | ?:[\\/]*)
6467   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6468   ;;
6469   *)
6470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 for as_dir in $PATH
6472 do
6473   IFS=$as_save_IFS
6474   test -z "$as_dir" && as_dir=.
6475   for ac_exec_ext in '' $ac_executable_extensions; do
6476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6477     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6479     break 2
6480   fi
6481 done
6482 done
6483 IFS=$as_save_IFS
6484
6485   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6486   ;;
6487 esac
6488 fi
6489 DOT=$ac_cv_path_DOT
6490 if test -n "$DOT"; then
6491   { echo "$as_me:$LINENO: result: $DOT" >&5
6492 echo "${ECHO_T}$DOT" >&6; }
6493 else
6494   { echo "$as_me:$LINENO: result: no" >&5
6495 echo "${ECHO_T}no" >&6; }
6496 fi
6497
6498
6499 if test "$DOT" != "echo dot" ; then
6500
6501 cat >>confdefs.h <<\_ACEOF
6502 #define HAVE_DOT 1
6503 _ACEOF
6504
6505     if test "$llvm_cv_os_type" = "MingW" ; then
6506     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6507   fi
6508
6509 cat >>confdefs.h <<_ACEOF
6510 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6511 _ACEOF
6512
6513 fi
6514 # Extract the first word of "fdp", so it can be a program name with args.
6515 set dummy fdp; ac_word=$2
6516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6518 if test "${ac_cv_path_FDP+set}" = set; then
6519   echo $ECHO_N "(cached) $ECHO_C" >&6
6520 else
6521   case $FDP in
6522   [\\/]* | ?:[\\/]*)
6523   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6524   ;;
6525   *)
6526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 for as_dir in $PATH
6528 do
6529   IFS=$as_save_IFS
6530   test -z "$as_dir" && as_dir=.
6531   for ac_exec_ext in '' $ac_executable_extensions; do
6532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6533     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6535     break 2
6536   fi
6537 done
6538 done
6539 IFS=$as_save_IFS
6540
6541   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6542   ;;
6543 esac
6544 fi
6545 FDP=$ac_cv_path_FDP
6546 if test -n "$FDP"; then
6547   { echo "$as_me:$LINENO: result: $FDP" >&5
6548 echo "${ECHO_T}$FDP" >&6; }
6549 else
6550   { echo "$as_me:$LINENO: result: no" >&5
6551 echo "${ECHO_T}no" >&6; }
6552 fi
6553
6554
6555 if test "$FDP" != "echo fdp" ; then
6556
6557 cat >>confdefs.h <<\_ACEOF
6558 #define HAVE_FDP 1
6559 _ACEOF
6560
6561     if test "$llvm_cv_os_type" = "MingW" ; then
6562     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6563   fi
6564
6565 cat >>confdefs.h <<_ACEOF
6566 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6567 _ACEOF
6568
6569 fi
6570 # Extract the first word of "neato", so it can be a program name with args.
6571 set dummy neato; ac_word=$2
6572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6574 if test "${ac_cv_path_NEATO+set}" = set; then
6575   echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577   case $NEATO in
6578   [\\/]* | ?:[\\/]*)
6579   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6580   ;;
6581   *)
6582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 for as_dir in $PATH
6584 do
6585   IFS=$as_save_IFS
6586   test -z "$as_dir" && as_dir=.
6587   for ac_exec_ext in '' $ac_executable_extensions; do
6588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6589     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591     break 2
6592   fi
6593 done
6594 done
6595 IFS=$as_save_IFS
6596
6597   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6598   ;;
6599 esac
6600 fi
6601 NEATO=$ac_cv_path_NEATO
6602 if test -n "$NEATO"; then
6603   { echo "$as_me:$LINENO: result: $NEATO" >&5
6604 echo "${ECHO_T}$NEATO" >&6; }
6605 else
6606   { echo "$as_me:$LINENO: result: no" >&5
6607 echo "${ECHO_T}no" >&6; }
6608 fi
6609
6610
6611 if test "$NEATO" != "echo neato" ; then
6612
6613 cat >>confdefs.h <<\_ACEOF
6614 #define HAVE_NEATO 1
6615 _ACEOF
6616
6617     if test "$llvm_cv_os_type" = "MingW" ; then
6618     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6619   fi
6620
6621 cat >>confdefs.h <<_ACEOF
6622 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6623 _ACEOF
6624
6625 fi
6626 # Extract the first word of "twopi", so it can be a program name with args.
6627 set dummy twopi; ac_word=$2
6628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6630 if test "${ac_cv_path_TWOPI+set}" = set; then
6631   echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633   case $TWOPI in
6634   [\\/]* | ?:[\\/]*)
6635   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6636   ;;
6637   *)
6638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6640 do
6641   IFS=$as_save_IFS
6642   test -z "$as_dir" && as_dir=.
6643   for ac_exec_ext in '' $ac_executable_extensions; do
6644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6645     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6647     break 2
6648   fi
6649 done
6650 done
6651 IFS=$as_save_IFS
6652
6653   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6654   ;;
6655 esac
6656 fi
6657 TWOPI=$ac_cv_path_TWOPI
6658 if test -n "$TWOPI"; then
6659   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6660 echo "${ECHO_T}$TWOPI" >&6; }
6661 else
6662   { echo "$as_me:$LINENO: result: no" >&5
6663 echo "${ECHO_T}no" >&6; }
6664 fi
6665
6666
6667 if test "$TWOPI" != "echo twopi" ; then
6668
6669 cat >>confdefs.h <<\_ACEOF
6670 #define HAVE_TWOPI 1
6671 _ACEOF
6672
6673     if test "$llvm_cv_os_type" = "MingW" ; then
6674     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6675   fi
6676
6677 cat >>confdefs.h <<_ACEOF
6678 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6679 _ACEOF
6680
6681 fi
6682 # Extract the first word of "circo", so it can be a program name with args.
6683 set dummy circo; ac_word=$2
6684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6686 if test "${ac_cv_path_CIRCO+set}" = set; then
6687   echo $ECHO_N "(cached) $ECHO_C" >&6
6688 else
6689   case $CIRCO in
6690   [\\/]* | ?:[\\/]*)
6691   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6692   ;;
6693   *)
6694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 for as_dir in $PATH
6696 do
6697   IFS=$as_save_IFS
6698   test -z "$as_dir" && as_dir=.
6699   for ac_exec_ext in '' $ac_executable_extensions; do
6700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6701     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6703     break 2
6704   fi
6705 done
6706 done
6707 IFS=$as_save_IFS
6708
6709   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6710   ;;
6711 esac
6712 fi
6713 CIRCO=$ac_cv_path_CIRCO
6714 if test -n "$CIRCO"; then
6715   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6716 echo "${ECHO_T}$CIRCO" >&6; }
6717 else
6718   { echo "$as_me:$LINENO: result: no" >&5
6719 echo "${ECHO_T}no" >&6; }
6720 fi
6721
6722
6723 if test "$CIRCO" != "echo circo" ; then
6724
6725 cat >>confdefs.h <<\_ACEOF
6726 #define HAVE_CIRCO 1
6727 _ACEOF
6728
6729     if test "$llvm_cv_os_type" = "MingW" ; then
6730     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6731   fi
6732
6733 cat >>confdefs.h <<_ACEOF
6734 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6735 _ACEOF
6736
6737 fi
6738 for ac_prog in gv gsview32
6739 do
6740   # Extract the first word of "$ac_prog", so it can be a program name with args.
6741 set dummy $ac_prog; ac_word=$2
6742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744 if test "${ac_cv_path_GV+set}" = set; then
6745   echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747   case $GV in
6748   [\\/]* | ?:[\\/]*)
6749   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6750   ;;
6751   *)
6752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 for as_dir in $PATH
6754 do
6755   IFS=$as_save_IFS
6756   test -z "$as_dir" && as_dir=.
6757   for ac_exec_ext in '' $ac_executable_extensions; do
6758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6759     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761     break 2
6762   fi
6763 done
6764 done
6765 IFS=$as_save_IFS
6766
6767   ;;
6768 esac
6769 fi
6770 GV=$ac_cv_path_GV
6771 if test -n "$GV"; then
6772   { echo "$as_me:$LINENO: result: $GV" >&5
6773 echo "${ECHO_T}$GV" >&6; }
6774 else
6775   { echo "$as_me:$LINENO: result: no" >&5
6776 echo "${ECHO_T}no" >&6; }
6777 fi
6778
6779
6780   test -n "$GV" && break
6781 done
6782 test -n "$GV" || GV="echo gv"
6783
6784 if test "$GV" != "echo gv" ; then
6785
6786 cat >>confdefs.h <<\_ACEOF
6787 #define HAVE_GV 1
6788 _ACEOF
6789
6790     if test "$llvm_cv_os_type" = "MingW" ; then
6791     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6792   fi
6793
6794 cat >>confdefs.h <<_ACEOF
6795 #define LLVM_PATH_GV "$GV${EXEEXT}"
6796 _ACEOF
6797
6798 fi
6799 # Extract the first word of "dotty", so it can be a program name with args.
6800 set dummy dotty; ac_word=$2
6801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6803 if test "${ac_cv_path_DOTTY+set}" = set; then
6804   echo $ECHO_N "(cached) $ECHO_C" >&6
6805 else
6806   case $DOTTY in
6807   [\\/]* | ?:[\\/]*)
6808   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6809   ;;
6810   *)
6811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 for as_dir in $PATH
6813 do
6814   IFS=$as_save_IFS
6815   test -z "$as_dir" && as_dir=.
6816   for ac_exec_ext in '' $ac_executable_extensions; do
6817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6818     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6820     break 2
6821   fi
6822 done
6823 done
6824 IFS=$as_save_IFS
6825
6826   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6827   ;;
6828 esac
6829 fi
6830 DOTTY=$ac_cv_path_DOTTY
6831 if test -n "$DOTTY"; then
6832   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6833 echo "${ECHO_T}$DOTTY" >&6; }
6834 else
6835   { echo "$as_me:$LINENO: result: no" >&5
6836 echo "${ECHO_T}no" >&6; }
6837 fi
6838
6839
6840 if test "$DOTTY" != "echo dotty" ; then
6841
6842 cat >>confdefs.h <<\_ACEOF
6843 #define HAVE_DOTTY 1
6844 _ACEOF
6845
6846     if test "$llvm_cv_os_type" = "MingW" ; then
6847     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6848   fi
6849
6850 cat >>confdefs.h <<_ACEOF
6851 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6852 _ACEOF
6853
6854 fi
6855 # Extract the first word of "xdot.py", so it can be a program name with args.
6856 set dummy xdot.py; ac_word=$2
6857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6860   echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862   case $XDOT_PY in
6863   [\\/]* | ?:[\\/]*)
6864   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6865   ;;
6866   *)
6867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6869 do
6870   IFS=$as_save_IFS
6871   test -z "$as_dir" && as_dir=.
6872   for ac_exec_ext in '' $ac_executable_extensions; do
6873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6874     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6876     break 2
6877   fi
6878 done
6879 done
6880 IFS=$as_save_IFS
6881
6882   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6883   ;;
6884 esac
6885 fi
6886 XDOT_PY=$ac_cv_path_XDOT_PY
6887 if test -n "$XDOT_PY"; then
6888   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6889 echo "${ECHO_T}$XDOT_PY" >&6; }
6890 else
6891   { echo "$as_me:$LINENO: result: no" >&5
6892 echo "${ECHO_T}no" >&6; }
6893 fi
6894
6895
6896 if test "$XDOT_PY" != "echo xdot.py" ; then
6897
6898 cat >>confdefs.h <<\_ACEOF
6899 #define HAVE_XDOT_PY 1
6900 _ACEOF
6901
6902     if test "$llvm_cv_os_type" = "MingW" ; then
6903     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6904   fi
6905
6906 cat >>confdefs.h <<_ACEOF
6907 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6908 _ACEOF
6909
6910 fi
6911
6912 # Find a good install program.  We prefer a C program (faster),
6913 # so one script is as good as another.  But avoid the broken or
6914 # incompatible versions:
6915 # SysV /etc/install, /usr/sbin/install
6916 # SunOS /usr/etc/install
6917 # IRIX /sbin/install
6918 # AIX /bin/install
6919 # AmigaOS /C/install, which installs bootblocks on floppy discs
6920 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6921 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6922 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6923 # OS/2's system install, which has a completely different semantic
6924 # ./install, which can be erroneously created by make from ./install.sh.
6925 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6926 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6927 if test -z "$INSTALL"; then
6928 if test "${ac_cv_path_install+set}" = set; then
6929   echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 for as_dir in $PATH
6933 do
6934   IFS=$as_save_IFS
6935   test -z "$as_dir" && as_dir=.
6936   # Account for people who put trailing slashes in PATH elements.
6937 case $as_dir/ in
6938   ./ | .// | /cC/* | \
6939   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6940   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6941   /usr/ucb/* ) ;;
6942   *)
6943     # OSF1 and SCO ODT 3.0 have their own names for install.
6944     # Don't use installbsd from OSF since it installs stuff as root
6945     # by default.
6946     for ac_prog in ginstall scoinst install; do
6947       for ac_exec_ext in '' $ac_executable_extensions; do
6948         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6949           if test $ac_prog = install &&
6950             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6951             # AIX install.  It has an incompatible calling convention.
6952             :
6953           elif test $ac_prog = install &&
6954             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6955             # program-specific install script used by HP pwplus--don't use.
6956             :
6957           else
6958             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6959             break 3
6960           fi
6961         fi
6962       done
6963     done
6964     ;;
6965 esac
6966 done
6967 IFS=$as_save_IFS
6968
6969
6970 fi
6971   if test "${ac_cv_path_install+set}" = set; then
6972     INSTALL=$ac_cv_path_install
6973   else
6974     # As a last resort, use the slow shell script.  Don't cache a
6975     # value for INSTALL within a source directory, because that will
6976     # break other packages using the cache if that directory is
6977     # removed, or if the value is a relative name.
6978     INSTALL=$ac_install_sh
6979   fi
6980 fi
6981 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6982 echo "${ECHO_T}$INSTALL" >&6; }
6983
6984 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6985 # It thinks the first close brace ends the variable substitution.
6986 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6987
6988 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6989
6990 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6991
6992 case "$INSTALL" in
6993  [\\/$]* | ?:[\\/]* ) ;;
6994  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6995 esac
6996
6997 # Extract the first word of "bzip2", so it can be a program name with args.
6998 set dummy bzip2; ac_word=$2
6999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7001 if test "${ac_cv_path_BZIP2+set}" = set; then
7002   echo $ECHO_N "(cached) $ECHO_C" >&6
7003 else
7004   case $BZIP2 in
7005   [\\/]* | ?:[\\/]*)
7006   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7007   ;;
7008   *)
7009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 for as_dir in $PATH
7011 do
7012   IFS=$as_save_IFS
7013   test -z "$as_dir" && as_dir=.
7014   for ac_exec_ext in '' $ac_executable_extensions; do
7015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7016     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7018     break 2
7019   fi
7020 done
7021 done
7022 IFS=$as_save_IFS
7023
7024   ;;
7025 esac
7026 fi
7027 BZIP2=$ac_cv_path_BZIP2
7028 if test -n "$BZIP2"; then
7029   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7030 echo "${ECHO_T}$BZIP2" >&6; }
7031 else
7032   { echo "$as_me:$LINENO: result: no" >&5
7033 echo "${ECHO_T}no" >&6; }
7034 fi
7035
7036
7037 # Extract the first word of "cat", so it can be a program name with args.
7038 set dummy cat; ac_word=$2
7039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7041 if test "${ac_cv_path_CAT+set}" = set; then
7042   echo $ECHO_N "(cached) $ECHO_C" >&6
7043 else
7044   case $CAT in
7045   [\\/]* | ?:[\\/]*)
7046   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7047   ;;
7048   *)
7049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 for as_dir in $PATH
7051 do
7052   IFS=$as_save_IFS
7053   test -z "$as_dir" && as_dir=.
7054   for ac_exec_ext in '' $ac_executable_extensions; do
7055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7056     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7058     break 2
7059   fi
7060 done
7061 done
7062 IFS=$as_save_IFS
7063
7064   ;;
7065 esac
7066 fi
7067 CAT=$ac_cv_path_CAT
7068 if test -n "$CAT"; then
7069   { echo "$as_me:$LINENO: result: $CAT" >&5
7070 echo "${ECHO_T}$CAT" >&6; }
7071 else
7072   { echo "$as_me:$LINENO: result: no" >&5
7073 echo "${ECHO_T}no" >&6; }
7074 fi
7075
7076
7077 # Extract the first word of "doxygen", so it can be a program name with args.
7078 set dummy doxygen; ac_word=$2
7079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7081 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7082   echo $ECHO_N "(cached) $ECHO_C" >&6
7083 else
7084   case $DOXYGEN in
7085   [\\/]* | ?:[\\/]*)
7086   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7087   ;;
7088   *)
7089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7091 do
7092   IFS=$as_save_IFS
7093   test -z "$as_dir" && as_dir=.
7094   for ac_exec_ext in '' $ac_executable_extensions; do
7095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7096     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7098     break 2
7099   fi
7100 done
7101 done
7102 IFS=$as_save_IFS
7103
7104   ;;
7105 esac
7106 fi
7107 DOXYGEN=$ac_cv_path_DOXYGEN
7108 if test -n "$DOXYGEN"; then
7109   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7110 echo "${ECHO_T}$DOXYGEN" >&6; }
7111 else
7112   { echo "$as_me:$LINENO: result: no" >&5
7113 echo "${ECHO_T}no" >&6; }
7114 fi
7115
7116
7117 # Extract the first word of "groff", so it can be a program name with args.
7118 set dummy groff; ac_word=$2
7119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121 if test "${ac_cv_path_GROFF+set}" = set; then
7122   echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124   case $GROFF in
7125   [\\/]* | ?:[\\/]*)
7126   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7127   ;;
7128   *)
7129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132   IFS=$as_save_IFS
7133   test -z "$as_dir" && as_dir=.
7134   for ac_exec_ext in '' $ac_executable_extensions; do
7135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7136     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138     break 2
7139   fi
7140 done
7141 done
7142 IFS=$as_save_IFS
7143
7144   ;;
7145 esac
7146 fi
7147 GROFF=$ac_cv_path_GROFF
7148 if test -n "$GROFF"; then
7149   { echo "$as_me:$LINENO: result: $GROFF" >&5
7150 echo "${ECHO_T}$GROFF" >&6; }
7151 else
7152   { echo "$as_me:$LINENO: result: no" >&5
7153 echo "${ECHO_T}no" >&6; }
7154 fi
7155
7156
7157 # Extract the first word of "gzip", so it can be a program name with args.
7158 set dummy gzip; ac_word=$2
7159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7162   echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164   case $GZIPBIN in
7165   [\\/]* | ?:[\\/]*)
7166   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7167   ;;
7168   *)
7169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7171 do
7172   IFS=$as_save_IFS
7173   test -z "$as_dir" && as_dir=.
7174   for ac_exec_ext in '' $ac_executable_extensions; do
7175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7176     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7178     break 2
7179   fi
7180 done
7181 done
7182 IFS=$as_save_IFS
7183
7184   ;;
7185 esac
7186 fi
7187 GZIPBIN=$ac_cv_path_GZIPBIN
7188 if test -n "$GZIPBIN"; then
7189   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7190 echo "${ECHO_T}$GZIPBIN" >&6; }
7191 else
7192   { echo "$as_me:$LINENO: result: no" >&5
7193 echo "${ECHO_T}no" >&6; }
7194 fi
7195
7196
7197 # Extract the first word of "pod2html", so it can be a program name with args.
7198 set dummy pod2html; ac_word=$2
7199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7201 if test "${ac_cv_path_POD2HTML+set}" = set; then
7202   echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204   case $POD2HTML in
7205   [\\/]* | ?:[\\/]*)
7206   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7207   ;;
7208   *)
7209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 for as_dir in $PATH
7211 do
7212   IFS=$as_save_IFS
7213   test -z "$as_dir" && as_dir=.
7214   for ac_exec_ext in '' $ac_executable_extensions; do
7215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7216     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7218     break 2
7219   fi
7220 done
7221 done
7222 IFS=$as_save_IFS
7223
7224   ;;
7225 esac
7226 fi
7227 POD2HTML=$ac_cv_path_POD2HTML
7228 if test -n "$POD2HTML"; then
7229   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7230 echo "${ECHO_T}$POD2HTML" >&6; }
7231 else
7232   { echo "$as_me:$LINENO: result: no" >&5
7233 echo "${ECHO_T}no" >&6; }
7234 fi
7235
7236
7237 # Extract the first word of "pod2man", so it can be a program name with args.
7238 set dummy pod2man; ac_word=$2
7239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7241 if test "${ac_cv_path_POD2MAN+set}" = set; then
7242   echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244   case $POD2MAN in
7245   [\\/]* | ?:[\\/]*)
7246   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7247   ;;
7248   *)
7249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 for as_dir in $PATH
7251 do
7252   IFS=$as_save_IFS
7253   test -z "$as_dir" && as_dir=.
7254   for ac_exec_ext in '' $ac_executable_extensions; do
7255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7256     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258     break 2
7259   fi
7260 done
7261 done
7262 IFS=$as_save_IFS
7263
7264   ;;
7265 esac
7266 fi
7267 POD2MAN=$ac_cv_path_POD2MAN
7268 if test -n "$POD2MAN"; then
7269   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7270 echo "${ECHO_T}$POD2MAN" >&6; }
7271 else
7272   { echo "$as_me:$LINENO: result: no" >&5
7273 echo "${ECHO_T}no" >&6; }
7274 fi
7275
7276
7277 # Extract the first word of "pdfroff", so it can be a program name with args.
7278 set dummy pdfroff; ac_word=$2
7279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7281 if test "${ac_cv_path_PDFROFF+set}" = set; then
7282   echo $ECHO_N "(cached) $ECHO_C" >&6
7283 else
7284   case $PDFROFF in
7285   [\\/]* | ?:[\\/]*)
7286   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7287   ;;
7288   *)
7289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290 for as_dir in $PATH
7291 do
7292   IFS=$as_save_IFS
7293   test -z "$as_dir" && as_dir=.
7294   for ac_exec_ext in '' $ac_executable_extensions; do
7295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7296     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7298     break 2
7299   fi
7300 done
7301 done
7302 IFS=$as_save_IFS
7303
7304   ;;
7305 esac
7306 fi
7307 PDFROFF=$ac_cv_path_PDFROFF
7308 if test -n "$PDFROFF"; then
7309   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7310 echo "${ECHO_T}$PDFROFF" >&6; }
7311 else
7312   { echo "$as_me:$LINENO: result: no" >&5
7313 echo "${ECHO_T}no" >&6; }
7314 fi
7315
7316
7317 # Extract the first word of "runtest", so it can be a program name with args.
7318 set dummy runtest; ac_word=$2
7319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7321 if test "${ac_cv_path_RUNTEST+set}" = set; then
7322   echo $ECHO_N "(cached) $ECHO_C" >&6
7323 else
7324   case $RUNTEST in
7325   [\\/]* | ?:[\\/]*)
7326   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7327   ;;
7328   *)
7329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330 for as_dir in $PATH
7331 do
7332   IFS=$as_save_IFS
7333   test -z "$as_dir" && as_dir=.
7334   for ac_exec_ext in '' $ac_executable_extensions; do
7335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7336     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7338     break 2
7339   fi
7340 done
7341 done
7342 IFS=$as_save_IFS
7343
7344   ;;
7345 esac
7346 fi
7347 RUNTEST=$ac_cv_path_RUNTEST
7348 if test -n "$RUNTEST"; then
7349   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7350 echo "${ECHO_T}$RUNTEST" >&6; }
7351 else
7352   { echo "$as_me:$LINENO: result: no" >&5
7353 echo "${ECHO_T}no" >&6; }
7354 fi
7355
7356
7357
7358 no_itcl=true
7359 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7360 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7361
7362 # Check whether --with-tclinclude was given.
7363 if test "${with_tclinclude+set}" = set; then
7364   withval=$with_tclinclude; with_tclinclude=${withval}
7365 else
7366   with_tclinclude=''
7367 fi
7368
7369 if test "${ac_cv_path_tclsh+set}" = set; then
7370   echo $ECHO_N "(cached) $ECHO_C" >&6
7371 else
7372
7373 if test x"${with_tclinclude}" != x ; then
7374   if test -f ${with_tclinclude}/tclsh ; then
7375     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7376   elif test -f ${with_tclinclude}/src/tclsh ; then
7377     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7378   else
7379     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7380 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7381    { (exit 1); exit 1; }; }
7382   fi
7383 fi
7384 fi
7385
7386
7387 if test x"${ac_cv_path_tclsh}" = x ; then
7388   { echo "$as_me:$LINENO: result: none" >&5
7389 echo "${ECHO_T}none" >&6; }
7390   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
7391 do
7392   # Extract the first word of "$ac_prog", so it can be a program name with args.
7393 set dummy $ac_prog; ac_word=$2
7394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7396 if test "${ac_cv_path_TCLSH+set}" = set; then
7397   echo $ECHO_N "(cached) $ECHO_C" >&6
7398 else
7399   case $TCLSH in
7400   [\\/]* | ?:[\\/]*)
7401   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7402   ;;
7403   *)
7404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7406 do
7407   IFS=$as_save_IFS
7408   test -z "$as_dir" && as_dir=.
7409   for ac_exec_ext in '' $ac_executable_extensions; do
7410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7411     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7413     break 2
7414   fi
7415 done
7416 done
7417 IFS=$as_save_IFS
7418
7419   ;;
7420 esac
7421 fi
7422 TCLSH=$ac_cv_path_TCLSH
7423 if test -n "$TCLSH"; then
7424   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7425 echo "${ECHO_T}$TCLSH" >&6; }
7426 else
7427   { echo "$as_me:$LINENO: result: no" >&5
7428 echo "${ECHO_T}no" >&6; }
7429 fi
7430
7431
7432   test -n "$TCLSH" && break
7433 done
7434
7435   if test x"${TCLSH}" = x ; then
7436     ac_cv_path_tclsh='';
7437   else
7438     ac_cv_path_tclsh="${TCLSH}";
7439   fi
7440 else
7441   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7442 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7443   TCLSH="${ac_cv_path_tclsh}"
7444
7445 fi
7446
7447 # Extract the first word of "zip", so it can be a program name with args.
7448 set dummy zip; ac_word=$2
7449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7451 if test "${ac_cv_path_ZIP+set}" = set; then
7452   echo $ECHO_N "(cached) $ECHO_C" >&6
7453 else
7454   case $ZIP in
7455   [\\/]* | ?:[\\/]*)
7456   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7457   ;;
7458   *)
7459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 for as_dir in $PATH
7461 do
7462   IFS=$as_save_IFS
7463   test -z "$as_dir" && as_dir=.
7464   for ac_exec_ext in '' $ac_executable_extensions; do
7465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7466     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7468     break 2
7469   fi
7470 done
7471 done
7472 IFS=$as_save_IFS
7473
7474   ;;
7475 esac
7476 fi
7477 ZIP=$ac_cv_path_ZIP
7478 if test -n "$ZIP"; then
7479   { echo "$as_me:$LINENO: result: $ZIP" >&5
7480 echo "${ECHO_T}$ZIP" >&6; }
7481 else
7482   { echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6; }
7484 fi
7485
7486
7487 for ac_prog in ocamlc
7488 do
7489   # Extract the first word of "$ac_prog", so it can be a program name with args.
7490 set dummy $ac_prog; ac_word=$2
7491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7493 if test "${ac_cv_path_OCAMLC+set}" = set; then
7494   echo $ECHO_N "(cached) $ECHO_C" >&6
7495 else
7496   case $OCAMLC in
7497   [\\/]* | ?:[\\/]*)
7498   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7499   ;;
7500   *)
7501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 for as_dir in $PATH
7503 do
7504   IFS=$as_save_IFS
7505   test -z "$as_dir" && as_dir=.
7506   for ac_exec_ext in '' $ac_executable_extensions; do
7507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7508     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7510     break 2
7511   fi
7512 done
7513 done
7514 IFS=$as_save_IFS
7515
7516   ;;
7517 esac
7518 fi
7519 OCAMLC=$ac_cv_path_OCAMLC
7520 if test -n "$OCAMLC"; then
7521   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7522 echo "${ECHO_T}$OCAMLC" >&6; }
7523 else
7524   { echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6; }
7526 fi
7527
7528
7529   test -n "$OCAMLC" && break
7530 done
7531
7532 for ac_prog in ocamlopt
7533 do
7534   # Extract the first word of "$ac_prog", so it can be a program name with args.
7535 set dummy $ac_prog; ac_word=$2
7536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7538 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7539   echo $ECHO_N "(cached) $ECHO_C" >&6
7540 else
7541   case $OCAMLOPT in
7542   [\\/]* | ?:[\\/]*)
7543   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7544   ;;
7545   *)
7546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 for as_dir in $PATH
7548 do
7549   IFS=$as_save_IFS
7550   test -z "$as_dir" && as_dir=.
7551   for ac_exec_ext in '' $ac_executable_extensions; do
7552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7553     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7555     break 2
7556   fi
7557 done
7558 done
7559 IFS=$as_save_IFS
7560
7561   ;;
7562 esac
7563 fi
7564 OCAMLOPT=$ac_cv_path_OCAMLOPT
7565 if test -n "$OCAMLOPT"; then
7566   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7567 echo "${ECHO_T}$OCAMLOPT" >&6; }
7568 else
7569   { echo "$as_me:$LINENO: result: no" >&5
7570 echo "${ECHO_T}no" >&6; }
7571 fi
7572
7573
7574   test -n "$OCAMLOPT" && break
7575 done
7576
7577 for ac_prog in ocamldep
7578 do
7579   # Extract the first word of "$ac_prog", so it can be a program name with args.
7580 set dummy $ac_prog; ac_word=$2
7581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7583 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7584   echo $ECHO_N "(cached) $ECHO_C" >&6
7585 else
7586   case $OCAMLDEP in
7587   [\\/]* | ?:[\\/]*)
7588   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7589   ;;
7590   *)
7591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 for as_dir in $PATH
7593 do
7594   IFS=$as_save_IFS
7595   test -z "$as_dir" && as_dir=.
7596   for ac_exec_ext in '' $ac_executable_extensions; do
7597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7598     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7600     break 2
7601   fi
7602 done
7603 done
7604 IFS=$as_save_IFS
7605
7606   ;;
7607 esac
7608 fi
7609 OCAMLDEP=$ac_cv_path_OCAMLDEP
7610 if test -n "$OCAMLDEP"; then
7611   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7612 echo "${ECHO_T}$OCAMLDEP" >&6; }
7613 else
7614   { echo "$as_me:$LINENO: result: no" >&5
7615 echo "${ECHO_T}no" >&6; }
7616 fi
7617
7618
7619   test -n "$OCAMLDEP" && break
7620 done
7621
7622 for ac_prog in ocamldoc
7623 do
7624   # Extract the first word of "$ac_prog", so it can be a program name with args.
7625 set dummy $ac_prog; ac_word=$2
7626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7628 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7629   echo $ECHO_N "(cached) $ECHO_C" >&6
7630 else
7631   case $OCAMLDOC in
7632   [\\/]* | ?:[\\/]*)
7633   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7634   ;;
7635   *)
7636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 for as_dir in $PATH
7638 do
7639   IFS=$as_save_IFS
7640   test -z "$as_dir" && as_dir=.
7641   for ac_exec_ext in '' $ac_executable_extensions; do
7642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7643     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7645     break 2
7646   fi
7647 done
7648 done
7649 IFS=$as_save_IFS
7650
7651   ;;
7652 esac
7653 fi
7654 OCAMLDOC=$ac_cv_path_OCAMLDOC
7655 if test -n "$OCAMLDOC"; then
7656   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7657 echo "${ECHO_T}$OCAMLDOC" >&6; }
7658 else
7659   { echo "$as_me:$LINENO: result: no" >&5
7660 echo "${ECHO_T}no" >&6; }
7661 fi
7662
7663
7664   test -n "$OCAMLDOC" && break
7665 done
7666
7667 for ac_prog in gas as
7668 do
7669   # Extract the first word of "$ac_prog", so it can be a program name with args.
7670 set dummy $ac_prog; ac_word=$2
7671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7673 if test "${ac_cv_path_GAS+set}" = set; then
7674   echo $ECHO_N "(cached) $ECHO_C" >&6
7675 else
7676   case $GAS in
7677   [\\/]* | ?:[\\/]*)
7678   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7679   ;;
7680   *)
7681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 for as_dir in $PATH
7683 do
7684   IFS=$as_save_IFS
7685   test -z "$as_dir" && as_dir=.
7686   for ac_exec_ext in '' $ac_executable_extensions; do
7687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7688     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7690     break 2
7691   fi
7692 done
7693 done
7694 IFS=$as_save_IFS
7695
7696   ;;
7697 esac
7698 fi
7699 GAS=$ac_cv_path_GAS
7700 if test -n "$GAS"; then
7701   { echo "$as_me:$LINENO: result: $GAS" >&5
7702 echo "${ECHO_T}$GAS" >&6; }
7703 else
7704   { echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6; }
7706 fi
7707
7708
7709   test -n "$GAS" && break
7710 done
7711
7712
7713 { echo "$as_me:$LINENO: checking for linker version" >&5
7714 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7715 if test "${llvm_cv_link_version+set}" = set; then
7716   echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718
7719    version_string="$(ld -v 2>&1 | head -1)"
7720
7721    # Check for ld64.
7722    if (echo "$version_string" | grep -q "ld64"); then
7723      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7724    else
7725      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7726    fi
7727
7728 fi
7729 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7730 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7731
7732 cat >>confdefs.h <<_ACEOF
7733 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7734 _ACEOF
7735
7736
7737
7738 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7739 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7740 if test "${llvm_cv_link_use_r+set}" = set; then
7741   echo $ECHO_N "(cached) $ECHO_C" >&6
7742 else
7743    ac_ext=c
7744 ac_cpp='$CPP $CPPFLAGS'
7745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7748
7749   oldcflags="$CFLAGS"
7750   CFLAGS="$CFLAGS -Wl,-R."
7751   cat >conftest.$ac_ext <<_ACEOF
7752 /* confdefs.h.  */
7753 _ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h.  */
7757
7758 int
7759 main ()
7760 {
7761
7762   ;
7763   return 0;
7764 }
7765 _ACEOF
7766 rm -f conftest.$ac_objext conftest$ac_exeext
7767 if { (ac_try="$ac_link"
7768 case "(($ac_try" in
7769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7770   *) ac_try_echo=$ac_try;;
7771 esac
7772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7773   (eval "$ac_link") 2>conftest.er1
7774   ac_status=$?
7775   grep -v '^ *+' conftest.er1 >conftest.err
7776   rm -f conftest.er1
7777   cat conftest.err >&5
7778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779   (exit $ac_status); } &&
7780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7781   { (case "(($ac_try" in
7782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7783   *) ac_try_echo=$ac_try;;
7784 esac
7785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7786   (eval "$ac_try") 2>&5
7787   ac_status=$?
7788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789   (exit $ac_status); }; } &&
7790          { ac_try='test -s conftest$ac_exeext'
7791   { (case "(($ac_try" in
7792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7793   *) ac_try_echo=$ac_try;;
7794 esac
7795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7796   (eval "$ac_try") 2>&5
7797   ac_status=$?
7798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799   (exit $ac_status); }; }; then
7800   llvm_cv_link_use_r=yes
7801 else
7802   echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.$ac_ext >&5
7804
7805         llvm_cv_link_use_r=no
7806 fi
7807
7808 rm -f core conftest.err conftest.$ac_objext \
7809       conftest$ac_exeext conftest.$ac_ext
7810   CFLAGS="$oldcflags"
7811   ac_ext=c
7812 ac_cpp='$CPP $CPPFLAGS'
7813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7816
7817
7818 fi
7819 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7820 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7821 if test "$llvm_cv_link_use_r" = yes ; then
7822
7823 cat >>confdefs.h <<\_ACEOF
7824 #define HAVE_LINK_R 1
7825 _ACEOF
7826
7827   fi
7828
7829
7830 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7831 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7832 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7833   echo $ECHO_N "(cached) $ECHO_C" >&6
7834 else
7835    ac_ext=c
7836 ac_cpp='$CPP $CPPFLAGS'
7837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7840
7841   oldcflags="$CFLAGS"
7842   CFLAGS="$CFLAGS -rdynamic"
7843   cat >conftest.$ac_ext <<_ACEOF
7844 /* confdefs.h.  */
7845 _ACEOF
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h.  */
7849
7850 int
7851 main ()
7852 {
7853
7854   ;
7855   return 0;
7856 }
7857 _ACEOF
7858 rm -f conftest.$ac_objext conftest$ac_exeext
7859 if { (ac_try="$ac_link"
7860 case "(($ac_try" in
7861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7862   *) ac_try_echo=$ac_try;;
7863 esac
7864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7865   (eval "$ac_link") 2>conftest.er1
7866   ac_status=$?
7867   grep -v '^ *+' conftest.er1 >conftest.err
7868   rm -f conftest.er1
7869   cat conftest.err >&5
7870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871   (exit $ac_status); } &&
7872          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7873   { (case "(($ac_try" in
7874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875   *) ac_try_echo=$ac_try;;
7876 esac
7877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878   (eval "$ac_try") 2>&5
7879   ac_status=$?
7880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881   (exit $ac_status); }; } &&
7882          { ac_try='test -s conftest$ac_exeext'
7883   { (case "(($ac_try" in
7884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885   *) ac_try_echo=$ac_try;;
7886 esac
7887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888   (eval "$ac_try") 2>&5
7889   ac_status=$?
7890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891   (exit $ac_status); }; }; then
7892   llvm_cv_link_use_export_dynamic=yes
7893 else
7894   echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7896
7897         llvm_cv_link_use_export_dynamic=no
7898 fi
7899
7900 rm -f core conftest.err conftest.$ac_objext \
7901       conftest$ac_exeext conftest.$ac_ext
7902   CFLAGS="$oldcflags"
7903   ac_ext=c
7904 ac_cpp='$CPP $CPPFLAGS'
7905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7908
7909
7910 fi
7911 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7912 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7913 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7914
7915 cat >>confdefs.h <<\_ACEOF
7916 #define HAVE_LINK_EXPORT_DYNAMIC 1
7917 _ACEOF
7918
7919   fi
7920
7921
7922 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7923 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7924 if test "${llvm_cv_link_use_version_script+set}" = set; then
7925   echo $ECHO_N "(cached) $ECHO_C" >&6
7926 else
7927    ac_ext=c
7928 ac_cpp='$CPP $CPPFLAGS'
7929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7932
7933   oldcflags="$CFLAGS"
7934
7935   # The following code is from the autoconf manual,
7936   # "11.13: Limitations of Usual Tools".
7937   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7938   # Use mktemp if possible; otherwise fall back on mkdir,
7939   # with $RANDOM to make collisions less likely.
7940   : ${TMPDIR=/tmp}
7941   {
7942     tmp=`
7943       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7944     ` &&
7945     test -n "$tmp" && test -d "$tmp"
7946   } || {
7947     tmp=$TMPDIR/foo$$-$RANDOM
7948     (umask 077 && mkdir "$tmp")
7949   } || exit $?
7950
7951   echo "{" > "$tmp/export.map"
7952   echo "  global: main;" >> "$tmp/export.map"
7953   echo "  local: *;" >> "$tmp/export.map"
7954   echo "};" >> "$tmp/export.map"
7955
7956   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7957   cat >conftest.$ac_ext <<_ACEOF
7958 /* confdefs.h.  */
7959 _ACEOF
7960 cat confdefs.h >>conftest.$ac_ext
7961 cat >>conftest.$ac_ext <<_ACEOF
7962 /* end confdefs.h.  */
7963
7964 int
7965 main ()
7966 {
7967
7968   ;
7969   return 0;
7970 }
7971 _ACEOF
7972 rm -f conftest.$ac_objext conftest$ac_exeext
7973 if { (ac_try="$ac_link"
7974 case "(($ac_try" in
7975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7976   *) ac_try_echo=$ac_try;;
7977 esac
7978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7979   (eval "$ac_link") 2>conftest.er1
7980   ac_status=$?
7981   grep -v '^ *+' conftest.er1 >conftest.err
7982   rm -f conftest.er1
7983   cat conftest.err >&5
7984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985   (exit $ac_status); } &&
7986          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7987   { (case "(($ac_try" in
7988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989   *) ac_try_echo=$ac_try;;
7990 esac
7991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7992   (eval "$ac_try") 2>&5
7993   ac_status=$?
7994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995   (exit $ac_status); }; } &&
7996          { ac_try='test -s conftest$ac_exeext'
7997   { (case "(($ac_try" in
7998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7999   *) ac_try_echo=$ac_try;;
8000 esac
8001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8002   (eval "$ac_try") 2>&5
8003   ac_status=$?
8004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005   (exit $ac_status); }; }; then
8006   llvm_cv_link_use_version_script=yes
8007 else
8008   echo "$as_me: failed program was:" >&5
8009 sed 's/^/| /' conftest.$ac_ext >&5
8010
8011         llvm_cv_link_use_version_script=no
8012 fi
8013
8014 rm -f core conftest.err conftest.$ac_objext \
8015       conftest$ac_exeext conftest.$ac_ext
8016   rm "$tmp/export.map"
8017   rmdir "$tmp"
8018   CFLAGS="$oldcflags"
8019   ac_ext=c
8020 ac_cpp='$CPP $CPPFLAGS'
8021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8024
8025
8026 fi
8027 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8028 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8029 if test "$llvm_cv_link_use_version_script" = yes ; then
8030   HAVE_LINK_VERSION_SCRIPT=1
8031
8032   fi
8033
8034
8035
8036
8037 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8038 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8039 if test "${ac_cv_c_const+set}" = set; then
8040   echo $ECHO_N "(cached) $ECHO_C" >&6
8041 else
8042   cat >conftest.$ac_ext <<_ACEOF
8043 /* confdefs.h.  */
8044 _ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h.  */
8048
8049 int
8050 main ()
8051 {
8052 /* FIXME: Include the comments suggested by Paul. */
8053 #ifndef __cplusplus
8054   /* Ultrix mips cc rejects this.  */
8055   typedef int charset[2];
8056   const charset x;
8057   /* SunOS 4.1.1 cc rejects this.  */
8058   char const *const *ccp;
8059   char **p;
8060   /* NEC SVR4.0.2 mips cc rejects this.  */
8061   struct point {int x, y;};
8062   static struct point const zero = {0,0};
8063   /* AIX XL C 1.02.0.0 rejects this.
8064      It does not let you subtract one const X* pointer from another in
8065      an arm of an if-expression whose if-part is not a constant
8066      expression */
8067   const char *g = "string";
8068   ccp = &g + (g ? g-g : 0);
8069   /* HPUX 7.0 cc rejects these. */
8070   ++ccp;
8071   p = (char**) ccp;
8072   ccp = (char const *const *) p;
8073   { /* SCO 3.2v4 cc rejects this.  */
8074     char *t;
8075     char const *s = 0 ? (char *) 0 : (char const *) 0;
8076
8077     *t++ = 0;
8078     if (s) return 0;
8079   }
8080   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8081     int x[] = {25, 17};
8082     const int *foo = &x[0];
8083     ++foo;
8084   }
8085   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8086     typedef const int *iptr;
8087     iptr p = 0;
8088     ++p;
8089   }
8090   { /* AIX XL C 1.02.0.0 rejects this saying
8091        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8092     struct s { int j; const int *ap[3]; };
8093     struct s *b; b->j = 5;
8094   }
8095   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8096     const int foo = 10;
8097     if (!foo) return 0;
8098   }
8099   return !x[0] && !zero.x;
8100 #endif
8101
8102   ;
8103   return 0;
8104 }
8105 _ACEOF
8106 rm -f conftest.$ac_objext
8107 if { (ac_try="$ac_compile"
8108 case "(($ac_try" in
8109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110   *) ac_try_echo=$ac_try;;
8111 esac
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113   (eval "$ac_compile") 2>conftest.er1
8114   ac_status=$?
8115   grep -v '^ *+' conftest.er1 >conftest.err
8116   rm -f conftest.er1
8117   cat conftest.err >&5
8118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119   (exit $ac_status); } &&
8120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8121   { (case "(($ac_try" in
8122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123   *) ac_try_echo=$ac_try;;
8124 esac
8125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126   (eval "$ac_try") 2>&5
8127   ac_status=$?
8128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129   (exit $ac_status); }; } &&
8130          { ac_try='test -s conftest.$ac_objext'
8131   { (case "(($ac_try" in
8132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133   *) ac_try_echo=$ac_try;;
8134 esac
8135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136   (eval "$ac_try") 2>&5
8137   ac_status=$?
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); }; }; then
8140   ac_cv_c_const=yes
8141 else
8142   echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8144
8145         ac_cv_c_const=no
8146 fi
8147
8148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8149 fi
8150 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8151 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8152 if test $ac_cv_c_const = no; then
8153
8154 cat >>confdefs.h <<\_ACEOF
8155 #define const
8156 _ACEOF
8157
8158 fi
8159
8160
8161
8162
8163
8164
8165 ac_header_dirent=no
8166 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8167   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8168 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8169 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8171   echo $ECHO_N "(cached) $ECHO_C" >&6
8172 else
8173   cat >conftest.$ac_ext <<_ACEOF
8174 /* confdefs.h.  */
8175 _ACEOF
8176 cat confdefs.h >>conftest.$ac_ext
8177 cat >>conftest.$ac_ext <<_ACEOF
8178 /* end confdefs.h.  */
8179 #include <sys/types.h>
8180 #include <$ac_hdr>
8181
8182 int
8183 main ()
8184 {
8185 if ((DIR *) 0)
8186 return 0;
8187   ;
8188   return 0;
8189 }
8190 _ACEOF
8191 rm -f conftest.$ac_objext
8192 if { (ac_try="$ac_compile"
8193 case "(($ac_try" in
8194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195   *) ac_try_echo=$ac_try;;
8196 esac
8197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8198   (eval "$ac_compile") 2>conftest.er1
8199   ac_status=$?
8200   grep -v '^ *+' conftest.er1 >conftest.err
8201   rm -f conftest.er1
8202   cat conftest.err >&5
8203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204   (exit $ac_status); } &&
8205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8206   { (case "(($ac_try" in
8207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208   *) ac_try_echo=$ac_try;;
8209 esac
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211   (eval "$ac_try") 2>&5
8212   ac_status=$?
8213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214   (exit $ac_status); }; } &&
8215          { ac_try='test -s conftest.$ac_objext'
8216   { (case "(($ac_try" in
8217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8218   *) ac_try_echo=$ac_try;;
8219 esac
8220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8221   (eval "$ac_try") 2>&5
8222   ac_status=$?
8223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224   (exit $ac_status); }; }; then
8225   eval "$as_ac_Header=yes"
8226 else
8227   echo "$as_me: failed program was:" >&5
8228 sed 's/^/| /' conftest.$ac_ext >&5
8229
8230         eval "$as_ac_Header=no"
8231 fi
8232
8233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8234 fi
8235 ac_res=`eval echo '${'$as_ac_Header'}'`
8236                { echo "$as_me:$LINENO: result: $ac_res" >&5
8237 echo "${ECHO_T}$ac_res" >&6; }
8238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8239   cat >>confdefs.h <<_ACEOF
8240 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8241 _ACEOF
8242
8243 ac_header_dirent=$ac_hdr; break
8244 fi
8245
8246 done
8247 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8248 if test $ac_header_dirent = dirent.h; then
8249   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8250 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8251 if test "${ac_cv_search_opendir+set}" = set; then
8252   echo $ECHO_N "(cached) $ECHO_C" >&6
8253 else
8254   ac_func_search_save_LIBS=$LIBS
8255 cat >conftest.$ac_ext <<_ACEOF
8256 /* confdefs.h.  */
8257 _ACEOF
8258 cat confdefs.h >>conftest.$ac_ext
8259 cat >>conftest.$ac_ext <<_ACEOF
8260 /* end confdefs.h.  */
8261
8262 /* Override any GCC internal prototype to avoid an error.
8263    Use char because int might match the return type of a GCC
8264    builtin and then its argument prototype would still apply.  */
8265 #ifdef __cplusplus
8266 extern "C"
8267 #endif
8268 char opendir ();
8269 int
8270 main ()
8271 {
8272 return opendir ();
8273   ;
8274   return 0;
8275 }
8276 _ACEOF
8277 for ac_lib in '' dir; do
8278   if test -z "$ac_lib"; then
8279     ac_res="none required"
8280   else
8281     ac_res=-l$ac_lib
8282     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8283   fi
8284   rm -f conftest.$ac_objext conftest$ac_exeext
8285 if { (ac_try="$ac_link"
8286 case "(($ac_try" in
8287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288   *) ac_try_echo=$ac_try;;
8289 esac
8290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291   (eval "$ac_link") 2>conftest.er1
8292   ac_status=$?
8293   grep -v '^ *+' conftest.er1 >conftest.err
8294   rm -f conftest.er1
8295   cat conftest.err >&5
8296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297   (exit $ac_status); } &&
8298          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8299   { (case "(($ac_try" in
8300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301   *) ac_try_echo=$ac_try;;
8302 esac
8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304   (eval "$ac_try") 2>&5
8305   ac_status=$?
8306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307   (exit $ac_status); }; } &&
8308          { ac_try='test -s conftest$ac_exeext'
8309   { (case "(($ac_try" in
8310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311   *) ac_try_echo=$ac_try;;
8312 esac
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314   (eval "$ac_try") 2>&5
8315   ac_status=$?
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); }; }; then
8318   ac_cv_search_opendir=$ac_res
8319 else
8320   echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8322
8323
8324 fi
8325
8326 rm -f core conftest.err conftest.$ac_objext \
8327       conftest$ac_exeext
8328   if test "${ac_cv_search_opendir+set}" = set; then
8329   break
8330 fi
8331 done
8332 if test "${ac_cv_search_opendir+set}" = set; then
8333   :
8334 else
8335   ac_cv_search_opendir=no
8336 fi
8337 rm conftest.$ac_ext
8338 LIBS=$ac_func_search_save_LIBS
8339 fi
8340 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8341 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8342 ac_res=$ac_cv_search_opendir
8343 if test "$ac_res" != no; then
8344   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8345
8346 fi
8347
8348 else
8349   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8350 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8351 if test "${ac_cv_search_opendir+set}" = set; then
8352   echo $ECHO_N "(cached) $ECHO_C" >&6
8353 else
8354   ac_func_search_save_LIBS=$LIBS
8355 cat >conftest.$ac_ext <<_ACEOF
8356 /* confdefs.h.  */
8357 _ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h.  */
8361
8362 /* Override any GCC internal prototype to avoid an error.
8363    Use char because int might match the return type of a GCC
8364    builtin and then its argument prototype would still apply.  */
8365 #ifdef __cplusplus
8366 extern "C"
8367 #endif
8368 char opendir ();
8369 int
8370 main ()
8371 {
8372 return opendir ();
8373   ;
8374   return 0;
8375 }
8376 _ACEOF
8377 for ac_lib in '' x; do
8378   if test -z "$ac_lib"; then
8379     ac_res="none required"
8380   else
8381     ac_res=-l$ac_lib
8382     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8383   fi
8384   rm -f conftest.$ac_objext conftest$ac_exeext
8385 if { (ac_try="$ac_link"
8386 case "(($ac_try" in
8387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388   *) ac_try_echo=$ac_try;;
8389 esac
8390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8391   (eval "$ac_link") 2>conftest.er1
8392   ac_status=$?
8393   grep -v '^ *+' conftest.er1 >conftest.err
8394   rm -f conftest.er1
8395   cat conftest.err >&5
8396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397   (exit $ac_status); } &&
8398          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8399   { (case "(($ac_try" in
8400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401   *) ac_try_echo=$ac_try;;
8402 esac
8403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404   (eval "$ac_try") 2>&5
8405   ac_status=$?
8406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407   (exit $ac_status); }; } &&
8408          { ac_try='test -s conftest$ac_exeext'
8409   { (case "(($ac_try" in
8410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8411   *) ac_try_echo=$ac_try;;
8412 esac
8413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414   (eval "$ac_try") 2>&5
8415   ac_status=$?
8416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417   (exit $ac_status); }; }; then
8418   ac_cv_search_opendir=$ac_res
8419 else
8420   echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8422
8423
8424 fi
8425
8426 rm -f core conftest.err conftest.$ac_objext \
8427       conftest$ac_exeext
8428   if test "${ac_cv_search_opendir+set}" = set; then
8429   break
8430 fi
8431 done
8432 if test "${ac_cv_search_opendir+set}" = set; then
8433   :
8434 else
8435   ac_cv_search_opendir=no
8436 fi
8437 rm conftest.$ac_ext
8438 LIBS=$ac_func_search_save_LIBS
8439 fi
8440 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8441 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8442 ac_res=$ac_cv_search_opendir
8443 if test "$ac_res" != no; then
8444   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8445
8446 fi
8447
8448 fi
8449
8450
8451 for ac_header in dlfcn.h
8452 do
8453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8455   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8458   echo $ECHO_N "(cached) $ECHO_C" >&6
8459 fi
8460 ac_res=`eval echo '${'$as_ac_Header'}'`
8461                { echo "$as_me:$LINENO: result: $ac_res" >&5
8462 echo "${ECHO_T}$ac_res" >&6; }
8463 else
8464   # Is the header compilable?
8465 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8467 cat >conftest.$ac_ext <<_ACEOF
8468 /* confdefs.h.  */
8469 _ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h.  */
8473 $ac_includes_default
8474 #include <$ac_header>
8475 _ACEOF
8476 rm -f conftest.$ac_objext
8477 if { (ac_try="$ac_compile"
8478 case "(($ac_try" in
8479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8480   *) ac_try_echo=$ac_try;;
8481 esac
8482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8483   (eval "$ac_compile") 2>conftest.er1
8484   ac_status=$?
8485   grep -v '^ *+' conftest.er1 >conftest.err
8486   rm -f conftest.er1
8487   cat conftest.err >&5
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); } &&
8490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8491   { (case "(($ac_try" in
8492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493   *) ac_try_echo=$ac_try;;
8494 esac
8495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496   (eval "$ac_try") 2>&5
8497   ac_status=$?
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); }; } &&
8500          { ac_try='test -s conftest.$ac_objext'
8501   { (case "(($ac_try" in
8502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503   *) ac_try_echo=$ac_try;;
8504 esac
8505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506   (eval "$ac_try") 2>&5
8507   ac_status=$?
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); }; }; then
8510   ac_header_compiler=yes
8511 else
8512   echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8514
8515         ac_header_compiler=no
8516 fi
8517
8518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8520 echo "${ECHO_T}$ac_header_compiler" >&6; }
8521
8522 # Is the header present?
8523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8525 cat >conftest.$ac_ext <<_ACEOF
8526 /* confdefs.h.  */
8527 _ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h.  */
8531 #include <$ac_header>
8532 _ACEOF
8533 if { (ac_try="$ac_cpp conftest.$ac_ext"
8534 case "(($ac_try" in
8535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536   *) ac_try_echo=$ac_try;;
8537 esac
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8540   ac_status=$?
8541   grep -v '^ *+' conftest.er1 >conftest.err
8542   rm -f conftest.er1
8543   cat conftest.err >&5
8544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545   (exit $ac_status); } >/dev/null; then
8546   if test -s conftest.err; then
8547     ac_cpp_err=$ac_c_preproc_warn_flag
8548     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8549   else
8550     ac_cpp_err=
8551   fi
8552 else
8553   ac_cpp_err=yes
8554 fi
8555 if test -z "$ac_cpp_err"; then
8556   ac_header_preproc=yes
8557 else
8558   echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8560
8561   ac_header_preproc=no
8562 fi
8563
8564 rm -f conftest.err conftest.$ac_ext
8565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8566 echo "${ECHO_T}$ac_header_preproc" >&6; }
8567
8568 # So?  What about this header?
8569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8570   yes:no: )
8571     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8575     ac_header_preproc=yes
8576     ;;
8577   no:yes:* )
8578     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8580     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8581 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8582     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8584     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8585 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8586     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8588     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8590     ( cat <<\_ASBOX
8591 ## ------------------------------ ##
8592 ## Report this to bugs@yourdomain ##
8593 ## ------------------------------ ##
8594 _ASBOX
8595      ) | sed "s/^/$as_me: WARNING:     /" >&2
8596     ;;
8597 esac
8598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8601   echo $ECHO_N "(cached) $ECHO_C" >&6
8602 else
8603   eval "$as_ac_Header=\$ac_header_preproc"
8604 fi
8605 ac_res=`eval echo '${'$as_ac_Header'}'`
8606                { echo "$as_me:$LINENO: result: $ac_res" >&5
8607 echo "${ECHO_T}$ac_res" >&6; }
8608
8609 fi
8610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8611   cat >>confdefs.h <<_ACEOF
8612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8613 _ACEOF
8614
8615 fi
8616
8617 done
8618
8619 # Check whether --enable-ltdl-install was given.
8620 if test "${enable_ltdl_install+set}" = set; then
8621   enableval=$enable_ltdl_install;
8622 fi
8623
8624
8625
8626
8627 if test x"${enable_ltdl_install-no}" != xno; then
8628   INSTALL_LTDL_TRUE=
8629   INSTALL_LTDL_FALSE='#'
8630 else
8631   INSTALL_LTDL_TRUE='#'
8632   INSTALL_LTDL_FALSE=
8633 fi
8634
8635
8636
8637 if test x"${enable_ltdl_convenience-no}" != xno; then
8638   CONVENIENCE_LTDL_TRUE=
8639   CONVENIENCE_LTDL_FALSE='#'
8640 else
8641   CONVENIENCE_LTDL_TRUE='#'
8642   CONVENIENCE_LTDL_FALSE=
8643 fi
8644
8645
8646 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8647 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8648 library_names_spec=
8649 libname_spec='lib$name'
8650 soname_spec=
8651 shrext_cmds=".so"
8652 postinstall_cmds=
8653 postuninstall_cmds=
8654 finish_cmds=
8655 finish_eval=
8656 shlibpath_var=
8657 shlibpath_overrides_runpath=unknown
8658 version_type=none
8659 dynamic_linker="$host_os ld.so"
8660 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8661 if test "$GCC" = yes; then
8662   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8663   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8664     # if the path contains ";" then we assume it to be the separator
8665     # otherwise default to the standard path separator (i.e. ":") - it is
8666     # assumed that no part of a normal pathname contains ";" but that should
8667     # okay in the real world where ";" in dirpaths is itself problematic.
8668     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8669   else
8670     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8671   fi
8672 else
8673   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8674 fi
8675 need_lib_prefix=unknown
8676 hardcode_into_libs=no
8677
8678 # when you set need_version to no, make sure it does not cause -set_version
8679 # flags to be left without arguments
8680 need_version=unknown
8681
8682 case $host_os in
8683 aix3*)
8684   version_type=linux
8685   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8686   shlibpath_var=LIBPATH
8687
8688   # AIX 3 has no versioning support, so we append a major version to the name.
8689   soname_spec='${libname}${release}${shared_ext}$major'
8690   ;;
8691
8692 aix4* | aix5*)
8693   version_type=linux
8694   need_lib_prefix=no
8695   need_version=no
8696   hardcode_into_libs=yes
8697   if test "$host_cpu" = ia64; then
8698     # AIX 5 supports IA64
8699     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8700     shlibpath_var=LD_LIBRARY_PATH
8701   else
8702     # With GCC up to 2.95.x, collect2 would create an import file
8703     # for dependence libraries.  The import file would start with
8704     # the line `#! .'.  This would cause the generated library to
8705     # depend on `.', always an invalid library.  This was fixed in
8706     # development snapshots of GCC prior to 3.0.
8707     case $host_os in
8708       aix4 | aix4.[01] | aix4.[01].*)
8709       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8710            echo ' yes '
8711            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8712         :
8713       else
8714         can_build_shared=no
8715       fi
8716       ;;
8717     esac
8718     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8719     # soname into executable. Probably we can add versioning support to
8720     # collect2, so additional links can be useful in future.
8721     if test "$aix_use_runtimelinking" = yes; then
8722       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8723       # instead of lib<name>.a to let people know that these are not
8724       # typical AIX shared libraries.
8725       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8726     else
8727       # We preserve .a as extension for shared libraries through AIX4.2
8728       # and later when we are not doing run time linking.
8729       library_names_spec='${libname}${release}.a $libname.a'
8730       soname_spec='${libname}${release}${shared_ext}$major'
8731     fi
8732     shlibpath_var=LIBPATH
8733   fi
8734   ;;
8735
8736 amigaos*)
8737   library_names_spec='$libname.ixlibrary $libname.a'
8738   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8739   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'
8740   ;;
8741
8742 beos*)
8743   library_names_spec='${libname}${shared_ext}'
8744   dynamic_linker="$host_os ld.so"
8745   shlibpath_var=LIBRARY_PATH
8746   ;;
8747
8748 bsdi[45]*)
8749   version_type=linux
8750   need_version=no
8751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8752   soname_spec='${libname}${release}${shared_ext}$major'
8753   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8754   shlibpath_var=LD_LIBRARY_PATH
8755   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8756   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8757   # the default ld.so.conf also contains /usr/contrib/lib and
8758   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8759   # libtool to hard-code these into programs
8760   ;;
8761
8762 cygwin* | mingw* | pw32*)
8763   version_type=windows
8764   shrext_cmds=".dll"
8765   need_version=no
8766   need_lib_prefix=no
8767
8768   case $GCC,$host_os in
8769   yes,cygwin* | yes,mingw* | yes,pw32*)
8770     library_names_spec='$libname.dll.a'
8771     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8772     postinstall_cmds='base_file=`basename \${file}`~
8773       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8774       dldir=$destdir/`dirname \$dlpath`~
8775       test -d \$dldir || mkdir -p \$dldir~
8776       $install_prog $dir/$dlname \$dldir/$dlname~
8777       chmod a+x \$dldir/$dlname'
8778     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8779       dlpath=$dir/\$dldll~
8780        $rm \$dlpath'
8781     shlibpath_overrides_runpath=yes
8782
8783     case $host_os in
8784     cygwin*)
8785       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8786       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8787       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8788       ;;
8789     mingw*)
8790       # MinGW DLLs use traditional 'lib' prefix
8791       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8792       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8793       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8794         # It is most probably a Windows format PATH printed by
8795         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8796         # path with ; separators, and with drive letters. We can handle the
8797         # drive letters (cygwin fileutils understands them), so leave them,
8798         # especially as we might pass files found there to a mingw objdump,
8799         # which wouldn't understand a cygwinified path. Ahh.
8800         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8801       else
8802         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8803       fi
8804       ;;
8805     pw32*)
8806       # pw32 DLLs use 'pw' prefix rather than 'lib'
8807       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8808       ;;
8809     esac
8810     ;;
8811
8812   *)
8813     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8814     ;;
8815   esac
8816   dynamic_linker='Win32 ld.exe'
8817   # FIXME: first we should search . and the directory the executable is in
8818   shlibpath_var=PATH
8819   ;;
8820
8821 darwin* | rhapsody*)
8822   dynamic_linker="$host_os dyld"
8823   version_type=darwin
8824   need_lib_prefix=no
8825   need_version=no
8826   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8827   soname_spec='${libname}${release}${major}$shared_ext'
8828   shlibpath_overrides_runpath=yes
8829   shlibpath_var=DYLD_LIBRARY_PATH
8830   shrext_cmds='.dylib'
8831   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8832   if test "$GCC" = yes; then
8833     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"`
8834   else
8835     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8836   fi
8837   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8838   ;;
8839
8840 dgux*)
8841   version_type=linux
8842   need_lib_prefix=no
8843   need_version=no
8844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8845   soname_spec='${libname}${release}${shared_ext}$major'
8846   shlibpath_var=LD_LIBRARY_PATH
8847   ;;
8848
8849 freebsd1.*)
8850   dynamic_linker=no
8851   ;;
8852
8853 kfreebsd*-gnu)
8854   version_type=linux
8855   need_lib_prefix=no
8856   need_version=no
8857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8858   soname_spec='${libname}${release}${shared_ext}$major'
8859   shlibpath_var=LD_LIBRARY_PATH
8860   shlibpath_overrides_runpath=no
8861   hardcode_into_libs=yes
8862   dynamic_linker='GNU ld.so'
8863   ;;
8864
8865 freebsd* | dragonfly*)
8866   # DragonFly does not have aout.  When/if they implement a new
8867   # versioning mechanism, adjust this.
8868   if test -x /usr/bin/objformat; then
8869     objformat=`/usr/bin/objformat`
8870   else
8871     case $host_os in
8872     freebsd[123].*) objformat=aout ;;
8873     *) objformat=elf ;;
8874     esac
8875   fi
8876   version_type=freebsd-$objformat
8877   case $version_type in
8878     freebsd-elf*)
8879       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8880       need_version=no
8881       need_lib_prefix=no
8882       ;;
8883     freebsd-*)
8884       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8885       need_version=yes
8886       ;;
8887   esac
8888   shlibpath_var=LD_LIBRARY_PATH
8889   case $host_os in
8890   freebsd2.*)
8891     shlibpath_overrides_runpath=yes
8892     ;;
8893   freebsd3.[01]* | freebsdelf3.[01]*)
8894     shlibpath_overrides_runpath=yes
8895     hardcode_into_libs=yes
8896     ;;
8897   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8898   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8899     shlibpath_overrides_runpath=no
8900     hardcode_into_libs=yes
8901     ;;
8902   freebsd*) # from 4.6 on
8903     shlibpath_overrides_runpath=yes
8904     hardcode_into_libs=yes
8905     ;;
8906   esac
8907   ;;
8908
8909 gnu*)
8910   version_type=linux
8911   need_lib_prefix=no
8912   need_version=no
8913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8914   soname_spec='${libname}${release}${shared_ext}$major'
8915   shlibpath_var=LD_LIBRARY_PATH
8916   hardcode_into_libs=yes
8917   ;;
8918
8919 hpux9* | hpux10* | hpux11*)
8920   # Give a soname corresponding to the major version so that dld.sl refuses to
8921   # link against other versions.
8922   version_type=sunos
8923   need_lib_prefix=no
8924   need_version=no
8925   case $host_cpu in
8926   ia64*)
8927     shrext_cmds='.so'
8928     hardcode_into_libs=yes
8929     dynamic_linker="$host_os dld.so"
8930     shlibpath_var=LD_LIBRARY_PATH
8931     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8932     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8933     soname_spec='${libname}${release}${shared_ext}$major'
8934     if test "X$HPUX_IA64_MODE" = X32; then
8935       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8936     else
8937       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8938     fi
8939     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8940     ;;
8941    hppa*64*)
8942      shrext_cmds='.sl'
8943      hardcode_into_libs=yes
8944      dynamic_linker="$host_os dld.sl"
8945      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8946      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8947      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8948      soname_spec='${libname}${release}${shared_ext}$major'
8949      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8950      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8951      ;;
8952    *)
8953     shrext_cmds='.sl'
8954     dynamic_linker="$host_os dld.sl"
8955     shlibpath_var=SHLIB_PATH
8956     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8957     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8958     soname_spec='${libname}${release}${shared_ext}$major'
8959     ;;
8960   esac
8961   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8962   postinstall_cmds='chmod 555 $lib'
8963   ;;
8964
8965 interix3*)
8966   version_type=linux
8967   need_lib_prefix=no
8968   need_version=no
8969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8970   soname_spec='${libname}${release}${shared_ext}$major'
8971   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8972   shlibpath_var=LD_LIBRARY_PATH
8973   shlibpath_overrides_runpath=no
8974   hardcode_into_libs=yes
8975   ;;
8976
8977 irix5* | irix6* | nonstopux*)
8978   case $host_os in
8979     nonstopux*) version_type=nonstopux ;;
8980     *)
8981         if test "$lt_cv_prog_gnu_ld" = yes; then
8982                 version_type=linux
8983         else
8984                 version_type=irix
8985         fi ;;
8986   esac
8987   need_lib_prefix=no
8988   need_version=no
8989   soname_spec='${libname}${release}${shared_ext}$major'
8990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8991   case $host_os in
8992   irix5* | nonstopux*)
8993     libsuff= shlibsuff=
8994     ;;
8995   *)
8996     case $LD in # libtool.m4 will add one of these switches to LD
8997     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8998       libsuff= shlibsuff= libmagic=32-bit;;
8999     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9000       libsuff=32 shlibsuff=N32 libmagic=N32;;
9001     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9002       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9003     *) libsuff= shlibsuff= libmagic=never-match;;
9004     esac
9005     ;;
9006   esac
9007   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9008   shlibpath_overrides_runpath=no
9009   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9010   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9011   hardcode_into_libs=yes
9012   ;;
9013
9014 # No shared lib support for Linux oldld, aout, or coff.
9015 linux*oldld* | linux*aout* | linux*coff*)
9016   dynamic_linker=no
9017   ;;
9018
9019 # This must be Linux ELF.
9020 linux*)
9021   version_type=linux
9022   need_lib_prefix=no
9023   need_version=no
9024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9025   soname_spec='${libname}${release}${shared_ext}$major'
9026   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9027   shlibpath_var=LD_LIBRARY_PATH
9028   shlibpath_overrides_runpath=no
9029   # This implies no fast_install, which is unacceptable.
9030   # Some rework will be needed to allow for fast_install
9031   # before this can be enabled.
9032   hardcode_into_libs=yes
9033
9034   # Append ld.so.conf contents to the search path
9035   if test -f /etc/ld.so.conf; then
9036     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' ' '`
9037     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9038   fi
9039
9040   # We used to test for /lib/ld.so.1 and disable shared libraries on
9041   # powerpc, because MkLinux only supported shared libraries with the
9042   # GNU dynamic linker.  Since this was broken with cross compilers,
9043   # most powerpc-linux boxes support dynamic linking these days and
9044   # people can always --disable-shared, the test was removed, and we
9045   # assume the GNU/Linux dynamic linker is in use.
9046   dynamic_linker='GNU/Linux ld.so'
9047   ;;
9048
9049 knetbsd*-gnu)
9050   version_type=linux
9051   need_lib_prefix=no
9052   need_version=no
9053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9054   soname_spec='${libname}${release}${shared_ext}$major'
9055   shlibpath_var=LD_LIBRARY_PATH
9056   shlibpath_overrides_runpath=no
9057   hardcode_into_libs=yes
9058   dynamic_linker='GNU ld.so'
9059   ;;
9060
9061 netbsd*)
9062   version_type=sunos
9063   need_lib_prefix=no
9064   need_version=no
9065   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9066     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9067     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9068     dynamic_linker='NetBSD (a.out) ld.so'
9069   else
9070     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9071     soname_spec='${libname}${release}${shared_ext}$major'
9072     dynamic_linker='NetBSD ld.elf_so'
9073   fi
9074   shlibpath_var=LD_LIBRARY_PATH
9075   shlibpath_overrides_runpath=yes
9076   hardcode_into_libs=yes
9077   ;;
9078
9079 newsos6)
9080   version_type=linux
9081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082   shlibpath_var=LD_LIBRARY_PATH
9083   shlibpath_overrides_runpath=yes
9084   ;;
9085
9086 nto-qnx*)
9087   version_type=linux
9088   need_lib_prefix=no
9089   need_version=no
9090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9091   soname_spec='${libname}${release}${shared_ext}$major'
9092   shlibpath_var=LD_LIBRARY_PATH
9093   shlibpath_overrides_runpath=yes
9094   ;;
9095
9096 openbsd*)
9097   version_type=sunos
9098   sys_lib_dlsearch_path_spec="/usr/lib"
9099   need_lib_prefix=no
9100   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9101   case $host_os in
9102     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9103     *)                         need_version=no  ;;
9104   esac
9105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9106   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9107   shlibpath_var=LD_LIBRARY_PATH
9108   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9109     case $host_os in
9110       openbsd2.[89] | openbsd2.[89].*)
9111         shlibpath_overrides_runpath=no
9112         ;;
9113       *)
9114         shlibpath_overrides_runpath=yes
9115         ;;
9116       esac
9117   else
9118     shlibpath_overrides_runpath=yes
9119   fi
9120   ;;
9121
9122 os2*)
9123   libname_spec='$name'
9124   shrext_cmds=".dll"
9125   need_lib_prefix=no
9126   library_names_spec='$libname${shared_ext} $libname.a'
9127   dynamic_linker='OS/2 ld.exe'
9128   shlibpath_var=LIBPATH
9129   ;;
9130
9131 osf3* | osf4* | osf5*)
9132   version_type=osf
9133   need_lib_prefix=no
9134   need_version=no
9135   soname_spec='${libname}${release}${shared_ext}$major'
9136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9137   shlibpath_var=LD_LIBRARY_PATH
9138   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9139   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9140   ;;
9141
9142 solaris*)
9143   version_type=linux
9144   need_lib_prefix=no
9145   need_version=no
9146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9147   soname_spec='${libname}${release}${shared_ext}$major'
9148   shlibpath_var=LD_LIBRARY_PATH
9149   shlibpath_overrides_runpath=yes
9150   hardcode_into_libs=yes
9151   # ldd complains unless libraries are executable
9152   postinstall_cmds='chmod +x $lib'
9153   ;;
9154
9155 sunos4*)
9156   version_type=sunos
9157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9158   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9159   shlibpath_var=LD_LIBRARY_PATH
9160   shlibpath_overrides_runpath=yes
9161   if test "$with_gnu_ld" = yes; then
9162     need_lib_prefix=no
9163   fi
9164   need_version=yes
9165   ;;
9166
9167 sysv4 | sysv4.3*)
9168   version_type=linux
9169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9170   soname_spec='${libname}${release}${shared_ext}$major'
9171   shlibpath_var=LD_LIBRARY_PATH
9172   case $host_vendor in
9173     sni)
9174       shlibpath_overrides_runpath=no
9175       need_lib_prefix=no
9176       export_dynamic_flag_spec='${wl}-Blargedynsym'
9177       runpath_var=LD_RUN_PATH
9178       ;;
9179     siemens)
9180       need_lib_prefix=no
9181       ;;
9182     motorola)
9183       need_lib_prefix=no
9184       need_version=no
9185       shlibpath_overrides_runpath=no
9186       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9187       ;;
9188   esac
9189   ;;
9190
9191 sysv4*MP*)
9192   if test -d /usr/nec ;then
9193     version_type=linux
9194     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9195     soname_spec='$libname${shared_ext}.$major'
9196     shlibpath_var=LD_LIBRARY_PATH
9197   fi
9198   ;;
9199
9200 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9201   version_type=freebsd-elf
9202   need_lib_prefix=no
9203   need_version=no
9204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9205   soname_spec='${libname}${release}${shared_ext}$major'
9206   shlibpath_var=LD_LIBRARY_PATH
9207   hardcode_into_libs=yes
9208   if test "$with_gnu_ld" = yes; then
9209     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9210     shlibpath_overrides_runpath=no
9211   else
9212     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9213     shlibpath_overrides_runpath=yes
9214     case $host_os in
9215       sco3.2v5*)
9216         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9217         ;;
9218     esac
9219   fi
9220   sys_lib_dlsearch_path_spec='/usr/lib'
9221   ;;
9222
9223 uts4*)
9224   version_type=linux
9225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9226   soname_spec='${libname}${release}${shared_ext}$major'
9227   shlibpath_var=LD_LIBRARY_PATH
9228   ;;
9229
9230 *)
9231   dynamic_linker=no
9232   ;;
9233 esac
9234 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9235 echo "${ECHO_T}$dynamic_linker" >&6; }
9236 test "$dynamic_linker" = no && can_build_shared=no
9237
9238 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9239 if test "$GCC" = yes; then
9240   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9241 fi
9242
9243
9244 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9245 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9246 if test "${libltdl_cv_shlibext+set}" = set; then
9247   echo $ECHO_N "(cached) $ECHO_C" >&6
9248 else
9249
9250 module=yes
9251 eval libltdl_cv_shlibext=$shrext_cmds
9252
9253 fi
9254 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9255 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9256 if test -n "$libltdl_cv_shlibext"; then
9257
9258 cat >>confdefs.h <<_ACEOF
9259 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9260 _ACEOF
9261
9262 fi
9263
9264
9265 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9266 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9267 if test "${libltdl_cv_sys_search_path+set}" = set; then
9268   echo $ECHO_N "(cached) $ECHO_C" >&6
9269 else
9270   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9271 fi
9272 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9273 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9274 if test -n "$libltdl_cv_sys_search_path"; then
9275   sys_search_path=
9276   for dir in $libltdl_cv_sys_search_path; do
9277     if test -z "$sys_search_path"; then
9278       sys_search_path="$dir"
9279     else
9280       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9281     fi
9282   done
9283
9284 cat >>confdefs.h <<_ACEOF
9285 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9286 _ACEOF
9287
9288 fi
9289
9290 { echo "$as_me:$LINENO: checking for objdir" >&5
9291 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9292 if test "${libltdl_cv_objdir+set}" = set; then
9293   echo $ECHO_N "(cached) $ECHO_C" >&6
9294 else
9295   libltdl_cv_objdir="$objdir"
9296   if test -n "$objdir"; then
9297     :
9298   else
9299     rm -f .libs 2>/dev/null
9300     mkdir .libs 2>/dev/null
9301     if test -d .libs; then
9302       libltdl_cv_objdir=.libs
9303     else
9304       # MS-DOS does not allow filenames that begin with a dot.
9305       libltdl_cv_objdir=_libs
9306     fi
9307   rmdir .libs 2>/dev/null
9308   fi
9309
9310 fi
9311 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9312 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9313
9314 cat >>confdefs.h <<_ACEOF
9315 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9316 _ACEOF
9317
9318
9319
9320
9321
9322
9323 # Check for command to grab the raw symbol name followed by C symbol from nm.
9324 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9325 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9326 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9327   echo $ECHO_N "(cached) $ECHO_C" >&6
9328 else
9329
9330 # These are sane defaults that work on at least a few old systems.
9331 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9332
9333 # Character class describing NM global symbol codes.
9334 symcode='[BCDEGRST]'
9335
9336 # Regexp to match symbols that can be accessed directly from C.
9337 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9338
9339 # Transform an extracted symbol line into a proper C declaration
9340 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9341
9342 # Transform an extracted symbol line into symbol name and symbol address
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
9345 # Define system-specific variables.
9346 case $host_os in
9347 aix*)
9348   symcode='[BCDT]'
9349   ;;
9350 cygwin* | mingw* | pw32*)
9351   symcode='[ABCDGISTW]'
9352   ;;
9353 hpux*) # Its linker distinguishes data from code symbols
9354   if test "$host_cpu" = ia64; then
9355     symcode='[ABCDEGRST]'
9356   fi
9357   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9358   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'"
9359   ;;
9360 linux*)
9361   if test "$host_cpu" = ia64; then
9362     symcode='[ABCDGIRSTW]'
9363     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9364     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'"
9365   fi
9366   ;;
9367 irix* | nonstopux*)
9368   symcode='[BCDEGRST]'
9369   ;;
9370 osf*)
9371   symcode='[BCDEGQRST]'
9372   ;;
9373 solaris*)
9374   symcode='[BDRT]'
9375   ;;
9376 sco3.2v5*)
9377   symcode='[DT]'
9378   ;;
9379 sysv4.2uw2*)
9380   symcode='[DT]'
9381   ;;
9382 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9383   symcode='[ABDT]'
9384   ;;
9385 sysv4)
9386   symcode='[DFNSTU]'
9387   ;;
9388 esac
9389
9390 # Handle CRLF in mingw tool chain
9391 opt_cr=
9392 case $build_os in
9393 mingw*)
9394   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9395   ;;
9396 esac
9397
9398 # If we're using GNU nm, then use its standard symbol codes.
9399 case `$NM -V 2>&1` in
9400 *GNU* | *'with BFD'*)
9401   symcode='[ABCDGIRSTW]' ;;
9402 esac
9403
9404 # Try without a prefix undercore, then with it.
9405 for ac_symprfx in "" "_"; do
9406
9407   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9408   symxfrm="\\1 $ac_symprfx\\2 \\2"
9409
9410   # Write the raw and C identifiers.
9411   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9412
9413   # Check to see that the pipe works correctly.
9414   pipe_works=no
9415
9416   rm -f conftest*
9417   cat > conftest.$ac_ext <<EOF
9418 #ifdef __cplusplus
9419 extern "C" {
9420 #endif
9421 char nm_test_var;
9422 void nm_test_func(){}
9423 #ifdef __cplusplus
9424 }
9425 #endif
9426 int main(){nm_test_var='a';nm_test_func();return(0);}
9427 EOF
9428
9429   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9430   (eval $ac_compile) 2>&5
9431   ac_status=$?
9432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433   (exit $ac_status); }; then
9434     # Now try to grab the symbols.
9435     nlist=conftest.nm
9436     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9437   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9438   ac_status=$?
9439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440   (exit $ac_status); } && test -s "$nlist"; then
9441       # Try sorting and uniquifying the output.
9442       if sort "$nlist" | uniq > "$nlist"T; then
9443         mv -f "$nlist"T "$nlist"
9444       else
9445         rm -f "$nlist"T
9446       fi
9447
9448       # Make sure that we snagged all the symbols we need.
9449       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9450         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9451           cat <<EOF > conftest.$ac_ext
9452 #ifdef __cplusplus
9453 extern "C" {
9454 #endif
9455
9456 EOF
9457           # Now generate the symbol file.
9458           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9459
9460           cat <<EOF >> conftest.$ac_ext
9461 #if defined (__STDC__) && __STDC__
9462 # define lt_ptr_t void *
9463 #else
9464 # define lt_ptr_t char *
9465 # define const
9466 #endif
9467
9468 /* The mapping between symbol names and symbols. */
9469 const struct {
9470   const char *name;
9471   lt_ptr_t address;
9472 }
9473 lt_preloaded_symbols[] =
9474 {
9475 EOF
9476           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9477           cat <<\EOF >> conftest.$ac_ext
9478   {0, (lt_ptr_t) 0}
9479 };
9480
9481 #ifdef __cplusplus
9482 }
9483 #endif
9484 EOF
9485           # Now try linking the two files.
9486           mv conftest.$ac_objext conftstm.$ac_objext
9487           lt_save_LIBS="$LIBS"
9488           lt_save_CFLAGS="$CFLAGS"
9489           LIBS="conftstm.$ac_objext"
9490           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9491           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9492   (eval $ac_link) 2>&5
9493   ac_status=$?
9494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9496             pipe_works=yes
9497           fi
9498           LIBS="$lt_save_LIBS"
9499           CFLAGS="$lt_save_CFLAGS"
9500         else
9501           echo "cannot find nm_test_func in $nlist" >&5
9502         fi
9503       else
9504         echo "cannot find nm_test_var in $nlist" >&5
9505       fi
9506     else
9507       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9508     fi
9509   else
9510     echo "$progname: failed program was:" >&5
9511     cat conftest.$ac_ext >&5
9512   fi
9513   rm -f conftest* conftst*
9514
9515   # Do not use the global_symbol_pipe unless it works.
9516   if test "$pipe_works" = yes; then
9517     break
9518   else
9519     lt_cv_sys_global_symbol_pipe=
9520   fi
9521 done
9522
9523 fi
9524
9525 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9526   lt_cv_sys_global_symbol_to_cdecl=
9527 fi
9528 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9529   { echo "$as_me:$LINENO: result: failed" >&5
9530 echo "${ECHO_T}failed" >&6; }
9531 else
9532   { echo "$as_me:$LINENO: result: ok" >&5
9533 echo "${ECHO_T}ok" >&6; }
9534 fi
9535
9536
9537 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9538 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9539 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9540   echo $ECHO_N "(cached) $ECHO_C" >&6
9541 else
9542   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9543     libltdl_cv_preloaded_symbols=yes
9544   else
9545     libltdl_cv_preloaded_symbols=no
9546   fi
9547
9548 fi
9549 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9550 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9551 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9552
9553 cat >>confdefs.h <<\_ACEOF
9554 #define HAVE_PRELOADED_SYMBOLS 1
9555 _ACEOF
9556
9557 fi
9558
9559 LIBADD_DL=
9560
9561 ac_ext=c
9562 ac_cpp='$CPP $CPPFLAGS'
9563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9566
9567
9568 { echo "$as_me:$LINENO: checking for shl_load" >&5
9569 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9570 if test "${ac_cv_func_shl_load+set}" = set; then
9571   echo $ECHO_N "(cached) $ECHO_C" >&6
9572 else
9573   cat >conftest.$ac_ext <<_ACEOF
9574 /* confdefs.h.  */
9575 _ACEOF
9576 cat confdefs.h >>conftest.$ac_ext
9577 cat >>conftest.$ac_ext <<_ACEOF
9578 /* end confdefs.h.  */
9579 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9581 #define shl_load innocuous_shl_load
9582
9583 /* System header to define __stub macros and hopefully few prototypes,
9584     which can conflict with char shl_load (); below.
9585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9586     <limits.h> exists even on freestanding compilers.  */
9587
9588 #ifdef __STDC__
9589 # include <limits.h>
9590 #else
9591 # include <assert.h>
9592 #endif
9593
9594 #undef shl_load
9595
9596 /* Override any GCC internal prototype to avoid an error.
9597    Use char because int might match the return type of a GCC
9598    builtin and then its argument prototype would still apply.  */
9599 #ifdef __cplusplus
9600 extern "C"
9601 #endif
9602 char shl_load ();
9603 /* The GNU C library defines this for functions which it implements
9604     to always fail with ENOSYS.  Some functions are actually named
9605     something starting with __ and the normal name is an alias.  */
9606 #if defined __stub_shl_load || defined __stub___shl_load
9607 choke me
9608 #endif
9609
9610 int
9611 main ()
9612 {
9613 return shl_load ();
9614   ;
9615   return 0;
9616 }
9617 _ACEOF
9618 rm -f conftest.$ac_objext conftest$ac_exeext
9619 if { (ac_try="$ac_link"
9620 case "(($ac_try" in
9621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9622   *) ac_try_echo=$ac_try;;
9623 esac
9624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625   (eval "$ac_link") 2>conftest.er1
9626   ac_status=$?
9627   grep -v '^ *+' conftest.er1 >conftest.err
9628   rm -f conftest.er1
9629   cat conftest.err >&5
9630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631   (exit $ac_status); } &&
9632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9633   { (case "(($ac_try" in
9634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9635   *) ac_try_echo=$ac_try;;
9636 esac
9637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638   (eval "$ac_try") 2>&5
9639   ac_status=$?
9640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641   (exit $ac_status); }; } &&
9642          { ac_try='test -s conftest$ac_exeext'
9643   { (case "(($ac_try" in
9644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645   *) ac_try_echo=$ac_try;;
9646 esac
9647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648   (eval "$ac_try") 2>&5
9649   ac_status=$?
9650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651   (exit $ac_status); }; }; then
9652   ac_cv_func_shl_load=yes
9653 else
9654   echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.$ac_ext >&5
9656
9657         ac_cv_func_shl_load=no
9658 fi
9659
9660 rm -f core conftest.err conftest.$ac_objext \
9661       conftest$ac_exeext conftest.$ac_ext
9662 fi
9663 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9664 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9665 if test $ac_cv_func_shl_load = yes; then
9666
9667 cat >>confdefs.h <<\_ACEOF
9668 #define HAVE_SHL_LOAD 1
9669 _ACEOF
9670
9671 else
9672   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9673 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9674 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9675   echo $ECHO_N "(cached) $ECHO_C" >&6
9676 else
9677   ac_check_lib_save_LIBS=$LIBS
9678 LIBS="-ldld  $LIBS"
9679 cat >conftest.$ac_ext <<_ACEOF
9680 /* confdefs.h.  */
9681 _ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h.  */
9685
9686 /* Override any GCC internal prototype to avoid an error.
9687    Use char because int might match the return type of a GCC
9688    builtin and then its argument prototype would still apply.  */
9689 #ifdef __cplusplus
9690 extern "C"
9691 #endif
9692 char shl_load ();
9693 int
9694 main ()
9695 {
9696 return shl_load ();
9697   ;
9698   return 0;
9699 }
9700 _ACEOF
9701 rm -f conftest.$ac_objext conftest$ac_exeext
9702 if { (ac_try="$ac_link"
9703 case "(($ac_try" in
9704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705   *) ac_try_echo=$ac_try;;
9706 esac
9707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9708   (eval "$ac_link") 2>conftest.er1
9709   ac_status=$?
9710   grep -v '^ *+' conftest.er1 >conftest.err
9711   rm -f conftest.er1
9712   cat conftest.err >&5
9713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714   (exit $ac_status); } &&
9715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9716   { (case "(($ac_try" in
9717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9718   *) ac_try_echo=$ac_try;;
9719 esac
9720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9721   (eval "$ac_try") 2>&5
9722   ac_status=$?
9723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724   (exit $ac_status); }; } &&
9725          { ac_try='test -s conftest$ac_exeext'
9726   { (case "(($ac_try" in
9727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728   *) ac_try_echo=$ac_try;;
9729 esac
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731   (eval "$ac_try") 2>&5
9732   ac_status=$?
9733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); }; }; then
9735   ac_cv_lib_dld_shl_load=yes
9736 else
9737   echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9739
9740         ac_cv_lib_dld_shl_load=no
9741 fi
9742
9743 rm -f core conftest.err conftest.$ac_objext \
9744       conftest$ac_exeext conftest.$ac_ext
9745 LIBS=$ac_check_lib_save_LIBS
9746 fi
9747 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9748 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9749 if test $ac_cv_lib_dld_shl_load = yes; then
9750
9751 cat >>confdefs.h <<\_ACEOF
9752 #define HAVE_SHL_LOAD 1
9753 _ACEOF
9754
9755         LIBADD_DL="$LIBADD_DL -ldld"
9756 else
9757   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9758 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9759 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9760   echo $ECHO_N "(cached) $ECHO_C" >&6
9761 else
9762   ac_check_lib_save_LIBS=$LIBS
9763 LIBS="-ldl  $LIBS"
9764 cat >conftest.$ac_ext <<_ACEOF
9765 /* confdefs.h.  */
9766 _ACEOF
9767 cat confdefs.h >>conftest.$ac_ext
9768 cat >>conftest.$ac_ext <<_ACEOF
9769 /* end confdefs.h.  */
9770
9771 /* Override any GCC internal prototype to avoid an error.
9772    Use char because int might match the return type of a GCC
9773    builtin and then its argument prototype would still apply.  */
9774 #ifdef __cplusplus
9775 extern "C"
9776 #endif
9777 char dlopen ();
9778 int
9779 main ()
9780 {
9781 return dlopen ();
9782   ;
9783   return 0;
9784 }
9785 _ACEOF
9786 rm -f conftest.$ac_objext conftest$ac_exeext
9787 if { (ac_try="$ac_link"
9788 case "(($ac_try" in
9789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790   *) ac_try_echo=$ac_try;;
9791 esac
9792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793   (eval "$ac_link") 2>conftest.er1
9794   ac_status=$?
9795   grep -v '^ *+' conftest.er1 >conftest.err
9796   rm -f conftest.er1
9797   cat conftest.err >&5
9798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799   (exit $ac_status); } &&
9800          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9801   { (case "(($ac_try" in
9802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9803   *) ac_try_echo=$ac_try;;
9804 esac
9805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806   (eval "$ac_try") 2>&5
9807   ac_status=$?
9808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809   (exit $ac_status); }; } &&
9810          { ac_try='test -s conftest$ac_exeext'
9811   { (case "(($ac_try" in
9812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813   *) ac_try_echo=$ac_try;;
9814 esac
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816   (eval "$ac_try") 2>&5
9817   ac_status=$?
9818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819   (exit $ac_status); }; }; then
9820   ac_cv_lib_dl_dlopen=yes
9821 else
9822   echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9824
9825         ac_cv_lib_dl_dlopen=no
9826 fi
9827
9828 rm -f core conftest.err conftest.$ac_objext \
9829       conftest$ac_exeext conftest.$ac_ext
9830 LIBS=$ac_check_lib_save_LIBS
9831 fi
9832 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9833 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9834 if test $ac_cv_lib_dl_dlopen = yes; then
9835
9836 cat >>confdefs.h <<\_ACEOF
9837 #define HAVE_LIBDL 1
9838 _ACEOF
9839
9840                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9841 else
9842   cat >conftest.$ac_ext <<_ACEOF
9843 /* confdefs.h.  */
9844 _ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h.  */
9848 #if HAVE_DLFCN_H
9849 #  include <dlfcn.h>
9850 #endif
9851
9852 int
9853 main ()
9854 {
9855 dlopen(0, 0);
9856   ;
9857   return 0;
9858 }
9859 _ACEOF
9860 rm -f conftest.$ac_objext conftest$ac_exeext
9861 if { (ac_try="$ac_link"
9862 case "(($ac_try" in
9863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9864   *) ac_try_echo=$ac_try;;
9865 esac
9866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9867   (eval "$ac_link") 2>conftest.er1
9868   ac_status=$?
9869   grep -v '^ *+' conftest.er1 >conftest.err
9870   rm -f conftest.er1
9871   cat conftest.err >&5
9872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873   (exit $ac_status); } &&
9874          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9875   { (case "(($ac_try" in
9876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9877   *) ac_try_echo=$ac_try;;
9878 esac
9879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9880   (eval "$ac_try") 2>&5
9881   ac_status=$?
9882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883   (exit $ac_status); }; } &&
9884          { ac_try='test -s conftest$ac_exeext'
9885   { (case "(($ac_try" in
9886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9887   *) ac_try_echo=$ac_try;;
9888 esac
9889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9890   (eval "$ac_try") 2>&5
9891   ac_status=$?
9892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893   (exit $ac_status); }; }; then
9894
9895 cat >>confdefs.h <<\_ACEOF
9896 #define HAVE_LIBDL 1
9897 _ACEOF
9898  libltdl_cv_func_dlopen="yes"
9899 else
9900   echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9902
9903         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9904 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9905 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9906   echo $ECHO_N "(cached) $ECHO_C" >&6
9907 else
9908   ac_check_lib_save_LIBS=$LIBS
9909 LIBS="-lsvld  $LIBS"
9910 cat >conftest.$ac_ext <<_ACEOF
9911 /* confdefs.h.  */
9912 _ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h.  */
9916
9917 /* Override any GCC internal prototype to avoid an error.
9918    Use char because int might match the return type of a GCC
9919    builtin and then its argument prototype would still apply.  */
9920 #ifdef __cplusplus
9921 extern "C"
9922 #endif
9923 char dlopen ();
9924 int
9925 main ()
9926 {
9927 return dlopen ();
9928   ;
9929   return 0;
9930 }
9931 _ACEOF
9932 rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (ac_try="$ac_link"
9934 case "(($ac_try" in
9935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936   *) ac_try_echo=$ac_try;;
9937 esac
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939   (eval "$ac_link") 2>conftest.er1
9940   ac_status=$?
9941   grep -v '^ *+' conftest.er1 >conftest.err
9942   rm -f conftest.er1
9943   cat conftest.err >&5
9944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945   (exit $ac_status); } &&
9946          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9947   { (case "(($ac_try" in
9948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949   *) ac_try_echo=$ac_try;;
9950 esac
9951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952   (eval "$ac_try") 2>&5
9953   ac_status=$?
9954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955   (exit $ac_status); }; } &&
9956          { ac_try='test -s conftest$ac_exeext'
9957   { (case "(($ac_try" in
9958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959   *) ac_try_echo=$ac_try;;
9960 esac
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962   (eval "$ac_try") 2>&5
9963   ac_status=$?
9964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965   (exit $ac_status); }; }; then
9966   ac_cv_lib_svld_dlopen=yes
9967 else
9968   echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.$ac_ext >&5
9970
9971         ac_cv_lib_svld_dlopen=no
9972 fi
9973
9974 rm -f core conftest.err conftest.$ac_objext \
9975       conftest$ac_exeext conftest.$ac_ext
9976 LIBS=$ac_check_lib_save_LIBS
9977 fi
9978 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9979 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9980 if test $ac_cv_lib_svld_dlopen = yes; then
9981
9982 cat >>confdefs.h <<\_ACEOF
9983 #define HAVE_LIBDL 1
9984 _ACEOF
9985
9986                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9987 else
9988   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9989 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9990 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9991   echo $ECHO_N "(cached) $ECHO_C" >&6
9992 else
9993   ac_check_lib_save_LIBS=$LIBS
9994 LIBS="-ldld  $LIBS"
9995 cat >conftest.$ac_ext <<_ACEOF
9996 /* confdefs.h.  */
9997 _ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h.  */
10001
10002 /* Override any GCC internal prototype to avoid an error.
10003    Use char because int might match the return type of a GCC
10004    builtin and then its argument prototype would still apply.  */
10005 #ifdef __cplusplus
10006 extern "C"
10007 #endif
10008 char dld_link ();
10009 int
10010 main ()
10011 {
10012 return dld_link ();
10013   ;
10014   return 0;
10015 }
10016 _ACEOF
10017 rm -f conftest.$ac_objext conftest$ac_exeext
10018 if { (ac_try="$ac_link"
10019 case "(($ac_try" in
10020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10021   *) ac_try_echo=$ac_try;;
10022 esac
10023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10024   (eval "$ac_link") 2>conftest.er1
10025   ac_status=$?
10026   grep -v '^ *+' conftest.er1 >conftest.err
10027   rm -f conftest.er1
10028   cat conftest.err >&5
10029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030   (exit $ac_status); } &&
10031          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10032   { (case "(($ac_try" in
10033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10034   *) ac_try_echo=$ac_try;;
10035 esac
10036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10037   (eval "$ac_try") 2>&5
10038   ac_status=$?
10039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040   (exit $ac_status); }; } &&
10041          { ac_try='test -s conftest$ac_exeext'
10042   { (case "(($ac_try" in
10043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044   *) ac_try_echo=$ac_try;;
10045 esac
10046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047   (eval "$ac_try") 2>&5
10048   ac_status=$?
10049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050   (exit $ac_status); }; }; then
10051   ac_cv_lib_dld_dld_link=yes
10052 else
10053   echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10055
10056         ac_cv_lib_dld_dld_link=no
10057 fi
10058
10059 rm -f core conftest.err conftest.$ac_objext \
10060       conftest$ac_exeext conftest.$ac_ext
10061 LIBS=$ac_check_lib_save_LIBS
10062 fi
10063 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10064 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10065 if test $ac_cv_lib_dld_dld_link = yes; then
10066
10067 cat >>confdefs.h <<\_ACEOF
10068 #define HAVE_DLD 1
10069 _ACEOF
10070
10071                 LIBADD_DL="$LIBADD_DL -ldld"
10072 else
10073   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10074 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10075 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10076   echo $ECHO_N "(cached) $ECHO_C" >&6
10077 else
10078   cat >conftest.$ac_ext <<_ACEOF
10079 /* confdefs.h.  */
10080 _ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h.  */
10084 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10085    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10086 #define _dyld_func_lookup innocuous__dyld_func_lookup
10087
10088 /* System header to define __stub macros and hopefully few prototypes,
10089     which can conflict with char _dyld_func_lookup (); below.
10090     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10091     <limits.h> exists even on freestanding compilers.  */
10092
10093 #ifdef __STDC__
10094 # include <limits.h>
10095 #else
10096 # include <assert.h>
10097 #endif
10098
10099 #undef _dyld_func_lookup
10100
10101 /* Override any GCC internal prototype to avoid an error.
10102    Use char because int might match the return type of a GCC
10103    builtin and then its argument prototype would still apply.  */
10104 #ifdef __cplusplus
10105 extern "C"
10106 #endif
10107 char _dyld_func_lookup ();
10108 /* The GNU C library defines this for functions which it implements
10109     to always fail with ENOSYS.  Some functions are actually named
10110     something starting with __ and the normal name is an alias.  */
10111 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10112 choke me
10113 #endif
10114
10115 int
10116 main ()
10117 {
10118 return _dyld_func_lookup ();
10119   ;
10120   return 0;
10121 }
10122 _ACEOF
10123 rm -f conftest.$ac_objext conftest$ac_exeext
10124 if { (ac_try="$ac_link"
10125 case "(($ac_try" in
10126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127   *) ac_try_echo=$ac_try;;
10128 esac
10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130   (eval "$ac_link") 2>conftest.er1
10131   ac_status=$?
10132   grep -v '^ *+' conftest.er1 >conftest.err
10133   rm -f conftest.er1
10134   cat conftest.err >&5
10135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136   (exit $ac_status); } &&
10137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10138   { (case "(($ac_try" in
10139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140   *) ac_try_echo=$ac_try;;
10141 esac
10142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143   (eval "$ac_try") 2>&5
10144   ac_status=$?
10145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146   (exit $ac_status); }; } &&
10147          { ac_try='test -s conftest$ac_exeext'
10148   { (case "(($ac_try" in
10149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150   *) ac_try_echo=$ac_try;;
10151 esac
10152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153   (eval "$ac_try") 2>&5
10154   ac_status=$?
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); }; }; then
10157   ac_cv_func__dyld_func_lookup=yes
10158 else
10159   echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10161
10162         ac_cv_func__dyld_func_lookup=no
10163 fi
10164
10165 rm -f core conftest.err conftest.$ac_objext \
10166       conftest$ac_exeext conftest.$ac_ext
10167 fi
10168 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10169 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10170 if test $ac_cv_func__dyld_func_lookup = yes; then
10171
10172 cat >>confdefs.h <<\_ACEOF
10173 #define HAVE_DYLD 1
10174 _ACEOF
10175
10176 fi
10177
10178
10179 fi
10180
10181
10182 fi
10183
10184
10185 fi
10186
10187 rm -f core conftest.err conftest.$ac_objext \
10188       conftest$ac_exeext conftest.$ac_ext
10189
10190 fi
10191
10192
10193 fi
10194
10195
10196 fi
10197
10198
10199 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10200 then
10201   lt_save_LIBS="$LIBS"
10202   LIBS="$LIBS $LIBADD_DL"
10203
10204 for ac_func in dlerror
10205 do
10206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10207 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10209 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10210   echo $ECHO_N "(cached) $ECHO_C" >&6
10211 else
10212   cat >conftest.$ac_ext <<_ACEOF
10213 /* confdefs.h.  */
10214 _ACEOF
10215 cat confdefs.h >>conftest.$ac_ext
10216 cat >>conftest.$ac_ext <<_ACEOF
10217 /* end confdefs.h.  */
10218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10219    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10220 #define $ac_func innocuous_$ac_func
10221
10222 /* System header to define __stub macros and hopefully few prototypes,
10223     which can conflict with char $ac_func (); below.
10224     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10225     <limits.h> exists even on freestanding compilers.  */
10226
10227 #ifdef __STDC__
10228 # include <limits.h>
10229 #else
10230 # include <assert.h>
10231 #endif
10232
10233 #undef $ac_func
10234
10235 /* Override any GCC internal prototype to avoid an error.
10236    Use char because int might match the return type of a GCC
10237    builtin and then its argument prototype would still apply.  */
10238 #ifdef __cplusplus
10239 extern "C"
10240 #endif
10241 char $ac_func ();
10242 /* The GNU C library defines this for functions which it implements
10243     to always fail with ENOSYS.  Some functions are actually named
10244     something starting with __ and the normal name is an alias.  */
10245 #if defined __stub_$ac_func || defined __stub___$ac_func
10246 choke me
10247 #endif
10248
10249 int
10250 main ()
10251 {
10252 return $ac_func ();
10253   ;
10254   return 0;
10255 }
10256 _ACEOF
10257 rm -f conftest.$ac_objext conftest$ac_exeext
10258 if { (ac_try="$ac_link"
10259 case "(($ac_try" in
10260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10261   *) ac_try_echo=$ac_try;;
10262 esac
10263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10264   (eval "$ac_link") 2>conftest.er1
10265   ac_status=$?
10266   grep -v '^ *+' conftest.er1 >conftest.err
10267   rm -f conftest.er1
10268   cat conftest.err >&5
10269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270   (exit $ac_status); } &&
10271          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10272   { (case "(($ac_try" in
10273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274   *) ac_try_echo=$ac_try;;
10275 esac
10276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10277   (eval "$ac_try") 2>&5
10278   ac_status=$?
10279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280   (exit $ac_status); }; } &&
10281          { ac_try='test -s conftest$ac_exeext'
10282   { (case "(($ac_try" in
10283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284   *) ac_try_echo=$ac_try;;
10285 esac
10286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287   (eval "$ac_try") 2>&5
10288   ac_status=$?
10289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290   (exit $ac_status); }; }; then
10291   eval "$as_ac_var=yes"
10292 else
10293   echo "$as_me: failed program was:" >&5
10294 sed 's/^/| /' conftest.$ac_ext >&5
10295
10296         eval "$as_ac_var=no"
10297 fi
10298
10299 rm -f core conftest.err conftest.$ac_objext \
10300       conftest$ac_exeext conftest.$ac_ext
10301 fi
10302 ac_res=`eval echo '${'$as_ac_var'}'`
10303                { echo "$as_me:$LINENO: result: $ac_res" >&5
10304 echo "${ECHO_T}$ac_res" >&6; }
10305 if test `eval echo '${'$as_ac_var'}'` = yes; then
10306   cat >>confdefs.h <<_ACEOF
10307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10308 _ACEOF
10309
10310 fi
10311 done
10312
10313   LIBS="$lt_save_LIBS"
10314 fi
10315 ac_ext=c
10316 ac_cpp='$CPP $CPPFLAGS'
10317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10320
10321
10322
10323 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10324 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10325 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10326   echo $ECHO_N "(cached) $ECHO_C" >&6
10327 else
10328   ac_cv_sys_symbol_underscore=no
10329   cat > conftest.$ac_ext <<EOF
10330 void nm_test_func(){}
10331 int main(){nm_test_func;return 0;}
10332 EOF
10333   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10334   (eval $ac_compile) 2>&5
10335   ac_status=$?
10336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337   (exit $ac_status); }; then
10338     # Now try to grab the symbols.
10339     ac_nlist=conftest.nm
10340     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10341   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10342   ac_status=$?
10343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344   (exit $ac_status); } && test -s "$ac_nlist"; then
10345       # See whether the symbols have a leading underscore.
10346       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10347         ac_cv_sys_symbol_underscore=yes
10348       else
10349         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10350           :
10351         else
10352           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10353         fi
10354       fi
10355     else
10356       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10357     fi
10358   else
10359     echo "configure: failed program was:" >&5
10360     cat conftest.c >&5
10361   fi
10362   rm -rf conftest*
10363
10364 fi
10365 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10366 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10367
10368
10369 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10370   if test x"$libltdl_cv_func_dlopen" = xyes ||
10371      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10372         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10373 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10374 if test "${libltdl_cv_need_uscore+set}" = set; then
10375   echo $ECHO_N "(cached) $ECHO_C" >&6
10376 else
10377   libltdl_cv_need_uscore=unknown
10378           save_LIBS="$LIBS"
10379           LIBS="$LIBS $LIBADD_DL"
10380           if test "$cross_compiling" = yes; then :
10381   libltdl_cv_need_uscore=cross
10382 else
10383   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10384   lt_status=$lt_dlunknown
10385   cat > conftest.$ac_ext <<EOF
10386 #line 10386 "configure"
10387 #include "confdefs.h"
10388
10389 #if HAVE_DLFCN_H
10390 #include <dlfcn.h>
10391 #endif
10392
10393 #include <stdio.h>
10394
10395 #ifdef RTLD_GLOBAL
10396 #  define LT_DLGLOBAL           RTLD_GLOBAL
10397 #else
10398 #  ifdef DL_GLOBAL
10399 #    define LT_DLGLOBAL         DL_GLOBAL
10400 #  else
10401 #    define LT_DLGLOBAL         0
10402 #  endif
10403 #endif
10404
10405 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10406    find out it does not work in some platform. */
10407 #ifndef LT_DLLAZY_OR_NOW
10408 #  ifdef RTLD_LAZY
10409 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10410 #  else
10411 #    ifdef DL_LAZY
10412 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10413 #    else
10414 #      ifdef RTLD_NOW
10415 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10416 #      else
10417 #        ifdef DL_NOW
10418 #          define LT_DLLAZY_OR_NOW      DL_NOW
10419 #        else
10420 #          define LT_DLLAZY_OR_NOW      0
10421 #        endif
10422 #      endif
10423 #    endif
10424 #  endif
10425 #endif
10426
10427 #ifdef __cplusplus
10428 extern "C" void exit (int);
10429 #endif
10430
10431 void fnord() { int i=42;}
10432 int main ()
10433 {
10434   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10435   int status = $lt_dlunknown;
10436
10437   if (self)
10438     {
10439       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10440       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10441       /* dlclose (self); */
10442     }
10443   else
10444     puts (dlerror ());
10445
10446     exit (status);
10447 }
10448 EOF
10449   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10450   (eval $ac_link) 2>&5
10451   ac_status=$?
10452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10454     (./conftest; exit; ) >&5 2>/dev/null
10455     lt_status=$?
10456     case x$lt_status in
10457       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10458       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10459       x$lt_dlunknown|x*)  ;;
10460     esac
10461   else :
10462     # compilation failed
10463
10464   fi
10465 fi
10466 rm -fr conftest*
10467
10468           LIBS="$save_LIBS"
10469
10470 fi
10471 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10472 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10473   fi
10474 fi
10475
10476 if test x"$libltdl_cv_need_uscore" = xyes; then
10477
10478 cat >>confdefs.h <<\_ACEOF
10479 #define NEED_USCORE 1
10480 _ACEOF
10481
10482 fi
10483
10484
10485 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10486 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10487 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10488   echo $ECHO_N "(cached) $ECHO_C" >&6
10489 else
10490   # PORTME does your system automatically load deplibs for dlopen?
10491   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10492   # For now, we just catch OSes we know something about -- in the
10493   # future, we'll try test this programmatically.
10494   libltdl_cv_sys_dlopen_deplibs=unknown
10495   case "$host_os" in
10496   aix3*|aix4.1.*|aix4.2.*)
10497     # Unknown whether this is true for these versions of AIX, but
10498     # we want this `case' here to explicitly catch those versions.
10499     libltdl_cv_sys_dlopen_deplibs=unknown
10500     ;;
10501   aix[45]*)
10502     libltdl_cv_sys_dlopen_deplibs=yes
10503     ;;
10504   darwin*)
10505     # Assuming the user has installed a libdl from somewhere, this is true
10506     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10507     libltdl_cv_sys_dlopen_deplibs=yes
10508     ;;
10509   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10510     # GNU and its variants, using gnu ld.so (Glibc)
10511     libltdl_cv_sys_dlopen_deplibs=yes
10512     ;;
10513   hpux10*|hpux11*)
10514     libltdl_cv_sys_dlopen_deplibs=yes
10515     ;;
10516   interix*)
10517     libltdl_cv_sys_dlopen_deplibs=yes
10518     ;;
10519   irix[12345]*|irix6.[01]*)
10520     # Catch all versions of IRIX before 6.2, and indicate that we don't
10521     # know how it worked for any of those versions.
10522     libltdl_cv_sys_dlopen_deplibs=unknown
10523     ;;
10524   irix*)
10525     # The case above catches anything before 6.2, and it's known that
10526     # at 6.2 and later dlopen does load deplibs.
10527     libltdl_cv_sys_dlopen_deplibs=yes
10528     ;;
10529   netbsd*)
10530     libltdl_cv_sys_dlopen_deplibs=yes
10531     ;;
10532   openbsd*)
10533     libltdl_cv_sys_dlopen_deplibs=yes
10534     ;;
10535   osf[1234]*)
10536     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10537     # it did *not* use an RPATH in a shared library to find objects the
10538     # library depends on, so we explicitly say `no'.
10539     libltdl_cv_sys_dlopen_deplibs=no
10540     ;;
10541   osf5.0|osf5.0a|osf5.1)
10542     # dlopen *does* load deplibs and with the right loader patch applied
10543     # it even uses RPATH in a shared library to search for shared objects
10544     # that the library depends on, but there's no easy way to know if that
10545     # patch is installed.  Since this is the case, all we can really
10546     # say is unknown -- it depends on the patch being installed.  If
10547     # it is, this changes to `yes'.  Without it, it would be `no'.
10548     libltdl_cv_sys_dlopen_deplibs=unknown
10549     ;;
10550   osf*)
10551     # the two cases above should catch all versions of osf <= 5.1.  Read
10552     # the comments above for what we know about them.
10553     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10554     # is used to find them so we can finally say `yes'.
10555     libltdl_cv_sys_dlopen_deplibs=yes
10556     ;;
10557   solaris*)
10558     libltdl_cv_sys_dlopen_deplibs=yes
10559     ;;
10560   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10561     libltdl_cv_sys_dlopen_deplibs=yes
10562     ;;
10563   esac
10564
10565 fi
10566 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10567 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10568 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10569
10570 cat >>confdefs.h <<\_ACEOF
10571 #define LTDL_DLOPEN_DEPLIBS 1
10572 _ACEOF
10573
10574 fi
10575
10576
10577 for ac_header in argz.h
10578 do
10579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10581   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10584   echo $ECHO_N "(cached) $ECHO_C" >&6
10585 fi
10586 ac_res=`eval echo '${'$as_ac_Header'}'`
10587                { echo "$as_me:$LINENO: result: $ac_res" >&5
10588 echo "${ECHO_T}$ac_res" >&6; }
10589 else
10590   # Is the header compilable?
10591 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10593 cat >conftest.$ac_ext <<_ACEOF
10594 /* confdefs.h.  */
10595 _ACEOF
10596 cat confdefs.h >>conftest.$ac_ext
10597 cat >>conftest.$ac_ext <<_ACEOF
10598 /* end confdefs.h.  */
10599 $ac_includes_default
10600 #include <$ac_header>
10601 _ACEOF
10602 rm -f conftest.$ac_objext
10603 if { (ac_try="$ac_compile"
10604 case "(($ac_try" in
10605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606   *) ac_try_echo=$ac_try;;
10607 esac
10608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10609   (eval "$ac_compile") 2>conftest.er1
10610   ac_status=$?
10611   grep -v '^ *+' conftest.er1 >conftest.err
10612   rm -f conftest.er1
10613   cat conftest.err >&5
10614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); } &&
10616          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10617   { (case "(($ac_try" in
10618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619   *) ac_try_echo=$ac_try;;
10620 esac
10621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622   (eval "$ac_try") 2>&5
10623   ac_status=$?
10624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625   (exit $ac_status); }; } &&
10626          { ac_try='test -s conftest.$ac_objext'
10627   { (case "(($ac_try" in
10628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10629   *) ac_try_echo=$ac_try;;
10630 esac
10631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632   (eval "$ac_try") 2>&5
10633   ac_status=$?
10634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635   (exit $ac_status); }; }; then
10636   ac_header_compiler=yes
10637 else
10638   echo "$as_me: failed program was:" >&5
10639 sed 's/^/| /' conftest.$ac_ext >&5
10640
10641         ac_header_compiler=no
10642 fi
10643
10644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10646 echo "${ECHO_T}$ac_header_compiler" >&6; }
10647
10648 # Is the header present?
10649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10651 cat >conftest.$ac_ext <<_ACEOF
10652 /* confdefs.h.  */
10653 _ACEOF
10654 cat confdefs.h >>conftest.$ac_ext
10655 cat >>conftest.$ac_ext <<_ACEOF
10656 /* end confdefs.h.  */
10657 #include <$ac_header>
10658 _ACEOF
10659 if { (ac_try="$ac_cpp conftest.$ac_ext"
10660 case "(($ac_try" in
10661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662   *) ac_try_echo=$ac_try;;
10663 esac
10664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10665   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10666   ac_status=$?
10667   grep -v '^ *+' conftest.er1 >conftest.err
10668   rm -f conftest.er1
10669   cat conftest.err >&5
10670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671   (exit $ac_status); } >/dev/null; then
10672   if test -s conftest.err; then
10673     ac_cpp_err=$ac_c_preproc_warn_flag
10674     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10675   else
10676     ac_cpp_err=
10677   fi
10678 else
10679   ac_cpp_err=yes
10680 fi
10681 if test -z "$ac_cpp_err"; then
10682   ac_header_preproc=yes
10683 else
10684   echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10686
10687   ac_header_preproc=no
10688 fi
10689
10690 rm -f conftest.err conftest.$ac_ext
10691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10692 echo "${ECHO_T}$ac_header_preproc" >&6; }
10693
10694 # So?  What about this header?
10695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10696   yes:no: )
10697     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10699     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10701     ac_header_preproc=yes
10702     ;;
10703   no:yes:* )
10704     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10706     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10707 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10708     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10710     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10711 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10712     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10714     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10716     ( cat <<\_ASBOX
10717 ## ------------------------------ ##
10718 ## Report this to bugs@yourdomain ##
10719 ## ------------------------------ ##
10720 _ASBOX
10721      ) | sed "s/^/$as_me: WARNING:     /" >&2
10722     ;;
10723 esac
10724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10727   echo $ECHO_N "(cached) $ECHO_C" >&6
10728 else
10729   eval "$as_ac_Header=\$ac_header_preproc"
10730 fi
10731 ac_res=`eval echo '${'$as_ac_Header'}'`
10732                { echo "$as_me:$LINENO: result: $ac_res" >&5
10733 echo "${ECHO_T}$ac_res" >&6; }
10734
10735 fi
10736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10737   cat >>confdefs.h <<_ACEOF
10738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10739 _ACEOF
10740
10741 fi
10742
10743 done
10744
10745
10746 { echo "$as_me:$LINENO: checking for error_t" >&5
10747 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10748 if test "${ac_cv_type_error_t+set}" = set; then
10749   echo $ECHO_N "(cached) $ECHO_C" >&6
10750 else
10751   cat >conftest.$ac_ext <<_ACEOF
10752 /* confdefs.h.  */
10753 _ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h.  */
10757 #if HAVE_ARGZ_H
10758 #  include <argz.h>
10759 #endif
10760
10761 typedef error_t ac__type_new_;
10762 int
10763 main ()
10764 {
10765 if ((ac__type_new_ *) 0)
10766   return 0;
10767 if (sizeof (ac__type_new_))
10768   return 0;
10769   ;
10770   return 0;
10771 }
10772 _ACEOF
10773 rm -f conftest.$ac_objext
10774 if { (ac_try="$ac_compile"
10775 case "(($ac_try" in
10776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777   *) ac_try_echo=$ac_try;;
10778 esac
10779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780   (eval "$ac_compile") 2>conftest.er1
10781   ac_status=$?
10782   grep -v '^ *+' conftest.er1 >conftest.err
10783   rm -f conftest.er1
10784   cat conftest.err >&5
10785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786   (exit $ac_status); } &&
10787          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10788   { (case "(($ac_try" in
10789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790   *) ac_try_echo=$ac_try;;
10791 esac
10792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793   (eval "$ac_try") 2>&5
10794   ac_status=$?
10795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796   (exit $ac_status); }; } &&
10797          { ac_try='test -s conftest.$ac_objext'
10798   { (case "(($ac_try" in
10799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800   *) ac_try_echo=$ac_try;;
10801 esac
10802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803   (eval "$ac_try") 2>&5
10804   ac_status=$?
10805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806   (exit $ac_status); }; }; then
10807   ac_cv_type_error_t=yes
10808 else
10809   echo "$as_me: failed program was:" >&5
10810 sed 's/^/| /' conftest.$ac_ext >&5
10811
10812         ac_cv_type_error_t=no
10813 fi
10814
10815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10816 fi
10817 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10818 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10819 if test $ac_cv_type_error_t = yes; then
10820
10821 cat >>confdefs.h <<_ACEOF
10822 #define HAVE_ERROR_T 1
10823 _ACEOF
10824
10825
10826 else
10827
10828 cat >>confdefs.h <<\_ACEOF
10829 #define error_t int
10830 _ACEOF
10831
10832 fi
10833
10834
10835
10836
10837
10838
10839
10840 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10841 do
10842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10843 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10845 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10846   echo $ECHO_N "(cached) $ECHO_C" >&6
10847 else
10848   cat >conftest.$ac_ext <<_ACEOF
10849 /* confdefs.h.  */
10850 _ACEOF
10851 cat confdefs.h >>conftest.$ac_ext
10852 cat >>conftest.$ac_ext <<_ACEOF
10853 /* end confdefs.h.  */
10854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10855    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10856 #define $ac_func innocuous_$ac_func
10857
10858 /* System header to define __stub macros and hopefully few prototypes,
10859     which can conflict with char $ac_func (); below.
10860     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10861     <limits.h> exists even on freestanding compilers.  */
10862
10863 #ifdef __STDC__
10864 # include <limits.h>
10865 #else
10866 # include <assert.h>
10867 #endif
10868
10869 #undef $ac_func
10870
10871 /* Override any GCC internal prototype to avoid an error.
10872    Use char because int might match the return type of a GCC
10873    builtin and then its argument prototype would still apply.  */
10874 #ifdef __cplusplus
10875 extern "C"
10876 #endif
10877 char $ac_func ();
10878 /* The GNU C library defines this for functions which it implements
10879     to always fail with ENOSYS.  Some functions are actually named
10880     something starting with __ and the normal name is an alias.  */
10881 #if defined __stub_$ac_func || defined __stub___$ac_func
10882 choke me
10883 #endif
10884
10885 int
10886 main ()
10887 {
10888 return $ac_func ();
10889   ;
10890   return 0;
10891 }
10892 _ACEOF
10893 rm -f conftest.$ac_objext conftest$ac_exeext
10894 if { (ac_try="$ac_link"
10895 case "(($ac_try" in
10896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10897   *) ac_try_echo=$ac_try;;
10898 esac
10899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10900   (eval "$ac_link") 2>conftest.er1
10901   ac_status=$?
10902   grep -v '^ *+' conftest.er1 >conftest.err
10903   rm -f conftest.er1
10904   cat conftest.err >&5
10905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906   (exit $ac_status); } &&
10907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10908   { (case "(($ac_try" in
10909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10910   *) ac_try_echo=$ac_try;;
10911 esac
10912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10913   (eval "$ac_try") 2>&5
10914   ac_status=$?
10915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916   (exit $ac_status); }; } &&
10917          { ac_try='test -s conftest$ac_exeext'
10918   { (case "(($ac_try" in
10919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920   *) ac_try_echo=$ac_try;;
10921 esac
10922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923   (eval "$ac_try") 2>&5
10924   ac_status=$?
10925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926   (exit $ac_status); }; }; then
10927   eval "$as_ac_var=yes"
10928 else
10929   echo "$as_me: failed program was:" >&5
10930 sed 's/^/| /' conftest.$ac_ext >&5
10931
10932         eval "$as_ac_var=no"
10933 fi
10934
10935 rm -f core conftest.err conftest.$ac_objext \
10936       conftest$ac_exeext conftest.$ac_ext
10937 fi
10938 ac_res=`eval echo '${'$as_ac_var'}'`
10939                { echo "$as_me:$LINENO: result: $ac_res" >&5
10940 echo "${ECHO_T}$ac_res" >&6; }
10941 if test `eval echo '${'$as_ac_var'}'` = yes; then
10942   cat >>confdefs.h <<_ACEOF
10943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10944 _ACEOF
10945
10946 fi
10947 done
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10976                   stdio.h unistd.h
10977 do
10978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10980   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10983   echo $ECHO_N "(cached) $ECHO_C" >&6
10984 fi
10985 ac_res=`eval echo '${'$as_ac_Header'}'`
10986                { echo "$as_me:$LINENO: result: $ac_res" >&5
10987 echo "${ECHO_T}$ac_res" >&6; }
10988 else
10989   # Is the header compilable?
10990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10992 cat >conftest.$ac_ext <<_ACEOF
10993 /* confdefs.h.  */
10994 _ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h.  */
10998 $ac_includes_default
10999 #include <$ac_header>
11000 _ACEOF
11001 rm -f conftest.$ac_objext
11002 if { (ac_try="$ac_compile"
11003 case "(($ac_try" in
11004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005   *) ac_try_echo=$ac_try;;
11006 esac
11007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11008   (eval "$ac_compile") 2>conftest.er1
11009   ac_status=$?
11010   grep -v '^ *+' conftest.er1 >conftest.err
11011   rm -f conftest.er1
11012   cat conftest.err >&5
11013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014   (exit $ac_status); } &&
11015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11016   { (case "(($ac_try" in
11017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018   *) ac_try_echo=$ac_try;;
11019 esac
11020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021   (eval "$ac_try") 2>&5
11022   ac_status=$?
11023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024   (exit $ac_status); }; } &&
11025          { ac_try='test -s conftest.$ac_objext'
11026   { (case "(($ac_try" in
11027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028   *) ac_try_echo=$ac_try;;
11029 esac
11030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031   (eval "$ac_try") 2>&5
11032   ac_status=$?
11033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034   (exit $ac_status); }; }; then
11035   ac_header_compiler=yes
11036 else
11037   echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11039
11040         ac_header_compiler=no
11041 fi
11042
11043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11045 echo "${ECHO_T}$ac_header_compiler" >&6; }
11046
11047 # Is the header present?
11048 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11050 cat >conftest.$ac_ext <<_ACEOF
11051 /* confdefs.h.  */
11052 _ACEOF
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h.  */
11056 #include <$ac_header>
11057 _ACEOF
11058 if { (ac_try="$ac_cpp conftest.$ac_ext"
11059 case "(($ac_try" in
11060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11061   *) ac_try_echo=$ac_try;;
11062 esac
11063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11064   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11065   ac_status=$?
11066   grep -v '^ *+' conftest.er1 >conftest.err
11067   rm -f conftest.er1
11068   cat conftest.err >&5
11069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070   (exit $ac_status); } >/dev/null; then
11071   if test -s conftest.err; then
11072     ac_cpp_err=$ac_c_preproc_warn_flag
11073     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11074   else
11075     ac_cpp_err=
11076   fi
11077 else
11078   ac_cpp_err=yes
11079 fi
11080 if test -z "$ac_cpp_err"; then
11081   ac_header_preproc=yes
11082 else
11083   echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11085
11086   ac_header_preproc=no
11087 fi
11088
11089 rm -f conftest.err conftest.$ac_ext
11090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11091 echo "${ECHO_T}$ac_header_preproc" >&6; }
11092
11093 # So?  What about this header?
11094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11095   yes:no: )
11096     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11100     ac_header_preproc=yes
11101     ;;
11102   no:yes:* )
11103     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11105     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11106 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11107     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11109     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11110 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11111     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11113     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11115     ( cat <<\_ASBOX
11116 ## ------------------------------ ##
11117 ## Report this to bugs@yourdomain ##
11118 ## ------------------------------ ##
11119 _ASBOX
11120      ) | sed "s/^/$as_me: WARNING:     /" >&2
11121     ;;
11122 esac
11123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11126   echo $ECHO_N "(cached) $ECHO_C" >&6
11127 else
11128   eval "$as_ac_Header=\$ac_header_preproc"
11129 fi
11130 ac_res=`eval echo '${'$as_ac_Header'}'`
11131                { echo "$as_me:$LINENO: result: $ac_res" >&5
11132 echo "${ECHO_T}$ac_res" >&6; }
11133
11134 fi
11135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11136   cat >>confdefs.h <<_ACEOF
11137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11138 _ACEOF
11139
11140 fi
11141
11142 done
11143
11144
11145
11146
11147
11148 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11149 do
11150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11152   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11155   echo $ECHO_N "(cached) $ECHO_C" >&6
11156 fi
11157 ac_res=`eval echo '${'$as_ac_Header'}'`
11158                { echo "$as_me:$LINENO: result: $ac_res" >&5
11159 echo "${ECHO_T}$ac_res" >&6; }
11160 else
11161   # Is the header compilable?
11162 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11163 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11164 cat >conftest.$ac_ext <<_ACEOF
11165 /* confdefs.h.  */
11166 _ACEOF
11167 cat confdefs.h >>conftest.$ac_ext
11168 cat >>conftest.$ac_ext <<_ACEOF
11169 /* end confdefs.h.  */
11170 $ac_includes_default
11171 #include <$ac_header>
11172 _ACEOF
11173 rm -f conftest.$ac_objext
11174 if { (ac_try="$ac_compile"
11175 case "(($ac_try" in
11176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11177   *) ac_try_echo=$ac_try;;
11178 esac
11179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11180   (eval "$ac_compile") 2>conftest.er1
11181   ac_status=$?
11182   grep -v '^ *+' conftest.er1 >conftest.err
11183   rm -f conftest.er1
11184   cat conftest.err >&5
11185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186   (exit $ac_status); } &&
11187          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11188   { (case "(($ac_try" in
11189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190   *) ac_try_echo=$ac_try;;
11191 esac
11192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193   (eval "$ac_try") 2>&5
11194   ac_status=$?
11195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196   (exit $ac_status); }; } &&
11197          { ac_try='test -s conftest.$ac_objext'
11198   { (case "(($ac_try" in
11199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200   *) ac_try_echo=$ac_try;;
11201 esac
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203   (eval "$ac_try") 2>&5
11204   ac_status=$?
11205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206   (exit $ac_status); }; }; then
11207   ac_header_compiler=yes
11208 else
11209   echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11211
11212         ac_header_compiler=no
11213 fi
11214
11215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11216 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11217 echo "${ECHO_T}$ac_header_compiler" >&6; }
11218
11219 # Is the header present?
11220 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11221 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11222 cat >conftest.$ac_ext <<_ACEOF
11223 /* confdefs.h.  */
11224 _ACEOF
11225 cat confdefs.h >>conftest.$ac_ext
11226 cat >>conftest.$ac_ext <<_ACEOF
11227 /* end confdefs.h.  */
11228 #include <$ac_header>
11229 _ACEOF
11230 if { (ac_try="$ac_cpp conftest.$ac_ext"
11231 case "(($ac_try" in
11232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11233   *) ac_try_echo=$ac_try;;
11234 esac
11235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11236   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11237   ac_status=$?
11238   grep -v '^ *+' conftest.er1 >conftest.err
11239   rm -f conftest.er1
11240   cat conftest.err >&5
11241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242   (exit $ac_status); } >/dev/null; then
11243   if test -s conftest.err; then
11244     ac_cpp_err=$ac_c_preproc_warn_flag
11245     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11246   else
11247     ac_cpp_err=
11248   fi
11249 else
11250   ac_cpp_err=yes
11251 fi
11252 if test -z "$ac_cpp_err"; then
11253   ac_header_preproc=yes
11254 else
11255   echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11257
11258   ac_header_preproc=no
11259 fi
11260
11261 rm -f conftest.err conftest.$ac_ext
11262 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11263 echo "${ECHO_T}$ac_header_preproc" >&6; }
11264
11265 # So?  What about this header?
11266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11267   yes:no: )
11268     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11272     ac_header_preproc=yes
11273     ;;
11274   no:yes:* )
11275     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11277     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11278 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11279     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11281     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11282 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11285     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11287     ( cat <<\_ASBOX
11288 ## ------------------------------ ##
11289 ## Report this to bugs@yourdomain ##
11290 ## ------------------------------ ##
11291 _ASBOX
11292      ) | sed "s/^/$as_me: WARNING:     /" >&2
11293     ;;
11294 esac
11295 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11298   echo $ECHO_N "(cached) $ECHO_C" >&6
11299 else
11300   eval "$as_ac_Header=\$ac_header_preproc"
11301 fi
11302 ac_res=`eval echo '${'$as_ac_Header'}'`
11303                { echo "$as_me:$LINENO: result: $ac_res" >&5
11304 echo "${ECHO_T}$ac_res" >&6; }
11305
11306 fi
11307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11308   cat >>confdefs.h <<_ACEOF
11309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11310 _ACEOF
11311
11312 fi
11313
11314 done
11315
11316
11317
11318 for ac_header in string.h strings.h
11319 do
11320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11322   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11325   echo $ECHO_N "(cached) $ECHO_C" >&6
11326 fi
11327 ac_res=`eval echo '${'$as_ac_Header'}'`
11328                { echo "$as_me:$LINENO: result: $ac_res" >&5
11329 echo "${ECHO_T}$ac_res" >&6; }
11330 else
11331   # Is the header compilable?
11332 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11334 cat >conftest.$ac_ext <<_ACEOF
11335 /* confdefs.h.  */
11336 _ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h.  */
11340 $ac_includes_default
11341 #include <$ac_header>
11342 _ACEOF
11343 rm -f conftest.$ac_objext
11344 if { (ac_try="$ac_compile"
11345 case "(($ac_try" in
11346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347   *) ac_try_echo=$ac_try;;
11348 esac
11349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11350   (eval "$ac_compile") 2>conftest.er1
11351   ac_status=$?
11352   grep -v '^ *+' conftest.er1 >conftest.err
11353   rm -f conftest.er1
11354   cat conftest.err >&5
11355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356   (exit $ac_status); } &&
11357          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11358   { (case "(($ac_try" in
11359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360   *) ac_try_echo=$ac_try;;
11361 esac
11362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363   (eval "$ac_try") 2>&5
11364   ac_status=$?
11365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366   (exit $ac_status); }; } &&
11367          { ac_try='test -s conftest.$ac_objext'
11368   { (case "(($ac_try" in
11369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370   *) ac_try_echo=$ac_try;;
11371 esac
11372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11373   (eval "$ac_try") 2>&5
11374   ac_status=$?
11375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376   (exit $ac_status); }; }; then
11377   ac_header_compiler=yes
11378 else
11379   echo "$as_me: failed program was:" >&5
11380 sed 's/^/| /' conftest.$ac_ext >&5
11381
11382         ac_header_compiler=no
11383 fi
11384
11385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11387 echo "${ECHO_T}$ac_header_compiler" >&6; }
11388
11389 # Is the header present?
11390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11392 cat >conftest.$ac_ext <<_ACEOF
11393 /* confdefs.h.  */
11394 _ACEOF
11395 cat confdefs.h >>conftest.$ac_ext
11396 cat >>conftest.$ac_ext <<_ACEOF
11397 /* end confdefs.h.  */
11398 #include <$ac_header>
11399 _ACEOF
11400 if { (ac_try="$ac_cpp conftest.$ac_ext"
11401 case "(($ac_try" in
11402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403   *) ac_try_echo=$ac_try;;
11404 esac
11405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11406   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11407   ac_status=$?
11408   grep -v '^ *+' conftest.er1 >conftest.err
11409   rm -f conftest.er1
11410   cat conftest.err >&5
11411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412   (exit $ac_status); } >/dev/null; then
11413   if test -s conftest.err; then
11414     ac_cpp_err=$ac_c_preproc_warn_flag
11415     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11416   else
11417     ac_cpp_err=
11418   fi
11419 else
11420   ac_cpp_err=yes
11421 fi
11422 if test -z "$ac_cpp_err"; then
11423   ac_header_preproc=yes
11424 else
11425   echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11427
11428   ac_header_preproc=no
11429 fi
11430
11431 rm -f conftest.err conftest.$ac_ext
11432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11433 echo "${ECHO_T}$ac_header_preproc" >&6; }
11434
11435 # So?  What about this header?
11436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11437   yes:no: )
11438     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11442     ac_header_preproc=yes
11443     ;;
11444   no:yes:* )
11445     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11447     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11448 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11449     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11451     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11452 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11455     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11457     ( cat <<\_ASBOX
11458 ## ------------------------------ ##
11459 ## Report this to bugs@yourdomain ##
11460 ## ------------------------------ ##
11461 _ASBOX
11462      ) | sed "s/^/$as_me: WARNING:     /" >&2
11463     ;;
11464 esac
11465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11468   echo $ECHO_N "(cached) $ECHO_C" >&6
11469 else
11470   eval "$as_ac_Header=\$ac_header_preproc"
11471 fi
11472 ac_res=`eval echo '${'$as_ac_Header'}'`
11473                { echo "$as_me:$LINENO: result: $ac_res" >&5
11474 echo "${ECHO_T}$ac_res" >&6; }
11475
11476 fi
11477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11478   cat >>confdefs.h <<_ACEOF
11479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11480 _ACEOF
11481  break
11482 fi
11483
11484 done
11485
11486
11487
11488
11489 for ac_func in strchr index
11490 do
11491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11492 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11495   echo $ECHO_N "(cached) $ECHO_C" >&6
11496 else
11497   cat >conftest.$ac_ext <<_ACEOF
11498 /* confdefs.h.  */
11499 _ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h.  */
11503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11505 #define $ac_func innocuous_$ac_func
11506
11507 /* System header to define __stub macros and hopefully few prototypes,
11508     which can conflict with char $ac_func (); below.
11509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11510     <limits.h> exists even on freestanding compilers.  */
11511
11512 #ifdef __STDC__
11513 # include <limits.h>
11514 #else
11515 # include <assert.h>
11516 #endif
11517
11518 #undef $ac_func
11519
11520 /* Override any GCC internal prototype to avoid an error.
11521    Use char because int might match the return type of a GCC
11522    builtin and then its argument prototype would still apply.  */
11523 #ifdef __cplusplus
11524 extern "C"
11525 #endif
11526 char $ac_func ();
11527 /* The GNU C library defines this for functions which it implements
11528     to always fail with ENOSYS.  Some functions are actually named
11529     something starting with __ and the normal name is an alias.  */
11530 #if defined __stub_$ac_func || defined __stub___$ac_func
11531 choke me
11532 #endif
11533
11534 int
11535 main ()
11536 {
11537 return $ac_func ();
11538   ;
11539   return 0;
11540 }
11541 _ACEOF
11542 rm -f conftest.$ac_objext conftest$ac_exeext
11543 if { (ac_try="$ac_link"
11544 case "(($ac_try" in
11545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11546   *) ac_try_echo=$ac_try;;
11547 esac
11548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11549   (eval "$ac_link") 2>conftest.er1
11550   ac_status=$?
11551   grep -v '^ *+' conftest.er1 >conftest.err
11552   rm -f conftest.er1
11553   cat conftest.err >&5
11554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555   (exit $ac_status); } &&
11556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11557   { (case "(($ac_try" in
11558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559   *) ac_try_echo=$ac_try;;
11560 esac
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562   (eval "$ac_try") 2>&5
11563   ac_status=$?
11564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565   (exit $ac_status); }; } &&
11566          { ac_try='test -s conftest$ac_exeext'
11567   { (case "(($ac_try" in
11568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11569   *) ac_try_echo=$ac_try;;
11570 esac
11571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11572   (eval "$ac_try") 2>&5
11573   ac_status=$?
11574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575   (exit $ac_status); }; }; then
11576   eval "$as_ac_var=yes"
11577 else
11578   echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11580
11581         eval "$as_ac_var=no"
11582 fi
11583
11584 rm -f core conftest.err conftest.$ac_objext \
11585       conftest$ac_exeext conftest.$ac_ext
11586 fi
11587 ac_res=`eval echo '${'$as_ac_var'}'`
11588                { echo "$as_me:$LINENO: result: $ac_res" >&5
11589 echo "${ECHO_T}$ac_res" >&6; }
11590 if test `eval echo '${'$as_ac_var'}'` = yes; then
11591   cat >>confdefs.h <<_ACEOF
11592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11593 _ACEOF
11594  break
11595 fi
11596 done
11597
11598
11599
11600 for ac_func in strrchr rindex
11601 do
11602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11603 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11605 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11606   echo $ECHO_N "(cached) $ECHO_C" >&6
11607 else
11608   cat >conftest.$ac_ext <<_ACEOF
11609 /* confdefs.h.  */
11610 _ACEOF
11611 cat confdefs.h >>conftest.$ac_ext
11612 cat >>conftest.$ac_ext <<_ACEOF
11613 /* end confdefs.h.  */
11614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11616 #define $ac_func innocuous_$ac_func
11617
11618 /* System header to define __stub macros and hopefully few prototypes,
11619     which can conflict with char $ac_func (); below.
11620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11621     <limits.h> exists even on freestanding compilers.  */
11622
11623 #ifdef __STDC__
11624 # include <limits.h>
11625 #else
11626 # include <assert.h>
11627 #endif
11628
11629 #undef $ac_func
11630
11631 /* Override any GCC internal prototype to avoid an error.
11632    Use char because int might match the return type of a GCC
11633    builtin and then its argument prototype would still apply.  */
11634 #ifdef __cplusplus
11635 extern "C"
11636 #endif
11637 char $ac_func ();
11638 /* The GNU C library defines this for functions which it implements
11639     to always fail with ENOSYS.  Some functions are actually named
11640     something starting with __ and the normal name is an alias.  */
11641 #if defined __stub_$ac_func || defined __stub___$ac_func
11642 choke me
11643 #endif
11644
11645 int
11646 main ()
11647 {
11648 return $ac_func ();
11649   ;
11650   return 0;
11651 }
11652 _ACEOF
11653 rm -f conftest.$ac_objext conftest$ac_exeext
11654 if { (ac_try="$ac_link"
11655 case "(($ac_try" in
11656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657   *) ac_try_echo=$ac_try;;
11658 esac
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660   (eval "$ac_link") 2>conftest.er1
11661   ac_status=$?
11662   grep -v '^ *+' conftest.er1 >conftest.err
11663   rm -f conftest.er1
11664   cat conftest.err >&5
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); } &&
11667          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11668   { (case "(($ac_try" in
11669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670   *) ac_try_echo=$ac_try;;
11671 esac
11672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673   (eval "$ac_try") 2>&5
11674   ac_status=$?
11675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); }; } &&
11677          { ac_try='test -s conftest$ac_exeext'
11678   { (case "(($ac_try" in
11679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680   *) ac_try_echo=$ac_try;;
11681 esac
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683   (eval "$ac_try") 2>&5
11684   ac_status=$?
11685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686   (exit $ac_status); }; }; then
11687   eval "$as_ac_var=yes"
11688 else
11689   echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11691
11692         eval "$as_ac_var=no"
11693 fi
11694
11695 rm -f core conftest.err conftest.$ac_objext \
11696       conftest$ac_exeext conftest.$ac_ext
11697 fi
11698 ac_res=`eval echo '${'$as_ac_var'}'`
11699                { echo "$as_me:$LINENO: result: $ac_res" >&5
11700 echo "${ECHO_T}$ac_res" >&6; }
11701 if test `eval echo '${'$as_ac_var'}'` = yes; then
11702   cat >>confdefs.h <<_ACEOF
11703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11704 _ACEOF
11705  break
11706 fi
11707 done
11708
11709
11710
11711 for ac_func in memcpy bcopy
11712 do
11713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11714 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11716 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11717   echo $ECHO_N "(cached) $ECHO_C" >&6
11718 else
11719   cat >conftest.$ac_ext <<_ACEOF
11720 /* confdefs.h.  */
11721 _ACEOF
11722 cat confdefs.h >>conftest.$ac_ext
11723 cat >>conftest.$ac_ext <<_ACEOF
11724 /* end confdefs.h.  */
11725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11726    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11727 #define $ac_func innocuous_$ac_func
11728
11729 /* System header to define __stub macros and hopefully few prototypes,
11730     which can conflict with char $ac_func (); below.
11731     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11732     <limits.h> exists even on freestanding compilers.  */
11733
11734 #ifdef __STDC__
11735 # include <limits.h>
11736 #else
11737 # include <assert.h>
11738 #endif
11739
11740 #undef $ac_func
11741
11742 /* Override any GCC internal prototype to avoid an error.
11743    Use char because int might match the return type of a GCC
11744    builtin and then its argument prototype would still apply.  */
11745 #ifdef __cplusplus
11746 extern "C"
11747 #endif
11748 char $ac_func ();
11749 /* The GNU C library defines this for functions which it implements
11750     to always fail with ENOSYS.  Some functions are actually named
11751     something starting with __ and the normal name is an alias.  */
11752 #if defined __stub_$ac_func || defined __stub___$ac_func
11753 choke me
11754 #endif
11755
11756 int
11757 main ()
11758 {
11759 return $ac_func ();
11760   ;
11761   return 0;
11762 }
11763 _ACEOF
11764 rm -f conftest.$ac_objext conftest$ac_exeext
11765 if { (ac_try="$ac_link"
11766 case "(($ac_try" in
11767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11768   *) ac_try_echo=$ac_try;;
11769 esac
11770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11771   (eval "$ac_link") 2>conftest.er1
11772   ac_status=$?
11773   grep -v '^ *+' conftest.er1 >conftest.err
11774   rm -f conftest.er1
11775   cat conftest.err >&5
11776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); } &&
11778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11779   { (case "(($ac_try" in
11780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781   *) ac_try_echo=$ac_try;;
11782 esac
11783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784   (eval "$ac_try") 2>&5
11785   ac_status=$?
11786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787   (exit $ac_status); }; } &&
11788          { ac_try='test -s conftest$ac_exeext'
11789   { (case "(($ac_try" in
11790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11791   *) ac_try_echo=$ac_try;;
11792 esac
11793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11794   (eval "$ac_try") 2>&5
11795   ac_status=$?
11796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797   (exit $ac_status); }; }; then
11798   eval "$as_ac_var=yes"
11799 else
11800   echo "$as_me: failed program was:" >&5
11801 sed 's/^/| /' conftest.$ac_ext >&5
11802
11803         eval "$as_ac_var=no"
11804 fi
11805
11806 rm -f core conftest.err conftest.$ac_objext \
11807       conftest$ac_exeext conftest.$ac_ext
11808 fi
11809 ac_res=`eval echo '${'$as_ac_var'}'`
11810                { echo "$as_me:$LINENO: result: $ac_res" >&5
11811 echo "${ECHO_T}$ac_res" >&6; }
11812 if test `eval echo '${'$as_ac_var'}'` = yes; then
11813   cat >>confdefs.h <<_ACEOF
11814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11815 _ACEOF
11816  break
11817 fi
11818 done
11819
11820
11821
11822 for ac_func in memmove strcmp
11823 do
11824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11825 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11827 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11828   echo $ECHO_N "(cached) $ECHO_C" >&6
11829 else
11830   cat >conftest.$ac_ext <<_ACEOF
11831 /* confdefs.h.  */
11832 _ACEOF
11833 cat confdefs.h >>conftest.$ac_ext
11834 cat >>conftest.$ac_ext <<_ACEOF
11835 /* end confdefs.h.  */
11836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11837    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11838 #define $ac_func innocuous_$ac_func
11839
11840 /* System header to define __stub macros and hopefully few prototypes,
11841     which can conflict with char $ac_func (); below.
11842     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11843     <limits.h> exists even on freestanding compilers.  */
11844
11845 #ifdef __STDC__
11846 # include <limits.h>
11847 #else
11848 # include <assert.h>
11849 #endif
11850
11851 #undef $ac_func
11852
11853 /* Override any GCC internal prototype to avoid an error.
11854    Use char because int might match the return type of a GCC
11855    builtin and then its argument prototype would still apply.  */
11856 #ifdef __cplusplus
11857 extern "C"
11858 #endif
11859 char $ac_func ();
11860 /* The GNU C library defines this for functions which it implements
11861     to always fail with ENOSYS.  Some functions are actually named
11862     something starting with __ and the normal name is an alias.  */
11863 #if defined __stub_$ac_func || defined __stub___$ac_func
11864 choke me
11865 #endif
11866
11867 int
11868 main ()
11869 {
11870 return $ac_func ();
11871   ;
11872   return 0;
11873 }
11874 _ACEOF
11875 rm -f conftest.$ac_objext conftest$ac_exeext
11876 if { (ac_try="$ac_link"
11877 case "(($ac_try" in
11878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11879   *) ac_try_echo=$ac_try;;
11880 esac
11881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11882   (eval "$ac_link") 2>conftest.er1
11883   ac_status=$?
11884   grep -v '^ *+' conftest.er1 >conftest.err
11885   rm -f conftest.er1
11886   cat conftest.err >&5
11887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888   (exit $ac_status); } &&
11889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11890   { (case "(($ac_try" in
11891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892   *) ac_try_echo=$ac_try;;
11893 esac
11894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11895   (eval "$ac_try") 2>&5
11896   ac_status=$?
11897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898   (exit $ac_status); }; } &&
11899          { ac_try='test -s conftest$ac_exeext'
11900   { (case "(($ac_try" in
11901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11902   *) ac_try_echo=$ac_try;;
11903 esac
11904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11905   (eval "$ac_try") 2>&5
11906   ac_status=$?
11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); }; }; then
11909   eval "$as_ac_var=yes"
11910 else
11911   echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.$ac_ext >&5
11913
11914         eval "$as_ac_var=no"
11915 fi
11916
11917 rm -f core conftest.err conftest.$ac_objext \
11918       conftest$ac_exeext conftest.$ac_ext
11919 fi
11920 ac_res=`eval echo '${'$as_ac_var'}'`
11921                { echo "$as_me:$LINENO: result: $ac_res" >&5
11922 echo "${ECHO_T}$ac_res" >&6; }
11923 if test `eval echo '${'$as_ac_var'}'` = yes; then
11924   cat >>confdefs.h <<_ACEOF
11925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11926 _ACEOF
11927
11928 fi
11929 done
11930
11931
11932
11933
11934 for ac_func in closedir opendir readdir
11935 do
11936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11940   echo $ECHO_N "(cached) $ECHO_C" >&6
11941 else
11942   cat >conftest.$ac_ext <<_ACEOF
11943 /* confdefs.h.  */
11944 _ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h.  */
11948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11950 #define $ac_func innocuous_$ac_func
11951
11952 /* System header to define __stub macros and hopefully few prototypes,
11953     which can conflict with char $ac_func (); below.
11954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11955     <limits.h> exists even on freestanding compilers.  */
11956
11957 #ifdef __STDC__
11958 # include <limits.h>
11959 #else
11960 # include <assert.h>
11961 #endif
11962
11963 #undef $ac_func
11964
11965 /* Override any GCC internal prototype to avoid an error.
11966    Use char because int might match the return type of a GCC
11967    builtin and then its argument prototype would still apply.  */
11968 #ifdef __cplusplus
11969 extern "C"
11970 #endif
11971 char $ac_func ();
11972 /* The GNU C library defines this for functions which it implements
11973     to always fail with ENOSYS.  Some functions are actually named
11974     something starting with __ and the normal name is an alias.  */
11975 #if defined __stub_$ac_func || defined __stub___$ac_func
11976 choke me
11977 #endif
11978
11979 int
11980 main ()
11981 {
11982 return $ac_func ();
11983   ;
11984   return 0;
11985 }
11986 _ACEOF
11987 rm -f conftest.$ac_objext conftest$ac_exeext
11988 if { (ac_try="$ac_link"
11989 case "(($ac_try" in
11990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991   *) ac_try_echo=$ac_try;;
11992 esac
11993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994   (eval "$ac_link") 2>conftest.er1
11995   ac_status=$?
11996   grep -v '^ *+' conftest.er1 >conftest.err
11997   rm -f conftest.er1
11998   cat conftest.err >&5
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); } &&
12001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12002   { (case "(($ac_try" in
12003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004   *) ac_try_echo=$ac_try;;
12005 esac
12006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007   (eval "$ac_try") 2>&5
12008   ac_status=$?
12009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010   (exit $ac_status); }; } &&
12011          { ac_try='test -s conftest$ac_exeext'
12012   { (case "(($ac_try" in
12013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014   *) ac_try_echo=$ac_try;;
12015 esac
12016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017   (eval "$ac_try") 2>&5
12018   ac_status=$?
12019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020   (exit $ac_status); }; }; then
12021   eval "$as_ac_var=yes"
12022 else
12023   echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12025
12026         eval "$as_ac_var=no"
12027 fi
12028
12029 rm -f core conftest.err conftest.$ac_objext \
12030       conftest$ac_exeext conftest.$ac_ext
12031 fi
12032 ac_res=`eval echo '${'$as_ac_var'}'`
12033                { echo "$as_me:$LINENO: result: $ac_res" >&5
12034 echo "${ECHO_T}$ac_res" >&6; }
12035 if test `eval echo '${'$as_ac_var'}'` = yes; then
12036   cat >>confdefs.h <<_ACEOF
12037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12038 _ACEOF
12039
12040 fi
12041 done
12042
12043
12044
12045 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12046 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12047
12048 ICC=no
12049 IXX=no
12050 case $CC in
12051   icc*|icpc*)
12052     ICC=yes
12053     IXX=yes
12054     ;;
12055    *)
12056     ;;
12057 esac
12058
12059 if test "$GCC" != "yes" && test "$ICC" != "yes"
12060 then
12061   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12062 echo "$as_me: error: gcc|icc required but not found" >&2;}
12063    { (exit 1); exit 1; }; }
12064 fi
12065
12066 if test "$GXX" != "yes" && test "$IXX" != "yes"
12067 then
12068   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12069 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12070    { (exit 1); exit 1; }; }
12071 fi
12072
12073 if test "$GCC" = "yes"
12074 then
12075   cat >conftest.$ac_ext <<_ACEOF
12076 #if !defined(__GNUC__) || __GNUC__ < 3
12077 #error Unsupported GCC version
12078 #endif
12079
12080 _ACEOF
12081 rm -f conftest.$ac_objext
12082 if { (ac_try="$ac_compile"
12083 case "(($ac_try" in
12084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085   *) ac_try_echo=$ac_try;;
12086 esac
12087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088   (eval "$ac_compile") 2>conftest.er1
12089   ac_status=$?
12090   grep -v '^ *+' conftest.er1 >conftest.err
12091   rm -f conftest.er1
12092   cat conftest.err >&5
12093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094   (exit $ac_status); } &&
12095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12096   { (case "(($ac_try" in
12097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098   *) ac_try_echo=$ac_try;;
12099 esac
12100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101   (eval "$ac_try") 2>&5
12102   ac_status=$?
12103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104   (exit $ac_status); }; } &&
12105          { ac_try='test -s conftest.$ac_objext'
12106   { (case "(($ac_try" in
12107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108   *) ac_try_echo=$ac_try;;
12109 esac
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111   (eval "$ac_try") 2>&5
12112   ac_status=$?
12113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114   (exit $ac_status); }; }; then
12115   :
12116 else
12117   echo "$as_me: failed program was:" >&5
12118 sed 's/^/| /' conftest.$ac_ext >&5
12119
12120         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12121 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12122    { (exit 1); exit 1; }; }
12123 fi
12124
12125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12126 fi
12127
12128 if test -z "$llvm_cv_gnu_make_command"
12129 then
12130   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12131 echo "$as_me: error: GNU Make required but not found" >&2;}
12132    { (exit 1); exit 1; }; }
12133 fi
12134
12135 { echo "$as_me:$LINENO: result: ok" >&5
12136 echo "${ECHO_T}ok" >&6; }
12137
12138 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12139 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12140 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12141
12142 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12143
12144 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12145
12146 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12147 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12148
12149
12150
12151 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12152 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12153 if test "${ac_cv_lib_m_sin+set}" = set; then
12154   echo $ECHO_N "(cached) $ECHO_C" >&6
12155 else
12156   ac_check_lib_save_LIBS=$LIBS
12157 LIBS="-lm  $LIBS"
12158 cat >conftest.$ac_ext <<_ACEOF
12159 /* confdefs.h.  */
12160 _ACEOF
12161 cat confdefs.h >>conftest.$ac_ext
12162 cat >>conftest.$ac_ext <<_ACEOF
12163 /* end confdefs.h.  */
12164
12165 /* Override any GCC internal prototype to avoid an error.
12166    Use char because int might match the return type of a GCC
12167    builtin and then its argument prototype would still apply.  */
12168 #ifdef __cplusplus
12169 extern "C"
12170 #endif
12171 char sin ();
12172 int
12173 main ()
12174 {
12175 return sin ();
12176   ;
12177   return 0;
12178 }
12179 _ACEOF
12180 rm -f conftest.$ac_objext conftest$ac_exeext
12181 if { (ac_try="$ac_link"
12182 case "(($ac_try" in
12183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184   *) ac_try_echo=$ac_try;;
12185 esac
12186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187   (eval "$ac_link") 2>conftest.er1
12188   ac_status=$?
12189   grep -v '^ *+' conftest.er1 >conftest.err
12190   rm -f conftest.er1
12191   cat conftest.err >&5
12192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193   (exit $ac_status); } &&
12194          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12195   { (case "(($ac_try" in
12196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197   *) ac_try_echo=$ac_try;;
12198 esac
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200   (eval "$ac_try") 2>&5
12201   ac_status=$?
12202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203   (exit $ac_status); }; } &&
12204          { ac_try='test -s conftest$ac_exeext'
12205   { (case "(($ac_try" in
12206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207   *) ac_try_echo=$ac_try;;
12208 esac
12209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210   (eval "$ac_try") 2>&5
12211   ac_status=$?
12212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213   (exit $ac_status); }; }; then
12214   ac_cv_lib_m_sin=yes
12215 else
12216   echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12218
12219         ac_cv_lib_m_sin=no
12220 fi
12221
12222 rm -f core conftest.err conftest.$ac_objext \
12223       conftest$ac_exeext conftest.$ac_ext
12224 LIBS=$ac_check_lib_save_LIBS
12225 fi
12226 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12227 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12228 if test $ac_cv_lib_m_sin = yes; then
12229   cat >>confdefs.h <<_ACEOF
12230 #define HAVE_LIBM 1
12231 _ACEOF
12232
12233   LIBS="-lm $LIBS"
12234
12235 fi
12236
12237 if test "$llvm_cv_os_type" = "MingW" ; then
12238
12239 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12240 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12241 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12242   echo $ECHO_N "(cached) $ECHO_C" >&6
12243 else
12244   ac_check_lib_save_LIBS=$LIBS
12245 LIBS="-limagehlp  $LIBS"
12246 cat >conftest.$ac_ext <<_ACEOF
12247 /* confdefs.h.  */
12248 _ACEOF
12249 cat confdefs.h >>conftest.$ac_ext
12250 cat >>conftest.$ac_ext <<_ACEOF
12251 /* end confdefs.h.  */
12252
12253
12254 int
12255 main ()
12256 {
12257 return main ();
12258   ;
12259   return 0;
12260 }
12261 _ACEOF
12262 rm -f conftest.$ac_objext conftest$ac_exeext
12263 if { (ac_try="$ac_link"
12264 case "(($ac_try" in
12265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12266   *) ac_try_echo=$ac_try;;
12267 esac
12268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12269   (eval "$ac_link") 2>conftest.er1
12270   ac_status=$?
12271   grep -v '^ *+' conftest.er1 >conftest.err
12272   rm -f conftest.er1
12273   cat conftest.err >&5
12274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275   (exit $ac_status); } &&
12276          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12277   { (case "(($ac_try" in
12278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279   *) ac_try_echo=$ac_try;;
12280 esac
12281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282   (eval "$ac_try") 2>&5
12283   ac_status=$?
12284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285   (exit $ac_status); }; } &&
12286          { ac_try='test -s conftest$ac_exeext'
12287   { (case "(($ac_try" in
12288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289   *) ac_try_echo=$ac_try;;
12290 esac
12291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12292   (eval "$ac_try") 2>&5
12293   ac_status=$?
12294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295   (exit $ac_status); }; }; then
12296   ac_cv_lib_imagehlp_main=yes
12297 else
12298   echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12300
12301         ac_cv_lib_imagehlp_main=no
12302 fi
12303
12304 rm -f core conftest.err conftest.$ac_objext \
12305       conftest$ac_exeext conftest.$ac_ext
12306 LIBS=$ac_check_lib_save_LIBS
12307 fi
12308 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12309 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12310 if test $ac_cv_lib_imagehlp_main = yes; then
12311   cat >>confdefs.h <<_ACEOF
12312 #define HAVE_LIBIMAGEHLP 1
12313 _ACEOF
12314
12315   LIBS="-limagehlp $LIBS"
12316
12317 fi
12318
12319
12320 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12321 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12322 if test "${ac_cv_lib_psapi_main+set}" = set; then
12323   echo $ECHO_N "(cached) $ECHO_C" >&6
12324 else
12325   ac_check_lib_save_LIBS=$LIBS
12326 LIBS="-lpsapi  $LIBS"
12327 cat >conftest.$ac_ext <<_ACEOF
12328 /* confdefs.h.  */
12329 _ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h.  */
12333
12334
12335 int
12336 main ()
12337 {
12338 return main ();
12339   ;
12340   return 0;
12341 }
12342 _ACEOF
12343 rm -f conftest.$ac_objext conftest$ac_exeext
12344 if { (ac_try="$ac_link"
12345 case "(($ac_try" in
12346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347   *) ac_try_echo=$ac_try;;
12348 esac
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350   (eval "$ac_link") 2>conftest.er1
12351   ac_status=$?
12352   grep -v '^ *+' conftest.er1 >conftest.err
12353   rm -f conftest.er1
12354   cat conftest.err >&5
12355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); } &&
12357          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12358   { (case "(($ac_try" in
12359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360   *) ac_try_echo=$ac_try;;
12361 esac
12362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12363   (eval "$ac_try") 2>&5
12364   ac_status=$?
12365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366   (exit $ac_status); }; } &&
12367          { ac_try='test -s conftest$ac_exeext'
12368   { (case "(($ac_try" in
12369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12370   *) ac_try_echo=$ac_try;;
12371 esac
12372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12373   (eval "$ac_try") 2>&5
12374   ac_status=$?
12375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376   (exit $ac_status); }; }; then
12377   ac_cv_lib_psapi_main=yes
12378 else
12379   echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12381
12382         ac_cv_lib_psapi_main=no
12383 fi
12384
12385 rm -f core conftest.err conftest.$ac_objext \
12386       conftest$ac_exeext conftest.$ac_ext
12387 LIBS=$ac_check_lib_save_LIBS
12388 fi
12389 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12390 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12391 if test $ac_cv_lib_psapi_main = yes; then
12392   cat >>confdefs.h <<_ACEOF
12393 #define HAVE_LIBPSAPI 1
12394 _ACEOF
12395
12396   LIBS="-lpsapi $LIBS"
12397
12398 fi
12399
12400
12401 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
12402 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
12403 if test "${ac_cv_lib_shell32_main+set}" = set; then
12404   echo $ECHO_N "(cached) $ECHO_C" >&6
12405 else
12406   ac_check_lib_save_LIBS=$LIBS
12407 LIBS="-lshell32  $LIBS"
12408 cat >conftest.$ac_ext <<_ACEOF
12409 /* confdefs.h.  */
12410 _ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h.  */
12414
12415
12416 int
12417 main ()
12418 {
12419 return main ();
12420   ;
12421   return 0;
12422 }
12423 _ACEOF
12424 rm -f conftest.$ac_objext conftest$ac_exeext
12425 if { (ac_try="$ac_link"
12426 case "(($ac_try" in
12427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428   *) ac_try_echo=$ac_try;;
12429 esac
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431   (eval "$ac_link") 2>conftest.er1
12432   ac_status=$?
12433   grep -v '^ *+' conftest.er1 >conftest.err
12434   rm -f conftest.er1
12435   cat conftest.err >&5
12436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437   (exit $ac_status); } &&
12438          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12439   { (case "(($ac_try" in
12440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441   *) ac_try_echo=$ac_try;;
12442 esac
12443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12444   (eval "$ac_try") 2>&5
12445   ac_status=$?
12446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447   (exit $ac_status); }; } &&
12448          { ac_try='test -s conftest$ac_exeext'
12449   { (case "(($ac_try" in
12450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451   *) ac_try_echo=$ac_try;;
12452 esac
12453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454   (eval "$ac_try") 2>&5
12455   ac_status=$?
12456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457   (exit $ac_status); }; }; then
12458   ac_cv_lib_shell32_main=yes
12459 else
12460   echo "$as_me: failed program was:" >&5
12461 sed 's/^/| /' conftest.$ac_ext >&5
12462
12463         ac_cv_lib_shell32_main=no
12464 fi
12465
12466 rm -f core conftest.err conftest.$ac_objext \
12467       conftest$ac_exeext conftest.$ac_ext
12468 LIBS=$ac_check_lib_save_LIBS
12469 fi
12470 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
12471 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
12472 if test $ac_cv_lib_shell32_main = yes; then
12473   cat >>confdefs.h <<_ACEOF
12474 #define HAVE_LIBSHELL32 1
12475 _ACEOF
12476
12477   LIBS="-lshell32 $LIBS"
12478
12479 fi
12480
12481 fi
12482
12483 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12484 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12485 if test "${ac_cv_search_dlopen+set}" = set; then
12486   echo $ECHO_N "(cached) $ECHO_C" >&6
12487 else
12488   ac_func_search_save_LIBS=$LIBS
12489 cat >conftest.$ac_ext <<_ACEOF
12490 /* confdefs.h.  */
12491 _ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h.  */
12495
12496 /* Override any GCC internal prototype to avoid an error.
12497    Use char because int might match the return type of a GCC
12498    builtin and then its argument prototype would still apply.  */
12499 #ifdef __cplusplus
12500 extern "C"
12501 #endif
12502 char dlopen ();
12503 int
12504 main ()
12505 {
12506 return dlopen ();
12507   ;
12508   return 0;
12509 }
12510 _ACEOF
12511 for ac_lib in '' dl; do
12512   if test -z "$ac_lib"; then
12513     ac_res="none required"
12514   else
12515     ac_res=-l$ac_lib
12516     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12517   fi
12518   rm -f conftest.$ac_objext conftest$ac_exeext
12519 if { (ac_try="$ac_link"
12520 case "(($ac_try" in
12521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12522   *) ac_try_echo=$ac_try;;
12523 esac
12524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12525   (eval "$ac_link") 2>conftest.er1
12526   ac_status=$?
12527   grep -v '^ *+' conftest.er1 >conftest.err
12528   rm -f conftest.er1
12529   cat conftest.err >&5
12530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531   (exit $ac_status); } &&
12532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12533   { (case "(($ac_try" in
12534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535   *) ac_try_echo=$ac_try;;
12536 esac
12537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538   (eval "$ac_try") 2>&5
12539   ac_status=$?
12540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541   (exit $ac_status); }; } &&
12542          { ac_try='test -s conftest$ac_exeext'
12543   { (case "(($ac_try" in
12544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545   *) ac_try_echo=$ac_try;;
12546 esac
12547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12548   (eval "$ac_try") 2>&5
12549   ac_status=$?
12550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551   (exit $ac_status); }; }; then
12552   ac_cv_search_dlopen=$ac_res
12553 else
12554   echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12556
12557
12558 fi
12559
12560 rm -f core conftest.err conftest.$ac_objext \
12561       conftest$ac_exeext
12562   if test "${ac_cv_search_dlopen+set}" = set; then
12563   break
12564 fi
12565 done
12566 if test "${ac_cv_search_dlopen+set}" = set; then
12567   :
12568 else
12569   ac_cv_search_dlopen=no
12570 fi
12571 rm conftest.$ac_ext
12572 LIBS=$ac_func_search_save_LIBS
12573 fi
12574 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12575 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12576 ac_res=$ac_cv_search_dlopen
12577 if test "$ac_res" != no; then
12578   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12579
12580 cat >>confdefs.h <<\_ACEOF
12581 #define HAVE_DLOPEN 1
12582 _ACEOF
12583
12584 else
12585   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12586 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12587 fi
12588
12589
12590 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12591 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12592 if test "${ac_cv_search_clock_gettime+set}" = set; then
12593   echo $ECHO_N "(cached) $ECHO_C" >&6
12594 else
12595   ac_func_search_save_LIBS=$LIBS
12596 cat >conftest.$ac_ext <<_ACEOF
12597 /* confdefs.h.  */
12598 _ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h.  */
12602
12603 /* Override any GCC internal prototype to avoid an error.
12604    Use char because int might match the return type of a GCC
12605    builtin and then its argument prototype would still apply.  */
12606 #ifdef __cplusplus
12607 extern "C"
12608 #endif
12609 char clock_gettime ();
12610 int
12611 main ()
12612 {
12613 return clock_gettime ();
12614   ;
12615   return 0;
12616 }
12617 _ACEOF
12618 for ac_lib in '' rt; do
12619   if test -z "$ac_lib"; then
12620     ac_res="none required"
12621   else
12622     ac_res=-l$ac_lib
12623     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12624   fi
12625   rm -f conftest.$ac_objext conftest$ac_exeext
12626 if { (ac_try="$ac_link"
12627 case "(($ac_try" in
12628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629   *) ac_try_echo=$ac_try;;
12630 esac
12631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632   (eval "$ac_link") 2>conftest.er1
12633   ac_status=$?
12634   grep -v '^ *+' conftest.er1 >conftest.err
12635   rm -f conftest.er1
12636   cat conftest.err >&5
12637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638   (exit $ac_status); } &&
12639          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12640   { (case "(($ac_try" in
12641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642   *) ac_try_echo=$ac_try;;
12643 esac
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645   (eval "$ac_try") 2>&5
12646   ac_status=$?
12647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); }; } &&
12649          { ac_try='test -s conftest$ac_exeext'
12650   { (case "(($ac_try" in
12651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652   *) ac_try_echo=$ac_try;;
12653 esac
12654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12655   (eval "$ac_try") 2>&5
12656   ac_status=$?
12657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658   (exit $ac_status); }; }; then
12659   ac_cv_search_clock_gettime=$ac_res
12660 else
12661   echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12663
12664
12665 fi
12666
12667 rm -f core conftest.err conftest.$ac_objext \
12668       conftest$ac_exeext
12669   if test "${ac_cv_search_clock_gettime+set}" = set; then
12670   break
12671 fi
12672 done
12673 if test "${ac_cv_search_clock_gettime+set}" = set; then
12674   :
12675 else
12676   ac_cv_search_clock_gettime=no
12677 fi
12678 rm conftest.$ac_ext
12679 LIBS=$ac_func_search_save_LIBS
12680 fi
12681 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12682 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12683 ac_res=$ac_cv_search_clock_gettime
12684 if test "$ac_res" != no; then
12685   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12686
12687 fi
12688
12689
12690 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12691     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12692 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12693 if test "${ac_cv_search_setupterm+set}" = set; then
12694   echo $ECHO_N "(cached) $ECHO_C" >&6
12695 else
12696   ac_func_search_save_LIBS=$LIBS
12697 cat >conftest.$ac_ext <<_ACEOF
12698 /* confdefs.h.  */
12699 _ACEOF
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h.  */
12703
12704 /* Override any GCC internal prototype to avoid an error.
12705    Use char because int might match the return type of a GCC
12706    builtin and then its argument prototype would still apply.  */
12707 #ifdef __cplusplus
12708 extern "C"
12709 #endif
12710 char setupterm ();
12711 int
12712 main ()
12713 {
12714 return setupterm ();
12715   ;
12716   return 0;
12717 }
12718 _ACEOF
12719 for ac_lib in '' tinfo curses ncurses ncursesw; do
12720   if test -z "$ac_lib"; then
12721     ac_res="none required"
12722   else
12723     ac_res=-l$ac_lib
12724     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12725   fi
12726   rm -f conftest.$ac_objext conftest$ac_exeext
12727 if { (ac_try="$ac_link"
12728 case "(($ac_try" in
12729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12730   *) ac_try_echo=$ac_try;;
12731 esac
12732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12733   (eval "$ac_link") 2>conftest.er1
12734   ac_status=$?
12735   grep -v '^ *+' conftest.er1 >conftest.err
12736   rm -f conftest.er1
12737   cat conftest.err >&5
12738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739   (exit $ac_status); } &&
12740          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12741   { (case "(($ac_try" in
12742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743   *) ac_try_echo=$ac_try;;
12744 esac
12745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746   (eval "$ac_try") 2>&5
12747   ac_status=$?
12748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749   (exit $ac_status); }; } &&
12750          { ac_try='test -s conftest$ac_exeext'
12751   { (case "(($ac_try" in
12752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753   *) ac_try_echo=$ac_try;;
12754 esac
12755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12756   (eval "$ac_try") 2>&5
12757   ac_status=$?
12758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759   (exit $ac_status); }; }; then
12760   ac_cv_search_setupterm=$ac_res
12761 else
12762   echo "$as_me: failed program was:" >&5
12763 sed 's/^/| /' conftest.$ac_ext >&5
12764
12765
12766 fi
12767
12768 rm -f core conftest.err conftest.$ac_objext \
12769       conftest$ac_exeext
12770   if test "${ac_cv_search_setupterm+set}" = set; then
12771   break
12772 fi
12773 done
12774 if test "${ac_cv_search_setupterm+set}" = set; then
12775   :
12776 else
12777   ac_cv_search_setupterm=no
12778 fi
12779 rm conftest.$ac_ext
12780 LIBS=$ac_func_search_save_LIBS
12781 fi
12782 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12783 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12784 ac_res=$ac_cv_search_setupterm
12785 if test "$ac_res" != no; then
12786   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12787
12788 cat >>confdefs.h <<\_ACEOF
12789 #define HAVE_TERMINFO 1
12790 _ACEOF
12791
12792 fi
12793
12794 fi
12795
12796 if test "$llvm_cv_enable_libffi" = "yes" ; then
12797   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12798 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12799 if test "${ac_cv_search_ffi_call+set}" = set; then
12800   echo $ECHO_N "(cached) $ECHO_C" >&6
12801 else
12802   ac_func_search_save_LIBS=$LIBS
12803 cat >conftest.$ac_ext <<_ACEOF
12804 /* confdefs.h.  */
12805 _ACEOF
12806 cat confdefs.h >>conftest.$ac_ext
12807 cat >>conftest.$ac_ext <<_ACEOF
12808 /* end confdefs.h.  */
12809
12810 /* Override any GCC internal prototype to avoid an error.
12811    Use char because int might match the return type of a GCC
12812    builtin and then its argument prototype would still apply.  */
12813 #ifdef __cplusplus
12814 extern "C"
12815 #endif
12816 char ffi_call ();
12817 int
12818 main ()
12819 {
12820 return ffi_call ();
12821   ;
12822   return 0;
12823 }
12824 _ACEOF
12825 for ac_lib in '' ffi; do
12826   if test -z "$ac_lib"; then
12827     ac_res="none required"
12828   else
12829     ac_res=-l$ac_lib
12830     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12831   fi
12832   rm -f conftest.$ac_objext conftest$ac_exeext
12833 if { (ac_try="$ac_link"
12834 case "(($ac_try" in
12835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836   *) ac_try_echo=$ac_try;;
12837 esac
12838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839   (eval "$ac_link") 2>conftest.er1
12840   ac_status=$?
12841   grep -v '^ *+' conftest.er1 >conftest.err
12842   rm -f conftest.er1
12843   cat conftest.err >&5
12844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845   (exit $ac_status); } &&
12846          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12847   { (case "(($ac_try" in
12848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849   *) ac_try_echo=$ac_try;;
12850 esac
12851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852   (eval "$ac_try") 2>&5
12853   ac_status=$?
12854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855   (exit $ac_status); }; } &&
12856          { ac_try='test -s conftest$ac_exeext'
12857   { (case "(($ac_try" in
12858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859   *) ac_try_echo=$ac_try;;
12860 esac
12861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862   (eval "$ac_try") 2>&5
12863   ac_status=$?
12864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865   (exit $ac_status); }; }; then
12866   ac_cv_search_ffi_call=$ac_res
12867 else
12868   echo "$as_me: failed program was:" >&5
12869 sed 's/^/| /' conftest.$ac_ext >&5
12870
12871
12872 fi
12873
12874 rm -f core conftest.err conftest.$ac_objext \
12875       conftest$ac_exeext
12876   if test "${ac_cv_search_ffi_call+set}" = set; then
12877   break
12878 fi
12879 done
12880 if test "${ac_cv_search_ffi_call+set}" = set; then
12881   :
12882 else
12883   ac_cv_search_ffi_call=no
12884 fi
12885 rm conftest.$ac_ext
12886 LIBS=$ac_func_search_save_LIBS
12887 fi
12888 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12889 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12890 ac_res=$ac_cv_search_ffi_call
12891 if test "$ac_res" != no; then
12892   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12893
12894 cat >>confdefs.h <<\_ACEOF
12895 #define HAVE_FFI_CALL 1
12896 _ACEOF
12897
12898 else
12899   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12900 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12901    { (exit 1); exit 1; }; }
12902 fi
12903
12904 fi
12905
12906 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12907 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12908 if test "${ac_cv_search_mallinfo+set}" = set; then
12909   echo $ECHO_N "(cached) $ECHO_C" >&6
12910 else
12911   ac_func_search_save_LIBS=$LIBS
12912 cat >conftest.$ac_ext <<_ACEOF
12913 /* confdefs.h.  */
12914 _ACEOF
12915 cat confdefs.h >>conftest.$ac_ext
12916 cat >>conftest.$ac_ext <<_ACEOF
12917 /* end confdefs.h.  */
12918
12919 /* Override any GCC internal prototype to avoid an error.
12920    Use char because int might match the return type of a GCC
12921    builtin and then its argument prototype would still apply.  */
12922 #ifdef __cplusplus
12923 extern "C"
12924 #endif
12925 char mallinfo ();
12926 int
12927 main ()
12928 {
12929 return mallinfo ();
12930   ;
12931   return 0;
12932 }
12933 _ACEOF
12934 for ac_lib in '' malloc; do
12935   if test -z "$ac_lib"; then
12936     ac_res="none required"
12937   else
12938     ac_res=-l$ac_lib
12939     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12940   fi
12941   rm -f conftest.$ac_objext conftest$ac_exeext
12942 if { (ac_try="$ac_link"
12943 case "(($ac_try" in
12944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12945   *) ac_try_echo=$ac_try;;
12946 esac
12947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12948   (eval "$ac_link") 2>conftest.er1
12949   ac_status=$?
12950   grep -v '^ *+' conftest.er1 >conftest.err
12951   rm -f conftest.er1
12952   cat conftest.err >&5
12953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954   (exit $ac_status); } &&
12955          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12956   { (case "(($ac_try" in
12957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958   *) ac_try_echo=$ac_try;;
12959 esac
12960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12961   (eval "$ac_try") 2>&5
12962   ac_status=$?
12963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964   (exit $ac_status); }; } &&
12965          { ac_try='test -s conftest$ac_exeext'
12966   { (case "(($ac_try" in
12967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968   *) ac_try_echo=$ac_try;;
12969 esac
12970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12971   (eval "$ac_try") 2>&5
12972   ac_status=$?
12973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974   (exit $ac_status); }; }; then
12975   ac_cv_search_mallinfo=$ac_res
12976 else
12977   echo "$as_me: failed program was:" >&5
12978 sed 's/^/| /' conftest.$ac_ext >&5
12979
12980
12981 fi
12982
12983 rm -f core conftest.err conftest.$ac_objext \
12984       conftest$ac_exeext
12985   if test "${ac_cv_search_mallinfo+set}" = set; then
12986   break
12987 fi
12988 done
12989 if test "${ac_cv_search_mallinfo+set}" = set; then
12990   :
12991 else
12992   ac_cv_search_mallinfo=no
12993 fi
12994 rm conftest.$ac_ext
12995 LIBS=$ac_func_search_save_LIBS
12996 fi
12997 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12998 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12999 ac_res=$ac_cv_search_mallinfo
13000 if test "$ac_res" != no; then
13001   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13002
13003 cat >>confdefs.h <<\_ACEOF
13004 #define HAVE_MALLINFO 1
13005 _ACEOF
13006
13007 fi
13008
13009
13010 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13011
13012 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13013 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13014 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13015   echo $ECHO_N "(cached) $ECHO_C" >&6
13016 else
13017   ac_check_lib_save_LIBS=$LIBS
13018 LIBS="-lpthread  $LIBS"
13019 cat >conftest.$ac_ext <<_ACEOF
13020 /* confdefs.h.  */
13021 _ACEOF
13022 cat confdefs.h >>conftest.$ac_ext
13023 cat >>conftest.$ac_ext <<_ACEOF
13024 /* end confdefs.h.  */
13025
13026 /* Override any GCC internal prototype to avoid an error.
13027    Use char because int might match the return type of a GCC
13028    builtin and then its argument prototype would still apply.  */
13029 #ifdef __cplusplus
13030 extern "C"
13031 #endif
13032 char pthread_mutex_init ();
13033 int
13034 main ()
13035 {
13036 return pthread_mutex_init ();
13037   ;
13038   return 0;
13039 }
13040 _ACEOF
13041 rm -f conftest.$ac_objext conftest$ac_exeext
13042 if { (ac_try="$ac_link"
13043 case "(($ac_try" in
13044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045   *) ac_try_echo=$ac_try;;
13046 esac
13047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048   (eval "$ac_link") 2>conftest.er1
13049   ac_status=$?
13050   grep -v '^ *+' conftest.er1 >conftest.err
13051   rm -f conftest.er1
13052   cat conftest.err >&5
13053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054   (exit $ac_status); } &&
13055          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13056   { (case "(($ac_try" in
13057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058   *) ac_try_echo=$ac_try;;
13059 esac
13060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061   (eval "$ac_try") 2>&5
13062   ac_status=$?
13063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064   (exit $ac_status); }; } &&
13065          { ac_try='test -s conftest$ac_exeext'
13066   { (case "(($ac_try" in
13067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068   *) ac_try_echo=$ac_try;;
13069 esac
13070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13071   (eval "$ac_try") 2>&5
13072   ac_status=$?
13073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074   (exit $ac_status); }; }; then
13075   ac_cv_lib_pthread_pthread_mutex_init=yes
13076 else
13077   echo "$as_me: failed program was:" >&5
13078 sed 's/^/| /' conftest.$ac_ext >&5
13079
13080         ac_cv_lib_pthread_pthread_mutex_init=no
13081 fi
13082
13083 rm -f core conftest.err conftest.$ac_objext \
13084       conftest$ac_exeext conftest.$ac_ext
13085 LIBS=$ac_check_lib_save_LIBS
13086 fi
13087 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13088 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13089 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13090   cat >>confdefs.h <<_ACEOF
13091 #define HAVE_LIBPTHREAD 1
13092 _ACEOF
13093
13094   LIBS="-lpthread $LIBS"
13095
13096 fi
13097
13098   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13099 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13100 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13101   echo $ECHO_N "(cached) $ECHO_C" >&6
13102 else
13103   ac_func_search_save_LIBS=$LIBS
13104 cat >conftest.$ac_ext <<_ACEOF
13105 /* confdefs.h.  */
13106 _ACEOF
13107 cat confdefs.h >>conftest.$ac_ext
13108 cat >>conftest.$ac_ext <<_ACEOF
13109 /* end confdefs.h.  */
13110
13111 /* Override any GCC internal prototype to avoid an error.
13112    Use char because int might match the return type of a GCC
13113    builtin and then its argument prototype would still apply.  */
13114 #ifdef __cplusplus
13115 extern "C"
13116 #endif
13117 char pthread_mutex_lock ();
13118 int
13119 main ()
13120 {
13121 return pthread_mutex_lock ();
13122   ;
13123   return 0;
13124 }
13125 _ACEOF
13126 for ac_lib in '' pthread; do
13127   if test -z "$ac_lib"; then
13128     ac_res="none required"
13129   else
13130     ac_res=-l$ac_lib
13131     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13132   fi
13133   rm -f conftest.$ac_objext conftest$ac_exeext
13134 if { (ac_try="$ac_link"
13135 case "(($ac_try" in
13136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13137   *) ac_try_echo=$ac_try;;
13138 esac
13139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13140   (eval "$ac_link") 2>conftest.er1
13141   ac_status=$?
13142   grep -v '^ *+' conftest.er1 >conftest.err
13143   rm -f conftest.er1
13144   cat conftest.err >&5
13145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146   (exit $ac_status); } &&
13147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13148   { (case "(($ac_try" in
13149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150   *) ac_try_echo=$ac_try;;
13151 esac
13152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153   (eval "$ac_try") 2>&5
13154   ac_status=$?
13155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156   (exit $ac_status); }; } &&
13157          { ac_try='test -s conftest$ac_exeext'
13158   { (case "(($ac_try" in
13159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13160   *) ac_try_echo=$ac_try;;
13161 esac
13162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13163   (eval "$ac_try") 2>&5
13164   ac_status=$?
13165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166   (exit $ac_status); }; }; then
13167   ac_cv_search_pthread_mutex_lock=$ac_res
13168 else
13169   echo "$as_me: failed program was:" >&5
13170 sed 's/^/| /' conftest.$ac_ext >&5
13171
13172
13173 fi
13174
13175 rm -f core conftest.err conftest.$ac_objext \
13176       conftest$ac_exeext
13177   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13178   break
13179 fi
13180 done
13181 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13182   :
13183 else
13184   ac_cv_search_pthread_mutex_lock=no
13185 fi
13186 rm conftest.$ac_ext
13187 LIBS=$ac_func_search_save_LIBS
13188 fi
13189 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13190 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13191 ac_res=$ac_cv_search_pthread_mutex_lock
13192 if test "$ac_res" != no; then
13193   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13194
13195 cat >>confdefs.h <<\_ACEOF
13196 #define HAVE_PTHREAD_MUTEX_LOCK 1
13197 _ACEOF
13198
13199 fi
13200
13201   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13202 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13203 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13204   echo $ECHO_N "(cached) $ECHO_C" >&6
13205 else
13206   ac_func_search_save_LIBS=$LIBS
13207 cat >conftest.$ac_ext <<_ACEOF
13208 /* confdefs.h.  */
13209 _ACEOF
13210 cat confdefs.h >>conftest.$ac_ext
13211 cat >>conftest.$ac_ext <<_ACEOF
13212 /* end confdefs.h.  */
13213
13214 /* Override any GCC internal prototype to avoid an error.
13215    Use char because int might match the return type of a GCC
13216    builtin and then its argument prototype would still apply.  */
13217 #ifdef __cplusplus
13218 extern "C"
13219 #endif
13220 char pthread_rwlock_init ();
13221 int
13222 main ()
13223 {
13224 return pthread_rwlock_init ();
13225   ;
13226   return 0;
13227 }
13228 _ACEOF
13229 for ac_lib in '' pthread; do
13230   if test -z "$ac_lib"; then
13231     ac_res="none required"
13232   else
13233     ac_res=-l$ac_lib
13234     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13235   fi
13236   rm -f conftest.$ac_objext conftest$ac_exeext
13237 if { (ac_try="$ac_link"
13238 case "(($ac_try" in
13239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13240   *) ac_try_echo=$ac_try;;
13241 esac
13242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13243   (eval "$ac_link") 2>conftest.er1
13244   ac_status=$?
13245   grep -v '^ *+' conftest.er1 >conftest.err
13246   rm -f conftest.er1
13247   cat conftest.err >&5
13248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249   (exit $ac_status); } &&
13250          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13251   { (case "(($ac_try" in
13252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13253   *) ac_try_echo=$ac_try;;
13254 esac
13255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13256   (eval "$ac_try") 2>&5
13257   ac_status=$?
13258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259   (exit $ac_status); }; } &&
13260          { ac_try='test -s conftest$ac_exeext'
13261   { (case "(($ac_try" in
13262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263   *) ac_try_echo=$ac_try;;
13264 esac
13265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266   (eval "$ac_try") 2>&5
13267   ac_status=$?
13268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269   (exit $ac_status); }; }; then
13270   ac_cv_search_pthread_rwlock_init=$ac_res
13271 else
13272   echo "$as_me: failed program was:" >&5
13273 sed 's/^/| /' conftest.$ac_ext >&5
13274
13275
13276 fi
13277
13278 rm -f core conftest.err conftest.$ac_objext \
13279       conftest$ac_exeext
13280   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13281   break
13282 fi
13283 done
13284 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13285   :
13286 else
13287   ac_cv_search_pthread_rwlock_init=no
13288 fi
13289 rm conftest.$ac_ext
13290 LIBS=$ac_func_search_save_LIBS
13291 fi
13292 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13293 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13294 ac_res=$ac_cv_search_pthread_rwlock_init
13295 if test "$ac_res" != no; then
13296   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13297
13298 cat >>confdefs.h <<\_ACEOF
13299 #define HAVE_PTHREAD_RWLOCK_INIT 1
13300 _ACEOF
13301
13302 fi
13303
13304   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13305 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13306 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13307   echo $ECHO_N "(cached) $ECHO_C" >&6
13308 else
13309   ac_func_search_save_LIBS=$LIBS
13310 cat >conftest.$ac_ext <<_ACEOF
13311 /* confdefs.h.  */
13312 _ACEOF
13313 cat confdefs.h >>conftest.$ac_ext
13314 cat >>conftest.$ac_ext <<_ACEOF
13315 /* end confdefs.h.  */
13316
13317 /* Override any GCC internal prototype to avoid an error.
13318    Use char because int might match the return type of a GCC
13319    builtin and then its argument prototype would still apply.  */
13320 #ifdef __cplusplus
13321 extern "C"
13322 #endif
13323 char pthread_getspecific ();
13324 int
13325 main ()
13326 {
13327 return pthread_getspecific ();
13328   ;
13329   return 0;
13330 }
13331 _ACEOF
13332 for ac_lib in '' pthread; do
13333   if test -z "$ac_lib"; then
13334     ac_res="none required"
13335   else
13336     ac_res=-l$ac_lib
13337     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13338   fi
13339   rm -f conftest.$ac_objext conftest$ac_exeext
13340 if { (ac_try="$ac_link"
13341 case "(($ac_try" in
13342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13343   *) ac_try_echo=$ac_try;;
13344 esac
13345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13346   (eval "$ac_link") 2>conftest.er1
13347   ac_status=$?
13348   grep -v '^ *+' conftest.er1 >conftest.err
13349   rm -f conftest.er1
13350   cat conftest.err >&5
13351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352   (exit $ac_status); } &&
13353          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13354   { (case "(($ac_try" in
13355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13356   *) ac_try_echo=$ac_try;;
13357 esac
13358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13359   (eval "$ac_try") 2>&5
13360   ac_status=$?
13361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362   (exit $ac_status); }; } &&
13363          { ac_try='test -s conftest$ac_exeext'
13364   { (case "(($ac_try" in
13365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366   *) ac_try_echo=$ac_try;;
13367 esac
13368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369   (eval "$ac_try") 2>&5
13370   ac_status=$?
13371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372   (exit $ac_status); }; }; then
13373   ac_cv_search_pthread_getspecific=$ac_res
13374 else
13375   echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13377
13378
13379 fi
13380
13381 rm -f core conftest.err conftest.$ac_objext \
13382       conftest$ac_exeext
13383   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13384   break
13385 fi
13386 done
13387 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13388   :
13389 else
13390   ac_cv_search_pthread_getspecific=no
13391 fi
13392 rm conftest.$ac_ext
13393 LIBS=$ac_func_search_save_LIBS
13394 fi
13395 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13396 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13397 ac_res=$ac_cv_search_pthread_getspecific
13398 if test "$ac_res" != no; then
13399   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13400
13401 cat >>confdefs.h <<\_ACEOF
13402 #define HAVE_PTHREAD_GETSPECIFIC 1
13403 _ACEOF
13404
13405 fi
13406
13407 fi
13408
13409 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13410
13411 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13412 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13413 if test "${ac_cv_lib_z_compress2+set}" = set; then
13414   echo $ECHO_N "(cached) $ECHO_C" >&6
13415 else
13416   ac_check_lib_save_LIBS=$LIBS
13417 LIBS="-lz  $LIBS"
13418 cat >conftest.$ac_ext <<_ACEOF
13419 /* confdefs.h.  */
13420 _ACEOF
13421 cat confdefs.h >>conftest.$ac_ext
13422 cat >>conftest.$ac_ext <<_ACEOF
13423 /* end confdefs.h.  */
13424
13425 /* Override any GCC internal prototype to avoid an error.
13426    Use char because int might match the return type of a GCC
13427    builtin and then its argument prototype would still apply.  */
13428 #ifdef __cplusplus
13429 extern "C"
13430 #endif
13431 char compress2 ();
13432 int
13433 main ()
13434 {
13435 return compress2 ();
13436   ;
13437   return 0;
13438 }
13439 _ACEOF
13440 rm -f conftest.$ac_objext conftest$ac_exeext
13441 if { (ac_try="$ac_link"
13442 case "(($ac_try" in
13443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13444   *) ac_try_echo=$ac_try;;
13445 esac
13446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13447   (eval "$ac_link") 2>conftest.er1
13448   ac_status=$?
13449   grep -v '^ *+' conftest.er1 >conftest.err
13450   rm -f conftest.er1
13451   cat conftest.err >&5
13452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453   (exit $ac_status); } &&
13454          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13455   { (case "(($ac_try" in
13456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13457   *) ac_try_echo=$ac_try;;
13458 esac
13459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13460   (eval "$ac_try") 2>&5
13461   ac_status=$?
13462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463   (exit $ac_status); }; } &&
13464          { ac_try='test -s conftest$ac_exeext'
13465   { (case "(($ac_try" in
13466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13467   *) ac_try_echo=$ac_try;;
13468 esac
13469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13470   (eval "$ac_try") 2>&5
13471   ac_status=$?
13472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473   (exit $ac_status); }; }; then
13474   ac_cv_lib_z_compress2=yes
13475 else
13476   echo "$as_me: failed program was:" >&5
13477 sed 's/^/| /' conftest.$ac_ext >&5
13478
13479         ac_cv_lib_z_compress2=no
13480 fi
13481
13482 rm -f core conftest.err conftest.$ac_objext \
13483       conftest$ac_exeext conftest.$ac_ext
13484 LIBS=$ac_check_lib_save_LIBS
13485 fi
13486 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13487 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13488 if test $ac_cv_lib_z_compress2 = yes; then
13489   cat >>confdefs.h <<_ACEOF
13490 #define HAVE_LIBZ 1
13491 _ACEOF
13492
13493   LIBS="-lz $LIBS"
13494
13495 fi
13496
13497 fi
13498
13499
13500 # Check whether --with-udis86 was given.
13501 if test "${with_udis86+set}" = set; then
13502   withval=$with_udis86;
13503       USE_UDIS86=1
13504
13505       case "$withval" in
13506         /usr/lib|yes) ;;
13507         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13508       esac
13509
13510 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13511 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13512 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13513   echo $ECHO_N "(cached) $ECHO_C" >&6
13514 else
13515   ac_check_lib_save_LIBS=$LIBS
13516 LIBS="-ludis86  $LIBS"
13517 cat >conftest.$ac_ext <<_ACEOF
13518 /* confdefs.h.  */
13519 _ACEOF
13520 cat confdefs.h >>conftest.$ac_ext
13521 cat >>conftest.$ac_ext <<_ACEOF
13522 /* end confdefs.h.  */
13523
13524 /* Override any GCC internal prototype to avoid an error.
13525    Use char because int might match the return type of a GCC
13526    builtin and then its argument prototype would still apply.  */
13527 #ifdef __cplusplus
13528 extern "C"
13529 #endif
13530 char ud_init ();
13531 int
13532 main ()
13533 {
13534 return ud_init ();
13535   ;
13536   return 0;
13537 }
13538 _ACEOF
13539 rm -f conftest.$ac_objext conftest$ac_exeext
13540 if { (ac_try="$ac_link"
13541 case "(($ac_try" in
13542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13543   *) ac_try_echo=$ac_try;;
13544 esac
13545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13546   (eval "$ac_link") 2>conftest.er1
13547   ac_status=$?
13548   grep -v '^ *+' conftest.er1 >conftest.err
13549   rm -f conftest.er1
13550   cat conftest.err >&5
13551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552   (exit $ac_status); } &&
13553          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13554   { (case "(($ac_try" in
13555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556   *) ac_try_echo=$ac_try;;
13557 esac
13558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13559   (eval "$ac_try") 2>&5
13560   ac_status=$?
13561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562   (exit $ac_status); }; } &&
13563          { ac_try='test -s conftest$ac_exeext'
13564   { (case "(($ac_try" in
13565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13566   *) ac_try_echo=$ac_try;;
13567 esac
13568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13569   (eval "$ac_try") 2>&5
13570   ac_status=$?
13571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572   (exit $ac_status); }; }; then
13573   ac_cv_lib_udis86_ud_init=yes
13574 else
13575   echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13577
13578         ac_cv_lib_udis86_ud_init=no
13579 fi
13580
13581 rm -f core conftest.err conftest.$ac_objext \
13582       conftest$ac_exeext conftest.$ac_ext
13583 LIBS=$ac_check_lib_save_LIBS
13584 fi
13585 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13586 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13587 if test $ac_cv_lib_udis86_ud_init = yes; then
13588   cat >>confdefs.h <<_ACEOF
13589 #define HAVE_LIBUDIS86 1
13590 _ACEOF
13591
13592   LIBS="-ludis86 $LIBS"
13593
13594 else
13595
13596         echo "Error! You need to have libudis86 around."
13597         exit -1
13598
13599 fi
13600
13601
13602 else
13603   USE_UDIS86=0
13604
13605 fi
13606
13607
13608 cat >>confdefs.h <<_ACEOF
13609 #define USE_UDIS86 $USE_UDIS86
13610 _ACEOF
13611
13612
13613
13614 # Check whether --with-oprofile was given.
13615 if test "${with_oprofile+set}" = set; then
13616   withval=$with_oprofile;
13617       USE_OPROFILE=1
13618
13619       case "$withval" in
13620         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13621         no) llvm_cv_oppath=
13622             USE_OPROFILE=0
13623  ;;
13624         *) llvm_cv_oppath="${withval}/lib/oprofile"
13625            CPPFLAGS="-I${withval}/include";;
13626       esac
13627       if test -n "$llvm_cv_oppath" ; then
13628         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13629                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13630 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13631 if test "${ac_cv_search_bfd_init+set}" = set; then
13632   echo $ECHO_N "(cached) $ECHO_C" >&6
13633 else
13634   ac_func_search_save_LIBS=$LIBS
13635 cat >conftest.$ac_ext <<_ACEOF
13636 /* confdefs.h.  */
13637 _ACEOF
13638 cat confdefs.h >>conftest.$ac_ext
13639 cat >>conftest.$ac_ext <<_ACEOF
13640 /* end confdefs.h.  */
13641
13642 /* Override any GCC internal prototype to avoid an error.
13643    Use char because int might match the return type of a GCC
13644    builtin and then its argument prototype would still apply.  */
13645 #ifdef __cplusplus
13646 extern "C"
13647 #endif
13648 char bfd_init ();
13649 int
13650 main ()
13651 {
13652 return bfd_init ();
13653   ;
13654   return 0;
13655 }
13656 _ACEOF
13657 for ac_lib in '' bfd; do
13658   if test -z "$ac_lib"; then
13659     ac_res="none required"
13660   else
13661     ac_res=-l$ac_lib
13662     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13663   fi
13664   rm -f conftest.$ac_objext conftest$ac_exeext
13665 if { (ac_try="$ac_link"
13666 case "(($ac_try" in
13667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13668   *) ac_try_echo=$ac_try;;
13669 esac
13670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13671   (eval "$ac_link") 2>conftest.er1
13672   ac_status=$?
13673   grep -v '^ *+' conftest.er1 >conftest.err
13674   rm -f conftest.er1
13675   cat conftest.err >&5
13676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677   (exit $ac_status); } &&
13678          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13679   { (case "(($ac_try" in
13680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13681   *) ac_try_echo=$ac_try;;
13682 esac
13683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13684   (eval "$ac_try") 2>&5
13685   ac_status=$?
13686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687   (exit $ac_status); }; } &&
13688          { ac_try='test -s conftest$ac_exeext'
13689   { (case "(($ac_try" in
13690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691   *) ac_try_echo=$ac_try;;
13692 esac
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694   (eval "$ac_try") 2>&5
13695   ac_status=$?
13696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697   (exit $ac_status); }; }; then
13698   ac_cv_search_bfd_init=$ac_res
13699 else
13700   echo "$as_me: failed program was:" >&5
13701 sed 's/^/| /' conftest.$ac_ext >&5
13702
13703
13704 fi
13705
13706 rm -f core conftest.err conftest.$ac_objext \
13707       conftest$ac_exeext
13708   if test "${ac_cv_search_bfd_init+set}" = set; then
13709   break
13710 fi
13711 done
13712 if test "${ac_cv_search_bfd_init+set}" = set; then
13713   :
13714 else
13715   ac_cv_search_bfd_init=no
13716 fi
13717 rm conftest.$ac_ext
13718 LIBS=$ac_func_search_save_LIBS
13719 fi
13720 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13721 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13722 ac_res=$ac_cv_search_bfd_init
13723 if test "$ac_res" != no; then
13724   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13725
13726 fi
13727
13728         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13729 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13730 if test "${ac_cv_search_op_open_agent+set}" = set; then
13731   echo $ECHO_N "(cached) $ECHO_C" >&6
13732 else
13733   ac_func_search_save_LIBS=$LIBS
13734 cat >conftest.$ac_ext <<_ACEOF
13735 /* confdefs.h.  */
13736 _ACEOF
13737 cat confdefs.h >>conftest.$ac_ext
13738 cat >>conftest.$ac_ext <<_ACEOF
13739 /* end confdefs.h.  */
13740
13741 /* Override any GCC internal prototype to avoid an error.
13742    Use char because int might match the return type of a GCC
13743    builtin and then its argument prototype would still apply.  */
13744 #ifdef __cplusplus
13745 extern "C"
13746 #endif
13747 char op_open_agent ();
13748 int
13749 main ()
13750 {
13751 return op_open_agent ();
13752   ;
13753   return 0;
13754 }
13755 _ACEOF
13756 for ac_lib in '' opagent; do
13757   if test -z "$ac_lib"; then
13758     ac_res="none required"
13759   else
13760     ac_res=-l$ac_lib
13761     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13762   fi
13763   rm -f conftest.$ac_objext conftest$ac_exeext
13764 if { (ac_try="$ac_link"
13765 case "(($ac_try" in
13766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767   *) ac_try_echo=$ac_try;;
13768 esac
13769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13770   (eval "$ac_link") 2>conftest.er1
13771   ac_status=$?
13772   grep -v '^ *+' conftest.er1 >conftest.err
13773   rm -f conftest.er1
13774   cat conftest.err >&5
13775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776   (exit $ac_status); } &&
13777          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13778   { (case "(($ac_try" in
13779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780   *) ac_try_echo=$ac_try;;
13781 esac
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783   (eval "$ac_try") 2>&5
13784   ac_status=$?
13785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786   (exit $ac_status); }; } &&
13787          { ac_try='test -s conftest$ac_exeext'
13788   { (case "(($ac_try" in
13789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13790   *) ac_try_echo=$ac_try;;
13791 esac
13792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13793   (eval "$ac_try") 2>&5
13794   ac_status=$?
13795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796   (exit $ac_status); }; }; then
13797   ac_cv_search_op_open_agent=$ac_res
13798 else
13799   echo "$as_me: failed program was:" >&5
13800 sed 's/^/| /' conftest.$ac_ext >&5
13801
13802
13803 fi
13804
13805 rm -f core conftest.err conftest.$ac_objext \
13806       conftest$ac_exeext
13807   if test "${ac_cv_search_op_open_agent+set}" = set; then
13808   break
13809 fi
13810 done
13811 if test "${ac_cv_search_op_open_agent+set}" = set; then
13812   :
13813 else
13814   ac_cv_search_op_open_agent=no
13815 fi
13816 rm conftest.$ac_ext
13817 LIBS=$ac_func_search_save_LIBS
13818 fi
13819 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13820 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13821 ac_res=$ac_cv_search_op_open_agent
13822 if test "$ac_res" != no; then
13823   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13824
13825 else
13826
13827           echo "Error! You need to have libopagent around."
13828           exit -1
13829
13830 fi
13831
13832         if test "${ac_cv_header_opagent_h+set}" = set; then
13833   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13834 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13835 if test "${ac_cv_header_opagent_h+set}" = set; then
13836   echo $ECHO_N "(cached) $ECHO_C" >&6
13837 fi
13838 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13839 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13840 else
13841   # Is the header compilable?
13842 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13843 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13844 cat >conftest.$ac_ext <<_ACEOF
13845 /* confdefs.h.  */
13846 _ACEOF
13847 cat confdefs.h >>conftest.$ac_ext
13848 cat >>conftest.$ac_ext <<_ACEOF
13849 /* end confdefs.h.  */
13850 $ac_includes_default
13851 #include <opagent.h>
13852 _ACEOF
13853 rm -f conftest.$ac_objext
13854 if { (ac_try="$ac_compile"
13855 case "(($ac_try" in
13856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857   *) ac_try_echo=$ac_try;;
13858 esac
13859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860   (eval "$ac_compile") 2>conftest.er1
13861   ac_status=$?
13862   grep -v '^ *+' conftest.er1 >conftest.err
13863   rm -f conftest.er1
13864   cat conftest.err >&5
13865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866   (exit $ac_status); } &&
13867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13868   { (case "(($ac_try" in
13869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13870   *) ac_try_echo=$ac_try;;
13871 esac
13872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13873   (eval "$ac_try") 2>&5
13874   ac_status=$?
13875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876   (exit $ac_status); }; } &&
13877          { ac_try='test -s conftest.$ac_objext'
13878   { (case "(($ac_try" in
13879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13880   *) ac_try_echo=$ac_try;;
13881 esac
13882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13883   (eval "$ac_try") 2>&5
13884   ac_status=$?
13885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886   (exit $ac_status); }; }; then
13887   ac_header_compiler=yes
13888 else
13889   echo "$as_me: failed program was:" >&5
13890 sed 's/^/| /' conftest.$ac_ext >&5
13891
13892         ac_header_compiler=no
13893 fi
13894
13895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13897 echo "${ECHO_T}$ac_header_compiler" >&6; }
13898
13899 # Is the header present?
13900 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13901 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13902 cat >conftest.$ac_ext <<_ACEOF
13903 /* confdefs.h.  */
13904 _ACEOF
13905 cat confdefs.h >>conftest.$ac_ext
13906 cat >>conftest.$ac_ext <<_ACEOF
13907 /* end confdefs.h.  */
13908 #include <opagent.h>
13909 _ACEOF
13910 if { (ac_try="$ac_cpp conftest.$ac_ext"
13911 case "(($ac_try" in
13912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13913   *) ac_try_echo=$ac_try;;
13914 esac
13915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13916   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13917   ac_status=$?
13918   grep -v '^ *+' conftest.er1 >conftest.err
13919   rm -f conftest.er1
13920   cat conftest.err >&5
13921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922   (exit $ac_status); } >/dev/null; then
13923   if test -s conftest.err; then
13924     ac_cpp_err=$ac_c_preproc_warn_flag
13925     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13926   else
13927     ac_cpp_err=
13928   fi
13929 else
13930   ac_cpp_err=yes
13931 fi
13932 if test -z "$ac_cpp_err"; then
13933   ac_header_preproc=yes
13934 else
13935   echo "$as_me: failed program was:" >&5
13936 sed 's/^/| /' conftest.$ac_ext >&5
13937
13938   ac_header_preproc=no
13939 fi
13940
13941 rm -f conftest.err conftest.$ac_ext
13942 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13943 echo "${ECHO_T}$ac_header_preproc" >&6; }
13944
13945 # So?  What about this header?
13946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13947   yes:no: )
13948     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13949 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13950     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13951 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13952     ac_header_preproc=yes
13953     ;;
13954   no:yes:* )
13955     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13956 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13957     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13958 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13959     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13960 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13961     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13962 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13963     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13964 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13965     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13966 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13967     ( cat <<\_ASBOX
13968 ## ------------------------------ ##
13969 ## Report this to bugs@yourdomain ##
13970 ## ------------------------------ ##
13971 _ASBOX
13972      ) | sed "s/^/$as_me: WARNING:     /" >&2
13973     ;;
13974 esac
13975 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13976 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13977 if test "${ac_cv_header_opagent_h+set}" = set; then
13978   echo $ECHO_N "(cached) $ECHO_C" >&6
13979 else
13980   ac_cv_header_opagent_h=$ac_header_preproc
13981 fi
13982 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13983 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13984
13985 fi
13986 if test $ac_cv_header_opagent_h = yes; then
13987   :
13988 else
13989
13990           echo "Error! You need to have opagent.h around."
13991           exit -1
13992
13993 fi
13994
13995
13996       fi
13997
13998 else
13999
14000       USE_OPROFILE=0
14001
14002
14003 fi
14004
14005
14006 cat >>confdefs.h <<_ACEOF
14007 #define USE_OPROFILE $USE_OPROFILE
14008 _ACEOF
14009
14010
14011
14012
14013
14014
14015
14016
14017 ac_header_dirent=no
14018 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14019   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14020 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14021 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14023   echo $ECHO_N "(cached) $ECHO_C" >&6
14024 else
14025   cat >conftest.$ac_ext <<_ACEOF
14026 /* confdefs.h.  */
14027 _ACEOF
14028 cat confdefs.h >>conftest.$ac_ext
14029 cat >>conftest.$ac_ext <<_ACEOF
14030 /* end confdefs.h.  */
14031 #include <sys/types.h>
14032 #include <$ac_hdr>
14033
14034 int
14035 main ()
14036 {
14037 if ((DIR *) 0)
14038 return 0;
14039   ;
14040   return 0;
14041 }
14042 _ACEOF
14043 rm -f conftest.$ac_objext
14044 if { (ac_try="$ac_compile"
14045 case "(($ac_try" in
14046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14047   *) ac_try_echo=$ac_try;;
14048 esac
14049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14050   (eval "$ac_compile") 2>conftest.er1
14051   ac_status=$?
14052   grep -v '^ *+' conftest.er1 >conftest.err
14053   rm -f conftest.er1
14054   cat conftest.err >&5
14055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056   (exit $ac_status); } &&
14057          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14058   { (case "(($ac_try" in
14059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14060   *) ac_try_echo=$ac_try;;
14061 esac
14062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14063   (eval "$ac_try") 2>&5
14064   ac_status=$?
14065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066   (exit $ac_status); }; } &&
14067          { ac_try='test -s conftest.$ac_objext'
14068   { (case "(($ac_try" in
14069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14070   *) ac_try_echo=$ac_try;;
14071 esac
14072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14073   (eval "$ac_try") 2>&5
14074   ac_status=$?
14075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076   (exit $ac_status); }; }; then
14077   eval "$as_ac_Header=yes"
14078 else
14079   echo "$as_me: failed program was:" >&5
14080 sed 's/^/| /' conftest.$ac_ext >&5
14081
14082         eval "$as_ac_Header=no"
14083 fi
14084
14085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14086 fi
14087 ac_res=`eval echo '${'$as_ac_Header'}'`
14088                { echo "$as_me:$LINENO: result: $ac_res" >&5
14089 echo "${ECHO_T}$ac_res" >&6; }
14090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14091   cat >>confdefs.h <<_ACEOF
14092 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14093 _ACEOF
14094
14095 ac_header_dirent=$ac_hdr; break
14096 fi
14097
14098 done
14099 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14100 if test $ac_header_dirent = dirent.h; then
14101   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14102 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14103 if test "${ac_cv_search_opendir+set}" = set; then
14104   echo $ECHO_N "(cached) $ECHO_C" >&6
14105 else
14106   ac_func_search_save_LIBS=$LIBS
14107 cat >conftest.$ac_ext <<_ACEOF
14108 /* confdefs.h.  */
14109 _ACEOF
14110 cat confdefs.h >>conftest.$ac_ext
14111 cat >>conftest.$ac_ext <<_ACEOF
14112 /* end confdefs.h.  */
14113
14114 /* Override any GCC internal prototype to avoid an error.
14115    Use char because int might match the return type of a GCC
14116    builtin and then its argument prototype would still apply.  */
14117 #ifdef __cplusplus
14118 extern "C"
14119 #endif
14120 char opendir ();
14121 int
14122 main ()
14123 {
14124 return opendir ();
14125   ;
14126   return 0;
14127 }
14128 _ACEOF
14129 for ac_lib in '' dir; do
14130   if test -z "$ac_lib"; then
14131     ac_res="none required"
14132   else
14133     ac_res=-l$ac_lib
14134     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14135   fi
14136   rm -f conftest.$ac_objext conftest$ac_exeext
14137 if { (ac_try="$ac_link"
14138 case "(($ac_try" in
14139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14140   *) ac_try_echo=$ac_try;;
14141 esac
14142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14143   (eval "$ac_link") 2>conftest.er1
14144   ac_status=$?
14145   grep -v '^ *+' conftest.er1 >conftest.err
14146   rm -f conftest.er1
14147   cat conftest.err >&5
14148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149   (exit $ac_status); } &&
14150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14151   { (case "(($ac_try" in
14152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153   *) ac_try_echo=$ac_try;;
14154 esac
14155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14156   (eval "$ac_try") 2>&5
14157   ac_status=$?
14158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159   (exit $ac_status); }; } &&
14160          { ac_try='test -s conftest$ac_exeext'
14161   { (case "(($ac_try" in
14162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163   *) ac_try_echo=$ac_try;;
14164 esac
14165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14166   (eval "$ac_try") 2>&5
14167   ac_status=$?
14168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169   (exit $ac_status); }; }; then
14170   ac_cv_search_opendir=$ac_res
14171 else
14172   echo "$as_me: failed program was:" >&5
14173 sed 's/^/| /' conftest.$ac_ext >&5
14174
14175
14176 fi
14177
14178 rm -f core conftest.err conftest.$ac_objext \
14179       conftest$ac_exeext
14180   if test "${ac_cv_search_opendir+set}" = set; then
14181   break
14182 fi
14183 done
14184 if test "${ac_cv_search_opendir+set}" = set; then
14185   :
14186 else
14187   ac_cv_search_opendir=no
14188 fi
14189 rm conftest.$ac_ext
14190 LIBS=$ac_func_search_save_LIBS
14191 fi
14192 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14193 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14194 ac_res=$ac_cv_search_opendir
14195 if test "$ac_res" != no; then
14196   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14197
14198 fi
14199
14200 else
14201   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14202 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14203 if test "${ac_cv_search_opendir+set}" = set; then
14204   echo $ECHO_N "(cached) $ECHO_C" >&6
14205 else
14206   ac_func_search_save_LIBS=$LIBS
14207 cat >conftest.$ac_ext <<_ACEOF
14208 /* confdefs.h.  */
14209 _ACEOF
14210 cat confdefs.h >>conftest.$ac_ext
14211 cat >>conftest.$ac_ext <<_ACEOF
14212 /* end confdefs.h.  */
14213
14214 /* Override any GCC internal prototype to avoid an error.
14215    Use char because int might match the return type of a GCC
14216    builtin and then its argument prototype would still apply.  */
14217 #ifdef __cplusplus
14218 extern "C"
14219 #endif
14220 char opendir ();
14221 int
14222 main ()
14223 {
14224 return opendir ();
14225   ;
14226   return 0;
14227 }
14228 _ACEOF
14229 for ac_lib in '' x; do
14230   if test -z "$ac_lib"; then
14231     ac_res="none required"
14232   else
14233     ac_res=-l$ac_lib
14234     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14235   fi
14236   rm -f conftest.$ac_objext conftest$ac_exeext
14237 if { (ac_try="$ac_link"
14238 case "(($ac_try" in
14239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14240   *) ac_try_echo=$ac_try;;
14241 esac
14242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14243   (eval "$ac_link") 2>conftest.er1
14244   ac_status=$?
14245   grep -v '^ *+' conftest.er1 >conftest.err
14246   rm -f conftest.er1
14247   cat conftest.err >&5
14248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249   (exit $ac_status); } &&
14250          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14251   { (case "(($ac_try" in
14252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14253   *) ac_try_echo=$ac_try;;
14254 esac
14255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14256   (eval "$ac_try") 2>&5
14257   ac_status=$?
14258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259   (exit $ac_status); }; } &&
14260          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14270   ac_cv_search_opendir=$ac_res
14271 else
14272   echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.$ac_ext >&5
14274
14275
14276 fi
14277
14278 rm -f core conftest.err conftest.$ac_objext \
14279       conftest$ac_exeext
14280   if test "${ac_cv_search_opendir+set}" = set; then
14281   break
14282 fi
14283 done
14284 if test "${ac_cv_search_opendir+set}" = set; then
14285   :
14286 else
14287   ac_cv_search_opendir=no
14288 fi
14289 rm conftest.$ac_ext
14290 LIBS=$ac_func_search_save_LIBS
14291 fi
14292 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14293 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14294 ac_res=$ac_cv_search_opendir
14295 if test "$ac_res" != no; then
14296   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14297
14298 fi
14299
14300 fi
14301
14302 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14303 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14304 if test "${ac_cv_header_mmap_anon+set}" = set; then
14305   echo $ECHO_N "(cached) $ECHO_C" >&6
14306 else
14307    ac_ext=c
14308 ac_cpp='$CPP $CPPFLAGS'
14309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14312
14313   cat >conftest.$ac_ext <<_ACEOF
14314 /* confdefs.h.  */
14315 _ACEOF
14316 cat confdefs.h >>conftest.$ac_ext
14317 cat >>conftest.$ac_ext <<_ACEOF
14318 /* end confdefs.h.  */
14319 #include <sys/mman.h>
14320 #include <unistd.h>
14321 #include <fcntl.h>
14322 int
14323 main ()
14324 {
14325 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14326   ;
14327   return 0;
14328 }
14329 _ACEOF
14330 rm -f conftest.$ac_objext
14331 if { (ac_try="$ac_compile"
14332 case "(($ac_try" in
14333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14334   *) ac_try_echo=$ac_try;;
14335 esac
14336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14337   (eval "$ac_compile") 2>conftest.er1
14338   ac_status=$?
14339   grep -v '^ *+' conftest.er1 >conftest.err
14340   rm -f conftest.er1
14341   cat conftest.err >&5
14342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343   (exit $ac_status); } &&
14344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14345   { (case "(($ac_try" in
14346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347   *) ac_try_echo=$ac_try;;
14348 esac
14349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350   (eval "$ac_try") 2>&5
14351   ac_status=$?
14352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353   (exit $ac_status); }; } &&
14354          { ac_try='test -s conftest.$ac_objext'
14355   { (case "(($ac_try" in
14356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14357   *) ac_try_echo=$ac_try;;
14358 esac
14359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14360   (eval "$ac_try") 2>&5
14361   ac_status=$?
14362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363   (exit $ac_status); }; }; then
14364   ac_cv_header_mmap_anon=yes
14365 else
14366   echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14368
14369         ac_cv_header_mmap_anon=no
14370 fi
14371
14372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14373   ac_ext=c
14374 ac_cpp='$CPP $CPPFLAGS'
14375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14378
14379
14380 fi
14381 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14382 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14383 if test "$ac_cv_header_mmap_anon" = yes; then
14384
14385 cat >>confdefs.h <<\_ACEOF
14386 #define HAVE_MMAP_ANONYMOUS 1
14387 _ACEOF
14388
14389 fi
14390
14391 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14392 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14393 if test "${ac_cv_header_stat_broken+set}" = set; then
14394   echo $ECHO_N "(cached) $ECHO_C" >&6
14395 else
14396   cat >conftest.$ac_ext <<_ACEOF
14397 /* confdefs.h.  */
14398 _ACEOF
14399 cat confdefs.h >>conftest.$ac_ext
14400 cat >>conftest.$ac_ext <<_ACEOF
14401 /* end confdefs.h.  */
14402 #include <sys/types.h>
14403 #include <sys/stat.h>
14404
14405 #if defined S_ISBLK && defined S_IFDIR
14406 # if S_ISBLK (S_IFDIR)
14407 You lose.
14408 # endif
14409 #endif
14410
14411 #if defined S_ISBLK && defined S_IFCHR
14412 # if S_ISBLK (S_IFCHR)
14413 You lose.
14414 # endif
14415 #endif
14416
14417 #if defined S_ISLNK && defined S_IFREG
14418 # if S_ISLNK (S_IFREG)
14419 You lose.
14420 # endif
14421 #endif
14422
14423 #if defined S_ISSOCK && defined S_IFREG
14424 # if S_ISSOCK (S_IFREG)
14425 You lose.
14426 # endif
14427 #endif
14428
14429 _ACEOF
14430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14431   $EGREP "You lose" >/dev/null 2>&1; then
14432   ac_cv_header_stat_broken=yes
14433 else
14434   ac_cv_header_stat_broken=no
14435 fi
14436 rm -f conftest*
14437
14438 fi
14439 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14440 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14441 if test $ac_cv_header_stat_broken = yes; then
14442
14443 cat >>confdefs.h <<\_ACEOF
14444 #define STAT_MACROS_BROKEN 1
14445 _ACEOF
14446
14447 fi
14448
14449 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14450 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14451 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14452   echo $ECHO_N "(cached) $ECHO_C" >&6
14453 else
14454   cat >conftest.$ac_ext <<_ACEOF
14455 /* confdefs.h.  */
14456 _ACEOF
14457 cat confdefs.h >>conftest.$ac_ext
14458 cat >>conftest.$ac_ext <<_ACEOF
14459 /* end confdefs.h.  */
14460 #include <sys/types.h>
14461 #include <sys/wait.h>
14462 #ifndef WEXITSTATUS
14463 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14464 #endif
14465 #ifndef WIFEXITED
14466 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14467 #endif
14468
14469 int
14470 main ()
14471 {
14472   int s;
14473   wait (&s);
14474   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14475   ;
14476   return 0;
14477 }
14478 _ACEOF
14479 rm -f conftest.$ac_objext
14480 if { (ac_try="$ac_compile"
14481 case "(($ac_try" in
14482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483   *) ac_try_echo=$ac_try;;
14484 esac
14485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486   (eval "$ac_compile") 2>conftest.er1
14487   ac_status=$?
14488   grep -v '^ *+' conftest.er1 >conftest.err
14489   rm -f conftest.er1
14490   cat conftest.err >&5
14491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492   (exit $ac_status); } &&
14493          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14494   { (case "(($ac_try" in
14495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496   *) ac_try_echo=$ac_try;;
14497 esac
14498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14499   (eval "$ac_try") 2>&5
14500   ac_status=$?
14501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502   (exit $ac_status); }; } &&
14503          { ac_try='test -s conftest.$ac_objext'
14504   { (case "(($ac_try" in
14505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14506   *) ac_try_echo=$ac_try;;
14507 esac
14508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14509   (eval "$ac_try") 2>&5
14510   ac_status=$?
14511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512   (exit $ac_status); }; }; then
14513   ac_cv_header_sys_wait_h=yes
14514 else
14515   echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14517
14518         ac_cv_header_sys_wait_h=no
14519 fi
14520
14521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14522 fi
14523 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14524 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14525 if test $ac_cv_header_sys_wait_h = yes; then
14526
14527 cat >>confdefs.h <<\_ACEOF
14528 #define HAVE_SYS_WAIT_H 1
14529 _ACEOF
14530
14531 fi
14532
14533 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14534 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14535 if test "${ac_cv_header_time+set}" = set; then
14536   echo $ECHO_N "(cached) $ECHO_C" >&6
14537 else
14538   cat >conftest.$ac_ext <<_ACEOF
14539 /* confdefs.h.  */
14540 _ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h.  */
14544 #include <sys/types.h>
14545 #include <sys/time.h>
14546 #include <time.h>
14547
14548 int
14549 main ()
14550 {
14551 if ((struct tm *) 0)
14552 return 0;
14553   ;
14554   return 0;
14555 }
14556 _ACEOF
14557 rm -f conftest.$ac_objext
14558 if { (ac_try="$ac_compile"
14559 case "(($ac_try" in
14560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14561   *) ac_try_echo=$ac_try;;
14562 esac
14563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14564   (eval "$ac_compile") 2>conftest.er1
14565   ac_status=$?
14566   grep -v '^ *+' conftest.er1 >conftest.err
14567   rm -f conftest.er1
14568   cat conftest.err >&5
14569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570   (exit $ac_status); } &&
14571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14572   { (case "(($ac_try" in
14573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14574   *) ac_try_echo=$ac_try;;
14575 esac
14576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14577   (eval "$ac_try") 2>&5
14578   ac_status=$?
14579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580   (exit $ac_status); }; } &&
14581          { ac_try='test -s conftest.$ac_objext'
14582   { (case "(($ac_try" in
14583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14584   *) ac_try_echo=$ac_try;;
14585 esac
14586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14587   (eval "$ac_try") 2>&5
14588   ac_status=$?
14589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590   (exit $ac_status); }; }; then
14591   ac_cv_header_time=yes
14592 else
14593   echo "$as_me: failed program was:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14595
14596         ac_cv_header_time=no
14597 fi
14598
14599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14600 fi
14601 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14602 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14603 if test $ac_cv_header_time = yes; then
14604
14605 cat >>confdefs.h <<\_ACEOF
14606 #define TIME_WITH_SYS_TIME 1
14607 _ACEOF
14608
14609 fi
14610
14611
14612
14613
14614
14615
14616
14617
14618 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14619 do
14620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14622   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14625   echo $ECHO_N "(cached) $ECHO_C" >&6
14626 fi
14627 ac_res=`eval echo '${'$as_ac_Header'}'`
14628                { echo "$as_me:$LINENO: result: $ac_res" >&5
14629 echo "${ECHO_T}$ac_res" >&6; }
14630 else
14631   # Is the header compilable?
14632 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14634 cat >conftest.$ac_ext <<_ACEOF
14635 /* confdefs.h.  */
14636 _ACEOF
14637 cat confdefs.h >>conftest.$ac_ext
14638 cat >>conftest.$ac_ext <<_ACEOF
14639 /* end confdefs.h.  */
14640 $ac_includes_default
14641 #include <$ac_header>
14642 _ACEOF
14643 rm -f conftest.$ac_objext
14644 if { (ac_try="$ac_compile"
14645 case "(($ac_try" in
14646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14647   *) ac_try_echo=$ac_try;;
14648 esac
14649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14650   (eval "$ac_compile") 2>conftest.er1
14651   ac_status=$?
14652   grep -v '^ *+' conftest.er1 >conftest.err
14653   rm -f conftest.er1
14654   cat conftest.err >&5
14655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656   (exit $ac_status); } &&
14657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14658   { (case "(($ac_try" in
14659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14660   *) ac_try_echo=$ac_try;;
14661 esac
14662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14663   (eval "$ac_try") 2>&5
14664   ac_status=$?
14665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666   (exit $ac_status); }; } &&
14667          { ac_try='test -s conftest.$ac_objext'
14668   { (case "(($ac_try" in
14669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670   *) ac_try_echo=$ac_try;;
14671 esac
14672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14673   (eval "$ac_try") 2>&5
14674   ac_status=$?
14675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676   (exit $ac_status); }; }; then
14677   ac_header_compiler=yes
14678 else
14679   echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14681
14682         ac_header_compiler=no
14683 fi
14684
14685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14686 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14687 echo "${ECHO_T}$ac_header_compiler" >&6; }
14688
14689 # Is the header present?
14690 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14692 cat >conftest.$ac_ext <<_ACEOF
14693 /* confdefs.h.  */
14694 _ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h.  */
14698 #include <$ac_header>
14699 _ACEOF
14700 if { (ac_try="$ac_cpp conftest.$ac_ext"
14701 case "(($ac_try" in
14702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14703   *) ac_try_echo=$ac_try;;
14704 esac
14705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14706   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14707   ac_status=$?
14708   grep -v '^ *+' conftest.er1 >conftest.err
14709   rm -f conftest.er1
14710   cat conftest.err >&5
14711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712   (exit $ac_status); } >/dev/null; then
14713   if test -s conftest.err; then
14714     ac_cpp_err=$ac_c_preproc_warn_flag
14715     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14716   else
14717     ac_cpp_err=
14718   fi
14719 else
14720   ac_cpp_err=yes
14721 fi
14722 if test -z "$ac_cpp_err"; then
14723   ac_header_preproc=yes
14724 else
14725   echo "$as_me: failed program was:" >&5
14726 sed 's/^/| /' conftest.$ac_ext >&5
14727
14728   ac_header_preproc=no
14729 fi
14730
14731 rm -f conftest.err conftest.$ac_ext
14732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14733 echo "${ECHO_T}$ac_header_preproc" >&6; }
14734
14735 # So?  What about this header?
14736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14737   yes:no: )
14738     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14740     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14742     ac_header_preproc=yes
14743     ;;
14744   no:yes:* )
14745     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14747     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14748 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14749     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14751     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14752 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14753     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14755     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14757     ( cat <<\_ASBOX
14758 ## ------------------------------ ##
14759 ## Report this to bugs@yourdomain ##
14760 ## ------------------------------ ##
14761 _ASBOX
14762      ) | sed "s/^/$as_me: WARNING:     /" >&2
14763     ;;
14764 esac
14765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14768   echo $ECHO_N "(cached) $ECHO_C" >&6
14769 else
14770   eval "$as_ac_Header=\$ac_header_preproc"
14771 fi
14772 ac_res=`eval echo '${'$as_ac_Header'}'`
14773                { echo "$as_me:$LINENO: result: $ac_res" >&5
14774 echo "${ECHO_T}$ac_res" >&6; }
14775
14776 fi
14777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14778   cat >>confdefs.h <<_ACEOF
14779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14780 _ACEOF
14781
14782 fi
14783
14784 done
14785
14786
14787
14788
14789
14790
14791
14792 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14793 do
14794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14796   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14799   echo $ECHO_N "(cached) $ECHO_C" >&6
14800 fi
14801 ac_res=`eval echo '${'$as_ac_Header'}'`
14802                { echo "$as_me:$LINENO: result: $ac_res" >&5
14803 echo "${ECHO_T}$ac_res" >&6; }
14804 else
14805   # Is the header compilable?
14806 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14808 cat >conftest.$ac_ext <<_ACEOF
14809 /* confdefs.h.  */
14810 _ACEOF
14811 cat confdefs.h >>conftest.$ac_ext
14812 cat >>conftest.$ac_ext <<_ACEOF
14813 /* end confdefs.h.  */
14814 $ac_includes_default
14815 #include <$ac_header>
14816 _ACEOF
14817 rm -f conftest.$ac_objext
14818 if { (ac_try="$ac_compile"
14819 case "(($ac_try" in
14820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14821   *) ac_try_echo=$ac_try;;
14822 esac
14823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14824   (eval "$ac_compile") 2>conftest.er1
14825   ac_status=$?
14826   grep -v '^ *+' conftest.er1 >conftest.err
14827   rm -f conftest.er1
14828   cat conftest.err >&5
14829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830   (exit $ac_status); } &&
14831          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14832   { (case "(($ac_try" in
14833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14834   *) ac_try_echo=$ac_try;;
14835 esac
14836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14837   (eval "$ac_try") 2>&5
14838   ac_status=$?
14839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840   (exit $ac_status); }; } &&
14841          { ac_try='test -s conftest.$ac_objext'
14842   { (case "(($ac_try" in
14843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14844   *) ac_try_echo=$ac_try;;
14845 esac
14846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14847   (eval "$ac_try") 2>&5
14848   ac_status=$?
14849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850   (exit $ac_status); }; }; then
14851   ac_header_compiler=yes
14852 else
14853   echo "$as_me: failed program was:" >&5
14854 sed 's/^/| /' conftest.$ac_ext >&5
14855
14856         ac_header_compiler=no
14857 fi
14858
14859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14860 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14861 echo "${ECHO_T}$ac_header_compiler" >&6; }
14862
14863 # Is the header present?
14864 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14866 cat >conftest.$ac_ext <<_ACEOF
14867 /* confdefs.h.  */
14868 _ACEOF
14869 cat confdefs.h >>conftest.$ac_ext
14870 cat >>conftest.$ac_ext <<_ACEOF
14871 /* end confdefs.h.  */
14872 #include <$ac_header>
14873 _ACEOF
14874 if { (ac_try="$ac_cpp conftest.$ac_ext"
14875 case "(($ac_try" in
14876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877   *) ac_try_echo=$ac_try;;
14878 esac
14879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14880   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14881   ac_status=$?
14882   grep -v '^ *+' conftest.er1 >conftest.err
14883   rm -f conftest.er1
14884   cat conftest.err >&5
14885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886   (exit $ac_status); } >/dev/null; then
14887   if test -s conftest.err; then
14888     ac_cpp_err=$ac_c_preproc_warn_flag
14889     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14890   else
14891     ac_cpp_err=
14892   fi
14893 else
14894   ac_cpp_err=yes
14895 fi
14896 if test -z "$ac_cpp_err"; then
14897   ac_header_preproc=yes
14898 else
14899   echo "$as_me: failed program was:" >&5
14900 sed 's/^/| /' conftest.$ac_ext >&5
14901
14902   ac_header_preproc=no
14903 fi
14904
14905 rm -f conftest.err conftest.$ac_ext
14906 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14907 echo "${ECHO_T}$ac_header_preproc" >&6; }
14908
14909 # So?  What about this header?
14910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14911   yes:no: )
14912     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14914     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14915 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14916     ac_header_preproc=yes
14917     ;;
14918   no:yes:* )
14919     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14921     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14922 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14923     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14924 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14925     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14926 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14929     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14930 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14931     ( cat <<\_ASBOX
14932 ## ------------------------------ ##
14933 ## Report this to bugs@yourdomain ##
14934 ## ------------------------------ ##
14935 _ASBOX
14936      ) | sed "s/^/$as_me: WARNING:     /" >&2
14937     ;;
14938 esac
14939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14942   echo $ECHO_N "(cached) $ECHO_C" >&6
14943 else
14944   eval "$as_ac_Header=\$ac_header_preproc"
14945 fi
14946 ac_res=`eval echo '${'$as_ac_Header'}'`
14947                { echo "$as_me:$LINENO: result: $ac_res" >&5
14948 echo "${ECHO_T}$ac_res" >&6; }
14949
14950 fi
14951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14952   cat >>confdefs.h <<_ACEOF
14953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14954 _ACEOF
14955
14956 fi
14957
14958 done
14959
14960
14961
14962 for ac_header in utime.h windows.h
14963 do
14964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14966   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14969   echo $ECHO_N "(cached) $ECHO_C" >&6
14970 fi
14971 ac_res=`eval echo '${'$as_ac_Header'}'`
14972                { echo "$as_me:$LINENO: result: $ac_res" >&5
14973 echo "${ECHO_T}$ac_res" >&6; }
14974 else
14975   # Is the header compilable?
14976 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14978 cat >conftest.$ac_ext <<_ACEOF
14979 /* confdefs.h.  */
14980 _ACEOF
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h.  */
14984 $ac_includes_default
14985 #include <$ac_header>
14986 _ACEOF
14987 rm -f conftest.$ac_objext
14988 if { (ac_try="$ac_compile"
14989 case "(($ac_try" in
14990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14991   *) ac_try_echo=$ac_try;;
14992 esac
14993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14994   (eval "$ac_compile") 2>conftest.er1
14995   ac_status=$?
14996   grep -v '^ *+' conftest.er1 >conftest.err
14997   rm -f conftest.er1
14998   cat conftest.err >&5
14999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000   (exit $ac_status); } &&
15001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15002   { (case "(($ac_try" in
15003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15004   *) ac_try_echo=$ac_try;;
15005 esac
15006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15007   (eval "$ac_try") 2>&5
15008   ac_status=$?
15009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010   (exit $ac_status); }; } &&
15011          { ac_try='test -s conftest.$ac_objext'
15012   { (case "(($ac_try" in
15013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014   *) ac_try_echo=$ac_try;;
15015 esac
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017   (eval "$ac_try") 2>&5
15018   ac_status=$?
15019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020   (exit $ac_status); }; }; then
15021   ac_header_compiler=yes
15022 else
15023   echo "$as_me: failed program was:" >&5
15024 sed 's/^/| /' conftest.$ac_ext >&5
15025
15026         ac_header_compiler=no
15027 fi
15028
15029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15030 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15031 echo "${ECHO_T}$ac_header_compiler" >&6; }
15032
15033 # Is the header present?
15034 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15036 cat >conftest.$ac_ext <<_ACEOF
15037 /* confdefs.h.  */
15038 _ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h.  */
15042 #include <$ac_header>
15043 _ACEOF
15044 if { (ac_try="$ac_cpp conftest.$ac_ext"
15045 case "(($ac_try" in
15046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047   *) ac_try_echo=$ac_try;;
15048 esac
15049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15050   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15051   ac_status=$?
15052   grep -v '^ *+' conftest.er1 >conftest.err
15053   rm -f conftest.er1
15054   cat conftest.err >&5
15055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056   (exit $ac_status); } >/dev/null; then
15057   if test -s conftest.err; then
15058     ac_cpp_err=$ac_c_preproc_warn_flag
15059     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15060   else
15061     ac_cpp_err=
15062   fi
15063 else
15064   ac_cpp_err=yes
15065 fi
15066 if test -z "$ac_cpp_err"; then
15067   ac_header_preproc=yes
15068 else
15069   echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15071
15072   ac_header_preproc=no
15073 fi
15074
15075 rm -f conftest.err conftest.$ac_ext
15076 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15077 echo "${ECHO_T}$ac_header_preproc" >&6; }
15078
15079 # So?  What about this header?
15080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15081   yes:no: )
15082     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15083 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15084     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15085 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15086     ac_header_preproc=yes
15087     ;;
15088   no:yes:* )
15089     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15090 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15091     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15092 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15093     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15094 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15095     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15096 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15097     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15099     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15100 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15101     ( cat <<\_ASBOX
15102 ## ------------------------------ ##
15103 ## Report this to bugs@yourdomain ##
15104 ## ------------------------------ ##
15105 _ASBOX
15106      ) | sed "s/^/$as_me: WARNING:     /" >&2
15107     ;;
15108 esac
15109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15112   echo $ECHO_N "(cached) $ECHO_C" >&6
15113 else
15114   eval "$as_ac_Header=\$ac_header_preproc"
15115 fi
15116 ac_res=`eval echo '${'$as_ac_Header'}'`
15117                { echo "$as_me:$LINENO: result: $ac_res" >&5
15118 echo "${ECHO_T}$ac_res" >&6; }
15119
15120 fi
15121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15122   cat >>confdefs.h <<_ACEOF
15123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15124 _ACEOF
15125
15126 fi
15127
15128 done
15129
15130
15131
15132
15133
15134
15135 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15136 do
15137 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15139   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15142   echo $ECHO_N "(cached) $ECHO_C" >&6
15143 fi
15144 ac_res=`eval echo '${'$as_ac_Header'}'`
15145                { echo "$as_me:$LINENO: result: $ac_res" >&5
15146 echo "${ECHO_T}$ac_res" >&6; }
15147 else
15148   # Is the header compilable?
15149 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15151 cat >conftest.$ac_ext <<_ACEOF
15152 /* confdefs.h.  */
15153 _ACEOF
15154 cat confdefs.h >>conftest.$ac_ext
15155 cat >>conftest.$ac_ext <<_ACEOF
15156 /* end confdefs.h.  */
15157 $ac_includes_default
15158 #include <$ac_header>
15159 _ACEOF
15160 rm -f conftest.$ac_objext
15161 if { (ac_try="$ac_compile"
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_compile") 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); } &&
15174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15175   { (case "(($ac_try" in
15176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15177   *) ac_try_echo=$ac_try;;
15178 esac
15179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15180   (eval "$ac_try") 2>&5
15181   ac_status=$?
15182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183   (exit $ac_status); }; } &&
15184          { ac_try='test -s conftest.$ac_objext'
15185   { (case "(($ac_try" in
15186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15187   *) ac_try_echo=$ac_try;;
15188 esac
15189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15190   (eval "$ac_try") 2>&5
15191   ac_status=$?
15192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193   (exit $ac_status); }; }; then
15194   ac_header_compiler=yes
15195 else
15196   echo "$as_me: failed program was:" >&5
15197 sed 's/^/| /' conftest.$ac_ext >&5
15198
15199         ac_header_compiler=no
15200 fi
15201
15202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15204 echo "${ECHO_T}$ac_header_compiler" >&6; }
15205
15206 # Is the header present?
15207 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15209 cat >conftest.$ac_ext <<_ACEOF
15210 /* confdefs.h.  */
15211 _ACEOF
15212 cat confdefs.h >>conftest.$ac_ext
15213 cat >>conftest.$ac_ext <<_ACEOF
15214 /* end confdefs.h.  */
15215 #include <$ac_header>
15216 _ACEOF
15217 if { (ac_try="$ac_cpp conftest.$ac_ext"
15218 case "(($ac_try" in
15219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220   *) ac_try_echo=$ac_try;;
15221 esac
15222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15224   ac_status=$?
15225   grep -v '^ *+' conftest.er1 >conftest.err
15226   rm -f conftest.er1
15227   cat conftest.err >&5
15228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229   (exit $ac_status); } >/dev/null; then
15230   if test -s conftest.err; then
15231     ac_cpp_err=$ac_c_preproc_warn_flag
15232     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15233   else
15234     ac_cpp_err=
15235   fi
15236 else
15237   ac_cpp_err=yes
15238 fi
15239 if test -z "$ac_cpp_err"; then
15240   ac_header_preproc=yes
15241 else
15242   echo "$as_me: failed program was:" >&5
15243 sed 's/^/| /' conftest.$ac_ext >&5
15244
15245   ac_header_preproc=no
15246 fi
15247
15248 rm -f conftest.err conftest.$ac_ext
15249 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15250 echo "${ECHO_T}$ac_header_preproc" >&6; }
15251
15252 # So?  What about this header?
15253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15254   yes:no: )
15255     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15257     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15258 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15259     ac_header_preproc=yes
15260     ;;
15261   no:yes:* )
15262     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15263 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15264     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15265 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15266     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15267 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15268     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15269 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15272     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15273 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15274     ( cat <<\_ASBOX
15275 ## ------------------------------ ##
15276 ## Report this to bugs@yourdomain ##
15277 ## ------------------------------ ##
15278 _ASBOX
15279      ) | sed "s/^/$as_me: WARNING:     /" >&2
15280     ;;
15281 esac
15282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15285   echo $ECHO_N "(cached) $ECHO_C" >&6
15286 else
15287   eval "$as_ac_Header=\$ac_header_preproc"
15288 fi
15289 ac_res=`eval echo '${'$as_ac_Header'}'`
15290                { echo "$as_me:$LINENO: result: $ac_res" >&5
15291 echo "${ECHO_T}$ac_res" >&6; }
15292
15293 fi
15294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15295   cat >>confdefs.h <<_ACEOF
15296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15297 _ACEOF
15298
15299 fi
15300
15301 done
15302
15303
15304
15305
15306
15307 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15308 do
15309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15311   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15314   echo $ECHO_N "(cached) $ECHO_C" >&6
15315 fi
15316 ac_res=`eval echo '${'$as_ac_Header'}'`
15317                { echo "$as_me:$LINENO: result: $ac_res" >&5
15318 echo "${ECHO_T}$ac_res" >&6; }
15319 else
15320   # Is the header compilable?
15321 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15322 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15323 cat >conftest.$ac_ext <<_ACEOF
15324 /* confdefs.h.  */
15325 _ACEOF
15326 cat confdefs.h >>conftest.$ac_ext
15327 cat >>conftest.$ac_ext <<_ACEOF
15328 /* end confdefs.h.  */
15329 $ac_includes_default
15330 #include <$ac_header>
15331 _ACEOF
15332 rm -f conftest.$ac_objext
15333 if { (ac_try="$ac_compile"
15334 case "(($ac_try" in
15335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336   *) ac_try_echo=$ac_try;;
15337 esac
15338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15339   (eval "$ac_compile") 2>conftest.er1
15340   ac_status=$?
15341   grep -v '^ *+' conftest.er1 >conftest.err
15342   rm -f conftest.er1
15343   cat conftest.err >&5
15344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345   (exit $ac_status); } &&
15346          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15347   { (case "(($ac_try" in
15348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349   *) ac_try_echo=$ac_try;;
15350 esac
15351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15352   (eval "$ac_try") 2>&5
15353   ac_status=$?
15354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355   (exit $ac_status); }; } &&
15356          { ac_try='test -s conftest.$ac_objext'
15357   { (case "(($ac_try" in
15358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15359   *) ac_try_echo=$ac_try;;
15360 esac
15361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15362   (eval "$ac_try") 2>&5
15363   ac_status=$?
15364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365   (exit $ac_status); }; }; then
15366   ac_header_compiler=yes
15367 else
15368   echo "$as_me: failed program was:" >&5
15369 sed 's/^/| /' conftest.$ac_ext >&5
15370
15371         ac_header_compiler=no
15372 fi
15373
15374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15375 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15376 echo "${ECHO_T}$ac_header_compiler" >&6; }
15377
15378 # Is the header present?
15379 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15381 cat >conftest.$ac_ext <<_ACEOF
15382 /* confdefs.h.  */
15383 _ACEOF
15384 cat confdefs.h >>conftest.$ac_ext
15385 cat >>conftest.$ac_ext <<_ACEOF
15386 /* end confdefs.h.  */
15387 #include <$ac_header>
15388 _ACEOF
15389 if { (ac_try="$ac_cpp conftest.$ac_ext"
15390 case "(($ac_try" in
15391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392   *) ac_try_echo=$ac_try;;
15393 esac
15394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15395   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15396   ac_status=$?
15397   grep -v '^ *+' conftest.er1 >conftest.err
15398   rm -f conftest.er1
15399   cat conftest.err >&5
15400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401   (exit $ac_status); } >/dev/null; then
15402   if test -s conftest.err; then
15403     ac_cpp_err=$ac_c_preproc_warn_flag
15404     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15405   else
15406     ac_cpp_err=
15407   fi
15408 else
15409   ac_cpp_err=yes
15410 fi
15411 if test -z "$ac_cpp_err"; then
15412   ac_header_preproc=yes
15413 else
15414   echo "$as_me: failed program was:" >&5
15415 sed 's/^/| /' conftest.$ac_ext >&5
15416
15417   ac_header_preproc=no
15418 fi
15419
15420 rm -f conftest.err conftest.$ac_ext
15421 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15422 echo "${ECHO_T}$ac_header_preproc" >&6; }
15423
15424 # So?  What about this header?
15425 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15426   yes:no: )
15427     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15429     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15430 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15431     ac_header_preproc=yes
15432     ;;
15433   no:yes:* )
15434     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15435 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15436     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15437 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15438     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15439 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15440     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15441 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15442     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15443 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15444     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15445 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15446     ( cat <<\_ASBOX
15447 ## ------------------------------ ##
15448 ## Report this to bugs@yourdomain ##
15449 ## ------------------------------ ##
15450 _ASBOX
15451      ) | sed "s/^/$as_me: WARNING:     /" >&2
15452     ;;
15453 esac
15454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15457   echo $ECHO_N "(cached) $ECHO_C" >&6
15458 else
15459   eval "$as_ac_Header=\$ac_header_preproc"
15460 fi
15461 ac_res=`eval echo '${'$as_ac_Header'}'`
15462                { echo "$as_me:$LINENO: result: $ac_res" >&5
15463 echo "${ECHO_T}$ac_res" >&6; }
15464
15465 fi
15466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15467   cat >>confdefs.h <<_ACEOF
15468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15469 _ACEOF
15470
15471 fi
15472
15473 done
15474
15475
15476 for ac_header in valgrind/valgrind.h
15477 do
15478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15480   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15483   echo $ECHO_N "(cached) $ECHO_C" >&6
15484 fi
15485 ac_res=`eval echo '${'$as_ac_Header'}'`
15486                { echo "$as_me:$LINENO: result: $ac_res" >&5
15487 echo "${ECHO_T}$ac_res" >&6; }
15488 else
15489   # Is the header compilable?
15490 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15491 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
15499 #include <$ac_header>
15500 _ACEOF
15501 rm -f conftest.$ac_objext
15502 if { (ac_try="$ac_compile"
15503 case "(($ac_try" in
15504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15505   *) ac_try_echo=$ac_try;;
15506 esac
15507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15508   (eval "$ac_compile") 2>conftest.er1
15509   ac_status=$?
15510   grep -v '^ *+' conftest.er1 >conftest.err
15511   rm -f conftest.er1
15512   cat conftest.err >&5
15513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514   (exit $ac_status); } &&
15515          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15516   { (case "(($ac_try" in
15517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15518   *) ac_try_echo=$ac_try;;
15519 esac
15520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15521   (eval "$ac_try") 2>&5
15522   ac_status=$?
15523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524   (exit $ac_status); }; } &&
15525          { ac_try='test -s conftest.$ac_objext'
15526   { (case "(($ac_try" in
15527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528   *) ac_try_echo=$ac_try;;
15529 esac
15530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15531   (eval "$ac_try") 2>&5
15532   ac_status=$?
15533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534   (exit $ac_status); }; }; then
15535   ac_header_compiler=yes
15536 else
15537   echo "$as_me: failed program was:" >&5
15538 sed 's/^/| /' conftest.$ac_ext >&5
15539
15540         ac_header_compiler=no
15541 fi
15542
15543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15545 echo "${ECHO_T}$ac_header_compiler" >&6; }
15546
15547 # Is the header present?
15548 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15550 cat >conftest.$ac_ext <<_ACEOF
15551 /* confdefs.h.  */
15552 _ACEOF
15553 cat confdefs.h >>conftest.$ac_ext
15554 cat >>conftest.$ac_ext <<_ACEOF
15555 /* end confdefs.h.  */
15556 #include <$ac_header>
15557 _ACEOF
15558 if { (ac_try="$ac_cpp conftest.$ac_ext"
15559 case "(($ac_try" in
15560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15561   *) ac_try_echo=$ac_try;;
15562 esac
15563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15564   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15565   ac_status=$?
15566   grep -v '^ *+' conftest.er1 >conftest.err
15567   rm -f conftest.er1
15568   cat conftest.err >&5
15569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570   (exit $ac_status); } >/dev/null; then
15571   if test -s conftest.err; then
15572     ac_cpp_err=$ac_c_preproc_warn_flag
15573     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15574   else
15575     ac_cpp_err=
15576   fi
15577 else
15578   ac_cpp_err=yes
15579 fi
15580 if test -z "$ac_cpp_err"; then
15581   ac_header_preproc=yes
15582 else
15583   echo "$as_me: failed program was:" >&5
15584 sed 's/^/| /' conftest.$ac_ext >&5
15585
15586   ac_header_preproc=no
15587 fi
15588
15589 rm -f conftest.err conftest.$ac_ext
15590 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15591 echo "${ECHO_T}$ac_header_preproc" >&6; }
15592
15593 # So?  What about this header?
15594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15595   yes:no: )
15596     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15598     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15599 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15600     ac_header_preproc=yes
15601     ;;
15602   no:yes:* )
15603     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15605     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15606 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15607     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15608 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15609     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15610 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15611     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15613     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15614 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15615     ( cat <<\_ASBOX
15616 ## ------------------------------ ##
15617 ## Report this to bugs@yourdomain ##
15618 ## ------------------------------ ##
15619 _ASBOX
15620      ) | sed "s/^/$as_me: WARNING:     /" >&2
15621     ;;
15622 esac
15623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15626   echo $ECHO_N "(cached) $ECHO_C" >&6
15627 else
15628   eval "$as_ac_Header=\$ac_header_preproc"
15629 fi
15630 ac_res=`eval echo '${'$as_ac_Header'}'`
15631                { echo "$as_me:$LINENO: result: $ac_res" >&5
15632 echo "${ECHO_T}$ac_res" >&6; }
15633
15634 fi
15635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15636   cat >>confdefs.h <<_ACEOF
15637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15638 _ACEOF
15639
15640 fi
15641
15642 done
15643
15644
15645 for ac_header in fenv.h
15646 do
15647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15649   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15652   echo $ECHO_N "(cached) $ECHO_C" >&6
15653 fi
15654 ac_res=`eval echo '${'$as_ac_Header'}'`
15655                { echo "$as_me:$LINENO: result: $ac_res" >&5
15656 echo "${ECHO_T}$ac_res" >&6; }
15657 else
15658   # Is the header compilable?
15659 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15661 cat >conftest.$ac_ext <<_ACEOF
15662 /* confdefs.h.  */
15663 _ACEOF
15664 cat confdefs.h >>conftest.$ac_ext
15665 cat >>conftest.$ac_ext <<_ACEOF
15666 /* end confdefs.h.  */
15667 $ac_includes_default
15668 #include <$ac_header>
15669 _ACEOF
15670 rm -f conftest.$ac_objext
15671 if { (ac_try="$ac_compile"
15672 case "(($ac_try" in
15673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15674   *) ac_try_echo=$ac_try;;
15675 esac
15676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15677   (eval "$ac_compile") 2>conftest.er1
15678   ac_status=$?
15679   grep -v '^ *+' conftest.er1 >conftest.err
15680   rm -f conftest.er1
15681   cat conftest.err >&5
15682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683   (exit $ac_status); } &&
15684          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15685   { (case "(($ac_try" in
15686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15687   *) ac_try_echo=$ac_try;;
15688 esac
15689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15690   (eval "$ac_try") 2>&5
15691   ac_status=$?
15692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693   (exit $ac_status); }; } &&
15694          { ac_try='test -s conftest.$ac_objext'
15695   { (case "(($ac_try" in
15696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15697   *) ac_try_echo=$ac_try;;
15698 esac
15699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15700   (eval "$ac_try") 2>&5
15701   ac_status=$?
15702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703   (exit $ac_status); }; }; then
15704   ac_header_compiler=yes
15705 else
15706   echo "$as_me: failed program was:" >&5
15707 sed 's/^/| /' conftest.$ac_ext >&5
15708
15709         ac_header_compiler=no
15710 fi
15711
15712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15714 echo "${ECHO_T}$ac_header_compiler" >&6; }
15715
15716 # Is the header present?
15717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15719 cat >conftest.$ac_ext <<_ACEOF
15720 /* confdefs.h.  */
15721 _ACEOF
15722 cat confdefs.h >>conftest.$ac_ext
15723 cat >>conftest.$ac_ext <<_ACEOF
15724 /* end confdefs.h.  */
15725 #include <$ac_header>
15726 _ACEOF
15727 if { (ac_try="$ac_cpp conftest.$ac_ext"
15728 case "(($ac_try" in
15729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15730   *) ac_try_echo=$ac_try;;
15731 esac
15732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15733   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15734   ac_status=$?
15735   grep -v '^ *+' conftest.er1 >conftest.err
15736   rm -f conftest.er1
15737   cat conftest.err >&5
15738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739   (exit $ac_status); } >/dev/null; then
15740   if test -s conftest.err; then
15741     ac_cpp_err=$ac_c_preproc_warn_flag
15742     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15743   else
15744     ac_cpp_err=
15745   fi
15746 else
15747   ac_cpp_err=yes
15748 fi
15749 if test -z "$ac_cpp_err"; then
15750   ac_header_preproc=yes
15751 else
15752   echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15754
15755   ac_header_preproc=no
15756 fi
15757
15758 rm -f conftest.err conftest.$ac_ext
15759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15760 echo "${ECHO_T}$ac_header_preproc" >&6; }
15761
15762 # So?  What about this header?
15763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15764   yes:no: )
15765     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15766 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15767     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15769     ac_header_preproc=yes
15770     ;;
15771   no:yes:* )
15772     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15773 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15774     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15775 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15776     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15777 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15778     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15779 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15780     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15782     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15783 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15784     ( cat <<\_ASBOX
15785 ## ------------------------------ ##
15786 ## Report this to bugs@yourdomain ##
15787 ## ------------------------------ ##
15788 _ASBOX
15789      ) | sed "s/^/$as_me: WARNING:     /" >&2
15790     ;;
15791 esac
15792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15795   echo $ECHO_N "(cached) $ECHO_C" >&6
15796 else
15797   eval "$as_ac_Header=\$ac_header_preproc"
15798 fi
15799 ac_res=`eval echo '${'$as_ac_Header'}'`
15800                { echo "$as_me:$LINENO: result: $ac_res" >&5
15801 echo "${ECHO_T}$ac_res" >&6; }
15802
15803 fi
15804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15805   cat >>confdefs.h <<_ACEOF
15806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15807 _ACEOF
15808
15809 fi
15810
15811 done
15812
15813 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15814
15815 for ac_header in pthread.h
15816 do
15817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15819   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15822   echo $ECHO_N "(cached) $ECHO_C" >&6
15823 fi
15824 ac_res=`eval echo '${'$as_ac_Header'}'`
15825                { echo "$as_me:$LINENO: result: $ac_res" >&5
15826 echo "${ECHO_T}$ac_res" >&6; }
15827 else
15828   # Is the header compilable?
15829 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15831 cat >conftest.$ac_ext <<_ACEOF
15832 /* confdefs.h.  */
15833 _ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h.  */
15837 $ac_includes_default
15838 #include <$ac_header>
15839 _ACEOF
15840 rm -f conftest.$ac_objext
15841 if { (ac_try="$ac_compile"
15842 case "(($ac_try" in
15843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15844   *) ac_try_echo=$ac_try;;
15845 esac
15846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15847   (eval "$ac_compile") 2>conftest.er1
15848   ac_status=$?
15849   grep -v '^ *+' conftest.er1 >conftest.err
15850   rm -f conftest.er1
15851   cat conftest.err >&5
15852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853   (exit $ac_status); } &&
15854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15855   { (case "(($ac_try" in
15856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15857   *) ac_try_echo=$ac_try;;
15858 esac
15859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15860   (eval "$ac_try") 2>&5
15861   ac_status=$?
15862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863   (exit $ac_status); }; } &&
15864          { ac_try='test -s conftest.$ac_objext'
15865   { (case "(($ac_try" in
15866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867   *) ac_try_echo=$ac_try;;
15868 esac
15869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15870   (eval "$ac_try") 2>&5
15871   ac_status=$?
15872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873   (exit $ac_status); }; }; then
15874   ac_header_compiler=yes
15875 else
15876   echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15878
15879         ac_header_compiler=no
15880 fi
15881
15882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15883 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15884 echo "${ECHO_T}$ac_header_compiler" >&6; }
15885
15886 # Is the header present?
15887 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15889 cat >conftest.$ac_ext <<_ACEOF
15890 /* confdefs.h.  */
15891 _ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h.  */
15895 #include <$ac_header>
15896 _ACEOF
15897 if { (ac_try="$ac_cpp conftest.$ac_ext"
15898 case "(($ac_try" in
15899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15900   *) ac_try_echo=$ac_try;;
15901 esac
15902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15903   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15904   ac_status=$?
15905   grep -v '^ *+' conftest.er1 >conftest.err
15906   rm -f conftest.er1
15907   cat conftest.err >&5
15908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909   (exit $ac_status); } >/dev/null; then
15910   if test -s conftest.err; then
15911     ac_cpp_err=$ac_c_preproc_warn_flag
15912     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15913   else
15914     ac_cpp_err=
15915   fi
15916 else
15917   ac_cpp_err=yes
15918 fi
15919 if test -z "$ac_cpp_err"; then
15920   ac_header_preproc=yes
15921 else
15922   echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15924
15925   ac_header_preproc=no
15926 fi
15927
15928 rm -f conftest.err conftest.$ac_ext
15929 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15930 echo "${ECHO_T}$ac_header_preproc" >&6; }
15931
15932 # So?  What about this header?
15933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15934   yes:no: )
15935     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15936 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15937     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15938 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15939     ac_header_preproc=yes
15940     ;;
15941   no:yes:* )
15942     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15944     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15945 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15946     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15947 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15948     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15949 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15950     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15952     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15953 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15954     ( cat <<\_ASBOX
15955 ## ------------------------------ ##
15956 ## Report this to bugs@yourdomain ##
15957 ## ------------------------------ ##
15958 _ASBOX
15959      ) | sed "s/^/$as_me: WARNING:     /" >&2
15960     ;;
15961 esac
15962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15965   echo $ECHO_N "(cached) $ECHO_C" >&6
15966 else
15967   eval "$as_ac_Header=\$ac_header_preproc"
15968 fi
15969 ac_res=`eval echo '${'$as_ac_Header'}'`
15970                { echo "$as_me:$LINENO: result: $ac_res" >&5
15971 echo "${ECHO_T}$ac_res" >&6; }
15972
15973 fi
15974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15975   cat >>confdefs.h <<_ACEOF
15976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15977 _ACEOF
15978  HAVE_PTHREAD=1
15979
15980 else
15981   HAVE_PTHREAD=0
15982
15983 fi
15984
15985 done
15986
15987 else
15988   HAVE_PTHREAD=0
15989
15990 fi
15991 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
15992
15993 for ac_header in zlib.h
15994 do
15995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15997   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16000   echo $ECHO_N "(cached) $ECHO_C" >&6
16001 fi
16002 ac_res=`eval echo '${'$as_ac_Header'}'`
16003                { echo "$as_me:$LINENO: result: $ac_res" >&5
16004 echo "${ECHO_T}$ac_res" >&6; }
16005 else
16006   # Is the header compilable?
16007 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16009 cat >conftest.$ac_ext <<_ACEOF
16010 /* confdefs.h.  */
16011 _ACEOF
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h.  */
16015 $ac_includes_default
16016 #include <$ac_header>
16017 _ACEOF
16018 rm -f conftest.$ac_objext
16019 if { (ac_try="$ac_compile"
16020 case "(($ac_try" in
16021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022   *) ac_try_echo=$ac_try;;
16023 esac
16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025   (eval "$ac_compile") 2>conftest.er1
16026   ac_status=$?
16027   grep -v '^ *+' conftest.er1 >conftest.err
16028   rm -f conftest.er1
16029   cat conftest.err >&5
16030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031   (exit $ac_status); } &&
16032          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16033   { (case "(($ac_try" in
16034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035   *) ac_try_echo=$ac_try;;
16036 esac
16037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038   (eval "$ac_try") 2>&5
16039   ac_status=$?
16040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041   (exit $ac_status); }; } &&
16042          { ac_try='test -s conftest.$ac_objext'
16043   { (case "(($ac_try" in
16044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16045   *) ac_try_echo=$ac_try;;
16046 esac
16047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16048   (eval "$ac_try") 2>&5
16049   ac_status=$?
16050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051   (exit $ac_status); }; }; then
16052   ac_header_compiler=yes
16053 else
16054   echo "$as_me: failed program was:" >&5
16055 sed 's/^/| /' conftest.$ac_ext >&5
16056
16057         ac_header_compiler=no
16058 fi
16059
16060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16061 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16062 echo "${ECHO_T}$ac_header_compiler" >&6; }
16063
16064 # Is the header present?
16065 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16067 cat >conftest.$ac_ext <<_ACEOF
16068 /* confdefs.h.  */
16069 _ACEOF
16070 cat confdefs.h >>conftest.$ac_ext
16071 cat >>conftest.$ac_ext <<_ACEOF
16072 /* end confdefs.h.  */
16073 #include <$ac_header>
16074 _ACEOF
16075 if { (ac_try="$ac_cpp conftest.$ac_ext"
16076 case "(($ac_try" in
16077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16078   *) ac_try_echo=$ac_try;;
16079 esac
16080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16081   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16082   ac_status=$?
16083   grep -v '^ *+' conftest.er1 >conftest.err
16084   rm -f conftest.er1
16085   cat conftest.err >&5
16086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087   (exit $ac_status); } >/dev/null; then
16088   if test -s conftest.err; then
16089     ac_cpp_err=$ac_c_preproc_warn_flag
16090     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16091   else
16092     ac_cpp_err=
16093   fi
16094 else
16095   ac_cpp_err=yes
16096 fi
16097 if test -z "$ac_cpp_err"; then
16098   ac_header_preproc=yes
16099 else
16100   echo "$as_me: failed program was:" >&5
16101 sed 's/^/| /' conftest.$ac_ext >&5
16102
16103   ac_header_preproc=no
16104 fi
16105
16106 rm -f conftest.err conftest.$ac_ext
16107 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16108 echo "${ECHO_T}$ac_header_preproc" >&6; }
16109
16110 # So?  What about this header?
16111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16112   yes:no: )
16113     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16115     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16117     ac_header_preproc=yes
16118     ;;
16119   no:yes:* )
16120     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16122     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16123 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16124     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16126     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16127 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16128     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16130     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16132     ( cat <<\_ASBOX
16133 ## ------------------------------ ##
16134 ## Report this to bugs@yourdomain ##
16135 ## ------------------------------ ##
16136 _ASBOX
16137      ) | sed "s/^/$as_me: WARNING:     /" >&2
16138     ;;
16139 esac
16140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16143   echo $ECHO_N "(cached) $ECHO_C" >&6
16144 else
16145   eval "$as_ac_Header=\$ac_header_preproc"
16146 fi
16147 ac_res=`eval echo '${'$as_ac_Header'}'`
16148                { echo "$as_me:$LINENO: result: $ac_res" >&5
16149 echo "${ECHO_T}$ac_res" >&6; }
16150
16151 fi
16152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16153   cat >>confdefs.h <<_ACEOF
16154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16155 _ACEOF
16156  HAVE_LIBZ=1
16157
16158 else
16159   HAVE_LIBZ=0
16160
16161 fi
16162
16163 done
16164
16165 else
16166   HAVE_LIBZ=0
16167
16168 fi
16169
16170 if test "$llvm_cv_enable_libffi" = "yes" ; then
16171
16172
16173 for ac_header in ffi.h ffi/ffi.h
16174 do
16175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16177   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16180   echo $ECHO_N "(cached) $ECHO_C" >&6
16181 fi
16182 ac_res=`eval echo '${'$as_ac_Header'}'`
16183                { echo "$as_me:$LINENO: result: $ac_res" >&5
16184 echo "${ECHO_T}$ac_res" >&6; }
16185 else
16186   # Is the header compilable?
16187 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16189 cat >conftest.$ac_ext <<_ACEOF
16190 /* confdefs.h.  */
16191 _ACEOF
16192 cat confdefs.h >>conftest.$ac_ext
16193 cat >>conftest.$ac_ext <<_ACEOF
16194 /* end confdefs.h.  */
16195 $ac_includes_default
16196 #include <$ac_header>
16197 _ACEOF
16198 rm -f conftest.$ac_objext
16199 if { (ac_try="$ac_compile"
16200 case "(($ac_try" in
16201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202   *) ac_try_echo=$ac_try;;
16203 esac
16204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205   (eval "$ac_compile") 2>conftest.er1
16206   ac_status=$?
16207   grep -v '^ *+' conftest.er1 >conftest.err
16208   rm -f conftest.er1
16209   cat conftest.err >&5
16210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211   (exit $ac_status); } &&
16212          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16213   { (case "(($ac_try" in
16214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16215   *) ac_try_echo=$ac_try;;
16216 esac
16217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16218   (eval "$ac_try") 2>&5
16219   ac_status=$?
16220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221   (exit $ac_status); }; } &&
16222          { ac_try='test -s conftest.$ac_objext'
16223   { (case "(($ac_try" in
16224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16225   *) ac_try_echo=$ac_try;;
16226 esac
16227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16228   (eval "$ac_try") 2>&5
16229   ac_status=$?
16230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231   (exit $ac_status); }; }; then
16232   ac_header_compiler=yes
16233 else
16234   echo "$as_me: failed program was:" >&5
16235 sed 's/^/| /' conftest.$ac_ext >&5
16236
16237         ac_header_compiler=no
16238 fi
16239
16240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16241 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16242 echo "${ECHO_T}$ac_header_compiler" >&6; }
16243
16244 # Is the header present?
16245 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16247 cat >conftest.$ac_ext <<_ACEOF
16248 /* confdefs.h.  */
16249 _ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h.  */
16253 #include <$ac_header>
16254 _ACEOF
16255 if { (ac_try="$ac_cpp conftest.$ac_ext"
16256 case "(($ac_try" in
16257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258   *) ac_try_echo=$ac_try;;
16259 esac
16260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16262   ac_status=$?
16263   grep -v '^ *+' conftest.er1 >conftest.err
16264   rm -f conftest.er1
16265   cat conftest.err >&5
16266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267   (exit $ac_status); } >/dev/null; then
16268   if test -s conftest.err; then
16269     ac_cpp_err=$ac_c_preproc_warn_flag
16270     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16271   else
16272     ac_cpp_err=
16273   fi
16274 else
16275   ac_cpp_err=yes
16276 fi
16277 if test -z "$ac_cpp_err"; then
16278   ac_header_preproc=yes
16279 else
16280   echo "$as_me: failed program was:" >&5
16281 sed 's/^/| /' conftest.$ac_ext >&5
16282
16283   ac_header_preproc=no
16284 fi
16285
16286 rm -f conftest.err conftest.$ac_ext
16287 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16288 echo "${ECHO_T}$ac_header_preproc" >&6; }
16289
16290 # So?  What about this header?
16291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16292   yes:no: )
16293     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16297     ac_header_preproc=yes
16298     ;;
16299   no:yes:* )
16300     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16302     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16303 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16304     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16306     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16307 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16308     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16310     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16312     ( cat <<\_ASBOX
16313 ## ------------------------------ ##
16314 ## Report this to bugs@yourdomain ##
16315 ## ------------------------------ ##
16316 _ASBOX
16317      ) | sed "s/^/$as_me: WARNING:     /" >&2
16318     ;;
16319 esac
16320 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16323   echo $ECHO_N "(cached) $ECHO_C" >&6
16324 else
16325   eval "$as_ac_Header=\$ac_header_preproc"
16326 fi
16327 ac_res=`eval echo '${'$as_ac_Header'}'`
16328                { echo "$as_me:$LINENO: result: $ac_res" >&5
16329 echo "${ECHO_T}$ac_res" >&6; }
16330
16331 fi
16332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16333   cat >>confdefs.h <<_ACEOF
16334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16335 _ACEOF
16336
16337 fi
16338
16339 done
16340
16341 fi
16342
16343
16344 for ac_header in CrashReporterClient.h
16345 do
16346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16348   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16351   echo $ECHO_N "(cached) $ECHO_C" >&6
16352 fi
16353 ac_res=`eval echo '${'$as_ac_Header'}'`
16354                { echo "$as_me:$LINENO: result: $ac_res" >&5
16355 echo "${ECHO_T}$ac_res" >&6; }
16356 else
16357   # Is the header compilable?
16358 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16360 cat >conftest.$ac_ext <<_ACEOF
16361 /* confdefs.h.  */
16362 _ACEOF
16363 cat confdefs.h >>conftest.$ac_ext
16364 cat >>conftest.$ac_ext <<_ACEOF
16365 /* end confdefs.h.  */
16366 $ac_includes_default
16367 #include <$ac_header>
16368 _ACEOF
16369 rm -f conftest.$ac_objext
16370 if { (ac_try="$ac_compile"
16371 case "(($ac_try" in
16372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373   *) ac_try_echo=$ac_try;;
16374 esac
16375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16376   (eval "$ac_compile") 2>conftest.er1
16377   ac_status=$?
16378   grep -v '^ *+' conftest.er1 >conftest.err
16379   rm -f conftest.er1
16380   cat conftest.err >&5
16381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382   (exit $ac_status); } &&
16383          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16384   { (case "(($ac_try" in
16385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16386   *) ac_try_echo=$ac_try;;
16387 esac
16388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16389   (eval "$ac_try") 2>&5
16390   ac_status=$?
16391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392   (exit $ac_status); }; } &&
16393          { ac_try='test -s conftest.$ac_objext'
16394   { (case "(($ac_try" in
16395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16396   *) ac_try_echo=$ac_try;;
16397 esac
16398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16399   (eval "$ac_try") 2>&5
16400   ac_status=$?
16401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402   (exit $ac_status); }; }; then
16403   ac_header_compiler=yes
16404 else
16405   echo "$as_me: failed program was:" >&5
16406 sed 's/^/| /' conftest.$ac_ext >&5
16407
16408         ac_header_compiler=no
16409 fi
16410
16411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16412 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16413 echo "${ECHO_T}$ac_header_compiler" >&6; }
16414
16415 # Is the header present?
16416 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16418 cat >conftest.$ac_ext <<_ACEOF
16419 /* confdefs.h.  */
16420 _ACEOF
16421 cat confdefs.h >>conftest.$ac_ext
16422 cat >>conftest.$ac_ext <<_ACEOF
16423 /* end confdefs.h.  */
16424 #include <$ac_header>
16425 _ACEOF
16426 if { (ac_try="$ac_cpp conftest.$ac_ext"
16427 case "(($ac_try" in
16428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429   *) ac_try_echo=$ac_try;;
16430 esac
16431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16432   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16433   ac_status=$?
16434   grep -v '^ *+' conftest.er1 >conftest.err
16435   rm -f conftest.er1
16436   cat conftest.err >&5
16437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438   (exit $ac_status); } >/dev/null; then
16439   if test -s conftest.err; then
16440     ac_cpp_err=$ac_c_preproc_warn_flag
16441     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16442   else
16443     ac_cpp_err=
16444   fi
16445 else
16446   ac_cpp_err=yes
16447 fi
16448 if test -z "$ac_cpp_err"; then
16449   ac_header_preproc=yes
16450 else
16451   echo "$as_me: failed program was:" >&5
16452 sed 's/^/| /' conftest.$ac_ext >&5
16453
16454   ac_header_preproc=no
16455 fi
16456
16457 rm -f conftest.err conftest.$ac_ext
16458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16459 echo "${ECHO_T}$ac_header_preproc" >&6; }
16460
16461 # So?  What about this header?
16462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16463   yes:no: )
16464     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16466     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16468     ac_header_preproc=yes
16469     ;;
16470   no:yes:* )
16471     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16473     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16474 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16475     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16477     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16478 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16479     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16481     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16483     ( cat <<\_ASBOX
16484 ## ------------------------------ ##
16485 ## Report this to bugs@yourdomain ##
16486 ## ------------------------------ ##
16487 _ASBOX
16488      ) | sed "s/^/$as_me: WARNING:     /" >&2
16489     ;;
16490 esac
16491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16494   echo $ECHO_N "(cached) $ECHO_C" >&6
16495 else
16496   eval "$as_ac_Header=\$ac_header_preproc"
16497 fi
16498 ac_res=`eval echo '${'$as_ac_Header'}'`
16499                { echo "$as_me:$LINENO: result: $ac_res" >&5
16500 echo "${ECHO_T}$ac_res" >&6; }
16501
16502 fi
16503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16504   cat >>confdefs.h <<_ACEOF
16505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16506 _ACEOF
16507
16508 fi
16509
16510 done
16511
16512
16513 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16514 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16515 cat >conftest.$ac_ext <<_ACEOF
16516 /* confdefs.h.  */
16517 _ACEOF
16518 cat confdefs.h >>conftest.$ac_ext
16519 cat >>conftest.$ac_ext <<_ACEOF
16520 /* end confdefs.h.  */
16521 extern const char *__crashreporter_info__;
16522       int main() {
16523         __crashreporter_info__ = "test";
16524         return 0;
16525       }
16526
16527 _ACEOF
16528 rm -f conftest.$ac_objext conftest$ac_exeext
16529 if { (ac_try="$ac_link"
16530 case "(($ac_try" in
16531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16532   *) ac_try_echo=$ac_try;;
16533 esac
16534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16535   (eval "$ac_link") 2>conftest.er1
16536   ac_status=$?
16537   grep -v '^ *+' conftest.er1 >conftest.err
16538   rm -f conftest.er1
16539   cat conftest.err >&5
16540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541   (exit $ac_status); } &&
16542          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16552          { ac_try='test -s conftest$ac_exeext'
16553   { (case "(($ac_try" in
16554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555   *) ac_try_echo=$ac_try;;
16556 esac
16557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16558   (eval "$ac_try") 2>&5
16559   ac_status=$?
16560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561   (exit $ac_status); }; }; then
16562   { echo "$as_me:$LINENO: result: yes" >&5
16563 echo "${ECHO_T}yes" >&6; }
16564
16565 cat >>confdefs.h <<\_ACEOF
16566 #define HAVE_CRASHREPORTER_INFO 1
16567 _ACEOF
16568
16569 else
16570   echo "$as_me: failed program was:" >&5
16571 sed 's/^/| /' conftest.$ac_ext >&5
16572
16573         { echo "$as_me:$LINENO: result: no" >&5
16574 echo "${ECHO_T}no" >&6; }
16575
16576 cat >>confdefs.h <<\_ACEOF
16577 #define HAVE_CRASHREPORTER_INFO 0
16578 _ACEOF
16579
16580 fi
16581
16582 rm -f core conftest.err conftest.$ac_objext \
16583       conftest$ac_exeext conftest.$ac_ext
16584
16585
16586
16587
16588   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16589 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16590 if test "${ac_cv_huge_val_sanity+set}" = set; then
16591   echo $ECHO_N "(cached) $ECHO_C" >&6
16592 else
16593
16594     ac_ext=cpp
16595 ac_cpp='$CXXCPP $CPPFLAGS'
16596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16599
16600     ac_save_CXXFLAGS=$CXXFLAGS
16601     CXXFLAGS="$CXXFLAGS -pedantic"
16602     if test "$cross_compiling" = yes; then
16603   ac_cv_huge_val_sanity=yes
16604 else
16605   cat >conftest.$ac_ext <<_ACEOF
16606 /* confdefs.h.  */
16607 _ACEOF
16608 cat confdefs.h >>conftest.$ac_ext
16609 cat >>conftest.$ac_ext <<_ACEOF
16610 /* end confdefs.h.  */
16611 #include <math.h>
16612 int
16613 main ()
16614 {
16615 double x = HUGE_VAL; return x != x;
16616   ;
16617   return 0;
16618 }
16619 _ACEOF
16620 rm -f conftest$ac_exeext
16621 if { (ac_try="$ac_link"
16622 case "(($ac_try" in
16623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16624   *) ac_try_echo=$ac_try;;
16625 esac
16626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16627   (eval "$ac_link") 2>&5
16628   ac_status=$?
16629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16631   { (case "(($ac_try" in
16632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16633   *) ac_try_echo=$ac_try;;
16634 esac
16635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16636   (eval "$ac_try") 2>&5
16637   ac_status=$?
16638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639   (exit $ac_status); }; }; then
16640   ac_cv_huge_val_sanity=yes
16641 else
16642   echo "$as_me: program exited with status $ac_status" >&5
16643 echo "$as_me: failed program was:" >&5
16644 sed 's/^/| /' conftest.$ac_ext >&5
16645
16646 ( exit $ac_status )
16647 ac_cv_huge_val_sanity=no
16648 fi
16649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16650 fi
16651
16652
16653     CXXFLAGS=$ac_save_CXXFLAGS
16654     ac_ext=c
16655 ac_cpp='$CPP $CPPFLAGS'
16656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16659
16660
16661 fi
16662 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16663 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16664   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16665
16666
16667 { echo "$as_me:$LINENO: checking for pid_t" >&5
16668 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16669 if test "${ac_cv_type_pid_t+set}" = set; then
16670   echo $ECHO_N "(cached) $ECHO_C" >&6
16671 else
16672   cat >conftest.$ac_ext <<_ACEOF
16673 /* confdefs.h.  */
16674 _ACEOF
16675 cat confdefs.h >>conftest.$ac_ext
16676 cat >>conftest.$ac_ext <<_ACEOF
16677 /* end confdefs.h.  */
16678 $ac_includes_default
16679 typedef pid_t ac__type_new_;
16680 int
16681 main ()
16682 {
16683 if ((ac__type_new_ *) 0)
16684   return 0;
16685 if (sizeof (ac__type_new_))
16686   return 0;
16687   ;
16688   return 0;
16689 }
16690 _ACEOF
16691 rm -f conftest.$ac_objext
16692 if { (ac_try="$ac_compile"
16693 case "(($ac_try" in
16694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695   *) ac_try_echo=$ac_try;;
16696 esac
16697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698   (eval "$ac_compile") 2>conftest.er1
16699   ac_status=$?
16700   grep -v '^ *+' conftest.er1 >conftest.err
16701   rm -f conftest.er1
16702   cat conftest.err >&5
16703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704   (exit $ac_status); } &&
16705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16706   { (case "(($ac_try" in
16707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708   *) ac_try_echo=$ac_try;;
16709 esac
16710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16711   (eval "$ac_try") 2>&5
16712   ac_status=$?
16713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714   (exit $ac_status); }; } &&
16715          { ac_try='test -s conftest.$ac_objext'
16716   { (case "(($ac_try" in
16717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16718   *) ac_try_echo=$ac_try;;
16719 esac
16720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16721   (eval "$ac_try") 2>&5
16722   ac_status=$?
16723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724   (exit $ac_status); }; }; then
16725   ac_cv_type_pid_t=yes
16726 else
16727   echo "$as_me: failed program was:" >&5
16728 sed 's/^/| /' conftest.$ac_ext >&5
16729
16730         ac_cv_type_pid_t=no
16731 fi
16732
16733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16734 fi
16735 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16736 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16737 if test $ac_cv_type_pid_t = yes; then
16738   :
16739 else
16740
16741 cat >>confdefs.h <<_ACEOF
16742 #define pid_t int
16743 _ACEOF
16744
16745 fi
16746
16747 { echo "$as_me:$LINENO: checking for size_t" >&5
16748 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16749 if test "${ac_cv_type_size_t+set}" = set; then
16750   echo $ECHO_N "(cached) $ECHO_C" >&6
16751 else
16752   cat >conftest.$ac_ext <<_ACEOF
16753 /* confdefs.h.  */
16754 _ACEOF
16755 cat confdefs.h >>conftest.$ac_ext
16756 cat >>conftest.$ac_ext <<_ACEOF
16757 /* end confdefs.h.  */
16758 $ac_includes_default
16759 typedef size_t ac__type_new_;
16760 int
16761 main ()
16762 {
16763 if ((ac__type_new_ *) 0)
16764   return 0;
16765 if (sizeof (ac__type_new_))
16766   return 0;
16767   ;
16768   return 0;
16769 }
16770 _ACEOF
16771 rm -f conftest.$ac_objext
16772 if { (ac_try="$ac_compile"
16773 case "(($ac_try" in
16774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16775   *) ac_try_echo=$ac_try;;
16776 esac
16777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16778   (eval "$ac_compile") 2>conftest.er1
16779   ac_status=$?
16780   grep -v '^ *+' conftest.er1 >conftest.err
16781   rm -f conftest.er1
16782   cat conftest.err >&5
16783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784   (exit $ac_status); } &&
16785          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16786   { (case "(($ac_try" in
16787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16788   *) ac_try_echo=$ac_try;;
16789 esac
16790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16791   (eval "$ac_try") 2>&5
16792   ac_status=$?
16793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794   (exit $ac_status); }; } &&
16795          { ac_try='test -s conftest.$ac_objext'
16796   { (case "(($ac_try" in
16797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16798   *) ac_try_echo=$ac_try;;
16799 esac
16800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16801   (eval "$ac_try") 2>&5
16802   ac_status=$?
16803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804   (exit $ac_status); }; }; then
16805   ac_cv_type_size_t=yes
16806 else
16807   echo "$as_me: failed program was:" >&5
16808 sed 's/^/| /' conftest.$ac_ext >&5
16809
16810         ac_cv_type_size_t=no
16811 fi
16812
16813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16814 fi
16815 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16816 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16817 if test $ac_cv_type_size_t = yes; then
16818   :
16819 else
16820
16821 cat >>confdefs.h <<_ACEOF
16822 #define size_t unsigned int
16823 _ACEOF
16824
16825 fi
16826
16827
16828 cat >>confdefs.h <<_ACEOF
16829 #define RETSIGTYPE void
16830 _ACEOF
16831
16832 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16833 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16834 if test "${ac_cv_struct_tm+set}" = set; then
16835   echo $ECHO_N "(cached) $ECHO_C" >&6
16836 else
16837   cat >conftest.$ac_ext <<_ACEOF
16838 /* confdefs.h.  */
16839 _ACEOF
16840 cat confdefs.h >>conftest.$ac_ext
16841 cat >>conftest.$ac_ext <<_ACEOF
16842 /* end confdefs.h.  */
16843 #include <sys/types.h>
16844 #include <time.h>
16845
16846 int
16847 main ()
16848 {
16849 struct tm *tp; tp->tm_sec;
16850   ;
16851   return 0;
16852 }
16853 _ACEOF
16854 rm -f conftest.$ac_objext
16855 if { (ac_try="$ac_compile"
16856 case "(($ac_try" in
16857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858   *) ac_try_echo=$ac_try;;
16859 esac
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861   (eval "$ac_compile") 2>conftest.er1
16862   ac_status=$?
16863   grep -v '^ *+' conftest.er1 >conftest.err
16864   rm -f conftest.er1
16865   cat conftest.err >&5
16866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867   (exit $ac_status); } &&
16868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16869   { (case "(($ac_try" in
16870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871   *) ac_try_echo=$ac_try;;
16872 esac
16873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16874   (eval "$ac_try") 2>&5
16875   ac_status=$?
16876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877   (exit $ac_status); }; } &&
16878          { ac_try='test -s conftest.$ac_objext'
16879   { (case "(($ac_try" in
16880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881   *) ac_try_echo=$ac_try;;
16882 esac
16883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16884   (eval "$ac_try") 2>&5
16885   ac_status=$?
16886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887   (exit $ac_status); }; }; then
16888   ac_cv_struct_tm=time.h
16889 else
16890   echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16892
16893         ac_cv_struct_tm=sys/time.h
16894 fi
16895
16896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16897 fi
16898 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16899 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16900 if test $ac_cv_struct_tm = sys/time.h; then
16901
16902 cat >>confdefs.h <<\_ACEOF
16903 #define TM_IN_SYS_TIME 1
16904 _ACEOF
16905
16906 fi
16907
16908 { echo "$as_me:$LINENO: checking for int64_t" >&5
16909 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16910 if test "${ac_cv_type_int64_t+set}" = set; then
16911   echo $ECHO_N "(cached) $ECHO_C" >&6
16912 else
16913   cat >conftest.$ac_ext <<_ACEOF
16914 /* confdefs.h.  */
16915 _ACEOF
16916 cat confdefs.h >>conftest.$ac_ext
16917 cat >>conftest.$ac_ext <<_ACEOF
16918 /* end confdefs.h.  */
16919 $ac_includes_default
16920 typedef int64_t ac__type_new_;
16921 int
16922 main ()
16923 {
16924 if ((ac__type_new_ *) 0)
16925   return 0;
16926 if (sizeof (ac__type_new_))
16927   return 0;
16928   ;
16929   return 0;
16930 }
16931 _ACEOF
16932 rm -f conftest.$ac_objext
16933 if { (ac_try="$ac_compile"
16934 case "(($ac_try" in
16935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16936   *) ac_try_echo=$ac_try;;
16937 esac
16938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16939   (eval "$ac_compile") 2>conftest.er1
16940   ac_status=$?
16941   grep -v '^ *+' conftest.er1 >conftest.err
16942   rm -f conftest.er1
16943   cat conftest.err >&5
16944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945   (exit $ac_status); } &&
16946          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16947   { (case "(($ac_try" in
16948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949   *) ac_try_echo=$ac_try;;
16950 esac
16951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952   (eval "$ac_try") 2>&5
16953   ac_status=$?
16954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955   (exit $ac_status); }; } &&
16956          { ac_try='test -s conftest.$ac_objext'
16957   { (case "(($ac_try" in
16958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16959   *) ac_try_echo=$ac_try;;
16960 esac
16961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16962   (eval "$ac_try") 2>&5
16963   ac_status=$?
16964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965   (exit $ac_status); }; }; then
16966   ac_cv_type_int64_t=yes
16967 else
16968   echo "$as_me: failed program was:" >&5
16969 sed 's/^/| /' conftest.$ac_ext >&5
16970
16971         ac_cv_type_int64_t=no
16972 fi
16973
16974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16975 fi
16976 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16977 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16978 if test $ac_cv_type_int64_t = yes; then
16979
16980 cat >>confdefs.h <<_ACEOF
16981 #define HAVE_INT64_T 1
16982 _ACEOF
16983
16984
16985 else
16986   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16987 echo "$as_me: error: Type int64_t required but not found" >&2;}
16988    { (exit 1); exit 1; }; }
16989 fi
16990
16991 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16992 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16993 if test "${ac_cv_type_uint64_t+set}" = set; then
16994   echo $ECHO_N "(cached) $ECHO_C" >&6
16995 else
16996   cat >conftest.$ac_ext <<_ACEOF
16997 /* confdefs.h.  */
16998 _ACEOF
16999 cat confdefs.h >>conftest.$ac_ext
17000 cat >>conftest.$ac_ext <<_ACEOF
17001 /* end confdefs.h.  */
17002 $ac_includes_default
17003 typedef uint64_t ac__type_new_;
17004 int
17005 main ()
17006 {
17007 if ((ac__type_new_ *) 0)
17008   return 0;
17009 if (sizeof (ac__type_new_))
17010   return 0;
17011   ;
17012   return 0;
17013 }
17014 _ACEOF
17015 rm -f conftest.$ac_objext
17016 if { (ac_try="$ac_compile"
17017 case "(($ac_try" in
17018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019   *) ac_try_echo=$ac_try;;
17020 esac
17021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17022   (eval "$ac_compile") 2>conftest.er1
17023   ac_status=$?
17024   grep -v '^ *+' conftest.er1 >conftest.err
17025   rm -f conftest.er1
17026   cat conftest.err >&5
17027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028   (exit $ac_status); } &&
17029          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17030   { (case "(($ac_try" in
17031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032   *) ac_try_echo=$ac_try;;
17033 esac
17034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035   (eval "$ac_try") 2>&5
17036   ac_status=$?
17037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038   (exit $ac_status); }; } &&
17039          { ac_try='test -s conftest.$ac_objext'
17040   { (case "(($ac_try" in
17041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042   *) ac_try_echo=$ac_try;;
17043 esac
17044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17045   (eval "$ac_try") 2>&5
17046   ac_status=$?
17047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048   (exit $ac_status); }; }; then
17049   ac_cv_type_uint64_t=yes
17050 else
17051   echo "$as_me: failed program was:" >&5
17052 sed 's/^/| /' conftest.$ac_ext >&5
17053
17054         ac_cv_type_uint64_t=no
17055 fi
17056
17057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17058 fi
17059 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17060 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17061 if test $ac_cv_type_uint64_t = yes; then
17062
17063 cat >>confdefs.h <<_ACEOF
17064 #define HAVE_UINT64_T 1
17065 _ACEOF
17066
17067
17068 else
17069   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17070 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17071 if test "${ac_cv_type_u_int64_t+set}" = set; then
17072   echo $ECHO_N "(cached) $ECHO_C" >&6
17073 else
17074   cat >conftest.$ac_ext <<_ACEOF
17075 /* confdefs.h.  */
17076 _ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h.  */
17080 $ac_includes_default
17081 typedef u_int64_t ac__type_new_;
17082 int
17083 main ()
17084 {
17085 if ((ac__type_new_ *) 0)
17086   return 0;
17087 if (sizeof (ac__type_new_))
17088   return 0;
17089   ;
17090   return 0;
17091 }
17092 _ACEOF
17093 rm -f conftest.$ac_objext
17094 if { (ac_try="$ac_compile"
17095 case "(($ac_try" in
17096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17097   *) ac_try_echo=$ac_try;;
17098 esac
17099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17100   (eval "$ac_compile") 2>conftest.er1
17101   ac_status=$?
17102   grep -v '^ *+' conftest.er1 >conftest.err
17103   rm -f conftest.er1
17104   cat conftest.err >&5
17105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106   (exit $ac_status); } &&
17107          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17108   { (case "(($ac_try" in
17109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17110   *) ac_try_echo=$ac_try;;
17111 esac
17112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17113   (eval "$ac_try") 2>&5
17114   ac_status=$?
17115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116   (exit $ac_status); }; } &&
17117          { ac_try='test -s conftest.$ac_objext'
17118   { (case "(($ac_try" in
17119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17120   *) ac_try_echo=$ac_try;;
17121 esac
17122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17123   (eval "$ac_try") 2>&5
17124   ac_status=$?
17125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126   (exit $ac_status); }; }; then
17127   ac_cv_type_u_int64_t=yes
17128 else
17129   echo "$as_me: failed program was:" >&5
17130 sed 's/^/| /' conftest.$ac_ext >&5
17131
17132         ac_cv_type_u_int64_t=no
17133 fi
17134
17135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17136 fi
17137 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17138 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17139 if test $ac_cv_type_u_int64_t = yes; then
17140
17141 cat >>confdefs.h <<_ACEOF
17142 #define HAVE_U_INT64_T 1
17143 _ACEOF
17144
17145
17146 else
17147   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17148 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17149    { (exit 1); exit 1; }; }
17150 fi
17151
17152 fi
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17164 do
17165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17166 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17168 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17169   echo $ECHO_N "(cached) $ECHO_C" >&6
17170 else
17171   cat >conftest.$ac_ext <<_ACEOF
17172 /* confdefs.h.  */
17173 _ACEOF
17174 cat confdefs.h >>conftest.$ac_ext
17175 cat >>conftest.$ac_ext <<_ACEOF
17176 /* end confdefs.h.  */
17177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17178    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17179 #define $ac_func innocuous_$ac_func
17180
17181 /* System header to define __stub macros and hopefully few prototypes,
17182     which can conflict with char $ac_func (); below.
17183     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17184     <limits.h> exists even on freestanding compilers.  */
17185
17186 #ifdef __STDC__
17187 # include <limits.h>
17188 #else
17189 # include <assert.h>
17190 #endif
17191
17192 #undef $ac_func
17193
17194 /* Override any GCC internal prototype to avoid an error.
17195    Use char because int might match the return type of a GCC
17196    builtin and then its argument prototype would still apply.  */
17197 #ifdef __cplusplus
17198 extern "C"
17199 #endif
17200 char $ac_func ();
17201 /* The GNU C library defines this for functions which it implements
17202     to always fail with ENOSYS.  Some functions are actually named
17203     something starting with __ and the normal name is an alias.  */
17204 #if defined __stub_$ac_func || defined __stub___$ac_func
17205 choke me
17206 #endif
17207
17208 int
17209 main ()
17210 {
17211 return $ac_func ();
17212   ;
17213   return 0;
17214 }
17215 _ACEOF
17216 rm -f conftest.$ac_objext conftest$ac_exeext
17217 if { (ac_try="$ac_link"
17218 case "(($ac_try" in
17219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220   *) ac_try_echo=$ac_try;;
17221 esac
17222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223   (eval "$ac_link") 2>conftest.er1
17224   ac_status=$?
17225   grep -v '^ *+' conftest.er1 >conftest.err
17226   rm -f conftest.er1
17227   cat conftest.err >&5
17228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229   (exit $ac_status); } &&
17230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17231   { (case "(($ac_try" in
17232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233   *) ac_try_echo=$ac_try;;
17234 esac
17235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17236   (eval "$ac_try") 2>&5
17237   ac_status=$?
17238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239   (exit $ac_status); }; } &&
17240          { ac_try='test -s conftest$ac_exeext'
17241   { (case "(($ac_try" in
17242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17243   *) ac_try_echo=$ac_try;;
17244 esac
17245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17246   (eval "$ac_try") 2>&5
17247   ac_status=$?
17248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249   (exit $ac_status); }; }; then
17250   eval "$as_ac_var=yes"
17251 else
17252   echo "$as_me: failed program was:" >&5
17253 sed 's/^/| /' conftest.$ac_ext >&5
17254
17255         eval "$as_ac_var=no"
17256 fi
17257
17258 rm -f core conftest.err conftest.$ac_objext \
17259       conftest$ac_exeext conftest.$ac_ext
17260 fi
17261 ac_res=`eval echo '${'$as_ac_var'}'`
17262                { echo "$as_me:$LINENO: result: $ac_res" >&5
17263 echo "${ECHO_T}$ac_res" >&6; }
17264 if test `eval echo '${'$as_ac_var'}'` = yes; then
17265   cat >>confdefs.h <<_ACEOF
17266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17267 _ACEOF
17268
17269 fi
17270 done
17271
17272
17273
17274
17275
17276 for ac_func in powf fmodf strtof round
17277 do
17278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17279 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17282   echo $ECHO_N "(cached) $ECHO_C" >&6
17283 else
17284   cat >conftest.$ac_ext <<_ACEOF
17285 /* confdefs.h.  */
17286 _ACEOF
17287 cat confdefs.h >>conftest.$ac_ext
17288 cat >>conftest.$ac_ext <<_ACEOF
17289 /* end confdefs.h.  */
17290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17291    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17292 #define $ac_func innocuous_$ac_func
17293
17294 /* System header to define __stub macros and hopefully few prototypes,
17295     which can conflict with char $ac_func (); below.
17296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17297     <limits.h> exists even on freestanding compilers.  */
17298
17299 #ifdef __STDC__
17300 # include <limits.h>
17301 #else
17302 # include <assert.h>
17303 #endif
17304
17305 #undef $ac_func
17306
17307 /* Override any GCC internal prototype to avoid an error.
17308    Use char because int might match the return type of a GCC
17309    builtin and then its argument prototype would still apply.  */
17310 #ifdef __cplusplus
17311 extern "C"
17312 #endif
17313 char $ac_func ();
17314 /* The GNU C library defines this for functions which it implements
17315     to always fail with ENOSYS.  Some functions are actually named
17316     something starting with __ and the normal name is an alias.  */
17317 #if defined __stub_$ac_func || defined __stub___$ac_func
17318 choke me
17319 #endif
17320
17321 int
17322 main ()
17323 {
17324 return $ac_func ();
17325   ;
17326   return 0;
17327 }
17328 _ACEOF
17329 rm -f conftest.$ac_objext conftest$ac_exeext
17330 if { (ac_try="$ac_link"
17331 case "(($ac_try" in
17332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333   *) ac_try_echo=$ac_try;;
17334 esac
17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336   (eval "$ac_link") 2>conftest.er1
17337   ac_status=$?
17338   grep -v '^ *+' conftest.er1 >conftest.err
17339   rm -f conftest.er1
17340   cat conftest.err >&5
17341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342   (exit $ac_status); } &&
17343          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17344   { (case "(($ac_try" in
17345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17346   *) ac_try_echo=$ac_try;;
17347 esac
17348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17349   (eval "$ac_try") 2>&5
17350   ac_status=$?
17351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352   (exit $ac_status); }; } &&
17353          { ac_try='test -s conftest$ac_exeext'
17354   { (case "(($ac_try" in
17355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356   *) ac_try_echo=$ac_try;;
17357 esac
17358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359   (eval "$ac_try") 2>&5
17360   ac_status=$?
17361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362   (exit $ac_status); }; }; then
17363   eval "$as_ac_var=yes"
17364 else
17365   echo "$as_me: failed program was:" >&5
17366 sed 's/^/| /' conftest.$ac_ext >&5
17367
17368         eval "$as_ac_var=no"
17369 fi
17370
17371 rm -f core conftest.err conftest.$ac_objext \
17372       conftest$ac_exeext conftest.$ac_ext
17373 fi
17374 ac_res=`eval echo '${'$as_ac_var'}'`
17375                { echo "$as_me:$LINENO: result: $ac_res" >&5
17376 echo "${ECHO_T}$ac_res" >&6; }
17377 if test `eval echo '${'$as_ac_var'}'` = yes; then
17378   cat >>confdefs.h <<_ACEOF
17379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17380 _ACEOF
17381
17382 fi
17383 done
17384
17385
17386
17387
17388
17389
17390 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17391 do
17392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17393 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17396   echo $ECHO_N "(cached) $ECHO_C" >&6
17397 else
17398   cat >conftest.$ac_ext <<_ACEOF
17399 /* confdefs.h.  */
17400 _ACEOF
17401 cat confdefs.h >>conftest.$ac_ext
17402 cat >>conftest.$ac_ext <<_ACEOF
17403 /* end confdefs.h.  */
17404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17405    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17406 #define $ac_func innocuous_$ac_func
17407
17408 /* System header to define __stub macros and hopefully few prototypes,
17409     which can conflict with char $ac_func (); below.
17410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17411     <limits.h> exists even on freestanding compilers.  */
17412
17413 #ifdef __STDC__
17414 # include <limits.h>
17415 #else
17416 # include <assert.h>
17417 #endif
17418
17419 #undef $ac_func
17420
17421 /* Override any GCC internal prototype to avoid an error.
17422    Use char because int might match the return type of a GCC
17423    builtin and then its argument prototype would still apply.  */
17424 #ifdef __cplusplus
17425 extern "C"
17426 #endif
17427 char $ac_func ();
17428 /* The GNU C library defines this for functions which it implements
17429     to always fail with ENOSYS.  Some functions are actually named
17430     something starting with __ and the normal name is an alias.  */
17431 #if defined __stub_$ac_func || defined __stub___$ac_func
17432 choke me
17433 #endif
17434
17435 int
17436 main ()
17437 {
17438 return $ac_func ();
17439   ;
17440   return 0;
17441 }
17442 _ACEOF
17443 rm -f conftest.$ac_objext conftest$ac_exeext
17444 if { (ac_try="$ac_link"
17445 case "(($ac_try" in
17446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447   *) ac_try_echo=$ac_try;;
17448 esac
17449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17450   (eval "$ac_link") 2>conftest.er1
17451   ac_status=$?
17452   grep -v '^ *+' conftest.er1 >conftest.err
17453   rm -f conftest.er1
17454   cat conftest.err >&5
17455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456   (exit $ac_status); } &&
17457          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17458   { (case "(($ac_try" in
17459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17460   *) ac_try_echo=$ac_try;;
17461 esac
17462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17463   (eval "$ac_try") 2>&5
17464   ac_status=$?
17465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466   (exit $ac_status); }; } &&
17467          { ac_try='test -s conftest$ac_exeext'
17468   { (case "(($ac_try" in
17469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470   *) ac_try_echo=$ac_try;;
17471 esac
17472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473   (eval "$ac_try") 2>&5
17474   ac_status=$?
17475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476   (exit $ac_status); }; }; then
17477   eval "$as_ac_var=yes"
17478 else
17479   echo "$as_me: failed program was:" >&5
17480 sed 's/^/| /' conftest.$ac_ext >&5
17481
17482         eval "$as_ac_var=no"
17483 fi
17484
17485 rm -f core conftest.err conftest.$ac_objext \
17486       conftest$ac_exeext conftest.$ac_ext
17487 fi
17488 ac_res=`eval echo '${'$as_ac_var'}'`
17489                { echo "$as_me:$LINENO: result: $ac_res" >&5
17490 echo "${ECHO_T}$ac_res" >&6; }
17491 if test `eval echo '${'$as_ac_var'}'` = yes; then
17492   cat >>confdefs.h <<_ACEOF
17493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17494 _ACEOF
17495
17496 fi
17497 done
17498
17499
17500
17501
17502 for ac_func in isatty mkdtemp mkstemp
17503 do
17504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17505 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17508   echo $ECHO_N "(cached) $ECHO_C" >&6
17509 else
17510   cat >conftest.$ac_ext <<_ACEOF
17511 /* confdefs.h.  */
17512 _ACEOF
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h.  */
17516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17517    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17518 #define $ac_func innocuous_$ac_func
17519
17520 /* System header to define __stub macros and hopefully few prototypes,
17521     which can conflict with char $ac_func (); below.
17522     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17523     <limits.h> exists even on freestanding compilers.  */
17524
17525 #ifdef __STDC__
17526 # include <limits.h>
17527 #else
17528 # include <assert.h>
17529 #endif
17530
17531 #undef $ac_func
17532
17533 /* Override any GCC internal prototype to avoid an error.
17534    Use char because int might match the return type of a GCC
17535    builtin and then its argument prototype would still apply.  */
17536 #ifdef __cplusplus
17537 extern "C"
17538 #endif
17539 char $ac_func ();
17540 /* The GNU C library defines this for functions which it implements
17541     to always fail with ENOSYS.  Some functions are actually named
17542     something starting with __ and the normal name is an alias.  */
17543 #if defined __stub_$ac_func || defined __stub___$ac_func
17544 choke me
17545 #endif
17546
17547 int
17548 main ()
17549 {
17550 return $ac_func ();
17551   ;
17552   return 0;
17553 }
17554 _ACEOF
17555 rm -f conftest.$ac_objext conftest$ac_exeext
17556 if { (ac_try="$ac_link"
17557 case "(($ac_try" in
17558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17559   *) ac_try_echo=$ac_try;;
17560 esac
17561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17562   (eval "$ac_link") 2>conftest.er1
17563   ac_status=$?
17564   grep -v '^ *+' conftest.er1 >conftest.err
17565   rm -f conftest.er1
17566   cat conftest.err >&5
17567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568   (exit $ac_status); } &&
17569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17570   { (case "(($ac_try" in
17571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572   *) ac_try_echo=$ac_try;;
17573 esac
17574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575   (eval "$ac_try") 2>&5
17576   ac_status=$?
17577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578   (exit $ac_status); }; } &&
17579          { ac_try='test -s conftest$ac_exeext'
17580   { (case "(($ac_try" in
17581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17582   *) ac_try_echo=$ac_try;;
17583 esac
17584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17585   (eval "$ac_try") 2>&5
17586   ac_status=$?
17587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588   (exit $ac_status); }; }; then
17589   eval "$as_ac_var=yes"
17590 else
17591   echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17593
17594         eval "$as_ac_var=no"
17595 fi
17596
17597 rm -f core conftest.err conftest.$ac_objext \
17598       conftest$ac_exeext conftest.$ac_ext
17599 fi
17600 ac_res=`eval echo '${'$as_ac_var'}'`
17601                { echo "$as_me:$LINENO: result: $ac_res" >&5
17602 echo "${ECHO_T}$ac_res" >&6; }
17603 if test `eval echo '${'$as_ac_var'}'` = yes; then
17604   cat >>confdefs.h <<_ACEOF
17605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17606 _ACEOF
17607
17608 fi
17609 done
17610
17611
17612
17613
17614
17615
17616
17617 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17618 do
17619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17620 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17622 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17623   echo $ECHO_N "(cached) $ECHO_C" >&6
17624 else
17625   cat >conftest.$ac_ext <<_ACEOF
17626 /* confdefs.h.  */
17627 _ACEOF
17628 cat confdefs.h >>conftest.$ac_ext
17629 cat >>conftest.$ac_ext <<_ACEOF
17630 /* end confdefs.h.  */
17631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17632    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17633 #define $ac_func innocuous_$ac_func
17634
17635 /* System header to define __stub macros and hopefully few prototypes,
17636     which can conflict with char $ac_func (); below.
17637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17638     <limits.h> exists even on freestanding compilers.  */
17639
17640 #ifdef __STDC__
17641 # include <limits.h>
17642 #else
17643 # include <assert.h>
17644 #endif
17645
17646 #undef $ac_func
17647
17648 /* Override any GCC internal prototype to avoid an error.
17649    Use char because int might match the return type of a GCC
17650    builtin and then its argument prototype would still apply.  */
17651 #ifdef __cplusplus
17652 extern "C"
17653 #endif
17654 char $ac_func ();
17655 /* The GNU C library defines this for functions which it implements
17656     to always fail with ENOSYS.  Some functions are actually named
17657     something starting with __ and the normal name is an alias.  */
17658 #if defined __stub_$ac_func || defined __stub___$ac_func
17659 choke me
17660 #endif
17661
17662 int
17663 main ()
17664 {
17665 return $ac_func ();
17666   ;
17667   return 0;
17668 }
17669 _ACEOF
17670 rm -f conftest.$ac_objext conftest$ac_exeext
17671 if { (ac_try="$ac_link"
17672 case "(($ac_try" in
17673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17674   *) ac_try_echo=$ac_try;;
17675 esac
17676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17677   (eval "$ac_link") 2>conftest.er1
17678   ac_status=$?
17679   grep -v '^ *+' conftest.er1 >conftest.err
17680   rm -f conftest.er1
17681   cat conftest.err >&5
17682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683   (exit $ac_status); } &&
17684          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17685   { (case "(($ac_try" in
17686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17687   *) ac_try_echo=$ac_try;;
17688 esac
17689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17690   (eval "$ac_try") 2>&5
17691   ac_status=$?
17692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693   (exit $ac_status); }; } &&
17694          { ac_try='test -s conftest$ac_exeext'
17695   { (case "(($ac_try" in
17696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17697   *) ac_try_echo=$ac_try;;
17698 esac
17699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17700   (eval "$ac_try") 2>&5
17701   ac_status=$?
17702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703   (exit $ac_status); }; }; then
17704   eval "$as_ac_var=yes"
17705 else
17706   echo "$as_me: failed program was:" >&5
17707 sed 's/^/| /' conftest.$ac_ext >&5
17708
17709         eval "$as_ac_var=no"
17710 fi
17711
17712 rm -f core conftest.err conftest.$ac_objext \
17713       conftest$ac_exeext conftest.$ac_ext
17714 fi
17715 ac_res=`eval echo '${'$as_ac_var'}'`
17716                { echo "$as_me:$LINENO: result: $ac_res" >&5
17717 echo "${ECHO_T}$ac_res" >&6; }
17718 if test `eval echo '${'$as_ac_var'}'` = yes; then
17719   cat >>confdefs.h <<_ACEOF
17720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17721 _ACEOF
17722
17723 fi
17724 done
17725
17726
17727
17728
17729 for ac_func in strerror strerror_r setenv
17730 do
17731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17732 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17734 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17735   echo $ECHO_N "(cached) $ECHO_C" >&6
17736 else
17737   cat >conftest.$ac_ext <<_ACEOF
17738 /* confdefs.h.  */
17739 _ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h.  */
17743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17744    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17745 #define $ac_func innocuous_$ac_func
17746
17747 /* System header to define __stub macros and hopefully few prototypes,
17748     which can conflict with char $ac_func (); below.
17749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17750     <limits.h> exists even on freestanding compilers.  */
17751
17752 #ifdef __STDC__
17753 # include <limits.h>
17754 #else
17755 # include <assert.h>
17756 #endif
17757
17758 #undef $ac_func
17759
17760 /* Override any GCC internal prototype to avoid an error.
17761    Use char because int might match the return type of a GCC
17762    builtin and then its argument prototype would still apply.  */
17763 #ifdef __cplusplus
17764 extern "C"
17765 #endif
17766 char $ac_func ();
17767 /* The GNU C library defines this for functions which it implements
17768     to always fail with ENOSYS.  Some functions are actually named
17769     something starting with __ and the normal name is an alias.  */
17770 #if defined __stub_$ac_func || defined __stub___$ac_func
17771 choke me
17772 #endif
17773
17774 int
17775 main ()
17776 {
17777 return $ac_func ();
17778   ;
17779   return 0;
17780 }
17781 _ACEOF
17782 rm -f conftest.$ac_objext conftest$ac_exeext
17783 if { (ac_try="$ac_link"
17784 case "(($ac_try" in
17785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17786   *) ac_try_echo=$ac_try;;
17787 esac
17788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17789   (eval "$ac_link") 2>conftest.er1
17790   ac_status=$?
17791   grep -v '^ *+' conftest.er1 >conftest.err
17792   rm -f conftest.er1
17793   cat conftest.err >&5
17794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795   (exit $ac_status); } &&
17796          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17797   { (case "(($ac_try" in
17798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17799   *) ac_try_echo=$ac_try;;
17800 esac
17801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17802   (eval "$ac_try") 2>&5
17803   ac_status=$?
17804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805   (exit $ac_status); }; } &&
17806          { ac_try='test -s conftest$ac_exeext'
17807   { (case "(($ac_try" in
17808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17809   *) ac_try_echo=$ac_try;;
17810 esac
17811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17812   (eval "$ac_try") 2>&5
17813   ac_status=$?
17814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815   (exit $ac_status); }; }; then
17816   eval "$as_ac_var=yes"
17817 else
17818   echo "$as_me: failed program was:" >&5
17819 sed 's/^/| /' conftest.$ac_ext >&5
17820
17821         eval "$as_ac_var=no"
17822 fi
17823
17824 rm -f core conftest.err conftest.$ac_objext \
17825       conftest$ac_exeext conftest.$ac_ext
17826 fi
17827 ac_res=`eval echo '${'$as_ac_var'}'`
17828                { echo "$as_me:$LINENO: result: $ac_res" >&5
17829 echo "${ECHO_T}$ac_res" >&6; }
17830 if test `eval echo '${'$as_ac_var'}'` = yes; then
17831   cat >>confdefs.h <<_ACEOF
17832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17833 _ACEOF
17834
17835 fi
17836 done
17837
17838
17839
17840
17841
17842 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17843 do
17844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17845 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17848   echo $ECHO_N "(cached) $ECHO_C" >&6
17849 else
17850   cat >conftest.$ac_ext <<_ACEOF
17851 /* confdefs.h.  */
17852 _ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h.  */
17856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17858 #define $ac_func innocuous_$ac_func
17859
17860 /* System header to define __stub macros and hopefully few prototypes,
17861     which can conflict with char $ac_func (); below.
17862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17863     <limits.h> exists even on freestanding compilers.  */
17864
17865 #ifdef __STDC__
17866 # include <limits.h>
17867 #else
17868 # include <assert.h>
17869 #endif
17870
17871 #undef $ac_func
17872
17873 /* Override any GCC internal prototype to avoid an error.
17874    Use char because int might match the return type of a GCC
17875    builtin and then its argument prototype would still apply.  */
17876 #ifdef __cplusplus
17877 extern "C"
17878 #endif
17879 char $ac_func ();
17880 /* The GNU C library defines this for functions which it implements
17881     to always fail with ENOSYS.  Some functions are actually named
17882     something starting with __ and the normal name is an alias.  */
17883 #if defined __stub_$ac_func || defined __stub___$ac_func
17884 choke me
17885 #endif
17886
17887 int
17888 main ()
17889 {
17890 return $ac_func ();
17891   ;
17892   return 0;
17893 }
17894 _ACEOF
17895 rm -f conftest.$ac_objext conftest$ac_exeext
17896 if { (ac_try="$ac_link"
17897 case "(($ac_try" in
17898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17899   *) ac_try_echo=$ac_try;;
17900 esac
17901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17902   (eval "$ac_link") 2>conftest.er1
17903   ac_status=$?
17904   grep -v '^ *+' conftest.er1 >conftest.err
17905   rm -f conftest.er1
17906   cat conftest.err >&5
17907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908   (exit $ac_status); } &&
17909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17910   { (case "(($ac_try" in
17911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912   *) ac_try_echo=$ac_try;;
17913 esac
17914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915   (eval "$ac_try") 2>&5
17916   ac_status=$?
17917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918   (exit $ac_status); }; } &&
17919          { ac_try='test -s conftest$ac_exeext'
17920   { (case "(($ac_try" in
17921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17922   *) ac_try_echo=$ac_try;;
17923 esac
17924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17925   (eval "$ac_try") 2>&5
17926   ac_status=$?
17927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928   (exit $ac_status); }; }; then
17929   eval "$as_ac_var=yes"
17930 else
17931   echo "$as_me: failed program was:" >&5
17932 sed 's/^/| /' conftest.$ac_ext >&5
17933
17934         eval "$as_ac_var=no"
17935 fi
17936
17937 rm -f core conftest.err conftest.$ac_objext \
17938       conftest$ac_exeext conftest.$ac_ext
17939 fi
17940 ac_res=`eval echo '${'$as_ac_var'}'`
17941                { echo "$as_me:$LINENO: result: $ac_res" >&5
17942 echo "${ECHO_T}$ac_res" >&6; }
17943 if test `eval echo '${'$as_ac_var'}'` = yes; then
17944   cat >>confdefs.h <<_ACEOF
17945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17946 _ACEOF
17947
17948 fi
17949 done
17950
17951
17952
17953
17954
17955
17956 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17957 do
17958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17959 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17961 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17962   echo $ECHO_N "(cached) $ECHO_C" >&6
17963 else
17964   cat >conftest.$ac_ext <<_ACEOF
17965 /* confdefs.h.  */
17966 _ACEOF
17967 cat confdefs.h >>conftest.$ac_ext
17968 cat >>conftest.$ac_ext <<_ACEOF
17969 /* end confdefs.h.  */
17970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17972 #define $ac_func innocuous_$ac_func
17973
17974 /* System header to define __stub macros and hopefully few prototypes,
17975     which can conflict with char $ac_func (); below.
17976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17977     <limits.h> exists even on freestanding compilers.  */
17978
17979 #ifdef __STDC__
17980 # include <limits.h>
17981 #else
17982 # include <assert.h>
17983 #endif
17984
17985 #undef $ac_func
17986
17987 /* Override any GCC internal prototype to avoid an error.
17988    Use char because int might match the return type of a GCC
17989    builtin and then its argument prototype would still apply.  */
17990 #ifdef __cplusplus
17991 extern "C"
17992 #endif
17993 char $ac_func ();
17994 /* The GNU C library defines this for functions which it implements
17995     to always fail with ENOSYS.  Some functions are actually named
17996     something starting with __ and the normal name is an alias.  */
17997 #if defined __stub_$ac_func || defined __stub___$ac_func
17998 choke me
17999 #endif
18000
18001 int
18002 main ()
18003 {
18004 return $ac_func ();
18005   ;
18006   return 0;
18007 }
18008 _ACEOF
18009 rm -f conftest.$ac_objext conftest$ac_exeext
18010 if { (ac_try="$ac_link"
18011 case "(($ac_try" in
18012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013   *) ac_try_echo=$ac_try;;
18014 esac
18015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016   (eval "$ac_link") 2>conftest.er1
18017   ac_status=$?
18018   grep -v '^ *+' conftest.er1 >conftest.err
18019   rm -f conftest.er1
18020   cat conftest.err >&5
18021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022   (exit $ac_status); } &&
18023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18024   { (case "(($ac_try" in
18025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18026   *) ac_try_echo=$ac_try;;
18027 esac
18028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18029   (eval "$ac_try") 2>&5
18030   ac_status=$?
18031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032   (exit $ac_status); }; } &&
18033          { ac_try='test -s conftest$ac_exeext'
18034   { (case "(($ac_try" in
18035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18036   *) ac_try_echo=$ac_try;;
18037 esac
18038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18039   (eval "$ac_try") 2>&5
18040   ac_status=$?
18041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042   (exit $ac_status); }; }; then
18043   eval "$as_ac_var=yes"
18044 else
18045   echo "$as_me: failed program was:" >&5
18046 sed 's/^/| /' conftest.$ac_ext >&5
18047
18048         eval "$as_ac_var=no"
18049 fi
18050
18051 rm -f core conftest.err conftest.$ac_objext \
18052       conftest$ac_exeext conftest.$ac_ext
18053 fi
18054 ac_res=`eval echo '${'$as_ac_var'}'`
18055                { echo "$as_me:$LINENO: result: $ac_res" >&5
18056 echo "${ECHO_T}$ac_res" >&6; }
18057 if test `eval echo '${'$as_ac_var'}'` = yes; then
18058   cat >>confdefs.h <<_ACEOF
18059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18060 _ACEOF
18061
18062 fi
18063 done
18064
18065 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18066 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18067 if test "${llvm_cv_c_printf_a+set}" = set; then
18068   echo $ECHO_N "(cached) $ECHO_C" >&6
18069 else
18070   ac_ext=c
18071 ac_cpp='$CPP $CPPFLAGS'
18072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18075
18076  if test "$cross_compiling" = yes; then
18077   llvmac_cv_c_printf_a=no
18078 else
18079   cat >conftest.$ac_ext <<_ACEOF
18080
18081   /* confdefs.h.  */
18082 _ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h.  */
18086
18087 #include <stdio.h>
18088 #include <stdlib.h>
18089
18090 int
18091 main ()
18092 {
18093
18094 volatile double A, B;
18095 char Buffer[100];
18096 A = 1;
18097 A /= 10.0;
18098 sprintf(Buffer, "%a", A);
18099 B = atof(Buffer);
18100 if (A != B)
18101   return (1);
18102 if (A != 0x1.999999999999ap-4)
18103   return (1);
18104 return (0);
18105   ;
18106   return 0;
18107 }
18108 _ACEOF
18109 rm -f conftest$ac_exeext
18110 if { (ac_try="$ac_link"
18111 case "(($ac_try" in
18112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18113   *) ac_try_echo=$ac_try;;
18114 esac
18115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18116   (eval "$ac_link") 2>&5
18117   ac_status=$?
18118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18120   { (case "(($ac_try" in
18121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18122   *) ac_try_echo=$ac_try;;
18123 esac
18124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18125   (eval "$ac_try") 2>&5
18126   ac_status=$?
18127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128   (exit $ac_status); }; }; then
18129   llvm_cv_c_printf_a=yes
18130 else
18131   echo "$as_me: program exited with status $ac_status" >&5
18132 echo "$as_me: failed program was:" >&5
18133 sed 's/^/| /' conftest.$ac_ext >&5
18134
18135 ( exit $ac_status )
18136 llvmac_cv_c_printf_a=no
18137 fi
18138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18139 fi
18140
18141
18142  ac_ext=c
18143 ac_cpp='$CPP $CPPFLAGS'
18144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18147
18148 fi
18149 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18150 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18151  if test "$llvm_cv_c_printf_a" = "yes"; then
18152
18153 cat >>confdefs.h <<\_ACEOF
18154 #define HAVE_PRINTF_A 1
18155 _ACEOF
18156
18157  fi
18158
18159
18160 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18161 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18162 if test "${ac_cv_func_rand48+set}" = set; then
18163   echo $ECHO_N "(cached) $ECHO_C" >&6
18164 else
18165   ac_ext=cpp
18166 ac_cpp='$CXXCPP $CPPFLAGS'
18167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18170
18171    cat >conftest.$ac_ext <<_ACEOF
18172 /* confdefs.h.  */
18173 _ACEOF
18174 cat confdefs.h >>conftest.$ac_ext
18175 cat >>conftest.$ac_ext <<_ACEOF
18176 /* end confdefs.h.  */
18177 #include <stdlib.h>
18178 int
18179 main ()
18180 {
18181 srand48(0);lrand48();drand48();
18182   ;
18183   return 0;
18184 }
18185 _ACEOF
18186 rm -f conftest.$ac_objext
18187 if { (ac_try="$ac_compile"
18188 case "(($ac_try" in
18189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18190   *) ac_try_echo=$ac_try;;
18191 esac
18192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18193   (eval "$ac_compile") 2>conftest.er1
18194   ac_status=$?
18195   grep -v '^ *+' conftest.er1 >conftest.err
18196   rm -f conftest.er1
18197   cat conftest.err >&5
18198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199   (exit $ac_status); } &&
18200          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18201   { (case "(($ac_try" in
18202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18203   *) ac_try_echo=$ac_try;;
18204 esac
18205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18206   (eval "$ac_try") 2>&5
18207   ac_status=$?
18208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209   (exit $ac_status); }; } &&
18210          { ac_try='test -s conftest.$ac_objext'
18211   { (case "(($ac_try" in
18212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18213   *) ac_try_echo=$ac_try;;
18214 esac
18215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18216   (eval "$ac_try") 2>&5
18217   ac_status=$?
18218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219   (exit $ac_status); }; }; then
18220   ac_cv_func_rand48=yes
18221 else
18222   echo "$as_me: failed program was:" >&5
18223 sed 's/^/| /' conftest.$ac_ext >&5
18224
18225         ac_cv_func_rand48=no
18226 fi
18227
18228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18229   ac_ext=c
18230 ac_cpp='$CPP $CPPFLAGS'
18231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18234
18235 fi
18236 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18237 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18238
18239 if test "$ac_cv_func_rand48" = "yes" ; then
18240
18241 cat >>confdefs.h <<\_ACEOF
18242 #define HAVE_RAND48 1
18243 _ACEOF
18244
18245 fi
18246
18247
18248 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18249 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18250 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18251   echo $ECHO_N "(cached) $ECHO_C" >&6
18252 else
18253   cat >conftest.$ac_ext <<_ACEOF
18254 /* confdefs.h.  */
18255 _ACEOF
18256 cat confdefs.h >>conftest.$ac_ext
18257 cat >>conftest.$ac_ext <<_ACEOF
18258 /* end confdefs.h.  */
18259 $ac_includes_default
18260 int
18261 main ()
18262 {
18263 #ifndef strerror_s
18264   char *p = (char *) strerror_s;
18265   return !p;
18266 #endif
18267
18268   ;
18269   return 0;
18270 }
18271 _ACEOF
18272 rm -f conftest.$ac_objext
18273 if { (ac_try="$ac_compile"
18274 case "(($ac_try" in
18275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276   *) ac_try_echo=$ac_try;;
18277 esac
18278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279   (eval "$ac_compile") 2>conftest.er1
18280   ac_status=$?
18281   grep -v '^ *+' conftest.er1 >conftest.err
18282   rm -f conftest.er1
18283   cat conftest.err >&5
18284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285   (exit $ac_status); } &&
18286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18287   { (case "(($ac_try" in
18288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289   *) ac_try_echo=$ac_try;;
18290 esac
18291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292   (eval "$ac_try") 2>&5
18293   ac_status=$?
18294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295   (exit $ac_status); }; } &&
18296          { ac_try='test -s conftest.$ac_objext'
18297   { (case "(($ac_try" in
18298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299   *) ac_try_echo=$ac_try;;
18300 esac
18301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18302   (eval "$ac_try") 2>&5
18303   ac_status=$?
18304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305   (exit $ac_status); }; }; then
18306   ac_cv_have_decl_strerror_s=yes
18307 else
18308   echo "$as_me: failed program was:" >&5
18309 sed 's/^/| /' conftest.$ac_ext >&5
18310
18311         ac_cv_have_decl_strerror_s=no
18312 fi
18313
18314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18315 fi
18316 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18317 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18318 if test $ac_cv_have_decl_strerror_s = yes; then
18319
18320 cat >>confdefs.h <<_ACEOF
18321 #define HAVE_DECL_STRERROR_S 1
18322 _ACEOF
18323
18324
18325 else
18326   cat >>confdefs.h <<_ACEOF
18327 #define HAVE_DECL_STRERROR_S 0
18328 _ACEOF
18329
18330
18331 fi
18332
18333
18334
18335 if test "$llvm_cv_os_type" = "MingW" ; then
18336   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18337 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18338 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18339   echo $ECHO_N "(cached) $ECHO_C" >&6
18340 else
18341   ac_check_lib_save_LIBS=$LIBS
18342 LIBS="-lgcc  $LIBS"
18343 cat >conftest.$ac_ext <<_ACEOF
18344 /* confdefs.h.  */
18345 _ACEOF
18346 cat confdefs.h >>conftest.$ac_ext
18347 cat >>conftest.$ac_ext <<_ACEOF
18348 /* end confdefs.h.  */
18349
18350 /* Override any GCC internal prototype to avoid an error.
18351    Use char because int might match the return type of a GCC
18352    builtin and then its argument prototype would still apply.  */
18353 #ifdef __cplusplus
18354 extern "C"
18355 #endif
18356 char _alloca ();
18357 int
18358 main ()
18359 {
18360 return _alloca ();
18361   ;
18362   return 0;
18363 }
18364 _ACEOF
18365 rm -f conftest.$ac_objext conftest$ac_exeext
18366 if { (ac_try="$ac_link"
18367 case "(($ac_try" in
18368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369   *) ac_try_echo=$ac_try;;
18370 esac
18371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372   (eval "$ac_link") 2>conftest.er1
18373   ac_status=$?
18374   grep -v '^ *+' conftest.er1 >conftest.err
18375   rm -f conftest.er1
18376   cat conftest.err >&5
18377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378   (exit $ac_status); } &&
18379          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18380   { (case "(($ac_try" in
18381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18382   *) ac_try_echo=$ac_try;;
18383 esac
18384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18385   (eval "$ac_try") 2>&5
18386   ac_status=$?
18387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388   (exit $ac_status); }; } &&
18389          { ac_try='test -s conftest$ac_exeext'
18390   { (case "(($ac_try" in
18391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18392   *) ac_try_echo=$ac_try;;
18393 esac
18394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18395   (eval "$ac_try") 2>&5
18396   ac_status=$?
18397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398   (exit $ac_status); }; }; then
18399   ac_cv_lib_gcc__alloca=yes
18400 else
18401   echo "$as_me: failed program was:" >&5
18402 sed 's/^/| /' conftest.$ac_ext >&5
18403
18404         ac_cv_lib_gcc__alloca=no
18405 fi
18406
18407 rm -f core conftest.err conftest.$ac_objext \
18408       conftest$ac_exeext conftest.$ac_ext
18409 LIBS=$ac_check_lib_save_LIBS
18410 fi
18411 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18412 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18413 if test $ac_cv_lib_gcc__alloca = yes; then
18414
18415 cat >>confdefs.h <<\_ACEOF
18416 #define HAVE__ALLOCA 1
18417 _ACEOF
18418
18419 fi
18420
18421   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18422 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18423 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18424   echo $ECHO_N "(cached) $ECHO_C" >&6
18425 else
18426   ac_check_lib_save_LIBS=$LIBS
18427 LIBS="-lgcc  $LIBS"
18428 cat >conftest.$ac_ext <<_ACEOF
18429 /* confdefs.h.  */
18430 _ACEOF
18431 cat confdefs.h >>conftest.$ac_ext
18432 cat >>conftest.$ac_ext <<_ACEOF
18433 /* end confdefs.h.  */
18434
18435 /* Override any GCC internal prototype to avoid an error.
18436    Use char because int might match the return type of a GCC
18437    builtin and then its argument prototype would still apply.  */
18438 #ifdef __cplusplus
18439 extern "C"
18440 #endif
18441 char __alloca ();
18442 int
18443 main ()
18444 {
18445 return __alloca ();
18446   ;
18447   return 0;
18448 }
18449 _ACEOF
18450 rm -f conftest.$ac_objext conftest$ac_exeext
18451 if { (ac_try="$ac_link"
18452 case "(($ac_try" in
18453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454   *) ac_try_echo=$ac_try;;
18455 esac
18456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457   (eval "$ac_link") 2>conftest.er1
18458   ac_status=$?
18459   grep -v '^ *+' conftest.er1 >conftest.err
18460   rm -f conftest.er1
18461   cat conftest.err >&5
18462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463   (exit $ac_status); } &&
18464          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18465   { (case "(($ac_try" in
18466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467   *) ac_try_echo=$ac_try;;
18468 esac
18469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470   (eval "$ac_try") 2>&5
18471   ac_status=$?
18472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473   (exit $ac_status); }; } &&
18474          { ac_try='test -s conftest$ac_exeext'
18475   { (case "(($ac_try" in
18476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18477   *) ac_try_echo=$ac_try;;
18478 esac
18479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18480   (eval "$ac_try") 2>&5
18481   ac_status=$?
18482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483   (exit $ac_status); }; }; then
18484   ac_cv_lib_gcc___alloca=yes
18485 else
18486   echo "$as_me: failed program was:" >&5
18487 sed 's/^/| /' conftest.$ac_ext >&5
18488
18489         ac_cv_lib_gcc___alloca=no
18490 fi
18491
18492 rm -f core conftest.err conftest.$ac_objext \
18493       conftest$ac_exeext conftest.$ac_ext
18494 LIBS=$ac_check_lib_save_LIBS
18495 fi
18496 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18497 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18498 if test $ac_cv_lib_gcc___alloca = yes; then
18499
18500 cat >>confdefs.h <<\_ACEOF
18501 #define HAVE___ALLOCA 1
18502 _ACEOF
18503
18504 fi
18505
18506   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18507 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18508 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18509   echo $ECHO_N "(cached) $ECHO_C" >&6
18510 else
18511   ac_check_lib_save_LIBS=$LIBS
18512 LIBS="-lgcc  $LIBS"
18513 cat >conftest.$ac_ext <<_ACEOF
18514 /* confdefs.h.  */
18515 _ACEOF
18516 cat confdefs.h >>conftest.$ac_ext
18517 cat >>conftest.$ac_ext <<_ACEOF
18518 /* end confdefs.h.  */
18519
18520 /* Override any GCC internal prototype to avoid an error.
18521    Use char because int might match the return type of a GCC
18522    builtin and then its argument prototype would still apply.  */
18523 #ifdef __cplusplus
18524 extern "C"
18525 #endif
18526 char __chkstk ();
18527 int
18528 main ()
18529 {
18530 return __chkstk ();
18531   ;
18532   return 0;
18533 }
18534 _ACEOF
18535 rm -f conftest.$ac_objext conftest$ac_exeext
18536 if { (ac_try="$ac_link"
18537 case "(($ac_try" in
18538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539   *) ac_try_echo=$ac_try;;
18540 esac
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542   (eval "$ac_link") 2>conftest.er1
18543   ac_status=$?
18544   grep -v '^ *+' conftest.er1 >conftest.err
18545   rm -f conftest.er1
18546   cat conftest.err >&5
18547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548   (exit $ac_status); } &&
18549          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18550   { (case "(($ac_try" in
18551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552   *) ac_try_echo=$ac_try;;
18553 esac
18554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555   (eval "$ac_try") 2>&5
18556   ac_status=$?
18557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558   (exit $ac_status); }; } &&
18559          { ac_try='test -s conftest$ac_exeext'
18560   { (case "(($ac_try" in
18561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18562   *) ac_try_echo=$ac_try;;
18563 esac
18564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18565   (eval "$ac_try") 2>&5
18566   ac_status=$?
18567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568   (exit $ac_status); }; }; then
18569   ac_cv_lib_gcc___chkstk=yes
18570 else
18571   echo "$as_me: failed program was:" >&5
18572 sed 's/^/| /' conftest.$ac_ext >&5
18573
18574         ac_cv_lib_gcc___chkstk=no
18575 fi
18576
18577 rm -f core conftest.err conftest.$ac_objext \
18578       conftest$ac_exeext conftest.$ac_ext
18579 LIBS=$ac_check_lib_save_LIBS
18580 fi
18581 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18582 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18583 if test $ac_cv_lib_gcc___chkstk = yes; then
18584
18585 cat >>confdefs.h <<\_ACEOF
18586 #define HAVE___CHKSTK 1
18587 _ACEOF
18588
18589 fi
18590
18591   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18592 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18593 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18594   echo $ECHO_N "(cached) $ECHO_C" >&6
18595 else
18596   ac_check_lib_save_LIBS=$LIBS
18597 LIBS="-lgcc  $LIBS"
18598 cat >conftest.$ac_ext <<_ACEOF
18599 /* confdefs.h.  */
18600 _ACEOF
18601 cat confdefs.h >>conftest.$ac_ext
18602 cat >>conftest.$ac_ext <<_ACEOF
18603 /* end confdefs.h.  */
18604
18605 /* Override any GCC internal prototype to avoid an error.
18606    Use char because int might match the return type of a GCC
18607    builtin and then its argument prototype would still apply.  */
18608 #ifdef __cplusplus
18609 extern "C"
18610 #endif
18611 char ___chkstk ();
18612 int
18613 main ()
18614 {
18615 return ___chkstk ();
18616   ;
18617   return 0;
18618 }
18619 _ACEOF
18620 rm -f conftest.$ac_objext conftest$ac_exeext
18621 if { (ac_try="$ac_link"
18622 case "(($ac_try" in
18623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624   *) ac_try_echo=$ac_try;;
18625 esac
18626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627   (eval "$ac_link") 2>conftest.er1
18628   ac_status=$?
18629   grep -v '^ *+' conftest.er1 >conftest.err
18630   rm -f conftest.er1
18631   cat conftest.err >&5
18632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633   (exit $ac_status); } &&
18634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18635   { (case "(($ac_try" in
18636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637   *) ac_try_echo=$ac_try;;
18638 esac
18639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640   (eval "$ac_try") 2>&5
18641   ac_status=$?
18642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643   (exit $ac_status); }; } &&
18644          { ac_try='test -s conftest$ac_exeext'
18645   { (case "(($ac_try" in
18646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18647   *) ac_try_echo=$ac_try;;
18648 esac
18649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18650   (eval "$ac_try") 2>&5
18651   ac_status=$?
18652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653   (exit $ac_status); }; }; then
18654   ac_cv_lib_gcc____chkstk=yes
18655 else
18656   echo "$as_me: failed program was:" >&5
18657 sed 's/^/| /' conftest.$ac_ext >&5
18658
18659         ac_cv_lib_gcc____chkstk=no
18660 fi
18661
18662 rm -f core conftest.err conftest.$ac_objext \
18663       conftest$ac_exeext conftest.$ac_ext
18664 LIBS=$ac_check_lib_save_LIBS
18665 fi
18666 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18667 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18668 if test $ac_cv_lib_gcc____chkstk = yes; then
18669
18670 cat >>confdefs.h <<\_ACEOF
18671 #define HAVE____CHKSTK 1
18672 _ACEOF
18673
18674 fi
18675
18676
18677   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18678 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18679 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18680   echo $ECHO_N "(cached) $ECHO_C" >&6
18681 else
18682   ac_check_lib_save_LIBS=$LIBS
18683 LIBS="-lgcc  $LIBS"
18684 cat >conftest.$ac_ext <<_ACEOF
18685 /* confdefs.h.  */
18686 _ACEOF
18687 cat confdefs.h >>conftest.$ac_ext
18688 cat >>conftest.$ac_ext <<_ACEOF
18689 /* end confdefs.h.  */
18690
18691 /* Override any GCC internal prototype to avoid an error.
18692    Use char because int might match the return type of a GCC
18693    builtin and then its argument prototype would still apply.  */
18694 #ifdef __cplusplus
18695 extern "C"
18696 #endif
18697 char __ashldi3 ();
18698 int
18699 main ()
18700 {
18701 return __ashldi3 ();
18702   ;
18703   return 0;
18704 }
18705 _ACEOF
18706 rm -f conftest.$ac_objext conftest$ac_exeext
18707 if { (ac_try="$ac_link"
18708 case "(($ac_try" in
18709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18710   *) ac_try_echo=$ac_try;;
18711 esac
18712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18713   (eval "$ac_link") 2>conftest.er1
18714   ac_status=$?
18715   grep -v '^ *+' conftest.er1 >conftest.err
18716   rm -f conftest.er1
18717   cat conftest.err >&5
18718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719   (exit $ac_status); } &&
18720          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18721   { (case "(($ac_try" in
18722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18723   *) ac_try_echo=$ac_try;;
18724 esac
18725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18726   (eval "$ac_try") 2>&5
18727   ac_status=$?
18728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729   (exit $ac_status); }; } &&
18730          { ac_try='test -s conftest$ac_exeext'
18731   { (case "(($ac_try" in
18732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18733   *) ac_try_echo=$ac_try;;
18734 esac
18735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18736   (eval "$ac_try") 2>&5
18737   ac_status=$?
18738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739   (exit $ac_status); }; }; then
18740   ac_cv_lib_gcc___ashldi3=yes
18741 else
18742   echo "$as_me: failed program was:" >&5
18743 sed 's/^/| /' conftest.$ac_ext >&5
18744
18745         ac_cv_lib_gcc___ashldi3=no
18746 fi
18747
18748 rm -f core conftest.err conftest.$ac_objext \
18749       conftest$ac_exeext conftest.$ac_ext
18750 LIBS=$ac_check_lib_save_LIBS
18751 fi
18752 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18753 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18754 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18755
18756 cat >>confdefs.h <<\_ACEOF
18757 #define HAVE___ASHLDI3 1
18758 _ACEOF
18759
18760 fi
18761
18762   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18763 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18764 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18765   echo $ECHO_N "(cached) $ECHO_C" >&6
18766 else
18767   ac_check_lib_save_LIBS=$LIBS
18768 LIBS="-lgcc  $LIBS"
18769 cat >conftest.$ac_ext <<_ACEOF
18770 /* confdefs.h.  */
18771 _ACEOF
18772 cat confdefs.h >>conftest.$ac_ext
18773 cat >>conftest.$ac_ext <<_ACEOF
18774 /* end confdefs.h.  */
18775
18776 /* Override any GCC internal prototype to avoid an error.
18777    Use char because int might match the return type of a GCC
18778    builtin and then its argument prototype would still apply.  */
18779 #ifdef __cplusplus
18780 extern "C"
18781 #endif
18782 char __ashrdi3 ();
18783 int
18784 main ()
18785 {
18786 return __ashrdi3 ();
18787   ;
18788   return 0;
18789 }
18790 _ACEOF
18791 rm -f conftest.$ac_objext conftest$ac_exeext
18792 if { (ac_try="$ac_link"
18793 case "(($ac_try" in
18794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795   *) ac_try_echo=$ac_try;;
18796 esac
18797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18798   (eval "$ac_link") 2>conftest.er1
18799   ac_status=$?
18800   grep -v '^ *+' conftest.er1 >conftest.err
18801   rm -f conftest.er1
18802   cat conftest.err >&5
18803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804   (exit $ac_status); } &&
18805          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18806   { (case "(($ac_try" in
18807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18808   *) ac_try_echo=$ac_try;;
18809 esac
18810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18811   (eval "$ac_try") 2>&5
18812   ac_status=$?
18813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814   (exit $ac_status); }; } &&
18815          { ac_try='test -s conftest$ac_exeext'
18816   { (case "(($ac_try" in
18817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18818   *) ac_try_echo=$ac_try;;
18819 esac
18820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18821   (eval "$ac_try") 2>&5
18822   ac_status=$?
18823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824   (exit $ac_status); }; }; then
18825   ac_cv_lib_gcc___ashrdi3=yes
18826 else
18827   echo "$as_me: failed program was:" >&5
18828 sed 's/^/| /' conftest.$ac_ext >&5
18829
18830         ac_cv_lib_gcc___ashrdi3=no
18831 fi
18832
18833 rm -f core conftest.err conftest.$ac_objext \
18834       conftest$ac_exeext conftest.$ac_ext
18835 LIBS=$ac_check_lib_save_LIBS
18836 fi
18837 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18838 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18839 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18840
18841 cat >>confdefs.h <<\_ACEOF
18842 #define HAVE___ASHRDI3 1
18843 _ACEOF
18844
18845 fi
18846
18847   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18848 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18849 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18850   echo $ECHO_N "(cached) $ECHO_C" >&6
18851 else
18852   ac_check_lib_save_LIBS=$LIBS
18853 LIBS="-lgcc  $LIBS"
18854 cat >conftest.$ac_ext <<_ACEOF
18855 /* confdefs.h.  */
18856 _ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h.  */
18860
18861 /* Override any GCC internal prototype to avoid an error.
18862    Use char because int might match the return type of a GCC
18863    builtin and then its argument prototype would still apply.  */
18864 #ifdef __cplusplus
18865 extern "C"
18866 #endif
18867 char __divdi3 ();
18868 int
18869 main ()
18870 {
18871 return __divdi3 ();
18872   ;
18873   return 0;
18874 }
18875 _ACEOF
18876 rm -f conftest.$ac_objext conftest$ac_exeext
18877 if { (ac_try="$ac_link"
18878 case "(($ac_try" in
18879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18880   *) ac_try_echo=$ac_try;;
18881 esac
18882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18883   (eval "$ac_link") 2>conftest.er1
18884   ac_status=$?
18885   grep -v '^ *+' conftest.er1 >conftest.err
18886   rm -f conftest.er1
18887   cat conftest.err >&5
18888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889   (exit $ac_status); } &&
18890          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18891   { (case "(($ac_try" in
18892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893   *) ac_try_echo=$ac_try;;
18894 esac
18895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18896   (eval "$ac_try") 2>&5
18897   ac_status=$?
18898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899   (exit $ac_status); }; } &&
18900          { ac_try='test -s conftest$ac_exeext'
18901   { (case "(($ac_try" in
18902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18903   *) ac_try_echo=$ac_try;;
18904 esac
18905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18906   (eval "$ac_try") 2>&5
18907   ac_status=$?
18908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909   (exit $ac_status); }; }; then
18910   ac_cv_lib_gcc___divdi3=yes
18911 else
18912   echo "$as_me: failed program was:" >&5
18913 sed 's/^/| /' conftest.$ac_ext >&5
18914
18915         ac_cv_lib_gcc___divdi3=no
18916 fi
18917
18918 rm -f core conftest.err conftest.$ac_objext \
18919       conftest$ac_exeext conftest.$ac_ext
18920 LIBS=$ac_check_lib_save_LIBS
18921 fi
18922 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18923 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18924 if test $ac_cv_lib_gcc___divdi3 = yes; then
18925
18926 cat >>confdefs.h <<\_ACEOF
18927 #define HAVE___DIVDI3 1
18928 _ACEOF
18929
18930 fi
18931
18932   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18933 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18934 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18935   echo $ECHO_N "(cached) $ECHO_C" >&6
18936 else
18937   ac_check_lib_save_LIBS=$LIBS
18938 LIBS="-lgcc  $LIBS"
18939 cat >conftest.$ac_ext <<_ACEOF
18940 /* confdefs.h.  */
18941 _ACEOF
18942 cat confdefs.h >>conftest.$ac_ext
18943 cat >>conftest.$ac_ext <<_ACEOF
18944 /* end confdefs.h.  */
18945
18946 /* Override any GCC internal prototype to avoid an error.
18947    Use char because int might match the return type of a GCC
18948    builtin and then its argument prototype would still apply.  */
18949 #ifdef __cplusplus
18950 extern "C"
18951 #endif
18952 char __fixdfdi ();
18953 int
18954 main ()
18955 {
18956 return __fixdfdi ();
18957   ;
18958   return 0;
18959 }
18960 _ACEOF
18961 rm -f conftest.$ac_objext conftest$ac_exeext
18962 if { (ac_try="$ac_link"
18963 case "(($ac_try" in
18964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965   *) ac_try_echo=$ac_try;;
18966 esac
18967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968   (eval "$ac_link") 2>conftest.er1
18969   ac_status=$?
18970   grep -v '^ *+' conftest.er1 >conftest.err
18971   rm -f conftest.er1
18972   cat conftest.err >&5
18973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974   (exit $ac_status); } &&
18975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18976   { (case "(($ac_try" in
18977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978   *) ac_try_echo=$ac_try;;
18979 esac
18980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18981   (eval "$ac_try") 2>&5
18982   ac_status=$?
18983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984   (exit $ac_status); }; } &&
18985          { ac_try='test -s conftest$ac_exeext'
18986   { (case "(($ac_try" in
18987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18988   *) ac_try_echo=$ac_try;;
18989 esac
18990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18991   (eval "$ac_try") 2>&5
18992   ac_status=$?
18993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994   (exit $ac_status); }; }; then
18995   ac_cv_lib_gcc___fixdfdi=yes
18996 else
18997   echo "$as_me: failed program was:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
18999
19000         ac_cv_lib_gcc___fixdfdi=no
19001 fi
19002
19003 rm -f core conftest.err conftest.$ac_objext \
19004       conftest$ac_exeext conftest.$ac_ext
19005 LIBS=$ac_check_lib_save_LIBS
19006 fi
19007 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19008 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19009 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19010
19011 cat >>confdefs.h <<\_ACEOF
19012 #define HAVE___FIXDFDI 1
19013 _ACEOF
19014
19015 fi
19016
19017   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19018 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19019 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19020   echo $ECHO_N "(cached) $ECHO_C" >&6
19021 else
19022   ac_check_lib_save_LIBS=$LIBS
19023 LIBS="-lgcc  $LIBS"
19024 cat >conftest.$ac_ext <<_ACEOF
19025 /* confdefs.h.  */
19026 _ACEOF
19027 cat confdefs.h >>conftest.$ac_ext
19028 cat >>conftest.$ac_ext <<_ACEOF
19029 /* end confdefs.h.  */
19030
19031 /* Override any GCC internal prototype to avoid an error.
19032    Use char because int might match the return type of a GCC
19033    builtin and then its argument prototype would still apply.  */
19034 #ifdef __cplusplus
19035 extern "C"
19036 #endif
19037 char __fixsfdi ();
19038 int
19039 main ()
19040 {
19041 return __fixsfdi ();
19042   ;
19043   return 0;
19044 }
19045 _ACEOF
19046 rm -f conftest.$ac_objext conftest$ac_exeext
19047 if { (ac_try="$ac_link"
19048 case "(($ac_try" in
19049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050   *) ac_try_echo=$ac_try;;
19051 esac
19052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053   (eval "$ac_link") 2>conftest.er1
19054   ac_status=$?
19055   grep -v '^ *+' conftest.er1 >conftest.err
19056   rm -f conftest.er1
19057   cat conftest.err >&5
19058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059   (exit $ac_status); } &&
19060          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19061   { (case "(($ac_try" in
19062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19063   *) ac_try_echo=$ac_try;;
19064 esac
19065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19066   (eval "$ac_try") 2>&5
19067   ac_status=$?
19068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069   (exit $ac_status); }; } &&
19070          { ac_try='test -s conftest$ac_exeext'
19071   { (case "(($ac_try" in
19072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19073   *) ac_try_echo=$ac_try;;
19074 esac
19075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19076   (eval "$ac_try") 2>&5
19077   ac_status=$?
19078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079   (exit $ac_status); }; }; then
19080   ac_cv_lib_gcc___fixsfdi=yes
19081 else
19082   echo "$as_me: failed program was:" >&5
19083 sed 's/^/| /' conftest.$ac_ext >&5
19084
19085         ac_cv_lib_gcc___fixsfdi=no
19086 fi
19087
19088 rm -f core conftest.err conftest.$ac_objext \
19089       conftest$ac_exeext conftest.$ac_ext
19090 LIBS=$ac_check_lib_save_LIBS
19091 fi
19092 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19093 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19094 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19095
19096 cat >>confdefs.h <<\_ACEOF
19097 #define HAVE___FIXSFDI 1
19098 _ACEOF
19099
19100 fi
19101
19102   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19103 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19104 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19105   echo $ECHO_N "(cached) $ECHO_C" >&6
19106 else
19107   ac_check_lib_save_LIBS=$LIBS
19108 LIBS="-lgcc  $LIBS"
19109 cat >conftest.$ac_ext <<_ACEOF
19110 /* confdefs.h.  */
19111 _ACEOF
19112 cat confdefs.h >>conftest.$ac_ext
19113 cat >>conftest.$ac_ext <<_ACEOF
19114 /* end confdefs.h.  */
19115
19116 /* Override any GCC internal prototype to avoid an error.
19117    Use char because int might match the return type of a GCC
19118    builtin and then its argument prototype would still apply.  */
19119 #ifdef __cplusplus
19120 extern "C"
19121 #endif
19122 char __floatdidf ();
19123 int
19124 main ()
19125 {
19126 return __floatdidf ();
19127   ;
19128   return 0;
19129 }
19130 _ACEOF
19131 rm -f conftest.$ac_objext conftest$ac_exeext
19132 if { (ac_try="$ac_link"
19133 case "(($ac_try" in
19134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19135   *) ac_try_echo=$ac_try;;
19136 esac
19137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19138   (eval "$ac_link") 2>conftest.er1
19139   ac_status=$?
19140   grep -v '^ *+' conftest.er1 >conftest.err
19141   rm -f conftest.er1
19142   cat conftest.err >&5
19143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144   (exit $ac_status); } &&
19145          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19146   { (case "(($ac_try" in
19147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19148   *) ac_try_echo=$ac_try;;
19149 esac
19150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19151   (eval "$ac_try") 2>&5
19152   ac_status=$?
19153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154   (exit $ac_status); }; } &&
19155          { ac_try='test -s conftest$ac_exeext'
19156   { (case "(($ac_try" in
19157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19158   *) ac_try_echo=$ac_try;;
19159 esac
19160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19161   (eval "$ac_try") 2>&5
19162   ac_status=$?
19163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164   (exit $ac_status); }; }; then
19165   ac_cv_lib_gcc___floatdidf=yes
19166 else
19167   echo "$as_me: failed program was:" >&5
19168 sed 's/^/| /' conftest.$ac_ext >&5
19169
19170         ac_cv_lib_gcc___floatdidf=no
19171 fi
19172
19173 rm -f core conftest.err conftest.$ac_objext \
19174       conftest$ac_exeext conftest.$ac_ext
19175 LIBS=$ac_check_lib_save_LIBS
19176 fi
19177 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19178 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19179 if test $ac_cv_lib_gcc___floatdidf = yes; then
19180
19181 cat >>confdefs.h <<\_ACEOF
19182 #define HAVE___FLOATDIDF 1
19183 _ACEOF
19184
19185 fi
19186
19187   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19188 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19189 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19190   echo $ECHO_N "(cached) $ECHO_C" >&6
19191 else
19192   ac_check_lib_save_LIBS=$LIBS
19193 LIBS="-lgcc  $LIBS"
19194 cat >conftest.$ac_ext <<_ACEOF
19195 /* confdefs.h.  */
19196 _ACEOF
19197 cat confdefs.h >>conftest.$ac_ext
19198 cat >>conftest.$ac_ext <<_ACEOF
19199 /* end confdefs.h.  */
19200
19201 /* Override any GCC internal prototype to avoid an error.
19202    Use char because int might match the return type of a GCC
19203    builtin and then its argument prototype would still apply.  */
19204 #ifdef __cplusplus
19205 extern "C"
19206 #endif
19207 char __lshrdi3 ();
19208 int
19209 main ()
19210 {
19211 return __lshrdi3 ();
19212   ;
19213   return 0;
19214 }
19215 _ACEOF
19216 rm -f conftest.$ac_objext conftest$ac_exeext
19217 if { (ac_try="$ac_link"
19218 case "(($ac_try" in
19219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220   *) ac_try_echo=$ac_try;;
19221 esac
19222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19223   (eval "$ac_link") 2>conftest.er1
19224   ac_status=$?
19225   grep -v '^ *+' conftest.er1 >conftest.err
19226   rm -f conftest.er1
19227   cat conftest.err >&5
19228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229   (exit $ac_status); } &&
19230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19231   { (case "(($ac_try" in
19232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19233   *) ac_try_echo=$ac_try;;
19234 esac
19235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19236   (eval "$ac_try") 2>&5
19237   ac_status=$?
19238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239   (exit $ac_status); }; } &&
19240          { ac_try='test -s conftest$ac_exeext'
19241   { (case "(($ac_try" in
19242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19243   *) ac_try_echo=$ac_try;;
19244 esac
19245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19246   (eval "$ac_try") 2>&5
19247   ac_status=$?
19248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249   (exit $ac_status); }; }; then
19250   ac_cv_lib_gcc___lshrdi3=yes
19251 else
19252   echo "$as_me: failed program was:" >&5
19253 sed 's/^/| /' conftest.$ac_ext >&5
19254
19255         ac_cv_lib_gcc___lshrdi3=no
19256 fi
19257
19258 rm -f core conftest.err conftest.$ac_objext \
19259       conftest$ac_exeext conftest.$ac_ext
19260 LIBS=$ac_check_lib_save_LIBS
19261 fi
19262 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19263 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19264 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19265
19266 cat >>confdefs.h <<\_ACEOF
19267 #define HAVE___LSHRDI3 1
19268 _ACEOF
19269
19270 fi
19271
19272   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19273 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19274 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19275   echo $ECHO_N "(cached) $ECHO_C" >&6
19276 else
19277   ac_check_lib_save_LIBS=$LIBS
19278 LIBS="-lgcc  $LIBS"
19279 cat >conftest.$ac_ext <<_ACEOF
19280 /* confdefs.h.  */
19281 _ACEOF
19282 cat confdefs.h >>conftest.$ac_ext
19283 cat >>conftest.$ac_ext <<_ACEOF
19284 /* end confdefs.h.  */
19285
19286 /* Override any GCC internal prototype to avoid an error.
19287    Use char because int might match the return type of a GCC
19288    builtin and then its argument prototype would still apply.  */
19289 #ifdef __cplusplus
19290 extern "C"
19291 #endif
19292 char __moddi3 ();
19293 int
19294 main ()
19295 {
19296 return __moddi3 ();
19297   ;
19298   return 0;
19299 }
19300 _ACEOF
19301 rm -f conftest.$ac_objext conftest$ac_exeext
19302 if { (ac_try="$ac_link"
19303 case "(($ac_try" in
19304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305   *) ac_try_echo=$ac_try;;
19306 esac
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308   (eval "$ac_link") 2>conftest.er1
19309   ac_status=$?
19310   grep -v '^ *+' conftest.er1 >conftest.err
19311   rm -f conftest.er1
19312   cat conftest.err >&5
19313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314   (exit $ac_status); } &&
19315          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19316   { (case "(($ac_try" in
19317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318   *) ac_try_echo=$ac_try;;
19319 esac
19320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19321   (eval "$ac_try") 2>&5
19322   ac_status=$?
19323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324   (exit $ac_status); }; } &&
19325          { ac_try='test -s conftest$ac_exeext'
19326   { (case "(($ac_try" in
19327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19328   *) ac_try_echo=$ac_try;;
19329 esac
19330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19331   (eval "$ac_try") 2>&5
19332   ac_status=$?
19333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334   (exit $ac_status); }; }; then
19335   ac_cv_lib_gcc___moddi3=yes
19336 else
19337   echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19339
19340         ac_cv_lib_gcc___moddi3=no
19341 fi
19342
19343 rm -f core conftest.err conftest.$ac_objext \
19344       conftest$ac_exeext conftest.$ac_ext
19345 LIBS=$ac_check_lib_save_LIBS
19346 fi
19347 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19348 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19349 if test $ac_cv_lib_gcc___moddi3 = yes; then
19350
19351 cat >>confdefs.h <<\_ACEOF
19352 #define HAVE___MODDI3 1
19353 _ACEOF
19354
19355 fi
19356
19357   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19358 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19359 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19360   echo $ECHO_N "(cached) $ECHO_C" >&6
19361 else
19362   ac_check_lib_save_LIBS=$LIBS
19363 LIBS="-lgcc  $LIBS"
19364 cat >conftest.$ac_ext <<_ACEOF
19365 /* confdefs.h.  */
19366 _ACEOF
19367 cat confdefs.h >>conftest.$ac_ext
19368 cat >>conftest.$ac_ext <<_ACEOF
19369 /* end confdefs.h.  */
19370
19371 /* Override any GCC internal prototype to avoid an error.
19372    Use char because int might match the return type of a GCC
19373    builtin and then its argument prototype would still apply.  */
19374 #ifdef __cplusplus
19375 extern "C"
19376 #endif
19377 char __udivdi3 ();
19378 int
19379 main ()
19380 {
19381 return __udivdi3 ();
19382   ;
19383   return 0;
19384 }
19385 _ACEOF
19386 rm -f conftest.$ac_objext conftest$ac_exeext
19387 if { (ac_try="$ac_link"
19388 case "(($ac_try" in
19389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390   *) ac_try_echo=$ac_try;;
19391 esac
19392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19393   (eval "$ac_link") 2>conftest.er1
19394   ac_status=$?
19395   grep -v '^ *+' conftest.er1 >conftest.err
19396   rm -f conftest.er1
19397   cat conftest.err >&5
19398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399   (exit $ac_status); } &&
19400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19401   { (case "(($ac_try" in
19402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19403   *) ac_try_echo=$ac_try;;
19404 esac
19405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19406   (eval "$ac_try") 2>&5
19407   ac_status=$?
19408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409   (exit $ac_status); }; } &&
19410          { ac_try='test -s conftest$ac_exeext'
19411   { (case "(($ac_try" in
19412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413   *) ac_try_echo=$ac_try;;
19414 esac
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416   (eval "$ac_try") 2>&5
19417   ac_status=$?
19418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419   (exit $ac_status); }; }; then
19420   ac_cv_lib_gcc___udivdi3=yes
19421 else
19422   echo "$as_me: failed program was:" >&5
19423 sed 's/^/| /' conftest.$ac_ext >&5
19424
19425         ac_cv_lib_gcc___udivdi3=no
19426 fi
19427
19428 rm -f core conftest.err conftest.$ac_objext \
19429       conftest$ac_exeext conftest.$ac_ext
19430 LIBS=$ac_check_lib_save_LIBS
19431 fi
19432 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19433 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19434 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19435
19436 cat >>confdefs.h <<\_ACEOF
19437 #define HAVE___UDIVDI3 1
19438 _ACEOF
19439
19440 fi
19441
19442   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19443 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19444 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19445   echo $ECHO_N "(cached) $ECHO_C" >&6
19446 else
19447   ac_check_lib_save_LIBS=$LIBS
19448 LIBS="-lgcc  $LIBS"
19449 cat >conftest.$ac_ext <<_ACEOF
19450 /* confdefs.h.  */
19451 _ACEOF
19452 cat confdefs.h >>conftest.$ac_ext
19453 cat >>conftest.$ac_ext <<_ACEOF
19454 /* end confdefs.h.  */
19455
19456 /* Override any GCC internal prototype to avoid an error.
19457    Use char because int might match the return type of a GCC
19458    builtin and then its argument prototype would still apply.  */
19459 #ifdef __cplusplus
19460 extern "C"
19461 #endif
19462 char __umoddi3 ();
19463 int
19464 main ()
19465 {
19466 return __umoddi3 ();
19467   ;
19468   return 0;
19469 }
19470 _ACEOF
19471 rm -f conftest.$ac_objext conftest$ac_exeext
19472 if { (ac_try="$ac_link"
19473 case "(($ac_try" in
19474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19475   *) ac_try_echo=$ac_try;;
19476 esac
19477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19478   (eval "$ac_link") 2>conftest.er1
19479   ac_status=$?
19480   grep -v '^ *+' conftest.er1 >conftest.err
19481   rm -f conftest.er1
19482   cat conftest.err >&5
19483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484   (exit $ac_status); } &&
19485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19486   { (case "(($ac_try" in
19487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19488   *) ac_try_echo=$ac_try;;
19489 esac
19490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19491   (eval "$ac_try") 2>&5
19492   ac_status=$?
19493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494   (exit $ac_status); }; } &&
19495          { ac_try='test -s conftest$ac_exeext'
19496   { (case "(($ac_try" in
19497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498   *) ac_try_echo=$ac_try;;
19499 esac
19500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501   (eval "$ac_try") 2>&5
19502   ac_status=$?
19503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504   (exit $ac_status); }; }; then
19505   ac_cv_lib_gcc___umoddi3=yes
19506 else
19507   echo "$as_me: failed program was:" >&5
19508 sed 's/^/| /' conftest.$ac_ext >&5
19509
19510         ac_cv_lib_gcc___umoddi3=no
19511 fi
19512
19513 rm -f core conftest.err conftest.$ac_objext \
19514       conftest$ac_exeext conftest.$ac_ext
19515 LIBS=$ac_check_lib_save_LIBS
19516 fi
19517 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19518 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19519 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19520
19521 cat >>confdefs.h <<\_ACEOF
19522 #define HAVE___UMODDI3 1
19523 _ACEOF
19524
19525 fi
19526
19527
19528   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19529 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19530 if test "${ac_cv_lib_gcc___main+set}" = set; then
19531   echo $ECHO_N "(cached) $ECHO_C" >&6
19532 else
19533   ac_check_lib_save_LIBS=$LIBS
19534 LIBS="-lgcc  $LIBS"
19535 cat >conftest.$ac_ext <<_ACEOF
19536 /* confdefs.h.  */
19537 _ACEOF
19538 cat confdefs.h >>conftest.$ac_ext
19539 cat >>conftest.$ac_ext <<_ACEOF
19540 /* end confdefs.h.  */
19541
19542 /* Override any GCC internal prototype to avoid an error.
19543    Use char because int might match the return type of a GCC
19544    builtin and then its argument prototype would still apply.  */
19545 #ifdef __cplusplus
19546 extern "C"
19547 #endif
19548 char __main ();
19549 int
19550 main ()
19551 {
19552 return __main ();
19553   ;
19554   return 0;
19555 }
19556 _ACEOF
19557 rm -f conftest.$ac_objext conftest$ac_exeext
19558 if { (ac_try="$ac_link"
19559 case "(($ac_try" in
19560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561   *) ac_try_echo=$ac_try;;
19562 esac
19563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564   (eval "$ac_link") 2>conftest.er1
19565   ac_status=$?
19566   grep -v '^ *+' conftest.er1 >conftest.err
19567   rm -f conftest.er1
19568   cat conftest.err >&5
19569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570   (exit $ac_status); } &&
19571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19572   { (case "(($ac_try" in
19573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19574   *) ac_try_echo=$ac_try;;
19575 esac
19576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19577   (eval "$ac_try") 2>&5
19578   ac_status=$?
19579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580   (exit $ac_status); }; } &&
19581          { ac_try='test -s conftest$ac_exeext'
19582   { (case "(($ac_try" in
19583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19584   *) ac_try_echo=$ac_try;;
19585 esac
19586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19587   (eval "$ac_try") 2>&5
19588   ac_status=$?
19589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590   (exit $ac_status); }; }; then
19591   ac_cv_lib_gcc___main=yes
19592 else
19593   echo "$as_me: failed program was:" >&5
19594 sed 's/^/| /' conftest.$ac_ext >&5
19595
19596         ac_cv_lib_gcc___main=no
19597 fi
19598
19599 rm -f core conftest.err conftest.$ac_objext \
19600       conftest$ac_exeext conftest.$ac_ext
19601 LIBS=$ac_check_lib_save_LIBS
19602 fi
19603 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19604 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19605 if test $ac_cv_lib_gcc___main = yes; then
19606
19607 cat >>confdefs.h <<\_ACEOF
19608 #define HAVE___MAIN 1
19609 _ACEOF
19610
19611 fi
19612
19613   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19614 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19615 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19616   echo $ECHO_N "(cached) $ECHO_C" >&6
19617 else
19618   ac_check_lib_save_LIBS=$LIBS
19619 LIBS="-lgcc  $LIBS"
19620 cat >conftest.$ac_ext <<_ACEOF
19621 /* confdefs.h.  */
19622 _ACEOF
19623 cat confdefs.h >>conftest.$ac_ext
19624 cat >>conftest.$ac_ext <<_ACEOF
19625 /* end confdefs.h.  */
19626
19627 /* Override any GCC internal prototype to avoid an error.
19628    Use char because int might match the return type of a GCC
19629    builtin and then its argument prototype would still apply.  */
19630 #ifdef __cplusplus
19631 extern "C"
19632 #endif
19633 char __cmpdi2 ();
19634 int
19635 main ()
19636 {
19637 return __cmpdi2 ();
19638   ;
19639   return 0;
19640 }
19641 _ACEOF
19642 rm -f conftest.$ac_objext conftest$ac_exeext
19643 if { (ac_try="$ac_link"
19644 case "(($ac_try" in
19645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646   *) ac_try_echo=$ac_try;;
19647 esac
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649   (eval "$ac_link") 2>conftest.er1
19650   ac_status=$?
19651   grep -v '^ *+' conftest.er1 >conftest.err
19652   rm -f conftest.er1
19653   cat conftest.err >&5
19654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655   (exit $ac_status); } &&
19656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19657   { (case "(($ac_try" in
19658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19659   *) ac_try_echo=$ac_try;;
19660 esac
19661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19662   (eval "$ac_try") 2>&5
19663   ac_status=$?
19664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665   (exit $ac_status); }; } &&
19666          { ac_try='test -s conftest$ac_exeext'
19667   { (case "(($ac_try" in
19668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669   *) ac_try_echo=$ac_try;;
19670 esac
19671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672   (eval "$ac_try") 2>&5
19673   ac_status=$?
19674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675   (exit $ac_status); }; }; then
19676   ac_cv_lib_gcc___cmpdi2=yes
19677 else
19678   echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.$ac_ext >&5
19680
19681         ac_cv_lib_gcc___cmpdi2=no
19682 fi
19683
19684 rm -f core conftest.err conftest.$ac_objext \
19685       conftest$ac_exeext conftest.$ac_ext
19686 LIBS=$ac_check_lib_save_LIBS
19687 fi
19688 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19689 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19690 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19691
19692 cat >>confdefs.h <<\_ACEOF
19693 #define HAVE___CMPDI2 1
19694 _ACEOF
19695
19696 fi
19697
19698 fi
19699
19700 if test "$llvm_cv_os_type" = "MingW" ; then
19701   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19702 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19703   cat >conftest.$ac_ext <<_ACEOF
19704 #include <windows.h>
19705 #include <imagehlp.h>
19706 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19707 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19708 _ACEOF
19709 rm -f conftest.$ac_objext
19710 if { (ac_try="$ac_compile"
19711 case "(($ac_try" in
19712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19713   *) ac_try_echo=$ac_try;;
19714 esac
19715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19716   (eval "$ac_compile") 2>conftest.er1
19717   ac_status=$?
19718   grep -v '^ *+' conftest.er1 >conftest.err
19719   rm -f conftest.er1
19720   cat conftest.err >&5
19721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722   (exit $ac_status); } &&
19723          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19724   { (case "(($ac_try" in
19725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19726   *) ac_try_echo=$ac_try;;
19727 esac
19728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19729   (eval "$ac_try") 2>&5
19730   ac_status=$?
19731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732   (exit $ac_status); }; } &&
19733          { ac_try='test -s conftest.$ac_objext'
19734   { (case "(($ac_try" in
19735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736   *) ac_try_echo=$ac_try;;
19737 esac
19738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19739   (eval "$ac_try") 2>&5
19740   ac_status=$?
19741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742   (exit $ac_status); }; }; then
19743
19744   { echo "$as_me:$LINENO: result: yes" >&5
19745 echo "${ECHO_T}yes" >&6; }
19746   llvm_cv_win32_elmcb_pcstr="PCSTR"
19747
19748 else
19749   echo "$as_me: failed program was:" >&5
19750 sed 's/^/| /' conftest.$ac_ext >&5
19751
19752
19753   { echo "$as_me:$LINENO: result: no" >&5
19754 echo "${ECHO_T}no" >&6; }
19755   llvm_cv_win32_elmcb_pcstr="PSTR"
19756
19757 fi
19758
19759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19760
19761 cat >>confdefs.h <<_ACEOF
19762 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19763 _ACEOF
19764
19765 fi
19766
19767
19768 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19769 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19770 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19771   echo $ECHO_N "(cached) $ECHO_C" >&6
19772 else
19773   ac_ext=cpp
19774 ac_cpp='$CXXCPP $CPPFLAGS'
19775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19778
19779    cat >conftest.$ac_ext <<_ACEOF
19780 /* confdefs.h.  */
19781 _ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h.  */
19785 #include <math.h>
19786 int
19787 main ()
19788 {
19789 float f; isnan(f);
19790   ;
19791   return 0;
19792 }
19793 _ACEOF
19794 rm -f conftest.$ac_objext
19795 if { (ac_try="$ac_compile"
19796 case "(($ac_try" in
19797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19798   *) ac_try_echo=$ac_try;;
19799 esac
19800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19801   (eval "$ac_compile") 2>conftest.er1
19802   ac_status=$?
19803   grep -v '^ *+' conftest.er1 >conftest.err
19804   rm -f conftest.er1
19805   cat conftest.err >&5
19806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807   (exit $ac_status); } &&
19808          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19809   { (case "(($ac_try" in
19810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19811   *) ac_try_echo=$ac_try;;
19812 esac
19813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19814   (eval "$ac_try") 2>&5
19815   ac_status=$?
19816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817   (exit $ac_status); }; } &&
19818          { ac_try='test -s conftest.$ac_objext'
19819   { (case "(($ac_try" in
19820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19821   *) ac_try_echo=$ac_try;;
19822 esac
19823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19824   (eval "$ac_try") 2>&5
19825   ac_status=$?
19826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827   (exit $ac_status); }; }; then
19828   ac_cv_func_isnan_in_math_h=yes
19829 else
19830   echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.$ac_ext >&5
19832
19833         ac_cv_func_isnan_in_math_h=no
19834 fi
19835
19836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19837   ac_ext=c
19838 ac_cpp='$CPP $CPPFLAGS'
19839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19842
19843 fi
19844 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19845 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19846
19847
19848 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19849
19850 cat >>confdefs.h <<\_ACEOF
19851 #define HAVE_ISNAN_IN_MATH_H 1
19852 _ACEOF
19853
19854 fi
19855
19856 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19857 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19858 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19859   echo $ECHO_N "(cached) $ECHO_C" >&6
19860 else
19861   ac_ext=cpp
19862 ac_cpp='$CXXCPP $CPPFLAGS'
19863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19866
19867    cat >conftest.$ac_ext <<_ACEOF
19868 /* confdefs.h.  */
19869 _ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h.  */
19873 #include <cmath>
19874 int
19875 main ()
19876 {
19877 float f; isnan(f);
19878   ;
19879   return 0;
19880 }
19881 _ACEOF
19882 rm -f conftest.$ac_objext
19883 if { (ac_try="$ac_compile"
19884 case "(($ac_try" in
19885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886   *) ac_try_echo=$ac_try;;
19887 esac
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889   (eval "$ac_compile") 2>conftest.er1
19890   ac_status=$?
19891   grep -v '^ *+' conftest.er1 >conftest.err
19892   rm -f conftest.er1
19893   cat conftest.err >&5
19894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895   (exit $ac_status); } &&
19896          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19897   { (case "(($ac_try" in
19898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19899   *) ac_try_echo=$ac_try;;
19900 esac
19901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19902   (eval "$ac_try") 2>&5
19903   ac_status=$?
19904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905   (exit $ac_status); }; } &&
19906          { ac_try='test -s conftest.$ac_objext'
19907   { (case "(($ac_try" in
19908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19909   *) ac_try_echo=$ac_try;;
19910 esac
19911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19912   (eval "$ac_try") 2>&5
19913   ac_status=$?
19914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915   (exit $ac_status); }; }; then
19916   ac_cv_func_isnan_in_cmath=yes
19917 else
19918   echo "$as_me: failed program was:" >&5
19919 sed 's/^/| /' conftest.$ac_ext >&5
19920
19921         ac_cv_func_isnan_in_cmath=no
19922 fi
19923
19924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19925   ac_ext=c
19926 ac_cpp='$CPP $CPPFLAGS'
19927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19930
19931 fi
19932 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19933 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19934
19935 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19936
19937 cat >>confdefs.h <<\_ACEOF
19938 #define HAVE_ISNAN_IN_CMATH 1
19939 _ACEOF
19940
19941 fi
19942
19943 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19944 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19945 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19946   echo $ECHO_N "(cached) $ECHO_C" >&6
19947 else
19948   ac_ext=cpp
19949 ac_cpp='$CXXCPP $CPPFLAGS'
19950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19953
19954    cat >conftest.$ac_ext <<_ACEOF
19955 /* confdefs.h.  */
19956 _ACEOF
19957 cat confdefs.h >>conftest.$ac_ext
19958 cat >>conftest.$ac_ext <<_ACEOF
19959 /* end confdefs.h.  */
19960 #include <cmath>
19961 int
19962 main ()
19963 {
19964 float f; std::isnan(f);
19965   ;
19966   return 0;
19967 }
19968 _ACEOF
19969 rm -f conftest.$ac_objext
19970 if { (ac_try="$ac_compile"
19971 case "(($ac_try" in
19972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973   *) ac_try_echo=$ac_try;;
19974 esac
19975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19976   (eval "$ac_compile") 2>conftest.er1
19977   ac_status=$?
19978   grep -v '^ *+' conftest.er1 >conftest.err
19979   rm -f conftest.er1
19980   cat conftest.err >&5
19981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982   (exit $ac_status); } &&
19983          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19984   { (case "(($ac_try" in
19985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19986   *) ac_try_echo=$ac_try;;
19987 esac
19988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19989   (eval "$ac_try") 2>&5
19990   ac_status=$?
19991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992   (exit $ac_status); }; } &&
19993          { ac_try='test -s conftest.$ac_objext'
19994   { (case "(($ac_try" in
19995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996   *) ac_try_echo=$ac_try;;
19997 esac
19998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999   (eval "$ac_try") 2>&5
20000   ac_status=$?
20001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002   (exit $ac_status); }; }; then
20003   ac_cv_func_std_isnan_in_cmath=yes
20004 else
20005   echo "$as_me: failed program was:" >&5
20006 sed 's/^/| /' conftest.$ac_ext >&5
20007
20008         ac_cv_func_std_isnan_in_cmath=no
20009 fi
20010
20011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20012   ac_ext=c
20013 ac_cpp='$CPP $CPPFLAGS'
20014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20017
20018 fi
20019 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20020 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20021
20022 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20023
20024 cat >>confdefs.h <<\_ACEOF
20025 #define HAVE_STD_ISNAN_IN_CMATH 1
20026 _ACEOF
20027
20028 fi
20029
20030
20031 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20032 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20033 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20034   echo $ECHO_N "(cached) $ECHO_C" >&6
20035 else
20036   ac_ext=cpp
20037 ac_cpp='$CXXCPP $CPPFLAGS'
20038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20041
20042    cat >conftest.$ac_ext <<_ACEOF
20043 /* confdefs.h.  */
20044 _ACEOF
20045 cat confdefs.h >>conftest.$ac_ext
20046 cat >>conftest.$ac_ext <<_ACEOF
20047 /* end confdefs.h.  */
20048 #include <math.h>
20049 int
20050 main ()
20051 {
20052 float f; isinf(f);
20053   ;
20054   return 0;
20055 }
20056 _ACEOF
20057 rm -f conftest.$ac_objext
20058 if { (ac_try="$ac_compile"
20059 case "(($ac_try" in
20060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061   *) ac_try_echo=$ac_try;;
20062 esac
20063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20064   (eval "$ac_compile") 2>conftest.er1
20065   ac_status=$?
20066   grep -v '^ *+' conftest.er1 >conftest.err
20067   rm -f conftest.er1
20068   cat conftest.err >&5
20069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070   (exit $ac_status); } &&
20071          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20072   { (case "(($ac_try" in
20073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20074   *) ac_try_echo=$ac_try;;
20075 esac
20076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20077   (eval "$ac_try") 2>&5
20078   ac_status=$?
20079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080   (exit $ac_status); }; } &&
20081          { ac_try='test -s conftest.$ac_objext'
20082   { (case "(($ac_try" in
20083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20084   *) ac_try_echo=$ac_try;;
20085 esac
20086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20087   (eval "$ac_try") 2>&5
20088   ac_status=$?
20089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090   (exit $ac_status); }; }; then
20091   ac_cv_func_isinf_in_math_h=yes
20092 else
20093   echo "$as_me: failed program was:" >&5
20094 sed 's/^/| /' conftest.$ac_ext >&5
20095
20096         ac_cv_func_isinf_in_math_h=no
20097 fi
20098
20099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20100   ac_ext=c
20101 ac_cpp='$CPP $CPPFLAGS'
20102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20105
20106 fi
20107 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20108 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20109
20110 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20111
20112 cat >>confdefs.h <<\_ACEOF
20113 #define HAVE_ISINF_IN_MATH_H 1
20114 _ACEOF
20115
20116 fi
20117
20118 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20119 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20120 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20121   echo $ECHO_N "(cached) $ECHO_C" >&6
20122 else
20123   ac_ext=cpp
20124 ac_cpp='$CXXCPP $CPPFLAGS'
20125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20128
20129    cat >conftest.$ac_ext <<_ACEOF
20130 /* confdefs.h.  */
20131 _ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h.  */
20135 #include <cmath>
20136 int
20137 main ()
20138 {
20139 float f; isinf(f);
20140   ;
20141   return 0;
20142 }
20143 _ACEOF
20144 rm -f conftest.$ac_objext
20145 if { (ac_try="$ac_compile"
20146 case "(($ac_try" in
20147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148   *) ac_try_echo=$ac_try;;
20149 esac
20150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151   (eval "$ac_compile") 2>conftest.er1
20152   ac_status=$?
20153   grep -v '^ *+' conftest.er1 >conftest.err
20154   rm -f conftest.er1
20155   cat conftest.err >&5
20156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157   (exit $ac_status); } &&
20158          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20159   { (case "(($ac_try" in
20160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161   *) ac_try_echo=$ac_try;;
20162 esac
20163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20164   (eval "$ac_try") 2>&5
20165   ac_status=$?
20166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167   (exit $ac_status); }; } &&
20168          { ac_try='test -s conftest.$ac_objext'
20169   { (case "(($ac_try" in
20170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20171   *) ac_try_echo=$ac_try;;
20172 esac
20173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20174   (eval "$ac_try") 2>&5
20175   ac_status=$?
20176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177   (exit $ac_status); }; }; then
20178   ac_cv_func_isinf_in_cmath=yes
20179 else
20180   echo "$as_me: failed program was:" >&5
20181 sed 's/^/| /' conftest.$ac_ext >&5
20182
20183         ac_cv_func_isinf_in_cmath=no
20184 fi
20185
20186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20187   ac_ext=c
20188 ac_cpp='$CPP $CPPFLAGS'
20189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20192
20193 fi
20194 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20195 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20196
20197 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20198
20199 cat >>confdefs.h <<\_ACEOF
20200 #define HAVE_ISINF_IN_CMATH 1
20201 _ACEOF
20202
20203 fi
20204
20205 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20206 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20207 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20208   echo $ECHO_N "(cached) $ECHO_C" >&6
20209 else
20210   ac_ext=cpp
20211 ac_cpp='$CXXCPP $CPPFLAGS'
20212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20215
20216    cat >conftest.$ac_ext <<_ACEOF
20217 /* confdefs.h.  */
20218 _ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h.  */
20222 #include <cmath>
20223 int
20224 main ()
20225 {
20226 float f; std::isinf(f);
20227   ;
20228   return 0;
20229 }
20230 _ACEOF
20231 rm -f conftest.$ac_objext
20232 if { (ac_try="$ac_compile"
20233 case "(($ac_try" in
20234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20235   *) ac_try_echo=$ac_try;;
20236 esac
20237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20238   (eval "$ac_compile") 2>conftest.er1
20239   ac_status=$?
20240   grep -v '^ *+' conftest.er1 >conftest.err
20241   rm -f conftest.er1
20242   cat conftest.err >&5
20243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244   (exit $ac_status); } &&
20245          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20246   { (case "(($ac_try" in
20247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20248   *) ac_try_echo=$ac_try;;
20249 esac
20250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20251   (eval "$ac_try") 2>&5
20252   ac_status=$?
20253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254   (exit $ac_status); }; } &&
20255          { ac_try='test -s conftest.$ac_objext'
20256   { (case "(($ac_try" in
20257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258   *) ac_try_echo=$ac_try;;
20259 esac
20260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261   (eval "$ac_try") 2>&5
20262   ac_status=$?
20263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264   (exit $ac_status); }; }; then
20265   ac_cv_func_std_isinf_in_cmath=yes
20266 else
20267   echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20269
20270         ac_cv_func_std_isinf_in_cmath=no
20271 fi
20272
20273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20274   ac_ext=c
20275 ac_cpp='$CPP $CPPFLAGS'
20276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20279
20280 fi
20281 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20282 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20283
20284 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20285
20286 cat >>confdefs.h <<\_ACEOF
20287 #define HAVE_STD_ISINF_IN_CMATH 1
20288 _ACEOF
20289
20290 fi
20291
20292 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20293 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20294 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20295   echo $ECHO_N "(cached) $ECHO_C" >&6
20296 else
20297   ac_ext=cpp
20298 ac_cpp='$CXXCPP $CPPFLAGS'
20299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20302
20303    cat >conftest.$ac_ext <<_ACEOF
20304 /* confdefs.h.  */
20305 _ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h.  */
20309 #include <ieeefp.h>
20310 int
20311 main ()
20312 {
20313 float f; finite(f);
20314   ;
20315   return 0;
20316 }
20317 _ACEOF
20318 rm -f conftest.$ac_objext
20319 if { (ac_try="$ac_compile"
20320 case "(($ac_try" in
20321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20322   *) ac_try_echo=$ac_try;;
20323 esac
20324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20325   (eval "$ac_compile") 2>conftest.er1
20326   ac_status=$?
20327   grep -v '^ *+' conftest.er1 >conftest.err
20328   rm -f conftest.er1
20329   cat conftest.err >&5
20330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331   (exit $ac_status); } &&
20332          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20333   { (case "(($ac_try" in
20334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20335   *) ac_try_echo=$ac_try;;
20336 esac
20337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20338   (eval "$ac_try") 2>&5
20339   ac_status=$?
20340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341   (exit $ac_status); }; } &&
20342          { ac_try='test -s conftest.$ac_objext'
20343   { (case "(($ac_try" in
20344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20345   *) ac_try_echo=$ac_try;;
20346 esac
20347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20348   (eval "$ac_try") 2>&5
20349   ac_status=$?
20350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351   (exit $ac_status); }; }; then
20352   ac_cv_func_finite_in_ieeefp_h=yes
20353 else
20354   echo "$as_me: failed program was:" >&5
20355 sed 's/^/| /' conftest.$ac_ext >&5
20356
20357         ac_cv_func_finite_in_ieeefp_h=no
20358 fi
20359
20360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20361   ac_ext=c
20362 ac_cpp='$CPP $CPPFLAGS'
20363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20366
20367 fi
20368 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20369 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20370
20371 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20372
20373 cat >>confdefs.h <<\_ACEOF
20374 #define HAVE_FINITE_IN_IEEEFP_H 1
20375 _ACEOF
20376
20377 fi
20378
20379
20380
20381 if test "$llvm_cv_platform_type" = "Unix" ; then
20382
20383
20384 for ac_header in stdlib.h unistd.h
20385 do
20386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20388   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20391   echo $ECHO_N "(cached) $ECHO_C" >&6
20392 fi
20393 ac_res=`eval echo '${'$as_ac_Header'}'`
20394                { echo "$as_me:$LINENO: result: $ac_res" >&5
20395 echo "${ECHO_T}$ac_res" >&6; }
20396 else
20397   # Is the header compilable?
20398 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20400 cat >conftest.$ac_ext <<_ACEOF
20401 /* confdefs.h.  */
20402 _ACEOF
20403 cat confdefs.h >>conftest.$ac_ext
20404 cat >>conftest.$ac_ext <<_ACEOF
20405 /* end confdefs.h.  */
20406 $ac_includes_default
20407 #include <$ac_header>
20408 _ACEOF
20409 rm -f conftest.$ac_objext
20410 if { (ac_try="$ac_compile"
20411 case "(($ac_try" in
20412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413   *) ac_try_echo=$ac_try;;
20414 esac
20415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416   (eval "$ac_compile") 2>conftest.er1
20417   ac_status=$?
20418   grep -v '^ *+' conftest.er1 >conftest.err
20419   rm -f conftest.er1
20420   cat conftest.err >&5
20421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422   (exit $ac_status); } &&
20423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20424   { (case "(($ac_try" in
20425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426   *) ac_try_echo=$ac_try;;
20427 esac
20428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20429   (eval "$ac_try") 2>&5
20430   ac_status=$?
20431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432   (exit $ac_status); }; } &&
20433          { ac_try='test -s conftest.$ac_objext'
20434   { (case "(($ac_try" in
20435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436   *) ac_try_echo=$ac_try;;
20437 esac
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439   (eval "$ac_try") 2>&5
20440   ac_status=$?
20441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442   (exit $ac_status); }; }; then
20443   ac_header_compiler=yes
20444 else
20445   echo "$as_me: failed program was:" >&5
20446 sed 's/^/| /' conftest.$ac_ext >&5
20447
20448         ac_header_compiler=no
20449 fi
20450
20451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20453 echo "${ECHO_T}$ac_header_compiler" >&6; }
20454
20455 # Is the header present?
20456 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20458 cat >conftest.$ac_ext <<_ACEOF
20459 /* confdefs.h.  */
20460 _ACEOF
20461 cat confdefs.h >>conftest.$ac_ext
20462 cat >>conftest.$ac_ext <<_ACEOF
20463 /* end confdefs.h.  */
20464 #include <$ac_header>
20465 _ACEOF
20466 if { (ac_try="$ac_cpp conftest.$ac_ext"
20467 case "(($ac_try" in
20468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20469   *) ac_try_echo=$ac_try;;
20470 esac
20471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20472   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20473   ac_status=$?
20474   grep -v '^ *+' conftest.er1 >conftest.err
20475   rm -f conftest.er1
20476   cat conftest.err >&5
20477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478   (exit $ac_status); } >/dev/null; then
20479   if test -s conftest.err; then
20480     ac_cpp_err=$ac_c_preproc_warn_flag
20481     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20482   else
20483     ac_cpp_err=
20484   fi
20485 else
20486   ac_cpp_err=yes
20487 fi
20488 if test -z "$ac_cpp_err"; then
20489   ac_header_preproc=yes
20490 else
20491   echo "$as_me: failed program was:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20493
20494   ac_header_preproc=no
20495 fi
20496
20497 rm -f conftest.err conftest.$ac_ext
20498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20499 echo "${ECHO_T}$ac_header_preproc" >&6; }
20500
20501 # So?  What about this header?
20502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20503   yes:no: )
20504     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20508     ac_header_preproc=yes
20509     ;;
20510   no:yes:* )
20511     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20513     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20514 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20515     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20517     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20518 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20519     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20521     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20523     ( cat <<\_ASBOX
20524 ## ------------------------------ ##
20525 ## Report this to bugs@yourdomain ##
20526 ## ------------------------------ ##
20527 _ASBOX
20528      ) | sed "s/^/$as_me: WARNING:     /" >&2
20529     ;;
20530 esac
20531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20534   echo $ECHO_N "(cached) $ECHO_C" >&6
20535 else
20536   eval "$as_ac_Header=\$ac_header_preproc"
20537 fi
20538 ac_res=`eval echo '${'$as_ac_Header'}'`
20539                { echo "$as_me:$LINENO: result: $ac_res" >&5
20540 echo "${ECHO_T}$ac_res" >&6; }
20541
20542 fi
20543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20544   cat >>confdefs.h <<_ACEOF
20545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20546 _ACEOF
20547
20548 fi
20549
20550 done
20551
20552
20553 for ac_func in getpagesize
20554 do
20555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20556 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20558 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20559   echo $ECHO_N "(cached) $ECHO_C" >&6
20560 else
20561   cat >conftest.$ac_ext <<_ACEOF
20562 /* confdefs.h.  */
20563 _ACEOF
20564 cat confdefs.h >>conftest.$ac_ext
20565 cat >>conftest.$ac_ext <<_ACEOF
20566 /* end confdefs.h.  */
20567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20568    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20569 #define $ac_func innocuous_$ac_func
20570
20571 /* System header to define __stub macros and hopefully few prototypes,
20572     which can conflict with char $ac_func (); below.
20573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20574     <limits.h> exists even on freestanding compilers.  */
20575
20576 #ifdef __STDC__
20577 # include <limits.h>
20578 #else
20579 # include <assert.h>
20580 #endif
20581
20582 #undef $ac_func
20583
20584 /* Override any GCC internal prototype to avoid an error.
20585    Use char because int might match the return type of a GCC
20586    builtin and then its argument prototype would still apply.  */
20587 #ifdef __cplusplus
20588 extern "C"
20589 #endif
20590 char $ac_func ();
20591 /* The GNU C library defines this for functions which it implements
20592     to always fail with ENOSYS.  Some functions are actually named
20593     something starting with __ and the normal name is an alias.  */
20594 #if defined __stub_$ac_func || defined __stub___$ac_func
20595 choke me
20596 #endif
20597
20598 int
20599 main ()
20600 {
20601 return $ac_func ();
20602   ;
20603   return 0;
20604 }
20605 _ACEOF
20606 rm -f conftest.$ac_objext conftest$ac_exeext
20607 if { (ac_try="$ac_link"
20608 case "(($ac_try" in
20609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20610   *) ac_try_echo=$ac_try;;
20611 esac
20612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20613   (eval "$ac_link") 2>conftest.er1
20614   ac_status=$?
20615   grep -v '^ *+' conftest.er1 >conftest.err
20616   rm -f conftest.er1
20617   cat conftest.err >&5
20618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619   (exit $ac_status); } &&
20620          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20621   { (case "(($ac_try" in
20622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623   *) ac_try_echo=$ac_try;;
20624 esac
20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626   (eval "$ac_try") 2>&5
20627   ac_status=$?
20628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629   (exit $ac_status); }; } &&
20630          { ac_try='test -s conftest$ac_exeext'
20631   { (case "(($ac_try" in
20632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633   *) ac_try_echo=$ac_try;;
20634 esac
20635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20636   (eval "$ac_try") 2>&5
20637   ac_status=$?
20638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639   (exit $ac_status); }; }; then
20640   eval "$as_ac_var=yes"
20641 else
20642   echo "$as_me: failed program was:" >&5
20643 sed 's/^/| /' conftest.$ac_ext >&5
20644
20645         eval "$as_ac_var=no"
20646 fi
20647
20648 rm -f core conftest.err conftest.$ac_objext \
20649       conftest$ac_exeext conftest.$ac_ext
20650 fi
20651 ac_res=`eval echo '${'$as_ac_var'}'`
20652                { echo "$as_me:$LINENO: result: $ac_res" >&5
20653 echo "${ECHO_T}$ac_res" >&6; }
20654 if test `eval echo '${'$as_ac_var'}'` = yes; then
20655   cat >>confdefs.h <<_ACEOF
20656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20657 _ACEOF
20658
20659 fi
20660 done
20661
20662 { echo "$as_me:$LINENO: checking for working mmap" >&5
20663 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20664 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20665   echo $ECHO_N "(cached) $ECHO_C" >&6
20666 else
20667   if test "$cross_compiling" = yes; then
20668   ac_cv_func_mmap_fixed_mapped=no
20669 else
20670   cat >conftest.$ac_ext <<_ACEOF
20671 /* confdefs.h.  */
20672 _ACEOF
20673 cat confdefs.h >>conftest.$ac_ext
20674 cat >>conftest.$ac_ext <<_ACEOF
20675 /* end confdefs.h.  */
20676 $ac_includes_default
20677 /* malloc might have been renamed as rpl_malloc. */
20678 #undef malloc
20679
20680 /* Thanks to Mike Haertel and Jim Avera for this test.
20681    Here is a matrix of mmap possibilities:
20682         mmap private not fixed
20683         mmap private fixed at somewhere currently unmapped
20684         mmap private fixed at somewhere already mapped
20685         mmap shared not fixed
20686         mmap shared fixed at somewhere currently unmapped
20687         mmap shared fixed at somewhere already mapped
20688    For private mappings, we should verify that changes cannot be read()
20689    back from the file, nor mmap's back from the file at a different
20690    address.  (There have been systems where private was not correctly
20691    implemented like the infamous i386 svr4.0, and systems where the
20692    VM page cache was not coherent with the file system buffer cache
20693    like early versions of FreeBSD and possibly contemporary NetBSD.)
20694    For shared mappings, we should conversely verify that changes get
20695    propagated back to all the places they're supposed to be.
20696
20697    Grep wants private fixed already mapped.
20698    The main things grep needs to know about mmap are:
20699    * does it exist and is it safe to write into the mmap'd area
20700    * how to use it (BSD variants)  */
20701
20702 #include <fcntl.h>
20703 #include <sys/mman.h>
20704
20705 #if !STDC_HEADERS && !HAVE_STDLIB_H
20706 char *malloc ();
20707 #endif
20708
20709 /* This mess was copied from the GNU getpagesize.h.  */
20710 #if !HAVE_GETPAGESIZE
20711 /* Assume that all systems that can run configure have sys/param.h.  */
20712 # if !HAVE_SYS_PARAM_H
20713 #  define HAVE_SYS_PARAM_H 1
20714 # endif
20715
20716 # ifdef _SC_PAGESIZE
20717 #  define getpagesize() sysconf(_SC_PAGESIZE)
20718 # else /* no _SC_PAGESIZE */
20719 #  if HAVE_SYS_PARAM_H
20720 #   include <sys/param.h>
20721 #   ifdef EXEC_PAGESIZE
20722 #    define getpagesize() EXEC_PAGESIZE
20723 #   else /* no EXEC_PAGESIZE */
20724 #    ifdef NBPG
20725 #     define getpagesize() NBPG * CLSIZE
20726 #     ifndef CLSIZE
20727 #      define CLSIZE 1
20728 #     endif /* no CLSIZE */
20729 #    else /* no NBPG */
20730 #     ifdef NBPC
20731 #      define getpagesize() NBPC
20732 #     else /* no NBPC */
20733 #      ifdef PAGESIZE
20734 #       define getpagesize() PAGESIZE
20735 #      endif /* PAGESIZE */
20736 #     endif /* no NBPC */
20737 #    endif /* no NBPG */
20738 #   endif /* no EXEC_PAGESIZE */
20739 #  else /* no HAVE_SYS_PARAM_H */
20740 #   define getpagesize() 8192   /* punt totally */
20741 #  endif /* no HAVE_SYS_PARAM_H */
20742 # endif /* no _SC_PAGESIZE */
20743
20744 #endif /* no HAVE_GETPAGESIZE */
20745
20746 int
20747 main ()
20748 {
20749   char *data, *data2, *data3;
20750   int i, pagesize;
20751   int fd;
20752
20753   pagesize = getpagesize ();
20754
20755   /* First, make a file with some known garbage in it. */
20756   data = (char *) malloc (pagesize);
20757   if (!data)
20758     return 1;
20759   for (i = 0; i < pagesize; ++i)
20760     *(data + i) = rand ();
20761   umask (0);
20762   fd = creat ("conftest.mmap", 0600);
20763   if (fd < 0)
20764     return 1;
20765   if (write (fd, data, pagesize) != pagesize)
20766     return 1;
20767   close (fd);
20768
20769   /* Next, try to mmap the file at a fixed address which already has
20770      something else allocated at it.  If we can, also make sure that
20771      we see the same garbage.  */
20772   fd = open ("conftest.mmap", O_RDWR);
20773   if (fd < 0)
20774     return 1;
20775   data2 = (char *) malloc (2 * pagesize);
20776   if (!data2)
20777     return 1;
20778   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20779   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20780                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20781     return 1;
20782   for (i = 0; i < pagesize; ++i)
20783     if (*(data + i) != *(data2 + i))
20784       return 1;
20785
20786   /* Finally, make sure that changes to the mapped area do not
20787      percolate back to the file as seen by read().  (This is a bug on
20788      some variants of i386 svr4.0.)  */
20789   for (i = 0; i < pagesize; ++i)
20790     *(data2 + i) = *(data2 + i) + 1;
20791   data3 = (char *) malloc (pagesize);
20792   if (!data3)
20793     return 1;
20794   if (read (fd, data3, pagesize) != pagesize)
20795     return 1;
20796   for (i = 0; i < pagesize; ++i)
20797     if (*(data + i) != *(data3 + i))
20798       return 1;
20799   close (fd);
20800   return 0;
20801 }
20802 _ACEOF
20803 rm -f conftest$ac_exeext
20804 if { (ac_try="$ac_link"
20805 case "(($ac_try" in
20806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20807   *) ac_try_echo=$ac_try;;
20808 esac
20809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20810   (eval "$ac_link") 2>&5
20811   ac_status=$?
20812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20814   { (case "(($ac_try" in
20815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20816   *) ac_try_echo=$ac_try;;
20817 esac
20818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20819   (eval "$ac_try") 2>&5
20820   ac_status=$?
20821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822   (exit $ac_status); }; }; then
20823   ac_cv_func_mmap_fixed_mapped=yes
20824 else
20825   echo "$as_me: program exited with status $ac_status" >&5
20826 echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.$ac_ext >&5
20828
20829 ( exit $ac_status )
20830 ac_cv_func_mmap_fixed_mapped=no
20831 fi
20832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20833 fi
20834
20835
20836 fi
20837 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20838 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20839 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20840
20841 cat >>confdefs.h <<\_ACEOF
20842 #define HAVE_MMAP 1
20843 _ACEOF
20844
20845 fi
20846 rm -f conftest.mmap
20847
20848   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20849 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20850 if test "${ac_cv_func_mmap_file+set}" = set; then
20851   echo $ECHO_N "(cached) $ECHO_C" >&6
20852 else
20853    ac_ext=c
20854 ac_cpp='$CPP $CPPFLAGS'
20855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20858
20859   if test "$cross_compiling" = yes; then
20860   ac_cv_func_mmap_file=no
20861 else
20862   cat >conftest.$ac_ext <<_ACEOF
20863
20864     /* confdefs.h.  */
20865 _ACEOF
20866 cat confdefs.h >>conftest.$ac_ext
20867 cat >>conftest.$ac_ext <<_ACEOF
20868 /* end confdefs.h.  */
20869
20870 #include <sys/types.h>
20871 #include <sys/mman.h>
20872 #include <fcntl.h>
20873
20874 int
20875 main ()
20876 {
20877
20878   int fd;
20879   fd = creat ("foo",0777);
20880   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20881   unlink ("foo");
20882   return (fd != (int) MAP_FAILED);
20883   ;
20884   return 0;
20885 }
20886 _ACEOF
20887 rm -f conftest$ac_exeext
20888 if { (ac_try="$ac_link"
20889 case "(($ac_try" in
20890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20891   *) ac_try_echo=$ac_try;;
20892 esac
20893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20894   (eval "$ac_link") 2>&5
20895   ac_status=$?
20896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20898   { (case "(($ac_try" in
20899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20900   *) ac_try_echo=$ac_try;;
20901 esac
20902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20903   (eval "$ac_try") 2>&5
20904   ac_status=$?
20905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906   (exit $ac_status); }; }; then
20907   ac_cv_func_mmap_file=yes
20908 else
20909   echo "$as_me: program exited with status $ac_status" >&5
20910 echo "$as_me: failed program was:" >&5
20911 sed 's/^/| /' conftest.$ac_ext >&5
20912
20913 ( exit $ac_status )
20914 ac_cv_func_mmap_file=no
20915 fi
20916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20917 fi
20918
20919
20920   ac_ext=c
20921 ac_cpp='$CPP $CPPFLAGS'
20922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20925
20926
20927 fi
20928 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20929 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20930 if test "$ac_cv_func_mmap_file" = yes; then
20931
20932 cat >>confdefs.h <<\_ACEOF
20933 #define HAVE_MMAP_FILE
20934 _ACEOF
20935
20936    MMAP_FILE=yes
20937
20938 fi
20939
20940   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20941 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20942 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20943   echo $ECHO_N "(cached) $ECHO_C" >&6
20944 else
20945   if test "$llvm_cv_os_type" = "Interix" ; then
20946    ac_cv_need_dev_zero_for_mmap=yes
20947  else
20948    ac_cv_need_dev_zero_for_mmap=no
20949  fi
20950
20951 fi
20952 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20953 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20954 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20955
20956 cat >>confdefs.h <<\_ACEOF
20957 #define NEED_DEV_ZERO_FOR_MMAP 1
20958 _ACEOF
20959
20960 fi
20961
20962   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20963   then
20964     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20965 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20966   fi
20967   if test "$ac_cv_func_mmap_file" = "no"
20968   then
20969     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20970 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20971   fi
20972 fi
20973
20974 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20975 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20976 ac_ext=cpp
20977 ac_cpp='$CXXCPP $CPPFLAGS'
20978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20981
20982 cat >conftest.$ac_ext <<_ACEOF
20983 /* confdefs.h.  */
20984 _ACEOF
20985 cat confdefs.h >>conftest.$ac_ext
20986 cat >>conftest.$ac_ext <<_ACEOF
20987 /* end confdefs.h.  */
20988 int main() {
20989         volatile unsigned long val = 1;
20990         __sync_synchronize();
20991         __sync_val_compare_and_swap(&val, 1, 0);
20992         __sync_add_and_fetch(&val, 1);
20993         __sync_sub_and_fetch(&val, 1);
20994         return 0;
20995       }
20996
20997 _ACEOF
20998 rm -f conftest.$ac_objext conftest$ac_exeext
20999 if { (ac_try="$ac_link"
21000 case "(($ac_try" in
21001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002   *) ac_try_echo=$ac_try;;
21003 esac
21004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005   (eval "$ac_link") 2>conftest.er1
21006   ac_status=$?
21007   grep -v '^ *+' conftest.er1 >conftest.err
21008   rm -f conftest.er1
21009   cat conftest.err >&5
21010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011   (exit $ac_status); } &&
21012          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21013   { (case "(($ac_try" in
21014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21015   *) ac_try_echo=$ac_try;;
21016 esac
21017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21018   (eval "$ac_try") 2>&5
21019   ac_status=$?
21020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021   (exit $ac_status); }; } &&
21022          { ac_try='test -s conftest$ac_exeext'
21023   { (case "(($ac_try" in
21024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21025   *) ac_try_echo=$ac_try;;
21026 esac
21027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21028   (eval "$ac_try") 2>&5
21029   ac_status=$?
21030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031   (exit $ac_status); }; }; then
21032   ac_ext=c
21033 ac_cpp='$CPP $CPPFLAGS'
21034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21037
21038   { echo "$as_me:$LINENO: result: yes" >&5
21039 echo "${ECHO_T}yes" >&6; }
21040
21041 cat >>confdefs.h <<\_ACEOF
21042 #define LLVM_HAS_ATOMICS 1
21043 _ACEOF
21044
21045 else
21046   echo "$as_me: failed program was:" >&5
21047 sed 's/^/| /' conftest.$ac_ext >&5
21048
21049         { echo "$as_me:$LINENO: result: no" >&5
21050 echo "${ECHO_T}no" >&6; }
21051
21052 cat >>confdefs.h <<\_ACEOF
21053 #define LLVM_HAS_ATOMICS 0
21054 _ACEOF
21055
21056   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21057 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21058 fi
21059
21060 rm -f core conftest.err conftest.$ac_objext \
21061       conftest$ac_exeext conftest.$ac_ext
21062
21063
21064 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21065   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21066 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21067 if test "${llvm_cv_linux_mixed+set}" = set; then
21068   echo $ECHO_N "(cached) $ECHO_C" >&6
21069 else
21070    ac_ext=c
21071 ac_cpp='$CPP $CPPFLAGS'
21072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21075
21076   cat >conftest.$ac_ext <<_ACEOF
21077 /* confdefs.h.  */
21078 _ACEOF
21079 cat confdefs.h >>conftest.$ac_ext
21080 cat >>conftest.$ac_ext <<_ACEOF
21081 /* end confdefs.h.  */
21082 #ifndef __x86_64__
21083        error: Not x86-64 even if uname says so!
21084       #endif
21085
21086 int
21087 main ()
21088 {
21089
21090   ;
21091   return 0;
21092 }
21093 _ACEOF
21094 rm -f conftest.$ac_objext
21095 if { (ac_try="$ac_compile"
21096 case "(($ac_try" in
21097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21098   *) ac_try_echo=$ac_try;;
21099 esac
21100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21101   (eval "$ac_compile") 2>conftest.er1
21102   ac_status=$?
21103   grep -v '^ *+' conftest.er1 >conftest.err
21104   rm -f conftest.er1
21105   cat conftest.err >&5
21106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107   (exit $ac_status); } &&
21108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21109   { (case "(($ac_try" in
21110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21111   *) ac_try_echo=$ac_try;;
21112 esac
21113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21114   (eval "$ac_try") 2>&5
21115   ac_status=$?
21116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117   (exit $ac_status); }; } &&
21118          { ac_try='test -s conftest.$ac_objext'
21119   { (case "(($ac_try" in
21120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21121   *) ac_try_echo=$ac_try;;
21122 esac
21123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21124   (eval "$ac_try") 2>&5
21125   ac_status=$?
21126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127   (exit $ac_status); }; }; then
21128   llvm_cv_linux_mixed=no
21129 else
21130   echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21132
21133         llvm_cv_linux_mixed=yes
21134 fi
21135
21136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21137   ac_ext=c
21138 ac_cpp='$CPP $CPPFLAGS'
21139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21142
21143
21144 fi
21145 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21146 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21147
21148   if test "$llvm_cv_linux_mixed" = "yes"; then
21149     llvm_cv_target_arch="x86"
21150     ARCH="x86"
21151   fi
21152 fi
21153
21154
21155 for ac_func in __dso_handle
21156 do
21157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21158 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21160 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21161   echo $ECHO_N "(cached) $ECHO_C" >&6
21162 else
21163   cat >conftest.$ac_ext <<_ACEOF
21164 /* confdefs.h.  */
21165 _ACEOF
21166 cat confdefs.h >>conftest.$ac_ext
21167 cat >>conftest.$ac_ext <<_ACEOF
21168 /* end confdefs.h.  */
21169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21170    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21171 #define $ac_func innocuous_$ac_func
21172
21173 /* System header to define __stub macros and hopefully few prototypes,
21174     which can conflict with char $ac_func (); below.
21175     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21176     <limits.h> exists even on freestanding compilers.  */
21177
21178 #ifdef __STDC__
21179 # include <limits.h>
21180 #else
21181 # include <assert.h>
21182 #endif
21183
21184 #undef $ac_func
21185
21186 /* Override any GCC internal prototype to avoid an error.
21187    Use char because int might match the return type of a GCC
21188    builtin and then its argument prototype would still apply.  */
21189 #ifdef __cplusplus
21190 extern "C"
21191 #endif
21192 char $ac_func ();
21193 /* The GNU C library defines this for functions which it implements
21194     to always fail with ENOSYS.  Some functions are actually named
21195     something starting with __ and the normal name is an alias.  */
21196 #if defined __stub_$ac_func || defined __stub___$ac_func
21197 choke me
21198 #endif
21199
21200 int
21201 main ()
21202 {
21203 return $ac_func ();
21204   ;
21205   return 0;
21206 }
21207 _ACEOF
21208 rm -f conftest.$ac_objext conftest$ac_exeext
21209 if { (ac_try="$ac_link"
21210 case "(($ac_try" in
21211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21212   *) ac_try_echo=$ac_try;;
21213 esac
21214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21215   (eval "$ac_link") 2>conftest.er1
21216   ac_status=$?
21217   grep -v '^ *+' conftest.er1 >conftest.err
21218   rm -f conftest.er1
21219   cat conftest.err >&5
21220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221   (exit $ac_status); } &&
21222          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21223   { (case "(($ac_try" in
21224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21225   *) ac_try_echo=$ac_try;;
21226 esac
21227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21228   (eval "$ac_try") 2>&5
21229   ac_status=$?
21230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231   (exit $ac_status); }; } &&
21232          { ac_try='test -s conftest$ac_exeext'
21233   { (case "(($ac_try" in
21234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21235   *) ac_try_echo=$ac_try;;
21236 esac
21237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21238   (eval "$ac_try") 2>&5
21239   ac_status=$?
21240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241   (exit $ac_status); }; }; then
21242   eval "$as_ac_var=yes"
21243 else
21244   echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21246
21247         eval "$as_ac_var=no"
21248 fi
21249
21250 rm -f core conftest.err conftest.$ac_objext \
21251       conftest$ac_exeext conftest.$ac_ext
21252 fi
21253 ac_res=`eval echo '${'$as_ac_var'}'`
21254                { echo "$as_me:$LINENO: result: $ac_res" >&5
21255 echo "${ECHO_T}$ac_res" >&6; }
21256 if test `eval echo '${'$as_ac_var'}'` = yes; then
21257   cat >>confdefs.h <<_ACEOF
21258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21259 _ACEOF
21260
21261 fi
21262 done
21263
21264
21265 SHLIBEXT=$libltdl_cv_shlibext
21266
21267
21268 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21269
21270
21271 # Translate the various configuration directories and other basic
21272 # information into substitutions that will end up in Makefile.config.in
21273 # that these configured values can be used by the makefiles
21274 if test "${prefix}" = "NONE" ; then
21275   prefix="/usr/local"
21276 fi
21277 eval LLVM_PREFIX="${prefix}";
21278 eval LLVM_BINDIR="${prefix}/bin";
21279 eval LLVM_DATADIR="${prefix}/share/llvm";
21280 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21281 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21282 eval LLVM_INCLUDEDIR="${prefix}/include";
21283 eval LLVM_INFODIR="${prefix}/info";
21284 eval LLVM_MANDIR="${prefix}/man";
21285 LLVM_CONFIGTIME=`date`
21286
21287
21288
21289
21290
21291
21292
21293
21294
21295
21296 # Place the various directores into the config.h file as #defines so that we
21297 # can know about the installation paths within LLVM.
21298
21299 cat >>confdefs.h <<_ACEOF
21300 #define LLVM_PREFIX "$LLVM_PREFIX"
21301 _ACEOF
21302
21303
21304 cat >>confdefs.h <<_ACEOF
21305 #define LLVM_BINDIR "$LLVM_BINDIR"
21306 _ACEOF
21307
21308
21309 cat >>confdefs.h <<_ACEOF
21310 #define LLVM_DATADIR "$LLVM_DATADIR"
21311 _ACEOF
21312
21313
21314 cat >>confdefs.h <<_ACEOF
21315 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21316 _ACEOF
21317
21318
21319 cat >>confdefs.h <<_ACEOF
21320 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21321 _ACEOF
21322
21323
21324 cat >>confdefs.h <<_ACEOF
21325 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21326 _ACEOF
21327
21328
21329 cat >>confdefs.h <<_ACEOF
21330 #define LLVM_INFODIR "$LLVM_INFODIR"
21331 _ACEOF
21332
21333
21334 cat >>confdefs.h <<_ACEOF
21335 #define LLVM_MANDIR "$LLVM_MANDIR"
21336 _ACEOF
21337
21338
21339 cat >>confdefs.h <<_ACEOF
21340 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21341 _ACEOF
21342
21343
21344 cat >>confdefs.h <<_ACEOF
21345 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21346 _ACEOF
21347
21348
21349 # Determine which bindings to build.
21350 if test "$BINDINGS_TO_BUILD" = auto ; then
21351   BINDINGS_TO_BUILD=""
21352   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21353     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21354   fi
21355 fi
21356 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21357
21358
21359 # This isn't really configurey, but it avoids having to repeat the list in
21360 # other files.
21361 ALL_BINDINGS=ocaml
21362
21363
21364 # Do any work necessary to ensure that bindings have what they need.
21365 binding_prereqs_failed=0
21366 for a_binding in $BINDINGS_TO_BUILD ; do
21367   case "$a_binding" in
21368   ocaml)
21369     if test "x$OCAMLC" = x ; then
21370       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21371 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21372       binding_prereqs_failed=1
21373     fi
21374     if test "x$OCAMLDEP" = x ; then
21375       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21376 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21377       binding_prereqs_failed=1
21378     fi
21379     if test "x$OCAMLOPT" = x ; then
21380       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21381 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21382           fi
21383     if test "x$with_ocaml_libdir" != xauto ; then
21384       OCAML_LIBDIR=$with_ocaml_libdir
21385
21386     else
21387       ocaml_stdlib="`"$OCAMLC" -where`"
21388       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21389       then
21390         # ocaml stdlib is beneath our prefix; use stdlib
21391         OCAML_LIBDIR=$ocaml_stdlib
21392
21393       else
21394         # ocaml stdlib is outside our prefix; use libdir/ocaml
21395         OCAML_LIBDIR=${prefix}/lib/ocaml
21396
21397       fi
21398     fi
21399     ;;
21400   esac
21401 done
21402 if test "$binding_prereqs_failed" = 1 ; then
21403   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21404 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21405    { (exit 1); exit 1; }; }
21406 fi
21407
21408 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21409 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21410 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21411   echo $ECHO_N "(cached) $ECHO_C" >&6
21412 else
21413    ac_ext=cpp
21414 ac_cpp='$CXXCPP $CPPFLAGS'
21415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21418
21419   oldcxxflags="$CXXFLAGS"
21420   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21421   cat >conftest.$ac_ext <<_ACEOF
21422 /* confdefs.h.  */
21423 _ACEOF
21424 cat confdefs.h >>conftest.$ac_ext
21425 cat >>conftest.$ac_ext <<_ACEOF
21426 /* end confdefs.h.  */
21427 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21428 int
21429 main ()
21430 {
21431 X<int>().f();
21432   ;
21433   return 0;
21434 }
21435 _ACEOF
21436 rm -f conftest.$ac_objext
21437 if { (ac_try="$ac_compile"
21438 case "(($ac_try" in
21439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21440   *) ac_try_echo=$ac_try;;
21441 esac
21442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21443   (eval "$ac_compile") 2>conftest.er1
21444   ac_status=$?
21445   grep -v '^ *+' conftest.er1 >conftest.err
21446   rm -f conftest.er1
21447   cat conftest.err >&5
21448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449   (exit $ac_status); } &&
21450          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21451   { (case "(($ac_try" in
21452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21453   *) ac_try_echo=$ac_try;;
21454 esac
21455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21456   (eval "$ac_try") 2>&5
21457   ac_status=$?
21458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459   (exit $ac_status); }; } &&
21460          { ac_try='test -s conftest.$ac_objext'
21461   { (case "(($ac_try" in
21462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21463   *) ac_try_echo=$ac_try;;
21464 esac
21465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21466   (eval "$ac_try") 2>&5
21467   ac_status=$?
21468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469   (exit $ac_status); }; }; then
21470   llvm_cv_cxx_visibility_inlines_hidden=yes
21471 else
21472   echo "$as_me: failed program was:" >&5
21473 sed 's/^/| /' conftest.$ac_ext >&5
21474
21475         llvm_cv_cxx_visibility_inlines_hidden=no
21476 fi
21477
21478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21479   CXXFLAGS="$oldcxxflags"
21480   ac_ext=c
21481 ac_cpp='$CPP $CPPFLAGS'
21482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21485
21486
21487 fi
21488 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21489 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21490 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21491   ENABLE_VISIBILITY_INLINES_HIDDEN=1
21492
21493 else
21494   ENABLE_VISIBILITY_INLINES_HIDDEN=0
21495
21496 fi
21497
21498
21499 if test "$llvm_cv_link_use_r" = "yes" ; then
21500   RPATH="-Wl,-R"
21501 else
21502   RPATH="-Wl,-rpath"
21503 fi
21504
21505
21506 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21507   RDYNAMIC="-rdynamic"
21508 else
21509   RDYNAMIC=""
21510 fi
21511
21512
21513
21514
21515 ac_config_files="$ac_config_files Makefile.common"
21516
21517 ac_config_files="$ac_config_files Makefile.llvm.config"
21518
21519
21520 ac_config_commands="$ac_config_commands Makefile"
21521
21522
21523 ac_config_commands="$ac_config_commands lib/Makefile"
21524
21525
21526 ac_config_commands="$ac_config_commands lib/sample/Makefile"
21527
21528
21529 ac_config_commands="$ac_config_commands tools/Makefile"
21530
21531
21532 ac_config_commands="$ac_config_commands tools/sample/Makefile"
21533
21534
21535
21536 cat >confcache <<\_ACEOF
21537 # This file is a shell script that caches the results of configure
21538 # tests run on this system so they can be shared between configure
21539 # scripts and configure runs, see configure's option --config-cache.
21540 # It is not useful on other systems.  If it contains results you don't
21541 # want to keep, you may remove or edit it.
21542 #
21543 # config.status only pays attention to the cache file if you give it
21544 # the --recheck option to rerun configure.
21545 #
21546 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21547 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21548 # following values.
21549
21550 _ACEOF
21551
21552 # The following way of writing the cache mishandles newlines in values,
21553 # but we know of no workaround that is simple, portable, and efficient.
21554 # So, we kill variables containing newlines.
21555 # Ultrix sh set writes to stderr and can't be redirected directly,
21556 # and sets the high bit in the cache file unless we assign to the vars.
21557 (
21558   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21559     eval ac_val=\$$ac_var
21560     case $ac_val in #(
21561     *${as_nl}*)
21562       case $ac_var in #(
21563       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21564 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21565       esac
21566       case $ac_var in #(
21567       _ | IFS | as_nl) ;; #(
21568       *) $as_unset $ac_var ;;
21569       esac ;;
21570     esac
21571   done
21572
21573   (set) 2>&1 |
21574     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21575     *${as_nl}ac_space=\ *)
21576       # `set' does not quote correctly, so add quotes (double-quote
21577       # substitution turns \\\\ into \\, and sed turns \\ into \).
21578       sed -n \
21579         "s/'/'\\\\''/g;
21580           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21581       ;; #(
21582     *)
21583       # `set' quotes correctly as required by POSIX, so do not add quotes.
21584       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21585       ;;
21586     esac |
21587     sort
21588 ) |
21589   sed '
21590      /^ac_cv_env_/b end
21591      t clear
21592      :clear
21593      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21594      t end
21595      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21596      :end' >>confcache
21597 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21598   if test -w "$cache_file"; then
21599     test "x$cache_file" != "x/dev/null" &&
21600       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21601 echo "$as_me: updating cache $cache_file" >&6;}
21602     cat confcache >$cache_file
21603   else
21604     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21605 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21606   fi
21607 fi
21608 rm -f confcache
21609
21610 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21611 # Let make expand exec_prefix.
21612 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21613
21614 # Transform confdefs.h into DEFS.
21615 # Protect against shell expansion while executing Makefile rules.
21616 # Protect against Makefile macro expansion.
21617 #
21618 # If the first sed substitution is executed (which looks for macros that
21619 # take arguments), then branch to the quote section.  Otherwise,
21620 # look for a macro that doesn't take arguments.
21621 ac_script='
21622 t clear
21623 :clear
21624 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
21625 t quote
21626 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
21627 t quote
21628 b any
21629 :quote
21630 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21631 s/\[/\\&/g
21632 s/\]/\\&/g
21633 s/\$/$$/g
21634 H
21635 :any
21636 ${
21637         g
21638         s/^\n//
21639         s/\n/ /g
21640         p
21641 }
21642 '
21643 DEFS=`sed -n "$ac_script" confdefs.h`
21644
21645
21646 ac_libobjs=
21647 ac_ltlibobjs=
21648 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21649   # 1. Remove the extension, and $U if already installed.
21650   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21651   ac_i=`echo "$ac_i" | sed "$ac_script"`
21652   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21653   #    will be set to the directory where LIBOBJS objects are built.
21654   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21655   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21656 done
21657 LIBOBJS=$ac_libobjs
21658
21659 LTLIBOBJS=$ac_ltlibobjs
21660
21661
21662 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21663   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21664 Usually this means the macro was only invoked conditionally." >&5
21665 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21666 Usually this means the macro was only invoked conditionally." >&2;}
21667    { (exit 1); exit 1; }; }
21668 fi
21669 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21670   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21671 Usually this means the macro was only invoked conditionally." >&5
21672 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21673 Usually this means the macro was only invoked conditionally." >&2;}
21674    { (exit 1); exit 1; }; }
21675 fi
21676
21677 : ${CONFIG_STATUS=./config.status}
21678 ac_clean_files_save=$ac_clean_files
21679 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21680 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21681 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21682 cat >$CONFIG_STATUS <<_ACEOF
21683 #! $SHELL
21684 # Generated by $as_me.
21685 # Run this file to recreate the current configuration.
21686 # Compiler output produced by configure, useful for debugging
21687 # configure, is in config.log if it exists.
21688
21689 debug=false
21690 ac_cs_recheck=false
21691 ac_cs_silent=false
21692 SHELL=\${CONFIG_SHELL-$SHELL}
21693 _ACEOF
21694
21695 cat >>$CONFIG_STATUS <<\_ACEOF
21696 ## --------------------- ##
21697 ## M4sh Initialization.  ##
21698 ## --------------------- ##
21699
21700 # Be Bourne compatible
21701 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21702   emulate sh
21703   NULLCMD=:
21704   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21705   # is contrary to our usage.  Disable this feature.
21706   alias -g '${1+"$@"}'='"$@"'
21707   setopt NO_GLOB_SUBST
21708 else
21709   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21710 fi
21711 BIN_SH=xpg4; export BIN_SH # for Tru64
21712 DUALCASE=1; export DUALCASE # for MKS sh
21713
21714
21715 # PATH needs CR
21716 # Avoid depending upon Character Ranges.
21717 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21718 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21719 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21720 as_cr_digits='0123456789'
21721 as_cr_alnum=$as_cr_Letters$as_cr_digits
21722
21723 # The user is always right.
21724 if test "${PATH_SEPARATOR+set}" != set; then
21725   echo "#! /bin/sh" >conf$$.sh
21726   echo  "exit 0"   >>conf$$.sh
21727   chmod +x conf$$.sh
21728   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21729     PATH_SEPARATOR=';'
21730   else
21731     PATH_SEPARATOR=:
21732   fi
21733   rm -f conf$$.sh
21734 fi
21735
21736 # Support unset when possible.
21737 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21738   as_unset=unset
21739 else
21740   as_unset=false
21741 fi
21742
21743
21744 # IFS
21745 # We need space, tab and new line, in precisely that order.  Quoting is
21746 # there to prevent editors from complaining about space-tab.
21747 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21748 # splitting by setting IFS to empty value.)
21749 as_nl='
21750 '
21751 IFS=" ""        $as_nl"
21752
21753 # Find who we are.  Look in the path if we contain no directory separator.
21754 case $0 in
21755   *[\\/]* ) as_myself=$0 ;;
21756   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21757 for as_dir in $PATH
21758 do
21759   IFS=$as_save_IFS
21760   test -z "$as_dir" && as_dir=.
21761   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21762 done
21763 IFS=$as_save_IFS
21764
21765      ;;
21766 esac
21767 # We did not find ourselves, most probably we were run as `sh COMMAND'
21768 # in which case we are not to be found in the path.
21769 if test "x$as_myself" = x; then
21770   as_myself=$0
21771 fi
21772 if test ! -f "$as_myself"; then
21773   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21774   { (exit 1); exit 1; }
21775 fi
21776
21777 # Work around bugs in pre-3.0 UWIN ksh.
21778 for as_var in ENV MAIL MAILPATH
21779 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21780 done
21781 PS1='$ '
21782 PS2='> '
21783 PS4='+ '
21784
21785 # NLS nuisances.
21786 for as_var in \
21787   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21788   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21789   LC_TELEPHONE LC_TIME
21790 do
21791   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21792     eval $as_var=C; export $as_var
21793   else
21794     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21795   fi
21796 done
21797
21798 # Required to use basename.
21799 if expr a : '\(a\)' >/dev/null 2>&1 &&
21800    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21801   as_expr=expr
21802 else
21803   as_expr=false
21804 fi
21805
21806 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21807   as_basename=basename
21808 else
21809   as_basename=false
21810 fi
21811
21812
21813 # Name of the executable.
21814 as_me=`$as_basename -- "$0" ||
21815 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21816          X"$0" : 'X\(//\)$' \| \
21817          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21818 echo X/"$0" |
21819     sed '/^.*\/\([^/][^/]*\)\/*$/{
21820             s//\1/
21821             q
21822           }
21823           /^X\/\(\/\/\)$/{
21824             s//\1/
21825             q
21826           }
21827           /^X\/\(\/\).*/{
21828             s//\1/
21829             q
21830           }
21831           s/.*/./; q'`
21832
21833 # CDPATH.
21834 $as_unset CDPATH
21835
21836
21837
21838   as_lineno_1=$LINENO
21839   as_lineno_2=$LINENO
21840   test "x$as_lineno_1" != "x$as_lineno_2" &&
21841   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21842
21843   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21844   # uniformly replaced by the line number.  The first 'sed' inserts a
21845   # line-number line after each line using $LINENO; the second 'sed'
21846   # does the real work.  The second script uses 'N' to pair each
21847   # line-number line with the line containing $LINENO, and appends
21848   # trailing '-' during substitution so that $LINENO is not a special
21849   # case at line end.
21850   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21851   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21852   # E. McMahon (1931-1989) for sed's syntax.  :-)
21853   sed -n '
21854     p
21855     /[$]LINENO/=
21856   ' <$as_myself |
21857     sed '
21858       s/[$]LINENO.*/&-/
21859       t lineno
21860       b
21861       :lineno
21862       N
21863       :loop
21864       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21865       t loop
21866       s/-\n.*//
21867     ' >$as_me.lineno &&
21868   chmod +x "$as_me.lineno" ||
21869     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21870    { (exit 1); exit 1; }; }
21871
21872   # Don't try to exec as it changes $[0], causing all sort of problems
21873   # (the dirname of $[0] is not the place where we might find the
21874   # original and so on.  Autoconf is especially sensitive to this).
21875   . "./$as_me.lineno"
21876   # Exit status is that of the last command.
21877   exit
21878 }
21879
21880
21881 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21882   as_dirname=dirname
21883 else
21884   as_dirname=false
21885 fi
21886
21887 ECHO_C= ECHO_N= ECHO_T=
21888 case `echo -n x` in
21889 -n*)
21890   case `echo 'x\c'` in
21891   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21892   *)   ECHO_C='\c';;
21893   esac;;
21894 *)
21895   ECHO_N='-n';;
21896 esac
21897
21898 if expr a : '\(a\)' >/dev/null 2>&1 &&
21899    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21900   as_expr=expr
21901 else
21902   as_expr=false
21903 fi
21904
21905 rm -f conf$$ conf$$.exe conf$$.file
21906 if test -d conf$$.dir; then
21907   rm -f conf$$.dir/conf$$.file
21908 else
21909   rm -f conf$$.dir
21910   mkdir conf$$.dir
21911 fi
21912 echo >conf$$.file
21913 if ln -s conf$$.file conf$$ 2>/dev/null; then
21914   as_ln_s='ln -s'
21915   # ... but there are two gotchas:
21916   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21917   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21918   # In both cases, we have to default to `cp -p'.
21919   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21920     as_ln_s='cp -p'
21921 elif ln conf$$.file conf$$ 2>/dev/null; then
21922   as_ln_s=ln
21923 else
21924   as_ln_s='cp -p'
21925 fi
21926 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21927 rmdir conf$$.dir 2>/dev/null
21928
21929 if mkdir -p . 2>/dev/null; then
21930   as_mkdir_p=:
21931 else
21932   test -d ./-p && rmdir ./-p
21933   as_mkdir_p=false
21934 fi
21935
21936 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21937 # systems may use methods other than mode bits to determine executability.
21938 cat >conf$$.file <<_ASEOF
21939 #! /bin/sh
21940 exit 0
21941 _ASEOF
21942 chmod +x conf$$.file
21943 if test -x conf$$.file >/dev/null 2>&1; then
21944   as_executable_p="test -x"
21945 else
21946   as_executable_p=:
21947 fi
21948 rm -f conf$$.file
21949
21950 # Sed expression to map a string onto a valid CPP name.
21951 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21952
21953 # Sed expression to map a string onto a valid variable name.
21954 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21955
21956
21957 exec 6>&1
21958
21959 # Save the log message, to keep $[0] and so on meaningful, and to
21960 # report actual input values of CONFIG_FILES etc. instead of their
21961 # values after options handling.
21962 ac_log="
21963 This file was extended by [SAMPLE] $as_me [x.xx], which was
21964 generated by GNU Autoconf 2.60.  Invocation command line was
21965
21966   CONFIG_FILES    = $CONFIG_FILES
21967   CONFIG_HEADERS  = $CONFIG_HEADERS
21968   CONFIG_LINKS    = $CONFIG_LINKS
21969   CONFIG_COMMANDS = $CONFIG_COMMANDS
21970   $ $0 $@
21971
21972 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21973 "
21974
21975 _ACEOF
21976
21977 cat >>$CONFIG_STATUS <<_ACEOF
21978 # Files that config.status was made for.
21979 config_files="$ac_config_files"
21980 config_commands="$ac_config_commands"
21981
21982 _ACEOF
21983
21984 cat >>$CONFIG_STATUS <<\_ACEOF
21985 ac_cs_usage="\
21986 \`$as_me' instantiates files from templates according to the
21987 current configuration.
21988
21989 Usage: $0 [OPTIONS] [FILE]...
21990
21991   -h, --help       print this help, then exit
21992   -V, --version    print version number, then exit
21993   -q, --quiet      do not print progress messages
21994   -d, --debug      don't remove temporary files
21995       --recheck    update $as_me by reconfiguring in the same conditions
21996   --file=FILE[:TEMPLATE]
21997                    instantiate the configuration file FILE
21998
21999 Configuration files:
22000 $config_files
22001
22002 Configuration commands:
22003 $config_commands
22004
22005 Report bugs to <bug-autoconf@gnu.org>."
22006
22007 _ACEOF
22008 cat >>$CONFIG_STATUS <<_ACEOF
22009 ac_cs_version="\\
22010 [SAMPLE] config.status [x.xx]
22011 configured by $0, generated by GNU Autoconf 2.60,
22012   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22013
22014 Copyright (C) 2006 Free Software Foundation, Inc.
22015 This config.status script is free software; the Free Software Foundation
22016 gives unlimited permission to copy, distribute and modify it."
22017
22018 ac_pwd='$ac_pwd'
22019 srcdir='$srcdir'
22020 INSTALL='$INSTALL'
22021 _ACEOF
22022
22023 cat >>$CONFIG_STATUS <<\_ACEOF
22024 # If no file are specified by the user, then we need to provide default
22025 # value.  By we need to know if files were specified by the user.
22026 ac_need_defaults=:
22027 while test $# != 0
22028 do
22029   case $1 in
22030   --*=*)
22031     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22032     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22033     ac_shift=:
22034     ;;
22035   *)
22036     ac_option=$1
22037     ac_optarg=$2
22038     ac_shift=shift
22039     ;;
22040   esac
22041
22042   case $ac_option in
22043   # Handling of the options.
22044   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22045     ac_cs_recheck=: ;;
22046   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22047     echo "$ac_cs_version"; exit ;;
22048   --debug | --debu | --deb | --de | --d | -d )
22049     debug=: ;;
22050   --file | --fil | --fi | --f )
22051     $ac_shift
22052     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22053     ac_need_defaults=false;;
22054   --he | --h |  --help | --hel | -h )
22055     echo "$ac_cs_usage"; exit ;;
22056   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22057   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22058     ac_cs_silent=: ;;
22059
22060   # This is an error.
22061   -*) { echo "$as_me: error: unrecognized option: $1
22062 Try \`$0 --help' for more information." >&2
22063    { (exit 1); exit 1; }; } ;;
22064
22065   *) ac_config_targets="$ac_config_targets $1"
22066      ac_need_defaults=false ;;
22067
22068   esac
22069   shift
22070 done
22071
22072 ac_configure_extra_args=
22073
22074 if $ac_cs_silent; then
22075   exec 6>/dev/null
22076   ac_configure_extra_args="$ac_configure_extra_args --silent"
22077 fi
22078
22079 _ACEOF
22080 cat >>$CONFIG_STATUS <<_ACEOF
22081 if \$ac_cs_recheck; then
22082   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22083   CONFIG_SHELL=$SHELL
22084   export CONFIG_SHELL
22085   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22086 fi
22087
22088 _ACEOF
22089 cat >>$CONFIG_STATUS <<\_ACEOF
22090 exec 5>>config.log
22091 {
22092   echo
22093   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22094 ## Running $as_me. ##
22095 _ASBOX
22096   echo "$ac_log"
22097 } >&5
22098
22099 _ACEOF
22100 cat >>$CONFIG_STATUS <<_ACEOF
22101 #
22102 # INIT-COMMANDS
22103 #
22104 llvm_src="${LLVM_SRC}"
22105
22106 _ACEOF
22107
22108 cat >>$CONFIG_STATUS <<\_ACEOF
22109
22110 # Handling of arguments.
22111 for ac_config_target in $ac_config_targets
22112 do
22113   case $ac_config_target in
22114     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22115     "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
22116     "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
22117     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22118     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22119     "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
22120     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22121     "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
22122
22123   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22124 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22125    { (exit 1); exit 1; }; };;
22126   esac
22127 done
22128
22129
22130 # If the user did not use the arguments to specify the items to instantiate,
22131 # then the envvar interface is used.  Set only those that are not.
22132 # We use the long form for the default assignment because of an extremely
22133 # bizarre bug on SunOS 4.1.3.
22134 if $ac_need_defaults; then
22135   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22136   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22137 fi
22138
22139 # Have a temporary directory for convenience.  Make it in the build tree
22140 # simply because there is no reason against having it here, and in addition,
22141 # creating and moving files from /tmp can sometimes cause problems.
22142 # Hook for its removal unless debugging.
22143 # Note that there is a small window in which the directory will not be cleaned:
22144 # after its creation but before its name has been assigned to `$tmp'.
22145 $debug ||
22146 {
22147   tmp=
22148   trap 'exit_status=$?
22149   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22150 ' 0
22151   trap '{ (exit 1); exit 1; }' 1 2 13 15
22152 }
22153 # Create a (secure) tmp directory for tmp files.
22154
22155 {
22156   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22157   test -n "$tmp" && test -d "$tmp"
22158 }  ||
22159 {
22160   tmp=./conf$$-$RANDOM
22161   (umask 077 && mkdir "$tmp")
22162 } ||
22163 {
22164    echo "$me: cannot create a temporary directory in ." >&2
22165    { (exit 1); exit 1; }
22166 }
22167
22168 #
22169 # Set up the sed scripts for CONFIG_FILES section.
22170 #
22171
22172 # No need to generate the scripts if there are no CONFIG_FILES.
22173 # This happens for instance when ./config.status config.h
22174 if test -n "$CONFIG_FILES"; then
22175
22176 _ACEOF
22177
22178
22179
22180 ac_delim='%!_!# '
22181 for ac_last_try in false false false false false :; do
22182   cat >conf$$subs.sed <<_ACEOF
22183 SHELL!$SHELL$ac_delim
22184 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22185 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22186 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22187 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22188 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22189 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22190 exec_prefix!$exec_prefix$ac_delim
22191 prefix!$prefix$ac_delim
22192 program_transform_name!$program_transform_name$ac_delim
22193 bindir!$bindir$ac_delim
22194 sbindir!$sbindir$ac_delim
22195 libexecdir!$libexecdir$ac_delim
22196 datarootdir!$datarootdir$ac_delim
22197 datadir!$datadir$ac_delim
22198 sysconfdir!$sysconfdir$ac_delim
22199 sharedstatedir!$sharedstatedir$ac_delim
22200 localstatedir!$localstatedir$ac_delim
22201 includedir!$includedir$ac_delim
22202 oldincludedir!$oldincludedir$ac_delim
22203 docdir!$docdir$ac_delim
22204 infodir!$infodir$ac_delim
22205 htmldir!$htmldir$ac_delim
22206 dvidir!$dvidir$ac_delim
22207 pdfdir!$pdfdir$ac_delim
22208 psdir!$psdir$ac_delim
22209 libdir!$libdir$ac_delim
22210 localedir!$localedir$ac_delim
22211 mandir!$mandir$ac_delim
22212 DEFS!$DEFS$ac_delim
22213 ECHO_C!$ECHO_C$ac_delim
22214 ECHO_N!$ECHO_N$ac_delim
22215 ECHO_T!$ECHO_T$ac_delim
22216 LIBS!$LIBS$ac_delim
22217 build_alias!$build_alias$ac_delim
22218 host_alias!$host_alias$ac_delim
22219 target_alias!$target_alias$ac_delim
22220 LLVM_SRC!$LLVM_SRC$ac_delim
22221 LLVM_OBJ!$LLVM_OBJ$ac_delim
22222 LLVM_VERSION!$LLVM_VERSION$ac_delim
22223 CC!$CC$ac_delim
22224 CFLAGS!$CFLAGS$ac_delim
22225 LDFLAGS!$LDFLAGS$ac_delim
22226 CPPFLAGS!$CPPFLAGS$ac_delim
22227 ac_ct_CC!$ac_ct_CC$ac_delim
22228 EXEEXT!$EXEEXT$ac_delim
22229 OBJEXT!$OBJEXT$ac_delim
22230 CXX!$CXX$ac_delim
22231 CXXFLAGS!$CXXFLAGS$ac_delim
22232 ac_ct_CXX!$ac_ct_CXX$ac_delim
22233 CPP!$CPP$ac_delim
22234 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22235 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22236 subdirs!$subdirs$ac_delim
22237 build!$build$ac_delim
22238 build_cpu!$build_cpu$ac_delim
22239 build_vendor!$build_vendor$ac_delim
22240 build_os!$build_os$ac_delim
22241 host!$host$ac_delim
22242 host_cpu!$host_cpu$ac_delim
22243 host_vendor!$host_vendor$ac_delim
22244 host_os!$host_os$ac_delim
22245 target!$target$ac_delim
22246 target_cpu!$target_cpu$ac_delim
22247 target_vendor!$target_vendor$ac_delim
22248 target_os!$target_os$ac_delim
22249 OS!$OS$ac_delim
22250 HOST_OS!$HOST_OS$ac_delim
22251 TARGET_OS!$TARGET_OS$ac_delim
22252 LINKALL!$LINKALL$ac_delim
22253 NOLINKALL!$NOLINKALL$ac_delim
22254 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22255 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22256 ARCH!$ARCH$ac_delim
22257 ENDIAN!$ENDIAN$ac_delim
22258 GREP!$GREP$ac_delim
22259 EGREP!$EGREP$ac_delim
22260 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22261 BUILD_CC!$BUILD_CC$ac_delim
22262 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22263 BUILD_CXX!$BUILD_CXX$ac_delim
22264 CVSBUILD!$CVSBUILD$ac_delim
22265 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22266 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22267 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22268 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22269 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22270 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22271 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22272 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22273 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22274 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22275 JIT!$JIT$ac_delim
22276 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22277 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22278 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22279 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
22280 _ACEOF
22281
22282   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22283     break
22284   elif $ac_last_try; then
22285     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22286 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22287    { (exit 1); exit 1; }; }
22288   else
22289     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22290   fi
22291 done
22292
22293 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22294 if test -n "$ac_eof"; then
22295   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22296   ac_eof=`expr $ac_eof + 1`
22297 fi
22298
22299 cat >>$CONFIG_STATUS <<_ACEOF
22300 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22301 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22302 _ACEOF
22303 sed '
22304 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22305 s/^/s,@/; s/!/@,|#_!!_#|/
22306 :n
22307 t n
22308 s/'"$ac_delim"'$/,g/; t
22309 s/$/\\/; p
22310 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22311 ' >>$CONFIG_STATUS <conf$$subs.sed
22312 rm -f conf$$subs.sed
22313 cat >>$CONFIG_STATUS <<_ACEOF
22314 CEOF$ac_eof
22315 _ACEOF
22316
22317
22318 ac_delim='%!_!# '
22319 for ac_last_try in false false false false false :; do
22320   cat >conf$$subs.sed <<_ACEOF
22321 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22322 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
22323 ENABLE_PIC!$ENABLE_PIC$ac_delim
22324 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22325 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22326 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22327 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22328 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22329 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22330 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22331 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22332 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22333 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22334 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22335 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22336 NM!$NM$ac_delim
22337 ifGNUmake!$ifGNUmake$ac_delim
22338 LN_S!$LN_S$ac_delim
22339 CMP!$CMP$ac_delim
22340 CP!$CP$ac_delim
22341 DATE!$DATE$ac_delim
22342 FIND!$FIND$ac_delim
22343 MKDIR!$MKDIR$ac_delim
22344 MV!$MV$ac_delim
22345 RANLIB!$RANLIB$ac_delim
22346 AR!$AR$ac_delim
22347 RM!$RM$ac_delim
22348 SED!$SED$ac_delim
22349 TAR!$TAR$ac_delim
22350 BINPWD!$BINPWD$ac_delim
22351 GRAPHVIZ!$GRAPHVIZ$ac_delim
22352 DOT!$DOT$ac_delim
22353 FDP!$FDP$ac_delim
22354 NEATO!$NEATO$ac_delim
22355 TWOPI!$TWOPI$ac_delim
22356 CIRCO!$CIRCO$ac_delim
22357 GV!$GV$ac_delim
22358 DOTTY!$DOTTY$ac_delim
22359 XDOT_PY!$XDOT_PY$ac_delim
22360 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22361 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22362 INSTALL_DATA!$INSTALL_DATA$ac_delim
22363 BZIP2!$BZIP2$ac_delim
22364 CAT!$CAT$ac_delim
22365 DOXYGEN!$DOXYGEN$ac_delim
22366 GROFF!$GROFF$ac_delim
22367 GZIPBIN!$GZIPBIN$ac_delim
22368 POD2HTML!$POD2HTML$ac_delim
22369 POD2MAN!$POD2MAN$ac_delim
22370 PDFROFF!$PDFROFF$ac_delim
22371 RUNTEST!$RUNTEST$ac_delim
22372 TCLSH!$TCLSH$ac_delim
22373 ZIP!$ZIP$ac_delim
22374 OCAMLC!$OCAMLC$ac_delim
22375 OCAMLOPT!$OCAMLOPT$ac_delim
22376 OCAMLDEP!$OCAMLDEP$ac_delim
22377 OCAMLDOC!$OCAMLDOC$ac_delim
22378 GAS!$GAS$ac_delim
22379 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22380 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22381 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22382 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22383 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22384 LIBADD_DL!$LIBADD_DL$ac_delim
22385 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22386 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22387 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22388 USE_UDIS86!$USE_UDIS86$ac_delim
22389 USE_OPROFILE!$USE_OPROFILE$ac_delim
22390 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22391 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
22392 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22393 MMAP_FILE!$MMAP_FILE$ac_delim
22394 SHLIBEXT!$SHLIBEXT$ac_delim
22395 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22396 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22397 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22398 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22399 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22400 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22401 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22402 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22403 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22404 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22405 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22406 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22407 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22408 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22409 RPATH!$RPATH$ac_delim
22410 RDYNAMIC!$RDYNAMIC$ac_delim
22411 LIBOBJS!$LIBOBJS$ac_delim
22412 LTLIBOBJS!$LTLIBOBJS$ac_delim
22413 _ACEOF
22414
22415   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
22416     break
22417   elif $ac_last_try; then
22418     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22419 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22420    { (exit 1); exit 1; }; }
22421   else
22422     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22423   fi
22424 done
22425
22426 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22427 if test -n "$ac_eof"; then
22428   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22429   ac_eof=`expr $ac_eof + 1`
22430 fi
22431
22432 cat >>$CONFIG_STATUS <<_ACEOF
22433 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22434 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22435 _ACEOF
22436 sed '
22437 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22438 s/^/s,@/; s/!/@,|#_!!_#|/
22439 :n
22440 t n
22441 s/'"$ac_delim"'$/,g/; t
22442 s/$/\\/; p
22443 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22444 ' >>$CONFIG_STATUS <conf$$subs.sed
22445 rm -f conf$$subs.sed
22446 cat >>$CONFIG_STATUS <<_ACEOF
22447 :end
22448 s/|#_!!_#|//g
22449 CEOF$ac_eof
22450 _ACEOF
22451
22452
22453 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22454 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22455 # trailing colons and then remove the whole line if VPATH becomes empty
22456 # (actually we leave an empty line to preserve line numbers).
22457 if test "x$srcdir" = x.; then
22458   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22459 s/:*\$(srcdir):*/:/
22460 s/:*\${srcdir}:*/:/
22461 s/:*@srcdir@:*/:/
22462 s/^\([^=]*=[     ]*\):*/\1/
22463 s/:*$//
22464 s/^[^=]*=[       ]*$//
22465 }'
22466 fi
22467
22468 cat >>$CONFIG_STATUS <<\_ACEOF
22469 fi # test -n "$CONFIG_FILES"
22470
22471
22472 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
22473 do
22474   case $ac_tag in
22475   :[FHLC]) ac_mode=$ac_tag; continue;;
22476   esac
22477   case $ac_mode$ac_tag in
22478   :[FHL]*:*);;
22479   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22480 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22481    { (exit 1); exit 1; }; };;
22482   :[FH]-) ac_tag=-:-;;
22483   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22484   esac
22485   ac_save_IFS=$IFS
22486   IFS=:
22487   set x $ac_tag
22488   IFS=$ac_save_IFS
22489   shift
22490   ac_file=$1
22491   shift
22492
22493   case $ac_mode in
22494   :L) ac_source=$1;;
22495   :[FH])
22496     ac_file_inputs=
22497     for ac_f
22498     do
22499       case $ac_f in
22500       -) ac_f="$tmp/stdin";;
22501       *) # Look for the file first in the build tree, then in the source tree
22502          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22503          # because $ac_f cannot contain `:'.
22504          test -f "$ac_f" ||
22505            case $ac_f in
22506            [\\/$]*) false;;
22507            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22508            esac ||
22509            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22510 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22511    { (exit 1); exit 1; }; };;
22512       esac
22513       ac_file_inputs="$ac_file_inputs $ac_f"
22514     done
22515
22516     # Let's still pretend it is `configure' which instantiates (i.e., don't
22517     # use $as_me), people would be surprised to read:
22518     #    /* config.h.  Generated by config.status.  */
22519     configure_input="Generated from "`IFS=:
22520           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22521     if test x"$ac_file" != x-; then
22522       configure_input="$ac_file.  $configure_input"
22523       { echo "$as_me:$LINENO: creating $ac_file" >&5
22524 echo "$as_me: creating $ac_file" >&6;}
22525     fi
22526
22527     case $ac_tag in
22528     *:-:* | *:-) cat >"$tmp/stdin";;
22529     esac
22530     ;;
22531   esac
22532
22533   ac_dir=`$as_dirname -- "$ac_file" ||
22534 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22535          X"$ac_file" : 'X\(//\)[^/]' \| \
22536          X"$ac_file" : 'X\(//\)$' \| \
22537          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22538 echo X"$ac_file" |
22539     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22540             s//\1/
22541             q
22542           }
22543           /^X\(\/\/\)[^/].*/{
22544             s//\1/
22545             q
22546           }
22547           /^X\(\/\/\)$/{
22548             s//\1/
22549             q
22550           }
22551           /^X\(\/\).*/{
22552             s//\1/
22553             q
22554           }
22555           s/.*/./; q'`
22556   { as_dir="$ac_dir"
22557   case $as_dir in #(
22558   -*) as_dir=./$as_dir;;
22559   esac
22560   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22561     as_dirs=
22562     while :; do
22563       case $as_dir in #(
22564       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22565       *) as_qdir=$as_dir;;
22566       esac
22567       as_dirs="'$as_qdir' $as_dirs"
22568       as_dir=`$as_dirname -- "$as_dir" ||
22569 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22570          X"$as_dir" : 'X\(//\)[^/]' \| \
22571          X"$as_dir" : 'X\(//\)$' \| \
22572          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22573 echo X"$as_dir" |
22574     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22575             s//\1/
22576             q
22577           }
22578           /^X\(\/\/\)[^/].*/{
22579             s//\1/
22580             q
22581           }
22582           /^X\(\/\/\)$/{
22583             s//\1/
22584             q
22585           }
22586           /^X\(\/\).*/{
22587             s//\1/
22588             q
22589           }
22590           s/.*/./; q'`
22591       test -d "$as_dir" && break
22592     done
22593     test -z "$as_dirs" || eval "mkdir $as_dirs"
22594   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22595 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22596    { (exit 1); exit 1; }; }; }
22597   ac_builddir=.
22598
22599 case "$ac_dir" in
22600 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22601 *)
22602   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22603   # A ".." for each directory in $ac_dir_suffix.
22604   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22605   case $ac_top_builddir_sub in
22606   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22607   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22608   esac ;;
22609 esac
22610 ac_abs_top_builddir=$ac_pwd
22611 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22612 # for backward compatibility:
22613 ac_top_builddir=$ac_top_build_prefix
22614
22615 case $srcdir in
22616   .)  # We are building in place.
22617     ac_srcdir=.
22618     ac_top_srcdir=$ac_top_builddir_sub
22619     ac_abs_top_srcdir=$ac_pwd ;;
22620   [\\/]* | ?:[\\/]* )  # Absolute name.
22621     ac_srcdir=$srcdir$ac_dir_suffix;
22622     ac_top_srcdir=$srcdir
22623     ac_abs_top_srcdir=$srcdir ;;
22624   *) # Relative name.
22625     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22626     ac_top_srcdir=$ac_top_build_prefix$srcdir
22627     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22628 esac
22629 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22630
22631
22632   case $ac_mode in
22633   :F)
22634   #
22635   # CONFIG_FILE
22636   #
22637
22638   case $INSTALL in
22639   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22640   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22641   esac
22642 _ACEOF
22643
22644 cat >>$CONFIG_STATUS <<\_ACEOF
22645 # If the template does not know about datarootdir, expand it.
22646 # FIXME: This hack should be removed a few years after 2.60.
22647 ac_datarootdir_hack=; ac_datarootdir_seen=
22648
22649 case `sed -n '/datarootdir/ {
22650   p
22651   q
22652 }
22653 /@datadir@/p
22654 /@docdir@/p
22655 /@infodir@/p
22656 /@localedir@/p
22657 /@mandir@/p
22658 ' $ac_file_inputs` in
22659 *datarootdir*) ac_datarootdir_seen=yes;;
22660 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22661   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22662 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22663 _ACEOF
22664 cat >>$CONFIG_STATUS <<_ACEOF
22665   ac_datarootdir_hack='
22666   s&@datadir@&$datadir&g
22667   s&@docdir@&$docdir&g
22668   s&@infodir@&$infodir&g
22669   s&@localedir@&$localedir&g
22670   s&@mandir@&$mandir&g
22671     s&\\\${datarootdir}&$datarootdir&g' ;;
22672 esac
22673 _ACEOF
22674
22675 # Neutralize VPATH when `$srcdir' = `.'.
22676 # Shell code in configure.ac might set extrasub.
22677 # FIXME: do we really want to maintain this feature?
22678 cat >>$CONFIG_STATUS <<_ACEOF
22679   sed "$ac_vpsub
22680 $extrasub
22681 _ACEOF
22682 cat >>$CONFIG_STATUS <<\_ACEOF
22683 :t
22684 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22685 s&@configure_input@&$configure_input&;t t
22686 s&@top_builddir@&$ac_top_builddir_sub&;t t
22687 s&@srcdir@&$ac_srcdir&;t t
22688 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22689 s&@top_srcdir@&$ac_top_srcdir&;t t
22690 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22691 s&@builddir@&$ac_builddir&;t t
22692 s&@abs_builddir@&$ac_abs_builddir&;t t
22693 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22694 s&@INSTALL@&$ac_INSTALL&;t t
22695 $ac_datarootdir_hack
22696 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22697
22698 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22699   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22700   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22701   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22702 which seems to be undefined.  Please make sure it is defined." >&5
22703 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22704 which seems to be undefined.  Please make sure it is defined." >&2;}
22705
22706   rm -f "$tmp/stdin"
22707   case $ac_file in
22708   -) cat "$tmp/out"; rm -f "$tmp/out";;
22709   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22710   esac
22711  ;;
22712
22713
22714   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22715 echo "$as_me: executing $ac_file commands" >&6;}
22716  ;;
22717   esac
22718
22719
22720   case $ac_file$ac_mode in
22721     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22722    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22723     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22724    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22725     "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22726    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22727     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22728    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22729     "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22730    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22731
22732   esac
22733 done # for ac_tag
22734
22735
22736 { (exit 0); exit 0; }
22737 _ACEOF
22738 chmod +x $CONFIG_STATUS
22739 ac_clean_files=$ac_clean_files_save
22740
22741
22742 # configure is writing to config.log, and then calls config.status.
22743 # config.status does its own redirection, appending to config.log.
22744 # Unfortunately, on DOS this fails, as config.log is still kept open
22745 # by configure, so config.status won't be able to write to it; its
22746 # output is simply discarded.  So we exec the FD to /dev/null,
22747 # effectively closing config.log, so it can be properly (re)opened and
22748 # appended to by config.status.  When coming back to configure, we
22749 # need to make the FD available again.
22750 if test "$no_create" != yes; then
22751   ac_cs_success=:
22752   ac_config_status_args=
22753   test "$silent" = yes &&
22754     ac_config_status_args="$ac_config_status_args --quiet"
22755   exec 5>/dev/null
22756   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22757   exec 5>>config.log
22758   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22759   # would make configure fail if this is the last instruction.
22760   $ac_cs_success || { (exit 1); exit 1; }
22761 fi
22762
22763 #
22764 # CONFIG_SUBDIRS section.
22765 #
22766 if test "$no_recursion" != yes; then
22767
22768   # Remove --cache-file and --srcdir arguments so they do not pile up.
22769   ac_sub_configure_args=
22770   ac_prev=
22771   eval "set x $ac_configure_args"
22772   shift
22773   for ac_arg
22774   do
22775     if test -n "$ac_prev"; then
22776       ac_prev=
22777       continue
22778     fi
22779     case $ac_arg in
22780     -cache-file | --cache-file | --cache-fil | --cache-fi \
22781     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22782       ac_prev=cache_file ;;
22783     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22784     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22785     | --c=*)
22786       ;;
22787     --config-cache | -C)
22788       ;;
22789     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22790       ac_prev=srcdir ;;
22791     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22792       ;;
22793     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22794       ac_prev=prefix ;;
22795     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22796       ;;
22797     *)
22798       case $ac_arg in
22799       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22800       esac
22801       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22802     esac
22803   done
22804
22805   # Always prepend --prefix to ensure using the same prefix
22806   # in subdir configurations.
22807   ac_arg="--prefix=$prefix"
22808   case $ac_arg in
22809   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22810   esac
22811   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22812
22813   ac_popdir=`pwd`
22814   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22815
22816     # Do not complain, so a configure script can configure whichever
22817     # parts of a large source tree are present.
22818     test -d "$srcdir/$ac_dir" || continue
22819
22820     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22821     echo "$as_me:$LINENO: $ac_msg" >&5
22822     echo "$ac_msg" >&6
22823     { as_dir="$ac_dir"
22824   case $as_dir in #(
22825   -*) as_dir=./$as_dir;;
22826   esac
22827   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22828     as_dirs=
22829     while :; do
22830       case $as_dir in #(
22831       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22832       *) as_qdir=$as_dir;;
22833       esac
22834       as_dirs="'$as_qdir' $as_dirs"
22835       as_dir=`$as_dirname -- "$as_dir" ||
22836 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22837          X"$as_dir" : 'X\(//\)[^/]' \| \
22838          X"$as_dir" : 'X\(//\)$' \| \
22839          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22840 echo X"$as_dir" |
22841     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22842             s//\1/
22843             q
22844           }
22845           /^X\(\/\/\)[^/].*/{
22846             s//\1/
22847             q
22848           }
22849           /^X\(\/\/\)$/{
22850             s//\1/
22851             q
22852           }
22853           /^X\(\/\).*/{
22854             s//\1/
22855             q
22856           }
22857           s/.*/./; q'`
22858       test -d "$as_dir" && break
22859     done
22860     test -z "$as_dirs" || eval "mkdir $as_dirs"
22861   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22862 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22863    { (exit 1); exit 1; }; }; }
22864     ac_builddir=.
22865
22866 case "$ac_dir" in
22867 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22868 *)
22869   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22870   # A ".." for each directory in $ac_dir_suffix.
22871   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22872   case $ac_top_builddir_sub in
22873   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22874   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22875   esac ;;
22876 esac
22877 ac_abs_top_builddir=$ac_pwd
22878 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22879 # for backward compatibility:
22880 ac_top_builddir=$ac_top_build_prefix
22881
22882 case $srcdir in
22883   .)  # We are building in place.
22884     ac_srcdir=.
22885     ac_top_srcdir=$ac_top_builddir_sub
22886     ac_abs_top_srcdir=$ac_pwd ;;
22887   [\\/]* | ?:[\\/]* )  # Absolute name.
22888     ac_srcdir=$srcdir$ac_dir_suffix;
22889     ac_top_srcdir=$srcdir
22890     ac_abs_top_srcdir=$srcdir ;;
22891   *) # Relative name.
22892     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22893     ac_top_srcdir=$ac_top_build_prefix$srcdir
22894     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22895 esac
22896 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22897
22898
22899     cd "$ac_dir"
22900
22901     # Check for guested configure; otherwise get Cygnus style configure.
22902     if test -f "$ac_srcdir/configure.gnu"; then
22903       ac_sub_configure=$ac_srcdir/configure.gnu
22904     elif test -f "$ac_srcdir/configure"; then
22905       ac_sub_configure=$ac_srcdir/configure
22906     elif test -f "$ac_srcdir/configure.in"; then
22907       # This should be Cygnus configure.
22908       ac_sub_configure=$ac_aux_dir/configure
22909     else
22910       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22911 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22912       ac_sub_configure=
22913     fi
22914
22915     # The recursion is here.
22916     if test -n "$ac_sub_configure"; then
22917       # Make the cache file name correct relative to the subdirectory.
22918       case $cache_file in
22919       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22920       *) # Relative name.
22921         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22922       esac
22923
22924       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22925 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22926       # The eval makes quoting arguments work.
22927       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22928            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22929         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22930 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22931    { (exit 1); exit 1; }; }
22932     fi
22933
22934     cd "$ac_popdir"
22935   done
22936 fi
22937