Remove the SystemZ backend.
[oota-llvm.git] / projects / sample / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
4 #
5 # Report bugs to <bugs@yourdomain>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40   echo "#! /bin/sh" >conf$$.sh
41   echo  "exit 0"   >>conf$$.sh
42   chmod +x conf$$.sh
43   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44     PATH_SEPARATOR=';'
45   else
46     PATH_SEPARATOR=:
47   fi
48   rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53   as_unset=unset
54 else
55   as_unset=false
56 fi
57
58
59 # IFS
60 # We need space, tab and new line, in precisely that order.  Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
65 '
66 IFS=" ""        $as_nl"
67
68 # Find who we are.  Look in the path if we contain no directory separator.
69 case $0 in
70   *[\\/]* ) as_myself=$0 ;;
71   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
73 do
74   IFS=$as_save_IFS
75   test -z "$as_dir" && as_dir=.
76   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
79
80      ;;
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85   as_myself=$0
86 fi
87 if test ! -f "$as_myself"; then
88   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89   { (exit 1); exit 1; }
90 fi
91
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
99
100 # NLS nuisances.
101 for as_var in \
102   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104   LC_TELEPHONE LC_TIME
105 do
106   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107     eval $as_var=C; export $as_var
108   else
109     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110   fi
111 done
112
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115    test "X`expr 00001 : '.*\(...\)'`" = X001; then
116   as_expr=expr
117 else
118   as_expr=false
119 fi
120
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122   as_basename=basename
123 else
124   as_basename=false
125 fi
126
127
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131          X"$0" : 'X\(//\)$' \| \
132          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134     sed '/^.*\/\([^/][^/]*\)\/*$/{
135             s//\1/
136             q
137           }
138           /^X\/\(\/\/\)$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\).*/{
143             s//\1/
144             q
145           }
146           s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
152 if test "x$CONFIG_SHELL" = x; then
153   if (eval ":") 2>/dev/null; then
154   as_have_required=yes
155 else
156   as_have_required=no
157 fi
158
159   if test $as_have_required = yes &&     (eval ":
160 (as_func_return () {
161   (exit \$1)
162 }
163 as_func_success () {
164   as_func_return 0
165 }
166 as_func_failure () {
167   as_func_return 1
168 }
169 as_func_ret_success () {
170   return 0
171 }
172 as_func_ret_failure () {
173   return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178   :
179 else
180   exitcode=1
181   echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185   exitcode=1
186   echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190   :
191 else
192   exitcode=1
193   echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197   exitcode=1
198   echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202   :
203 else
204   exitcode=1
205   echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
211   as_lineno_1=\$LINENO
212   as_lineno_2=\$LINENO
213   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
216   :
217 else
218   as_candidate_shells=
219     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   case $as_dir in
225          /*)
226            for as_base in sh bash ksh sh5; do
227              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228            done;;
229        esac
230 done
231 IFS=$as_save_IFS
232
233
234       for as_shell in $as_candidate_shells $SHELL; do
235          # Try only shells that exist, to save several forks.
236          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237                 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240   emulate sh
241   NULLCMD=:
242   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243   # is contrary to our usage.  Disable this feature.
244   alias -g '${1+"$@"}'='"$@"'
245   setopt NO_GLOB_SUBST
246 else
247   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
253 _ASEOF
254 }; then
255   CONFIG_SHELL=$as_shell
256                as_have_required=yes
257                if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274   (exit $1)
275 }
276 as_func_success () {
277   as_func_return 0
278 }
279 as_func_failure () {
280   as_func_return 1
281 }
282 as_func_ret_success () {
283   return 0
284 }
285 as_func_ret_failure () {
286   return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291   :
292 else
293   exitcode=1
294   echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298   exitcode=1
299   echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303   :
304 else
305   exitcode=1
306   echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310   exitcode=1
311   echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315   :
316 else
317   exitcode=1
318   echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
324   as_lineno_1=$LINENO
325   as_lineno_2=$LINENO
326   test "x$as_lineno_1" != "x$as_lineno_2" &&
327   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329 _ASEOF
330 }; then
331   break
332 fi
333
334 fi
335
336       done
337
338       if test "x$CONFIG_SHELL" != x; then
339   for as_var in BASH_ENV ENV
340         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341         done
342         export CONFIG_SHELL
343         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344 fi
345
346
347     if test $as_have_required = no; then
348   echo This script requires a shell more modern than all the
349       echo shells that I found on your system.  Please install a
350       echo modern shell, or manually run the script under such a
351       echo shell if you do have one.
352       { (exit 1); exit 1; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363   (exit \$1)
364 }
365 as_func_success () {
366   as_func_return 0
367 }
368 as_func_failure () {
369   as_func_return 1
370 }
371 as_func_ret_success () {
372   return 0
373 }
374 as_func_ret_failure () {
375   return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380   :
381 else
382   exitcode=1
383   echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387   exitcode=1
388   echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392   :
393 else
394   exitcode=1
395   echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399   exitcode=1
400   echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404   :
405 else
406   exitcode=1
407   echo positional parameters were not saved.
408 fi
409
410 test \$exitcode = 0") || {
411   echo No shell found that supports shell functions.
412   echo Please tell autoconf@gnu.org about your system,
413   echo including any error possibly output before this
414   echo message
415 }
416
417
418
419   as_lineno_1=$LINENO
420   as_lineno_2=$LINENO
421   test "x$as_lineno_1" != "x$as_lineno_2" &&
422   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425   # uniformly replaced by the line number.  The first 'sed' inserts a
426   # line-number line after each line using $LINENO; the second 'sed'
427   # does the real work.  The second script uses 'N' to pair each
428   # line-number line with the line containing $LINENO, and appends
429   # trailing '-' during substitution so that $LINENO is not a special
430   # case at line end.
431   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432   # scripts with optimization help from Paolo Bonzini.  Blame Lee
433   # E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451    { (exit 1); exit 1; }; }
452
453   # Don't try to exec as it changes $[0], causing all sort of problems
454   # (the dirname of $[0] is not the place where we might find the
455   # original and so on.  Autoconf is especially sensitive to this).
456   . "./$as_me.lineno"
457   # Exit status is that of the last command.
458   exit
459 }
460
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463   as_dirname=dirname
464 else
465   as_dirname=false
466 fi
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471   case `echo 'x\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   *)   ECHO_C='\c';;
474   esac;;
475 *)
476   ECHO_N='-n';;
477 esac
478
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480    test "X`expr 00001 : '.*\(...\)'`" = X001; then
481   as_expr=expr
482 else
483   as_expr=false
484 fi
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488   rm -f conf$$.dir/conf$$.file
489 else
490   rm -f conf$$.dir
491   mkdir conf$$.dir
492 fi
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495   as_ln_s='ln -s'
496   # ... but there are two gotchas:
497   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499   # In both cases, we have to default to `cp -p'.
500   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501     as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s=ln
504 else
505   as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511   as_mkdir_p=:
512 else
513   test -d ./-p && rmdir ./-p
514   as_mkdir_p=false
515 fi
516
517 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525   as_executable_p="test -x"
526 else
527   as_executable_p=:
528 fi
529 rm -f conf$$.file
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539 exec 7<&0 </dev/null 6>&1
540
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546 #
547 # Initializations.
548 #
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 # Identity of this package.
560 PACKAGE_NAME='[SAMPLE]'
561 PACKAGE_TARNAME='--sample--'
562 PACKAGE_VERSION='[x.xx]'
563 PACKAGE_STRING='[SAMPLE] [x.xx]'
564 PACKAGE_BUGREPORT='bugs@yourdomain'
565
566 ac_unique_file=""Makefile.common.in""
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #if HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #if HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #if STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # if HAVE_STDLIB_H
581 #  include <stdlib.h>
582 # endif
583 #endif
584 #if HAVE_STRING_H
585 # if !STDC_HEADERS && HAVE_MEMORY_H
586 #  include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #if HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #if HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #if HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #if HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
602
603 ac_subst_vars='SHELL
604 PATH_SEPARATOR
605 PACKAGE_NAME
606 PACKAGE_TARNAME
607 PACKAGE_VERSION
608 PACKAGE_STRING
609 PACKAGE_BUGREPORT
610 exec_prefix
611 prefix
612 program_transform_name
613 bindir
614 sbindir
615 libexecdir
616 datarootdir
617 datadir
618 sysconfdir
619 sharedstatedir
620 localstatedir
621 includedir
622 oldincludedir
623 docdir
624 infodir
625 htmldir
626 dvidir
627 pdfdir
628 psdir
629 libdir
630 localedir
631 mandir
632 DEFS
633 ECHO_C
634 ECHO_N
635 ECHO_T
636 LIBS
637 build_alias
638 host_alias
639 target_alias
640 LLVM_SRC
641 LLVM_OBJ
642 LLVM_VERSION
643 CC
644 CFLAGS
645 LDFLAGS
646 CPPFLAGS
647 ac_ct_CC
648 EXEEXT
649 OBJEXT
650 CXX
651 CXXFLAGS
652 ac_ct_CXX
653 CPP
654 ENABLE_POLLY
655 LLVM_HAS_POLLY
656 subdirs
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 target
666 target_cpu
667 target_vendor
668 target_os
669 OS
670 HOST_OS
671 TARGET_OS
672 LINKALL
673 NOLINKALL
674 LLVM_ON_UNIX
675 LLVM_ON_WIN32
676 ARCH
677 ENDIAN
678 GREP
679 EGREP
680 LLVM_CROSS_COMPILING
681 BUILD_CC
682 BUILD_EXEEXT
683 BUILD_CXX
684 CVSBUILD
685 ENABLE_OPTIMIZED
686 ENABLE_PROFILING
687 DISABLE_ASSERTIONS
688 ENABLE_EXPENSIVE_CHECKS
689 EXPENSIVE_CHECKS
690 DEBUG_RUNTIME
691 DEBUG_SYMBOLS
692 JIT
693 TARGET_HAS_JIT
694 ENABLE_DOCS
695 ENABLE_DOXYGEN
696 ENABLE_THREADS
697 ENABLE_PTHREADS
698 ENABLE_PIC
699 ENABLE_SHARED
700 ENABLE_EMBED_STDCXX
701 ENABLE_TIMESTAMPS
702 TARGETS_TO_BUILD
703 LLVM_ENUM_TARGETS
704 LLVM_ENUM_ASM_PRINTERS
705 LLVM_ENUM_ASM_PARSERS
706 LLVM_ENUM_DISASSEMBLERS
707 ENABLE_CBE_PRINTF_A
708 OPTIMIZE_OPTION
709 EXTRA_OPTIONS
710 EXTRA_LD_OPTIONS
711 BINUTILS_INCDIR
712 NM
713 ifGNUmake
714 LN_S
715 CMP
716 CP
717 DATE
718 FIND
719 MKDIR
720 MV
721 RANLIB
722 AR
723 RM
724 SED
725 TAR
726 BINPWD
727 GRAPHVIZ
728 DOT
729 FDP
730 NEATO
731 TWOPI
732 CIRCO
733 GV
734 DOTTY
735 XDOT_PY
736 PERL
737 HAVE_PERL
738 INSTALL_PROGRAM
739 INSTALL_SCRIPT
740 INSTALL_DATA
741 BZIP2
742 CAT
743 DOXYGEN
744 GROFF
745 GZIPBIN
746 POD2HTML
747 POD2MAN
748 PDFROFF
749 RUNTEST
750 TCLSH
751 ZIP
752 OCAMLC
753 OCAMLOPT
754 OCAMLDEP
755 OCAMLDOC
756 GAS
757 HAVE_LINK_VERSION_SCRIPT
758 INSTALL_LTDL_TRUE
759 INSTALL_LTDL_FALSE
760 CONVENIENCE_LTDL_TRUE
761 CONVENIENCE_LTDL_FALSE
762 LIBADD_DL
763 NO_VARIADIC_MACROS
764 NO_MISSING_FIELD_INITIALIZERS
765 USE_UDIS86
766 USE_OPROFILE
767 HAVE_PTHREAD
768 HUGE_VAL_SANITY
769 MMAP_FILE
770 SHLIBEXT
771 SHLIBPATH_VAR
772 LLVM_PREFIX
773 LLVM_BINDIR
774 LLVM_LIBDIR
775 LLVM_DATADIR
776 LLVM_DOCSDIR
777 LLVM_ETCDIR
778 LLVM_INCLUDEDIR
779 LLVM_INFODIR
780 LLVM_MANDIR
781 LLVM_CONFIGTIME
782 BINDINGS_TO_BUILD
783 ALL_BINDINGS
784 OCAML_LIBDIR
785 ENABLE_VISIBILITY_INLINES_HIDDEN
786 RPATH
787 RDYNAMIC
788 LIBOBJS
789 LTLIBOBJS'
790 ac_subst_files=''
791       ac_precious_vars='build_alias
792 host_alias
793 target_alias
794 CC
795 CFLAGS
796 LDFLAGS
797 CPPFLAGS
798 CXX
799 CXXFLAGS
800 CCC
801 CPP'
802 ac_subdirs_all='tools/polly'
803
804 # Initialize some variables set by options.
805 ac_init_help=
806 ac_init_version=false
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
809 cache_file=/dev/null
810 exec_prefix=NONE
811 no_create=
812 no_recursion=
813 prefix=NONE
814 program_prefix=NONE
815 program_suffix=NONE
816 program_transform_name=s,x,x,
817 silent=
818 site=
819 srcdir=
820 verbose=
821 x_includes=NONE
822 x_libraries=NONE
823
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
842 htmldir='${docdir}'
843 dvidir='${docdir}'
844 pdfdir='${docdir}'
845 psdir='${docdir}'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
849
850 ac_prev=
851 ac_dashdash=
852 for ac_option
853 do
854   # If the previous option needs an argument, assign it.
855   if test -n "$ac_prev"; then
856     eval $ac_prev=\$ac_option
857     ac_prev=
858     continue
859   fi
860
861   case $ac_option in
862   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863   *)    ac_optarg=yes ;;
864   esac
865
866   # Accept the important Cygnus configure options, so we can diagnose typos.
867
868   case $ac_dashdash$ac_option in
869   --)
870     ac_dashdash=yes ;;
871
872   -bindir | --bindir | --bindi | --bind | --bin | --bi)
873     ac_prev=bindir ;;
874   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875     bindir=$ac_optarg ;;
876
877   -build | --build | --buil | --bui | --bu)
878     ac_prev=build_alias ;;
879   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880     build_alias=$ac_optarg ;;
881
882   -cache-file | --cache-file | --cache-fil | --cache-fi \
883   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884     ac_prev=cache_file ;;
885   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887     cache_file=$ac_optarg ;;
888
889   --config-cache | -C)
890     cache_file=config.cache ;;
891
892   -datadir | --datadir | --datadi | --datad)
893     ac_prev=datadir ;;
894   -datadir=* | --datadir=* | --datadi=* | --datad=*)
895     datadir=$ac_optarg ;;
896
897   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898   | --dataroo | --dataro | --datar)
899     ac_prev=datarootdir ;;
900   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902     datarootdir=$ac_optarg ;;
903
904   -disable-* | --disable-*)
905     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906     # Reject names that are not valid shell variable names.
907     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
908       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
909    { (exit 1); exit 1; }; }
910     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
911     eval enable_$ac_feature=no ;;
912
913   -docdir | --docdir | --docdi | --doc | --do)
914     ac_prev=docdir ;;
915   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916     docdir=$ac_optarg ;;
917
918   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919     ac_prev=dvidir ;;
920   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921     dvidir=$ac_optarg ;;
922
923   -enable-* | --enable-*)
924     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925     # Reject names that are not valid shell variable names.
926     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928    { (exit 1); exit 1; }; }
929     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930     eval enable_$ac_feature=\$ac_optarg ;;
931
932   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934   | --exec | --exe | --ex)
935     ac_prev=exec_prefix ;;
936   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938   | --exec=* | --exe=* | --ex=*)
939     exec_prefix=$ac_optarg ;;
940
941   -gas | --gas | --ga | --g)
942     # Obsolete; use --with-gas.
943     with_gas=yes ;;
944
945   -help | --help | --hel | --he | -h)
946     ac_init_help=long ;;
947   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948     ac_init_help=recursive ;;
949   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950     ac_init_help=short ;;
951
952   -host | --host | --hos | --ho)
953     ac_prev=host_alias ;;
954   -host=* | --host=* | --hos=* | --ho=*)
955     host_alias=$ac_optarg ;;
956
957   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958     ac_prev=htmldir ;;
959   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960   | --ht=*)
961     htmldir=$ac_optarg ;;
962
963   -includedir | --includedir | --includedi | --included | --include \
964   | --includ | --inclu | --incl | --inc)
965     ac_prev=includedir ;;
966   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967   | --includ=* | --inclu=* | --incl=* | --inc=*)
968     includedir=$ac_optarg ;;
969
970   -infodir | --infodir | --infodi | --infod | --info | --inf)
971     ac_prev=infodir ;;
972   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973     infodir=$ac_optarg ;;
974
975   -libdir | --libdir | --libdi | --libd)
976     ac_prev=libdir ;;
977   -libdir=* | --libdir=* | --libdi=* | --libd=*)
978     libdir=$ac_optarg ;;
979
980   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981   | --libexe | --libex | --libe)
982     ac_prev=libexecdir ;;
983   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984   | --libexe=* | --libex=* | --libe=*)
985     libexecdir=$ac_optarg ;;
986
987   -localedir | --localedir | --localedi | --localed | --locale)
988     ac_prev=localedir ;;
989   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990     localedir=$ac_optarg ;;
991
992   -localstatedir | --localstatedir | --localstatedi | --localstated \
993   | --localstate | --localstat | --localsta | --localst | --locals)
994     ac_prev=localstatedir ;;
995   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997     localstatedir=$ac_optarg ;;
998
999   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000     ac_prev=mandir ;;
1001   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002     mandir=$ac_optarg ;;
1003
1004   -nfp | --nfp | --nf)
1005     # Obsolete; use --without-fp.
1006     with_fp=no ;;
1007
1008   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009   | --no-cr | --no-c | -n)
1010     no_create=yes ;;
1011
1012   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014     no_recursion=yes ;;
1015
1016   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018   | --oldin | --oldi | --old | --ol | --o)
1019     ac_prev=oldincludedir ;;
1020   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023     oldincludedir=$ac_optarg ;;
1024
1025   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026     ac_prev=prefix ;;
1027   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028     prefix=$ac_optarg ;;
1029
1030   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031   | --program-pre | --program-pr | --program-p)
1032     ac_prev=program_prefix ;;
1033   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035     program_prefix=$ac_optarg ;;
1036
1037   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038   | --program-suf | --program-su | --program-s)
1039     ac_prev=program_suffix ;;
1040   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042     program_suffix=$ac_optarg ;;
1043
1044   -program-transform-name | --program-transform-name \
1045   | --program-transform-nam | --program-transform-na \
1046   | --program-transform-n | --program-transform- \
1047   | --program-transform | --program-transfor \
1048   | --program-transfo | --program-transf \
1049   | --program-trans | --program-tran \
1050   | --progr-tra | --program-tr | --program-t)
1051     ac_prev=program_transform_name ;;
1052   -program-transform-name=* | --program-transform-name=* \
1053   | --program-transform-nam=* | --program-transform-na=* \
1054   | --program-transform-n=* | --program-transform-=* \
1055   | --program-transform=* | --program-transfor=* \
1056   | --program-transfo=* | --program-transf=* \
1057   | --program-trans=* | --program-tran=* \
1058   | --progr-tra=* | --program-tr=* | --program-t=*)
1059     program_transform_name=$ac_optarg ;;
1060
1061   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062     ac_prev=pdfdir ;;
1063   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064     pdfdir=$ac_optarg ;;
1065
1066   -psdir | --psdir | --psdi | --psd | --ps)
1067     ac_prev=psdir ;;
1068   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069     psdir=$ac_optarg ;;
1070
1071   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072   | -silent | --silent | --silen | --sile | --sil)
1073     silent=yes ;;
1074
1075   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076     ac_prev=sbindir ;;
1077   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078   | --sbi=* | --sb=*)
1079     sbindir=$ac_optarg ;;
1080
1081   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083   | --sharedst | --shareds | --shared | --share | --shar \
1084   | --sha | --sh)
1085     ac_prev=sharedstatedir ;;
1086   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089   | --sha=* | --sh=*)
1090     sharedstatedir=$ac_optarg ;;
1091
1092   -site | --site | --sit)
1093     ac_prev=site ;;
1094   -site=* | --site=* | --sit=*)
1095     site=$ac_optarg ;;
1096
1097   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098     ac_prev=srcdir ;;
1099   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100     srcdir=$ac_optarg ;;
1101
1102   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103   | --syscon | --sysco | --sysc | --sys | --sy)
1104     ac_prev=sysconfdir ;;
1105   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107     sysconfdir=$ac_optarg ;;
1108
1109   -target | --target | --targe | --targ | --tar | --ta | --t)
1110     ac_prev=target_alias ;;
1111   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112     target_alias=$ac_optarg ;;
1113
1114   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115     verbose=yes ;;
1116
1117   -version | --version | --versio | --versi | --vers | -V)
1118     ac_init_version=: ;;
1119
1120   -with-* | --with-*)
1121     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122     # Reject names that are not valid shell variable names.
1123     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1124       { echo "$as_me: error: invalid package name: $ac_package" >&2
1125    { (exit 1); exit 1; }; }
1126     ac_package=`echo $ac_package| sed 's/-/_/g'`
1127     eval with_$ac_package=\$ac_optarg ;;
1128
1129   -without-* | --without-*)
1130     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131     # Reject names that are not valid shell variable names.
1132     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1133       { echo "$as_me: error: invalid package name: $ac_package" >&2
1134    { (exit 1); exit 1; }; }
1135     ac_package=`echo $ac_package | sed 's/-/_/g'`
1136     eval with_$ac_package=no ;;
1137
1138   --x)
1139     # Obsolete; use --with-x.
1140     with_x=yes ;;
1141
1142   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143   | --x-incl | --x-inc | --x-in | --x-i)
1144     ac_prev=x_includes ;;
1145   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147     x_includes=$ac_optarg ;;
1148
1149   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151     ac_prev=x_libraries ;;
1152   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154     x_libraries=$ac_optarg ;;
1155
1156   -*) { echo "$as_me: error: unrecognized option: $ac_option
1157 Try \`$0 --help' for more information." >&2
1158    { (exit 1); exit 1; }; }
1159     ;;
1160
1161   *=*)
1162     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1163     # Reject names that are not valid shell variable names.
1164     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1165       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1166    { (exit 1); exit 1; }; }
1167     eval $ac_envvar=\$ac_optarg
1168     export $ac_envvar ;;
1169
1170   *)
1171     # FIXME: should be removed in autoconf 3.0.
1172     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1176     ;;
1177
1178   esac
1179 done
1180
1181 if test -n "$ac_prev"; then
1182   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183   { echo "$as_me: error: missing argument to $ac_option" >&2
1184    { (exit 1); exit 1; }; }
1185 fi
1186
1187 # Be sure to have absolute directory names.
1188 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189                 datadir sysconfdir sharedstatedir localstatedir includedir \
1190                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191                 libdir localedir mandir
1192 do
1193   eval ac_val=\$$ac_var
1194   case $ac_val in
1195     [\\/$]* | ?:[\\/]* )  continue;;
1196     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197   esac
1198   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1199    { (exit 1); exit 1; }; }
1200 done
1201
1202 # There might be people who depend on the old broken behavior: `$host'
1203 # used to hold the argument of --host etc.
1204 # FIXME: To remove some day.
1205 build=$build_alias
1206 host=$host_alias
1207 target=$target_alias
1208
1209 # FIXME: To remove some day.
1210 if test "x$host_alias" != x; then
1211   if test "x$build_alias" = x; then
1212     cross_compiling=maybe
1213     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1214     If a cross compiler is detected then cross compile mode will be used." >&2
1215   elif test "x$build_alias" != "x$host_alias"; then
1216     cross_compiling=yes
1217   fi
1218 fi
1219
1220 ac_tool_prefix=
1221 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1222
1223 test "$silent" = yes && exec 6>/dev/null
1224
1225
1226 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227 ac_ls_di=`ls -di .` &&
1228 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229   { echo "$as_me: error: Working directory cannot be determined" >&2
1230    { (exit 1); exit 1; }; }
1231 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232   { echo "$as_me: error: pwd does not report name of working directory" >&2
1233    { (exit 1); exit 1; }; }
1234
1235
1236 # Find the source files, if location was not specified.
1237 if test -z "$srcdir"; then
1238   ac_srcdir_defaulted=yes
1239   # Try the directory containing this script, then the parent directory.
1240   ac_confdir=`$as_dirname -- "$0" ||
1241 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242          X"$0" : 'X\(//\)[^/]' \| \
1243          X"$0" : 'X\(//\)$' \| \
1244          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1245 echo X"$0" |
1246     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247             s//\1/
1248             q
1249           }
1250           /^X\(\/\/\)[^/].*/{
1251             s//\1/
1252             q
1253           }
1254           /^X\(\/\/\)$/{
1255             s//\1/
1256             q
1257           }
1258           /^X\(\/\).*/{
1259             s//\1/
1260             q
1261           }
1262           s/.*/./; q'`
1263   srcdir=$ac_confdir
1264   if test ! -r "$srcdir/$ac_unique_file"; then
1265     srcdir=..
1266   fi
1267 else
1268   ac_srcdir_defaulted=no
1269 fi
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1273    { (exit 1); exit 1; }; }
1274 fi
1275 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1276 ac_abs_confdir=`(
1277         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1278    { (exit 1); exit 1; }; }
1279         pwd)`
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1282   srcdir=.
1283 fi
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1287 case $srcdir in
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 esac
1290 for ac_var in $ac_precious_vars; do
1291   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292   eval ac_env_${ac_var}_value=\$${ac_var}
1293   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295 done
1296
1297 #
1298 # Report the --help message.
1299 #
1300 if test "$ac_init_help" = "long"; then
1301   # Omit some internal or obsolete options to make the list less imposing.
1302   # This message is too long to be a string in the A/UX 3.1 sh.
1303   cat <<_ACEOF
1304 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1305
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1307
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE.  See below for descriptions of some of the useful variables.
1310
1311 Defaults for the options are specified in brackets.
1312
1313 Configuration:
1314   -h, --help              display this help and exit
1315       --help=short        display options specific to this package
1316       --help=recursive    display the short help of all the included packages
1317   -V, --version           display version information and exit
1318   -q, --quiet, --silent   do not print \`checking...' messages
1319       --cache-file=FILE   cache test results in FILE [disabled]
1320   -C, --config-cache      alias for \`--cache-file=config.cache'
1321   -n, --no-create         do not create output files
1322       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1323
1324 Installation directories:
1325   --prefix=PREFIX         install architecture-independent files in PREFIX
1326                           [$ac_default_prefix]
1327   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1328                           [PREFIX]
1329
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1334
1335 For better control, use the options below.
1336
1337 Fine tuning of the installation directories:
1338   --bindir=DIR           user executables [EPREFIX/bin]
1339   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1340   --libexecdir=DIR       program executables [EPREFIX/libexec]
1341   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1342   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1343   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1344   --libdir=DIR           object code libraries [EPREFIX/lib]
1345   --includedir=DIR       C header files [PREFIX/include]
1346   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1347   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1348   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1349   --infodir=DIR          info documentation [DATAROOTDIR/info]
1350   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1351   --mandir=DIR           man documentation [DATAROOTDIR/man]
1352   --docdir=DIR           documentation root [DATAROOTDIR/doc/--sample--]
1353   --htmldir=DIR          html documentation [DOCDIR]
1354   --dvidir=DIR           dvi documentation [DOCDIR]
1355   --pdfdir=DIR           pdf documentation [DOCDIR]
1356   --psdir=DIR            ps documentation [DOCDIR]
1357 _ACEOF
1358
1359   cat <<\_ACEOF
1360
1361 System types:
1362   --build=BUILD     configure for building on BUILD [guessed]
1363   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1364   --target=TARGET   configure for building compilers for TARGET [HOST]
1365 _ACEOF
1366 fi
1367
1368 if test -n "$ac_init_help"; then
1369   case $ac_init_help in
1370      short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1371    esac
1372   cat <<\_ACEOF
1373
1374 Optional Features:
1375   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1376   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1377   --enable-polly          Use polly if available (default is YES)
1378   --enable-optimized      Compile with optimizations enabled (default is NO)
1379   --enable-profiling      Compile with profiling enabled (default is NO)
1380   --enable-assertions     Compile with assertion checks enabled (default is
1381                           YES)
1382   --enable-expensive-checks
1383                           Compile with expensive debug checks enabled (default
1384                           is NO)
1385   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1386                           NO)
1387   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1388                           optimization is on and YES if it's off)
1389   --enable-jit            Enable Just In Time Compiling (default is YES)
1390   --enable-docs           Build documents (default is YES)
1391   --enable-doxygen        Build doxygen documentation (default is NO)
1392   --enable-threads        Use threads if available (default is YES)
1393   --enable-pthreads       Use pthreads if available (default is YES)
1394   --enable-pic            Build LLVM with Position Independent Code (default
1395                           is YES)
1396   --enable-shared         Build a shared library and link tools against it
1397                           (default is NO)
1398   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1399                           Win32 DLL (default is YES)
1400   --enable-timestamps     Enable embedding timestamp information in build
1401                           (default is YES)
1402   --enable-targets        Build specific host targets: all or
1403                           target1,target2,... Valid targets are: host, x86,
1404                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1405                           xcore, msp430, blackfin, ptx, cbe, and cpp
1406                           (default=all)
1407   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1408                           %a (default is YES)
1409   --enable-bindings       Build specific language bindings:
1410                           all,auto,none,{binding-name} (default=auto)
1411   --enable-libffi         Check for the presence of libffi (default is NO)
1412   --enable-ltdl-install   install libltdl
1413
1414 Optional Packages:
1415   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1416   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1417   --with-llvmsrc          Location of LLVM Source Code
1418   --with-llvmobj          Location of LLVM Object Code
1419   --with-optimize-option  Select the compiler options to use for optimized
1420                           builds
1421   --with-extra-options    Specify additional options to compile LLVM with
1422   --with-extra-ld-options Specify additional options to link LLVM with
1423   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1424                           is stdlib)
1425   --with-clang-resource-dir
1426                           Relative directory from the Clang binary for
1427                           resource files
1428   --with-c-include-dirs   Colon separated list of directories clang will
1429                           search for headers
1430   --with-cxx-include-root Directory with the libstdc++ headers.
1431   --with-cxx-include-arch Architecture of the libstdc++ headers.
1432   --with-cxx-include-32bit-dir
1433                           32 bit multilib dir.
1434   --with-cxx-include-64bit-dir
1435                           64 bit multilib directory.
1436   --with-binutils-include Specify path to binutils/include/ containing
1437                           plugin-api.h file for gold plugin.
1438   --with-bug-report-url   Specify the URL where bug reports should be
1439                           submitted (default=http://llvm.org/bugs/)
1440   --with-tclinclude       directory where tcl headers are
1441   --with-udis86=<path>    Use udis86 external x86 disassembler library
1442   --with-oprofile=<prefix>
1443                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1444
1445 Some influential environment variables:
1446   CC          C compiler command
1447   CFLAGS      C compiler flags
1448   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1449               nonstandard directory <lib dir>
1450   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1451               you have headers in a nonstandard directory <include dir>
1452   CXX         C++ compiler command
1453   CXXFLAGS    C++ compiler flags
1454   CPP         C preprocessor
1455
1456 Use these variables to override the choices made by `configure' or to help
1457 it to find libraries and programs with nonstandard names/locations.
1458
1459 Report bugs to <bugs@yourdomain>.
1460 _ACEOF
1461 ac_status=$?
1462 fi
1463
1464 if test "$ac_init_help" = "recursive"; then
1465   # If there are subdirs, report their specific --help.
1466   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1467     test -d "$ac_dir" || continue
1468     ac_builddir=.
1469
1470 case "$ac_dir" in
1471 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 *)
1473   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1474   # A ".." for each directory in $ac_dir_suffix.
1475   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1476   case $ac_top_builddir_sub in
1477   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1479   esac ;;
1480 esac
1481 ac_abs_top_builddir=$ac_pwd
1482 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1483 # for backward compatibility:
1484 ac_top_builddir=$ac_top_build_prefix
1485
1486 case $srcdir in
1487   .)  # We are building in place.
1488     ac_srcdir=.
1489     ac_top_srcdir=$ac_top_builddir_sub
1490     ac_abs_top_srcdir=$ac_pwd ;;
1491   [\\/]* | ?:[\\/]* )  # Absolute name.
1492     ac_srcdir=$srcdir$ac_dir_suffix;
1493     ac_top_srcdir=$srcdir
1494     ac_abs_top_srcdir=$srcdir ;;
1495   *) # Relative name.
1496     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1497     ac_top_srcdir=$ac_top_build_prefix$srcdir
1498     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1499 esac
1500 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1501
1502     cd "$ac_dir" || { ac_status=$?; continue; }
1503     # Check for guested configure.
1504     if test -f "$ac_srcdir/configure.gnu"; then
1505       echo &&
1506       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1507     elif test -f "$ac_srcdir/configure"; then
1508       echo &&
1509       $SHELL "$ac_srcdir/configure" --help=recursive
1510     else
1511       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1512     fi || ac_status=$?
1513     cd "$ac_pwd" || { ac_status=$?; break; }
1514   done
1515 fi
1516
1517 test -n "$ac_init_help" && exit $ac_status
1518 if $ac_init_version; then
1519   cat <<\_ACEOF
1520 [SAMPLE] configure [x.xx]
1521 generated by GNU Autoconf 2.60
1522
1523 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1524 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1525 This configure script is free software; the Free Software Foundation
1526 gives unlimited permission to copy, distribute and modify it.
1527 _ACEOF
1528   exit
1529 fi
1530 cat >config.log <<_ACEOF
1531 This file contains any messages produced by compilers while
1532 running configure, to aid debugging if configure makes a mistake.
1533
1534 It was created by [SAMPLE] $as_me [x.xx], which was
1535 generated by GNU Autoconf 2.60.  Invocation command line was
1536
1537   $ $0 $@
1538
1539 _ACEOF
1540 exec 5>>config.log
1541 {
1542 cat <<_ASUNAME
1543 ## --------- ##
1544 ## Platform. ##
1545 ## --------- ##
1546
1547 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1548 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1549 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1550 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1551 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1552
1553 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1554 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1555
1556 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1557 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1558 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1559 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1560 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1561 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1562 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1563
1564 _ASUNAME
1565
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 for as_dir in $PATH
1568 do
1569   IFS=$as_save_IFS
1570   test -z "$as_dir" && as_dir=.
1571   echo "PATH: $as_dir"
1572 done
1573 IFS=$as_save_IFS
1574
1575 } >&5
1576
1577 cat >&5 <<_ACEOF
1578
1579
1580 ## ----------- ##
1581 ## Core tests. ##
1582 ## ----------- ##
1583
1584 _ACEOF
1585
1586
1587 # Keep a trace of the command line.
1588 # Strip out --no-create and --no-recursion so they do not pile up.
1589 # Strip out --silent because we don't want to record it for future runs.
1590 # Also quote any args containing shell meta-characters.
1591 # Make two passes to allow for proper duplicate-argument suppression.
1592 ac_configure_args=
1593 ac_configure_args0=
1594 ac_configure_args1=
1595 ac_must_keep_next=false
1596 for ac_pass in 1 2
1597 do
1598   for ac_arg
1599   do
1600     case $ac_arg in
1601     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1602     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1603     | -silent | --silent | --silen | --sile | --sil)
1604       continue ;;
1605     *\'*)
1606       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1607     esac
1608     case $ac_pass in
1609     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1610     2)
1611       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1612       if test $ac_must_keep_next = true; then
1613         ac_must_keep_next=false # Got value, back to normal.
1614       else
1615         case $ac_arg in
1616           *=* | --config-cache | -C | -disable-* | --disable-* \
1617           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1618           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1619           | -with-* | --with-* | -without-* | --without-* | --x)
1620             case "$ac_configure_args0 " in
1621               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1622             esac
1623             ;;
1624           -* ) ac_must_keep_next=true ;;
1625         esac
1626       fi
1627       ac_configure_args="$ac_configure_args '$ac_arg'"
1628       ;;
1629     esac
1630   done
1631 done
1632 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1633 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1634
1635 # When interrupted or exit'd, cleanup temporary files, and complete
1636 # config.log.  We remove comments because anyway the quotes in there
1637 # would cause problems or look ugly.
1638 # WARNING: Use '\'' to represent an apostrophe within the trap.
1639 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1640 trap 'exit_status=$?
1641   # Save into config.log some information that might help in debugging.
1642   {
1643     echo
1644
1645     cat <<\_ASBOX
1646 ## ---------------- ##
1647 ## Cache variables. ##
1648 ## ---------------- ##
1649 _ASBOX
1650     echo
1651     # The following way of writing the cache mishandles newlines in values,
1652 (
1653   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1654     eval ac_val=\$$ac_var
1655     case $ac_val in #(
1656     *${as_nl}*)
1657       case $ac_var in #(
1658       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1659 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1660       esac
1661       case $ac_var in #(
1662       _ | IFS | as_nl) ;; #(
1663       *) $as_unset $ac_var ;;
1664       esac ;;
1665     esac
1666   done
1667   (set) 2>&1 |
1668     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1669     *${as_nl}ac_space=\ *)
1670       sed -n \
1671         "s/'\''/'\''\\\\'\'''\''/g;
1672           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1673       ;; #(
1674     *)
1675       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1676       ;;
1677     esac |
1678     sort
1679 )
1680     echo
1681
1682     cat <<\_ASBOX
1683 ## ----------------- ##
1684 ## Output variables. ##
1685 ## ----------------- ##
1686 _ASBOX
1687     echo
1688     for ac_var in $ac_subst_vars
1689     do
1690       eval ac_val=\$$ac_var
1691       case $ac_val in
1692       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1693       esac
1694       echo "$ac_var='\''$ac_val'\''"
1695     done | sort
1696     echo
1697
1698     if test -n "$ac_subst_files"; then
1699       cat <<\_ASBOX
1700 ## ------------------- ##
1701 ## File substitutions. ##
1702 ## ------------------- ##
1703 _ASBOX
1704       echo
1705       for ac_var in $ac_subst_files
1706       do
1707         eval ac_val=\$$ac_var
1708         case $ac_val in
1709         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1710         esac
1711         echo "$ac_var='\''$ac_val'\''"
1712       done | sort
1713       echo
1714     fi
1715
1716     if test -s confdefs.h; then
1717       cat <<\_ASBOX
1718 ## ----------- ##
1719 ## confdefs.h. ##
1720 ## ----------- ##
1721 _ASBOX
1722       echo
1723       cat confdefs.h
1724       echo
1725     fi
1726     test "$ac_signal" != 0 &&
1727       echo "$as_me: caught signal $ac_signal"
1728     echo "$as_me: exit $exit_status"
1729   } >&5
1730   rm -f core *.core core.conftest.* &&
1731     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1732     exit $exit_status
1733 ' 0
1734 for ac_signal in 1 2 13 15; do
1735   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1736 done
1737 ac_signal=0
1738
1739 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1740 rm -f -r conftest* confdefs.h
1741
1742 # Predefined preprocessor variables.
1743
1744 cat >>confdefs.h <<_ACEOF
1745 #define PACKAGE_NAME "$PACKAGE_NAME"
1746 _ACEOF
1747
1748
1749 cat >>confdefs.h <<_ACEOF
1750 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1751 _ACEOF
1752
1753
1754 cat >>confdefs.h <<_ACEOF
1755 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1756 _ACEOF
1757
1758
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_STRING "$PACKAGE_STRING"
1761 _ACEOF
1762
1763
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1766 _ACEOF
1767
1768
1769 # Let the site file select an alternate cache file if it wants to.
1770 # Prefer explicitly selected file to automatically selected ones.
1771 if test -n "$CONFIG_SITE"; then
1772   set x "$CONFIG_SITE"
1773 elif test "x$prefix" != xNONE; then
1774   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1775 else
1776   set x "$ac_default_prefix/share/config.site" \
1777         "$ac_default_prefix/etc/config.site"
1778 fi
1779 shift
1780 for ac_site_file
1781 do
1782   if test -r "$ac_site_file"; then
1783     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1784 echo "$as_me: loading site script $ac_site_file" >&6;}
1785     sed 's/^/| /' "$ac_site_file" >&5
1786     . "$ac_site_file"
1787   fi
1788 done
1789
1790 if test -r "$cache_file"; then
1791   # Some versions of bash will fail to source /dev/null (special
1792   # files actually), so we avoid doing that.
1793   if test -f "$cache_file"; then
1794     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1795 echo "$as_me: loading cache $cache_file" >&6;}
1796     case $cache_file in
1797       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1798       *)                      . "./$cache_file";;
1799     esac
1800   fi
1801 else
1802   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1803 echo "$as_me: creating cache $cache_file" >&6;}
1804   >$cache_file
1805 fi
1806
1807 # Check that the precious variables saved in the cache have kept the same
1808 # value.
1809 ac_cache_corrupted=false
1810 for ac_var in $ac_precious_vars; do
1811   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1812   eval ac_new_set=\$ac_env_${ac_var}_set
1813   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1814   eval ac_new_val=\$ac_env_${ac_var}_value
1815   case $ac_old_set,$ac_new_set in
1816     set,)
1817       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1818 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1819       ac_cache_corrupted=: ;;
1820     ,set)
1821       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1822 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1823       ac_cache_corrupted=: ;;
1824     ,);;
1825     *)
1826       if test "x$ac_old_val" != "x$ac_new_val"; then
1827         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1828 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1829         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1830 echo "$as_me:   former value:  $ac_old_val" >&2;}
1831         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1832 echo "$as_me:   current value: $ac_new_val" >&2;}
1833         ac_cache_corrupted=:
1834       fi;;
1835   esac
1836   # Pass precious variables to config.status.
1837   if test "$ac_new_set" = set; then
1838     case $ac_new_val in
1839     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1840     *) ac_arg=$ac_var=$ac_new_val ;;
1841     esac
1842     case " $ac_configure_args " in
1843       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1844       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1845     esac
1846   fi
1847 done
1848 if $ac_cache_corrupted; then
1849   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1850 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1851   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1852 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1853    { (exit 1); exit 1; }; }
1854 fi
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880 ac_ext=c
1881 ac_cpp='$CPP $CPPFLAGS'
1882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1885
1886
1887
1888 LLVM_SRC_ROOT="../.."
1889 LLVM_OBJ_ROOT="../.."
1890
1891 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1892 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
1893
1894
1895 # Check whether --with-llvmsrc was given.
1896 if test "${with_llvmsrc+set}" = set; then
1897   withval=$with_llvmsrc; llvm_src="$withval"
1898 else
1899   llvm_src="$LLVM_ABS_SRC_ROOT"
1900 fi
1901
1902   LLVM_SRC=$llvm_src
1903
1904
1905 # Check whether --with-llvmobj was given.
1906 if test "${with_llvmobj+set}" = set; then
1907   withval=$with_llvmobj; llvm_obj="$withval"
1908 else
1909   llvm_obj="$LLVM_ABS_OBJ_ROOT"
1910 fi
1911
1912   LLVM_OBJ=$llvm_obj
1913
1914   ac_config_commands="$ac_config_commands setup"
1915
1916
1917
1918 { echo "$as_me:$LINENO: checking llvm-config" >&5
1919 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1920 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1921 if ! test -f "$llvm_config_path" ; then
1922    llvm_config_path="no"
1923 fi
1924 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1925 echo "${ECHO_T}$llvm_config_path" >&6; }
1926
1927 { echo "$as_me:$LINENO: checking LLVM package version" >&5
1928 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1929 if test "$llvm_config_path" != no ; then
1930   llvm_package_version=`$llvm_config_path --version`
1931 else
1932   llvm_package_version="unknown";
1933 fi
1934 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1935 echo "${ECHO_T}$llvm_package_version" >&6; }
1936 LLVM_VERSION=$llvm_package_version
1937
1938
1939
1940
1941 ac_aux_dir=
1942 for ac_dir in autoconf "$srcdir"/autoconf; do
1943   if test -f "$ac_dir/install-sh"; then
1944     ac_aux_dir=$ac_dir
1945     ac_install_sh="$ac_aux_dir/install-sh -c"
1946     break
1947   elif test -f "$ac_dir/install.sh"; then
1948     ac_aux_dir=$ac_dir
1949     ac_install_sh="$ac_aux_dir/install.sh -c"
1950     break
1951   elif test -f "$ac_dir/shtool"; then
1952     ac_aux_dir=$ac_dir
1953     ac_install_sh="$ac_aux_dir/shtool install -c"
1954     break
1955   fi
1956 done
1957 if test -z "$ac_aux_dir"; then
1958   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1959 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1960    { (exit 1); exit 1; }; }
1961 fi
1962
1963 # These three variables are undocumented and unsupported,
1964 # and are intended to be withdrawn in a future Autoconf release.
1965 # They can cause serious problems if a builder's source tree is in a directory
1966 # whose full name contains unusual characters.
1967 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1968 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1969 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1970
1971
1972
1973
1974 ac_ext=c
1975 ac_cpp='$CPP $CPPFLAGS'
1976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1979 if test -n "$ac_tool_prefix"; then
1980   for ac_prog in clang llvm-gcc gcc
1981   do
1982     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1983 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1986 if test "${ac_cv_prog_CC+set}" = set; then
1987   echo $ECHO_N "(cached) $ECHO_C" >&6
1988 else
1989   if test -n "$CC"; then
1990   ac_cv_prog_CC="$CC" # Let the user override the test.
1991 else
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 for as_dir in $PATH
1994 do
1995   IFS=$as_save_IFS
1996   test -z "$as_dir" && as_dir=.
1997   for ac_exec_ext in '' $ac_executable_extensions; do
1998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1999     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001     break 2
2002   fi
2003 done
2004 done
2005 IFS=$as_save_IFS
2006
2007 fi
2008 fi
2009 CC=$ac_cv_prog_CC
2010 if test -n "$CC"; then
2011   { echo "$as_me:$LINENO: result: $CC" >&5
2012 echo "${ECHO_T}$CC" >&6; }
2013 else
2014   { echo "$as_me:$LINENO: result: no" >&5
2015 echo "${ECHO_T}no" >&6; }
2016 fi
2017
2018
2019     test -n "$CC" && break
2020   done
2021 fi
2022 if test -z "$CC"; then
2023   ac_ct_CC=$CC
2024   for ac_prog in clang llvm-gcc gcc
2025 do
2026   # Extract the first word of "$ac_prog", so it can be a program name with args.
2027 set dummy $ac_prog; ac_word=$2
2028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2030 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2031   echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033   if test -n "$ac_ct_CC"; then
2034   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2035 else
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 for as_dir in $PATH
2038 do
2039   IFS=$as_save_IFS
2040   test -z "$as_dir" && as_dir=.
2041   for ac_exec_ext in '' $ac_executable_extensions; do
2042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2043     ac_cv_prog_ac_ct_CC="$ac_prog"
2044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045     break 2
2046   fi
2047 done
2048 done
2049 IFS=$as_save_IFS
2050
2051 fi
2052 fi
2053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2054 if test -n "$ac_ct_CC"; then
2055   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2056 echo "${ECHO_T}$ac_ct_CC" >&6; }
2057 else
2058   { echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6; }
2060 fi
2061
2062
2063   test -n "$ac_ct_CC" && break
2064 done
2065
2066   if test "x$ac_ct_CC" = x; then
2067     CC=""
2068   else
2069     case $cross_compiling:$ac_tool_warned in
2070 yes:)
2071 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2072 whose name does not start with the host triplet.  If you think this
2073 configuration is useful to you, please write to autoconf@gnu.org." >&5
2074 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2075 whose name does not start with the host triplet.  If you think this
2076 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2077 ac_tool_warned=yes ;;
2078 esac
2079     CC=$ac_ct_CC
2080   fi
2081 fi
2082
2083
2084 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2085 See \`config.log' for more details." >&5
2086 echo "$as_me: error: no acceptable C compiler found in \$PATH
2087 See \`config.log' for more details." >&2;}
2088    { (exit 1); exit 1; }; }
2089
2090 # Provide some information about the compiler.
2091 echo "$as_me:$LINENO: checking for C compiler version" >&5
2092 ac_compiler=`set X $ac_compile; echo $2`
2093 { (ac_try="$ac_compiler --version >&5"
2094 case "(($ac_try" in
2095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096   *) ac_try_echo=$ac_try;;
2097 esac
2098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099   (eval "$ac_compiler --version >&5") 2>&5
2100   ac_status=$?
2101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102   (exit $ac_status); }
2103 { (ac_try="$ac_compiler -v >&5"
2104 case "(($ac_try" in
2105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106   *) ac_try_echo=$ac_try;;
2107 esac
2108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2109   (eval "$ac_compiler -v >&5") 2>&5
2110   ac_status=$?
2111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112   (exit $ac_status); }
2113 { (ac_try="$ac_compiler -V >&5"
2114 case "(($ac_try" in
2115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116   *) ac_try_echo=$ac_try;;
2117 esac
2118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119   (eval "$ac_compiler -V >&5") 2>&5
2120   ac_status=$?
2121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122   (exit $ac_status); }
2123
2124 cat >conftest.$ac_ext <<_ACEOF
2125 /* confdefs.h.  */
2126 _ACEOF
2127 cat confdefs.h >>conftest.$ac_ext
2128 cat >>conftest.$ac_ext <<_ACEOF
2129 /* end confdefs.h.  */
2130
2131 int
2132 main ()
2133 {
2134
2135   ;
2136   return 0;
2137 }
2138 _ACEOF
2139 ac_clean_files_save=$ac_clean_files
2140 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2141 # Try to create an executable without -o first, disregard a.out.
2142 # It will help us diagnose broken compilers, and finding out an intuition
2143 # of exeext.
2144 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2145 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2146 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2147 #
2148 # List of possible output files, starting from the most likely.
2149 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2150 # only as a last resort.  b.out is created by i960 compilers.
2151 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2152 #
2153 # The IRIX 6 linker writes into existing files which may not be
2154 # executable, retaining their permissions.  Remove them first so a
2155 # subsequent execution test works.
2156 ac_rmfiles=
2157 for ac_file in $ac_files
2158 do
2159   case $ac_file in
2160     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2161     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2162   esac
2163 done
2164 rm -f $ac_rmfiles
2165
2166 if { (ac_try="$ac_link_default"
2167 case "(($ac_try" in
2168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2169   *) ac_try_echo=$ac_try;;
2170 esac
2171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2172   (eval "$ac_link_default") 2>&5
2173   ac_status=$?
2174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175   (exit $ac_status); }; then
2176   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2177 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2178 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2179 # so that the user can short-circuit this test for compilers unknown to
2180 # Autoconf.
2181 for ac_file in $ac_files
2182 do
2183   test -f "$ac_file" || continue
2184   case $ac_file in
2185     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2186         ;;
2187     [ab].out )
2188         # We found the default executable, but exeext='' is most
2189         # certainly right.
2190         break;;
2191     *.* )
2192         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2193         then :; else
2194            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2195         fi
2196         # We set ac_cv_exeext here because the later test for it is not
2197         # safe: cross compilers may not add the suffix if given an `-o'
2198         # argument, so we may need to know it at that point already.
2199         # Even if this section looks crufty: it has the advantage of
2200         # actually working.
2201         break;;
2202     * )
2203         break;;
2204   esac
2205 done
2206 test "$ac_cv_exeext" = no && ac_cv_exeext=
2207
2208 else
2209   echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2211
2212 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2213 See \`config.log' for more details." >&5
2214 echo "$as_me: error: C compiler cannot create executables
2215 See \`config.log' for more details." >&2;}
2216    { (exit 77); exit 77; }; }
2217 fi
2218
2219 ac_exeext=$ac_cv_exeext
2220 { echo "$as_me:$LINENO: result: $ac_file" >&5
2221 echo "${ECHO_T}$ac_file" >&6; }
2222
2223 # Check that the compiler produces executables we can run.  If not, either
2224 # the compiler is broken, or we cross compile.
2225 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2226 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2227 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2228 # If not cross compiling, check that we can run a simple program.
2229 if test "$cross_compiling" != yes; then
2230   if { ac_try='./$ac_file'
2231   { (case "(($ac_try" in
2232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233   *) ac_try_echo=$ac_try;;
2234 esac
2235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2236   (eval "$ac_try") 2>&5
2237   ac_status=$?
2238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239   (exit $ac_status); }; }; then
2240     cross_compiling=no
2241   else
2242     if test "$cross_compiling" = maybe; then
2243         cross_compiling=yes
2244     else
2245         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2246 If you meant to cross compile, use \`--host'.
2247 See \`config.log' for more details." >&5
2248 echo "$as_me: error: cannot run C compiled programs.
2249 If you meant to cross compile, use \`--host'.
2250 See \`config.log' for more details." >&2;}
2251    { (exit 1); exit 1; }; }
2252     fi
2253   fi
2254 fi
2255 { echo "$as_me:$LINENO: result: yes" >&5
2256 echo "${ECHO_T}yes" >&6; }
2257
2258 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2259 ac_clean_files=$ac_clean_files_save
2260 # Check that the compiler produces executables we can run.  If not, either
2261 # the compiler is broken, or we cross compile.
2262 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2263 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2264 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2265 echo "${ECHO_T}$cross_compiling" >&6; }
2266
2267 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2268 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2269 if { (ac_try="$ac_link"
2270 case "(($ac_try" in
2271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272   *) ac_try_echo=$ac_try;;
2273 esac
2274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2275   (eval "$ac_link") 2>&5
2276   ac_status=$?
2277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278   (exit $ac_status); }; then
2279   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2280 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2281 # work properly (i.e., refer to `conftest.exe'), while it won't with
2282 # `rm'.
2283 for ac_file in conftest.exe conftest conftest.*; do
2284   test -f "$ac_file" || continue
2285   case $ac_file in
2286     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2287     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2288           break;;
2289     * ) break;;
2290   esac
2291 done
2292 else
2293   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2294 See \`config.log' for more details." >&5
2295 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2296 See \`config.log' for more details." >&2;}
2297    { (exit 1); exit 1; }; }
2298 fi
2299
2300 rm -f conftest$ac_cv_exeext
2301 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2302 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2303
2304 rm -f conftest.$ac_ext
2305 EXEEXT=$ac_cv_exeext
2306 ac_exeext=$EXEEXT
2307 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2308 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2309 if test "${ac_cv_objext+set}" = set; then
2310   echo $ECHO_N "(cached) $ECHO_C" >&6
2311 else
2312   cat >conftest.$ac_ext <<_ACEOF
2313 /* confdefs.h.  */
2314 _ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h.  */
2318
2319 int
2320 main ()
2321 {
2322
2323   ;
2324   return 0;
2325 }
2326 _ACEOF
2327 rm -f conftest.o conftest.obj
2328 if { (ac_try="$ac_compile"
2329 case "(($ac_try" in
2330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331   *) ac_try_echo=$ac_try;;
2332 esac
2333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2334   (eval "$ac_compile") 2>&5
2335   ac_status=$?
2336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337   (exit $ac_status); }; then
2338   for ac_file in conftest.o conftest.obj conftest.*; do
2339   test -f "$ac_file" || continue;
2340   case $ac_file in
2341     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2342     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2343        break;;
2344   esac
2345 done
2346 else
2347   echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2349
2350 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2351 See \`config.log' for more details." >&5
2352 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2353 See \`config.log' for more details." >&2;}
2354    { (exit 1); exit 1; }; }
2355 fi
2356
2357 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2358 fi
2359 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2360 echo "${ECHO_T}$ac_cv_objext" >&6; }
2361 OBJEXT=$ac_cv_objext
2362 ac_objext=$OBJEXT
2363 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2364 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2365 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2366   echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368   cat >conftest.$ac_ext <<_ACEOF
2369 /* confdefs.h.  */
2370 _ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h.  */
2374
2375 int
2376 main ()
2377 {
2378 #ifndef __GNUC__
2379        choke me
2380 #endif
2381
2382   ;
2383   return 0;
2384 }
2385 _ACEOF
2386 rm -f conftest.$ac_objext
2387 if { (ac_try="$ac_compile"
2388 case "(($ac_try" in
2389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390   *) ac_try_echo=$ac_try;;
2391 esac
2392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393   (eval "$ac_compile") 2>conftest.er1
2394   ac_status=$?
2395   grep -v '^ *+' conftest.er1 >conftest.err
2396   rm -f conftest.er1
2397   cat conftest.err >&5
2398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399   (exit $ac_status); } &&
2400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2401   { (case "(($ac_try" in
2402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403   *) ac_try_echo=$ac_try;;
2404 esac
2405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406   (eval "$ac_try") 2>&5
2407   ac_status=$?
2408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409   (exit $ac_status); }; } &&
2410          { ac_try='test -s conftest.$ac_objext'
2411   { (case "(($ac_try" in
2412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413   *) ac_try_echo=$ac_try;;
2414 esac
2415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416   (eval "$ac_try") 2>&5
2417   ac_status=$?
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); }; }; then
2420   ac_compiler_gnu=yes
2421 else
2422   echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2424
2425         ac_compiler_gnu=no
2426 fi
2427
2428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2429 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2430
2431 fi
2432 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2433 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2434 GCC=`test $ac_compiler_gnu = yes && echo yes`
2435 ac_test_CFLAGS=${CFLAGS+set}
2436 ac_save_CFLAGS=$CFLAGS
2437 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2438 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_cc_g+set}" = set; then
2440   echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442   ac_save_c_werror_flag=$ac_c_werror_flag
2443    ac_c_werror_flag=yes
2444    ac_cv_prog_cc_g=no
2445    CFLAGS="-g"
2446    cat >conftest.$ac_ext <<_ACEOF
2447 /* confdefs.h.  */
2448 _ACEOF
2449 cat confdefs.h >>conftest.$ac_ext
2450 cat >>conftest.$ac_ext <<_ACEOF
2451 /* end confdefs.h.  */
2452
2453 int
2454 main ()
2455 {
2456
2457   ;
2458   return 0;
2459 }
2460 _ACEOF
2461 rm -f conftest.$ac_objext
2462 if { (ac_try="$ac_compile"
2463 case "(($ac_try" in
2464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465   *) ac_try_echo=$ac_try;;
2466 esac
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468   (eval "$ac_compile") 2>conftest.er1
2469   ac_status=$?
2470   grep -v '^ *+' conftest.er1 >conftest.err
2471   rm -f conftest.er1
2472   cat conftest.err >&5
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); } &&
2475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2476   { (case "(($ac_try" in
2477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478   *) ac_try_echo=$ac_try;;
2479 esac
2480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481   (eval "$ac_try") 2>&5
2482   ac_status=$?
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); }; } &&
2485          { ac_try='test -s conftest.$ac_objext'
2486   { (case "(($ac_try" in
2487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488   *) ac_try_echo=$ac_try;;
2489 esac
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491   (eval "$ac_try") 2>&5
2492   ac_status=$?
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); }; }; then
2495   ac_cv_prog_cc_g=yes
2496 else
2497   echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2499
2500         CFLAGS=""
2501       cat >conftest.$ac_ext <<_ACEOF
2502 /* confdefs.h.  */
2503 _ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h.  */
2507
2508 int
2509 main ()
2510 {
2511
2512   ;
2513   return 0;
2514 }
2515 _ACEOF
2516 rm -f conftest.$ac_objext
2517 if { (ac_try="$ac_compile"
2518 case "(($ac_try" in
2519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520   *) ac_try_echo=$ac_try;;
2521 esac
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523   (eval "$ac_compile") 2>conftest.er1
2524   ac_status=$?
2525   grep -v '^ *+' conftest.er1 >conftest.err
2526   rm -f conftest.er1
2527   cat conftest.err >&5
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); } &&
2530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2531   { (case "(($ac_try" in
2532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533   *) ac_try_echo=$ac_try;;
2534 esac
2535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536   (eval "$ac_try") 2>&5
2537   ac_status=$?
2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539   (exit $ac_status); }; } &&
2540          { ac_try='test -s conftest.$ac_objext'
2541   { (case "(($ac_try" in
2542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543   *) ac_try_echo=$ac_try;;
2544 esac
2545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546   (eval "$ac_try") 2>&5
2547   ac_status=$?
2548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549   (exit $ac_status); }; }; then
2550   :
2551 else
2552   echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2554
2555         ac_c_werror_flag=$ac_save_c_werror_flag
2556          CFLAGS="-g"
2557          cat >conftest.$ac_ext <<_ACEOF
2558 /* confdefs.h.  */
2559 _ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h.  */
2563
2564 int
2565 main ()
2566 {
2567
2568   ;
2569   return 0;
2570 }
2571 _ACEOF
2572 rm -f conftest.$ac_objext
2573 if { (ac_try="$ac_compile"
2574 case "(($ac_try" in
2575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576   *) ac_try_echo=$ac_try;;
2577 esac
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579   (eval "$ac_compile") 2>conftest.er1
2580   ac_status=$?
2581   grep -v '^ *+' conftest.er1 >conftest.err
2582   rm -f conftest.er1
2583   cat conftest.err >&5
2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585   (exit $ac_status); } &&
2586          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2587   { (case "(($ac_try" in
2588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589   *) ac_try_echo=$ac_try;;
2590 esac
2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592   (eval "$ac_try") 2>&5
2593   ac_status=$?
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); }; } &&
2596          { ac_try='test -s conftest.$ac_objext'
2597   { (case "(($ac_try" in
2598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599   *) ac_try_echo=$ac_try;;
2600 esac
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602   (eval "$ac_try") 2>&5
2603   ac_status=$?
2604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); }; }; then
2606   ac_cv_prog_cc_g=yes
2607 else
2608   echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2610
2611
2612 fi
2613
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 fi
2616
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618 fi
2619
2620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621    ac_c_werror_flag=$ac_save_c_werror_flag
2622 fi
2623 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2624 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2625 if test "$ac_test_CFLAGS" = set; then
2626   CFLAGS=$ac_save_CFLAGS
2627 elif test $ac_cv_prog_cc_g = yes; then
2628   if test "$GCC" = yes; then
2629     CFLAGS="-g -O2"
2630   else
2631     CFLAGS="-g"
2632   fi
2633 else
2634   if test "$GCC" = yes; then
2635     CFLAGS="-O2"
2636   else
2637     CFLAGS=
2638   fi
2639 fi
2640 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2641 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2642 if test "${ac_cv_prog_cc_c89+set}" = set; then
2643   echo $ECHO_N "(cached) $ECHO_C" >&6
2644 else
2645   ac_cv_prog_cc_c89=no
2646 ac_save_CC=$CC
2647 cat >conftest.$ac_ext <<_ACEOF
2648 /* confdefs.h.  */
2649 _ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h.  */
2653 #include <stdarg.h>
2654 #include <stdio.h>
2655 #include <sys/types.h>
2656 #include <sys/stat.h>
2657 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2658 struct buf { int x; };
2659 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2660 static char *e (p, i)
2661      char **p;
2662      int i;
2663 {
2664   return p[i];
2665 }
2666 static char *f (char * (*g) (char **, int), char **p, ...)
2667 {
2668   char *s;
2669   va_list v;
2670   va_start (v,p);
2671   s = g (p, va_arg (v,int));
2672   va_end (v);
2673   return s;
2674 }
2675
2676 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2677    function prototypes and stuff, but not '\xHH' hex character constants.
2678    These don't provoke an error unfortunately, instead are silently treated
2679    as 'x'.  The following induces an error, until -std is added to get
2680    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2681    array size at least.  It's necessary to write '\x00'==0 to get something
2682    that's true only with -std.  */
2683 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2684
2685 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2686    inside strings and character constants.  */
2687 #define FOO(x) 'x'
2688 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2689
2690 int test (int i, double x);
2691 struct s1 {int (*f) (int a);};
2692 struct s2 {int (*f) (double a);};
2693 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2694 int argc;
2695 char **argv;
2696 int
2697 main ()
2698 {
2699 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2700   ;
2701   return 0;
2702 }
2703 _ACEOF
2704 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2705         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2706 do
2707   CC="$ac_save_CC $ac_arg"
2708   rm -f conftest.$ac_objext
2709 if { (ac_try="$ac_compile"
2710 case "(($ac_try" in
2711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712   *) ac_try_echo=$ac_try;;
2713 esac
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715   (eval "$ac_compile") 2>conftest.er1
2716   ac_status=$?
2717   grep -v '^ *+' conftest.er1 >conftest.err
2718   rm -f conftest.er1
2719   cat conftest.err >&5
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); } &&
2722          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2723   { (case "(($ac_try" in
2724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725   *) ac_try_echo=$ac_try;;
2726 esac
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728   (eval "$ac_try") 2>&5
2729   ac_status=$?
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); }; } &&
2732          { ac_try='test -s conftest.$ac_objext'
2733   { (case "(($ac_try" in
2734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735   *) ac_try_echo=$ac_try;;
2736 esac
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738   (eval "$ac_try") 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }; }; then
2742   ac_cv_prog_cc_c89=$ac_arg
2743 else
2744   echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2746
2747
2748 fi
2749
2750 rm -f core conftest.err conftest.$ac_objext
2751   test "x$ac_cv_prog_cc_c89" != "xno" && break
2752 done
2753 rm -f conftest.$ac_ext
2754 CC=$ac_save_CC
2755
2756 fi
2757 # AC_CACHE_VAL
2758 case "x$ac_cv_prog_cc_c89" in
2759   x)
2760     { echo "$as_me:$LINENO: result: none needed" >&5
2761 echo "${ECHO_T}none needed" >&6; } ;;
2762   xno)
2763     { echo "$as_me:$LINENO: result: unsupported" >&5
2764 echo "${ECHO_T}unsupported" >&6; } ;;
2765   *)
2766     CC="$CC $ac_cv_prog_cc_c89"
2767     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2768 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2769 esac
2770
2771
2772 ac_ext=c
2773 ac_cpp='$CPP $CPPFLAGS'
2774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2777
2778 ac_ext=cpp
2779 ac_cpp='$CXXCPP $CPPFLAGS'
2780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2783 if test -z "$CXX"; then
2784   if test -n "$CCC"; then
2785     CXX=$CCC
2786   else
2787     if test -n "$ac_tool_prefix"; then
2788   for ac_prog in clang++ llvm-g++ g++
2789   do
2790     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2794 if test "${ac_cv_prog_CXX+set}" = set; then
2795   echo $ECHO_N "(cached) $ECHO_C" >&6
2796 else
2797   if test -n "$CXX"; then
2798   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2802 do
2803   IFS=$as_save_IFS
2804   test -z "$as_dir" && as_dir=.
2805   for ac_exec_ext in '' $ac_executable_extensions; do
2806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2807     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809     break 2
2810   fi
2811 done
2812 done
2813 IFS=$as_save_IFS
2814
2815 fi
2816 fi
2817 CXX=$ac_cv_prog_CXX
2818 if test -n "$CXX"; then
2819   { echo "$as_me:$LINENO: result: $CXX" >&5
2820 echo "${ECHO_T}$CXX" >&6; }
2821 else
2822   { echo "$as_me:$LINENO: result: no" >&5
2823 echo "${ECHO_T}no" >&6; }
2824 fi
2825
2826
2827     test -n "$CXX" && break
2828   done
2829 fi
2830 if test -z "$CXX"; then
2831   ac_ct_CXX=$CXX
2832   for ac_prog in clang++ llvm-g++ g++
2833 do
2834   # Extract the first word of "$ac_prog", so it can be a program name with args.
2835 set dummy $ac_prog; ac_word=$2
2836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2838 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2839   echo $ECHO_N "(cached) $ECHO_C" >&6
2840 else
2841   if test -n "$ac_ct_CXX"; then
2842   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2843 else
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2846 do
2847   IFS=$as_save_IFS
2848   test -z "$as_dir" && as_dir=.
2849   for ac_exec_ext in '' $ac_executable_extensions; do
2850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2851     ac_cv_prog_ac_ct_CXX="$ac_prog"
2852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2853     break 2
2854   fi
2855 done
2856 done
2857 IFS=$as_save_IFS
2858
2859 fi
2860 fi
2861 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2862 if test -n "$ac_ct_CXX"; then
2863   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2864 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2865 else
2866   { echo "$as_me:$LINENO: result: no" >&5
2867 echo "${ECHO_T}no" >&6; }
2868 fi
2869
2870
2871   test -n "$ac_ct_CXX" && break
2872 done
2873
2874   if test "x$ac_ct_CXX" = x; then
2875     CXX="g++"
2876   else
2877     case $cross_compiling:$ac_tool_warned in
2878 yes:)
2879 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2880 whose name does not start with the host triplet.  If you think this
2881 configuration is useful to you, please write to autoconf@gnu.org." >&5
2882 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2883 whose name does not start with the host triplet.  If you think this
2884 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2885 ac_tool_warned=yes ;;
2886 esac
2887     CXX=$ac_ct_CXX
2888   fi
2889 fi
2890
2891   fi
2892 fi
2893 # Provide some information about the compiler.
2894 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2895 ac_compiler=`set X $ac_compile; echo $2`
2896 { (ac_try="$ac_compiler --version >&5"
2897 case "(($ac_try" in
2898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899   *) ac_try_echo=$ac_try;;
2900 esac
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902   (eval "$ac_compiler --version >&5") 2>&5
2903   ac_status=$?
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); }
2906 { (ac_try="$ac_compiler -v >&5"
2907 case "(($ac_try" in
2908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909   *) ac_try_echo=$ac_try;;
2910 esac
2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912   (eval "$ac_compiler -v >&5") 2>&5
2913   ac_status=$?
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); }
2916 { (ac_try="$ac_compiler -V >&5"
2917 case "(($ac_try" in
2918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919   *) ac_try_echo=$ac_try;;
2920 esac
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922   (eval "$ac_compiler -V >&5") 2>&5
2923   ac_status=$?
2924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925   (exit $ac_status); }
2926
2927 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2928 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2929 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2930   echo $ECHO_N "(cached) $ECHO_C" >&6
2931 else
2932   cat >conftest.$ac_ext <<_ACEOF
2933 /* confdefs.h.  */
2934 _ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h.  */
2938
2939 int
2940 main ()
2941 {
2942 #ifndef __GNUC__
2943        choke me
2944 #endif
2945
2946   ;
2947   return 0;
2948 }
2949 _ACEOF
2950 rm -f conftest.$ac_objext
2951 if { (ac_try="$ac_compile"
2952 case "(($ac_try" in
2953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954   *) ac_try_echo=$ac_try;;
2955 esac
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957   (eval "$ac_compile") 2>conftest.er1
2958   ac_status=$?
2959   grep -v '^ *+' conftest.er1 >conftest.err
2960   rm -f conftest.er1
2961   cat conftest.err >&5
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); } &&
2964          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2965   { (case "(($ac_try" in
2966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967   *) ac_try_echo=$ac_try;;
2968 esac
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970   (eval "$ac_try") 2>&5
2971   ac_status=$?
2972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973   (exit $ac_status); }; } &&
2974          { ac_try='test -s conftest.$ac_objext'
2975   { (case "(($ac_try" in
2976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977   *) ac_try_echo=$ac_try;;
2978 esac
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980   (eval "$ac_try") 2>&5
2981   ac_status=$?
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); }; }; then
2984   ac_compiler_gnu=yes
2985 else
2986   echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2988
2989         ac_compiler_gnu=no
2990 fi
2991
2992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2994
2995 fi
2996 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2997 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2998 GXX=`test $ac_compiler_gnu = yes && echo yes`
2999 ac_test_CXXFLAGS=${CXXFLAGS+set}
3000 ac_save_CXXFLAGS=$CXXFLAGS
3001 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3002 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3003 if test "${ac_cv_prog_cxx_g+set}" = set; then
3004   echo $ECHO_N "(cached) $ECHO_C" >&6
3005 else
3006   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3007    ac_cxx_werror_flag=yes
3008    ac_cv_prog_cxx_g=no
3009    CXXFLAGS="-g"
3010    cat >conftest.$ac_ext <<_ACEOF
3011 /* confdefs.h.  */
3012 _ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h.  */
3016
3017 int
3018 main ()
3019 {
3020
3021   ;
3022   return 0;
3023 }
3024 _ACEOF
3025 rm -f conftest.$ac_objext
3026 if { (ac_try="$ac_compile"
3027 case "(($ac_try" in
3028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029   *) ac_try_echo=$ac_try;;
3030 esac
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032   (eval "$ac_compile") 2>conftest.er1
3033   ac_status=$?
3034   grep -v '^ *+' conftest.er1 >conftest.err
3035   rm -f conftest.er1
3036   cat conftest.err >&5
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); } &&
3039          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3040   { (case "(($ac_try" in
3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042   *) ac_try_echo=$ac_try;;
3043 esac
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045   (eval "$ac_try") 2>&5
3046   ac_status=$?
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); }; } &&
3049          { ac_try='test -s conftest.$ac_objext'
3050   { (case "(($ac_try" in
3051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052   *) ac_try_echo=$ac_try;;
3053 esac
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055   (eval "$ac_try") 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); }; }; then
3059   ac_cv_prog_cxx_g=yes
3060 else
3061   echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3063
3064         CXXFLAGS=""
3065       cat >conftest.$ac_ext <<_ACEOF
3066 /* confdefs.h.  */
3067 _ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h.  */
3071
3072 int
3073 main ()
3074 {
3075
3076   ;
3077   return 0;
3078 }
3079 _ACEOF
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
3082 case "(($ac_try" in
3083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084   *) ac_try_echo=$ac_try;;
3085 esac
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087   (eval "$ac_compile") 2>conftest.er1
3088   ac_status=$?
3089   grep -v '^ *+' conftest.er1 >conftest.err
3090   rm -f conftest.er1
3091   cat conftest.err >&5
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); } &&
3094          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3095   { (case "(($ac_try" in
3096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097   *) ac_try_echo=$ac_try;;
3098 esac
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100   (eval "$ac_try") 2>&5
3101   ac_status=$?
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); }; } &&
3104          { ac_try='test -s conftest.$ac_objext'
3105   { (case "(($ac_try" in
3106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107   *) ac_try_echo=$ac_try;;
3108 esac
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110   (eval "$ac_try") 2>&5
3111   ac_status=$?
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); }; }; then
3114   :
3115 else
3116   echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3118
3119         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3120          CXXFLAGS="-g"
3121          cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h.  */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h.  */
3127
3128 int
3129 main ()
3130 {
3131
3132   ;
3133   return 0;
3134 }
3135 _ACEOF
3136 rm -f conftest.$ac_objext
3137 if { (ac_try="$ac_compile"
3138 case "(($ac_try" in
3139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140   *) ac_try_echo=$ac_try;;
3141 esac
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143   (eval "$ac_compile") 2>conftest.er1
3144   ac_status=$?
3145   grep -v '^ *+' conftest.er1 >conftest.err
3146   rm -f conftest.er1
3147   cat conftest.err >&5
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); } &&
3150          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3151   { (case "(($ac_try" in
3152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153   *) ac_try_echo=$ac_try;;
3154 esac
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156   (eval "$ac_try") 2>&5
3157   ac_status=$?
3158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); }; } &&
3160          { ac_try='test -s conftest.$ac_objext'
3161   { (case "(($ac_try" in
3162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163   *) ac_try_echo=$ac_try;;
3164 esac
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166   (eval "$ac_try") 2>&5
3167   ac_status=$?
3168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169   (exit $ac_status); }; }; then
3170   ac_cv_prog_cxx_g=yes
3171 else
3172   echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3174
3175
3176 fi
3177
3178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179 fi
3180
3181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182 fi
3183
3184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3186 fi
3187 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3188 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3189 if test "$ac_test_CXXFLAGS" = set; then
3190   CXXFLAGS=$ac_save_CXXFLAGS
3191 elif test $ac_cv_prog_cxx_g = yes; then
3192   if test "$GXX" = yes; then
3193     CXXFLAGS="-g -O2"
3194   else
3195     CXXFLAGS="-g"
3196   fi
3197 else
3198   if test "$GXX" = yes; then
3199     CXXFLAGS="-O2"
3200   else
3201     CXXFLAGS=
3202   fi
3203 fi
3204 ac_ext=c
3205 ac_cpp='$CPP $CPPFLAGS'
3206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209
3210 ac_ext=c
3211 ac_cpp='$CPP $CPPFLAGS'
3212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3216 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3217 # On Suns, sometimes $CPP names a directory.
3218 if test -n "$CPP" && test -d "$CPP"; then
3219   CPP=
3220 fi
3221 if test -z "$CPP"; then
3222   if test "${ac_cv_prog_CPP+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225       # Double quotes because CPP needs to be expanded
3226     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3227     do
3228       ac_preproc_ok=false
3229 for ac_c_preproc_warn_flag in '' yes
3230 do
3231   # Use a header file that comes with gcc, so configuring glibc
3232   # with a fresh cross-compiler works.
3233   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3234   # <limits.h> exists even on freestanding compilers.
3235   # On the NeXT, cc -E runs the code through the compiler's parser,
3236   # not just through cpp. "Syntax error" is here to catch this case.
3237   cat >conftest.$ac_ext <<_ACEOF
3238 /* confdefs.h.  */
3239 _ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h.  */
3243 #ifdef __STDC__
3244 # include <limits.h>
3245 #else
3246 # include <assert.h>
3247 #endif
3248                      Syntax error
3249 _ACEOF
3250 if { (ac_try="$ac_cpp conftest.$ac_ext"
3251 case "(($ac_try" in
3252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253   *) ac_try_echo=$ac_try;;
3254 esac
3255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3257   ac_status=$?
3258   grep -v '^ *+' conftest.er1 >conftest.err
3259   rm -f conftest.er1
3260   cat conftest.err >&5
3261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262   (exit $ac_status); } >/dev/null; then
3263   if test -s conftest.err; then
3264     ac_cpp_err=$ac_c_preproc_warn_flag
3265     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3266   else
3267     ac_cpp_err=
3268   fi
3269 else
3270   ac_cpp_err=yes
3271 fi
3272 if test -z "$ac_cpp_err"; then
3273   :
3274 else
3275   echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3277
3278   # Broken: fails on valid input.
3279 continue
3280 fi
3281
3282 rm -f conftest.err conftest.$ac_ext
3283
3284   # OK, works on sane cases.  Now check whether nonexistent headers
3285   # can be detected and how.
3286   cat >conftest.$ac_ext <<_ACEOF
3287 /* confdefs.h.  */
3288 _ACEOF
3289 cat confdefs.h >>conftest.$ac_ext
3290 cat >>conftest.$ac_ext <<_ACEOF
3291 /* end confdefs.h.  */
3292 #include <ac_nonexistent.h>
3293 _ACEOF
3294 if { (ac_try="$ac_cpp conftest.$ac_ext"
3295 case "(($ac_try" in
3296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297   *) ac_try_echo=$ac_try;;
3298 esac
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3301   ac_status=$?
3302   grep -v '^ *+' conftest.er1 >conftest.err
3303   rm -f conftest.er1
3304   cat conftest.err >&5
3305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306   (exit $ac_status); } >/dev/null; then
3307   if test -s conftest.err; then
3308     ac_cpp_err=$ac_c_preproc_warn_flag
3309     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3310   else
3311     ac_cpp_err=
3312   fi
3313 else
3314   ac_cpp_err=yes
3315 fi
3316 if test -z "$ac_cpp_err"; then
3317   # Broken: success on invalid input.
3318 continue
3319 else
3320   echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3322
3323   # Passes both tests.
3324 ac_preproc_ok=:
3325 break
3326 fi
3327
3328 rm -f conftest.err conftest.$ac_ext
3329
3330 done
3331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3332 rm -f conftest.err conftest.$ac_ext
3333 if $ac_preproc_ok; then
3334   break
3335 fi
3336
3337     done
3338     ac_cv_prog_CPP=$CPP
3339
3340 fi
3341   CPP=$ac_cv_prog_CPP
3342 else
3343   ac_cv_prog_CPP=$CPP
3344 fi
3345 { echo "$as_me:$LINENO: result: $CPP" >&5
3346 echo "${ECHO_T}$CPP" >&6; }
3347 ac_preproc_ok=false
3348 for ac_c_preproc_warn_flag in '' yes
3349 do
3350   # Use a header file that comes with gcc, so configuring glibc
3351   # with a fresh cross-compiler works.
3352   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3353   # <limits.h> exists even on freestanding compilers.
3354   # On the NeXT, cc -E runs the code through the compiler's parser,
3355   # not just through cpp. "Syntax error" is here to catch this case.
3356   cat >conftest.$ac_ext <<_ACEOF
3357 /* confdefs.h.  */
3358 _ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h.  */
3362 #ifdef __STDC__
3363 # include <limits.h>
3364 #else
3365 # include <assert.h>
3366 #endif
3367                      Syntax error
3368 _ACEOF
3369 if { (ac_try="$ac_cpp conftest.$ac_ext"
3370 case "(($ac_try" in
3371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372   *) ac_try_echo=$ac_try;;
3373 esac
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3376   ac_status=$?
3377   grep -v '^ *+' conftest.er1 >conftest.err
3378   rm -f conftest.er1
3379   cat conftest.err >&5
3380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381   (exit $ac_status); } >/dev/null; then
3382   if test -s conftest.err; then
3383     ac_cpp_err=$ac_c_preproc_warn_flag
3384     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3385   else
3386     ac_cpp_err=
3387   fi
3388 else
3389   ac_cpp_err=yes
3390 fi
3391 if test -z "$ac_cpp_err"; then
3392   :
3393 else
3394   echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3396
3397   # Broken: fails on valid input.
3398 continue
3399 fi
3400
3401 rm -f conftest.err conftest.$ac_ext
3402
3403   # OK, works on sane cases.  Now check whether nonexistent headers
3404   # can be detected and how.
3405   cat >conftest.$ac_ext <<_ACEOF
3406 /* confdefs.h.  */
3407 _ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h.  */
3411 #include <ac_nonexistent.h>
3412 _ACEOF
3413 if { (ac_try="$ac_cpp conftest.$ac_ext"
3414 case "(($ac_try" in
3415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416   *) ac_try_echo=$ac_try;;
3417 esac
3418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3420   ac_status=$?
3421   grep -v '^ *+' conftest.er1 >conftest.err
3422   rm -f conftest.er1
3423   cat conftest.err >&5
3424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425   (exit $ac_status); } >/dev/null; then
3426   if test -s conftest.err; then
3427     ac_cpp_err=$ac_c_preproc_warn_flag
3428     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3429   else
3430     ac_cpp_err=
3431   fi
3432 else
3433   ac_cpp_err=yes
3434 fi
3435 if test -z "$ac_cpp_err"; then
3436   # Broken: success on invalid input.
3437 continue
3438 else
3439   echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3441
3442   # Passes both tests.
3443 ac_preproc_ok=:
3444 break
3445 fi
3446
3447 rm -f conftest.err conftest.$ac_ext
3448
3449 done
3450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451 rm -f conftest.err conftest.$ac_ext
3452 if $ac_preproc_ok; then
3453   :
3454 else
3455   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3456 See \`config.log' for more details." >&5
3457 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3458 See \`config.log' for more details." >&2;}
3459    { (exit 1); exit 1; }; }
3460 fi
3461
3462 ac_ext=c
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467
3468
3469
3470
3471 # Check whether --enable-polly was given.
3472 if test "${enable_polly+set}" = set; then
3473   enableval=$enable_polly;
3474 else
3475   enableval=default
3476 fi
3477
3478 case "$enableval" in
3479   yes) ENABLE_POLLY=1
3480  ;;
3481   no)  ENABLE_POLLY=0
3482  ;;
3483   default) ENABLE_POLLY=1
3484  ;;
3485   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3486 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3487    { (exit 1); exit 1; }; } ;;
3488 esac
3489
3490
3491 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3492   LLVM_HAS_POLLY=1
3493
3494   subdirs="$subdirs tools/polly"
3495
3496 fi
3497
3498
3499 # Make sure we can run config.sub.
3500 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3501   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3502 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3503    { (exit 1); exit 1; }; }
3504
3505 { echo "$as_me:$LINENO: checking build system type" >&5
3506 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3507 if test "${ac_cv_build+set}" = set; then
3508   echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510   ac_build_alias=$build_alias
3511 test "x$ac_build_alias" = x &&
3512   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3513 test "x$ac_build_alias" = x &&
3514   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3515 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3516    { (exit 1); exit 1; }; }
3517 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3518   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3519 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3520    { (exit 1); exit 1; }; }
3521
3522 fi
3523 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3524 echo "${ECHO_T}$ac_cv_build" >&6; }
3525 case $ac_cv_build in
3526 *-*-*) ;;
3527 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3528 echo "$as_me: error: invalid value of canonical build" >&2;}
3529    { (exit 1); exit 1; }; };;
3530 esac
3531 build=$ac_cv_build
3532 ac_save_IFS=$IFS; IFS='-'
3533 set x $ac_cv_build
3534 shift
3535 build_cpu=$1
3536 build_vendor=$2
3537 shift; shift
3538 # Remember, the first character of IFS is used to create $*,
3539 # except with old shells:
3540 build_os=$*
3541 IFS=$ac_save_IFS
3542 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3543
3544
3545 { echo "$as_me:$LINENO: checking host system type" >&5
3546 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3547 if test "${ac_cv_host+set}" = set; then
3548   echo $ECHO_N "(cached) $ECHO_C" >&6
3549 else
3550   if test "x$host_alias" = x; then
3551   ac_cv_host=$ac_cv_build
3552 else
3553   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3554     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3555 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3556    { (exit 1); exit 1; }; }
3557 fi
3558
3559 fi
3560 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3561 echo "${ECHO_T}$ac_cv_host" >&6; }
3562 case $ac_cv_host in
3563 *-*-*) ;;
3564 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3565 echo "$as_me: error: invalid value of canonical host" >&2;}
3566    { (exit 1); exit 1; }; };;
3567 esac
3568 host=$ac_cv_host
3569 ac_save_IFS=$IFS; IFS='-'
3570 set x $ac_cv_host
3571 shift
3572 host_cpu=$1
3573 host_vendor=$2
3574 shift; shift
3575 # Remember, the first character of IFS is used to create $*,
3576 # except with old shells:
3577 host_os=$*
3578 IFS=$ac_save_IFS
3579 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3580
3581
3582 { echo "$as_me:$LINENO: checking target system type" >&5
3583 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3584 if test "${ac_cv_target+set}" = set; then
3585   echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587   if test "x$target_alias" = x; then
3588   ac_cv_target=$ac_cv_host
3589 else
3590   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3591     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3592 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3593    { (exit 1); exit 1; }; }
3594 fi
3595
3596 fi
3597 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3598 echo "${ECHO_T}$ac_cv_target" >&6; }
3599 case $ac_cv_target in
3600 *-*-*) ;;
3601 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3602 echo "$as_me: error: invalid value of canonical target" >&2;}
3603    { (exit 1); exit 1; }; };;
3604 esac
3605 target=$ac_cv_target
3606 ac_save_IFS=$IFS; IFS='-'
3607 set x $ac_cv_target
3608 shift
3609 target_cpu=$1
3610 target_vendor=$2
3611 shift; shift
3612 # Remember, the first character of IFS is used to create $*,
3613 # except with old shells:
3614 target_os=$*
3615 IFS=$ac_save_IFS
3616 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3617
3618
3619 # The aliases save the names the user supplied, while $host etc.
3620 # will get canonicalized.
3621 test -n "$target_alias" &&
3622   test "$program_prefix$program_suffix$program_transform_name" = \
3623     NONENONEs,x,x, &&
3624   program_prefix=${target_alias}-
3625
3626 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3627 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3628 if test "${llvm_cv_os_type+set}" = set; then
3629   echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631   case $host in
3632   *-*-aix*)
3633     llvm_cv_link_all_option="-Wl,--whole-archive"
3634     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3635     llvm_cv_os_type="AIX"
3636     llvm_cv_platform_type="Unix" ;;
3637   *-*-irix*)
3638     llvm_cv_link_all_option="-Wl,--whole-archive"
3639     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3640     llvm_cv_os_type="IRIX"
3641     llvm_cv_platform_type="Unix" ;;
3642   *-*-cygwin*)
3643     llvm_cv_link_all_option="-Wl,--whole-archive"
3644     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3645     llvm_cv_os_type="Cygwin"
3646     llvm_cv_platform_type="Unix" ;;
3647   *-*-darwin*)
3648     llvm_cv_link_all_option="-Wl,-all_load"
3649     llvm_cv_no_link_all_option="-Wl,-noall_load"
3650     llvm_cv_os_type="Darwin"
3651     llvm_cv_platform_type="Unix" ;;
3652   *-*-minix*)
3653     llvm_cv_link_all_option="-Wl,-all_load"
3654     llvm_cv_no_link_all_option="-Wl,-noall_load"
3655     llvm_cv_os_type="Minix"
3656     llvm_cv_platform_type="Unix" ;;
3657   *-*-freebsd*)
3658     llvm_cv_link_all_option="-Wl,--whole-archive"
3659     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3660     llvm_cv_os_type="FreeBSD"
3661     llvm_cv_platform_type="Unix" ;;
3662   *-*-openbsd*)
3663     llvm_cv_link_all_option="-Wl,--whole-archive"
3664     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3665     llvm_cv_os_type="OpenBSD"
3666     llvm_cv_platform_type="Unix" ;;
3667   *-*-netbsd*)
3668     llvm_cv_link_all_option="-Wl,--whole-archive"
3669     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3670     llvm_cv_os_type="NetBSD"
3671     llvm_cv_platform_type="Unix" ;;
3672   *-*-dragonfly*)
3673     llvm_cv_link_all_option="-Wl,--whole-archive"
3674     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3675     llvm_cv_os_type="DragonFly"
3676     llvm_cv_platform_type="Unix" ;;
3677   *-*-hpux*)
3678     llvm_cv_link_all_option="-Wl,--whole-archive"
3679     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680     llvm_cv_os_type="HP-UX"
3681     llvm_cv_platform_type="Unix" ;;
3682   *-*-interix*)
3683     llvm_cv_link_all_option="-Wl,--whole-archive"
3684     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3685     llvm_cv_os_type="Interix"
3686     llvm_cv_platform_type="Unix" ;;
3687   *-*-linux*)
3688     llvm_cv_link_all_option="-Wl,--whole-archive"
3689     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3690     llvm_cv_os_type="Linux"
3691     llvm_cv_platform_type="Unix" ;;
3692   *-*-solaris*)
3693     llvm_cv_link_all_option="-Wl,-z,allextract"
3694     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3695     llvm_cv_os_type="SunOS"
3696     llvm_cv_platform_type="Unix" ;;
3697   *-*-auroraux*)
3698     llvm_cv_link_all_option="-Wl,-z,allextract"
3699     llvm_cv_link_all_option="-Wl,-z,defaultextract"
3700     llvm_cv_os_type="AuroraUX"
3701     llvm_cv_platform_type="Unix" ;;
3702   *-*-win32*)
3703     llvm_cv_link_all_option="-Wl,--whole-archive"
3704     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705     llvm_cv_os_type="Win32"
3706     llvm_cv_platform_type="Win32" ;;
3707   *-*-mingw*)
3708     llvm_cv_link_all_option="-Wl,--whole-archive"
3709     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710     llvm_cv_os_type="MingW"
3711     llvm_cv_platform_type="Win32" ;;
3712   *-*-haiku*)
3713     llvm_cv_link_all_option="-Wl,--whole-archive"
3714     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715     llvm_cv_os_type="Haiku"
3716     llvm_cv_platform_type="Unix" ;;
3717   *-unknown-eabi*)
3718     llvm_cv_link_all_option="-Wl,--whole-archive"
3719     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720     llvm_cv_os_type="Freestanding"
3721     llvm_cv_platform_type="Unix" ;;
3722   *-unknown-elf*)
3723     llvm_cv_link_all_option="-Wl,--whole-archive"
3724     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725     llvm_cv_os_type="Freestanding"
3726     llvm_cv_platform_type="Unix" ;;
3727   *)
3728     llvm_cv_link_all_option=""
3729     llvm_cv_no_link_all_option=""
3730     llvm_cv_os_type="Unknown"
3731     llvm_cv_platform_type="Unknown" ;;
3732 esac
3733 fi
3734 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3735 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3736
3737 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3738 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3739 if test "${llvm_cv_target_os_type+set}" = set; then
3740   echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742   case $target in
3743   *-*-aix*)
3744     llvm_cv_target_os_type="AIX" ;;
3745   *-*-irix*)
3746     llvm_cv_target_os_type="IRIX" ;;
3747   *-*-cygwin*)
3748     llvm_cv_target_os_type="Cygwin" ;;
3749   *-*-darwin*)
3750     llvm_cv_target_os_type="Darwin" ;;
3751   *-*-minix*)
3752     llvm_cv_target_os_type="Minix" ;;
3753   *-*-freebsd*)
3754     llvm_cv_target_os_type="FreeBSD" ;;
3755   *-*-openbsd*)
3756     llvm_cv_target_os_type="OpenBSD" ;;
3757   *-*-netbsd*)
3758     llvm_cv_target_os_type="NetBSD" ;;
3759   *-*-dragonfly*)
3760     llvm_cv_target_os_type="DragonFly" ;;
3761   *-*-hpux*)
3762     llvm_cv_target_os_type="HP-UX" ;;
3763   *-*-interix*)
3764     llvm_cv_target_os_type="Interix" ;;
3765   *-*-linux*)
3766     llvm_cv_target_os_type="Linux" ;;
3767   *-*-solaris*)
3768     llvm_cv_target_os_type="SunOS" ;;
3769   *-*-auroraux*)
3770     llvm_cv_target_os_type="AuroraUX" ;;
3771   *-*-win32*)
3772     llvm_cv_target_os_type="Win32" ;;
3773   *-*-mingw*)
3774     llvm_cv_target_os_type="MingW" ;;
3775   *-*-haiku*)
3776     llvm_cv_target_os_type="Haiku" ;;
3777   *-*-rtems*)
3778     llvm_cv_target_os_type="RTEMS" ;;
3779   *-*-nacl*)
3780     llvm_cv_target_os_type="NativeClient" ;;
3781   *-unknown-eabi*)
3782     llvm_cv_target_os_type="Freestanding" ;;
3783   *)
3784     llvm_cv_target_os_type="Unknown" ;;
3785 esac
3786 fi
3787 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3788 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3789
3790 if test "$llvm_cv_os_type" = "Unknown" ; then
3791   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3792 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3793    { (exit 1); exit 1; }; }
3794 fi
3795
3796 OS=$llvm_cv_os_type
3797
3798 HOST_OS=$llvm_cv_os_type
3799
3800 TARGET_OS=$llvm_cv_target_os_type
3801
3802
3803 LINKALL=$llvm_cv_link_all_option
3804
3805 NOLINKALL=$llvm_cv_no_link_all_option
3806
3807
3808 case $llvm_cv_platform_type in
3809   Unix)
3810
3811 cat >>confdefs.h <<\_ACEOF
3812 #define LLVM_ON_UNIX 1
3813 _ACEOF
3814
3815     LLVM_ON_UNIX=1
3816
3817     LLVM_ON_WIN32=0
3818
3819     ;;
3820   Win32)
3821
3822 cat >>confdefs.h <<\_ACEOF
3823 #define LLVM_ON_WIN32 1
3824 _ACEOF
3825
3826     LLVM_ON_UNIX=0
3827
3828     LLVM_ON_WIN32=1
3829
3830     ;;
3831 esac
3832
3833 { echo "$as_me:$LINENO: checking target architecture" >&5
3834 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3835 if test "${llvm_cv_target_arch+set}" = set; then
3836   echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838   case $target in
3839   i?86-*)                 llvm_cv_target_arch="x86" ;;
3840   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
3841   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
3842   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
3843   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
3844   arm*-*)                 llvm_cv_target_arch="ARM" ;;
3845   mips-*)                 llvm_cv_target_arch="Mips" ;;
3846   xcore-*)                llvm_cv_target_arch="XCore" ;;
3847   msp430-*)               llvm_cv_target_arch="MSP430" ;;
3848   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
3849   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
3850   ptx-*)                  llvm_cv_target_arch="PTX" ;;
3851   *)                      llvm_cv_target_arch="Unknown" ;;
3852 esac
3853 fi
3854 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3855 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3856
3857 if test "$llvm_cv_target_arch" = "Unknown" ; then
3858   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3859 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3860 fi
3861
3862 # Determine the LLVM native architecture for the target
3863 case "$llvm_cv_target_arch" in
3864     x86)     LLVM_NATIVE_ARCH="X86" ;;
3865     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
3866     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3867 esac
3868
3869 ARCH=$llvm_cv_target_arch
3870
3871
3872
3873
3874 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3875 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3876 if test "${ac_cv_path_GREP+set}" = set; then
3877   echo $ECHO_N "(cached) $ECHO_C" >&6
3878 else
3879   # Extract the first word of "grep ggrep" to use in msg output
3880 if test -z "$GREP"; then
3881 set dummy grep ggrep; ac_prog_name=$2
3882 if test "${ac_cv_path_GREP+set}" = set; then
3883   echo $ECHO_N "(cached) $ECHO_C" >&6
3884 else
3885   ac_path_GREP_found=false
3886 # Loop through the user's path and test for each of PROGNAME-LIST
3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3889 do
3890   IFS=$as_save_IFS
3891   test -z "$as_dir" && as_dir=.
3892   for ac_prog in grep ggrep; do
3893   for ac_exec_ext in '' $ac_executable_extensions; do
3894     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3895     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3896     # Check for GNU ac_path_GREP and select it if it is found.
3897   # Check for GNU $ac_path_GREP
3898 case `"$ac_path_GREP" --version 2>&1` in
3899 *GNU*)
3900   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3901 *)
3902   ac_count=0
3903   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3904   while :
3905   do
3906     cat "conftest.in" "conftest.in" >"conftest.tmp"
3907     mv "conftest.tmp" "conftest.in"
3908     cp "conftest.in" "conftest.nl"
3909     echo 'GREP' >> "conftest.nl"
3910     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3911     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3912     ac_count=`expr $ac_count + 1`
3913     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3914       # Best one so far, save it but keep looking for a better one
3915       ac_cv_path_GREP="$ac_path_GREP"
3916       ac_path_GREP_max=$ac_count
3917     fi
3918     # 10*(2^10) chars as input seems more than enough
3919     test $ac_count -gt 10 && break
3920   done
3921   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3922 esac
3923
3924
3925     $ac_path_GREP_found && break 3
3926   done
3927 done
3928
3929 done
3930 IFS=$as_save_IFS
3931
3932
3933 fi
3934
3935 GREP="$ac_cv_path_GREP"
3936 if test -z "$GREP"; then
3937   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3938 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3939    { (exit 1); exit 1; }; }
3940 fi
3941
3942 else
3943   ac_cv_path_GREP=$GREP
3944 fi
3945
3946
3947 fi
3948 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3949 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3950  GREP="$ac_cv_path_GREP"
3951
3952
3953 { echo "$as_me:$LINENO: checking for egrep" >&5
3954 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3955 if test "${ac_cv_path_EGREP+set}" = set; then
3956   echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3958   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3959    then ac_cv_path_EGREP="$GREP -E"
3960    else
3961      # Extract the first word of "egrep" to use in msg output
3962 if test -z "$EGREP"; then
3963 set dummy egrep; ac_prog_name=$2
3964 if test "${ac_cv_path_EGREP+set}" = set; then
3965   echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967   ac_path_EGREP_found=false
3968 # Loop through the user's path and test for each of PROGNAME-LIST
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3971 do
3972   IFS=$as_save_IFS
3973   test -z "$as_dir" && as_dir=.
3974   for ac_prog in egrep; do
3975   for ac_exec_ext in '' $ac_executable_extensions; do
3976     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3977     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3978     # Check for GNU ac_path_EGREP and select it if it is found.
3979   # Check for GNU $ac_path_EGREP
3980 case `"$ac_path_EGREP" --version 2>&1` in
3981 *GNU*)
3982   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3983 *)
3984   ac_count=0
3985   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3986   while :
3987   do
3988     cat "conftest.in" "conftest.in" >"conftest.tmp"
3989     mv "conftest.tmp" "conftest.in"
3990     cp "conftest.in" "conftest.nl"
3991     echo 'EGREP' >> "conftest.nl"
3992     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3993     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3994     ac_count=`expr $ac_count + 1`
3995     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3996       # Best one so far, save it but keep looking for a better one
3997       ac_cv_path_EGREP="$ac_path_EGREP"
3998       ac_path_EGREP_max=$ac_count
3999     fi
4000     # 10*(2^10) chars as input seems more than enough
4001     test $ac_count -gt 10 && break
4002   done
4003   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4004 esac
4005
4006
4007     $ac_path_EGREP_found && break 3
4008   done
4009 done
4010
4011 done
4012 IFS=$as_save_IFS
4013
4014
4015 fi
4016
4017 EGREP="$ac_cv_path_EGREP"
4018 if test -z "$EGREP"; then
4019   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4020 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4021    { (exit 1); exit 1; }; }
4022 fi
4023
4024 else
4025   ac_cv_path_EGREP=$EGREP
4026 fi
4027
4028
4029    fi
4030 fi
4031 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4032 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4033  EGREP="$ac_cv_path_EGREP"
4034
4035
4036 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4037 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4038 if test "${ac_cv_header_stdc+set}" = set; then
4039   echo $ECHO_N "(cached) $ECHO_C" >&6
4040 else
4041   cat >conftest.$ac_ext <<_ACEOF
4042 /* confdefs.h.  */
4043 _ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h.  */
4047 #include <stdlib.h>
4048 #include <stdarg.h>
4049 #include <string.h>
4050 #include <float.h>
4051
4052 int
4053 main ()
4054 {
4055
4056   ;
4057   return 0;
4058 }
4059 _ACEOF
4060 rm -f conftest.$ac_objext
4061 if { (ac_try="$ac_compile"
4062 case "(($ac_try" in
4063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064   *) ac_try_echo=$ac_try;;
4065 esac
4066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067   (eval "$ac_compile") 2>conftest.er1
4068   ac_status=$?
4069   grep -v '^ *+' conftest.er1 >conftest.err
4070   rm -f conftest.er1
4071   cat conftest.err >&5
4072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073   (exit $ac_status); } &&
4074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4075   { (case "(($ac_try" in
4076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077   *) ac_try_echo=$ac_try;;
4078 esac
4079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080   (eval "$ac_try") 2>&5
4081   ac_status=$?
4082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083   (exit $ac_status); }; } &&
4084          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4094   ac_cv_header_stdc=yes
4095 else
4096   echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4098
4099         ac_cv_header_stdc=no
4100 fi
4101
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103
4104 if test $ac_cv_header_stdc = yes; then
4105   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4106   cat >conftest.$ac_ext <<_ACEOF
4107 /* confdefs.h.  */
4108 _ACEOF
4109 cat confdefs.h >>conftest.$ac_ext
4110 cat >>conftest.$ac_ext <<_ACEOF
4111 /* end confdefs.h.  */
4112 #include <string.h>
4113
4114 _ACEOF
4115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4116   $EGREP "memchr" >/dev/null 2>&1; then
4117   :
4118 else
4119   ac_cv_header_stdc=no
4120 fi
4121 rm -f conftest*
4122
4123 fi
4124
4125 if test $ac_cv_header_stdc = yes; then
4126   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4127   cat >conftest.$ac_ext <<_ACEOF
4128 /* confdefs.h.  */
4129 _ACEOF
4130 cat confdefs.h >>conftest.$ac_ext
4131 cat >>conftest.$ac_ext <<_ACEOF
4132 /* end confdefs.h.  */
4133 #include <stdlib.h>
4134
4135 _ACEOF
4136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4137   $EGREP "free" >/dev/null 2>&1; then
4138   :
4139 else
4140   ac_cv_header_stdc=no
4141 fi
4142 rm -f conftest*
4143
4144 fi
4145
4146 if test $ac_cv_header_stdc = yes; then
4147   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4148   if test "$cross_compiling" = yes; then
4149   :
4150 else
4151   cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h.  */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h.  */
4157 #include <ctype.h>
4158 #include <stdlib.h>
4159 #if ((' ' & 0x0FF) == 0x020)
4160 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4161 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4162 #else
4163 # define ISLOWER(c) \
4164                    (('a' <= (c) && (c) <= 'i') \
4165                      || ('j' <= (c) && (c) <= 'r') \
4166                      || ('s' <= (c) && (c) <= 'z'))
4167 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4168 #endif
4169
4170 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4171 int
4172 main ()
4173 {
4174   int i;
4175   for (i = 0; i < 256; i++)
4176     if (XOR (islower (i), ISLOWER (i))
4177         || toupper (i) != TOUPPER (i))
4178       return 2;
4179   return 0;
4180 }
4181 _ACEOF
4182 rm -f conftest$ac_exeext
4183 if { (ac_try="$ac_link"
4184 case "(($ac_try" in
4185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186   *) ac_try_echo=$ac_try;;
4187 esac
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189   (eval "$ac_link") 2>&5
4190   ac_status=$?
4191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4193   { (case "(($ac_try" in
4194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195   *) ac_try_echo=$ac_try;;
4196 esac
4197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198   (eval "$ac_try") 2>&5
4199   ac_status=$?
4200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201   (exit $ac_status); }; }; then
4202   :
4203 else
4204   echo "$as_me: program exited with status $ac_status" >&5
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4207
4208 ( exit $ac_status )
4209 ac_cv_header_stdc=no
4210 fi
4211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4212 fi
4213
4214
4215 fi
4216 fi
4217 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4218 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4219 if test $ac_cv_header_stdc = yes; then
4220
4221 cat >>confdefs.h <<\_ACEOF
4222 #define STDC_HEADERS 1
4223 _ACEOF
4224
4225 fi
4226
4227 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4238                   inttypes.h stdint.h unistd.h
4239 do
4240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4244   echo $ECHO_N "(cached) $ECHO_C" >&6
4245 else
4246   cat >conftest.$ac_ext <<_ACEOF
4247 /* confdefs.h.  */
4248 _ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h.  */
4252 $ac_includes_default
4253
4254 #include <$ac_header>
4255 _ACEOF
4256 rm -f conftest.$ac_objext
4257 if { (ac_try="$ac_compile"
4258 case "(($ac_try" in
4259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260   *) ac_try_echo=$ac_try;;
4261 esac
4262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263   (eval "$ac_compile") 2>conftest.er1
4264   ac_status=$?
4265   grep -v '^ *+' conftest.er1 >conftest.err
4266   rm -f conftest.er1
4267   cat conftest.err >&5
4268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269   (exit $ac_status); } &&
4270          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4271   { (case "(($ac_try" in
4272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273   *) ac_try_echo=$ac_try;;
4274 esac
4275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276   (eval "$ac_try") 2>&5
4277   ac_status=$?
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); }; } &&
4280          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4290   eval "$as_ac_Header=yes"
4291 else
4292   echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295         eval "$as_ac_Header=no"
4296 fi
4297
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299 fi
4300 ac_res=`eval echo '${'$as_ac_Header'}'`
4301                { echo "$as_me:$LINENO: result: $ac_res" >&5
4302 echo "${ECHO_T}$ac_res" >&6; }
4303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4304   cat >>confdefs.h <<_ACEOF
4305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4306 _ACEOF
4307
4308 fi
4309
4310 done
4311
4312
4313 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4314 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4315 if test "${ac_cv_c_bigendian+set}" = set; then
4316   echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318   # See if sys/param.h defines the BYTE_ORDER macro.
4319 cat >conftest.$ac_ext <<_ACEOF
4320 /* confdefs.h.  */
4321 _ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h.  */
4325 #include <sys/types.h>
4326 #include <sys/param.h>
4327
4328 int
4329 main ()
4330 {
4331 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4332  bogus endian macros
4333 #endif
4334
4335   ;
4336   return 0;
4337 }
4338 _ACEOF
4339 rm -f conftest.$ac_objext
4340 if { (ac_try="$ac_compile"
4341 case "(($ac_try" in
4342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343   *) ac_try_echo=$ac_try;;
4344 esac
4345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346   (eval "$ac_compile") 2>conftest.er1
4347   ac_status=$?
4348   grep -v '^ *+' conftest.er1 >conftest.err
4349   rm -f conftest.er1
4350   cat conftest.err >&5
4351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352   (exit $ac_status); } &&
4353          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4354   { (case "(($ac_try" in
4355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356   *) ac_try_echo=$ac_try;;
4357 esac
4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359   (eval "$ac_try") 2>&5
4360   ac_status=$?
4361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362   (exit $ac_status); }; } &&
4363          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4373   # It does; now see whether it defined to BIG_ENDIAN or not.
4374 cat >conftest.$ac_ext <<_ACEOF
4375 /* confdefs.h.  */
4376 _ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h.  */
4380 #include <sys/types.h>
4381 #include <sys/param.h>
4382
4383 int
4384 main ()
4385 {
4386 #if BYTE_ORDER != BIG_ENDIAN
4387  not big endian
4388 #endif
4389
4390   ;
4391   return 0;
4392 }
4393 _ACEOF
4394 rm -f conftest.$ac_objext
4395 if { (ac_try="$ac_compile"
4396 case "(($ac_try" in
4397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398   *) ac_try_echo=$ac_try;;
4399 esac
4400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401   (eval "$ac_compile") 2>conftest.er1
4402   ac_status=$?
4403   grep -v '^ *+' conftest.er1 >conftest.err
4404   rm -f conftest.er1
4405   cat conftest.err >&5
4406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407   (exit $ac_status); } &&
4408          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4409   { (case "(($ac_try" in
4410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411   *) ac_try_echo=$ac_try;;
4412 esac
4413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414   (eval "$ac_try") 2>&5
4415   ac_status=$?
4416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417   (exit $ac_status); }; } &&
4418          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4428   ac_cv_c_bigendian=yes
4429 else
4430   echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4432
4433         ac_cv_c_bigendian=no
4434 fi
4435
4436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437 else
4438   echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4440
4441         # It does not; compile a test program.
4442 if test "$cross_compiling" = yes; then
4443   # try to guess the endianness by grepping values into an object file
4444   ac_cv_c_bigendian=unknown
4445   cat >conftest.$ac_ext <<_ACEOF
4446 /* confdefs.h.  */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h.  */
4451 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4452 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4453 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4454 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4455 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4456 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4457 int
4458 main ()
4459 {
4460  _ascii (); _ebcdic ();
4461   ;
4462   return 0;
4463 }
4464 _ACEOF
4465 rm -f conftest.$ac_objext
4466 if { (ac_try="$ac_compile"
4467 case "(($ac_try" in
4468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469   *) ac_try_echo=$ac_try;;
4470 esac
4471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4472   (eval "$ac_compile") 2>conftest.er1
4473   ac_status=$?
4474   grep -v '^ *+' conftest.er1 >conftest.err
4475   rm -f conftest.er1
4476   cat conftest.err >&5
4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478   (exit $ac_status); } &&
4479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4480   { (case "(($ac_try" in
4481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482   *) ac_try_echo=$ac_try;;
4483 esac
4484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485   (eval "$ac_try") 2>&5
4486   ac_status=$?
4487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488   (exit $ac_status); }; } &&
4489          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4499   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4500   ac_cv_c_bigendian=yes
4501 fi
4502 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4503   if test "$ac_cv_c_bigendian" = unknown; then
4504     ac_cv_c_bigendian=no
4505   else
4506     # finding both strings is unlikely to happen, but who knows?
4507     ac_cv_c_bigendian=unknown
4508   fi
4509 fi
4510 else
4511   echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4513
4514
4515 fi
4516
4517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518 else
4519   cat >conftest.$ac_ext <<_ACEOF
4520 /* confdefs.h.  */
4521 _ACEOF
4522 cat confdefs.h >>conftest.$ac_ext
4523 cat >>conftest.$ac_ext <<_ACEOF
4524 /* end confdefs.h.  */
4525 $ac_includes_default
4526 int
4527 main ()
4528 {
4529
4530   /* Are we little or big endian?  From Harbison&Steele.  */
4531   union
4532   {
4533     long int l;
4534     char c[sizeof (long int)];
4535   } u;
4536   u.l = 1;
4537   return u.c[sizeof (long int) - 1] == 1;
4538
4539   ;
4540   return 0;
4541 }
4542 _ACEOF
4543 rm -f conftest$ac_exeext
4544 if { (ac_try="$ac_link"
4545 case "(($ac_try" in
4546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547   *) ac_try_echo=$ac_try;;
4548 esac
4549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550   (eval "$ac_link") 2>&5
4551   ac_status=$?
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4554   { (case "(($ac_try" in
4555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556   *) ac_try_echo=$ac_try;;
4557 esac
4558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559   (eval "$ac_try") 2>&5
4560   ac_status=$?
4561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562   (exit $ac_status); }; }; then
4563   ac_cv_c_bigendian=no
4564 else
4565   echo "$as_me: program exited with status $ac_status" >&5
4566 echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4568
4569 ( exit $ac_status )
4570 ac_cv_c_bigendian=yes
4571 fi
4572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4573 fi
4574
4575
4576 fi
4577
4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579 fi
4580 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4581 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4582 case $ac_cv_c_bigendian in
4583   yes)
4584     ENDIAN=big
4585  ;;
4586   no)
4587     ENDIAN=little
4588  ;;
4589   *)
4590     { { echo "$as_me:$LINENO: error: unknown endianness
4591 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4592 echo "$as_me: error: unknown endianness
4593 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4594    { (exit 1); exit 1; }; } ;;
4595 esac
4596
4597
4598 if test "$cross_compiling" = yes; then
4599   LLVM_CROSS_COMPILING=1
4600
4601
4602 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4603 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4604 if test "${ac_cv_build_exeext+set}" = set; then
4605   echo $ECHO_N "(cached) $ECHO_C" >&6
4606 else
4607   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4608   ac_cv_build_exeext=.exe
4609 else
4610   ac_build_prefix=${build_alias}-
4611
4612   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4613 set dummy ${ac_build_prefix}gcc; ac_word=$2
4614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4616 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4617   echo $ECHO_N "(cached) $ECHO_C" >&6
4618 else
4619   if test -n "$BUILD_CC"; then
4620   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4621 else
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 for as_dir in $PATH
4624 do
4625   IFS=$as_save_IFS
4626   test -z "$as_dir" && as_dir=.
4627   for ac_exec_ext in '' $ac_executable_extensions; do
4628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4629     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631     break 2
4632   fi
4633 done
4634 done
4635 IFS=$as_save_IFS
4636
4637 fi
4638 fi
4639 BUILD_CC=$ac_cv_prog_BUILD_CC
4640 if test -n "$BUILD_CC"; then
4641   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4642 echo "${ECHO_T}$BUILD_CC" >&6; }
4643 else
4644   { echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6; }
4646 fi
4647
4648
4649   if test -z "$BUILD_CC"; then
4650      # Extract the first word of "gcc", so it can be a program name with args.
4651 set dummy gcc; ac_word=$2
4652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4654 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4655   echo $ECHO_N "(cached) $ECHO_C" >&6
4656 else
4657   if test -n "$BUILD_CC"; then
4658   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4659 else
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4662 do
4663   IFS=$as_save_IFS
4664   test -z "$as_dir" && as_dir=.
4665   for ac_exec_ext in '' $ac_executable_extensions; do
4666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4667     ac_cv_prog_BUILD_CC="gcc"
4668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669     break 2
4670   fi
4671 done
4672 done
4673 IFS=$as_save_IFS
4674
4675 fi
4676 fi
4677 BUILD_CC=$ac_cv_prog_BUILD_CC
4678 if test -n "$BUILD_CC"; then
4679   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4680 echo "${ECHO_T}$BUILD_CC" >&6; }
4681 else
4682   { echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6; }
4684 fi
4685
4686
4687      if test -z "$BUILD_CC"; then
4688        # Extract the first word of "cc", so it can be a program name with args.
4689 set dummy cc; ac_word=$2
4690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4693   echo $ECHO_N "(cached) $ECHO_C" >&6
4694 else
4695   if test -n "$BUILD_CC"; then
4696   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4697 else
4698   ac_prog_rejected=no
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH
4701 do
4702   IFS=$as_save_IFS
4703   test -z "$as_dir" && as_dir=.
4704   for ac_exec_ext in '' $ac_executable_extensions; do
4705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4706     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4707        ac_prog_rejected=yes
4708        continue
4709      fi
4710     ac_cv_prog_BUILD_CC="cc"
4711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712     break 2
4713   fi
4714 done
4715 done
4716 IFS=$as_save_IFS
4717
4718 if test $ac_prog_rejected = yes; then
4719   # We found a bogon in the path, so make sure we never use it.
4720   set dummy $ac_cv_prog_BUILD_CC
4721   shift
4722   if test $# != 0; then
4723     # We chose a different compiler from the bogus one.
4724     # However, it has the same basename, so the bogon will be chosen
4725     # first if we set BUILD_CC to just the basename; use the full file name.
4726     shift
4727     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4728   fi
4729 fi
4730 fi
4731 fi
4732 BUILD_CC=$ac_cv_prog_BUILD_CC
4733 if test -n "$BUILD_CC"; then
4734   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4735 echo "${ECHO_T}$BUILD_CC" >&6; }
4736 else
4737   { echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6; }
4739 fi
4740
4741
4742      fi
4743   fi
4744   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4745 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4746    { (exit 1); exit 1; }; }
4747   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4748   rm -f conftest*
4749   echo 'int main () { return 0; }' > conftest.$ac_ext
4750   ac_cv_build_exeext=
4751   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4752   (eval $ac_build_link) 2>&5
4753   ac_status=$?
4754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755   (exit $ac_status); }; then
4756     for file in conftest.*; do
4757       case $file in
4758       *.c | *.o | *.obj | *.dSYM) ;;
4759       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4760       esac
4761     done
4762   else
4763     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4764 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4765    { (exit 1); exit 1; }; }
4766   fi
4767   rm -f conftest*
4768   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4769 fi
4770 fi
4771
4772 BUILD_EXEEXT=""
4773 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4774 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4775 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4776 ac_build_exeext=$BUILD_EXEEXT
4777
4778   ac_build_prefix=${build_alias}-
4779   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4780 set dummy ${ac_build_prefix}g++; ac_word=$2
4781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4783 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4784   echo $ECHO_N "(cached) $ECHO_C" >&6
4785 else
4786   if test -n "$BUILD_CXX"; then
4787   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4788 else
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4791 do
4792   IFS=$as_save_IFS
4793   test -z "$as_dir" && as_dir=.
4794   for ac_exec_ext in '' $ac_executable_extensions; do
4795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4796     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798     break 2
4799   fi
4800 done
4801 done
4802 IFS=$as_save_IFS
4803
4804 fi
4805 fi
4806 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4807 if test -n "$BUILD_CXX"; then
4808   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4809 echo "${ECHO_T}$BUILD_CXX" >&6; }
4810 else
4811   { echo "$as_me:$LINENO: result: no" >&5
4812 echo "${ECHO_T}no" >&6; }
4813 fi
4814
4815
4816   if test -z "$BUILD_CXX"; then
4817      # Extract the first word of "g++", so it can be a program name with args.
4818 set dummy g++; ac_word=$2
4819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4821 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4822   echo $ECHO_N "(cached) $ECHO_C" >&6
4823 else
4824   if test -n "$BUILD_CXX"; then
4825   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4826 else
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4829 do
4830   IFS=$as_save_IFS
4831   test -z "$as_dir" && as_dir=.
4832   for ac_exec_ext in '' $ac_executable_extensions; do
4833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4834     ac_cv_prog_BUILD_CXX="g++"
4835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4836     break 2
4837   fi
4838 done
4839 done
4840 IFS=$as_save_IFS
4841
4842 fi
4843 fi
4844 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4845 if test -n "$BUILD_CXX"; then
4846   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4847 echo "${ECHO_T}$BUILD_CXX" >&6; }
4848 else
4849   { echo "$as_me:$LINENO: result: no" >&5
4850 echo "${ECHO_T}no" >&6; }
4851 fi
4852
4853
4854      if test -z "$BUILD_CXX"; then
4855        # Extract the first word of "c++", so it can be a program name with args.
4856 set dummy c++; ac_word=$2
4857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4859 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4860   echo $ECHO_N "(cached) $ECHO_C" >&6
4861 else
4862   if test -n "$BUILD_CXX"; then
4863   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4864 else
4865   ac_prog_rejected=no
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4868 do
4869   IFS=$as_save_IFS
4870   test -z "$as_dir" && as_dir=.
4871   for ac_exec_ext in '' $ac_executable_extensions; do
4872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4873     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4874        ac_prog_rejected=yes
4875        continue
4876      fi
4877     ac_cv_prog_BUILD_CXX="c++"
4878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879     break 2
4880   fi
4881 done
4882 done
4883 IFS=$as_save_IFS
4884
4885 if test $ac_prog_rejected = yes; then
4886   # We found a bogon in the path, so make sure we never use it.
4887   set dummy $ac_cv_prog_BUILD_CXX
4888   shift
4889   if test $# != 0; then
4890     # We chose a different compiler from the bogus one.
4891     # However, it has the same basename, so the bogon will be chosen
4892     # first if we set BUILD_CXX to just the basename; use the full file name.
4893     shift
4894     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4895   fi
4896 fi
4897 fi
4898 fi
4899 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4900 if test -n "$BUILD_CXX"; then
4901   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4902 echo "${ECHO_T}$BUILD_CXX" >&6; }
4903 else
4904   { echo "$as_me:$LINENO: result: no" >&5
4905 echo "${ECHO_T}no" >&6; }
4906 fi
4907
4908
4909      fi
4910   fi
4911 else
4912   LLVM_CROSS_COMPILING=0
4913
4914 fi
4915
4916 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4917   cvsbuild="yes"
4918   optimize="no"
4919   CVSBUILD=CVSBUILD=1
4920
4921 else
4922   cvsbuild="no"
4923   optimize="yes"
4924 fi
4925
4926
4927 # Check whether --enable-optimized was given.
4928 if test "${enable_optimized+set}" = set; then
4929   enableval=$enable_optimized;
4930 else
4931   enableval=$optimize
4932 fi
4933
4934 if test ${enableval} = "no" ; then
4935   ENABLE_OPTIMIZED=
4936
4937 else
4938   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4939
4940 fi
4941
4942 # Check whether --enable-profiling was given.
4943 if test "${enable_profiling+set}" = set; then
4944   enableval=$enable_profiling;
4945 else
4946   enableval="no"
4947 fi
4948
4949 if test ${enableval} = "no" ; then
4950   ENABLE_PROFILING=
4951
4952 else
4953   ENABLE_PROFILING=ENABLE_PROFILING=1
4954
4955 fi
4956
4957 # Check whether --enable-assertions was given.
4958 if test "${enable_assertions+set}" = set; then
4959   enableval=$enable_assertions;
4960 else
4961   enableval="yes"
4962 fi
4963
4964 if test ${enableval} = "yes" ; then
4965   DISABLE_ASSERTIONS=
4966
4967 else
4968   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4969
4970 fi
4971
4972 # Check whether --enable-expensive-checks was given.
4973 if test "${enable_expensive_checks+set}" = set; then
4974   enableval=$enable_expensive_checks;
4975 else
4976   enableval="no"
4977 fi
4978
4979 if test ${enableval} = "yes" ; then
4980   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4981
4982   EXPENSIVE_CHECKS=yes
4983
4984 else
4985   ENABLE_EXPENSIVE_CHECKS=
4986
4987   EXPENSIVE_CHECKS=no
4988
4989 fi
4990
4991 # Check whether --enable-debug-runtime was given.
4992 if test "${enable_debug_runtime+set}" = set; then
4993   enableval=$enable_debug_runtime;
4994 else
4995   enableval=no
4996 fi
4997
4998 if test ${enableval} = "no" ; then
4999   DEBUG_RUNTIME=
5000
5001 else
5002   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5003
5004 fi
5005
5006 # Check whether --enable-debug-symbols was given.
5007 if test "${enable_debug_symbols+set}" = set; then
5008   enableval=$enable_debug_symbols;
5009 else
5010   enableval=no
5011 fi
5012
5013 if test ${enableval} = "no" ; then
5014   DEBUG_SYMBOLS=
5015
5016 else
5017   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5018
5019 fi
5020
5021 # Check whether --enable-jit was given.
5022 if test "${enable_jit+set}" = set; then
5023   enableval=$enable_jit;
5024 else
5025   enableval=default
5026 fi
5027
5028 if test ${enableval} = "no"
5029 then
5030   JIT=
5031
5032 else
5033   case "$llvm_cv_target_arch" in
5034     x86)         TARGET_HAS_JIT=1
5035  ;;
5036     Sparc)       TARGET_HAS_JIT=0
5037  ;;
5038     PowerPC)     TARGET_HAS_JIT=1
5039  ;;
5040     x86_64)      TARGET_HAS_JIT=1
5041  ;;
5042     Alpha)       TARGET_HAS_JIT=0
5043  ;;
5044     ARM)         TARGET_HAS_JIT=1
5045  ;;
5046     Mips)        TARGET_HAS_JIT=1
5047  ;;
5048     XCore)       TARGET_HAS_JIT=0
5049  ;;
5050     MSP430)      TARGET_HAS_JIT=0
5051  ;;
5052     Blackfin)    TARGET_HAS_JIT=0
5053  ;;
5054     MBlaze)      TARGET_HAS_JIT=0
5055  ;;
5056     PTX)         TARGET_HAS_JIT=0
5057  ;;
5058     *)           TARGET_HAS_JIT=0
5059  ;;
5060   esac
5061 fi
5062
5063 # Check whether --enable-docs was given.
5064 if test "${enable_docs+set}" = set; then
5065   enableval=$enable_docs;
5066 else
5067   enableval=default
5068 fi
5069
5070 case "$enableval" in
5071   yes) ENABLE_DOCS=1
5072  ;;
5073   no)  ENABLE_DOCS=0
5074  ;;
5075   default) ENABLE_DOCS=1
5076  ;;
5077   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5078 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5079    { (exit 1); exit 1; }; } ;;
5080 esac
5081
5082 # Check whether --enable-doxygen was given.
5083 if test "${enable_doxygen+set}" = set; then
5084   enableval=$enable_doxygen;
5085 else
5086   enableval=default
5087 fi
5088
5089 case "$enableval" in
5090   yes) ENABLE_DOXYGEN=1
5091  ;;
5092   no)  ENABLE_DOXYGEN=0
5093  ;;
5094   default) ENABLE_DOXYGEN=0
5095  ;;
5096   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5097 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5098    { (exit 1); exit 1; }; } ;;
5099 esac
5100
5101 # Check whether --enable-threads was given.
5102 if test "${enable_threads+set}" = set; then
5103   enableval=$enable_threads;
5104 else
5105   enableval=default
5106 fi
5107
5108 case "$enableval" in
5109   yes) ENABLE_THREADS=1
5110  ;;
5111   no)  ENABLE_THREADS=0
5112  ;;
5113   default) ENABLE_THREADS=1
5114  ;;
5115   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5116 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5117    { (exit 1); exit 1; }; } ;;
5118 esac
5119
5120 cat >>confdefs.h <<_ACEOF
5121 #define ENABLE_THREADS $ENABLE_THREADS
5122 _ACEOF
5123
5124
5125 # Check whether --enable-pthreads was given.
5126 if test "${enable_pthreads+set}" = set; then
5127   enableval=$enable_pthreads;
5128 else
5129   enableval=default
5130 fi
5131
5132 case "$enableval" in
5133   yes) ENABLE_PTHREADS=1
5134  ;;
5135   no)  ENABLE_PTHREADS=0
5136  ;;
5137   default) ENABLE_PTHREADS=1
5138  ;;
5139   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5140 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5141    { (exit 1); exit 1; }; } ;;
5142 esac
5143
5144 # Check whether --enable-pic was given.
5145 if test "${enable_pic+set}" = set; then
5146   enableval=$enable_pic;
5147 else
5148   enableval=default
5149 fi
5150
5151 case "$enableval" in
5152   yes) ENABLE_PIC=1
5153  ;;
5154   no)  ENABLE_PIC=0
5155  ;;
5156   default) ENABLE_PIC=1
5157  ;;
5158   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5159 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5160    { (exit 1); exit 1; }; } ;;
5161 esac
5162
5163 cat >>confdefs.h <<_ACEOF
5164 #define ENABLE_PIC $ENABLE_PIC
5165 _ACEOF
5166
5167
5168 # Check whether --enable-shared was given.
5169 if test "${enable_shared+set}" = set; then
5170   enableval=$enable_shared;
5171 else
5172   enableval=default
5173 fi
5174
5175 case "$enableval" in
5176   yes) ENABLE_SHARED=1
5177  ;;
5178   no)  ENABLE_SHARED=0
5179  ;;
5180   default) ENABLE_SHARED=0
5181  ;;
5182   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5183 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5184    { (exit 1); exit 1; }; } ;;
5185 esac
5186
5187 # Check whether --enable-embed-stdcxx was given.
5188 if test "${enable_embed_stdcxx+set}" = set; then
5189   enableval=$enable_embed_stdcxx;
5190 else
5191   enableval=default
5192 fi
5193
5194 case "$enableval" in
5195   yes) ENABLE_EMBED_STDCXX=1
5196  ;;
5197   no)  ENABLE_EMBED_STDCXX=0
5198  ;;
5199   default) ENABLE_EMBED_STDCXX=1
5200  ;;
5201   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5202 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5203    { (exit 1); exit 1; }; } ;;
5204 esac
5205
5206 # Check whether --enable-timestamps was given.
5207 if test "${enable_timestamps+set}" = set; then
5208   enableval=$enable_timestamps;
5209 else
5210   enableval=default
5211 fi
5212
5213 case "$enableval" in
5214   yes) ENABLE_TIMESTAMPS=1
5215  ;;
5216   no)  ENABLE_TIMESTAMPS=0
5217  ;;
5218   default) ENABLE_TIMESTAMPS=1
5219  ;;
5220   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5221 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5222    { (exit 1); exit 1; }; } ;;
5223 esac
5224
5225 cat >>confdefs.h <<_ACEOF
5226 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5227 _ACEOF
5228
5229
5230 TARGETS_TO_BUILD=""
5231 # Check whether --enable-targets was given.
5232 if test "${enable_targets+set}" = set; then
5233   enableval=$enable_targets;
5234 else
5235   enableval=all
5236 fi
5237
5238 if test "$enableval" = host-only ; then
5239   enableval=host
5240 fi
5241 case "$enableval" in
5242   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 Blackfin CBackend CppBackend MBlaze PTX" ;;
5243   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5244       case "$a_target" in
5245         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5246         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5247         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5248         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5249         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5250         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5251         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5252         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5253         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5254         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5255         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5256         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5257         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5258         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5259         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5260         host) case "$llvm_cv_target_arch" in
5261             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5262             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5263             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5264             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5265             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5266             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5267             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5268             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5269             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5270             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5271             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5272             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5273             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5274             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5275 echo "$as_me: error: Can not set target to build" >&2;}
5276    { (exit 1); exit 1; }; } ;;
5277           esac ;;
5278         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5279 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5280    { (exit 1); exit 1; }; } ;;
5281       esac
5282   done
5283   ;;
5284 esac
5285 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5286
5287
5288 # Determine whether we are building LLVM support for the native architecture.
5289 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5290 for a_target in $TARGETS_TO_BUILD; do
5291   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5292
5293 cat >>confdefs.h <<_ACEOF
5294 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5295 _ACEOF
5296
5297     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5298     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5299     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5300     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5301     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5302       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5303     fi
5304
5305 cat >>confdefs.h <<_ACEOF
5306 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5307 _ACEOF
5308
5309
5310 cat >>confdefs.h <<_ACEOF
5311 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5312 _ACEOF
5313
5314
5315 cat >>confdefs.h <<_ACEOF
5316 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5317 _ACEOF
5318
5319
5320 cat >>confdefs.h <<_ACEOF
5321 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5322 _ACEOF
5323
5324     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5325
5326 cat >>confdefs.h <<_ACEOF
5327 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5328 _ACEOF
5329
5330     fi
5331   fi
5332 done
5333
5334 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5335 # target feature def files.
5336 LLVM_ENUM_TARGETS=""
5337 LLVM_ENUM_ASM_PRINTERS=""
5338 LLVM_ENUM_ASM_PARSERS=""
5339 LLVM_ENUM_DISASSEMBLERS=""
5340 for target_to_build in $TARGETS_TO_BUILD; do
5341   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5342   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5343     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5344   fi
5345   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5346     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5347   fi
5348   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5349     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5350   fi
5351 done
5352
5353
5354
5355
5356
5357 # Check whether --enable-cbe-printf-a was given.
5358 if test "${enable_cbe_printf_a+set}" = set; then
5359   enableval=$enable_cbe_printf_a;
5360 else
5361   enableval=default
5362 fi
5363
5364 case "$enableval" in
5365   yes) ENABLE_CBE_PRINTF_A=1
5366  ;;
5367   no)  ENABLE_CBE_PRINTF_A=0
5368  ;;
5369   default)  ENABLE_CBE_PRINTF_A=1
5370  ;;
5371   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5372 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5373    { (exit 1); exit 1; }; } ;;
5374 esac
5375
5376 cat >>confdefs.h <<_ACEOF
5377 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5378 _ACEOF
5379
5380
5381
5382 # Check whether --with-optimize-option was given.
5383 if test "${with_optimize_option+set}" = set; then
5384   withval=$with_optimize_option;
5385 else
5386   withval=default
5387 fi
5388
5389 { echo "$as_me:$LINENO: checking optimization flags" >&5
5390 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5391 case "$withval" in
5392   default)
5393     case "$llvm_cv_os_type" in
5394     FreeBSD) optimize_option=-O2 ;;
5395     MingW) optimize_option=-O2 ;;
5396     *)     optimize_option=-O3 ;;
5397     esac ;;
5398   *) optimize_option="$withval" ;;
5399 esac
5400 OPTIMIZE_OPTION=$optimize_option
5401
5402 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5403 echo "${ECHO_T}$optimize_option" >&6; }
5404
5405
5406 # Check whether --with-extra-options was given.
5407 if test "${with_extra_options+set}" = set; then
5408   withval=$with_extra_options;
5409 else
5410   withval=default
5411 fi
5412
5413 case "$withval" in
5414   default) EXTRA_OPTIONS= ;;
5415   *) EXTRA_OPTIONS=$withval ;;
5416 esac
5417 EXTRA_OPTIONS=$EXTRA_OPTIONS
5418
5419
5420
5421 # Check whether --with-extra-ld-options was given.
5422 if test "${with_extra_ld_options+set}" = set; then
5423   withval=$with_extra_ld_options;
5424 else
5425   withval=default
5426 fi
5427
5428 case "$withval" in
5429   default) EXTRA_LD_OPTIONS= ;;
5430   *) EXTRA_LD_OPTIONS=$withval ;;
5431 esac
5432 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5433
5434
5435 # Check whether --enable-bindings was given.
5436 if test "${enable_bindings+set}" = set; then
5437   enableval=$enable_bindings;
5438 else
5439   enableval=default
5440 fi
5441
5442 BINDINGS_TO_BUILD=""
5443 case "$enableval" in
5444   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5445   all ) BINDINGS_TO_BUILD="ocaml" ;;
5446   none | no) BINDINGS_TO_BUILD="" ;;
5447   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5448       case "$a_binding" in
5449         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5450         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5451 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5452    { (exit 1); exit 1; }; } ;;
5453       esac
5454   done
5455   ;;
5456 esac
5457
5458
5459 # Check whether --with-ocaml-libdir was given.
5460 if test "${with_ocaml_libdir+set}" = set; then
5461   withval=$with_ocaml_libdir;
5462 else
5463   withval=auto
5464 fi
5465
5466 case "$withval" in
5467   auto) with_ocaml_libdir="$withval" ;;
5468   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5469   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5470 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5471    { (exit 1); exit 1; }; } ;;
5472 esac
5473
5474
5475 # Check whether --with-clang-resource-dir was given.
5476 if test "${with_clang_resource_dir+set}" = set; then
5477   withval=$with_clang_resource_dir;
5478 else
5479   withval=""
5480 fi
5481
5482
5483 cat >>confdefs.h <<_ACEOF
5484 #define CLANG_RESOURCE_DIR "$withval"
5485 _ACEOF
5486
5487
5488
5489 # Check whether --with-c-include-dirs was given.
5490 if test "${with_c_include_dirs+set}" = set; then
5491   withval=$with_c_include_dirs;
5492 else
5493   withval=""
5494 fi
5495
5496
5497 cat >>confdefs.h <<_ACEOF
5498 #define C_INCLUDE_DIRS "$withval"
5499 _ACEOF
5500
5501
5502
5503 # Check whether --with-cxx-include-root was given.
5504 if test "${with_cxx_include_root+set}" = set; then
5505   withval=$with_cxx_include_root;
5506 else
5507   withval=""
5508 fi
5509
5510
5511 cat >>confdefs.h <<_ACEOF
5512 #define CXX_INCLUDE_ROOT "$withval"
5513 _ACEOF
5514
5515
5516
5517 # Check whether --with-cxx-include-arch was given.
5518 if test "${with_cxx_include_arch+set}" = set; then
5519   withval=$with_cxx_include_arch;
5520 else
5521   withval=""
5522 fi
5523
5524
5525 cat >>confdefs.h <<_ACEOF
5526 #define CXX_INCLUDE_ARCH "$withval"
5527 _ACEOF
5528
5529
5530
5531 # Check whether --with-cxx-include-32bit-dir was given.
5532 if test "${with_cxx_include_32bit_dir+set}" = set; then
5533   withval=$with_cxx_include_32bit_dir;
5534 else
5535   withval=""
5536 fi
5537
5538
5539 cat >>confdefs.h <<_ACEOF
5540 #define CXX_INCLUDE_32BIT_DIR "$withval"
5541 _ACEOF
5542
5543
5544
5545 # Check whether --with-cxx-include-64bit-dir was given.
5546 if test "${with_cxx_include_64bit_dir+set}" = set; then
5547   withval=$with_cxx_include_64bit_dir;
5548 else
5549   withval=""
5550 fi
5551
5552
5553 cat >>confdefs.h <<_ACEOF
5554 #define CXX_INCLUDE_64BIT_DIR "$withval"
5555 _ACEOF
5556
5557
5558
5559 # Check whether --with-binutils-include was given.
5560 if test "${with_binutils_include+set}" = set; then
5561   withval=$with_binutils_include;
5562 else
5563   withval=default
5564 fi
5565
5566 case "$withval" in
5567   default) WITH_BINUTILS_INCDIR=default ;;
5568   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5569   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5570 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5571    { (exit 1); exit 1; }; } ;;
5572 esac
5573 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5574   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5575
5576   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5577      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5578      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5579 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5580    { (exit 1); exit 1; }; };
5581   fi
5582 fi
5583
5584
5585 # Check whether --with-bug-report-url was given.
5586 if test "${with_bug_report_url+set}" = set; then
5587   withval=$with_bug_report_url;
5588 else
5589   withval="http://llvm.org/bugs/"
5590 fi
5591
5592
5593 cat >>confdefs.h <<_ACEOF
5594 #define BUG_REPORT_URL "$withval"
5595 _ACEOF
5596
5597
5598 # Check whether --enable-libffi was given.
5599 if test "${enable_libffi+set}" = set; then
5600   enableval=$enable_libffi; case "$enableval" in
5601     yes) llvm_cv_enable_libffi="yes" ;;
5602     no)  llvm_cv_enable_libffi="no"  ;;
5603     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5604 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5605    { (exit 1); exit 1; }; } ;;
5606   esac
5607 else
5608   llvm_cv_enable_libffi=no
5609 fi
5610
5611
5612
5613 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5614 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5615 if test "${lt_cv_path_NM+set}" = set; then
5616   echo $ECHO_N "(cached) $ECHO_C" >&6
5617 else
5618   if test -n "$NM"; then
5619   # Let the user override the test.
5620   lt_cv_path_NM="$NM"
5621 else
5622   lt_nm_to_check="${ac_tool_prefix}nm"
5623   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5624     lt_nm_to_check="$lt_nm_to_check nm"
5625   fi
5626   for lt_tmp_nm in $lt_nm_to_check; do
5627     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5628     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5629       IFS="$lt_save_ifs"
5630       test -z "$ac_dir" && ac_dir=.
5631       tmp_nm="$ac_dir/$lt_tmp_nm"
5632       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5633         # Check to see if the nm accepts a BSD-compat flag.
5634         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5635         #   nm: unknown option "B" ignored
5636         # Tru64's nm complains that /dev/null is an invalid object file
5637         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5638         */dev/null* | *'Invalid file or object type'*)
5639           lt_cv_path_NM="$tmp_nm -B"
5640           break
5641           ;;
5642         *)
5643           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5644           */dev/null*)
5645             lt_cv_path_NM="$tmp_nm -p"
5646             break
5647             ;;
5648           *)
5649             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5650             continue # so that we can try to find one that supports BSD flags
5651             ;;
5652           esac
5653           ;;
5654         esac
5655       fi
5656     done
5657     IFS="$lt_save_ifs"
5658   done
5659   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5660 fi
5661 fi
5662 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5663 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5664 NM="$lt_cv_path_NM"
5665
5666
5667
5668 { echo "$as_me:$LINENO: checking for GNU make" >&5
5669 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5670 if test "${llvm_cv_gnu_make_command+set}" = set; then
5671   echo $ECHO_N "(cached) $ECHO_C" >&6
5672 else
5673   llvm_cv_gnu_make_command=''
5674  for a in "$MAKE" make gmake gnumake ; do
5675   if test -z "$a" ; then continue ; fi ;
5676   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5677   then
5678    llvm_cv_gnu_make_command=$a ;
5679    break;
5680   fi
5681  done
5682 fi
5683 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5684 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5685  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5686    ifGNUmake='' ;
5687  else
5688    ifGNUmake='#' ;
5689    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5690 echo "${ECHO_T}\"Not found\"" >&6; };
5691  fi
5692
5693
5694 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5695 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5696 LN_S=$as_ln_s
5697 if test "$LN_S" = "ln -s"; then
5698   { echo "$as_me:$LINENO: result: yes" >&5
5699 echo "${ECHO_T}yes" >&6; }
5700 else
5701   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5702 echo "${ECHO_T}no, using $LN_S" >&6; }
5703 fi
5704
5705 # Extract the first word of "cmp", so it can be a program name with args.
5706 set dummy cmp; ac_word=$2
5707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5709 if test "${ac_cv_path_CMP+set}" = set; then
5710   echo $ECHO_N "(cached) $ECHO_C" >&6
5711 else
5712   case $CMP in
5713   [\\/]* | ?:[\\/]*)
5714   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5715   ;;
5716   *)
5717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH
5719 do
5720   IFS=$as_save_IFS
5721   test -z "$as_dir" && as_dir=.
5722   for ac_exec_ext in '' $ac_executable_extensions; do
5723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5724     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5726     break 2
5727   fi
5728 done
5729 done
5730 IFS=$as_save_IFS
5731
5732   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5733   ;;
5734 esac
5735 fi
5736 CMP=$ac_cv_path_CMP
5737 if test -n "$CMP"; then
5738   { echo "$as_me:$LINENO: result: $CMP" >&5
5739 echo "${ECHO_T}$CMP" >&6; }
5740 else
5741   { echo "$as_me:$LINENO: result: no" >&5
5742 echo "${ECHO_T}no" >&6; }
5743 fi
5744
5745
5746 # Extract the first word of "cp", so it can be a program name with args.
5747 set dummy cp; ac_word=$2
5748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5750 if test "${ac_cv_path_CP+set}" = set; then
5751   echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753   case $CP in
5754   [\\/]* | ?:[\\/]*)
5755   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5756   ;;
5757   *)
5758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759 for as_dir in $PATH
5760 do
5761   IFS=$as_save_IFS
5762   test -z "$as_dir" && as_dir=.
5763   for ac_exec_ext in '' $ac_executable_extensions; do
5764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5765     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5767     break 2
5768   fi
5769 done
5770 done
5771 IFS=$as_save_IFS
5772
5773   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5774   ;;
5775 esac
5776 fi
5777 CP=$ac_cv_path_CP
5778 if test -n "$CP"; then
5779   { echo "$as_me:$LINENO: result: $CP" >&5
5780 echo "${ECHO_T}$CP" >&6; }
5781 else
5782   { echo "$as_me:$LINENO: result: no" >&5
5783 echo "${ECHO_T}no" >&6; }
5784 fi
5785
5786
5787 # Extract the first word of "date", so it can be a program name with args.
5788 set dummy date; ac_word=$2
5789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5791 if test "${ac_cv_path_DATE+set}" = set; then
5792   echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794   case $DATE in
5795   [\\/]* | ?:[\\/]*)
5796   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5797   ;;
5798   *)
5799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5801 do
5802   IFS=$as_save_IFS
5803   test -z "$as_dir" && as_dir=.
5804   for ac_exec_ext in '' $ac_executable_extensions; do
5805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5806     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5808     break 2
5809   fi
5810 done
5811 done
5812 IFS=$as_save_IFS
5813
5814   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5815   ;;
5816 esac
5817 fi
5818 DATE=$ac_cv_path_DATE
5819 if test -n "$DATE"; then
5820   { echo "$as_me:$LINENO: result: $DATE" >&5
5821 echo "${ECHO_T}$DATE" >&6; }
5822 else
5823   { echo "$as_me:$LINENO: result: no" >&5
5824 echo "${ECHO_T}no" >&6; }
5825 fi
5826
5827
5828 # Extract the first word of "find", so it can be a program name with args.
5829 set dummy find; ac_word=$2
5830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5832 if test "${ac_cv_path_FIND+set}" = set; then
5833   echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835   case $FIND in
5836   [\\/]* | ?:[\\/]*)
5837   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5838   ;;
5839   *)
5840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 for as_dir in $PATH
5842 do
5843   IFS=$as_save_IFS
5844   test -z "$as_dir" && as_dir=.
5845   for ac_exec_ext in '' $ac_executable_extensions; do
5846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5847     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849     break 2
5850   fi
5851 done
5852 done
5853 IFS=$as_save_IFS
5854
5855   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5856   ;;
5857 esac
5858 fi
5859 FIND=$ac_cv_path_FIND
5860 if test -n "$FIND"; then
5861   { echo "$as_me:$LINENO: result: $FIND" >&5
5862 echo "${ECHO_T}$FIND" >&6; }
5863 else
5864   { echo "$as_me:$LINENO: result: no" >&5
5865 echo "${ECHO_T}no" >&6; }
5866 fi
5867
5868
5869 # Extract the first word of "grep", so it can be a program name with args.
5870 set dummy grep; ac_word=$2
5871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5873 if test "${ac_cv_path_GREP+set}" = set; then
5874   echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876   case $GREP in
5877   [\\/]* | ?:[\\/]*)
5878   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5879   ;;
5880   *)
5881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882 for as_dir in $PATH
5883 do
5884   IFS=$as_save_IFS
5885   test -z "$as_dir" && as_dir=.
5886   for ac_exec_ext in '' $ac_executable_extensions; do
5887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5888     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890     break 2
5891   fi
5892 done
5893 done
5894 IFS=$as_save_IFS
5895
5896   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5897   ;;
5898 esac
5899 fi
5900 GREP=$ac_cv_path_GREP
5901 if test -n "$GREP"; then
5902   { echo "$as_me:$LINENO: result: $GREP" >&5
5903 echo "${ECHO_T}$GREP" >&6; }
5904 else
5905   { echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6; }
5907 fi
5908
5909
5910 # Extract the first word of "mkdir", so it can be a program name with args.
5911 set dummy mkdir; ac_word=$2
5912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5914 if test "${ac_cv_path_MKDIR+set}" = set; then
5915   echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917   case $MKDIR in
5918   [\\/]* | ?:[\\/]*)
5919   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5920   ;;
5921   *)
5922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925   IFS=$as_save_IFS
5926   test -z "$as_dir" && as_dir=.
5927   for ac_exec_ext in '' $ac_executable_extensions; do
5928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5929     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931     break 2
5932   fi
5933 done
5934 done
5935 IFS=$as_save_IFS
5936
5937   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5938   ;;
5939 esac
5940 fi
5941 MKDIR=$ac_cv_path_MKDIR
5942 if test -n "$MKDIR"; then
5943   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5944 echo "${ECHO_T}$MKDIR" >&6; }
5945 else
5946   { echo "$as_me:$LINENO: result: no" >&5
5947 echo "${ECHO_T}no" >&6; }
5948 fi
5949
5950
5951 # Extract the first word of "mv", so it can be a program name with args.
5952 set dummy mv; ac_word=$2
5953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5955 if test "${ac_cv_path_MV+set}" = set; then
5956   echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958   case $MV in
5959   [\\/]* | ?:[\\/]*)
5960   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5961   ;;
5962   *)
5963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 for as_dir in $PATH
5965 do
5966   IFS=$as_save_IFS
5967   test -z "$as_dir" && as_dir=.
5968   for ac_exec_ext in '' $ac_executable_extensions; do
5969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5970     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5972     break 2
5973   fi
5974 done
5975 done
5976 IFS=$as_save_IFS
5977
5978   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5979   ;;
5980 esac
5981 fi
5982 MV=$ac_cv_path_MV
5983 if test -n "$MV"; then
5984   { echo "$as_me:$LINENO: result: $MV" >&5
5985 echo "${ECHO_T}$MV" >&6; }
5986 else
5987   { echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6; }
5989 fi
5990
5991
5992 if test -n "$ac_tool_prefix"; then
5993   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5994 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5997 if test "${ac_cv_prog_RANLIB+set}" = set; then
5998   echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000   if test -n "$RANLIB"; then
6001   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6002 else
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004 for as_dir in $PATH
6005 do
6006   IFS=$as_save_IFS
6007   test -z "$as_dir" && as_dir=.
6008   for ac_exec_ext in '' $ac_executable_extensions; do
6009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6010     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6012     break 2
6013   fi
6014 done
6015 done
6016 IFS=$as_save_IFS
6017
6018 fi
6019 fi
6020 RANLIB=$ac_cv_prog_RANLIB
6021 if test -n "$RANLIB"; then
6022   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6023 echo "${ECHO_T}$RANLIB" >&6; }
6024 else
6025   { echo "$as_me:$LINENO: result: no" >&5
6026 echo "${ECHO_T}no" >&6; }
6027 fi
6028
6029
6030 fi
6031 if test -z "$ac_cv_prog_RANLIB"; then
6032   ac_ct_RANLIB=$RANLIB
6033   # Extract the first word of "ranlib", so it can be a program name with args.
6034 set dummy ranlib; ac_word=$2
6035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6037 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6038   echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040   if test -n "$ac_ct_RANLIB"; then
6041   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6042 else
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 for as_dir in $PATH
6045 do
6046   IFS=$as_save_IFS
6047   test -z "$as_dir" && as_dir=.
6048   for ac_exec_ext in '' $ac_executable_extensions; do
6049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6050     ac_cv_prog_ac_ct_RANLIB="ranlib"
6051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6052     break 2
6053   fi
6054 done
6055 done
6056 IFS=$as_save_IFS
6057
6058 fi
6059 fi
6060 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6061 if test -n "$ac_ct_RANLIB"; then
6062   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6063 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6064 else
6065   { echo "$as_me:$LINENO: result: no" >&5
6066 echo "${ECHO_T}no" >&6; }
6067 fi
6068
6069   if test "x$ac_ct_RANLIB" = x; then
6070     RANLIB=":"
6071   else
6072     case $cross_compiling:$ac_tool_warned in
6073 yes:)
6074 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6075 whose name does not start with the host triplet.  If you think this
6076 configuration is useful to you, please write to autoconf@gnu.org." >&5
6077 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6078 whose name does not start with the host triplet.  If you think this
6079 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6080 ac_tool_warned=yes ;;
6081 esac
6082     RANLIB=$ac_ct_RANLIB
6083   fi
6084 else
6085   RANLIB="$ac_cv_prog_RANLIB"
6086 fi
6087
6088 if test -n "$ac_tool_prefix"; then
6089   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6090 set dummy ${ac_tool_prefix}ar; ac_word=$2
6091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6093 if test "${ac_cv_prog_AR+set}" = set; then
6094   echo $ECHO_N "(cached) $ECHO_C" >&6
6095 else
6096   if test -n "$AR"; then
6097   ac_cv_prog_AR="$AR" # Let the user override the test.
6098 else
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 for as_dir in $PATH
6101 do
6102   IFS=$as_save_IFS
6103   test -z "$as_dir" && as_dir=.
6104   for ac_exec_ext in '' $ac_executable_extensions; do
6105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6106     ac_cv_prog_AR="${ac_tool_prefix}ar"
6107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108     break 2
6109   fi
6110 done
6111 done
6112 IFS=$as_save_IFS
6113
6114 fi
6115 fi
6116 AR=$ac_cv_prog_AR
6117 if test -n "$AR"; then
6118   { echo "$as_me:$LINENO: result: $AR" >&5
6119 echo "${ECHO_T}$AR" >&6; }
6120 else
6121   { echo "$as_me:$LINENO: result: no" >&5
6122 echo "${ECHO_T}no" >&6; }
6123 fi
6124
6125
6126 fi
6127 if test -z "$ac_cv_prog_AR"; then
6128   ac_ct_AR=$AR
6129   # Extract the first word of "ar", so it can be a program name with args.
6130 set dummy ar; ac_word=$2
6131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6133 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6134   echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136   if test -n "$ac_ct_AR"; then
6137   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6138 else
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 for as_dir in $PATH
6141 do
6142   IFS=$as_save_IFS
6143   test -z "$as_dir" && as_dir=.
6144   for ac_exec_ext in '' $ac_executable_extensions; do
6145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6146     ac_cv_prog_ac_ct_AR="ar"
6147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6148     break 2
6149   fi
6150 done
6151 done
6152 IFS=$as_save_IFS
6153
6154 fi
6155 fi
6156 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6157 if test -n "$ac_ct_AR"; then
6158   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6159 echo "${ECHO_T}$ac_ct_AR" >&6; }
6160 else
6161   { echo "$as_me:$LINENO: result: no" >&5
6162 echo "${ECHO_T}no" >&6; }
6163 fi
6164
6165   if test "x$ac_ct_AR" = x; then
6166     AR="false"
6167   else
6168     case $cross_compiling:$ac_tool_warned in
6169 yes:)
6170 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6171 whose name does not start with the host triplet.  If you think this
6172 configuration is useful to you, please write to autoconf@gnu.org." >&5
6173 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6174 whose name does not start with the host triplet.  If you think this
6175 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6176 ac_tool_warned=yes ;;
6177 esac
6178     AR=$ac_ct_AR
6179   fi
6180 else
6181   AR="$ac_cv_prog_AR"
6182 fi
6183
6184 # Extract the first word of "rm", so it can be a program name with args.
6185 set dummy rm; ac_word=$2
6186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6188 if test "${ac_cv_path_RM+set}" = set; then
6189   echo $ECHO_N "(cached) $ECHO_C" >&6
6190 else
6191   case $RM in
6192   [\\/]* | ?:[\\/]*)
6193   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6194   ;;
6195   *)
6196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 for as_dir in $PATH
6198 do
6199   IFS=$as_save_IFS
6200   test -z "$as_dir" && as_dir=.
6201   for ac_exec_ext in '' $ac_executable_extensions; do
6202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6203     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6205     break 2
6206   fi
6207 done
6208 done
6209 IFS=$as_save_IFS
6210
6211   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6212   ;;
6213 esac
6214 fi
6215 RM=$ac_cv_path_RM
6216 if test -n "$RM"; then
6217   { echo "$as_me:$LINENO: result: $RM" >&5
6218 echo "${ECHO_T}$RM" >&6; }
6219 else
6220   { echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6; }
6222 fi
6223
6224
6225 # Extract the first word of "sed", so it can be a program name with args.
6226 set dummy sed; ac_word=$2
6227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6229 if test "${ac_cv_path_SED+set}" = set; then
6230   echo $ECHO_N "(cached) $ECHO_C" >&6
6231 else
6232   case $SED in
6233   [\\/]* | ?:[\\/]*)
6234   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6235   ;;
6236   *)
6237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH
6239 do
6240   IFS=$as_save_IFS
6241   test -z "$as_dir" && as_dir=.
6242   for ac_exec_ext in '' $ac_executable_extensions; do
6243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6244     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6246     break 2
6247   fi
6248 done
6249 done
6250 IFS=$as_save_IFS
6251
6252   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6253   ;;
6254 esac
6255 fi
6256 SED=$ac_cv_path_SED
6257 if test -n "$SED"; then
6258   { echo "$as_me:$LINENO: result: $SED" >&5
6259 echo "${ECHO_T}$SED" >&6; }
6260 else
6261   { echo "$as_me:$LINENO: result: no" >&5
6262 echo "${ECHO_T}no" >&6; }
6263 fi
6264
6265
6266 # Extract the first word of "tar", so it can be a program name with args.
6267 set dummy tar; ac_word=$2
6268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270 if test "${ac_cv_path_TAR+set}" = set; then
6271   echo $ECHO_N "(cached) $ECHO_C" >&6
6272 else
6273   case $TAR in
6274   [\\/]* | ?:[\\/]*)
6275   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6276   ;;
6277   *)
6278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 for as_dir in $PATH
6280 do
6281   IFS=$as_save_IFS
6282   test -z "$as_dir" && as_dir=.
6283   for ac_exec_ext in '' $ac_executable_extensions; do
6284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6285     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6287     break 2
6288   fi
6289 done
6290 done
6291 IFS=$as_save_IFS
6292
6293   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6294   ;;
6295 esac
6296 fi
6297 TAR=$ac_cv_path_TAR
6298 if test -n "$TAR"; then
6299   { echo "$as_me:$LINENO: result: $TAR" >&5
6300 echo "${ECHO_T}$TAR" >&6; }
6301 else
6302   { echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6; }
6304 fi
6305
6306
6307 # Extract the first word of "pwd", so it can be a program name with args.
6308 set dummy pwd; ac_word=$2
6309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6311 if test "${ac_cv_path_BINPWD+set}" = set; then
6312   echo $ECHO_N "(cached) $ECHO_C" >&6
6313 else
6314   case $BINPWD in
6315   [\\/]* | ?:[\\/]*)
6316   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6317   ;;
6318   *)
6319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 for as_dir in $PATH
6321 do
6322   IFS=$as_save_IFS
6323   test -z "$as_dir" && as_dir=.
6324   for ac_exec_ext in '' $ac_executable_extensions; do
6325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6326     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6328     break 2
6329   fi
6330 done
6331 done
6332 IFS=$as_save_IFS
6333
6334   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6335   ;;
6336 esac
6337 fi
6338 BINPWD=$ac_cv_path_BINPWD
6339 if test -n "$BINPWD"; then
6340   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6341 echo "${ECHO_T}$BINPWD" >&6; }
6342 else
6343   { echo "$as_me:$LINENO: result: no" >&5
6344 echo "${ECHO_T}no" >&6; }
6345 fi
6346
6347
6348
6349 # Extract the first word of "Graphviz", so it can be a program name with args.
6350 set dummy Graphviz; ac_word=$2
6351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6353 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6354   echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356   case $GRAPHVIZ in
6357   [\\/]* | ?:[\\/]*)
6358   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6359   ;;
6360   *)
6361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 for as_dir in $PATH
6363 do
6364   IFS=$as_save_IFS
6365   test -z "$as_dir" && as_dir=.
6366   for ac_exec_ext in '' $ac_executable_extensions; do
6367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6368     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6370     break 2
6371   fi
6372 done
6373 done
6374 IFS=$as_save_IFS
6375
6376   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6377   ;;
6378 esac
6379 fi
6380 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6381 if test -n "$GRAPHVIZ"; then
6382   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6383 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6384 else
6385   { echo "$as_me:$LINENO: result: no" >&5
6386 echo "${ECHO_T}no" >&6; }
6387 fi
6388
6389
6390 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6391
6392 cat >>confdefs.h <<\_ACEOF
6393 #define HAVE_GRAPHVIZ 1
6394 _ACEOF
6395
6396     if test "$llvm_cv_os_type" = "MingW" ; then
6397     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6398   fi
6399
6400 cat >>confdefs.h <<_ACEOF
6401 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6402 _ACEOF
6403
6404 fi
6405 # Extract the first word of "dot", so it can be a program name with args.
6406 set dummy dot; ac_word=$2
6407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6409 if test "${ac_cv_path_DOT+set}" = set; then
6410   echo $ECHO_N "(cached) $ECHO_C" >&6
6411 else
6412   case $DOT in
6413   [\\/]* | ?:[\\/]*)
6414   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6415   ;;
6416   *)
6417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 for as_dir in $PATH
6419 do
6420   IFS=$as_save_IFS
6421   test -z "$as_dir" && as_dir=.
6422   for ac_exec_ext in '' $ac_executable_extensions; do
6423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6424     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6426     break 2
6427   fi
6428 done
6429 done
6430 IFS=$as_save_IFS
6431
6432   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6433   ;;
6434 esac
6435 fi
6436 DOT=$ac_cv_path_DOT
6437 if test -n "$DOT"; then
6438   { echo "$as_me:$LINENO: result: $DOT" >&5
6439 echo "${ECHO_T}$DOT" >&6; }
6440 else
6441   { echo "$as_me:$LINENO: result: no" >&5
6442 echo "${ECHO_T}no" >&6; }
6443 fi
6444
6445
6446 if test "$DOT" != "echo dot" ; then
6447
6448 cat >>confdefs.h <<\_ACEOF
6449 #define HAVE_DOT 1
6450 _ACEOF
6451
6452     if test "$llvm_cv_os_type" = "MingW" ; then
6453     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6454   fi
6455
6456 cat >>confdefs.h <<_ACEOF
6457 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6458 _ACEOF
6459
6460 fi
6461 # Extract the first word of "fdp", so it can be a program name with args.
6462 set dummy fdp; ac_word=$2
6463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6465 if test "${ac_cv_path_FDP+set}" = set; then
6466   echo $ECHO_N "(cached) $ECHO_C" >&6
6467 else
6468   case $FDP in
6469   [\\/]* | ?:[\\/]*)
6470   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6471   ;;
6472   *)
6473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 for as_dir in $PATH
6475 do
6476   IFS=$as_save_IFS
6477   test -z "$as_dir" && as_dir=.
6478   for ac_exec_ext in '' $ac_executable_extensions; do
6479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6480     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6482     break 2
6483   fi
6484 done
6485 done
6486 IFS=$as_save_IFS
6487
6488   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6489   ;;
6490 esac
6491 fi
6492 FDP=$ac_cv_path_FDP
6493 if test -n "$FDP"; then
6494   { echo "$as_me:$LINENO: result: $FDP" >&5
6495 echo "${ECHO_T}$FDP" >&6; }
6496 else
6497   { echo "$as_me:$LINENO: result: no" >&5
6498 echo "${ECHO_T}no" >&6; }
6499 fi
6500
6501
6502 if test "$FDP" != "echo fdp" ; then
6503
6504 cat >>confdefs.h <<\_ACEOF
6505 #define HAVE_FDP 1
6506 _ACEOF
6507
6508     if test "$llvm_cv_os_type" = "MingW" ; then
6509     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6510   fi
6511
6512 cat >>confdefs.h <<_ACEOF
6513 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6514 _ACEOF
6515
6516 fi
6517 # Extract the first word of "neato", so it can be a program name with args.
6518 set dummy neato; ac_word=$2
6519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6521 if test "${ac_cv_path_NEATO+set}" = set; then
6522   echo $ECHO_N "(cached) $ECHO_C" >&6
6523 else
6524   case $NEATO in
6525   [\\/]* | ?:[\\/]*)
6526   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6527   ;;
6528   *)
6529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 for as_dir in $PATH
6531 do
6532   IFS=$as_save_IFS
6533   test -z "$as_dir" && as_dir=.
6534   for ac_exec_ext in '' $ac_executable_extensions; do
6535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6536     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6538     break 2
6539   fi
6540 done
6541 done
6542 IFS=$as_save_IFS
6543
6544   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6545   ;;
6546 esac
6547 fi
6548 NEATO=$ac_cv_path_NEATO
6549 if test -n "$NEATO"; then
6550   { echo "$as_me:$LINENO: result: $NEATO" >&5
6551 echo "${ECHO_T}$NEATO" >&6; }
6552 else
6553   { echo "$as_me:$LINENO: result: no" >&5
6554 echo "${ECHO_T}no" >&6; }
6555 fi
6556
6557
6558 if test "$NEATO" != "echo neato" ; then
6559
6560 cat >>confdefs.h <<\_ACEOF
6561 #define HAVE_NEATO 1
6562 _ACEOF
6563
6564     if test "$llvm_cv_os_type" = "MingW" ; then
6565     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6566   fi
6567
6568 cat >>confdefs.h <<_ACEOF
6569 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6570 _ACEOF
6571
6572 fi
6573 # Extract the first word of "twopi", so it can be a program name with args.
6574 set dummy twopi; ac_word=$2
6575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6577 if test "${ac_cv_path_TWOPI+set}" = set; then
6578   echo $ECHO_N "(cached) $ECHO_C" >&6
6579 else
6580   case $TWOPI in
6581   [\\/]* | ?:[\\/]*)
6582   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6583   ;;
6584   *)
6585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6587 do
6588   IFS=$as_save_IFS
6589   test -z "$as_dir" && as_dir=.
6590   for ac_exec_ext in '' $ac_executable_extensions; do
6591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6592     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6594     break 2
6595   fi
6596 done
6597 done
6598 IFS=$as_save_IFS
6599
6600   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6601   ;;
6602 esac
6603 fi
6604 TWOPI=$ac_cv_path_TWOPI
6605 if test -n "$TWOPI"; then
6606   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6607 echo "${ECHO_T}$TWOPI" >&6; }
6608 else
6609   { echo "$as_me:$LINENO: result: no" >&5
6610 echo "${ECHO_T}no" >&6; }
6611 fi
6612
6613
6614 if test "$TWOPI" != "echo twopi" ; then
6615
6616 cat >>confdefs.h <<\_ACEOF
6617 #define HAVE_TWOPI 1
6618 _ACEOF
6619
6620     if test "$llvm_cv_os_type" = "MingW" ; then
6621     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6622   fi
6623
6624 cat >>confdefs.h <<_ACEOF
6625 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6626 _ACEOF
6627
6628 fi
6629 # Extract the first word of "circo", so it can be a program name with args.
6630 set dummy circo; ac_word=$2
6631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6633 if test "${ac_cv_path_CIRCO+set}" = set; then
6634   echo $ECHO_N "(cached) $ECHO_C" >&6
6635 else
6636   case $CIRCO in
6637   [\\/]* | ?:[\\/]*)
6638   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6639   ;;
6640   *)
6641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6643 do
6644   IFS=$as_save_IFS
6645   test -z "$as_dir" && as_dir=.
6646   for ac_exec_ext in '' $ac_executable_extensions; do
6647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6648     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650     break 2
6651   fi
6652 done
6653 done
6654 IFS=$as_save_IFS
6655
6656   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6657   ;;
6658 esac
6659 fi
6660 CIRCO=$ac_cv_path_CIRCO
6661 if test -n "$CIRCO"; then
6662   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6663 echo "${ECHO_T}$CIRCO" >&6; }
6664 else
6665   { echo "$as_me:$LINENO: result: no" >&5
6666 echo "${ECHO_T}no" >&6; }
6667 fi
6668
6669
6670 if test "$CIRCO" != "echo circo" ; then
6671
6672 cat >>confdefs.h <<\_ACEOF
6673 #define HAVE_CIRCO 1
6674 _ACEOF
6675
6676     if test "$llvm_cv_os_type" = "MingW" ; then
6677     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6678   fi
6679
6680 cat >>confdefs.h <<_ACEOF
6681 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6682 _ACEOF
6683
6684 fi
6685 for ac_prog in gv gsview32
6686 do
6687   # Extract the first word of "$ac_prog", so it can be a program name with args.
6688 set dummy $ac_prog; ac_word=$2
6689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6691 if test "${ac_cv_path_GV+set}" = set; then
6692   echo $ECHO_N "(cached) $ECHO_C" >&6
6693 else
6694   case $GV in
6695   [\\/]* | ?:[\\/]*)
6696   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6697   ;;
6698   *)
6699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6701 do
6702   IFS=$as_save_IFS
6703   test -z "$as_dir" && as_dir=.
6704   for ac_exec_ext in '' $ac_executable_extensions; do
6705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6706     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708     break 2
6709   fi
6710 done
6711 done
6712 IFS=$as_save_IFS
6713
6714   ;;
6715 esac
6716 fi
6717 GV=$ac_cv_path_GV
6718 if test -n "$GV"; then
6719   { echo "$as_me:$LINENO: result: $GV" >&5
6720 echo "${ECHO_T}$GV" >&6; }
6721 else
6722   { echo "$as_me:$LINENO: result: no" >&5
6723 echo "${ECHO_T}no" >&6; }
6724 fi
6725
6726
6727   test -n "$GV" && break
6728 done
6729 test -n "$GV" || GV="echo gv"
6730
6731 if test "$GV" != "echo gv" ; then
6732
6733 cat >>confdefs.h <<\_ACEOF
6734 #define HAVE_GV 1
6735 _ACEOF
6736
6737     if test "$llvm_cv_os_type" = "MingW" ; then
6738     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6739   fi
6740
6741 cat >>confdefs.h <<_ACEOF
6742 #define LLVM_PATH_GV "$GV${EXEEXT}"
6743 _ACEOF
6744
6745 fi
6746 # Extract the first word of "dotty", so it can be a program name with args.
6747 set dummy dotty; ac_word=$2
6748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750 if test "${ac_cv_path_DOTTY+set}" = set; then
6751   echo $ECHO_N "(cached) $ECHO_C" >&6
6752 else
6753   case $DOTTY in
6754   [\\/]* | ?:[\\/]*)
6755   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6756   ;;
6757   *)
6758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6760 do
6761   IFS=$as_save_IFS
6762   test -z "$as_dir" && as_dir=.
6763   for ac_exec_ext in '' $ac_executable_extensions; do
6764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6765     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767     break 2
6768   fi
6769 done
6770 done
6771 IFS=$as_save_IFS
6772
6773   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6774   ;;
6775 esac
6776 fi
6777 DOTTY=$ac_cv_path_DOTTY
6778 if test -n "$DOTTY"; then
6779   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6780 echo "${ECHO_T}$DOTTY" >&6; }
6781 else
6782   { echo "$as_me:$LINENO: result: no" >&5
6783 echo "${ECHO_T}no" >&6; }
6784 fi
6785
6786
6787 if test "$DOTTY" != "echo dotty" ; then
6788
6789 cat >>confdefs.h <<\_ACEOF
6790 #define HAVE_DOTTY 1
6791 _ACEOF
6792
6793     if test "$llvm_cv_os_type" = "MingW" ; then
6794     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6795   fi
6796
6797 cat >>confdefs.h <<_ACEOF
6798 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6799 _ACEOF
6800
6801 fi
6802 # Extract the first word of "xdot.py", so it can be a program name with args.
6803 set dummy xdot.py; ac_word=$2
6804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6806 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6807   echo $ECHO_N "(cached) $ECHO_C" >&6
6808 else
6809   case $XDOT_PY in
6810   [\\/]* | ?:[\\/]*)
6811   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6812   ;;
6813   *)
6814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 for as_dir in $PATH
6816 do
6817   IFS=$as_save_IFS
6818   test -z "$as_dir" && as_dir=.
6819   for ac_exec_ext in '' $ac_executable_extensions; do
6820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6821     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823     break 2
6824   fi
6825 done
6826 done
6827 IFS=$as_save_IFS
6828
6829   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6830   ;;
6831 esac
6832 fi
6833 XDOT_PY=$ac_cv_path_XDOT_PY
6834 if test -n "$XDOT_PY"; then
6835   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6836 echo "${ECHO_T}$XDOT_PY" >&6; }
6837 else
6838   { echo "$as_me:$LINENO: result: no" >&5
6839 echo "${ECHO_T}no" >&6; }
6840 fi
6841
6842
6843 if test "$XDOT_PY" != "echo xdot.py" ; then
6844
6845 cat >>confdefs.h <<\_ACEOF
6846 #define HAVE_XDOT_PY 1
6847 _ACEOF
6848
6849     if test "$llvm_cv_os_type" = "MingW" ; then
6850     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6851   fi
6852
6853 cat >>confdefs.h <<_ACEOF
6854 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6855 _ACEOF
6856
6857 fi
6858
6859
6860 # Extract the first word of "perl", so it can be a program name with args.
6861 set dummy perl; ac_word=$2
6862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6864 if test "${ac_cv_path_PERL+set}" = set; then
6865   echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867   case $PERL in
6868   [\\/]* | ?:[\\/]*)
6869   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6870   ;;
6871   *)
6872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6874 do
6875   IFS=$as_save_IFS
6876   test -z "$as_dir" && as_dir=.
6877   for ac_exec_ext in '' $ac_executable_extensions; do
6878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6879     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881     break 2
6882   fi
6883 done
6884 done
6885 IFS=$as_save_IFS
6886
6887   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6888   ;;
6889 esac
6890 fi
6891 PERL=$ac_cv_path_PERL
6892 if test -n "$PERL"; then
6893   { echo "$as_me:$LINENO: result: $PERL" >&5
6894 echo "${ECHO_T}$PERL" >&6; }
6895 else
6896   { echo "$as_me:$LINENO: result: no" >&5
6897 echo "${ECHO_T}no" >&6; }
6898 fi
6899
6900
6901 if test "$PERL" != "none"; then
6902   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6903 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6904   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6905     { echo "$as_me:$LINENO: result: yes" >&5
6906 echo "${ECHO_T}yes" >&6; }
6907   else
6908     PERL=none
6909     { echo "$as_me:$LINENO: result: not found" >&5
6910 echo "${ECHO_T}not found" >&6; }
6911   fi
6912 fi
6913
6914
6915 if test x"$PERL" = xnone; then
6916    HAVE_PERL=0
6917
6918    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6919 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6920    { (exit 1); exit 1; }; }
6921 else
6922    HAVE_PERL=1
6923
6924 fi
6925
6926 # Find a good install program.  We prefer a C program (faster),
6927 # so one script is as good as another.  But avoid the broken or
6928 # incompatible versions:
6929 # SysV /etc/install, /usr/sbin/install
6930 # SunOS /usr/etc/install
6931 # IRIX /sbin/install
6932 # AIX /bin/install
6933 # AmigaOS /C/install, which installs bootblocks on floppy discs
6934 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6935 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6936 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6937 # OS/2's system install, which has a completely different semantic
6938 # ./install, which can be erroneously created by make from ./install.sh.
6939 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6940 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6941 if test -z "$INSTALL"; then
6942 if test "${ac_cv_path_install+set}" = set; then
6943   echo $ECHO_N "(cached) $ECHO_C" >&6
6944 else
6945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 for as_dir in $PATH
6947 do
6948   IFS=$as_save_IFS
6949   test -z "$as_dir" && as_dir=.
6950   # Account for people who put trailing slashes in PATH elements.
6951 case $as_dir/ in
6952   ./ | .// | /cC/* | \
6953   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6954   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6955   /usr/ucb/* ) ;;
6956   *)
6957     # OSF1 and SCO ODT 3.0 have their own names for install.
6958     # Don't use installbsd from OSF since it installs stuff as root
6959     # by default.
6960     for ac_prog in ginstall scoinst install; do
6961       for ac_exec_ext in '' $ac_executable_extensions; do
6962         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6963           if test $ac_prog = install &&
6964             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6965             # AIX install.  It has an incompatible calling convention.
6966             :
6967           elif test $ac_prog = install &&
6968             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6969             # program-specific install script used by HP pwplus--don't use.
6970             :
6971           else
6972             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6973             break 3
6974           fi
6975         fi
6976       done
6977     done
6978     ;;
6979 esac
6980 done
6981 IFS=$as_save_IFS
6982
6983
6984 fi
6985   if test "${ac_cv_path_install+set}" = set; then
6986     INSTALL=$ac_cv_path_install
6987   else
6988     # As a last resort, use the slow shell script.  Don't cache a
6989     # value for INSTALL within a source directory, because that will
6990     # break other packages using the cache if that directory is
6991     # removed, or if the value is a relative name.
6992     INSTALL=$ac_install_sh
6993   fi
6994 fi
6995 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6996 echo "${ECHO_T}$INSTALL" >&6; }
6997
6998 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6999 # It thinks the first close brace ends the variable substitution.
7000 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7001
7002 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7003
7004 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7005
7006 case "$INSTALL" in
7007  [\\/$]* | ?:[\\/]* ) ;;
7008  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7009 esac
7010
7011 # Extract the first word of "bzip2", so it can be a program name with args.
7012 set dummy bzip2; ac_word=$2
7013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7015 if test "${ac_cv_path_BZIP2+set}" = set; then
7016   echo $ECHO_N "(cached) $ECHO_C" >&6
7017 else
7018   case $BZIP2 in
7019   [\\/]* | ?:[\\/]*)
7020   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7021   ;;
7022   *)
7023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 for as_dir in $PATH
7025 do
7026   IFS=$as_save_IFS
7027   test -z "$as_dir" && as_dir=.
7028   for ac_exec_ext in '' $ac_executable_extensions; do
7029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7030     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7032     break 2
7033   fi
7034 done
7035 done
7036 IFS=$as_save_IFS
7037
7038   ;;
7039 esac
7040 fi
7041 BZIP2=$ac_cv_path_BZIP2
7042 if test -n "$BZIP2"; then
7043   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7044 echo "${ECHO_T}$BZIP2" >&6; }
7045 else
7046   { echo "$as_me:$LINENO: result: no" >&5
7047 echo "${ECHO_T}no" >&6; }
7048 fi
7049
7050
7051 # Extract the first word of "cat", so it can be a program name with args.
7052 set dummy cat; ac_word=$2
7053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7055 if test "${ac_cv_path_CAT+set}" = set; then
7056   echo $ECHO_N "(cached) $ECHO_C" >&6
7057 else
7058   case $CAT in
7059   [\\/]* | ?:[\\/]*)
7060   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7061   ;;
7062   *)
7063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064 for as_dir in $PATH
7065 do
7066   IFS=$as_save_IFS
7067   test -z "$as_dir" && as_dir=.
7068   for ac_exec_ext in '' $ac_executable_extensions; do
7069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7070     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7072     break 2
7073   fi
7074 done
7075 done
7076 IFS=$as_save_IFS
7077
7078   ;;
7079 esac
7080 fi
7081 CAT=$ac_cv_path_CAT
7082 if test -n "$CAT"; then
7083   { echo "$as_me:$LINENO: result: $CAT" >&5
7084 echo "${ECHO_T}$CAT" >&6; }
7085 else
7086   { echo "$as_me:$LINENO: result: no" >&5
7087 echo "${ECHO_T}no" >&6; }
7088 fi
7089
7090
7091 # Extract the first word of "doxygen", so it can be a program name with args.
7092 set dummy doxygen; ac_word=$2
7093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7095 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7096   echo $ECHO_N "(cached) $ECHO_C" >&6
7097 else
7098   case $DOXYGEN in
7099   [\\/]* | ?:[\\/]*)
7100   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7101   ;;
7102   *)
7103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 for as_dir in $PATH
7105 do
7106   IFS=$as_save_IFS
7107   test -z "$as_dir" && as_dir=.
7108   for ac_exec_ext in '' $ac_executable_extensions; do
7109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7110     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7112     break 2
7113   fi
7114 done
7115 done
7116 IFS=$as_save_IFS
7117
7118   ;;
7119 esac
7120 fi
7121 DOXYGEN=$ac_cv_path_DOXYGEN
7122 if test -n "$DOXYGEN"; then
7123   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7124 echo "${ECHO_T}$DOXYGEN" >&6; }
7125 else
7126   { echo "$as_me:$LINENO: result: no" >&5
7127 echo "${ECHO_T}no" >&6; }
7128 fi
7129
7130
7131 # Extract the first word of "groff", so it can be a program name with args.
7132 set dummy groff; ac_word=$2
7133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7135 if test "${ac_cv_path_GROFF+set}" = set; then
7136   echo $ECHO_N "(cached) $ECHO_C" >&6
7137 else
7138   case $GROFF in
7139   [\\/]* | ?:[\\/]*)
7140   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7141   ;;
7142   *)
7143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144 for as_dir in $PATH
7145 do
7146   IFS=$as_save_IFS
7147   test -z "$as_dir" && as_dir=.
7148   for ac_exec_ext in '' $ac_executable_extensions; do
7149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7150     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152     break 2
7153   fi
7154 done
7155 done
7156 IFS=$as_save_IFS
7157
7158   ;;
7159 esac
7160 fi
7161 GROFF=$ac_cv_path_GROFF
7162 if test -n "$GROFF"; then
7163   { echo "$as_me:$LINENO: result: $GROFF" >&5
7164 echo "${ECHO_T}$GROFF" >&6; }
7165 else
7166   { echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6; }
7168 fi
7169
7170
7171 # Extract the first word of "gzip", so it can be a program name with args.
7172 set dummy gzip; ac_word=$2
7173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7175 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7176   echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178   case $GZIPBIN in
7179   [\\/]* | ?:[\\/]*)
7180   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7181   ;;
7182   *)
7183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 for as_dir in $PATH
7185 do
7186   IFS=$as_save_IFS
7187   test -z "$as_dir" && as_dir=.
7188   for ac_exec_ext in '' $ac_executable_extensions; do
7189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7190     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192     break 2
7193   fi
7194 done
7195 done
7196 IFS=$as_save_IFS
7197
7198   ;;
7199 esac
7200 fi
7201 GZIPBIN=$ac_cv_path_GZIPBIN
7202 if test -n "$GZIPBIN"; then
7203   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7204 echo "${ECHO_T}$GZIPBIN" >&6; }
7205 else
7206   { echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6; }
7208 fi
7209
7210
7211 # Extract the first word of "pod2html", so it can be a program name with args.
7212 set dummy pod2html; ac_word=$2
7213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7215 if test "${ac_cv_path_POD2HTML+set}" = set; then
7216   echo $ECHO_N "(cached) $ECHO_C" >&6
7217 else
7218   case $POD2HTML in
7219   [\\/]* | ?:[\\/]*)
7220   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7221   ;;
7222   *)
7223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in $PATH
7225 do
7226   IFS=$as_save_IFS
7227   test -z "$as_dir" && as_dir=.
7228   for ac_exec_ext in '' $ac_executable_extensions; do
7229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7230     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232     break 2
7233   fi
7234 done
7235 done
7236 IFS=$as_save_IFS
7237
7238   ;;
7239 esac
7240 fi
7241 POD2HTML=$ac_cv_path_POD2HTML
7242 if test -n "$POD2HTML"; then
7243   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7244 echo "${ECHO_T}$POD2HTML" >&6; }
7245 else
7246   { echo "$as_me:$LINENO: result: no" >&5
7247 echo "${ECHO_T}no" >&6; }
7248 fi
7249
7250
7251 # Extract the first word of "pod2man", so it can be a program name with args.
7252 set dummy pod2man; ac_word=$2
7253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7255 if test "${ac_cv_path_POD2MAN+set}" = set; then
7256   echo $ECHO_N "(cached) $ECHO_C" >&6
7257 else
7258   case $POD2MAN in
7259   [\\/]* | ?:[\\/]*)
7260   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7261   ;;
7262   *)
7263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264 for as_dir in $PATH
7265 do
7266   IFS=$as_save_IFS
7267   test -z "$as_dir" && as_dir=.
7268   for ac_exec_ext in '' $ac_executable_extensions; do
7269   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7270     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7272     break 2
7273   fi
7274 done
7275 done
7276 IFS=$as_save_IFS
7277
7278   ;;
7279 esac
7280 fi
7281 POD2MAN=$ac_cv_path_POD2MAN
7282 if test -n "$POD2MAN"; then
7283   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7284 echo "${ECHO_T}$POD2MAN" >&6; }
7285 else
7286   { echo "$as_me:$LINENO: result: no" >&5
7287 echo "${ECHO_T}no" >&6; }
7288 fi
7289
7290
7291 # Extract the first word of "pdfroff", so it can be a program name with args.
7292 set dummy pdfroff; ac_word=$2
7293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7295 if test "${ac_cv_path_PDFROFF+set}" = set; then
7296   echo $ECHO_N "(cached) $ECHO_C" >&6
7297 else
7298   case $PDFROFF in
7299   [\\/]* | ?:[\\/]*)
7300   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7301   ;;
7302   *)
7303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 for as_dir in $PATH
7305 do
7306   IFS=$as_save_IFS
7307   test -z "$as_dir" && as_dir=.
7308   for ac_exec_ext in '' $ac_executable_extensions; do
7309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7310     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7312     break 2
7313   fi
7314 done
7315 done
7316 IFS=$as_save_IFS
7317
7318   ;;
7319 esac
7320 fi
7321 PDFROFF=$ac_cv_path_PDFROFF
7322 if test -n "$PDFROFF"; then
7323   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7324 echo "${ECHO_T}$PDFROFF" >&6; }
7325 else
7326   { echo "$as_me:$LINENO: result: no" >&5
7327 echo "${ECHO_T}no" >&6; }
7328 fi
7329
7330
7331 # Extract the first word of "runtest", so it can be a program name with args.
7332 set dummy runtest; ac_word=$2
7333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7335 if test "${ac_cv_path_RUNTEST+set}" = set; then
7336   echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338   case $RUNTEST in
7339   [\\/]* | ?:[\\/]*)
7340   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7341   ;;
7342   *)
7343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7345 do
7346   IFS=$as_save_IFS
7347   test -z "$as_dir" && as_dir=.
7348   for ac_exec_ext in '' $ac_executable_extensions; do
7349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7350     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7352     break 2
7353   fi
7354 done
7355 done
7356 IFS=$as_save_IFS
7357
7358   ;;
7359 esac
7360 fi
7361 RUNTEST=$ac_cv_path_RUNTEST
7362 if test -n "$RUNTEST"; then
7363   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7364 echo "${ECHO_T}$RUNTEST" >&6; }
7365 else
7366   { echo "$as_me:$LINENO: result: no" >&5
7367 echo "${ECHO_T}no" >&6; }
7368 fi
7369
7370
7371
7372 no_itcl=true
7373 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7374 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7375
7376 # Check whether --with-tclinclude was given.
7377 if test "${with_tclinclude+set}" = set; then
7378   withval=$with_tclinclude; with_tclinclude=${withval}
7379 else
7380   with_tclinclude=''
7381 fi
7382
7383 if test "${ac_cv_path_tclsh+set}" = set; then
7384   echo $ECHO_N "(cached) $ECHO_C" >&6
7385 else
7386
7387 if test x"${with_tclinclude}" != x ; then
7388   if test -f ${with_tclinclude}/tclsh ; then
7389     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7390   elif test -f ${with_tclinclude}/src/tclsh ; then
7391     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7392   else
7393     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7394 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7395    { (exit 1); exit 1; }; }
7396   fi
7397 fi
7398 fi
7399
7400
7401 if test x"${ac_cv_path_tclsh}" = x ; then
7402   { echo "$as_me:$LINENO: result: none" >&5
7403 echo "${ECHO_T}none" >&6; }
7404   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
7405 do
7406   # Extract the first word of "$ac_prog", so it can be a program name with args.
7407 set dummy $ac_prog; ac_word=$2
7408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7410 if test "${ac_cv_path_TCLSH+set}" = set; then
7411   echo $ECHO_N "(cached) $ECHO_C" >&6
7412 else
7413   case $TCLSH in
7414   [\\/]* | ?:[\\/]*)
7415   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7416   ;;
7417   *)
7418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 for as_dir in $PATH
7420 do
7421   IFS=$as_save_IFS
7422   test -z "$as_dir" && as_dir=.
7423   for ac_exec_ext in '' $ac_executable_extensions; do
7424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7425     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7427     break 2
7428   fi
7429 done
7430 done
7431 IFS=$as_save_IFS
7432
7433   ;;
7434 esac
7435 fi
7436 TCLSH=$ac_cv_path_TCLSH
7437 if test -n "$TCLSH"; then
7438   { echo "$as_me:$LINENO: result: $TCLSH" >&5
7439 echo "${ECHO_T}$TCLSH" >&6; }
7440 else
7441   { echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6; }
7443 fi
7444
7445
7446   test -n "$TCLSH" && break
7447 done
7448
7449   if test x"${TCLSH}" = x ; then
7450     ac_cv_path_tclsh='';
7451   else
7452     ac_cv_path_tclsh="${TCLSH}";
7453   fi
7454 else
7455   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7456 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7457   TCLSH="${ac_cv_path_tclsh}"
7458
7459 fi
7460
7461 # Extract the first word of "zip", so it can be a program name with args.
7462 set dummy zip; ac_word=$2
7463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7465 if test "${ac_cv_path_ZIP+set}" = set; then
7466   echo $ECHO_N "(cached) $ECHO_C" >&6
7467 else
7468   case $ZIP in
7469   [\\/]* | ?:[\\/]*)
7470   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7471   ;;
7472   *)
7473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 for as_dir in $PATH
7475 do
7476   IFS=$as_save_IFS
7477   test -z "$as_dir" && as_dir=.
7478   for ac_exec_ext in '' $ac_executable_extensions; do
7479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7480     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7482     break 2
7483   fi
7484 done
7485 done
7486 IFS=$as_save_IFS
7487
7488   ;;
7489 esac
7490 fi
7491 ZIP=$ac_cv_path_ZIP
7492 if test -n "$ZIP"; then
7493   { echo "$as_me:$LINENO: result: $ZIP" >&5
7494 echo "${ECHO_T}$ZIP" >&6; }
7495 else
7496   { echo "$as_me:$LINENO: result: no" >&5
7497 echo "${ECHO_T}no" >&6; }
7498 fi
7499
7500
7501 for ac_prog in ocamlc
7502 do
7503   # Extract the first word of "$ac_prog", so it can be a program name with args.
7504 set dummy $ac_prog; ac_word=$2
7505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7507 if test "${ac_cv_path_OCAMLC+set}" = set; then
7508   echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510   case $OCAMLC in
7511   [\\/]* | ?:[\\/]*)
7512   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7513   ;;
7514   *)
7515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7517 do
7518   IFS=$as_save_IFS
7519   test -z "$as_dir" && as_dir=.
7520   for ac_exec_ext in '' $ac_executable_extensions; do
7521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7522     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524     break 2
7525   fi
7526 done
7527 done
7528 IFS=$as_save_IFS
7529
7530   ;;
7531 esac
7532 fi
7533 OCAMLC=$ac_cv_path_OCAMLC
7534 if test -n "$OCAMLC"; then
7535   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7536 echo "${ECHO_T}$OCAMLC" >&6; }
7537 else
7538   { echo "$as_me:$LINENO: result: no" >&5
7539 echo "${ECHO_T}no" >&6; }
7540 fi
7541
7542
7543   test -n "$OCAMLC" && break
7544 done
7545
7546 for ac_prog in ocamlopt
7547 do
7548   # Extract the first word of "$ac_prog", so it can be a program name with args.
7549 set dummy $ac_prog; ac_word=$2
7550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7552 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7553   echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555   case $OCAMLOPT in
7556   [\\/]* | ?:[\\/]*)
7557   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7558   ;;
7559   *)
7560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 for as_dir in $PATH
7562 do
7563   IFS=$as_save_IFS
7564   test -z "$as_dir" && as_dir=.
7565   for ac_exec_ext in '' $ac_executable_extensions; do
7566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7567     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569     break 2
7570   fi
7571 done
7572 done
7573 IFS=$as_save_IFS
7574
7575   ;;
7576 esac
7577 fi
7578 OCAMLOPT=$ac_cv_path_OCAMLOPT
7579 if test -n "$OCAMLOPT"; then
7580   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7581 echo "${ECHO_T}$OCAMLOPT" >&6; }
7582 else
7583   { echo "$as_me:$LINENO: result: no" >&5
7584 echo "${ECHO_T}no" >&6; }
7585 fi
7586
7587
7588   test -n "$OCAMLOPT" && break
7589 done
7590
7591 for ac_prog in ocamldep
7592 do
7593   # Extract the first word of "$ac_prog", so it can be a program name with args.
7594 set dummy $ac_prog; ac_word=$2
7595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7597 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7598   echo $ECHO_N "(cached) $ECHO_C" >&6
7599 else
7600   case $OCAMLDEP in
7601   [\\/]* | ?:[\\/]*)
7602   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7603   ;;
7604   *)
7605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 for as_dir in $PATH
7607 do
7608   IFS=$as_save_IFS
7609   test -z "$as_dir" && as_dir=.
7610   for ac_exec_ext in '' $ac_executable_extensions; do
7611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7612     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7614     break 2
7615   fi
7616 done
7617 done
7618 IFS=$as_save_IFS
7619
7620   ;;
7621 esac
7622 fi
7623 OCAMLDEP=$ac_cv_path_OCAMLDEP
7624 if test -n "$OCAMLDEP"; then
7625   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7626 echo "${ECHO_T}$OCAMLDEP" >&6; }
7627 else
7628   { echo "$as_me:$LINENO: result: no" >&5
7629 echo "${ECHO_T}no" >&6; }
7630 fi
7631
7632
7633   test -n "$OCAMLDEP" && break
7634 done
7635
7636 for ac_prog in ocamldoc
7637 do
7638   # Extract the first word of "$ac_prog", so it can be a program name with args.
7639 set dummy $ac_prog; ac_word=$2
7640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7642 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7643   echo $ECHO_N "(cached) $ECHO_C" >&6
7644 else
7645   case $OCAMLDOC in
7646   [\\/]* | ?:[\\/]*)
7647   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7648   ;;
7649   *)
7650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 for as_dir in $PATH
7652 do
7653   IFS=$as_save_IFS
7654   test -z "$as_dir" && as_dir=.
7655   for ac_exec_ext in '' $ac_executable_extensions; do
7656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7657     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7659     break 2
7660   fi
7661 done
7662 done
7663 IFS=$as_save_IFS
7664
7665   ;;
7666 esac
7667 fi
7668 OCAMLDOC=$ac_cv_path_OCAMLDOC
7669 if test -n "$OCAMLDOC"; then
7670   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7671 echo "${ECHO_T}$OCAMLDOC" >&6; }
7672 else
7673   { echo "$as_me:$LINENO: result: no" >&5
7674 echo "${ECHO_T}no" >&6; }
7675 fi
7676
7677
7678   test -n "$OCAMLDOC" && break
7679 done
7680
7681 for ac_prog in gas as
7682 do
7683   # Extract the first word of "$ac_prog", so it can be a program name with args.
7684 set dummy $ac_prog; ac_word=$2
7685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7687 if test "${ac_cv_path_GAS+set}" = set; then
7688   echo $ECHO_N "(cached) $ECHO_C" >&6
7689 else
7690   case $GAS in
7691   [\\/]* | ?:[\\/]*)
7692   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7693   ;;
7694   *)
7695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696 for as_dir in $PATH
7697 do
7698   IFS=$as_save_IFS
7699   test -z "$as_dir" && as_dir=.
7700   for ac_exec_ext in '' $ac_executable_extensions; do
7701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7702     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7704     break 2
7705   fi
7706 done
7707 done
7708 IFS=$as_save_IFS
7709
7710   ;;
7711 esac
7712 fi
7713 GAS=$ac_cv_path_GAS
7714 if test -n "$GAS"; then
7715   { echo "$as_me:$LINENO: result: $GAS" >&5
7716 echo "${ECHO_T}$GAS" >&6; }
7717 else
7718   { echo "$as_me:$LINENO: result: no" >&5
7719 echo "${ECHO_T}no" >&6; }
7720 fi
7721
7722
7723   test -n "$GAS" && break
7724 done
7725
7726
7727 { echo "$as_me:$LINENO: checking for linker version" >&5
7728 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7729 if test "${llvm_cv_link_version+set}" = set; then
7730   echo $ECHO_N "(cached) $ECHO_C" >&6
7731 else
7732
7733    version_string="$(ld -v 2>&1 | head -1)"
7734
7735    # Check for ld64.
7736    if (echo "$version_string" | grep -q "ld64"); then
7737      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7738    else
7739      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7740    fi
7741
7742 fi
7743 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7744 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7745
7746 cat >>confdefs.h <<_ACEOF
7747 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7748 _ACEOF
7749
7750
7751
7752 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7753 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7754 if test "${llvm_cv_link_use_r+set}" = set; then
7755   echo $ECHO_N "(cached) $ECHO_C" >&6
7756 else
7757    ac_ext=c
7758 ac_cpp='$CPP $CPPFLAGS'
7759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7762
7763   oldcflags="$CFLAGS"
7764   CFLAGS="$CFLAGS -Wl,-R."
7765   cat >conftest.$ac_ext <<_ACEOF
7766 /* confdefs.h.  */
7767 _ACEOF
7768 cat confdefs.h >>conftest.$ac_ext
7769 cat >>conftest.$ac_ext <<_ACEOF
7770 /* end confdefs.h.  */
7771
7772 int
7773 main ()
7774 {
7775
7776   ;
7777   return 0;
7778 }
7779 _ACEOF
7780 rm -f conftest.$ac_objext conftest$ac_exeext
7781 if { (ac_try="$ac_link"
7782 case "(($ac_try" in
7783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784   *) ac_try_echo=$ac_try;;
7785 esac
7786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7787   (eval "$ac_link") 2>conftest.er1
7788   ac_status=$?
7789   grep -v '^ *+' conftest.er1 >conftest.err
7790   rm -f conftest.er1
7791   cat conftest.err >&5
7792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793   (exit $ac_status); } &&
7794          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7795   { (case "(($ac_try" in
7796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797   *) ac_try_echo=$ac_try;;
7798 esac
7799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7800   (eval "$ac_try") 2>&5
7801   ac_status=$?
7802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803   (exit $ac_status); }; } &&
7804          { ac_try='test -s conftest$ac_exeext'
7805   { (case "(($ac_try" in
7806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7807   *) ac_try_echo=$ac_try;;
7808 esac
7809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7810   (eval "$ac_try") 2>&5
7811   ac_status=$?
7812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813   (exit $ac_status); }; }; then
7814   llvm_cv_link_use_r=yes
7815 else
7816   echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.$ac_ext >&5
7818
7819         llvm_cv_link_use_r=no
7820 fi
7821
7822 rm -f core conftest.err conftest.$ac_objext \
7823       conftest$ac_exeext conftest.$ac_ext
7824   CFLAGS="$oldcflags"
7825   ac_ext=c
7826 ac_cpp='$CPP $CPPFLAGS'
7827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7830
7831
7832 fi
7833 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7834 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7835 if test "$llvm_cv_link_use_r" = yes ; then
7836
7837 cat >>confdefs.h <<\_ACEOF
7838 #define HAVE_LINK_R 1
7839 _ACEOF
7840
7841   fi
7842
7843
7844 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7845 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7846 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7847   echo $ECHO_N "(cached) $ECHO_C" >&6
7848 else
7849    ac_ext=c
7850 ac_cpp='$CPP $CPPFLAGS'
7851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7854
7855   oldcflags="$CFLAGS"
7856   CFLAGS="$CFLAGS -Wl,-export-dynamic"
7857   cat >conftest.$ac_ext <<_ACEOF
7858 /* confdefs.h.  */
7859 _ACEOF
7860 cat confdefs.h >>conftest.$ac_ext
7861 cat >>conftest.$ac_ext <<_ACEOF
7862 /* end confdefs.h.  */
7863
7864 int
7865 main ()
7866 {
7867
7868   ;
7869   return 0;
7870 }
7871 _ACEOF
7872 rm -f conftest.$ac_objext conftest$ac_exeext
7873 if { (ac_try="$ac_link"
7874 case "(($ac_try" in
7875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876   *) ac_try_echo=$ac_try;;
7877 esac
7878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879   (eval "$ac_link") 2>conftest.er1
7880   ac_status=$?
7881   grep -v '^ *+' conftest.er1 >conftest.err
7882   rm -f conftest.er1
7883   cat conftest.err >&5
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); } &&
7886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7887   { (case "(($ac_try" in
7888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7889   *) ac_try_echo=$ac_try;;
7890 esac
7891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7892   (eval "$ac_try") 2>&5
7893   ac_status=$?
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); }; } &&
7896          { ac_try='test -s conftest$ac_exeext'
7897   { (case "(($ac_try" in
7898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899   *) ac_try_echo=$ac_try;;
7900 esac
7901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7902   (eval "$ac_try") 2>&5
7903   ac_status=$?
7904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905   (exit $ac_status); }; }; then
7906   llvm_cv_link_use_export_dynamic=yes
7907 else
7908   echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7910
7911         llvm_cv_link_use_export_dynamic=no
7912 fi
7913
7914 rm -f core conftest.err conftest.$ac_objext \
7915       conftest$ac_exeext conftest.$ac_ext
7916   CFLAGS="$oldcflags"
7917   ac_ext=c
7918 ac_cpp='$CPP $CPPFLAGS'
7919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7922
7923
7924 fi
7925 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7926 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7927 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7928
7929 cat >>confdefs.h <<\_ACEOF
7930 #define HAVE_LINK_EXPORT_DYNAMIC 1
7931 _ACEOF
7932
7933   fi
7934
7935
7936 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7937 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7938 if test "${llvm_cv_link_use_version_script+set}" = set; then
7939   echo $ECHO_N "(cached) $ECHO_C" >&6
7940 else
7941    ac_ext=c
7942 ac_cpp='$CPP $CPPFLAGS'
7943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7946
7947   oldcflags="$CFLAGS"
7948
7949   # The following code is from the autoconf manual,
7950   # "11.13: Limitations of Usual Tools".
7951   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7952   # Use mktemp if possible; otherwise fall back on mkdir,
7953   # with $RANDOM to make collisions less likely.
7954   : ${TMPDIR=/tmp}
7955   {
7956     tmp=`
7957       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7958     ` &&
7959     test -n "$tmp" && test -d "$tmp"
7960   } || {
7961     tmp=$TMPDIR/foo$$-$RANDOM
7962     (umask 077 && mkdir "$tmp")
7963   } || exit $?
7964
7965   echo "{" > "$tmp/export.map"
7966   echo "  global: main;" >> "$tmp/export.map"
7967   echo "  local: *;" >> "$tmp/export.map"
7968   echo "};" >> "$tmp/export.map"
7969
7970   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7971   cat >conftest.$ac_ext <<_ACEOF
7972 /* confdefs.h.  */
7973 _ACEOF
7974 cat confdefs.h >>conftest.$ac_ext
7975 cat >>conftest.$ac_ext <<_ACEOF
7976 /* end confdefs.h.  */
7977
7978 int
7979 main ()
7980 {
7981
7982   ;
7983   return 0;
7984 }
7985 _ACEOF
7986 rm -f conftest.$ac_objext conftest$ac_exeext
7987 if { (ac_try="$ac_link"
7988 case "(($ac_try" in
7989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990   *) ac_try_echo=$ac_try;;
7991 esac
7992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993   (eval "$ac_link") 2>conftest.er1
7994   ac_status=$?
7995   grep -v '^ *+' conftest.er1 >conftest.err
7996   rm -f conftest.er1
7997   cat conftest.err >&5
7998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999   (exit $ac_status); } &&
8000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8001   { (case "(($ac_try" in
8002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003   *) ac_try_echo=$ac_try;;
8004 esac
8005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006   (eval "$ac_try") 2>&5
8007   ac_status=$?
8008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009   (exit $ac_status); }; } &&
8010          { ac_try='test -s conftest$ac_exeext'
8011   { (case "(($ac_try" in
8012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013   *) ac_try_echo=$ac_try;;
8014 esac
8015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016   (eval "$ac_try") 2>&5
8017   ac_status=$?
8018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019   (exit $ac_status); }; }; then
8020   llvm_cv_link_use_version_script=yes
8021 else
8022   echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8024
8025         llvm_cv_link_use_version_script=no
8026 fi
8027
8028 rm -f core conftest.err conftest.$ac_objext \
8029       conftest$ac_exeext conftest.$ac_ext
8030   rm "$tmp/export.map"
8031   rmdir "$tmp"
8032   CFLAGS="$oldcflags"
8033   ac_ext=c
8034 ac_cpp='$CPP $CPPFLAGS'
8035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8038
8039
8040 fi
8041 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8042 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8043 if test "$llvm_cv_link_use_version_script" = yes ; then
8044   HAVE_LINK_VERSION_SCRIPT=1
8045
8046   fi
8047
8048
8049
8050
8051 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8052 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8053 if test "${ac_cv_c_const+set}" = set; then
8054   echo $ECHO_N "(cached) $ECHO_C" >&6
8055 else
8056   cat >conftest.$ac_ext <<_ACEOF
8057 /* confdefs.h.  */
8058 _ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h.  */
8062
8063 int
8064 main ()
8065 {
8066 /* FIXME: Include the comments suggested by Paul. */
8067 #ifndef __cplusplus
8068   /* Ultrix mips cc rejects this.  */
8069   typedef int charset[2];
8070   const charset x;
8071   /* SunOS 4.1.1 cc rejects this.  */
8072   char const *const *ccp;
8073   char **p;
8074   /* NEC SVR4.0.2 mips cc rejects this.  */
8075   struct point {int x, y;};
8076   static struct point const zero = {0,0};
8077   /* AIX XL C 1.02.0.0 rejects this.
8078      It does not let you subtract one const X* pointer from another in
8079      an arm of an if-expression whose if-part is not a constant
8080      expression */
8081   const char *g = "string";
8082   ccp = &g + (g ? g-g : 0);
8083   /* HPUX 7.0 cc rejects these. */
8084   ++ccp;
8085   p = (char**) ccp;
8086   ccp = (char const *const *) p;
8087   { /* SCO 3.2v4 cc rejects this.  */
8088     char *t;
8089     char const *s = 0 ? (char *) 0 : (char const *) 0;
8090
8091     *t++ = 0;
8092     if (s) return 0;
8093   }
8094   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8095     int x[] = {25, 17};
8096     const int *foo = &x[0];
8097     ++foo;
8098   }
8099   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8100     typedef const int *iptr;
8101     iptr p = 0;
8102     ++p;
8103   }
8104   { /* AIX XL C 1.02.0.0 rejects this saying
8105        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8106     struct s { int j; const int *ap[3]; };
8107     struct s *b; b->j = 5;
8108   }
8109   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8110     const int foo = 10;
8111     if (!foo) return 0;
8112   }
8113   return !x[0] && !zero.x;
8114 #endif
8115
8116   ;
8117   return 0;
8118 }
8119 _ACEOF
8120 rm -f conftest.$ac_objext
8121 if { (ac_try="$ac_compile"
8122 case "(($ac_try" in
8123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124   *) ac_try_echo=$ac_try;;
8125 esac
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127   (eval "$ac_compile") 2>conftest.er1
8128   ac_status=$?
8129   grep -v '^ *+' conftest.er1 >conftest.err
8130   rm -f conftest.er1
8131   cat conftest.err >&5
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); } &&
8134          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8135   { (case "(($ac_try" in
8136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8137   *) ac_try_echo=$ac_try;;
8138 esac
8139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8140   (eval "$ac_try") 2>&5
8141   ac_status=$?
8142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143   (exit $ac_status); }; } &&
8144          { ac_try='test -s conftest.$ac_objext'
8145   { (case "(($ac_try" in
8146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147   *) ac_try_echo=$ac_try;;
8148 esac
8149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150   (eval "$ac_try") 2>&5
8151   ac_status=$?
8152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153   (exit $ac_status); }; }; then
8154   ac_cv_c_const=yes
8155 else
8156   echo "$as_me: failed program was:" >&5
8157 sed 's/^/| /' conftest.$ac_ext >&5
8158
8159         ac_cv_c_const=no
8160 fi
8161
8162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8163 fi
8164 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8165 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8166 if test $ac_cv_c_const = no; then
8167
8168 cat >>confdefs.h <<\_ACEOF
8169 #define const
8170 _ACEOF
8171
8172 fi
8173
8174
8175
8176
8177
8178
8179 ac_header_dirent=no
8180 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8181   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8182 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8183 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8185   echo $ECHO_N "(cached) $ECHO_C" >&6
8186 else
8187   cat >conftest.$ac_ext <<_ACEOF
8188 /* confdefs.h.  */
8189 _ACEOF
8190 cat confdefs.h >>conftest.$ac_ext
8191 cat >>conftest.$ac_ext <<_ACEOF
8192 /* end confdefs.h.  */
8193 #include <sys/types.h>
8194 #include <$ac_hdr>
8195
8196 int
8197 main ()
8198 {
8199 if ((DIR *) 0)
8200 return 0;
8201   ;
8202   return 0;
8203 }
8204 _ACEOF
8205 rm -f conftest.$ac_objext
8206 if { (ac_try="$ac_compile"
8207 case "(($ac_try" in
8208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209   *) ac_try_echo=$ac_try;;
8210 esac
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212   (eval "$ac_compile") 2>conftest.er1
8213   ac_status=$?
8214   grep -v '^ *+' conftest.er1 >conftest.err
8215   rm -f conftest.er1
8216   cat conftest.err >&5
8217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218   (exit $ac_status); } &&
8219          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8220   { (case "(($ac_try" in
8221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222   *) ac_try_echo=$ac_try;;
8223 esac
8224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8225   (eval "$ac_try") 2>&5
8226   ac_status=$?
8227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228   (exit $ac_status); }; } &&
8229          { ac_try='test -s conftest.$ac_objext'
8230   { (case "(($ac_try" in
8231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232   *) ac_try_echo=$ac_try;;
8233 esac
8234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235   (eval "$ac_try") 2>&5
8236   ac_status=$?
8237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238   (exit $ac_status); }; }; then
8239   eval "$as_ac_Header=yes"
8240 else
8241   echo "$as_me: failed program was:" >&5
8242 sed 's/^/| /' conftest.$ac_ext >&5
8243
8244         eval "$as_ac_Header=no"
8245 fi
8246
8247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8248 fi
8249 ac_res=`eval echo '${'$as_ac_Header'}'`
8250                { echo "$as_me:$LINENO: result: $ac_res" >&5
8251 echo "${ECHO_T}$ac_res" >&6; }
8252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8253   cat >>confdefs.h <<_ACEOF
8254 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8255 _ACEOF
8256
8257 ac_header_dirent=$ac_hdr; break
8258 fi
8259
8260 done
8261 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8262 if test $ac_header_dirent = dirent.h; then
8263   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8264 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8265 if test "${ac_cv_search_opendir+set}" = set; then
8266   echo $ECHO_N "(cached) $ECHO_C" >&6
8267 else
8268   ac_func_search_save_LIBS=$LIBS
8269 cat >conftest.$ac_ext <<_ACEOF
8270 /* confdefs.h.  */
8271 _ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h.  */
8275
8276 /* Override any GCC internal prototype to avoid an error.
8277    Use char because int might match the return type of a GCC
8278    builtin and then its argument prototype would still apply.  */
8279 #ifdef __cplusplus
8280 extern "C"
8281 #endif
8282 char opendir ();
8283 int
8284 main ()
8285 {
8286 return opendir ();
8287   ;
8288   return 0;
8289 }
8290 _ACEOF
8291 for ac_lib in '' dir; do
8292   if test -z "$ac_lib"; then
8293     ac_res="none required"
8294   else
8295     ac_res=-l$ac_lib
8296     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8297   fi
8298   rm -f conftest.$ac_objext conftest$ac_exeext
8299 if { (ac_try="$ac_link"
8300 case "(($ac_try" in
8301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302   *) ac_try_echo=$ac_try;;
8303 esac
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305   (eval "$ac_link") 2>conftest.er1
8306   ac_status=$?
8307   grep -v '^ *+' conftest.er1 >conftest.err
8308   rm -f conftest.er1
8309   cat conftest.err >&5
8310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); } &&
8312          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8313   { (case "(($ac_try" in
8314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315   *) ac_try_echo=$ac_try;;
8316 esac
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318   (eval "$ac_try") 2>&5
8319   ac_status=$?
8320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321   (exit $ac_status); }; } &&
8322          { ac_try='test -s conftest$ac_exeext'
8323   { (case "(($ac_try" in
8324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8325   *) ac_try_echo=$ac_try;;
8326 esac
8327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8328   (eval "$ac_try") 2>&5
8329   ac_status=$?
8330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331   (exit $ac_status); }; }; then
8332   ac_cv_search_opendir=$ac_res
8333 else
8334   echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8336
8337
8338 fi
8339
8340 rm -f core conftest.err conftest.$ac_objext \
8341       conftest$ac_exeext
8342   if test "${ac_cv_search_opendir+set}" = set; then
8343   break
8344 fi
8345 done
8346 if test "${ac_cv_search_opendir+set}" = set; then
8347   :
8348 else
8349   ac_cv_search_opendir=no
8350 fi
8351 rm conftest.$ac_ext
8352 LIBS=$ac_func_search_save_LIBS
8353 fi
8354 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8355 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8356 ac_res=$ac_cv_search_opendir
8357 if test "$ac_res" != no; then
8358   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8359
8360 fi
8361
8362 else
8363   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8364 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8365 if test "${ac_cv_search_opendir+set}" = set; then
8366   echo $ECHO_N "(cached) $ECHO_C" >&6
8367 else
8368   ac_func_search_save_LIBS=$LIBS
8369 cat >conftest.$ac_ext <<_ACEOF
8370 /* confdefs.h.  */
8371 _ACEOF
8372 cat confdefs.h >>conftest.$ac_ext
8373 cat >>conftest.$ac_ext <<_ACEOF
8374 /* end confdefs.h.  */
8375
8376 /* Override any GCC internal prototype to avoid an error.
8377    Use char because int might match the return type of a GCC
8378    builtin and then its argument prototype would still apply.  */
8379 #ifdef __cplusplus
8380 extern "C"
8381 #endif
8382 char opendir ();
8383 int
8384 main ()
8385 {
8386 return opendir ();
8387   ;
8388   return 0;
8389 }
8390 _ACEOF
8391 for ac_lib in '' x; do
8392   if test -z "$ac_lib"; then
8393     ac_res="none required"
8394   else
8395     ac_res=-l$ac_lib
8396     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8397   fi
8398   rm -f conftest.$ac_objext conftest$ac_exeext
8399 if { (ac_try="$ac_link"
8400 case "(($ac_try" in
8401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402   *) ac_try_echo=$ac_try;;
8403 esac
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405   (eval "$ac_link") 2>conftest.er1
8406   ac_status=$?
8407   grep -v '^ *+' conftest.er1 >conftest.err
8408   rm -f conftest.er1
8409   cat conftest.err >&5
8410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411   (exit $ac_status); } &&
8412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8413   { (case "(($ac_try" in
8414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415   *) ac_try_echo=$ac_try;;
8416 esac
8417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418   (eval "$ac_try") 2>&5
8419   ac_status=$?
8420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421   (exit $ac_status); }; } &&
8422          { ac_try='test -s conftest$ac_exeext'
8423   { (case "(($ac_try" in
8424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8425   *) ac_try_echo=$ac_try;;
8426 esac
8427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8428   (eval "$ac_try") 2>&5
8429   ac_status=$?
8430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431   (exit $ac_status); }; }; then
8432   ac_cv_search_opendir=$ac_res
8433 else
8434   echo "$as_me: failed program was:" >&5
8435 sed 's/^/| /' conftest.$ac_ext >&5
8436
8437
8438 fi
8439
8440 rm -f core conftest.err conftest.$ac_objext \
8441       conftest$ac_exeext
8442   if test "${ac_cv_search_opendir+set}" = set; then
8443   break
8444 fi
8445 done
8446 if test "${ac_cv_search_opendir+set}" = set; then
8447   :
8448 else
8449   ac_cv_search_opendir=no
8450 fi
8451 rm conftest.$ac_ext
8452 LIBS=$ac_func_search_save_LIBS
8453 fi
8454 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8455 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8456 ac_res=$ac_cv_search_opendir
8457 if test "$ac_res" != no; then
8458   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8459
8460 fi
8461
8462 fi
8463
8464
8465 for ac_header in dlfcn.h
8466 do
8467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8469   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8472   echo $ECHO_N "(cached) $ECHO_C" >&6
8473 fi
8474 ac_res=`eval echo '${'$as_ac_Header'}'`
8475                { echo "$as_me:$LINENO: result: $ac_res" >&5
8476 echo "${ECHO_T}$ac_res" >&6; }
8477 else
8478   # Is the header compilable?
8479 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8480 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8481 cat >conftest.$ac_ext <<_ACEOF
8482 /* confdefs.h.  */
8483 _ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h.  */
8487 $ac_includes_default
8488 #include <$ac_header>
8489 _ACEOF
8490 rm -f conftest.$ac_objext
8491 if { (ac_try="$ac_compile"
8492 case "(($ac_try" in
8493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494   *) ac_try_echo=$ac_try;;
8495 esac
8496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8497   (eval "$ac_compile") 2>conftest.er1
8498   ac_status=$?
8499   grep -v '^ *+' conftest.er1 >conftest.err
8500   rm -f conftest.er1
8501   cat conftest.err >&5
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); } &&
8504          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8505   { (case "(($ac_try" in
8506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507   *) ac_try_echo=$ac_try;;
8508 esac
8509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510   (eval "$ac_try") 2>&5
8511   ac_status=$?
8512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513   (exit $ac_status); }; } &&
8514          { ac_try='test -s conftest.$ac_objext'
8515   { (case "(($ac_try" in
8516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517   *) ac_try_echo=$ac_try;;
8518 esac
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520   (eval "$ac_try") 2>&5
8521   ac_status=$?
8522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523   (exit $ac_status); }; }; then
8524   ac_header_compiler=yes
8525 else
8526   echo "$as_me: failed program was:" >&5
8527 sed 's/^/| /' conftest.$ac_ext >&5
8528
8529         ac_header_compiler=no
8530 fi
8531
8532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8534 echo "${ECHO_T}$ac_header_compiler" >&6; }
8535
8536 # Is the header present?
8537 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8539 cat >conftest.$ac_ext <<_ACEOF
8540 /* confdefs.h.  */
8541 _ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h.  */
8545 #include <$ac_header>
8546 _ACEOF
8547 if { (ac_try="$ac_cpp conftest.$ac_ext"
8548 case "(($ac_try" in
8549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550   *) ac_try_echo=$ac_try;;
8551 esac
8552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8554   ac_status=$?
8555   grep -v '^ *+' conftest.er1 >conftest.err
8556   rm -f conftest.er1
8557   cat conftest.err >&5
8558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559   (exit $ac_status); } >/dev/null; then
8560   if test -s conftest.err; then
8561     ac_cpp_err=$ac_c_preproc_warn_flag
8562     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8563   else
8564     ac_cpp_err=
8565   fi
8566 else
8567   ac_cpp_err=yes
8568 fi
8569 if test -z "$ac_cpp_err"; then
8570   ac_header_preproc=yes
8571 else
8572   echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8574
8575   ac_header_preproc=no
8576 fi
8577
8578 rm -f conftest.err conftest.$ac_ext
8579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8580 echo "${ECHO_T}$ac_header_preproc" >&6; }
8581
8582 # So?  What about this header?
8583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8584   yes:no: )
8585     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8589     ac_header_preproc=yes
8590     ;;
8591   no:yes:* )
8592     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8594     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8595 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8596     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8598     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8599 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8602     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8604     ( cat <<\_ASBOX
8605 ## ------------------------------ ##
8606 ## Report this to bugs@yourdomain ##
8607 ## ------------------------------ ##
8608 _ASBOX
8609      ) | sed "s/^/$as_me: WARNING:     /" >&2
8610     ;;
8611 esac
8612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8615   echo $ECHO_N "(cached) $ECHO_C" >&6
8616 else
8617   eval "$as_ac_Header=\$ac_header_preproc"
8618 fi
8619 ac_res=`eval echo '${'$as_ac_Header'}'`
8620                { echo "$as_me:$LINENO: result: $ac_res" >&5
8621 echo "${ECHO_T}$ac_res" >&6; }
8622
8623 fi
8624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8625   cat >>confdefs.h <<_ACEOF
8626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8627 _ACEOF
8628
8629 fi
8630
8631 done
8632
8633 # Check whether --enable-ltdl-install was given.
8634 if test "${enable_ltdl_install+set}" = set; then
8635   enableval=$enable_ltdl_install;
8636 fi
8637
8638
8639
8640
8641 if test x"${enable_ltdl_install-no}" != xno; then
8642   INSTALL_LTDL_TRUE=
8643   INSTALL_LTDL_FALSE='#'
8644 else
8645   INSTALL_LTDL_TRUE='#'
8646   INSTALL_LTDL_FALSE=
8647 fi
8648
8649
8650
8651 if test x"${enable_ltdl_convenience-no}" != xno; then
8652   CONVENIENCE_LTDL_TRUE=
8653   CONVENIENCE_LTDL_FALSE='#'
8654 else
8655   CONVENIENCE_LTDL_TRUE='#'
8656   CONVENIENCE_LTDL_FALSE=
8657 fi
8658
8659
8660 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8661 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8662 library_names_spec=
8663 libname_spec='lib$name'
8664 soname_spec=
8665 shrext_cmds=".so"
8666 postinstall_cmds=
8667 postuninstall_cmds=
8668 finish_cmds=
8669 finish_eval=
8670 shlibpath_var=
8671 shlibpath_overrides_runpath=unknown
8672 version_type=none
8673 dynamic_linker="$host_os ld.so"
8674 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8675 if test "$GCC" = yes; then
8676   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8677   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8678     # if the path contains ";" then we assume it to be the separator
8679     # otherwise default to the standard path separator (i.e. ":") - it is
8680     # assumed that no part of a normal pathname contains ";" but that should
8681     # okay in the real world where ";" in dirpaths is itself problematic.
8682     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8683   else
8684     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8685   fi
8686 else
8687   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8688 fi
8689 need_lib_prefix=unknown
8690 hardcode_into_libs=no
8691
8692 # when you set need_version to no, make sure it does not cause -set_version
8693 # flags to be left without arguments
8694 need_version=unknown
8695
8696 case $host_os in
8697 aix3*)
8698   version_type=linux
8699   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8700   shlibpath_var=LIBPATH
8701
8702   # AIX 3 has no versioning support, so we append a major version to the name.
8703   soname_spec='${libname}${release}${shared_ext}$major'
8704   ;;
8705
8706 aix4* | aix5*)
8707   version_type=linux
8708   need_lib_prefix=no
8709   need_version=no
8710   hardcode_into_libs=yes
8711   if test "$host_cpu" = ia64; then
8712     # AIX 5 supports IA64
8713     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8714     shlibpath_var=LD_LIBRARY_PATH
8715   else
8716     # With GCC up to 2.95.x, collect2 would create an import file
8717     # for dependence libraries.  The import file would start with
8718     # the line `#! .'.  This would cause the generated library to
8719     # depend on `.', always an invalid library.  This was fixed in
8720     # development snapshots of GCC prior to 3.0.
8721     case $host_os in
8722       aix4 | aix4.[01] | aix4.[01].*)
8723       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8724            echo ' yes '
8725            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8726         :
8727       else
8728         can_build_shared=no
8729       fi
8730       ;;
8731     esac
8732     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8733     # soname into executable. Probably we can add versioning support to
8734     # collect2, so additional links can be useful in future.
8735     if test "$aix_use_runtimelinking" = yes; then
8736       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8737       # instead of lib<name>.a to let people know that these are not
8738       # typical AIX shared libraries.
8739       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8740     else
8741       # We preserve .a as extension for shared libraries through AIX4.2
8742       # and later when we are not doing run time linking.
8743       library_names_spec='${libname}${release}.a $libname.a'
8744       soname_spec='${libname}${release}${shared_ext}$major'
8745     fi
8746     shlibpath_var=LIBPATH
8747   fi
8748   ;;
8749
8750 amigaos*)
8751   library_names_spec='$libname.ixlibrary $libname.a'
8752   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8753   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'
8754   ;;
8755
8756 beos*)
8757   library_names_spec='${libname}${shared_ext}'
8758   dynamic_linker="$host_os ld.so"
8759   shlibpath_var=LIBRARY_PATH
8760   ;;
8761
8762 bsdi[45]*)
8763   version_type=linux
8764   need_version=no
8765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8766   soname_spec='${libname}${release}${shared_ext}$major'
8767   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8768   shlibpath_var=LD_LIBRARY_PATH
8769   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8770   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8771   # the default ld.so.conf also contains /usr/contrib/lib and
8772   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8773   # libtool to hard-code these into programs
8774   ;;
8775
8776 cygwin* | mingw* | pw32*)
8777   version_type=windows
8778   shrext_cmds=".dll"
8779   need_version=no
8780   need_lib_prefix=no
8781
8782   case $GCC,$host_os in
8783   yes,cygwin* | yes,mingw* | yes,pw32*)
8784     library_names_spec='$libname.dll.a'
8785     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8786     postinstall_cmds='base_file=`basename \${file}`~
8787       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8788       dldir=$destdir/`dirname \$dlpath`~
8789       test -d \$dldir || mkdir -p \$dldir~
8790       $install_prog $dir/$dlname \$dldir/$dlname~
8791       chmod a+x \$dldir/$dlname'
8792     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8793       dlpath=$dir/\$dldll~
8794        $rm \$dlpath'
8795     shlibpath_overrides_runpath=yes
8796
8797     case $host_os in
8798     cygwin*)
8799       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8800       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8801       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8802       ;;
8803     mingw*)
8804       # MinGW DLLs use traditional 'lib' prefix
8805       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8806       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8807       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8808         # It is most probably a Windows format PATH printed by
8809         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8810         # path with ; separators, and with drive letters. We can handle the
8811         # drive letters (cygwin fileutils understands them), so leave them,
8812         # especially as we might pass files found there to a mingw objdump,
8813         # which wouldn't understand a cygwinified path. Ahh.
8814         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8815       else
8816         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8817       fi
8818       ;;
8819     pw32*)
8820       # pw32 DLLs use 'pw' prefix rather than 'lib'
8821       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8822       ;;
8823     esac
8824     ;;
8825
8826   *)
8827     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8828     ;;
8829   esac
8830   dynamic_linker='Win32 ld.exe'
8831   # FIXME: first we should search . and the directory the executable is in
8832   shlibpath_var=PATH
8833   ;;
8834
8835 darwin* | rhapsody*)
8836   dynamic_linker="$host_os dyld"
8837   version_type=darwin
8838   need_lib_prefix=no
8839   need_version=no
8840   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8841   soname_spec='${libname}${release}${major}$shared_ext'
8842   shlibpath_overrides_runpath=yes
8843   shlibpath_var=DYLD_LIBRARY_PATH
8844   shrext_cmds='.dylib'
8845   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8846   if test "$GCC" = yes; then
8847     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"`
8848   else
8849     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8850   fi
8851   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8852   ;;
8853
8854 dgux*)
8855   version_type=linux
8856   need_lib_prefix=no
8857   need_version=no
8858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8859   soname_spec='${libname}${release}${shared_ext}$major'
8860   shlibpath_var=LD_LIBRARY_PATH
8861   ;;
8862
8863 freebsd1*)
8864   dynamic_linker=no
8865   ;;
8866
8867 kfreebsd*-gnu)
8868   version_type=linux
8869   need_lib_prefix=no
8870   need_version=no
8871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8872   soname_spec='${libname}${release}${shared_ext}$major'
8873   shlibpath_var=LD_LIBRARY_PATH
8874   shlibpath_overrides_runpath=no
8875   hardcode_into_libs=yes
8876   dynamic_linker='GNU ld.so'
8877   ;;
8878
8879 freebsd* | dragonfly*)
8880   # DragonFly does not have aout.  When/if they implement a new
8881   # versioning mechanism, adjust this.
8882   if test -x /usr/bin/objformat; then
8883     objformat=`/usr/bin/objformat`
8884   else
8885     case $host_os in
8886     freebsd[123]*) objformat=aout ;;
8887     *) objformat=elf ;;
8888     esac
8889   fi
8890   version_type=freebsd-$objformat
8891   case $version_type in
8892     freebsd-elf*)
8893       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8894       need_version=no
8895       need_lib_prefix=no
8896       ;;
8897     freebsd-*)
8898       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8899       need_version=yes
8900       ;;
8901   esac
8902   shlibpath_var=LD_LIBRARY_PATH
8903   case $host_os in
8904   freebsd2*)
8905     shlibpath_overrides_runpath=yes
8906     ;;
8907   freebsd3.[01]* | freebsdelf3.[01]*)
8908     shlibpath_overrides_runpath=yes
8909     hardcode_into_libs=yes
8910     ;;
8911   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8912   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8913     shlibpath_overrides_runpath=no
8914     hardcode_into_libs=yes
8915     ;;
8916   freebsd*) # from 4.6 on
8917     shlibpath_overrides_runpath=yes
8918     hardcode_into_libs=yes
8919     ;;
8920   esac
8921   ;;
8922
8923 gnu*)
8924   version_type=linux
8925   need_lib_prefix=no
8926   need_version=no
8927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8928   soname_spec='${libname}${release}${shared_ext}$major'
8929   shlibpath_var=LD_LIBRARY_PATH
8930   hardcode_into_libs=yes
8931   ;;
8932
8933 hpux9* | hpux10* | hpux11*)
8934   # Give a soname corresponding to the major version so that dld.sl refuses to
8935   # link against other versions.
8936   version_type=sunos
8937   need_lib_prefix=no
8938   need_version=no
8939   case $host_cpu in
8940   ia64*)
8941     shrext_cmds='.so'
8942     hardcode_into_libs=yes
8943     dynamic_linker="$host_os dld.so"
8944     shlibpath_var=LD_LIBRARY_PATH
8945     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8946     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8947     soname_spec='${libname}${release}${shared_ext}$major'
8948     if test "X$HPUX_IA64_MODE" = X32; then
8949       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8950     else
8951       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8952     fi
8953     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8954     ;;
8955    hppa*64*)
8956      shrext_cmds='.sl'
8957      hardcode_into_libs=yes
8958      dynamic_linker="$host_os dld.sl"
8959      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8960      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8961      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8962      soname_spec='${libname}${release}${shared_ext}$major'
8963      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8964      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8965      ;;
8966    *)
8967     shrext_cmds='.sl'
8968     dynamic_linker="$host_os dld.sl"
8969     shlibpath_var=SHLIB_PATH
8970     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8971     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8972     soname_spec='${libname}${release}${shared_ext}$major'
8973     ;;
8974   esac
8975   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8976   postinstall_cmds='chmod 555 $lib'
8977   ;;
8978
8979 interix3*)
8980   version_type=linux
8981   need_lib_prefix=no
8982   need_version=no
8983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8984   soname_spec='${libname}${release}${shared_ext}$major'
8985   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8986   shlibpath_var=LD_LIBRARY_PATH
8987   shlibpath_overrides_runpath=no
8988   hardcode_into_libs=yes
8989   ;;
8990
8991 irix5* | irix6* | nonstopux*)
8992   case $host_os in
8993     nonstopux*) version_type=nonstopux ;;
8994     *)
8995         if test "$lt_cv_prog_gnu_ld" = yes; then
8996                 version_type=linux
8997         else
8998                 version_type=irix
8999         fi ;;
9000   esac
9001   need_lib_prefix=no
9002   need_version=no
9003   soname_spec='${libname}${release}${shared_ext}$major'
9004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9005   case $host_os in
9006   irix5* | nonstopux*)
9007     libsuff= shlibsuff=
9008     ;;
9009   *)
9010     case $LD in # libtool.m4 will add one of these switches to LD
9011     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9012       libsuff= shlibsuff= libmagic=32-bit;;
9013     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9014       libsuff=32 shlibsuff=N32 libmagic=N32;;
9015     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9016       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9017     *) libsuff= shlibsuff= libmagic=never-match;;
9018     esac
9019     ;;
9020   esac
9021   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9022   shlibpath_overrides_runpath=no
9023   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9024   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9025   hardcode_into_libs=yes
9026   ;;
9027
9028 # No shared lib support for Linux oldld, aout, or coff.
9029 linux*oldld* | linux*aout* | linux*coff*)
9030   dynamic_linker=no
9031   ;;
9032
9033 # This must be Linux ELF.
9034 linux*)
9035   version_type=linux
9036   need_lib_prefix=no
9037   need_version=no
9038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9039   soname_spec='${libname}${release}${shared_ext}$major'
9040   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9041   shlibpath_var=LD_LIBRARY_PATH
9042   shlibpath_overrides_runpath=no
9043   # This implies no fast_install, which is unacceptable.
9044   # Some rework will be needed to allow for fast_install
9045   # before this can be enabled.
9046   hardcode_into_libs=yes
9047
9048   # Append ld.so.conf contents to the search path
9049   if test -f /etc/ld.so.conf; then
9050     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' ' '`
9051     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9052   fi
9053
9054   # We used to test for /lib/ld.so.1 and disable shared libraries on
9055   # powerpc, because MkLinux only supported shared libraries with the
9056   # GNU dynamic linker.  Since this was broken with cross compilers,
9057   # most powerpc-linux boxes support dynamic linking these days and
9058   # people can always --disable-shared, the test was removed, and we
9059   # assume the GNU/Linux dynamic linker is in use.
9060   dynamic_linker='GNU/Linux ld.so'
9061   ;;
9062
9063 knetbsd*-gnu)
9064   version_type=linux
9065   need_lib_prefix=no
9066   need_version=no
9067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9068   soname_spec='${libname}${release}${shared_ext}$major'
9069   shlibpath_var=LD_LIBRARY_PATH
9070   shlibpath_overrides_runpath=no
9071   hardcode_into_libs=yes
9072   dynamic_linker='GNU ld.so'
9073   ;;
9074
9075 netbsd*)
9076   version_type=sunos
9077   need_lib_prefix=no
9078   need_version=no
9079   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9080     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9081     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9082     dynamic_linker='NetBSD (a.out) ld.so'
9083   else
9084     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9085     soname_spec='${libname}${release}${shared_ext}$major'
9086     dynamic_linker='NetBSD ld.elf_so'
9087   fi
9088   shlibpath_var=LD_LIBRARY_PATH
9089   shlibpath_overrides_runpath=yes
9090   hardcode_into_libs=yes
9091   ;;
9092
9093 newsos6)
9094   version_type=linux
9095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9096   shlibpath_var=LD_LIBRARY_PATH
9097   shlibpath_overrides_runpath=yes
9098   ;;
9099
9100 nto-qnx*)
9101   version_type=linux
9102   need_lib_prefix=no
9103   need_version=no
9104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9105   soname_spec='${libname}${release}${shared_ext}$major'
9106   shlibpath_var=LD_LIBRARY_PATH
9107   shlibpath_overrides_runpath=yes
9108   ;;
9109
9110 openbsd*)
9111   version_type=sunos
9112   sys_lib_dlsearch_path_spec="/usr/lib"
9113   need_lib_prefix=no
9114   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9115   case $host_os in
9116     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9117     *)                         need_version=no  ;;
9118   esac
9119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9120   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9121   shlibpath_var=LD_LIBRARY_PATH
9122   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9123     case $host_os in
9124       openbsd2.[89] | openbsd2.[89].*)
9125         shlibpath_overrides_runpath=no
9126         ;;
9127       *)
9128         shlibpath_overrides_runpath=yes
9129         ;;
9130       esac
9131   else
9132     shlibpath_overrides_runpath=yes
9133   fi
9134   ;;
9135
9136 os2*)
9137   libname_spec='$name'
9138   shrext_cmds=".dll"
9139   need_lib_prefix=no
9140   library_names_spec='$libname${shared_ext} $libname.a'
9141   dynamic_linker='OS/2 ld.exe'
9142   shlibpath_var=LIBPATH
9143   ;;
9144
9145 osf3* | osf4* | osf5*)
9146   version_type=osf
9147   need_lib_prefix=no
9148   need_version=no
9149   soname_spec='${libname}${release}${shared_ext}$major'
9150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151   shlibpath_var=LD_LIBRARY_PATH
9152   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9153   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9154   ;;
9155
9156 solaris*)
9157   version_type=linux
9158   need_lib_prefix=no
9159   need_version=no
9160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9161   soname_spec='${libname}${release}${shared_ext}$major'
9162   shlibpath_var=LD_LIBRARY_PATH
9163   shlibpath_overrides_runpath=yes
9164   hardcode_into_libs=yes
9165   # ldd complains unless libraries are executable
9166   postinstall_cmds='chmod +x $lib'
9167   ;;
9168
9169 sunos4*)
9170   version_type=sunos
9171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9172   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9173   shlibpath_var=LD_LIBRARY_PATH
9174   shlibpath_overrides_runpath=yes
9175   if test "$with_gnu_ld" = yes; then
9176     need_lib_prefix=no
9177   fi
9178   need_version=yes
9179   ;;
9180
9181 sysv4 | sysv4.3*)
9182   version_type=linux
9183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9184   soname_spec='${libname}${release}${shared_ext}$major'
9185   shlibpath_var=LD_LIBRARY_PATH
9186   case $host_vendor in
9187     sni)
9188       shlibpath_overrides_runpath=no
9189       need_lib_prefix=no
9190       export_dynamic_flag_spec='${wl}-Blargedynsym'
9191       runpath_var=LD_RUN_PATH
9192       ;;
9193     siemens)
9194       need_lib_prefix=no
9195       ;;
9196     motorola)
9197       need_lib_prefix=no
9198       need_version=no
9199       shlibpath_overrides_runpath=no
9200       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9201       ;;
9202   esac
9203   ;;
9204
9205 sysv4*MP*)
9206   if test -d /usr/nec ;then
9207     version_type=linux
9208     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9209     soname_spec='$libname${shared_ext}.$major'
9210     shlibpath_var=LD_LIBRARY_PATH
9211   fi
9212   ;;
9213
9214 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9215   version_type=freebsd-elf
9216   need_lib_prefix=no
9217   need_version=no
9218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9219   soname_spec='${libname}${release}${shared_ext}$major'
9220   shlibpath_var=LD_LIBRARY_PATH
9221   hardcode_into_libs=yes
9222   if test "$with_gnu_ld" = yes; then
9223     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9224     shlibpath_overrides_runpath=no
9225   else
9226     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9227     shlibpath_overrides_runpath=yes
9228     case $host_os in
9229       sco3.2v5*)
9230         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9231         ;;
9232     esac
9233   fi
9234   sys_lib_dlsearch_path_spec='/usr/lib'
9235   ;;
9236
9237 uts4*)
9238   version_type=linux
9239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9240   soname_spec='${libname}${release}${shared_ext}$major'
9241   shlibpath_var=LD_LIBRARY_PATH
9242   ;;
9243
9244 *)
9245   dynamic_linker=no
9246   ;;
9247 esac
9248 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9249 echo "${ECHO_T}$dynamic_linker" >&6; }
9250 test "$dynamic_linker" = no && can_build_shared=no
9251
9252 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9253 if test "$GCC" = yes; then
9254   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9255 fi
9256
9257
9258 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9259 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9260 if test "${libltdl_cv_shlibext+set}" = set; then
9261   echo $ECHO_N "(cached) $ECHO_C" >&6
9262 else
9263
9264 module=yes
9265 eval libltdl_cv_shlibext=$shrext_cmds
9266
9267 fi
9268 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9269 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9270 if test -n "$libltdl_cv_shlibext"; then
9271
9272 cat >>confdefs.h <<_ACEOF
9273 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9274 _ACEOF
9275
9276 fi
9277
9278
9279 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9280 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9281 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9282   echo $ECHO_N "(cached) $ECHO_C" >&6
9283 else
9284   libltdl_cv_shlibpath_var="$shlibpath_var"
9285 fi
9286 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9287 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9288 if test -n "$libltdl_cv_shlibpath_var"; then
9289
9290 cat >>confdefs.h <<_ACEOF
9291 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9292 _ACEOF
9293
9294 fi
9295
9296
9297 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9298 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9299 if test "${libltdl_cv_sys_search_path+set}" = set; then
9300   echo $ECHO_N "(cached) $ECHO_C" >&6
9301 else
9302   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9303 fi
9304 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9305 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9306 if test -n "$libltdl_cv_sys_search_path"; then
9307   sys_search_path=
9308   for dir in $libltdl_cv_sys_search_path; do
9309     if test -z "$sys_search_path"; then
9310       sys_search_path="$dir"
9311     else
9312       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9313     fi
9314   done
9315
9316 cat >>confdefs.h <<_ACEOF
9317 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9318 _ACEOF
9319
9320 fi
9321
9322 { echo "$as_me:$LINENO: checking for objdir" >&5
9323 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9324 if test "${libltdl_cv_objdir+set}" = set; then
9325   echo $ECHO_N "(cached) $ECHO_C" >&6
9326 else
9327   libltdl_cv_objdir="$objdir"
9328   if test -n "$objdir"; then
9329     :
9330   else
9331     rm -f .libs 2>/dev/null
9332     mkdir .libs 2>/dev/null
9333     if test -d .libs; then
9334       libltdl_cv_objdir=.libs
9335     else
9336       # MS-DOS does not allow filenames that begin with a dot.
9337       libltdl_cv_objdir=_libs
9338     fi
9339   rmdir .libs 2>/dev/null
9340   fi
9341
9342 fi
9343 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9344 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9345
9346 cat >>confdefs.h <<_ACEOF
9347 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9348 _ACEOF
9349
9350
9351
9352
9353
9354
9355 # Check for command to grab the raw symbol name followed by C symbol from nm.
9356 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9357 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9358 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9359   echo $ECHO_N "(cached) $ECHO_C" >&6
9360 else
9361
9362 # These are sane defaults that work on at least a few old systems.
9363 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9364
9365 # Character class describing NM global symbol codes.
9366 symcode='[BCDEGRST]'
9367
9368 # Regexp to match symbols that can be accessed directly from C.
9369 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9370
9371 # Transform an extracted symbol line into a proper C declaration
9372 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9373
9374 # Transform an extracted symbol line into symbol name and symbol address
9375 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'"
9376
9377 # Define system-specific variables.
9378 case $host_os in
9379 aix*)
9380   symcode='[BCDT]'
9381   ;;
9382 cygwin* | mingw* | pw32*)
9383   symcode='[ABCDGISTW]'
9384   ;;
9385 hpux*) # Its linker distinguishes data from code symbols
9386   if test "$host_cpu" = ia64; then
9387     symcode='[ABCDEGRST]'
9388   fi
9389   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9390   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'"
9391   ;;
9392 linux*)
9393   if test "$host_cpu" = ia64; then
9394     symcode='[ABCDGIRSTW]'
9395     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9396     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'"
9397   fi
9398   ;;
9399 irix* | nonstopux*)
9400   symcode='[BCDEGRST]'
9401   ;;
9402 osf*)
9403   symcode='[BCDEGQRST]'
9404   ;;
9405 solaris*)
9406   symcode='[BDRT]'
9407   ;;
9408 sco3.2v5*)
9409   symcode='[DT]'
9410   ;;
9411 sysv4.2uw2*)
9412   symcode='[DT]'
9413   ;;
9414 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9415   symcode='[ABDT]'
9416   ;;
9417 sysv4)
9418   symcode='[DFNSTU]'
9419   ;;
9420 esac
9421
9422 # Handle CRLF in mingw tool chain
9423 opt_cr=
9424 case $build_os in
9425 mingw*)
9426   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9427   ;;
9428 esac
9429
9430 # If we're using GNU nm, then use its standard symbol codes.
9431 case `$NM -V 2>&1` in
9432 *GNU* | *'with BFD'*)
9433   symcode='[ABCDGIRSTW]' ;;
9434 esac
9435
9436 # Try without a prefix undercore, then with it.
9437 for ac_symprfx in "" "_"; do
9438
9439   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9440   symxfrm="\\1 $ac_symprfx\\2 \\2"
9441
9442   # Write the raw and C identifiers.
9443   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9444
9445   # Check to see that the pipe works correctly.
9446   pipe_works=no
9447
9448   rm -f conftest*
9449   cat > conftest.$ac_ext <<EOF
9450 #ifdef __cplusplus
9451 extern "C" {
9452 #endif
9453 char nm_test_var;
9454 void nm_test_func(){}
9455 #ifdef __cplusplus
9456 }
9457 #endif
9458 int main(){nm_test_var='a';nm_test_func();return(0);}
9459 EOF
9460
9461   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9462   (eval $ac_compile) 2>&5
9463   ac_status=$?
9464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465   (exit $ac_status); }; then
9466     # Now try to grab the symbols.
9467     nlist=conftest.nm
9468     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9469   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9470   ac_status=$?
9471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472   (exit $ac_status); } && test -s "$nlist"; then
9473       # Try sorting and uniquifying the output.
9474       if sort "$nlist" | uniq > "$nlist"T; then
9475         mv -f "$nlist"T "$nlist"
9476       else
9477         rm -f "$nlist"T
9478       fi
9479
9480       # Make sure that we snagged all the symbols we need.
9481       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9482         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9483           cat <<EOF > conftest.$ac_ext
9484 #ifdef __cplusplus
9485 extern "C" {
9486 #endif
9487
9488 EOF
9489           # Now generate the symbol file.
9490           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9491
9492           cat <<EOF >> conftest.$ac_ext
9493 #if defined (__STDC__) && __STDC__
9494 # define lt_ptr_t void *
9495 #else
9496 # define lt_ptr_t char *
9497 # define const
9498 #endif
9499
9500 /* The mapping between symbol names and symbols. */
9501 const struct {
9502   const char *name;
9503   lt_ptr_t address;
9504 }
9505 lt_preloaded_symbols[] =
9506 {
9507 EOF
9508           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9509           cat <<\EOF >> conftest.$ac_ext
9510   {0, (lt_ptr_t) 0}
9511 };
9512
9513 #ifdef __cplusplus
9514 }
9515 #endif
9516 EOF
9517           # Now try linking the two files.
9518           mv conftest.$ac_objext conftstm.$ac_objext
9519           lt_save_LIBS="$LIBS"
9520           lt_save_CFLAGS="$CFLAGS"
9521           LIBS="conftstm.$ac_objext"
9522           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9523           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9524   (eval $ac_link) 2>&5
9525   ac_status=$?
9526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9528             pipe_works=yes
9529           fi
9530           LIBS="$lt_save_LIBS"
9531           CFLAGS="$lt_save_CFLAGS"
9532         else
9533           echo "cannot find nm_test_func in $nlist" >&5
9534         fi
9535       else
9536         echo "cannot find nm_test_var in $nlist" >&5
9537       fi
9538     else
9539       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9540     fi
9541   else
9542     echo "$progname: failed program was:" >&5
9543     cat conftest.$ac_ext >&5
9544   fi
9545   rm -f conftest* conftst*
9546
9547   # Do not use the global_symbol_pipe unless it works.
9548   if test "$pipe_works" = yes; then
9549     break
9550   else
9551     lt_cv_sys_global_symbol_pipe=
9552   fi
9553 done
9554
9555 fi
9556
9557 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9558   lt_cv_sys_global_symbol_to_cdecl=
9559 fi
9560 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9561   { echo "$as_me:$LINENO: result: failed" >&5
9562 echo "${ECHO_T}failed" >&6; }
9563 else
9564   { echo "$as_me:$LINENO: result: ok" >&5
9565 echo "${ECHO_T}ok" >&6; }
9566 fi
9567
9568
9569 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9570 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9571 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9572   echo $ECHO_N "(cached) $ECHO_C" >&6
9573 else
9574   if test -n "$lt_cv_sys_global_symbol_pipe"; then
9575     libltdl_cv_preloaded_symbols=yes
9576   else
9577     libltdl_cv_preloaded_symbols=no
9578   fi
9579
9580 fi
9581 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9582 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9583 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9584
9585 cat >>confdefs.h <<\_ACEOF
9586 #define HAVE_PRELOADED_SYMBOLS 1
9587 _ACEOF
9588
9589 fi
9590
9591 LIBADD_DL=
9592
9593 ac_ext=c
9594 ac_cpp='$CPP $CPPFLAGS'
9595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9598
9599
9600 { echo "$as_me:$LINENO: checking for shl_load" >&5
9601 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9602 if test "${ac_cv_func_shl_load+set}" = set; then
9603   echo $ECHO_N "(cached) $ECHO_C" >&6
9604 else
9605   cat >conftest.$ac_ext <<_ACEOF
9606 /* confdefs.h.  */
9607 _ACEOF
9608 cat confdefs.h >>conftest.$ac_ext
9609 cat >>conftest.$ac_ext <<_ACEOF
9610 /* end confdefs.h.  */
9611 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9613 #define shl_load innocuous_shl_load
9614
9615 /* System header to define __stub macros and hopefully few prototypes,
9616     which can conflict with char shl_load (); below.
9617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9618     <limits.h> exists even on freestanding compilers.  */
9619
9620 #ifdef __STDC__
9621 # include <limits.h>
9622 #else
9623 # include <assert.h>
9624 #endif
9625
9626 #undef shl_load
9627
9628 /* Override any GCC internal prototype to avoid an error.
9629    Use char because int might match the return type of a GCC
9630    builtin and then its argument prototype would still apply.  */
9631 #ifdef __cplusplus
9632 extern "C"
9633 #endif
9634 char shl_load ();
9635 /* The GNU C library defines this for functions which it implements
9636     to always fail with ENOSYS.  Some functions are actually named
9637     something starting with __ and the normal name is an alias.  */
9638 #if defined __stub_shl_load || defined __stub___shl_load
9639 choke me
9640 #endif
9641
9642 int
9643 main ()
9644 {
9645 return shl_load ();
9646   ;
9647   return 0;
9648 }
9649 _ACEOF
9650 rm -f conftest.$ac_objext conftest$ac_exeext
9651 if { (ac_try="$ac_link"
9652 case "(($ac_try" in
9653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654   *) ac_try_echo=$ac_try;;
9655 esac
9656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9657   (eval "$ac_link") 2>conftest.er1
9658   ac_status=$?
9659   grep -v '^ *+' conftest.er1 >conftest.err
9660   rm -f conftest.er1
9661   cat conftest.err >&5
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); } &&
9664          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9665   { (case "(($ac_try" in
9666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667   *) ac_try_echo=$ac_try;;
9668 esac
9669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670   (eval "$ac_try") 2>&5
9671   ac_status=$?
9672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673   (exit $ac_status); }; } &&
9674          { ac_try='test -s conftest$ac_exeext'
9675   { (case "(($ac_try" in
9676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677   *) ac_try_echo=$ac_try;;
9678 esac
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680   (eval "$ac_try") 2>&5
9681   ac_status=$?
9682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683   (exit $ac_status); }; }; then
9684   ac_cv_func_shl_load=yes
9685 else
9686   echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9688
9689         ac_cv_func_shl_load=no
9690 fi
9691
9692 rm -f core conftest.err conftest.$ac_objext \
9693       conftest$ac_exeext conftest.$ac_ext
9694 fi
9695 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9696 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9697 if test $ac_cv_func_shl_load = yes; then
9698
9699 cat >>confdefs.h <<\_ACEOF
9700 #define HAVE_SHL_LOAD 1
9701 _ACEOF
9702
9703 else
9704   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9705 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9706 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9707   echo $ECHO_N "(cached) $ECHO_C" >&6
9708 else
9709   ac_check_lib_save_LIBS=$LIBS
9710 LIBS="-ldld  $LIBS"
9711 cat >conftest.$ac_ext <<_ACEOF
9712 /* confdefs.h.  */
9713 _ACEOF
9714 cat confdefs.h >>conftest.$ac_ext
9715 cat >>conftest.$ac_ext <<_ACEOF
9716 /* end confdefs.h.  */
9717
9718 /* Override any GCC internal prototype to avoid an error.
9719    Use char because int might match the return type of a GCC
9720    builtin and then its argument prototype would still apply.  */
9721 #ifdef __cplusplus
9722 extern "C"
9723 #endif
9724 char shl_load ();
9725 int
9726 main ()
9727 {
9728 return shl_load ();
9729   ;
9730   return 0;
9731 }
9732 _ACEOF
9733 rm -f conftest.$ac_objext conftest$ac_exeext
9734 if { (ac_try="$ac_link"
9735 case "(($ac_try" in
9736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737   *) ac_try_echo=$ac_try;;
9738 esac
9739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740   (eval "$ac_link") 2>conftest.er1
9741   ac_status=$?
9742   grep -v '^ *+' conftest.er1 >conftest.err
9743   rm -f conftest.er1
9744   cat conftest.err >&5
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   (exit $ac_status); } &&
9747          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9748   { (case "(($ac_try" in
9749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750   *) ac_try_echo=$ac_try;;
9751 esac
9752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753   (eval "$ac_try") 2>&5
9754   ac_status=$?
9755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756   (exit $ac_status); }; } &&
9757          { ac_try='test -s conftest$ac_exeext'
9758   { (case "(($ac_try" in
9759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760   *) ac_try_echo=$ac_try;;
9761 esac
9762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763   (eval "$ac_try") 2>&5
9764   ac_status=$?
9765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766   (exit $ac_status); }; }; then
9767   ac_cv_lib_dld_shl_load=yes
9768 else
9769   echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9771
9772         ac_cv_lib_dld_shl_load=no
9773 fi
9774
9775 rm -f core conftest.err conftest.$ac_objext \
9776       conftest$ac_exeext conftest.$ac_ext
9777 LIBS=$ac_check_lib_save_LIBS
9778 fi
9779 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9780 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9781 if test $ac_cv_lib_dld_shl_load = yes; then
9782
9783 cat >>confdefs.h <<\_ACEOF
9784 #define HAVE_SHL_LOAD 1
9785 _ACEOF
9786
9787         LIBADD_DL="$LIBADD_DL -ldld"
9788 else
9789   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9790 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9791 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9792   echo $ECHO_N "(cached) $ECHO_C" >&6
9793 else
9794   ac_check_lib_save_LIBS=$LIBS
9795 LIBS="-ldl  $LIBS"
9796 cat >conftest.$ac_ext <<_ACEOF
9797 /* confdefs.h.  */
9798 _ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h.  */
9802
9803 /* Override any GCC internal prototype to avoid an error.
9804    Use char because int might match the return type of a GCC
9805    builtin and then its argument prototype would still apply.  */
9806 #ifdef __cplusplus
9807 extern "C"
9808 #endif
9809 char dlopen ();
9810 int
9811 main ()
9812 {
9813 return dlopen ();
9814   ;
9815   return 0;
9816 }
9817 _ACEOF
9818 rm -f conftest.$ac_objext conftest$ac_exeext
9819 if { (ac_try="$ac_link"
9820 case "(($ac_try" in
9821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822   *) ac_try_echo=$ac_try;;
9823 esac
9824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825   (eval "$ac_link") 2>conftest.er1
9826   ac_status=$?
9827   grep -v '^ *+' conftest.er1 >conftest.err
9828   rm -f conftest.er1
9829   cat conftest.err >&5
9830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831   (exit $ac_status); } &&
9832          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9833   { (case "(($ac_try" in
9834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835   *) ac_try_echo=$ac_try;;
9836 esac
9837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838   (eval "$ac_try") 2>&5
9839   ac_status=$?
9840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841   (exit $ac_status); }; } &&
9842          { ac_try='test -s conftest$ac_exeext'
9843   { (case "(($ac_try" in
9844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845   *) ac_try_echo=$ac_try;;
9846 esac
9847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848   (eval "$ac_try") 2>&5
9849   ac_status=$?
9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851   (exit $ac_status); }; }; then
9852   ac_cv_lib_dl_dlopen=yes
9853 else
9854   echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9856
9857         ac_cv_lib_dl_dlopen=no
9858 fi
9859
9860 rm -f core conftest.err conftest.$ac_objext \
9861       conftest$ac_exeext conftest.$ac_ext
9862 LIBS=$ac_check_lib_save_LIBS
9863 fi
9864 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9865 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9866 if test $ac_cv_lib_dl_dlopen = yes; then
9867
9868 cat >>confdefs.h <<\_ACEOF
9869 #define HAVE_LIBDL 1
9870 _ACEOF
9871
9872                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9873 else
9874   cat >conftest.$ac_ext <<_ACEOF
9875 /* confdefs.h.  */
9876 _ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h.  */
9880 #if HAVE_DLFCN_H
9881 #  include <dlfcn.h>
9882 #endif
9883
9884 int
9885 main ()
9886 {
9887 dlopen(0, 0);
9888   ;
9889   return 0;
9890 }
9891 _ACEOF
9892 rm -f conftest.$ac_objext conftest$ac_exeext
9893 if { (ac_try="$ac_link"
9894 case "(($ac_try" in
9895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896   *) ac_try_echo=$ac_try;;
9897 esac
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899   (eval "$ac_link") 2>conftest.er1
9900   ac_status=$?
9901   grep -v '^ *+' conftest.er1 >conftest.err
9902   rm -f conftest.er1
9903   cat conftest.err >&5
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); } &&
9906          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9907   { (case "(($ac_try" in
9908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909   *) ac_try_echo=$ac_try;;
9910 esac
9911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912   (eval "$ac_try") 2>&5
9913   ac_status=$?
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); }; } &&
9916          { ac_try='test -s conftest$ac_exeext'
9917   { (case "(($ac_try" in
9918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919   *) ac_try_echo=$ac_try;;
9920 esac
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922   (eval "$ac_try") 2>&5
9923   ac_status=$?
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); }; }; then
9926
9927 cat >>confdefs.h <<\_ACEOF
9928 #define HAVE_LIBDL 1
9929 _ACEOF
9930  libltdl_cv_func_dlopen="yes"
9931 else
9932   echo "$as_me: failed program was:" >&5
9933 sed 's/^/| /' conftest.$ac_ext >&5
9934
9935         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9936 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9937 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9938   echo $ECHO_N "(cached) $ECHO_C" >&6
9939 else
9940   ac_check_lib_save_LIBS=$LIBS
9941 LIBS="-lsvld  $LIBS"
9942 cat >conftest.$ac_ext <<_ACEOF
9943 /* confdefs.h.  */
9944 _ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h.  */
9948
9949 /* Override any GCC internal prototype to avoid an error.
9950    Use char because int might match the return type of a GCC
9951    builtin and then its argument prototype would still apply.  */
9952 #ifdef __cplusplus
9953 extern "C"
9954 #endif
9955 char dlopen ();
9956 int
9957 main ()
9958 {
9959 return dlopen ();
9960   ;
9961   return 0;
9962 }
9963 _ACEOF
9964 rm -f conftest.$ac_objext conftest$ac_exeext
9965 if { (ac_try="$ac_link"
9966 case "(($ac_try" in
9967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968   *) ac_try_echo=$ac_try;;
9969 esac
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971   (eval "$ac_link") 2>conftest.er1
9972   ac_status=$?
9973   grep -v '^ *+' conftest.er1 >conftest.err
9974   rm -f conftest.er1
9975   cat conftest.err >&5
9976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977   (exit $ac_status); } &&
9978          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9979   { (case "(($ac_try" in
9980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981   *) ac_try_echo=$ac_try;;
9982 esac
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984   (eval "$ac_try") 2>&5
9985   ac_status=$?
9986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987   (exit $ac_status); }; } &&
9988          { ac_try='test -s conftest$ac_exeext'
9989   { (case "(($ac_try" in
9990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991   *) ac_try_echo=$ac_try;;
9992 esac
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994   (eval "$ac_try") 2>&5
9995   ac_status=$?
9996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997   (exit $ac_status); }; }; then
9998   ac_cv_lib_svld_dlopen=yes
9999 else
10000   echo "$as_me: failed program was:" >&5
10001 sed 's/^/| /' conftest.$ac_ext >&5
10002
10003         ac_cv_lib_svld_dlopen=no
10004 fi
10005
10006 rm -f core conftest.err conftest.$ac_objext \
10007       conftest$ac_exeext conftest.$ac_ext
10008 LIBS=$ac_check_lib_save_LIBS
10009 fi
10010 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10011 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10012 if test $ac_cv_lib_svld_dlopen = yes; then
10013
10014 cat >>confdefs.h <<\_ACEOF
10015 #define HAVE_LIBDL 1
10016 _ACEOF
10017
10018                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10019 else
10020   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10021 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10022 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10023   echo $ECHO_N "(cached) $ECHO_C" >&6
10024 else
10025   ac_check_lib_save_LIBS=$LIBS
10026 LIBS="-ldld  $LIBS"
10027 cat >conftest.$ac_ext <<_ACEOF
10028 /* confdefs.h.  */
10029 _ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h.  */
10033
10034 /* Override any GCC internal prototype to avoid an error.
10035    Use char because int might match the return type of a GCC
10036    builtin and then its argument prototype would still apply.  */
10037 #ifdef __cplusplus
10038 extern "C"
10039 #endif
10040 char dld_link ();
10041 int
10042 main ()
10043 {
10044 return dld_link ();
10045   ;
10046   return 0;
10047 }
10048 _ACEOF
10049 rm -f conftest.$ac_objext conftest$ac_exeext
10050 if { (ac_try="$ac_link"
10051 case "(($ac_try" in
10052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053   *) ac_try_echo=$ac_try;;
10054 esac
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056   (eval "$ac_link") 2>conftest.er1
10057   ac_status=$?
10058   grep -v '^ *+' conftest.er1 >conftest.err
10059   rm -f conftest.er1
10060   cat conftest.err >&5
10061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062   (exit $ac_status); } &&
10063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10064   { (case "(($ac_try" in
10065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066   *) ac_try_echo=$ac_try;;
10067 esac
10068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069   (eval "$ac_try") 2>&5
10070   ac_status=$?
10071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072   (exit $ac_status); }; } &&
10073          { ac_try='test -s conftest$ac_exeext'
10074   { (case "(($ac_try" in
10075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076   *) ac_try_echo=$ac_try;;
10077 esac
10078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10079   (eval "$ac_try") 2>&5
10080   ac_status=$?
10081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082   (exit $ac_status); }; }; then
10083   ac_cv_lib_dld_dld_link=yes
10084 else
10085   echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10087
10088         ac_cv_lib_dld_dld_link=no
10089 fi
10090
10091 rm -f core conftest.err conftest.$ac_objext \
10092       conftest$ac_exeext conftest.$ac_ext
10093 LIBS=$ac_check_lib_save_LIBS
10094 fi
10095 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10096 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10097 if test $ac_cv_lib_dld_dld_link = yes; then
10098
10099 cat >>confdefs.h <<\_ACEOF
10100 #define HAVE_DLD 1
10101 _ACEOF
10102
10103                 LIBADD_DL="$LIBADD_DL -ldld"
10104 else
10105   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10106 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10107 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10108   echo $ECHO_N "(cached) $ECHO_C" >&6
10109 else
10110   cat >conftest.$ac_ext <<_ACEOF
10111 /* confdefs.h.  */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h.  */
10116 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10117    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10118 #define _dyld_func_lookup innocuous__dyld_func_lookup
10119
10120 /* System header to define __stub macros and hopefully few prototypes,
10121     which can conflict with char _dyld_func_lookup (); below.
10122     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10123     <limits.h> exists even on freestanding compilers.  */
10124
10125 #ifdef __STDC__
10126 # include <limits.h>
10127 #else
10128 # include <assert.h>
10129 #endif
10130
10131 #undef _dyld_func_lookup
10132
10133 /* Override any GCC internal prototype to avoid an error.
10134    Use char because int might match the return type of a GCC
10135    builtin and then its argument prototype would still apply.  */
10136 #ifdef __cplusplus
10137 extern "C"
10138 #endif
10139 char _dyld_func_lookup ();
10140 /* The GNU C library defines this for functions which it implements
10141     to always fail with ENOSYS.  Some functions are actually named
10142     something starting with __ and the normal name is an alias.  */
10143 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10144 choke me
10145 #endif
10146
10147 int
10148 main ()
10149 {
10150 return _dyld_func_lookup ();
10151   ;
10152   return 0;
10153 }
10154 _ACEOF
10155 rm -f conftest.$ac_objext conftest$ac_exeext
10156 if { (ac_try="$ac_link"
10157 case "(($ac_try" in
10158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159   *) ac_try_echo=$ac_try;;
10160 esac
10161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162   (eval "$ac_link") 2>conftest.er1
10163   ac_status=$?
10164   grep -v '^ *+' conftest.er1 >conftest.err
10165   rm -f conftest.er1
10166   cat conftest.err >&5
10167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168   (exit $ac_status); } &&
10169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10170   { (case "(($ac_try" in
10171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172   *) ac_try_echo=$ac_try;;
10173 esac
10174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175   (eval "$ac_try") 2>&5
10176   ac_status=$?
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   (exit $ac_status); }; } &&
10179          { ac_try='test -s conftest$ac_exeext'
10180   { (case "(($ac_try" in
10181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182   *) ac_try_echo=$ac_try;;
10183 esac
10184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185   (eval "$ac_try") 2>&5
10186   ac_status=$?
10187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188   (exit $ac_status); }; }; then
10189   ac_cv_func__dyld_func_lookup=yes
10190 else
10191   echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10193
10194         ac_cv_func__dyld_func_lookup=no
10195 fi
10196
10197 rm -f core conftest.err conftest.$ac_objext \
10198       conftest$ac_exeext conftest.$ac_ext
10199 fi
10200 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10201 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10202 if test $ac_cv_func__dyld_func_lookup = yes; then
10203
10204 cat >>confdefs.h <<\_ACEOF
10205 #define HAVE_DYLD 1
10206 _ACEOF
10207
10208 fi
10209
10210
10211 fi
10212
10213
10214 fi
10215
10216
10217 fi
10218
10219 rm -f core conftest.err conftest.$ac_objext \
10220       conftest$ac_exeext conftest.$ac_ext
10221
10222 fi
10223
10224
10225 fi
10226
10227
10228 fi
10229
10230
10231 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10232 then
10233   lt_save_LIBS="$LIBS"
10234   LIBS="$LIBS $LIBADD_DL"
10235
10236 for ac_func in dlerror
10237 do
10238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10239 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10241 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10242   echo $ECHO_N "(cached) $ECHO_C" >&6
10243 else
10244   cat >conftest.$ac_ext <<_ACEOF
10245 /* confdefs.h.  */
10246 _ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h.  */
10250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10251    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10252 #define $ac_func innocuous_$ac_func
10253
10254 /* System header to define __stub macros and hopefully few prototypes,
10255     which can conflict with char $ac_func (); below.
10256     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10257     <limits.h> exists even on freestanding compilers.  */
10258
10259 #ifdef __STDC__
10260 # include <limits.h>
10261 #else
10262 # include <assert.h>
10263 #endif
10264
10265 #undef $ac_func
10266
10267 /* Override any GCC internal prototype to avoid an error.
10268    Use char because int might match the return type of a GCC
10269    builtin and then its argument prototype would still apply.  */
10270 #ifdef __cplusplus
10271 extern "C"
10272 #endif
10273 char $ac_func ();
10274 /* The GNU C library defines this for functions which it implements
10275     to always fail with ENOSYS.  Some functions are actually named
10276     something starting with __ and the normal name is an alias.  */
10277 #if defined __stub_$ac_func || defined __stub___$ac_func
10278 choke me
10279 #endif
10280
10281 int
10282 main ()
10283 {
10284 return $ac_func ();
10285   ;
10286   return 0;
10287 }
10288 _ACEOF
10289 rm -f conftest.$ac_objext conftest$ac_exeext
10290 if { (ac_try="$ac_link"
10291 case "(($ac_try" in
10292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293   *) ac_try_echo=$ac_try;;
10294 esac
10295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296   (eval "$ac_link") 2>conftest.er1
10297   ac_status=$?
10298   grep -v '^ *+' conftest.er1 >conftest.err
10299   rm -f conftest.er1
10300   cat conftest.err >&5
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); } &&
10303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10304   { (case "(($ac_try" in
10305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10306   *) ac_try_echo=$ac_try;;
10307 esac
10308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10309   (eval "$ac_try") 2>&5
10310   ac_status=$?
10311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312   (exit $ac_status); }; } &&
10313          { ac_try='test -s conftest$ac_exeext'
10314   { (case "(($ac_try" in
10315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316   *) ac_try_echo=$ac_try;;
10317 esac
10318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10319   (eval "$ac_try") 2>&5
10320   ac_status=$?
10321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322   (exit $ac_status); }; }; then
10323   eval "$as_ac_var=yes"
10324 else
10325   echo "$as_me: failed program was:" >&5
10326 sed 's/^/| /' conftest.$ac_ext >&5
10327
10328         eval "$as_ac_var=no"
10329 fi
10330
10331 rm -f core conftest.err conftest.$ac_objext \
10332       conftest$ac_exeext conftest.$ac_ext
10333 fi
10334 ac_res=`eval echo '${'$as_ac_var'}'`
10335                { echo "$as_me:$LINENO: result: $ac_res" >&5
10336 echo "${ECHO_T}$ac_res" >&6; }
10337 if test `eval echo '${'$as_ac_var'}'` = yes; then
10338   cat >>confdefs.h <<_ACEOF
10339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10340 _ACEOF
10341
10342 fi
10343 done
10344
10345   LIBS="$lt_save_LIBS"
10346 fi
10347 ac_ext=c
10348 ac_cpp='$CPP $CPPFLAGS'
10349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10352
10353
10354
10355 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10356 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10357 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10358   echo $ECHO_N "(cached) $ECHO_C" >&6
10359 else
10360   ac_cv_sys_symbol_underscore=no
10361   cat > conftest.$ac_ext <<EOF
10362 void nm_test_func(){}
10363 int main(){nm_test_func;return 0;}
10364 EOF
10365   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10366   (eval $ac_compile) 2>&5
10367   ac_status=$?
10368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369   (exit $ac_status); }; then
10370     # Now try to grab the symbols.
10371     ac_nlist=conftest.nm
10372     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10373   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10374   ac_status=$?
10375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376   (exit $ac_status); } && test -s "$ac_nlist"; then
10377       # See whether the symbols have a leading underscore.
10378       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10379         ac_cv_sys_symbol_underscore=yes
10380       else
10381         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10382           :
10383         else
10384           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10385         fi
10386       fi
10387     else
10388       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10389     fi
10390   else
10391     echo "configure: failed program was:" >&5
10392     cat conftest.c >&5
10393   fi
10394   rm -rf conftest*
10395
10396 fi
10397 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10398 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10399
10400
10401 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10402   if test x"$libltdl_cv_func_dlopen" = xyes ||
10403      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10404         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10405 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10406 if test "${libltdl_cv_need_uscore+set}" = set; then
10407   echo $ECHO_N "(cached) $ECHO_C" >&6
10408 else
10409   libltdl_cv_need_uscore=unknown
10410           save_LIBS="$LIBS"
10411           LIBS="$LIBS $LIBADD_DL"
10412           if test "$cross_compiling" = yes; then :
10413   libltdl_cv_need_uscore=cross
10414 else
10415   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10416   lt_status=$lt_dlunknown
10417   cat > conftest.$ac_ext <<EOF
10418 #line 10423 "configure"
10419 #include "confdefs.h"
10420
10421 #if HAVE_DLFCN_H
10422 #include <dlfcn.h>
10423 #endif
10424
10425 #include <stdio.h>
10426
10427 #ifdef RTLD_GLOBAL
10428 #  define LT_DLGLOBAL           RTLD_GLOBAL
10429 #else
10430 #  ifdef DL_GLOBAL
10431 #    define LT_DLGLOBAL         DL_GLOBAL
10432 #  else
10433 #    define LT_DLGLOBAL         0
10434 #  endif
10435 #endif
10436
10437 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10438    find out it does not work in some platform. */
10439 #ifndef LT_DLLAZY_OR_NOW
10440 #  ifdef RTLD_LAZY
10441 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10442 #  else
10443 #    ifdef DL_LAZY
10444 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10445 #    else
10446 #      ifdef RTLD_NOW
10447 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10448 #      else
10449 #        ifdef DL_NOW
10450 #          define LT_DLLAZY_OR_NOW      DL_NOW
10451 #        else
10452 #          define LT_DLLAZY_OR_NOW      0
10453 #        endif
10454 #      endif
10455 #    endif
10456 #  endif
10457 #endif
10458
10459 #ifdef __cplusplus
10460 extern "C" void exit (int);
10461 #endif
10462
10463 void fnord() { int i=42;}
10464 int main ()
10465 {
10466   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10467   int status = $lt_dlunknown;
10468
10469   if (self)
10470     {
10471       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10472       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10473       /* dlclose (self); */
10474     }
10475   else
10476     puts (dlerror ());
10477
10478     exit (status);
10479 }
10480 EOF
10481   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10482   (eval $ac_link) 2>&5
10483   ac_status=$?
10484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10486     (./conftest; exit; ) >&5 2>/dev/null
10487     lt_status=$?
10488     case x$lt_status in
10489       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10490       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10491       x$lt_dlunknown|x*)  ;;
10492     esac
10493   else :
10494     # compilation failed
10495
10496   fi
10497 fi
10498 rm -fr conftest*
10499
10500           LIBS="$save_LIBS"
10501
10502 fi
10503 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10504 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10505   fi
10506 fi
10507
10508 if test x"$libltdl_cv_need_uscore" = xyes; then
10509
10510 cat >>confdefs.h <<\_ACEOF
10511 #define NEED_USCORE 1
10512 _ACEOF
10513
10514 fi
10515
10516
10517 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10518 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10519 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10520   echo $ECHO_N "(cached) $ECHO_C" >&6
10521 else
10522   # PORTME does your system automatically load deplibs for dlopen?
10523   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10524   # For now, we just catch OSes we know something about -- in the
10525   # future, we'll try test this programmatically.
10526   libltdl_cv_sys_dlopen_deplibs=unknown
10527   case "$host_os" in
10528   aix3*|aix4.1.*|aix4.2.*)
10529     # Unknown whether this is true for these versions of AIX, but
10530     # we want this `case' here to explicitly catch those versions.
10531     libltdl_cv_sys_dlopen_deplibs=unknown
10532     ;;
10533   aix[45]*)
10534     libltdl_cv_sys_dlopen_deplibs=yes
10535     ;;
10536   darwin*)
10537     # Assuming the user has installed a libdl from somewhere, this is true
10538     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10539     libltdl_cv_sys_dlopen_deplibs=yes
10540     ;;
10541   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10542     # GNU and its variants, using gnu ld.so (Glibc)
10543     libltdl_cv_sys_dlopen_deplibs=yes
10544     ;;
10545   hpux10*|hpux11*)
10546     libltdl_cv_sys_dlopen_deplibs=yes
10547     ;;
10548   interix*)
10549     libltdl_cv_sys_dlopen_deplibs=yes
10550     ;;
10551   irix[12345]*|irix6.[01]*)
10552     # Catch all versions of IRIX before 6.2, and indicate that we don't
10553     # know how it worked for any of those versions.
10554     libltdl_cv_sys_dlopen_deplibs=unknown
10555     ;;
10556   irix*)
10557     # The case above catches anything before 6.2, and it's known that
10558     # at 6.2 and later dlopen does load deplibs.
10559     libltdl_cv_sys_dlopen_deplibs=yes
10560     ;;
10561   netbsd*)
10562     libltdl_cv_sys_dlopen_deplibs=yes
10563     ;;
10564   openbsd*)
10565     libltdl_cv_sys_dlopen_deplibs=yes
10566     ;;
10567   osf[1234]*)
10568     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10569     # it did *not* use an RPATH in a shared library to find objects the
10570     # library depends on, so we explicitly say `no'.
10571     libltdl_cv_sys_dlopen_deplibs=no
10572     ;;
10573   osf5.0|osf5.0a|osf5.1)
10574     # dlopen *does* load deplibs and with the right loader patch applied
10575     # it even uses RPATH in a shared library to search for shared objects
10576     # that the library depends on, but there's no easy way to know if that
10577     # patch is installed.  Since this is the case, all we can really
10578     # say is unknown -- it depends on the patch being installed.  If
10579     # it is, this changes to `yes'.  Without it, it would be `no'.
10580     libltdl_cv_sys_dlopen_deplibs=unknown
10581     ;;
10582   osf*)
10583     # the two cases above should catch all versions of osf <= 5.1.  Read
10584     # the comments above for what we know about them.
10585     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10586     # is used to find them so we can finally say `yes'.
10587     libltdl_cv_sys_dlopen_deplibs=yes
10588     ;;
10589   solaris*)
10590     libltdl_cv_sys_dlopen_deplibs=yes
10591     ;;
10592   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10593     libltdl_cv_sys_dlopen_deplibs=yes
10594     ;;
10595   esac
10596
10597 fi
10598 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10599 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10600 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10601
10602 cat >>confdefs.h <<\_ACEOF
10603 #define LTDL_DLOPEN_DEPLIBS 1
10604 _ACEOF
10605
10606 fi
10607
10608
10609 for ac_header in argz.h
10610 do
10611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10613   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10616   echo $ECHO_N "(cached) $ECHO_C" >&6
10617 fi
10618 ac_res=`eval echo '${'$as_ac_Header'}'`
10619                { echo "$as_me:$LINENO: result: $ac_res" >&5
10620 echo "${ECHO_T}$ac_res" >&6; }
10621 else
10622   # Is the header compilable?
10623 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10625 cat >conftest.$ac_ext <<_ACEOF
10626 /* confdefs.h.  */
10627 _ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h.  */
10631 $ac_includes_default
10632 #include <$ac_header>
10633 _ACEOF
10634 rm -f conftest.$ac_objext
10635 if { (ac_try="$ac_compile"
10636 case "(($ac_try" in
10637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10638   *) ac_try_echo=$ac_try;;
10639 esac
10640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10641   (eval "$ac_compile") 2>conftest.er1
10642   ac_status=$?
10643   grep -v '^ *+' conftest.er1 >conftest.err
10644   rm -f conftest.er1
10645   cat conftest.err >&5
10646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647   (exit $ac_status); } &&
10648          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10649   { (case "(($ac_try" in
10650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651   *) ac_try_echo=$ac_try;;
10652 esac
10653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654   (eval "$ac_try") 2>&5
10655   ac_status=$?
10656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657   (exit $ac_status); }; } &&
10658          { ac_try='test -s conftest.$ac_objext'
10659   { (case "(($ac_try" in
10660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10661   *) ac_try_echo=$ac_try;;
10662 esac
10663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10664   (eval "$ac_try") 2>&5
10665   ac_status=$?
10666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667   (exit $ac_status); }; }; then
10668   ac_header_compiler=yes
10669 else
10670   echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10672
10673         ac_header_compiler=no
10674 fi
10675
10676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10677 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10678 echo "${ECHO_T}$ac_header_compiler" >&6; }
10679
10680 # Is the header present?
10681 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10683 cat >conftest.$ac_ext <<_ACEOF
10684 /* confdefs.h.  */
10685 _ACEOF
10686 cat confdefs.h >>conftest.$ac_ext
10687 cat >>conftest.$ac_ext <<_ACEOF
10688 /* end confdefs.h.  */
10689 #include <$ac_header>
10690 _ACEOF
10691 if { (ac_try="$ac_cpp conftest.$ac_ext"
10692 case "(($ac_try" in
10693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694   *) ac_try_echo=$ac_try;;
10695 esac
10696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10698   ac_status=$?
10699   grep -v '^ *+' conftest.er1 >conftest.err
10700   rm -f conftest.er1
10701   cat conftest.err >&5
10702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703   (exit $ac_status); } >/dev/null; then
10704   if test -s conftest.err; then
10705     ac_cpp_err=$ac_c_preproc_warn_flag
10706     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10707   else
10708     ac_cpp_err=
10709   fi
10710 else
10711   ac_cpp_err=yes
10712 fi
10713 if test -z "$ac_cpp_err"; then
10714   ac_header_preproc=yes
10715 else
10716   echo "$as_me: failed program was:" >&5
10717 sed 's/^/| /' conftest.$ac_ext >&5
10718
10719   ac_header_preproc=no
10720 fi
10721
10722 rm -f conftest.err conftest.$ac_ext
10723 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10724 echo "${ECHO_T}$ac_header_preproc" >&6; }
10725
10726 # So?  What about this header?
10727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10728   yes:no: )
10729     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10731     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10733     ac_header_preproc=yes
10734     ;;
10735   no:yes:* )
10736     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10738     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10739 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10740     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10742     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10743 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10744     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10746     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10748     ( cat <<\_ASBOX
10749 ## ------------------------------ ##
10750 ## Report this to bugs@yourdomain ##
10751 ## ------------------------------ ##
10752 _ASBOX
10753      ) | sed "s/^/$as_me: WARNING:     /" >&2
10754     ;;
10755 esac
10756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10759   echo $ECHO_N "(cached) $ECHO_C" >&6
10760 else
10761   eval "$as_ac_Header=\$ac_header_preproc"
10762 fi
10763 ac_res=`eval echo '${'$as_ac_Header'}'`
10764                { echo "$as_me:$LINENO: result: $ac_res" >&5
10765 echo "${ECHO_T}$ac_res" >&6; }
10766
10767 fi
10768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10769   cat >>confdefs.h <<_ACEOF
10770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10771 _ACEOF
10772
10773 fi
10774
10775 done
10776
10777
10778 { echo "$as_me:$LINENO: checking for error_t" >&5
10779 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10780 if test "${ac_cv_type_error_t+set}" = set; then
10781   echo $ECHO_N "(cached) $ECHO_C" >&6
10782 else
10783   cat >conftest.$ac_ext <<_ACEOF
10784 /* confdefs.h.  */
10785 _ACEOF
10786 cat confdefs.h >>conftest.$ac_ext
10787 cat >>conftest.$ac_ext <<_ACEOF
10788 /* end confdefs.h.  */
10789 #if HAVE_ARGZ_H
10790 #  include <argz.h>
10791 #endif
10792
10793 typedef error_t ac__type_new_;
10794 int
10795 main ()
10796 {
10797 if ((ac__type_new_ *) 0)
10798   return 0;
10799 if (sizeof (ac__type_new_))
10800   return 0;
10801   ;
10802   return 0;
10803 }
10804 _ACEOF
10805 rm -f conftest.$ac_objext
10806 if { (ac_try="$ac_compile"
10807 case "(($ac_try" in
10808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809   *) ac_try_echo=$ac_try;;
10810 esac
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812   (eval "$ac_compile") 2>conftest.er1
10813   ac_status=$?
10814   grep -v '^ *+' conftest.er1 >conftest.err
10815   rm -f conftest.er1
10816   cat conftest.err >&5
10817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818   (exit $ac_status); } &&
10819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10820   { (case "(($ac_try" in
10821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822   *) ac_try_echo=$ac_try;;
10823 esac
10824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10825   (eval "$ac_try") 2>&5
10826   ac_status=$?
10827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828   (exit $ac_status); }; } &&
10829          { ac_try='test -s conftest.$ac_objext'
10830   { (case "(($ac_try" in
10831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832   *) ac_try_echo=$ac_try;;
10833 esac
10834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10835   (eval "$ac_try") 2>&5
10836   ac_status=$?
10837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838   (exit $ac_status); }; }; then
10839   ac_cv_type_error_t=yes
10840 else
10841   echo "$as_me: failed program was:" >&5
10842 sed 's/^/| /' conftest.$ac_ext >&5
10843
10844         ac_cv_type_error_t=no
10845 fi
10846
10847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10848 fi
10849 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10850 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10851 if test $ac_cv_type_error_t = yes; then
10852
10853 cat >>confdefs.h <<_ACEOF
10854 #define HAVE_ERROR_T 1
10855 _ACEOF
10856
10857
10858 else
10859
10860 cat >>confdefs.h <<\_ACEOF
10861 #define error_t int
10862 _ACEOF
10863
10864 fi
10865
10866
10867
10868
10869
10870
10871
10872 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10873 do
10874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10875 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10878   echo $ECHO_N "(cached) $ECHO_C" >&6
10879 else
10880   cat >conftest.$ac_ext <<_ACEOF
10881 /* confdefs.h.  */
10882 _ACEOF
10883 cat confdefs.h >>conftest.$ac_ext
10884 cat >>conftest.$ac_ext <<_ACEOF
10885 /* end confdefs.h.  */
10886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10887    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10888 #define $ac_func innocuous_$ac_func
10889
10890 /* System header to define __stub macros and hopefully few prototypes,
10891     which can conflict with char $ac_func (); below.
10892     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10893     <limits.h> exists even on freestanding compilers.  */
10894
10895 #ifdef __STDC__
10896 # include <limits.h>
10897 #else
10898 # include <assert.h>
10899 #endif
10900
10901 #undef $ac_func
10902
10903 /* Override any GCC internal prototype to avoid an error.
10904    Use char because int might match the return type of a GCC
10905    builtin and then its argument prototype would still apply.  */
10906 #ifdef __cplusplus
10907 extern "C"
10908 #endif
10909 char $ac_func ();
10910 /* The GNU C library defines this for functions which it implements
10911     to always fail with ENOSYS.  Some functions are actually named
10912     something starting with __ and the normal name is an alias.  */
10913 #if defined __stub_$ac_func || defined __stub___$ac_func
10914 choke me
10915 #endif
10916
10917 int
10918 main ()
10919 {
10920 return $ac_func ();
10921   ;
10922   return 0;
10923 }
10924 _ACEOF
10925 rm -f conftest.$ac_objext conftest$ac_exeext
10926 if { (ac_try="$ac_link"
10927 case "(($ac_try" in
10928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929   *) ac_try_echo=$ac_try;;
10930 esac
10931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932   (eval "$ac_link") 2>conftest.er1
10933   ac_status=$?
10934   grep -v '^ *+' conftest.er1 >conftest.err
10935   rm -f conftest.er1
10936   cat conftest.err >&5
10937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938   (exit $ac_status); } &&
10939          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10940   { (case "(($ac_try" in
10941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10942   *) ac_try_echo=$ac_try;;
10943 esac
10944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10945   (eval "$ac_try") 2>&5
10946   ac_status=$?
10947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948   (exit $ac_status); }; } &&
10949          { ac_try='test -s conftest$ac_exeext'
10950   { (case "(($ac_try" in
10951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952   *) ac_try_echo=$ac_try;;
10953 esac
10954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955   (eval "$ac_try") 2>&5
10956   ac_status=$?
10957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958   (exit $ac_status); }; }; then
10959   eval "$as_ac_var=yes"
10960 else
10961   echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10963
10964         eval "$as_ac_var=no"
10965 fi
10966
10967 rm -f core conftest.err conftest.$ac_objext \
10968       conftest$ac_exeext conftest.$ac_ext
10969 fi
10970 ac_res=`eval echo '${'$as_ac_var'}'`
10971                { echo "$as_me:$LINENO: result: $ac_res" >&5
10972 echo "${ECHO_T}$ac_res" >&6; }
10973 if test `eval echo '${'$as_ac_var'}'` = yes; then
10974   cat >>confdefs.h <<_ACEOF
10975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10976 _ACEOF
10977
10978 fi
10979 done
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11009                   stdio.h unistd.h
11010 do
11011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11013   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11016   echo $ECHO_N "(cached) $ECHO_C" >&6
11017 fi
11018 ac_res=`eval echo '${'$as_ac_Header'}'`
11019                { echo "$as_me:$LINENO: result: $ac_res" >&5
11020 echo "${ECHO_T}$ac_res" >&6; }
11021 else
11022   # Is the header compilable?
11023 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11025 cat >conftest.$ac_ext <<_ACEOF
11026 /* confdefs.h.  */
11027 _ACEOF
11028 cat confdefs.h >>conftest.$ac_ext
11029 cat >>conftest.$ac_ext <<_ACEOF
11030 /* end confdefs.h.  */
11031 $ac_includes_default
11032 #include <$ac_header>
11033 _ACEOF
11034 rm -f conftest.$ac_objext
11035 if { (ac_try="$ac_compile"
11036 case "(($ac_try" in
11037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038   *) ac_try_echo=$ac_try;;
11039 esac
11040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11041   (eval "$ac_compile") 2>conftest.er1
11042   ac_status=$?
11043   grep -v '^ *+' conftest.er1 >conftest.err
11044   rm -f conftest.er1
11045   cat conftest.err >&5
11046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047   (exit $ac_status); } &&
11048          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11049   { (case "(($ac_try" in
11050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11051   *) ac_try_echo=$ac_try;;
11052 esac
11053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11054   (eval "$ac_try") 2>&5
11055   ac_status=$?
11056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057   (exit $ac_status); }; } &&
11058          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
11065   ac_status=$?
11066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067   (exit $ac_status); }; }; then
11068   ac_header_compiler=yes
11069 else
11070   echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11072
11073         ac_header_compiler=no
11074 fi
11075
11076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11078 echo "${ECHO_T}$ac_header_compiler" >&6; }
11079
11080 # Is the header present?
11081 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11083 cat >conftest.$ac_ext <<_ACEOF
11084 /* confdefs.h.  */
11085 _ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h.  */
11089 #include <$ac_header>
11090 _ACEOF
11091 if { (ac_try="$ac_cpp conftest.$ac_ext"
11092 case "(($ac_try" in
11093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094   *) ac_try_echo=$ac_try;;
11095 esac
11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11098   ac_status=$?
11099   grep -v '^ *+' conftest.er1 >conftest.err
11100   rm -f conftest.er1
11101   cat conftest.err >&5
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); } >/dev/null; then
11104   if test -s conftest.err; then
11105     ac_cpp_err=$ac_c_preproc_warn_flag
11106     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11107   else
11108     ac_cpp_err=
11109   fi
11110 else
11111   ac_cpp_err=yes
11112 fi
11113 if test -z "$ac_cpp_err"; then
11114   ac_header_preproc=yes
11115 else
11116   echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11118
11119   ac_header_preproc=no
11120 fi
11121
11122 rm -f conftest.err conftest.$ac_ext
11123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11124 echo "${ECHO_T}$ac_header_preproc" >&6; }
11125
11126 # So?  What about this header?
11127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11128   yes:no: )
11129     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11131     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11132 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11133     ac_header_preproc=yes
11134     ;;
11135   no:yes:* )
11136     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11138     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11139 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11140     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11141 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11142     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11143 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11144     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11146     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11147 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11148     ( cat <<\_ASBOX
11149 ## ------------------------------ ##
11150 ## Report this to bugs@yourdomain ##
11151 ## ------------------------------ ##
11152 _ASBOX
11153      ) | sed "s/^/$as_me: WARNING:     /" >&2
11154     ;;
11155 esac
11156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11159   echo $ECHO_N "(cached) $ECHO_C" >&6
11160 else
11161   eval "$as_ac_Header=\$ac_header_preproc"
11162 fi
11163 ac_res=`eval echo '${'$as_ac_Header'}'`
11164                { echo "$as_me:$LINENO: result: $ac_res" >&5
11165 echo "${ECHO_T}$ac_res" >&6; }
11166
11167 fi
11168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11169   cat >>confdefs.h <<_ACEOF
11170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11171 _ACEOF
11172
11173 fi
11174
11175 done
11176
11177
11178
11179
11180
11181 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11182 do
11183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11185   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11188   echo $ECHO_N "(cached) $ECHO_C" >&6
11189 fi
11190 ac_res=`eval echo '${'$as_ac_Header'}'`
11191                { echo "$as_me:$LINENO: result: $ac_res" >&5
11192 echo "${ECHO_T}$ac_res" >&6; }
11193 else
11194   # Is the header compilable?
11195 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11197 cat >conftest.$ac_ext <<_ACEOF
11198 /* confdefs.h.  */
11199 _ACEOF
11200 cat confdefs.h >>conftest.$ac_ext
11201 cat >>conftest.$ac_ext <<_ACEOF
11202 /* end confdefs.h.  */
11203 $ac_includes_default
11204 #include <$ac_header>
11205 _ACEOF
11206 rm -f conftest.$ac_objext
11207 if { (ac_try="$ac_compile"
11208 case "(($ac_try" in
11209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11210   *) ac_try_echo=$ac_try;;
11211 esac
11212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11213   (eval "$ac_compile") 2>conftest.er1
11214   ac_status=$?
11215   grep -v '^ *+' conftest.er1 >conftest.err
11216   rm -f conftest.er1
11217   cat conftest.err >&5
11218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219   (exit $ac_status); } &&
11220          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11221   { (case "(($ac_try" in
11222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223   *) ac_try_echo=$ac_try;;
11224 esac
11225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226   (eval "$ac_try") 2>&5
11227   ac_status=$?
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); }; } &&
11230          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
11237   ac_status=$?
11238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239   (exit $ac_status); }; }; then
11240   ac_header_compiler=yes
11241 else
11242   echo "$as_me: failed program was:" >&5
11243 sed 's/^/| /' conftest.$ac_ext >&5
11244
11245         ac_header_compiler=no
11246 fi
11247
11248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11249 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11250 echo "${ECHO_T}$ac_header_compiler" >&6; }
11251
11252 # Is the header present?
11253 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11255 cat >conftest.$ac_ext <<_ACEOF
11256 /* confdefs.h.  */
11257 _ACEOF
11258 cat confdefs.h >>conftest.$ac_ext
11259 cat >>conftest.$ac_ext <<_ACEOF
11260 /* end confdefs.h.  */
11261 #include <$ac_header>
11262 _ACEOF
11263 if { (ac_try="$ac_cpp conftest.$ac_ext"
11264 case "(($ac_try" in
11265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266   *) ac_try_echo=$ac_try;;
11267 esac
11268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11270   ac_status=$?
11271   grep -v '^ *+' conftest.er1 >conftest.err
11272   rm -f conftest.er1
11273   cat conftest.err >&5
11274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); } >/dev/null; then
11276   if test -s conftest.err; then
11277     ac_cpp_err=$ac_c_preproc_warn_flag
11278     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11279   else
11280     ac_cpp_err=
11281   fi
11282 else
11283   ac_cpp_err=yes
11284 fi
11285 if test -z "$ac_cpp_err"; then
11286   ac_header_preproc=yes
11287 else
11288   echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11290
11291   ac_header_preproc=no
11292 fi
11293
11294 rm -f conftest.err conftest.$ac_ext
11295 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11296 echo "${ECHO_T}$ac_header_preproc" >&6; }
11297
11298 # So?  What about this header?
11299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11300   yes:no: )
11301     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11305     ac_header_preproc=yes
11306     ;;
11307   no:yes:* )
11308     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11310     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11311 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11312     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11314     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11315 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11316     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11318     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11320     ( cat <<\_ASBOX
11321 ## ------------------------------ ##
11322 ## Report this to bugs@yourdomain ##
11323 ## ------------------------------ ##
11324 _ASBOX
11325      ) | sed "s/^/$as_me: WARNING:     /" >&2
11326     ;;
11327 esac
11328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11331   echo $ECHO_N "(cached) $ECHO_C" >&6
11332 else
11333   eval "$as_ac_Header=\$ac_header_preproc"
11334 fi
11335 ac_res=`eval echo '${'$as_ac_Header'}'`
11336                { echo "$as_me:$LINENO: result: $ac_res" >&5
11337 echo "${ECHO_T}$ac_res" >&6; }
11338
11339 fi
11340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11341   cat >>confdefs.h <<_ACEOF
11342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11343 _ACEOF
11344
11345 fi
11346
11347 done
11348
11349
11350
11351 for ac_header in string.h strings.h
11352 do
11353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11355   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11358   echo $ECHO_N "(cached) $ECHO_C" >&6
11359 fi
11360 ac_res=`eval echo '${'$as_ac_Header'}'`
11361                { echo "$as_me:$LINENO: result: $ac_res" >&5
11362 echo "${ECHO_T}$ac_res" >&6; }
11363 else
11364   # Is the header compilable?
11365 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11367 cat >conftest.$ac_ext <<_ACEOF
11368 /* confdefs.h.  */
11369 _ACEOF
11370 cat confdefs.h >>conftest.$ac_ext
11371 cat >>conftest.$ac_ext <<_ACEOF
11372 /* end confdefs.h.  */
11373 $ac_includes_default
11374 #include <$ac_header>
11375 _ACEOF
11376 rm -f conftest.$ac_objext
11377 if { (ac_try="$ac_compile"
11378 case "(($ac_try" in
11379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11380   *) ac_try_echo=$ac_try;;
11381 esac
11382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11383   (eval "$ac_compile") 2>conftest.er1
11384   ac_status=$?
11385   grep -v '^ *+' conftest.er1 >conftest.err
11386   rm -f conftest.er1
11387   cat conftest.err >&5
11388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389   (exit $ac_status); } &&
11390          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11391   { (case "(($ac_try" in
11392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11393   *) ac_try_echo=$ac_try;;
11394 esac
11395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11396   (eval "$ac_try") 2>&5
11397   ac_status=$?
11398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399   (exit $ac_status); }; } &&
11400          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
11407   ac_status=$?
11408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409   (exit $ac_status); }; }; then
11410   ac_header_compiler=yes
11411 else
11412   echo "$as_me: failed program was:" >&5
11413 sed 's/^/| /' conftest.$ac_ext >&5
11414
11415         ac_header_compiler=no
11416 fi
11417
11418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11420 echo "${ECHO_T}$ac_header_compiler" >&6; }
11421
11422 # Is the header present?
11423 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11425 cat >conftest.$ac_ext <<_ACEOF
11426 /* confdefs.h.  */
11427 _ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h.  */
11431 #include <$ac_header>
11432 _ACEOF
11433 if { (ac_try="$ac_cpp conftest.$ac_ext"
11434 case "(($ac_try" in
11435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436   *) ac_try_echo=$ac_try;;
11437 esac
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11440   ac_status=$?
11441   grep -v '^ *+' conftest.er1 >conftest.err
11442   rm -f conftest.er1
11443   cat conftest.err >&5
11444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445   (exit $ac_status); } >/dev/null; then
11446   if test -s conftest.err; then
11447     ac_cpp_err=$ac_c_preproc_warn_flag
11448     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11449   else
11450     ac_cpp_err=
11451   fi
11452 else
11453   ac_cpp_err=yes
11454 fi
11455 if test -z "$ac_cpp_err"; then
11456   ac_header_preproc=yes
11457 else
11458   echo "$as_me: failed program was:" >&5
11459 sed 's/^/| /' conftest.$ac_ext >&5
11460
11461   ac_header_preproc=no
11462 fi
11463
11464 rm -f conftest.err conftest.$ac_ext
11465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11466 echo "${ECHO_T}$ac_header_preproc" >&6; }
11467
11468 # So?  What about this header?
11469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11470   yes:no: )
11471     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11475     ac_header_preproc=yes
11476     ;;
11477   no:yes:* )
11478     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11480     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11481 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11482     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11484     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11485 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11486     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11488     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11490     ( cat <<\_ASBOX
11491 ## ------------------------------ ##
11492 ## Report this to bugs@yourdomain ##
11493 ## ------------------------------ ##
11494 _ASBOX
11495      ) | sed "s/^/$as_me: WARNING:     /" >&2
11496     ;;
11497 esac
11498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11501   echo $ECHO_N "(cached) $ECHO_C" >&6
11502 else
11503   eval "$as_ac_Header=\$ac_header_preproc"
11504 fi
11505 ac_res=`eval echo '${'$as_ac_Header'}'`
11506                { echo "$as_me:$LINENO: result: $ac_res" >&5
11507 echo "${ECHO_T}$ac_res" >&6; }
11508
11509 fi
11510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11511   cat >>confdefs.h <<_ACEOF
11512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11513 _ACEOF
11514  break
11515 fi
11516
11517 done
11518
11519
11520
11521
11522 for ac_func in strchr index
11523 do
11524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11525 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11527 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11528   echo $ECHO_N "(cached) $ECHO_C" >&6
11529 else
11530   cat >conftest.$ac_ext <<_ACEOF
11531 /* confdefs.h.  */
11532 _ACEOF
11533 cat confdefs.h >>conftest.$ac_ext
11534 cat >>conftest.$ac_ext <<_ACEOF
11535 /* end confdefs.h.  */
11536 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11537    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11538 #define $ac_func innocuous_$ac_func
11539
11540 /* System header to define __stub macros and hopefully few prototypes,
11541     which can conflict with char $ac_func (); below.
11542     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11543     <limits.h> exists even on freestanding compilers.  */
11544
11545 #ifdef __STDC__
11546 # include <limits.h>
11547 #else
11548 # include <assert.h>
11549 #endif
11550
11551 #undef $ac_func
11552
11553 /* Override any GCC internal prototype to avoid an error.
11554    Use char because int might match the return type of a GCC
11555    builtin and then its argument prototype would still apply.  */
11556 #ifdef __cplusplus
11557 extern "C"
11558 #endif
11559 char $ac_func ();
11560 /* The GNU C library defines this for functions which it implements
11561     to always fail with ENOSYS.  Some functions are actually named
11562     something starting with __ and the normal name is an alias.  */
11563 #if defined __stub_$ac_func || defined __stub___$ac_func
11564 choke me
11565 #endif
11566
11567 int
11568 main ()
11569 {
11570 return $ac_func ();
11571   ;
11572   return 0;
11573 }
11574 _ACEOF
11575 rm -f conftest.$ac_objext conftest$ac_exeext
11576 if { (ac_try="$ac_link"
11577 case "(($ac_try" in
11578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11579   *) ac_try_echo=$ac_try;;
11580 esac
11581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582   (eval "$ac_link") 2>conftest.er1
11583   ac_status=$?
11584   grep -v '^ *+' conftest.er1 >conftest.err
11585   rm -f conftest.er1
11586   cat conftest.err >&5
11587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588   (exit $ac_status); } &&
11589          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11590   { (case "(($ac_try" in
11591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11592   *) ac_try_echo=$ac_try;;
11593 esac
11594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11595   (eval "$ac_try") 2>&5
11596   ac_status=$?
11597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598   (exit $ac_status); }; } &&
11599          { ac_try='test -s conftest$ac_exeext'
11600   { (case "(($ac_try" in
11601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11602   *) ac_try_echo=$ac_try;;
11603 esac
11604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11605   (eval "$ac_try") 2>&5
11606   ac_status=$?
11607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608   (exit $ac_status); }; }; then
11609   eval "$as_ac_var=yes"
11610 else
11611   echo "$as_me: failed program was:" >&5
11612 sed 's/^/| /' conftest.$ac_ext >&5
11613
11614         eval "$as_ac_var=no"
11615 fi
11616
11617 rm -f core conftest.err conftest.$ac_objext \
11618       conftest$ac_exeext conftest.$ac_ext
11619 fi
11620 ac_res=`eval echo '${'$as_ac_var'}'`
11621                { echo "$as_me:$LINENO: result: $ac_res" >&5
11622 echo "${ECHO_T}$ac_res" >&6; }
11623 if test `eval echo '${'$as_ac_var'}'` = yes; then
11624   cat >>confdefs.h <<_ACEOF
11625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11626 _ACEOF
11627  break
11628 fi
11629 done
11630
11631
11632
11633 for ac_func in strrchr rindex
11634 do
11635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11639   echo $ECHO_N "(cached) $ECHO_C" >&6
11640 else
11641   cat >conftest.$ac_ext <<_ACEOF
11642 /* confdefs.h.  */
11643 _ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h.  */
11647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11649 #define $ac_func innocuous_$ac_func
11650
11651 /* System header to define __stub macros and hopefully few prototypes,
11652     which can conflict with char $ac_func (); below.
11653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11654     <limits.h> exists even on freestanding compilers.  */
11655
11656 #ifdef __STDC__
11657 # include <limits.h>
11658 #else
11659 # include <assert.h>
11660 #endif
11661
11662 #undef $ac_func
11663
11664 /* Override any GCC internal prototype to avoid an error.
11665    Use char because int might match the return type of a GCC
11666    builtin and then its argument prototype would still apply.  */
11667 #ifdef __cplusplus
11668 extern "C"
11669 #endif
11670 char $ac_func ();
11671 /* The GNU C library defines this for functions which it implements
11672     to always fail with ENOSYS.  Some functions are actually named
11673     something starting with __ and the normal name is an alias.  */
11674 #if defined __stub_$ac_func || defined __stub___$ac_func
11675 choke me
11676 #endif
11677
11678 int
11679 main ()
11680 {
11681 return $ac_func ();
11682   ;
11683   return 0;
11684 }
11685 _ACEOF
11686 rm -f conftest.$ac_objext conftest$ac_exeext
11687 if { (ac_try="$ac_link"
11688 case "(($ac_try" in
11689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690   *) ac_try_echo=$ac_try;;
11691 esac
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693   (eval "$ac_link") 2>conftest.er1
11694   ac_status=$?
11695   grep -v '^ *+' conftest.er1 >conftest.err
11696   rm -f conftest.er1
11697   cat conftest.err >&5
11698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699   (exit $ac_status); } &&
11700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11701   { (case "(($ac_try" in
11702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703   *) ac_try_echo=$ac_try;;
11704 esac
11705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706   (eval "$ac_try") 2>&5
11707   ac_status=$?
11708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709   (exit $ac_status); }; } &&
11710          { ac_try='test -s conftest$ac_exeext'
11711   { (case "(($ac_try" in
11712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713   *) ac_try_echo=$ac_try;;
11714 esac
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716   (eval "$ac_try") 2>&5
11717   ac_status=$?
11718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719   (exit $ac_status); }; }; then
11720   eval "$as_ac_var=yes"
11721 else
11722   echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11724
11725         eval "$as_ac_var=no"
11726 fi
11727
11728 rm -f core conftest.err conftest.$ac_objext \
11729       conftest$ac_exeext conftest.$ac_ext
11730 fi
11731 ac_res=`eval echo '${'$as_ac_var'}'`
11732                { echo "$as_me:$LINENO: result: $ac_res" >&5
11733 echo "${ECHO_T}$ac_res" >&6; }
11734 if test `eval echo '${'$as_ac_var'}'` = yes; then
11735   cat >>confdefs.h <<_ACEOF
11736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11737 _ACEOF
11738  break
11739 fi
11740 done
11741
11742
11743
11744 for ac_func in memcpy bcopy
11745 do
11746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11750   echo $ECHO_N "(cached) $ECHO_C" >&6
11751 else
11752   cat >conftest.$ac_ext <<_ACEOF
11753 /* confdefs.h.  */
11754 _ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h.  */
11758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11760 #define $ac_func innocuous_$ac_func
11761
11762 /* System header to define __stub macros and hopefully few prototypes,
11763     which can conflict with char $ac_func (); below.
11764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11765     <limits.h> exists even on freestanding compilers.  */
11766
11767 #ifdef __STDC__
11768 # include <limits.h>
11769 #else
11770 # include <assert.h>
11771 #endif
11772
11773 #undef $ac_func
11774
11775 /* Override any GCC internal prototype to avoid an error.
11776    Use char because int might match the return type of a GCC
11777    builtin and then its argument prototype would still apply.  */
11778 #ifdef __cplusplus
11779 extern "C"
11780 #endif
11781 char $ac_func ();
11782 /* The GNU C library defines this for functions which it implements
11783     to always fail with ENOSYS.  Some functions are actually named
11784     something starting with __ and the normal name is an alias.  */
11785 #if defined __stub_$ac_func || defined __stub___$ac_func
11786 choke me
11787 #endif
11788
11789 int
11790 main ()
11791 {
11792 return $ac_func ();
11793   ;
11794   return 0;
11795 }
11796 _ACEOF
11797 rm -f conftest.$ac_objext conftest$ac_exeext
11798 if { (ac_try="$ac_link"
11799 case "(($ac_try" in
11800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801   *) ac_try_echo=$ac_try;;
11802 esac
11803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804   (eval "$ac_link") 2>conftest.er1
11805   ac_status=$?
11806   grep -v '^ *+' conftest.er1 >conftest.err
11807   rm -f conftest.er1
11808   cat conftest.err >&5
11809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810   (exit $ac_status); } &&
11811          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11812   { (case "(($ac_try" in
11813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814   *) ac_try_echo=$ac_try;;
11815 esac
11816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817   (eval "$ac_try") 2>&5
11818   ac_status=$?
11819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820   (exit $ac_status); }; } &&
11821          { ac_try='test -s conftest$ac_exeext'
11822   { (case "(($ac_try" in
11823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824   *) ac_try_echo=$ac_try;;
11825 esac
11826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827   (eval "$ac_try") 2>&5
11828   ac_status=$?
11829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830   (exit $ac_status); }; }; then
11831   eval "$as_ac_var=yes"
11832 else
11833   echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11835
11836         eval "$as_ac_var=no"
11837 fi
11838
11839 rm -f core conftest.err conftest.$ac_objext \
11840       conftest$ac_exeext conftest.$ac_ext
11841 fi
11842 ac_res=`eval echo '${'$as_ac_var'}'`
11843                { echo "$as_me:$LINENO: result: $ac_res" >&5
11844 echo "${ECHO_T}$ac_res" >&6; }
11845 if test `eval echo '${'$as_ac_var'}'` = yes; then
11846   cat >>confdefs.h <<_ACEOF
11847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11848 _ACEOF
11849  break
11850 fi
11851 done
11852
11853
11854
11855 for ac_func in memmove strcmp
11856 do
11857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11858 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11860 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11861   echo $ECHO_N "(cached) $ECHO_C" >&6
11862 else
11863   cat >conftest.$ac_ext <<_ACEOF
11864 /* confdefs.h.  */
11865 _ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h.  */
11869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11871 #define $ac_func innocuous_$ac_func
11872
11873 /* System header to define __stub macros and hopefully few prototypes,
11874     which can conflict with char $ac_func (); below.
11875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11876     <limits.h> exists even on freestanding compilers.  */
11877
11878 #ifdef __STDC__
11879 # include <limits.h>
11880 #else
11881 # include <assert.h>
11882 #endif
11883
11884 #undef $ac_func
11885
11886 /* Override any GCC internal prototype to avoid an error.
11887    Use char because int might match the return type of a GCC
11888    builtin and then its argument prototype would still apply.  */
11889 #ifdef __cplusplus
11890 extern "C"
11891 #endif
11892 char $ac_func ();
11893 /* The GNU C library defines this for functions which it implements
11894     to always fail with ENOSYS.  Some functions are actually named
11895     something starting with __ and the normal name is an alias.  */
11896 #if defined __stub_$ac_func || defined __stub___$ac_func
11897 choke me
11898 #endif
11899
11900 int
11901 main ()
11902 {
11903 return $ac_func ();
11904   ;
11905   return 0;
11906 }
11907 _ACEOF
11908 rm -f conftest.$ac_objext conftest$ac_exeext
11909 if { (ac_try="$ac_link"
11910 case "(($ac_try" in
11911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912   *) ac_try_echo=$ac_try;;
11913 esac
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915   (eval "$ac_link") 2>conftest.er1
11916   ac_status=$?
11917   grep -v '^ *+' conftest.er1 >conftest.err
11918   rm -f conftest.er1
11919   cat conftest.err >&5
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); } &&
11922          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11923   { (case "(($ac_try" in
11924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925   *) ac_try_echo=$ac_try;;
11926 esac
11927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928   (eval "$ac_try") 2>&5
11929   ac_status=$?
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); }; } &&
11932          { ac_try='test -s conftest$ac_exeext'
11933   { (case "(($ac_try" in
11934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935   *) ac_try_echo=$ac_try;;
11936 esac
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938   (eval "$ac_try") 2>&5
11939   ac_status=$?
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); }; }; then
11942   eval "$as_ac_var=yes"
11943 else
11944   echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11946
11947         eval "$as_ac_var=no"
11948 fi
11949
11950 rm -f core conftest.err conftest.$ac_objext \
11951       conftest$ac_exeext conftest.$ac_ext
11952 fi
11953 ac_res=`eval echo '${'$as_ac_var'}'`
11954                { echo "$as_me:$LINENO: result: $ac_res" >&5
11955 echo "${ECHO_T}$ac_res" >&6; }
11956 if test `eval echo '${'$as_ac_var'}'` = yes; then
11957   cat >>confdefs.h <<_ACEOF
11958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11959 _ACEOF
11960
11961 fi
11962 done
11963
11964
11965
11966
11967 for ac_func in closedir opendir readdir
11968 do
11969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11970 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11972 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11973   echo $ECHO_N "(cached) $ECHO_C" >&6
11974 else
11975   cat >conftest.$ac_ext <<_ACEOF
11976 /* confdefs.h.  */
11977 _ACEOF
11978 cat confdefs.h >>conftest.$ac_ext
11979 cat >>conftest.$ac_ext <<_ACEOF
11980 /* end confdefs.h.  */
11981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11982    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11983 #define $ac_func innocuous_$ac_func
11984
11985 /* System header to define __stub macros and hopefully few prototypes,
11986     which can conflict with char $ac_func (); below.
11987     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11988     <limits.h> exists even on freestanding compilers.  */
11989
11990 #ifdef __STDC__
11991 # include <limits.h>
11992 #else
11993 # include <assert.h>
11994 #endif
11995
11996 #undef $ac_func
11997
11998 /* Override any GCC internal prototype to avoid an error.
11999    Use char because int might match the return type of a GCC
12000    builtin and then its argument prototype would still apply.  */
12001 #ifdef __cplusplus
12002 extern "C"
12003 #endif
12004 char $ac_func ();
12005 /* The GNU C library defines this for functions which it implements
12006     to always fail with ENOSYS.  Some functions are actually named
12007     something starting with __ and the normal name is an alias.  */
12008 #if defined __stub_$ac_func || defined __stub___$ac_func
12009 choke me
12010 #endif
12011
12012 int
12013 main ()
12014 {
12015 return $ac_func ();
12016   ;
12017   return 0;
12018 }
12019 _ACEOF
12020 rm -f conftest.$ac_objext conftest$ac_exeext
12021 if { (ac_try="$ac_link"
12022 case "(($ac_try" in
12023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024   *) ac_try_echo=$ac_try;;
12025 esac
12026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12027   (eval "$ac_link") 2>conftest.er1
12028   ac_status=$?
12029   grep -v '^ *+' conftest.er1 >conftest.err
12030   rm -f conftest.er1
12031   cat conftest.err >&5
12032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033   (exit $ac_status); } &&
12034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12035   { (case "(($ac_try" in
12036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12037   *) ac_try_echo=$ac_try;;
12038 esac
12039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12040   (eval "$ac_try") 2>&5
12041   ac_status=$?
12042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043   (exit $ac_status); }; } &&
12044          { ac_try='test -s conftest$ac_exeext'
12045   { (case "(($ac_try" in
12046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047   *) ac_try_echo=$ac_try;;
12048 esac
12049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050   (eval "$ac_try") 2>&5
12051   ac_status=$?
12052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053   (exit $ac_status); }; }; then
12054   eval "$as_ac_var=yes"
12055 else
12056   echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12058
12059         eval "$as_ac_var=no"
12060 fi
12061
12062 rm -f core conftest.err conftest.$ac_objext \
12063       conftest$ac_exeext conftest.$ac_ext
12064 fi
12065 ac_res=`eval echo '${'$as_ac_var'}'`
12066                { echo "$as_me:$LINENO: result: $ac_res" >&5
12067 echo "${ECHO_T}$ac_res" >&6; }
12068 if test `eval echo '${'$as_ac_var'}'` = yes; then
12069   cat >>confdefs.h <<_ACEOF
12070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12071 _ACEOF
12072
12073 fi
12074 done
12075
12076
12077
12078 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12079 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12080
12081 ICC=no
12082 IXX=no
12083 case $CC in
12084   icc*|icpc*)
12085     ICC=yes
12086     IXX=yes
12087     ;;
12088    *)
12089     ;;
12090 esac
12091
12092 if test "$GCC" != "yes" && test "$ICC" != "yes"
12093 then
12094   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12095 echo "$as_me: error: gcc|icc required but not found" >&2;}
12096    { (exit 1); exit 1; }; }
12097 fi
12098
12099 if test "$GXX" != "yes" && test "$IXX" != "yes"
12100 then
12101   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12102 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12103    { (exit 1); exit 1; }; }
12104 fi
12105
12106 if test "$GCC" = "yes"
12107 then
12108   cat >conftest.$ac_ext <<_ACEOF
12109 #if !defined(__GNUC__) || __GNUC__ < 3
12110 #error Unsupported GCC version
12111 #endif
12112
12113 _ACEOF
12114 rm -f conftest.$ac_objext
12115 if { (ac_try="$ac_compile"
12116 case "(($ac_try" in
12117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118   *) ac_try_echo=$ac_try;;
12119 esac
12120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121   (eval "$ac_compile") 2>conftest.er1
12122   ac_status=$?
12123   grep -v '^ *+' conftest.er1 >conftest.err
12124   rm -f conftest.er1
12125   cat conftest.err >&5
12126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127   (exit $ac_status); } &&
12128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12129   { (case "(($ac_try" in
12130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131   *) ac_try_echo=$ac_try;;
12132 esac
12133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134   (eval "$ac_try") 2>&5
12135   ac_status=$?
12136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137   (exit $ac_status); }; } &&
12138          { ac_try='test -s conftest.$ac_objext'
12139   { (case "(($ac_try" in
12140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141   *) ac_try_echo=$ac_try;;
12142 esac
12143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144   (eval "$ac_try") 2>&5
12145   ac_status=$?
12146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147   (exit $ac_status); }; }; then
12148   :
12149 else
12150   echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12152
12153         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12154 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12155    { (exit 1); exit 1; }; }
12156 fi
12157
12158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12159 fi
12160
12161 if test -z "$llvm_cv_gnu_make_command"
12162 then
12163   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12164 echo "$as_me: error: GNU Make required but not found" >&2;}
12165    { (exit 1); exit 1; }; }
12166 fi
12167
12168 { echo "$as_me:$LINENO: result: ok" >&5
12169 echo "${ECHO_T}ok" >&6; }
12170
12171 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12172 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12173 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12174
12175 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12176
12177 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12178 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12179
12180
12181
12182 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12183 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12184 if test "${ac_cv_lib_m_sin+set}" = set; then
12185   echo $ECHO_N "(cached) $ECHO_C" >&6
12186 else
12187   ac_check_lib_save_LIBS=$LIBS
12188 LIBS="-lm  $LIBS"
12189 cat >conftest.$ac_ext <<_ACEOF
12190 /* confdefs.h.  */
12191 _ACEOF
12192 cat confdefs.h >>conftest.$ac_ext
12193 cat >>conftest.$ac_ext <<_ACEOF
12194 /* end confdefs.h.  */
12195
12196 /* Override any GCC internal prototype to avoid an error.
12197    Use char because int might match the return type of a GCC
12198    builtin and then its argument prototype would still apply.  */
12199 #ifdef __cplusplus
12200 extern "C"
12201 #endif
12202 char sin ();
12203 int
12204 main ()
12205 {
12206 return sin ();
12207   ;
12208   return 0;
12209 }
12210 _ACEOF
12211 rm -f conftest.$ac_objext conftest$ac_exeext
12212 if { (ac_try="$ac_link"
12213 case "(($ac_try" in
12214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12215   *) ac_try_echo=$ac_try;;
12216 esac
12217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12218   (eval "$ac_link") 2>conftest.er1
12219   ac_status=$?
12220   grep -v '^ *+' conftest.er1 >conftest.err
12221   rm -f conftest.er1
12222   cat conftest.err >&5
12223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224   (exit $ac_status); } &&
12225          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12226   { (case "(($ac_try" in
12227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228   *) ac_try_echo=$ac_try;;
12229 esac
12230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231   (eval "$ac_try") 2>&5
12232   ac_status=$?
12233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234   (exit $ac_status); }; } &&
12235          { ac_try='test -s conftest$ac_exeext'
12236   { (case "(($ac_try" in
12237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238   *) ac_try_echo=$ac_try;;
12239 esac
12240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12241   (eval "$ac_try") 2>&5
12242   ac_status=$?
12243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244   (exit $ac_status); }; }; then
12245   ac_cv_lib_m_sin=yes
12246 else
12247   echo "$as_me: failed program was:" >&5
12248 sed 's/^/| /' conftest.$ac_ext >&5
12249
12250         ac_cv_lib_m_sin=no
12251 fi
12252
12253 rm -f core conftest.err conftest.$ac_objext \
12254       conftest$ac_exeext conftest.$ac_ext
12255 LIBS=$ac_check_lib_save_LIBS
12256 fi
12257 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12258 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12259 if test $ac_cv_lib_m_sin = yes; then
12260   cat >>confdefs.h <<_ACEOF
12261 #define HAVE_LIBM 1
12262 _ACEOF
12263
12264   LIBS="-lm $LIBS"
12265
12266 fi
12267
12268 if test "$llvm_cv_os_type" = "MingW" ; then
12269
12270 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12271 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12272 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12273   echo $ECHO_N "(cached) $ECHO_C" >&6
12274 else
12275   ac_check_lib_save_LIBS=$LIBS
12276 LIBS="-limagehlp  $LIBS"
12277 cat >conftest.$ac_ext <<_ACEOF
12278 /* confdefs.h.  */
12279 _ACEOF
12280 cat confdefs.h >>conftest.$ac_ext
12281 cat >>conftest.$ac_ext <<_ACEOF
12282 /* end confdefs.h.  */
12283
12284
12285 int
12286 main ()
12287 {
12288 return main ();
12289   ;
12290   return 0;
12291 }
12292 _ACEOF
12293 rm -f conftest.$ac_objext conftest$ac_exeext
12294 if { (ac_try="$ac_link"
12295 case "(($ac_try" in
12296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297   *) ac_try_echo=$ac_try;;
12298 esac
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300   (eval "$ac_link") 2>conftest.er1
12301   ac_status=$?
12302   grep -v '^ *+' conftest.er1 >conftest.err
12303   rm -f conftest.er1
12304   cat conftest.err >&5
12305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306   (exit $ac_status); } &&
12307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12308   { (case "(($ac_try" in
12309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310   *) ac_try_echo=$ac_try;;
12311 esac
12312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313   (eval "$ac_try") 2>&5
12314   ac_status=$?
12315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316   (exit $ac_status); }; } &&
12317          { ac_try='test -s conftest$ac_exeext'
12318   { (case "(($ac_try" in
12319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320   *) ac_try_echo=$ac_try;;
12321 esac
12322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12323   (eval "$ac_try") 2>&5
12324   ac_status=$?
12325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326   (exit $ac_status); }; }; then
12327   ac_cv_lib_imagehlp_main=yes
12328 else
12329   echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.$ac_ext >&5
12331
12332         ac_cv_lib_imagehlp_main=no
12333 fi
12334
12335 rm -f core conftest.err conftest.$ac_objext \
12336       conftest$ac_exeext conftest.$ac_ext
12337 LIBS=$ac_check_lib_save_LIBS
12338 fi
12339 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12340 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12341 if test $ac_cv_lib_imagehlp_main = yes; then
12342   cat >>confdefs.h <<_ACEOF
12343 #define HAVE_LIBIMAGEHLP 1
12344 _ACEOF
12345
12346   LIBS="-limagehlp $LIBS"
12347
12348 fi
12349
12350
12351 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12352 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12353 if test "${ac_cv_lib_psapi_main+set}" = set; then
12354   echo $ECHO_N "(cached) $ECHO_C" >&6
12355 else
12356   ac_check_lib_save_LIBS=$LIBS
12357 LIBS="-lpsapi  $LIBS"
12358 cat >conftest.$ac_ext <<_ACEOF
12359 /* confdefs.h.  */
12360 _ACEOF
12361 cat confdefs.h >>conftest.$ac_ext
12362 cat >>conftest.$ac_ext <<_ACEOF
12363 /* end confdefs.h.  */
12364
12365
12366 int
12367 main ()
12368 {
12369 return main ();
12370   ;
12371   return 0;
12372 }
12373 _ACEOF
12374 rm -f conftest.$ac_objext conftest$ac_exeext
12375 if { (ac_try="$ac_link"
12376 case "(($ac_try" in
12377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378   *) ac_try_echo=$ac_try;;
12379 esac
12380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381   (eval "$ac_link") 2>conftest.er1
12382   ac_status=$?
12383   grep -v '^ *+' conftest.er1 >conftest.err
12384   rm -f conftest.er1
12385   cat conftest.err >&5
12386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387   (exit $ac_status); } &&
12388          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12389   { (case "(($ac_try" in
12390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391   *) ac_try_echo=$ac_try;;
12392 esac
12393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394   (eval "$ac_try") 2>&5
12395   ac_status=$?
12396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397   (exit $ac_status); }; } &&
12398          { ac_try='test -s conftest$ac_exeext'
12399   { (case "(($ac_try" in
12400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401   *) ac_try_echo=$ac_try;;
12402 esac
12403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404   (eval "$ac_try") 2>&5
12405   ac_status=$?
12406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407   (exit $ac_status); }; }; then
12408   ac_cv_lib_psapi_main=yes
12409 else
12410   echo "$as_me: failed program was:" >&5
12411 sed 's/^/| /' conftest.$ac_ext >&5
12412
12413         ac_cv_lib_psapi_main=no
12414 fi
12415
12416 rm -f core conftest.err conftest.$ac_objext \
12417       conftest$ac_exeext conftest.$ac_ext
12418 LIBS=$ac_check_lib_save_LIBS
12419 fi
12420 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12421 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12422 if test $ac_cv_lib_psapi_main = yes; then
12423   cat >>confdefs.h <<_ACEOF
12424 #define HAVE_LIBPSAPI 1
12425 _ACEOF
12426
12427   LIBS="-lpsapi $LIBS"
12428
12429 fi
12430
12431 fi
12432
12433 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12434 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12435 if test "${ac_cv_search_dlopen+set}" = set; then
12436   echo $ECHO_N "(cached) $ECHO_C" >&6
12437 else
12438   ac_func_search_save_LIBS=$LIBS
12439 cat >conftest.$ac_ext <<_ACEOF
12440 /* confdefs.h.  */
12441 _ACEOF
12442 cat confdefs.h >>conftest.$ac_ext
12443 cat >>conftest.$ac_ext <<_ACEOF
12444 /* end confdefs.h.  */
12445
12446 /* Override any GCC internal prototype to avoid an error.
12447    Use char because int might match the return type of a GCC
12448    builtin and then its argument prototype would still apply.  */
12449 #ifdef __cplusplus
12450 extern "C"
12451 #endif
12452 char dlopen ();
12453 int
12454 main ()
12455 {
12456 return dlopen ();
12457   ;
12458   return 0;
12459 }
12460 _ACEOF
12461 for ac_lib in '' dl; do
12462   if test -z "$ac_lib"; then
12463     ac_res="none required"
12464   else
12465     ac_res=-l$ac_lib
12466     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12467   fi
12468   rm -f conftest.$ac_objext conftest$ac_exeext
12469 if { (ac_try="$ac_link"
12470 case "(($ac_try" in
12471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12472   *) ac_try_echo=$ac_try;;
12473 esac
12474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12475   (eval "$ac_link") 2>conftest.er1
12476   ac_status=$?
12477   grep -v '^ *+' conftest.er1 >conftest.err
12478   rm -f conftest.er1
12479   cat conftest.err >&5
12480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481   (exit $ac_status); } &&
12482          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12483   { (case "(($ac_try" in
12484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485   *) ac_try_echo=$ac_try;;
12486 esac
12487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12488   (eval "$ac_try") 2>&5
12489   ac_status=$?
12490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491   (exit $ac_status); }; } &&
12492          { ac_try='test -s conftest$ac_exeext'
12493   { (case "(($ac_try" in
12494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12495   *) ac_try_echo=$ac_try;;
12496 esac
12497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12498   (eval "$ac_try") 2>&5
12499   ac_status=$?
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); }; }; then
12502   ac_cv_search_dlopen=$ac_res
12503 else
12504   echo "$as_me: failed program was:" >&5
12505 sed 's/^/| /' conftest.$ac_ext >&5
12506
12507
12508 fi
12509
12510 rm -f core conftest.err conftest.$ac_objext \
12511       conftest$ac_exeext
12512   if test "${ac_cv_search_dlopen+set}" = set; then
12513   break
12514 fi
12515 done
12516 if test "${ac_cv_search_dlopen+set}" = set; then
12517   :
12518 else
12519   ac_cv_search_dlopen=no
12520 fi
12521 rm conftest.$ac_ext
12522 LIBS=$ac_func_search_save_LIBS
12523 fi
12524 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12525 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12526 ac_res=$ac_cv_search_dlopen
12527 if test "$ac_res" != no; then
12528   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12529
12530 cat >>confdefs.h <<\_ACEOF
12531 #define HAVE_DLOPEN 1
12532 _ACEOF
12533
12534 else
12535   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12536 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12537 fi
12538
12539
12540 if test "$llvm_cv_enable_libffi" = "yes" ; then
12541   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12542 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12543 if test "${ac_cv_search_ffi_call+set}" = set; then
12544   echo $ECHO_N "(cached) $ECHO_C" >&6
12545 else
12546   ac_func_search_save_LIBS=$LIBS
12547 cat >conftest.$ac_ext <<_ACEOF
12548 /* confdefs.h.  */
12549 _ACEOF
12550 cat confdefs.h >>conftest.$ac_ext
12551 cat >>conftest.$ac_ext <<_ACEOF
12552 /* end confdefs.h.  */
12553
12554 /* Override any GCC internal prototype to avoid an error.
12555    Use char because int might match the return type of a GCC
12556    builtin and then its argument prototype would still apply.  */
12557 #ifdef __cplusplus
12558 extern "C"
12559 #endif
12560 char ffi_call ();
12561 int
12562 main ()
12563 {
12564 return ffi_call ();
12565   ;
12566   return 0;
12567 }
12568 _ACEOF
12569 for ac_lib in '' ffi; do
12570   if test -z "$ac_lib"; then
12571     ac_res="none required"
12572   else
12573     ac_res=-l$ac_lib
12574     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12575   fi
12576   rm -f conftest.$ac_objext conftest$ac_exeext
12577 if { (ac_try="$ac_link"
12578 case "(($ac_try" in
12579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580   *) ac_try_echo=$ac_try;;
12581 esac
12582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583   (eval "$ac_link") 2>conftest.er1
12584   ac_status=$?
12585   grep -v '^ *+' conftest.er1 >conftest.err
12586   rm -f conftest.er1
12587   cat conftest.err >&5
12588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589   (exit $ac_status); } &&
12590          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12591   { (case "(($ac_try" in
12592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593   *) ac_try_echo=$ac_try;;
12594 esac
12595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596   (eval "$ac_try") 2>&5
12597   ac_status=$?
12598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599   (exit $ac_status); }; } &&
12600          { ac_try='test -s conftest$ac_exeext'
12601   { (case "(($ac_try" in
12602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603   *) ac_try_echo=$ac_try;;
12604 esac
12605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606   (eval "$ac_try") 2>&5
12607   ac_status=$?
12608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609   (exit $ac_status); }; }; then
12610   ac_cv_search_ffi_call=$ac_res
12611 else
12612   echo "$as_me: failed program was:" >&5
12613 sed 's/^/| /' conftest.$ac_ext >&5
12614
12615
12616 fi
12617
12618 rm -f core conftest.err conftest.$ac_objext \
12619       conftest$ac_exeext
12620   if test "${ac_cv_search_ffi_call+set}" = set; then
12621   break
12622 fi
12623 done
12624 if test "${ac_cv_search_ffi_call+set}" = set; then
12625   :
12626 else
12627   ac_cv_search_ffi_call=no
12628 fi
12629 rm conftest.$ac_ext
12630 LIBS=$ac_func_search_save_LIBS
12631 fi
12632 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12633 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12634 ac_res=$ac_cv_search_ffi_call
12635 if test "$ac_res" != no; then
12636   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12637
12638 cat >>confdefs.h <<\_ACEOF
12639 #define HAVE_FFI_CALL 1
12640 _ACEOF
12641
12642 else
12643   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12644 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12645    { (exit 1); exit 1; }; }
12646 fi
12647
12648 fi
12649
12650 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12651 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12652 if test "${ac_cv_search_mallinfo+set}" = set; then
12653   echo $ECHO_N "(cached) $ECHO_C" >&6
12654 else
12655   ac_func_search_save_LIBS=$LIBS
12656 cat >conftest.$ac_ext <<_ACEOF
12657 /* confdefs.h.  */
12658 _ACEOF
12659 cat confdefs.h >>conftest.$ac_ext
12660 cat >>conftest.$ac_ext <<_ACEOF
12661 /* end confdefs.h.  */
12662
12663 /* Override any GCC internal prototype to avoid an error.
12664    Use char because int might match the return type of a GCC
12665    builtin and then its argument prototype would still apply.  */
12666 #ifdef __cplusplus
12667 extern "C"
12668 #endif
12669 char mallinfo ();
12670 int
12671 main ()
12672 {
12673 return mallinfo ();
12674   ;
12675   return 0;
12676 }
12677 _ACEOF
12678 for ac_lib in '' malloc; do
12679   if test -z "$ac_lib"; then
12680     ac_res="none required"
12681   else
12682     ac_res=-l$ac_lib
12683     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12684   fi
12685   rm -f conftest.$ac_objext conftest$ac_exeext
12686 if { (ac_try="$ac_link"
12687 case "(($ac_try" in
12688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689   *) ac_try_echo=$ac_try;;
12690 esac
12691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12692   (eval "$ac_link") 2>conftest.er1
12693   ac_status=$?
12694   grep -v '^ *+' conftest.er1 >conftest.err
12695   rm -f conftest.er1
12696   cat conftest.err >&5
12697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698   (exit $ac_status); } &&
12699          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12700   { (case "(($ac_try" in
12701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702   *) ac_try_echo=$ac_try;;
12703 esac
12704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705   (eval "$ac_try") 2>&5
12706   ac_status=$?
12707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708   (exit $ac_status); }; } &&
12709          { ac_try='test -s conftest$ac_exeext'
12710   { (case "(($ac_try" in
12711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712   *) ac_try_echo=$ac_try;;
12713 esac
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715   (eval "$ac_try") 2>&5
12716   ac_status=$?
12717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718   (exit $ac_status); }; }; then
12719   ac_cv_search_mallinfo=$ac_res
12720 else
12721   echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.$ac_ext >&5
12723
12724
12725 fi
12726
12727 rm -f core conftest.err conftest.$ac_objext \
12728       conftest$ac_exeext
12729   if test "${ac_cv_search_mallinfo+set}" = set; then
12730   break
12731 fi
12732 done
12733 if test "${ac_cv_search_mallinfo+set}" = set; then
12734   :
12735 else
12736   ac_cv_search_mallinfo=no
12737 fi
12738 rm conftest.$ac_ext
12739 LIBS=$ac_func_search_save_LIBS
12740 fi
12741 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12742 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12743 ac_res=$ac_cv_search_mallinfo
12744 if test "$ac_res" != no; then
12745   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12746
12747 cat >>confdefs.h <<\_ACEOF
12748 #define HAVE_MALLINFO 1
12749 _ACEOF
12750
12751 fi
12752
12753
12754 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12755
12756 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12757 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12758 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12759   echo $ECHO_N "(cached) $ECHO_C" >&6
12760 else
12761   ac_check_lib_save_LIBS=$LIBS
12762 LIBS="-lpthread  $LIBS"
12763 cat >conftest.$ac_ext <<_ACEOF
12764 /* confdefs.h.  */
12765 _ACEOF
12766 cat confdefs.h >>conftest.$ac_ext
12767 cat >>conftest.$ac_ext <<_ACEOF
12768 /* end confdefs.h.  */
12769
12770 /* Override any GCC internal prototype to avoid an error.
12771    Use char because int might match the return type of a GCC
12772    builtin and then its argument prototype would still apply.  */
12773 #ifdef __cplusplus
12774 extern "C"
12775 #endif
12776 char pthread_mutex_init ();
12777 int
12778 main ()
12779 {
12780 return pthread_mutex_init ();
12781   ;
12782   return 0;
12783 }
12784 _ACEOF
12785 rm -f conftest.$ac_objext conftest$ac_exeext
12786 if { (ac_try="$ac_link"
12787 case "(($ac_try" in
12788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789   *) ac_try_echo=$ac_try;;
12790 esac
12791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792   (eval "$ac_link") 2>conftest.er1
12793   ac_status=$?
12794   grep -v '^ *+' conftest.er1 >conftest.err
12795   rm -f conftest.er1
12796   cat conftest.err >&5
12797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798   (exit $ac_status); } &&
12799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12800   { (case "(($ac_try" in
12801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802   *) ac_try_echo=$ac_try;;
12803 esac
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805   (eval "$ac_try") 2>&5
12806   ac_status=$?
12807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808   (exit $ac_status); }; } &&
12809          { ac_try='test -s conftest$ac_exeext'
12810   { (case "(($ac_try" in
12811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12812   *) ac_try_echo=$ac_try;;
12813 esac
12814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12815   (eval "$ac_try") 2>&5
12816   ac_status=$?
12817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818   (exit $ac_status); }; }; then
12819   ac_cv_lib_pthread_pthread_mutex_init=yes
12820 else
12821   echo "$as_me: failed program was:" >&5
12822 sed 's/^/| /' conftest.$ac_ext >&5
12823
12824         ac_cv_lib_pthread_pthread_mutex_init=no
12825 fi
12826
12827 rm -f core conftest.err conftest.$ac_objext \
12828       conftest$ac_exeext conftest.$ac_ext
12829 LIBS=$ac_check_lib_save_LIBS
12830 fi
12831 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12832 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12833 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12834   cat >>confdefs.h <<_ACEOF
12835 #define HAVE_LIBPTHREAD 1
12836 _ACEOF
12837
12838   LIBS="-lpthread $LIBS"
12839
12840 fi
12841
12842   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12843 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12844 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12845   echo $ECHO_N "(cached) $ECHO_C" >&6
12846 else
12847   ac_func_search_save_LIBS=$LIBS
12848 cat >conftest.$ac_ext <<_ACEOF
12849 /* confdefs.h.  */
12850 _ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h.  */
12854
12855 /* Override any GCC internal prototype to avoid an error.
12856    Use char because int might match the return type of a GCC
12857    builtin and then its argument prototype would still apply.  */
12858 #ifdef __cplusplus
12859 extern "C"
12860 #endif
12861 char pthread_mutex_lock ();
12862 int
12863 main ()
12864 {
12865 return pthread_mutex_lock ();
12866   ;
12867   return 0;
12868 }
12869 _ACEOF
12870 for ac_lib in '' pthread; do
12871   if test -z "$ac_lib"; then
12872     ac_res="none required"
12873   else
12874     ac_res=-l$ac_lib
12875     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12876   fi
12877   rm -f conftest.$ac_objext conftest$ac_exeext
12878 if { (ac_try="$ac_link"
12879 case "(($ac_try" in
12880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12881   *) ac_try_echo=$ac_try;;
12882 esac
12883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12884   (eval "$ac_link") 2>conftest.er1
12885   ac_status=$?
12886   grep -v '^ *+' conftest.er1 >conftest.err
12887   rm -f conftest.er1
12888   cat conftest.err >&5
12889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890   (exit $ac_status); } &&
12891          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12892   { (case "(($ac_try" in
12893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894   *) ac_try_echo=$ac_try;;
12895 esac
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897   (eval "$ac_try") 2>&5
12898   ac_status=$?
12899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); }; } &&
12901          { ac_try='test -s conftest$ac_exeext'
12902   { (case "(($ac_try" in
12903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904   *) ac_try_echo=$ac_try;;
12905 esac
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907   (eval "$ac_try") 2>&5
12908   ac_status=$?
12909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910   (exit $ac_status); }; }; then
12911   ac_cv_search_pthread_mutex_lock=$ac_res
12912 else
12913   echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12915
12916
12917 fi
12918
12919 rm -f core conftest.err conftest.$ac_objext \
12920       conftest$ac_exeext
12921   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12922   break
12923 fi
12924 done
12925 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12926   :
12927 else
12928   ac_cv_search_pthread_mutex_lock=no
12929 fi
12930 rm conftest.$ac_ext
12931 LIBS=$ac_func_search_save_LIBS
12932 fi
12933 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12934 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12935 ac_res=$ac_cv_search_pthread_mutex_lock
12936 if test "$ac_res" != no; then
12937   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12938
12939 cat >>confdefs.h <<\_ACEOF
12940 #define HAVE_PTHREAD_MUTEX_LOCK 1
12941 _ACEOF
12942
12943 fi
12944
12945   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12946 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12947 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12948   echo $ECHO_N "(cached) $ECHO_C" >&6
12949 else
12950   ac_func_search_save_LIBS=$LIBS
12951 cat >conftest.$ac_ext <<_ACEOF
12952 /* confdefs.h.  */
12953 _ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h.  */
12957
12958 /* Override any GCC internal prototype to avoid an error.
12959    Use char because int might match the return type of a GCC
12960    builtin and then its argument prototype would still apply.  */
12961 #ifdef __cplusplus
12962 extern "C"
12963 #endif
12964 char pthread_rwlock_init ();
12965 int
12966 main ()
12967 {
12968 return pthread_rwlock_init ();
12969   ;
12970   return 0;
12971 }
12972 _ACEOF
12973 for ac_lib in '' pthread; do
12974   if test -z "$ac_lib"; then
12975     ac_res="none required"
12976   else
12977     ac_res=-l$ac_lib
12978     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12979   fi
12980   rm -f conftest.$ac_objext conftest$ac_exeext
12981 if { (ac_try="$ac_link"
12982 case "(($ac_try" in
12983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984   *) ac_try_echo=$ac_try;;
12985 esac
12986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987   (eval "$ac_link") 2>conftest.er1
12988   ac_status=$?
12989   grep -v '^ *+' conftest.er1 >conftest.err
12990   rm -f conftest.er1
12991   cat conftest.err >&5
12992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993   (exit $ac_status); } &&
12994          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12995   { (case "(($ac_try" in
12996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12997   *) ac_try_echo=$ac_try;;
12998 esac
12999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13000   (eval "$ac_try") 2>&5
13001   ac_status=$?
13002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003   (exit $ac_status); }; } &&
13004          { ac_try='test -s conftest$ac_exeext'
13005   { (case "(($ac_try" in
13006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007   *) ac_try_echo=$ac_try;;
13008 esac
13009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010   (eval "$ac_try") 2>&5
13011   ac_status=$?
13012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013   (exit $ac_status); }; }; then
13014   ac_cv_search_pthread_rwlock_init=$ac_res
13015 else
13016   echo "$as_me: failed program was:" >&5
13017 sed 's/^/| /' conftest.$ac_ext >&5
13018
13019
13020 fi
13021
13022 rm -f core conftest.err conftest.$ac_objext \
13023       conftest$ac_exeext
13024   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13025   break
13026 fi
13027 done
13028 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13029   :
13030 else
13031   ac_cv_search_pthread_rwlock_init=no
13032 fi
13033 rm conftest.$ac_ext
13034 LIBS=$ac_func_search_save_LIBS
13035 fi
13036 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13037 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13038 ac_res=$ac_cv_search_pthread_rwlock_init
13039 if test "$ac_res" != no; then
13040   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13041
13042 cat >>confdefs.h <<\_ACEOF
13043 #define HAVE_PTHREAD_RWLOCK_INIT 1
13044 _ACEOF
13045
13046 fi
13047
13048   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13049 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13050 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13051   echo $ECHO_N "(cached) $ECHO_C" >&6
13052 else
13053   ac_func_search_save_LIBS=$LIBS
13054 cat >conftest.$ac_ext <<_ACEOF
13055 /* confdefs.h.  */
13056 _ACEOF
13057 cat confdefs.h >>conftest.$ac_ext
13058 cat >>conftest.$ac_ext <<_ACEOF
13059 /* end confdefs.h.  */
13060
13061 /* Override any GCC internal prototype to avoid an error.
13062    Use char because int might match the return type of a GCC
13063    builtin and then its argument prototype would still apply.  */
13064 #ifdef __cplusplus
13065 extern "C"
13066 #endif
13067 char pthread_getspecific ();
13068 int
13069 main ()
13070 {
13071 return pthread_getspecific ();
13072   ;
13073   return 0;
13074 }
13075 _ACEOF
13076 for ac_lib in '' pthread; do
13077   if test -z "$ac_lib"; then
13078     ac_res="none required"
13079   else
13080     ac_res=-l$ac_lib
13081     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13082   fi
13083   rm -f conftest.$ac_objext conftest$ac_exeext
13084 if { (ac_try="$ac_link"
13085 case "(($ac_try" in
13086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087   *) ac_try_echo=$ac_try;;
13088 esac
13089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090   (eval "$ac_link") 2>conftest.er1
13091   ac_status=$?
13092   grep -v '^ *+' conftest.er1 >conftest.err
13093   rm -f conftest.er1
13094   cat conftest.err >&5
13095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096   (exit $ac_status); } &&
13097          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13098   { (case "(($ac_try" in
13099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13100   *) ac_try_echo=$ac_try;;
13101 esac
13102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13103   (eval "$ac_try") 2>&5
13104   ac_status=$?
13105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106   (exit $ac_status); }; } &&
13107          { ac_try='test -s conftest$ac_exeext'
13108   { (case "(($ac_try" in
13109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110   *) ac_try_echo=$ac_try;;
13111 esac
13112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113   (eval "$ac_try") 2>&5
13114   ac_status=$?
13115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116   (exit $ac_status); }; }; then
13117   ac_cv_search_pthread_getspecific=$ac_res
13118 else
13119   echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13121
13122
13123 fi
13124
13125 rm -f core conftest.err conftest.$ac_objext \
13126       conftest$ac_exeext
13127   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13128   break
13129 fi
13130 done
13131 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13132   :
13133 else
13134   ac_cv_search_pthread_getspecific=no
13135 fi
13136 rm conftest.$ac_ext
13137 LIBS=$ac_func_search_save_LIBS
13138 fi
13139 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13140 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13141 ac_res=$ac_cv_search_pthread_getspecific
13142 if test "$ac_res" != no; then
13143   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13144
13145 cat >>confdefs.h <<\_ACEOF
13146 #define HAVE_PTHREAD_GETSPECIFIC 1
13147 _ACEOF
13148
13149 fi
13150
13151 fi
13152
13153
13154 # Check whether --with-udis86 was given.
13155 if test "${with_udis86+set}" = set; then
13156   withval=$with_udis86;
13157       USE_UDIS86=1
13158
13159       case "$withval" in
13160         /usr/lib|yes) ;;
13161         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13162       esac
13163
13164 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13165 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13166 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13167   echo $ECHO_N "(cached) $ECHO_C" >&6
13168 else
13169   ac_check_lib_save_LIBS=$LIBS
13170 LIBS="-ludis86  $LIBS"
13171 cat >conftest.$ac_ext <<_ACEOF
13172 /* confdefs.h.  */
13173 _ACEOF
13174 cat confdefs.h >>conftest.$ac_ext
13175 cat >>conftest.$ac_ext <<_ACEOF
13176 /* end confdefs.h.  */
13177
13178 /* Override any GCC internal prototype to avoid an error.
13179    Use char because int might match the return type of a GCC
13180    builtin and then its argument prototype would still apply.  */
13181 #ifdef __cplusplus
13182 extern "C"
13183 #endif
13184 char ud_init ();
13185 int
13186 main ()
13187 {
13188 return ud_init ();
13189   ;
13190   return 0;
13191 }
13192 _ACEOF
13193 rm -f conftest.$ac_objext conftest$ac_exeext
13194 if { (ac_try="$ac_link"
13195 case "(($ac_try" in
13196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197   *) ac_try_echo=$ac_try;;
13198 esac
13199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200   (eval "$ac_link") 2>conftest.er1
13201   ac_status=$?
13202   grep -v '^ *+' conftest.er1 >conftest.err
13203   rm -f conftest.er1
13204   cat conftest.err >&5
13205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206   (exit $ac_status); } &&
13207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13208   { (case "(($ac_try" in
13209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210   *) ac_try_echo=$ac_try;;
13211 esac
13212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213   (eval "$ac_try") 2>&5
13214   ac_status=$?
13215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216   (exit $ac_status); }; } &&
13217          { ac_try='test -s conftest$ac_exeext'
13218   { (case "(($ac_try" in
13219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220   *) ac_try_echo=$ac_try;;
13221 esac
13222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223   (eval "$ac_try") 2>&5
13224   ac_status=$?
13225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226   (exit $ac_status); }; }; then
13227   ac_cv_lib_udis86_ud_init=yes
13228 else
13229   echo "$as_me: failed program was:" >&5
13230 sed 's/^/| /' conftest.$ac_ext >&5
13231
13232         ac_cv_lib_udis86_ud_init=no
13233 fi
13234
13235 rm -f core conftest.err conftest.$ac_objext \
13236       conftest$ac_exeext conftest.$ac_ext
13237 LIBS=$ac_check_lib_save_LIBS
13238 fi
13239 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13240 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13241 if test $ac_cv_lib_udis86_ud_init = yes; then
13242   cat >>confdefs.h <<_ACEOF
13243 #define HAVE_LIBUDIS86 1
13244 _ACEOF
13245
13246   LIBS="-ludis86 $LIBS"
13247
13248 else
13249
13250         echo "Error! You need to have libudis86 around."
13251         exit -1
13252
13253 fi
13254
13255
13256 else
13257   USE_UDIS86=0
13258
13259 fi
13260
13261
13262 cat >>confdefs.h <<_ACEOF
13263 #define USE_UDIS86 $USE_UDIS86
13264 _ACEOF
13265
13266
13267
13268 # Check whether --with-oprofile was given.
13269 if test "${with_oprofile+set}" = set; then
13270   withval=$with_oprofile;
13271       USE_OPROFILE=1
13272
13273       case "$withval" in
13274         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13275         no) llvm_cv_oppath=
13276             USE_OPROFILE=0
13277  ;;
13278         *) llvm_cv_oppath="${withval}/lib/oprofile"
13279            CPPFLAGS="-I${withval}/include";;
13280       esac
13281       if test -n "$llvm_cv_oppath" ; then
13282         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13283                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13284 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13285 if test "${ac_cv_search_bfd_init+set}" = set; then
13286   echo $ECHO_N "(cached) $ECHO_C" >&6
13287 else
13288   ac_func_search_save_LIBS=$LIBS
13289 cat >conftest.$ac_ext <<_ACEOF
13290 /* confdefs.h.  */
13291 _ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h.  */
13295
13296 /* Override any GCC internal prototype to avoid an error.
13297    Use char because int might match the return type of a GCC
13298    builtin and then its argument prototype would still apply.  */
13299 #ifdef __cplusplus
13300 extern "C"
13301 #endif
13302 char bfd_init ();
13303 int
13304 main ()
13305 {
13306 return bfd_init ();
13307   ;
13308   return 0;
13309 }
13310 _ACEOF
13311 for ac_lib in '' bfd; do
13312   if test -z "$ac_lib"; then
13313     ac_res="none required"
13314   else
13315     ac_res=-l$ac_lib
13316     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13317   fi
13318   rm -f conftest.$ac_objext conftest$ac_exeext
13319 if { (ac_try="$ac_link"
13320 case "(($ac_try" in
13321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13322   *) ac_try_echo=$ac_try;;
13323 esac
13324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325   (eval "$ac_link") 2>conftest.er1
13326   ac_status=$?
13327   grep -v '^ *+' conftest.er1 >conftest.err
13328   rm -f conftest.er1
13329   cat conftest.err >&5
13330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331   (exit $ac_status); } &&
13332          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13333   { (case "(($ac_try" in
13334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335   *) ac_try_echo=$ac_try;;
13336 esac
13337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338   (eval "$ac_try") 2>&5
13339   ac_status=$?
13340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341   (exit $ac_status); }; } &&
13342          { ac_try='test -s conftest$ac_exeext'
13343   { (case "(($ac_try" in
13344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13345   *) ac_try_echo=$ac_try;;
13346 esac
13347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13348   (eval "$ac_try") 2>&5
13349   ac_status=$?
13350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351   (exit $ac_status); }; }; then
13352   ac_cv_search_bfd_init=$ac_res
13353 else
13354   echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13356
13357
13358 fi
13359
13360 rm -f core conftest.err conftest.$ac_objext \
13361       conftest$ac_exeext
13362   if test "${ac_cv_search_bfd_init+set}" = set; then
13363   break
13364 fi
13365 done
13366 if test "${ac_cv_search_bfd_init+set}" = set; then
13367   :
13368 else
13369   ac_cv_search_bfd_init=no
13370 fi
13371 rm conftest.$ac_ext
13372 LIBS=$ac_func_search_save_LIBS
13373 fi
13374 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13375 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13376 ac_res=$ac_cv_search_bfd_init
13377 if test "$ac_res" != no; then
13378   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13379
13380 fi
13381
13382         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13383 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13384 if test "${ac_cv_search_op_open_agent+set}" = set; then
13385   echo $ECHO_N "(cached) $ECHO_C" >&6
13386 else
13387   ac_func_search_save_LIBS=$LIBS
13388 cat >conftest.$ac_ext <<_ACEOF
13389 /* confdefs.h.  */
13390 _ACEOF
13391 cat confdefs.h >>conftest.$ac_ext
13392 cat >>conftest.$ac_ext <<_ACEOF
13393 /* end confdefs.h.  */
13394
13395 /* Override any GCC internal prototype to avoid an error.
13396    Use char because int might match the return type of a GCC
13397    builtin and then its argument prototype would still apply.  */
13398 #ifdef __cplusplus
13399 extern "C"
13400 #endif
13401 char op_open_agent ();
13402 int
13403 main ()
13404 {
13405 return op_open_agent ();
13406   ;
13407   return 0;
13408 }
13409 _ACEOF
13410 for ac_lib in '' opagent; do
13411   if test -z "$ac_lib"; then
13412     ac_res="none required"
13413   else
13414     ac_res=-l$ac_lib
13415     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13416   fi
13417   rm -f conftest.$ac_objext conftest$ac_exeext
13418 if { (ac_try="$ac_link"
13419 case "(($ac_try" in
13420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421   *) ac_try_echo=$ac_try;;
13422 esac
13423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424   (eval "$ac_link") 2>conftest.er1
13425   ac_status=$?
13426   grep -v '^ *+' conftest.er1 >conftest.err
13427   rm -f conftest.er1
13428   cat conftest.err >&5
13429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430   (exit $ac_status); } &&
13431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13432   { (case "(($ac_try" in
13433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13434   *) ac_try_echo=$ac_try;;
13435 esac
13436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13437   (eval "$ac_try") 2>&5
13438   ac_status=$?
13439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440   (exit $ac_status); }; } &&
13441          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
13448   ac_status=$?
13449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450   (exit $ac_status); }; }; then
13451   ac_cv_search_op_open_agent=$ac_res
13452 else
13453   echo "$as_me: failed program was:" >&5
13454 sed 's/^/| /' conftest.$ac_ext >&5
13455
13456
13457 fi
13458
13459 rm -f core conftest.err conftest.$ac_objext \
13460       conftest$ac_exeext
13461   if test "${ac_cv_search_op_open_agent+set}" = set; then
13462   break
13463 fi
13464 done
13465 if test "${ac_cv_search_op_open_agent+set}" = set; then
13466   :
13467 else
13468   ac_cv_search_op_open_agent=no
13469 fi
13470 rm conftest.$ac_ext
13471 LIBS=$ac_func_search_save_LIBS
13472 fi
13473 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13474 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13475 ac_res=$ac_cv_search_op_open_agent
13476 if test "$ac_res" != no; then
13477   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13478
13479 else
13480
13481           echo "Error! You need to have libopagent around."
13482           exit -1
13483
13484 fi
13485
13486         if test "${ac_cv_header_opagent_h+set}" = set; then
13487   { echo "$as_me:$LINENO: checking for opagent.h" >&5
13488 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13489 if test "${ac_cv_header_opagent_h+set}" = set; then
13490   echo $ECHO_N "(cached) $ECHO_C" >&6
13491 fi
13492 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13493 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13494 else
13495   # Is the header compilable?
13496 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13497 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13498 cat >conftest.$ac_ext <<_ACEOF
13499 /* confdefs.h.  */
13500 _ACEOF
13501 cat confdefs.h >>conftest.$ac_ext
13502 cat >>conftest.$ac_ext <<_ACEOF
13503 /* end confdefs.h.  */
13504 $ac_includes_default
13505 #include <opagent.h>
13506 _ACEOF
13507 rm -f conftest.$ac_objext
13508 if { (ac_try="$ac_compile"
13509 case "(($ac_try" in
13510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13511   *) ac_try_echo=$ac_try;;
13512 esac
13513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13514   (eval "$ac_compile") 2>conftest.er1
13515   ac_status=$?
13516   grep -v '^ *+' conftest.er1 >conftest.err
13517   rm -f conftest.er1
13518   cat conftest.err >&5
13519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520   (exit $ac_status); } &&
13521          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13522   { (case "(($ac_try" in
13523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524   *) ac_try_echo=$ac_try;;
13525 esac
13526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527   (eval "$ac_try") 2>&5
13528   ac_status=$?
13529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530   (exit $ac_status); }; } &&
13531          { ac_try='test -s conftest.$ac_objext'
13532   { (case "(($ac_try" in
13533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13534   *) ac_try_echo=$ac_try;;
13535 esac
13536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13537   (eval "$ac_try") 2>&5
13538   ac_status=$?
13539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540   (exit $ac_status); }; }; then
13541   ac_header_compiler=yes
13542 else
13543   echo "$as_me: failed program was:" >&5
13544 sed 's/^/| /' conftest.$ac_ext >&5
13545
13546         ac_header_compiler=no
13547 fi
13548
13549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13550 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13551 echo "${ECHO_T}$ac_header_compiler" >&6; }
13552
13553 # Is the header present?
13554 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13555 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13556 cat >conftest.$ac_ext <<_ACEOF
13557 /* confdefs.h.  */
13558 _ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h.  */
13562 #include <opagent.h>
13563 _ACEOF
13564 if { (ac_try="$ac_cpp conftest.$ac_ext"
13565 case "(($ac_try" in
13566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567   *) ac_try_echo=$ac_try;;
13568 esac
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13571   ac_status=$?
13572   grep -v '^ *+' conftest.er1 >conftest.err
13573   rm -f conftest.er1
13574   cat conftest.err >&5
13575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576   (exit $ac_status); } >/dev/null; then
13577   if test -s conftest.err; then
13578     ac_cpp_err=$ac_c_preproc_warn_flag
13579     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13580   else
13581     ac_cpp_err=
13582   fi
13583 else
13584   ac_cpp_err=yes
13585 fi
13586 if test -z "$ac_cpp_err"; then
13587   ac_header_preproc=yes
13588 else
13589   echo "$as_me: failed program was:" >&5
13590 sed 's/^/| /' conftest.$ac_ext >&5
13591
13592   ac_header_preproc=no
13593 fi
13594
13595 rm -f conftest.err conftest.$ac_ext
13596 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13597 echo "${ECHO_T}$ac_header_preproc" >&6; }
13598
13599 # So?  What about this header?
13600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13601   yes:no: )
13602     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13603 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13604     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13605 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13606     ac_header_preproc=yes
13607     ;;
13608   no:yes:* )
13609     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13610 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13611     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
13612 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
13613     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13614 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13615     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
13616 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13617     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13618 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13619     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13620 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13621     ( cat <<\_ASBOX
13622 ## ------------------------------ ##
13623 ## Report this to bugs@yourdomain ##
13624 ## ------------------------------ ##
13625 _ASBOX
13626      ) | sed "s/^/$as_me: WARNING:     /" >&2
13627     ;;
13628 esac
13629 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13630 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13631 if test "${ac_cv_header_opagent_h+set}" = set; then
13632   echo $ECHO_N "(cached) $ECHO_C" >&6
13633 else
13634   ac_cv_header_opagent_h=$ac_header_preproc
13635 fi
13636 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13637 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13638
13639 fi
13640 if test $ac_cv_header_opagent_h = yes; then
13641   :
13642 else
13643
13644           echo "Error! You need to have opagent.h around."
13645           exit -1
13646
13647 fi
13648
13649
13650       fi
13651
13652 else
13653
13654       USE_OPROFILE=0
13655
13656
13657 fi
13658
13659
13660 cat >>confdefs.h <<_ACEOF
13661 #define USE_OPROFILE $USE_OPROFILE
13662 _ACEOF
13663
13664
13665
13666
13667
13668
13669
13670
13671 ac_header_dirent=no
13672 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13673   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13674 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13675 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13677   echo $ECHO_N "(cached) $ECHO_C" >&6
13678 else
13679   cat >conftest.$ac_ext <<_ACEOF
13680 /* confdefs.h.  */
13681 _ACEOF
13682 cat confdefs.h >>conftest.$ac_ext
13683 cat >>conftest.$ac_ext <<_ACEOF
13684 /* end confdefs.h.  */
13685 #include <sys/types.h>
13686 #include <$ac_hdr>
13687
13688 int
13689 main ()
13690 {
13691 if ((DIR *) 0)
13692 return 0;
13693   ;
13694   return 0;
13695 }
13696 _ACEOF
13697 rm -f conftest.$ac_objext
13698 if { (ac_try="$ac_compile"
13699 case "(($ac_try" in
13700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701   *) ac_try_echo=$ac_try;;
13702 esac
13703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13704   (eval "$ac_compile") 2>conftest.er1
13705   ac_status=$?
13706   grep -v '^ *+' conftest.er1 >conftest.err
13707   rm -f conftest.er1
13708   cat conftest.err >&5
13709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710   (exit $ac_status); } &&
13711          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13712   { (case "(($ac_try" in
13713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714   *) ac_try_echo=$ac_try;;
13715 esac
13716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717   (eval "$ac_try") 2>&5
13718   ac_status=$?
13719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720   (exit $ac_status); }; } &&
13721          { ac_try='test -s conftest.$ac_objext'
13722   { (case "(($ac_try" in
13723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13724   *) ac_try_echo=$ac_try;;
13725 esac
13726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13727   (eval "$ac_try") 2>&5
13728   ac_status=$?
13729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730   (exit $ac_status); }; }; then
13731   eval "$as_ac_Header=yes"
13732 else
13733   echo "$as_me: failed program was:" >&5
13734 sed 's/^/| /' conftest.$ac_ext >&5
13735
13736         eval "$as_ac_Header=no"
13737 fi
13738
13739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13740 fi
13741 ac_res=`eval echo '${'$as_ac_Header'}'`
13742                { echo "$as_me:$LINENO: result: $ac_res" >&5
13743 echo "${ECHO_T}$ac_res" >&6; }
13744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13745   cat >>confdefs.h <<_ACEOF
13746 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13747 _ACEOF
13748
13749 ac_header_dirent=$ac_hdr; break
13750 fi
13751
13752 done
13753 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13754 if test $ac_header_dirent = dirent.h; then
13755   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13756 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13757 if test "${ac_cv_search_opendir+set}" = set; then
13758   echo $ECHO_N "(cached) $ECHO_C" >&6
13759 else
13760   ac_func_search_save_LIBS=$LIBS
13761 cat >conftest.$ac_ext <<_ACEOF
13762 /* confdefs.h.  */
13763 _ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h.  */
13767
13768 /* Override any GCC internal prototype to avoid an error.
13769    Use char because int might match the return type of a GCC
13770    builtin and then its argument prototype would still apply.  */
13771 #ifdef __cplusplus
13772 extern "C"
13773 #endif
13774 char opendir ();
13775 int
13776 main ()
13777 {
13778 return opendir ();
13779   ;
13780   return 0;
13781 }
13782 _ACEOF
13783 for ac_lib in '' dir; do
13784   if test -z "$ac_lib"; then
13785     ac_res="none required"
13786   else
13787     ac_res=-l$ac_lib
13788     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13789   fi
13790   rm -f conftest.$ac_objext conftest$ac_exeext
13791 if { (ac_try="$ac_link"
13792 case "(($ac_try" in
13793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794   *) ac_try_echo=$ac_try;;
13795 esac
13796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13797   (eval "$ac_link") 2>conftest.er1
13798   ac_status=$?
13799   grep -v '^ *+' conftest.er1 >conftest.err
13800   rm -f conftest.er1
13801   cat conftest.err >&5
13802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803   (exit $ac_status); } &&
13804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13805   { (case "(($ac_try" in
13806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807   *) ac_try_echo=$ac_try;;
13808 esac
13809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13810   (eval "$ac_try") 2>&5
13811   ac_status=$?
13812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813   (exit $ac_status); }; } &&
13814          { ac_try='test -s conftest$ac_exeext'
13815   { (case "(($ac_try" in
13816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817   *) ac_try_echo=$ac_try;;
13818 esac
13819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13820   (eval "$ac_try") 2>&5
13821   ac_status=$?
13822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823   (exit $ac_status); }; }; then
13824   ac_cv_search_opendir=$ac_res
13825 else
13826   echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13828
13829
13830 fi
13831
13832 rm -f core conftest.err conftest.$ac_objext \
13833       conftest$ac_exeext
13834   if test "${ac_cv_search_opendir+set}" = set; then
13835   break
13836 fi
13837 done
13838 if test "${ac_cv_search_opendir+set}" = set; then
13839   :
13840 else
13841   ac_cv_search_opendir=no
13842 fi
13843 rm conftest.$ac_ext
13844 LIBS=$ac_func_search_save_LIBS
13845 fi
13846 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13847 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13848 ac_res=$ac_cv_search_opendir
13849 if test "$ac_res" != no; then
13850   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13851
13852 fi
13853
13854 else
13855   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13856 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13857 if test "${ac_cv_search_opendir+set}" = set; then
13858   echo $ECHO_N "(cached) $ECHO_C" >&6
13859 else
13860   ac_func_search_save_LIBS=$LIBS
13861 cat >conftest.$ac_ext <<_ACEOF
13862 /* confdefs.h.  */
13863 _ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h.  */
13867
13868 /* Override any GCC internal prototype to avoid an error.
13869    Use char because int might match the return type of a GCC
13870    builtin and then its argument prototype would still apply.  */
13871 #ifdef __cplusplus
13872 extern "C"
13873 #endif
13874 char opendir ();
13875 int
13876 main ()
13877 {
13878 return opendir ();
13879   ;
13880   return 0;
13881 }
13882 _ACEOF
13883 for ac_lib in '' x; do
13884   if test -z "$ac_lib"; then
13885     ac_res="none required"
13886   else
13887     ac_res=-l$ac_lib
13888     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13889   fi
13890   rm -f conftest.$ac_objext conftest$ac_exeext
13891 if { (ac_try="$ac_link"
13892 case "(($ac_try" in
13893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894   *) ac_try_echo=$ac_try;;
13895 esac
13896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13897   (eval "$ac_link") 2>conftest.er1
13898   ac_status=$?
13899   grep -v '^ *+' conftest.er1 >conftest.err
13900   rm -f conftest.er1
13901   cat conftest.err >&5
13902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903   (exit $ac_status); } &&
13904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13905   { (case "(($ac_try" in
13906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907   *) ac_try_echo=$ac_try;;
13908 esac
13909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910   (eval "$ac_try") 2>&5
13911   ac_status=$?
13912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913   (exit $ac_status); }; } &&
13914          { ac_try='test -s conftest$ac_exeext'
13915   { (case "(($ac_try" in
13916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13917   *) ac_try_echo=$ac_try;;
13918 esac
13919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13920   (eval "$ac_try") 2>&5
13921   ac_status=$?
13922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923   (exit $ac_status); }; }; then
13924   ac_cv_search_opendir=$ac_res
13925 else
13926   echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13928
13929
13930 fi
13931
13932 rm -f core conftest.err conftest.$ac_objext \
13933       conftest$ac_exeext
13934   if test "${ac_cv_search_opendir+set}" = set; then
13935   break
13936 fi
13937 done
13938 if test "${ac_cv_search_opendir+set}" = set; then
13939   :
13940 else
13941   ac_cv_search_opendir=no
13942 fi
13943 rm conftest.$ac_ext
13944 LIBS=$ac_func_search_save_LIBS
13945 fi
13946 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13947 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13948 ac_res=$ac_cv_search_opendir
13949 if test "$ac_res" != no; then
13950   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13951
13952 fi
13953
13954 fi
13955
13956 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13957 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13958 if test "${ac_cv_header_mmap_anon+set}" = set; then
13959   echo $ECHO_N "(cached) $ECHO_C" >&6
13960 else
13961    ac_ext=c
13962 ac_cpp='$CPP $CPPFLAGS'
13963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13966
13967   cat >conftest.$ac_ext <<_ACEOF
13968 /* confdefs.h.  */
13969 _ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h.  */
13973 #include <sys/mman.h>
13974 #include <unistd.h>
13975 #include <fcntl.h>
13976 int
13977 main ()
13978 {
13979 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13980   ;
13981   return 0;
13982 }
13983 _ACEOF
13984 rm -f conftest.$ac_objext
13985 if { (ac_try="$ac_compile"
13986 case "(($ac_try" in
13987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13988   *) ac_try_echo=$ac_try;;
13989 esac
13990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13991   (eval "$ac_compile") 2>conftest.er1
13992   ac_status=$?
13993   grep -v '^ *+' conftest.er1 >conftest.err
13994   rm -f conftest.er1
13995   cat conftest.err >&5
13996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997   (exit $ac_status); } &&
13998          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13999   { (case "(($ac_try" in
14000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14001   *) ac_try_echo=$ac_try;;
14002 esac
14003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14004   (eval "$ac_try") 2>&5
14005   ac_status=$?
14006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007   (exit $ac_status); }; } &&
14008          { ac_try='test -s conftest.$ac_objext'
14009   { (case "(($ac_try" in
14010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14011   *) ac_try_echo=$ac_try;;
14012 esac
14013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14014   (eval "$ac_try") 2>&5
14015   ac_status=$?
14016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017   (exit $ac_status); }; }; then
14018   ac_cv_header_mmap_anon=yes
14019 else
14020   echo "$as_me: failed program was:" >&5
14021 sed 's/^/| /' conftest.$ac_ext >&5
14022
14023         ac_cv_header_mmap_anon=no
14024 fi
14025
14026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14027   ac_ext=c
14028 ac_cpp='$CPP $CPPFLAGS'
14029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14032
14033
14034 fi
14035 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14036 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14037 if test "$ac_cv_header_mmap_anon" = yes; then
14038
14039 cat >>confdefs.h <<\_ACEOF
14040 #define HAVE_MMAP_ANONYMOUS 1
14041 _ACEOF
14042
14043 fi
14044
14045 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14046 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14047 if test "${ac_cv_header_stat_broken+set}" = set; then
14048   echo $ECHO_N "(cached) $ECHO_C" >&6
14049 else
14050   cat >conftest.$ac_ext <<_ACEOF
14051 /* confdefs.h.  */
14052 _ACEOF
14053 cat confdefs.h >>conftest.$ac_ext
14054 cat >>conftest.$ac_ext <<_ACEOF
14055 /* end confdefs.h.  */
14056 #include <sys/types.h>
14057 #include <sys/stat.h>
14058
14059 #if defined S_ISBLK && defined S_IFDIR
14060 # if S_ISBLK (S_IFDIR)
14061 You lose.
14062 # endif
14063 #endif
14064
14065 #if defined S_ISBLK && defined S_IFCHR
14066 # if S_ISBLK (S_IFCHR)
14067 You lose.
14068 # endif
14069 #endif
14070
14071 #if defined S_ISLNK && defined S_IFREG
14072 # if S_ISLNK (S_IFREG)
14073 You lose.
14074 # endif
14075 #endif
14076
14077 #if defined S_ISSOCK && defined S_IFREG
14078 # if S_ISSOCK (S_IFREG)
14079 You lose.
14080 # endif
14081 #endif
14082
14083 _ACEOF
14084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14085   $EGREP "You lose" >/dev/null 2>&1; then
14086   ac_cv_header_stat_broken=yes
14087 else
14088   ac_cv_header_stat_broken=no
14089 fi
14090 rm -f conftest*
14091
14092 fi
14093 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14094 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14095 if test $ac_cv_header_stat_broken = yes; then
14096
14097 cat >>confdefs.h <<\_ACEOF
14098 #define STAT_MACROS_BROKEN 1
14099 _ACEOF
14100
14101 fi
14102
14103 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14104 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14105 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14106   echo $ECHO_N "(cached) $ECHO_C" >&6
14107 else
14108   cat >conftest.$ac_ext <<_ACEOF
14109 /* confdefs.h.  */
14110 _ACEOF
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h.  */
14114 #include <sys/types.h>
14115 #include <sys/wait.h>
14116 #ifndef WEXITSTATUS
14117 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14118 #endif
14119 #ifndef WIFEXITED
14120 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14121 #endif
14122
14123 int
14124 main ()
14125 {
14126   int s;
14127   wait (&s);
14128   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14129   ;
14130   return 0;
14131 }
14132 _ACEOF
14133 rm -f conftest.$ac_objext
14134 if { (ac_try="$ac_compile"
14135 case "(($ac_try" in
14136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14137   *) ac_try_echo=$ac_try;;
14138 esac
14139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14140   (eval "$ac_compile") 2>conftest.er1
14141   ac_status=$?
14142   grep -v '^ *+' conftest.er1 >conftest.err
14143   rm -f conftest.er1
14144   cat conftest.err >&5
14145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146   (exit $ac_status); } &&
14147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14148   { (case "(($ac_try" in
14149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14150   *) ac_try_echo=$ac_try;;
14151 esac
14152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14153   (eval "$ac_try") 2>&5
14154   ac_status=$?
14155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156   (exit $ac_status); }; } &&
14157          { ac_try='test -s conftest.$ac_objext'
14158   { (case "(($ac_try" in
14159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14160   *) ac_try_echo=$ac_try;;
14161 esac
14162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14163   (eval "$ac_try") 2>&5
14164   ac_status=$?
14165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166   (exit $ac_status); }; }; then
14167   ac_cv_header_sys_wait_h=yes
14168 else
14169   echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.$ac_ext >&5
14171
14172         ac_cv_header_sys_wait_h=no
14173 fi
14174
14175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14176 fi
14177 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14178 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14179 if test $ac_cv_header_sys_wait_h = yes; then
14180
14181 cat >>confdefs.h <<\_ACEOF
14182 #define HAVE_SYS_WAIT_H 1
14183 _ACEOF
14184
14185 fi
14186
14187 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14188 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14189 if test "${ac_cv_header_time+set}" = set; then
14190   echo $ECHO_N "(cached) $ECHO_C" >&6
14191 else
14192   cat >conftest.$ac_ext <<_ACEOF
14193 /* confdefs.h.  */
14194 _ACEOF
14195 cat confdefs.h >>conftest.$ac_ext
14196 cat >>conftest.$ac_ext <<_ACEOF
14197 /* end confdefs.h.  */
14198 #include <sys/types.h>
14199 #include <sys/time.h>
14200 #include <time.h>
14201
14202 int
14203 main ()
14204 {
14205 if ((struct tm *) 0)
14206 return 0;
14207   ;
14208   return 0;
14209 }
14210 _ACEOF
14211 rm -f conftest.$ac_objext
14212 if { (ac_try="$ac_compile"
14213 case "(($ac_try" in
14214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14215   *) ac_try_echo=$ac_try;;
14216 esac
14217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14218   (eval "$ac_compile") 2>conftest.er1
14219   ac_status=$?
14220   grep -v '^ *+' conftest.er1 >conftest.err
14221   rm -f conftest.er1
14222   cat conftest.err >&5
14223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224   (exit $ac_status); } &&
14225          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14226   { (case "(($ac_try" in
14227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14228   *) ac_try_echo=$ac_try;;
14229 esac
14230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231   (eval "$ac_try") 2>&5
14232   ac_status=$?
14233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234   (exit $ac_status); }; } &&
14235          { ac_try='test -s conftest.$ac_objext'
14236   { (case "(($ac_try" in
14237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238   *) ac_try_echo=$ac_try;;
14239 esac
14240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241   (eval "$ac_try") 2>&5
14242   ac_status=$?
14243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244   (exit $ac_status); }; }; then
14245   ac_cv_header_time=yes
14246 else
14247   echo "$as_me: failed program was:" >&5
14248 sed 's/^/| /' conftest.$ac_ext >&5
14249
14250         ac_cv_header_time=no
14251 fi
14252
14253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14254 fi
14255 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14256 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14257 if test $ac_cv_header_time = yes; then
14258
14259 cat >>confdefs.h <<\_ACEOF
14260 #define TIME_WITH_SYS_TIME 1
14261 _ACEOF
14262
14263 fi
14264
14265
14266
14267
14268
14269
14270
14271
14272 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14273 do
14274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14276   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14279   echo $ECHO_N "(cached) $ECHO_C" >&6
14280 fi
14281 ac_res=`eval echo '${'$as_ac_Header'}'`
14282                { echo "$as_me:$LINENO: result: $ac_res" >&5
14283 echo "${ECHO_T}$ac_res" >&6; }
14284 else
14285   # Is the header compilable?
14286 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14288 cat >conftest.$ac_ext <<_ACEOF
14289 /* confdefs.h.  */
14290 _ACEOF
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h.  */
14294 $ac_includes_default
14295 #include <$ac_header>
14296 _ACEOF
14297 rm -f conftest.$ac_objext
14298 if { (ac_try="$ac_compile"
14299 case "(($ac_try" in
14300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14301   *) ac_try_echo=$ac_try;;
14302 esac
14303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14304   (eval "$ac_compile") 2>conftest.er1
14305   ac_status=$?
14306   grep -v '^ *+' conftest.er1 >conftest.err
14307   rm -f conftest.er1
14308   cat conftest.err >&5
14309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310   (exit $ac_status); } &&
14311          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14312   { (case "(($ac_try" in
14313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14314   *) ac_try_echo=$ac_try;;
14315 esac
14316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14317   (eval "$ac_try") 2>&5
14318   ac_status=$?
14319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320   (exit $ac_status); }; } &&
14321          { ac_try='test -s conftest.$ac_objext'
14322   { (case "(($ac_try" in
14323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14324   *) ac_try_echo=$ac_try;;
14325 esac
14326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14327   (eval "$ac_try") 2>&5
14328   ac_status=$?
14329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330   (exit $ac_status); }; }; then
14331   ac_header_compiler=yes
14332 else
14333   echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14335
14336         ac_header_compiler=no
14337 fi
14338
14339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14340 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14341 echo "${ECHO_T}$ac_header_compiler" >&6; }
14342
14343 # Is the header present?
14344 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14346 cat >conftest.$ac_ext <<_ACEOF
14347 /* confdefs.h.  */
14348 _ACEOF
14349 cat confdefs.h >>conftest.$ac_ext
14350 cat >>conftest.$ac_ext <<_ACEOF
14351 /* end confdefs.h.  */
14352 #include <$ac_header>
14353 _ACEOF
14354 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
14361   ac_status=$?
14362   grep -v '^ *+' conftest.er1 >conftest.err
14363   rm -f conftest.er1
14364   cat conftest.err >&5
14365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366   (exit $ac_status); } >/dev/null; then
14367   if test -s conftest.err; then
14368     ac_cpp_err=$ac_c_preproc_warn_flag
14369     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14370   else
14371     ac_cpp_err=
14372   fi
14373 else
14374   ac_cpp_err=yes
14375 fi
14376 if test -z "$ac_cpp_err"; then
14377   ac_header_preproc=yes
14378 else
14379   echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14381
14382   ac_header_preproc=no
14383 fi
14384
14385 rm -f conftest.err conftest.$ac_ext
14386 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14387 echo "${ECHO_T}$ac_header_preproc" >&6; }
14388
14389 # So?  What about this header?
14390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14391   yes:no: )
14392     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14394     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14396     ac_header_preproc=yes
14397     ;;
14398   no:yes:* )
14399     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14401     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14402 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14403     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14405     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14406 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14409     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14411     ( cat <<\_ASBOX
14412 ## ------------------------------ ##
14413 ## Report this to bugs@yourdomain ##
14414 ## ------------------------------ ##
14415 _ASBOX
14416      ) | sed "s/^/$as_me: WARNING:     /" >&2
14417     ;;
14418 esac
14419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14422   echo $ECHO_N "(cached) $ECHO_C" >&6
14423 else
14424   eval "$as_ac_Header=\$ac_header_preproc"
14425 fi
14426 ac_res=`eval echo '${'$as_ac_Header'}'`
14427                { echo "$as_me:$LINENO: result: $ac_res" >&5
14428 echo "${ECHO_T}$ac_res" >&6; }
14429
14430 fi
14431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14432   cat >>confdefs.h <<_ACEOF
14433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14434 _ACEOF
14435
14436 fi
14437
14438 done
14439
14440
14441
14442
14443
14444
14445
14446 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14447 do
14448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14450   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14453   echo $ECHO_N "(cached) $ECHO_C" >&6
14454 fi
14455 ac_res=`eval echo '${'$as_ac_Header'}'`
14456                { echo "$as_me:$LINENO: result: $ac_res" >&5
14457 echo "${ECHO_T}$ac_res" >&6; }
14458 else
14459   # Is the header compilable?
14460 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14462 cat >conftest.$ac_ext <<_ACEOF
14463 /* confdefs.h.  */
14464 _ACEOF
14465 cat confdefs.h >>conftest.$ac_ext
14466 cat >>conftest.$ac_ext <<_ACEOF
14467 /* end confdefs.h.  */
14468 $ac_includes_default
14469 #include <$ac_header>
14470 _ACEOF
14471 rm -f conftest.$ac_objext
14472 if { (ac_try="$ac_compile"
14473 case "(($ac_try" in
14474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475   *) ac_try_echo=$ac_try;;
14476 esac
14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478   (eval "$ac_compile") 2>conftest.er1
14479   ac_status=$?
14480   grep -v '^ *+' conftest.er1 >conftest.err
14481   rm -f conftest.er1
14482   cat conftest.err >&5
14483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484   (exit $ac_status); } &&
14485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14486   { (case "(($ac_try" in
14487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14488   *) ac_try_echo=$ac_try;;
14489 esac
14490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14491   (eval "$ac_try") 2>&5
14492   ac_status=$?
14493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494   (exit $ac_status); }; } &&
14495          { ac_try='test -s conftest.$ac_objext'
14496   { (case "(($ac_try" in
14497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14498   *) ac_try_echo=$ac_try;;
14499 esac
14500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14501   (eval "$ac_try") 2>&5
14502   ac_status=$?
14503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504   (exit $ac_status); }; }; then
14505   ac_header_compiler=yes
14506 else
14507   echo "$as_me: failed program was:" >&5
14508 sed 's/^/| /' conftest.$ac_ext >&5
14509
14510         ac_header_compiler=no
14511 fi
14512
14513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14514 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14515 echo "${ECHO_T}$ac_header_compiler" >&6; }
14516
14517 # Is the header present?
14518 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14519 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14520 cat >conftest.$ac_ext <<_ACEOF
14521 /* confdefs.h.  */
14522 _ACEOF
14523 cat confdefs.h >>conftest.$ac_ext
14524 cat >>conftest.$ac_ext <<_ACEOF
14525 /* end confdefs.h.  */
14526 #include <$ac_header>
14527 _ACEOF
14528 if { (ac_try="$ac_cpp conftest.$ac_ext"
14529 case "(($ac_try" in
14530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531   *) ac_try_echo=$ac_try;;
14532 esac
14533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14534   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14535   ac_status=$?
14536   grep -v '^ *+' conftest.er1 >conftest.err
14537   rm -f conftest.er1
14538   cat conftest.err >&5
14539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540   (exit $ac_status); } >/dev/null; then
14541   if test -s conftest.err; then
14542     ac_cpp_err=$ac_c_preproc_warn_flag
14543     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14544   else
14545     ac_cpp_err=
14546   fi
14547 else
14548   ac_cpp_err=yes
14549 fi
14550 if test -z "$ac_cpp_err"; then
14551   ac_header_preproc=yes
14552 else
14553   echo "$as_me: failed program was:" >&5
14554 sed 's/^/| /' conftest.$ac_ext >&5
14555
14556   ac_header_preproc=no
14557 fi
14558
14559 rm -f conftest.err conftest.$ac_ext
14560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14561 echo "${ECHO_T}$ac_header_preproc" >&6; }
14562
14563 # So?  What about this header?
14564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14565   yes:no: )
14566     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14568     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14570     ac_header_preproc=yes
14571     ;;
14572   no:yes:* )
14573     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14575     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14576 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14577     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14579     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14580 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14581     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14583     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14585     ( cat <<\_ASBOX
14586 ## ------------------------------ ##
14587 ## Report this to bugs@yourdomain ##
14588 ## ------------------------------ ##
14589 _ASBOX
14590      ) | sed "s/^/$as_me: WARNING:     /" >&2
14591     ;;
14592 esac
14593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14596   echo $ECHO_N "(cached) $ECHO_C" >&6
14597 else
14598   eval "$as_ac_Header=\$ac_header_preproc"
14599 fi
14600 ac_res=`eval echo '${'$as_ac_Header'}'`
14601                { echo "$as_me:$LINENO: result: $ac_res" >&5
14602 echo "${ECHO_T}$ac_res" >&6; }
14603
14604 fi
14605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14606   cat >>confdefs.h <<_ACEOF
14607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14608 _ACEOF
14609
14610 fi
14611
14612 done
14613
14614
14615
14616 for ac_header in utime.h windows.h
14617 do
14618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14620   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14623   echo $ECHO_N "(cached) $ECHO_C" >&6
14624 fi
14625 ac_res=`eval echo '${'$as_ac_Header'}'`
14626                { echo "$as_me:$LINENO: result: $ac_res" >&5
14627 echo "${ECHO_T}$ac_res" >&6; }
14628 else
14629   # Is the header compilable?
14630 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14632 cat >conftest.$ac_ext <<_ACEOF
14633 /* confdefs.h.  */
14634 _ACEOF
14635 cat confdefs.h >>conftest.$ac_ext
14636 cat >>conftest.$ac_ext <<_ACEOF
14637 /* end confdefs.h.  */
14638 $ac_includes_default
14639 #include <$ac_header>
14640 _ACEOF
14641 rm -f conftest.$ac_objext
14642 if { (ac_try="$ac_compile"
14643 case "(($ac_try" in
14644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14645   *) ac_try_echo=$ac_try;;
14646 esac
14647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14648   (eval "$ac_compile") 2>conftest.er1
14649   ac_status=$?
14650   grep -v '^ *+' conftest.er1 >conftest.err
14651   rm -f conftest.er1
14652   cat conftest.err >&5
14653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654   (exit $ac_status); } &&
14655          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14656   { (case "(($ac_try" in
14657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14658   *) ac_try_echo=$ac_try;;
14659 esac
14660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14661   (eval "$ac_try") 2>&5
14662   ac_status=$?
14663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664   (exit $ac_status); }; } &&
14665          { ac_try='test -s conftest.$ac_objext'
14666   { (case "(($ac_try" in
14667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14668   *) ac_try_echo=$ac_try;;
14669 esac
14670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14671   (eval "$ac_try") 2>&5
14672   ac_status=$?
14673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674   (exit $ac_status); }; }; then
14675   ac_header_compiler=yes
14676 else
14677   echo "$as_me: failed program was:" >&5
14678 sed 's/^/| /' conftest.$ac_ext >&5
14679
14680         ac_header_compiler=no
14681 fi
14682
14683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14684 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14685 echo "${ECHO_T}$ac_header_compiler" >&6; }
14686
14687 # Is the header present?
14688 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14690 cat >conftest.$ac_ext <<_ACEOF
14691 /* confdefs.h.  */
14692 _ACEOF
14693 cat confdefs.h >>conftest.$ac_ext
14694 cat >>conftest.$ac_ext <<_ACEOF
14695 /* end confdefs.h.  */
14696 #include <$ac_header>
14697 _ACEOF
14698 if { (ac_try="$ac_cpp conftest.$ac_ext"
14699 case "(($ac_try" in
14700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701   *) ac_try_echo=$ac_try;;
14702 esac
14703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14704   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14705   ac_status=$?
14706   grep -v '^ *+' conftest.er1 >conftest.err
14707   rm -f conftest.er1
14708   cat conftest.err >&5
14709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710   (exit $ac_status); } >/dev/null; then
14711   if test -s conftest.err; then
14712     ac_cpp_err=$ac_c_preproc_warn_flag
14713     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14714   else
14715     ac_cpp_err=
14716   fi
14717 else
14718   ac_cpp_err=yes
14719 fi
14720 if test -z "$ac_cpp_err"; then
14721   ac_header_preproc=yes
14722 else
14723   echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.$ac_ext >&5
14725
14726   ac_header_preproc=no
14727 fi
14728
14729 rm -f conftest.err conftest.$ac_ext
14730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14731 echo "${ECHO_T}$ac_header_preproc" >&6; }
14732
14733 # So?  What about this header?
14734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14735   yes:no: )
14736     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14738     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14740     ac_header_preproc=yes
14741     ;;
14742   no:yes:* )
14743     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14745     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14746 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14747     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14749     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14750 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14751     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14753     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14755     ( cat <<\_ASBOX
14756 ## ------------------------------ ##
14757 ## Report this to bugs@yourdomain ##
14758 ## ------------------------------ ##
14759 _ASBOX
14760      ) | sed "s/^/$as_me: WARNING:     /" >&2
14761     ;;
14762 esac
14763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14766   echo $ECHO_N "(cached) $ECHO_C" >&6
14767 else
14768   eval "$as_ac_Header=\$ac_header_preproc"
14769 fi
14770 ac_res=`eval echo '${'$as_ac_Header'}'`
14771                { echo "$as_me:$LINENO: result: $ac_res" >&5
14772 echo "${ECHO_T}$ac_res" >&6; }
14773
14774 fi
14775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14776   cat >>confdefs.h <<_ACEOF
14777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14778 _ACEOF
14779
14780 fi
14781
14782 done
14783
14784
14785
14786
14787
14788
14789 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14790 do
14791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14793   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14796   echo $ECHO_N "(cached) $ECHO_C" >&6
14797 fi
14798 ac_res=`eval echo '${'$as_ac_Header'}'`
14799                { echo "$as_me:$LINENO: result: $ac_res" >&5
14800 echo "${ECHO_T}$ac_res" >&6; }
14801 else
14802   # Is the header compilable?
14803 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14805 cat >conftest.$ac_ext <<_ACEOF
14806 /* confdefs.h.  */
14807 _ACEOF
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h.  */
14811 $ac_includes_default
14812 #include <$ac_header>
14813 _ACEOF
14814 rm -f conftest.$ac_objext
14815 if { (ac_try="$ac_compile"
14816 case "(($ac_try" in
14817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14818   *) ac_try_echo=$ac_try;;
14819 esac
14820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14821   (eval "$ac_compile") 2>conftest.er1
14822   ac_status=$?
14823   grep -v '^ *+' conftest.er1 >conftest.err
14824   rm -f conftest.er1
14825   cat conftest.err >&5
14826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827   (exit $ac_status); } &&
14828          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14829   { (case "(($ac_try" in
14830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831   *) ac_try_echo=$ac_try;;
14832 esac
14833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14834   (eval "$ac_try") 2>&5
14835   ac_status=$?
14836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837   (exit $ac_status); }; } &&
14838          { ac_try='test -s conftest.$ac_objext'
14839   { (case "(($ac_try" in
14840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14841   *) ac_try_echo=$ac_try;;
14842 esac
14843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14844   (eval "$ac_try") 2>&5
14845   ac_status=$?
14846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847   (exit $ac_status); }; }; then
14848   ac_header_compiler=yes
14849 else
14850   echo "$as_me: failed program was:" >&5
14851 sed 's/^/| /' conftest.$ac_ext >&5
14852
14853         ac_header_compiler=no
14854 fi
14855
14856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14858 echo "${ECHO_T}$ac_header_compiler" >&6; }
14859
14860 # Is the header present?
14861 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14863 cat >conftest.$ac_ext <<_ACEOF
14864 /* confdefs.h.  */
14865 _ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h.  */
14869 #include <$ac_header>
14870 _ACEOF
14871 if { (ac_try="$ac_cpp conftest.$ac_ext"
14872 case "(($ac_try" in
14873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14874   *) ac_try_echo=$ac_try;;
14875 esac
14876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14877   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14878   ac_status=$?
14879   grep -v '^ *+' conftest.er1 >conftest.err
14880   rm -f conftest.er1
14881   cat conftest.err >&5
14882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883   (exit $ac_status); } >/dev/null; then
14884   if test -s conftest.err; then
14885     ac_cpp_err=$ac_c_preproc_warn_flag
14886     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14887   else
14888     ac_cpp_err=
14889   fi
14890 else
14891   ac_cpp_err=yes
14892 fi
14893 if test -z "$ac_cpp_err"; then
14894   ac_header_preproc=yes
14895 else
14896   echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14898
14899   ac_header_preproc=no
14900 fi
14901
14902 rm -f conftest.err conftest.$ac_ext
14903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14904 echo "${ECHO_T}$ac_header_preproc" >&6; }
14905
14906 # So?  What about this header?
14907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14908   yes:no: )
14909     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14913     ac_header_preproc=yes
14914     ;;
14915   no:yes:* )
14916     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14918     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14919 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14920     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14922     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14923 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14924     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14926     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14928     ( cat <<\_ASBOX
14929 ## ------------------------------ ##
14930 ## Report this to bugs@yourdomain ##
14931 ## ------------------------------ ##
14932 _ASBOX
14933      ) | sed "s/^/$as_me: WARNING:     /" >&2
14934     ;;
14935 esac
14936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14939   echo $ECHO_N "(cached) $ECHO_C" >&6
14940 else
14941   eval "$as_ac_Header=\$ac_header_preproc"
14942 fi
14943 ac_res=`eval echo '${'$as_ac_Header'}'`
14944                { echo "$as_me:$LINENO: result: $ac_res" >&5
14945 echo "${ECHO_T}$ac_res" >&6; }
14946
14947 fi
14948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14949   cat >>confdefs.h <<_ACEOF
14950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14951 _ACEOF
14952
14953 fi
14954
14955 done
14956
14957
14958
14959
14960
14961 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14962 do
14963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14965   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14968   echo $ECHO_N "(cached) $ECHO_C" >&6
14969 fi
14970 ac_res=`eval echo '${'$as_ac_Header'}'`
14971                { echo "$as_me:$LINENO: result: $ac_res" >&5
14972 echo "${ECHO_T}$ac_res" >&6; }
14973 else
14974   # Is the header compilable?
14975 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14977 cat >conftest.$ac_ext <<_ACEOF
14978 /* confdefs.h.  */
14979 _ACEOF
14980 cat confdefs.h >>conftest.$ac_ext
14981 cat >>conftest.$ac_ext <<_ACEOF
14982 /* end confdefs.h.  */
14983 $ac_includes_default
14984 #include <$ac_header>
14985 _ACEOF
14986 rm -f conftest.$ac_objext
14987 if { (ac_try="$ac_compile"
14988 case "(($ac_try" in
14989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990   *) ac_try_echo=$ac_try;;
14991 esac
14992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993   (eval "$ac_compile") 2>conftest.er1
14994   ac_status=$?
14995   grep -v '^ *+' conftest.er1 >conftest.err
14996   rm -f conftest.er1
14997   cat conftest.err >&5
14998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999   (exit $ac_status); } &&
15000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15001   { (case "(($ac_try" in
15002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15003   *) ac_try_echo=$ac_try;;
15004 esac
15005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15006   (eval "$ac_try") 2>&5
15007   ac_status=$?
15008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009   (exit $ac_status); }; } &&
15010          { ac_try='test -s conftest.$ac_objext'
15011   { (case "(($ac_try" in
15012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15013   *) ac_try_echo=$ac_try;;
15014 esac
15015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15016   (eval "$ac_try") 2>&5
15017   ac_status=$?
15018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019   (exit $ac_status); }; }; then
15020   ac_header_compiler=yes
15021 else
15022   echo "$as_me: failed program was:" >&5
15023 sed 's/^/| /' conftest.$ac_ext >&5
15024
15025         ac_header_compiler=no
15026 fi
15027
15028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15029 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15030 echo "${ECHO_T}$ac_header_compiler" >&6; }
15031
15032 # Is the header present?
15033 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15035 cat >conftest.$ac_ext <<_ACEOF
15036 /* confdefs.h.  */
15037 _ACEOF
15038 cat confdefs.h >>conftest.$ac_ext
15039 cat >>conftest.$ac_ext <<_ACEOF
15040 /* end confdefs.h.  */
15041 #include <$ac_header>
15042 _ACEOF
15043 if { (ac_try="$ac_cpp conftest.$ac_ext"
15044 case "(($ac_try" in
15045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15046   *) ac_try_echo=$ac_try;;
15047 esac
15048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15049   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15050   ac_status=$?
15051   grep -v '^ *+' conftest.er1 >conftest.err
15052   rm -f conftest.er1
15053   cat conftest.err >&5
15054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055   (exit $ac_status); } >/dev/null; then
15056   if test -s conftest.err; then
15057     ac_cpp_err=$ac_c_preproc_warn_flag
15058     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15059   else
15060     ac_cpp_err=
15061   fi
15062 else
15063   ac_cpp_err=yes
15064 fi
15065 if test -z "$ac_cpp_err"; then
15066   ac_header_preproc=yes
15067 else
15068   echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15070
15071   ac_header_preproc=no
15072 fi
15073
15074 rm -f conftest.err conftest.$ac_ext
15075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15076 echo "${ECHO_T}$ac_header_preproc" >&6; }
15077
15078 # So?  What about this header?
15079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15080   yes:no: )
15081     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15083     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15085     ac_header_preproc=yes
15086     ;;
15087   no:yes:* )
15088     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15090     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15091 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15092     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15094     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15095 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15096     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15098     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15100     ( cat <<\_ASBOX
15101 ## ------------------------------ ##
15102 ## Report this to bugs@yourdomain ##
15103 ## ------------------------------ ##
15104 _ASBOX
15105      ) | sed "s/^/$as_me: WARNING:     /" >&2
15106     ;;
15107 esac
15108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15111   echo $ECHO_N "(cached) $ECHO_C" >&6
15112 else
15113   eval "$as_ac_Header=\$ac_header_preproc"
15114 fi
15115 ac_res=`eval echo '${'$as_ac_Header'}'`
15116                { echo "$as_me:$LINENO: result: $ac_res" >&5
15117 echo "${ECHO_T}$ac_res" >&6; }
15118
15119 fi
15120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15121   cat >>confdefs.h <<_ACEOF
15122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15123 _ACEOF
15124
15125 fi
15126
15127 done
15128
15129
15130 for ac_header in valgrind/valgrind.h
15131 do
15132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15134   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15137   echo $ECHO_N "(cached) $ECHO_C" >&6
15138 fi
15139 ac_res=`eval echo '${'$as_ac_Header'}'`
15140                { echo "$as_me:$LINENO: result: $ac_res" >&5
15141 echo "${ECHO_T}$ac_res" >&6; }
15142 else
15143   # Is the header compilable?
15144 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15146 cat >conftest.$ac_ext <<_ACEOF
15147 /* confdefs.h.  */
15148 _ACEOF
15149 cat confdefs.h >>conftest.$ac_ext
15150 cat >>conftest.$ac_ext <<_ACEOF
15151 /* end confdefs.h.  */
15152 $ac_includes_default
15153 #include <$ac_header>
15154 _ACEOF
15155 rm -f conftest.$ac_objext
15156 if { (ac_try="$ac_compile"
15157 case "(($ac_try" in
15158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159   *) ac_try_echo=$ac_try;;
15160 esac
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162   (eval "$ac_compile") 2>conftest.er1
15163   ac_status=$?
15164   grep -v '^ *+' conftest.er1 >conftest.err
15165   rm -f conftest.er1
15166   cat conftest.err >&5
15167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168   (exit $ac_status); } &&
15169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15170   { (case "(($ac_try" in
15171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15172   *) ac_try_echo=$ac_try;;
15173 esac
15174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15175   (eval "$ac_try") 2>&5
15176   ac_status=$?
15177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178   (exit $ac_status); }; } &&
15179          { ac_try='test -s conftest.$ac_objext'
15180   { (case "(($ac_try" in
15181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15182   *) ac_try_echo=$ac_try;;
15183 esac
15184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15185   (eval "$ac_try") 2>&5
15186   ac_status=$?
15187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188   (exit $ac_status); }; }; then
15189   ac_header_compiler=yes
15190 else
15191   echo "$as_me: failed program was:" >&5
15192 sed 's/^/| /' conftest.$ac_ext >&5
15193
15194         ac_header_compiler=no
15195 fi
15196
15197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15199 echo "${ECHO_T}$ac_header_compiler" >&6; }
15200
15201 # Is the header present?
15202 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15204 cat >conftest.$ac_ext <<_ACEOF
15205 /* confdefs.h.  */
15206 _ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h.  */
15210 #include <$ac_header>
15211 _ACEOF
15212 if { (ac_try="$ac_cpp conftest.$ac_ext"
15213 case "(($ac_try" in
15214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215   *) ac_try_echo=$ac_try;;
15216 esac
15217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15218   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15219   ac_status=$?
15220   grep -v '^ *+' conftest.er1 >conftest.err
15221   rm -f conftest.er1
15222   cat conftest.err >&5
15223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224   (exit $ac_status); } >/dev/null; then
15225   if test -s conftest.err; then
15226     ac_cpp_err=$ac_c_preproc_warn_flag
15227     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15228   else
15229     ac_cpp_err=
15230   fi
15231 else
15232   ac_cpp_err=yes
15233 fi
15234 if test -z "$ac_cpp_err"; then
15235   ac_header_preproc=yes
15236 else
15237   echo "$as_me: failed program was:" >&5
15238 sed 's/^/| /' conftest.$ac_ext >&5
15239
15240   ac_header_preproc=no
15241 fi
15242
15243 rm -f conftest.err conftest.$ac_ext
15244 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15245 echo "${ECHO_T}$ac_header_preproc" >&6; }
15246
15247 # So?  What about this header?
15248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15249   yes:no: )
15250     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15252     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15254     ac_header_preproc=yes
15255     ;;
15256   no:yes:* )
15257     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15259     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15260 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15261     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15263     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15264 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15265     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15267     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15269     ( cat <<\_ASBOX
15270 ## ------------------------------ ##
15271 ## Report this to bugs@yourdomain ##
15272 ## ------------------------------ ##
15273 _ASBOX
15274      ) | sed "s/^/$as_me: WARNING:     /" >&2
15275     ;;
15276 esac
15277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15280   echo $ECHO_N "(cached) $ECHO_C" >&6
15281 else
15282   eval "$as_ac_Header=\$ac_header_preproc"
15283 fi
15284 ac_res=`eval echo '${'$as_ac_Header'}'`
15285                { echo "$as_me:$LINENO: result: $ac_res" >&5
15286 echo "${ECHO_T}$ac_res" >&6; }
15287
15288 fi
15289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15290   cat >>confdefs.h <<_ACEOF
15291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15292 _ACEOF
15293
15294 fi
15295
15296 done
15297
15298
15299 for ac_header in fenv.h
15300 do
15301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15303   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15306   echo $ECHO_N "(cached) $ECHO_C" >&6
15307 fi
15308 ac_res=`eval echo '${'$as_ac_Header'}'`
15309                { echo "$as_me:$LINENO: result: $ac_res" >&5
15310 echo "${ECHO_T}$ac_res" >&6; }
15311 else
15312   # Is the header compilable?
15313 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15315 cat >conftest.$ac_ext <<_ACEOF
15316 /* confdefs.h.  */
15317 _ACEOF
15318 cat confdefs.h >>conftest.$ac_ext
15319 cat >>conftest.$ac_ext <<_ACEOF
15320 /* end confdefs.h.  */
15321 $ac_includes_default
15322 #include <$ac_header>
15323 _ACEOF
15324 rm -f conftest.$ac_objext
15325 if { (ac_try="$ac_compile"
15326 case "(($ac_try" in
15327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15328   *) ac_try_echo=$ac_try;;
15329 esac
15330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15331   (eval "$ac_compile") 2>conftest.er1
15332   ac_status=$?
15333   grep -v '^ *+' conftest.er1 >conftest.err
15334   rm -f conftest.er1
15335   cat conftest.err >&5
15336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337   (exit $ac_status); } &&
15338          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15339   { (case "(($ac_try" in
15340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341   *) ac_try_echo=$ac_try;;
15342 esac
15343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344   (eval "$ac_try") 2>&5
15345   ac_status=$?
15346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347   (exit $ac_status); }; } &&
15348          { ac_try='test -s conftest.$ac_objext'
15349   { (case "(($ac_try" in
15350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15351   *) ac_try_echo=$ac_try;;
15352 esac
15353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15354   (eval "$ac_try") 2>&5
15355   ac_status=$?
15356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357   (exit $ac_status); }; }; then
15358   ac_header_compiler=yes
15359 else
15360   echo "$as_me: failed program was:" >&5
15361 sed 's/^/| /' conftest.$ac_ext >&5
15362
15363         ac_header_compiler=no
15364 fi
15365
15366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15367 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15368 echo "${ECHO_T}$ac_header_compiler" >&6; }
15369
15370 # Is the header present?
15371 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15372 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15373 cat >conftest.$ac_ext <<_ACEOF
15374 /* confdefs.h.  */
15375 _ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h.  */
15379 #include <$ac_header>
15380 _ACEOF
15381 if { (ac_try="$ac_cpp conftest.$ac_ext"
15382 case "(($ac_try" in
15383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384   *) ac_try_echo=$ac_try;;
15385 esac
15386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15388   ac_status=$?
15389   grep -v '^ *+' conftest.er1 >conftest.err
15390   rm -f conftest.er1
15391   cat conftest.err >&5
15392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393   (exit $ac_status); } >/dev/null; then
15394   if test -s conftest.err; then
15395     ac_cpp_err=$ac_c_preproc_warn_flag
15396     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15397   else
15398     ac_cpp_err=
15399   fi
15400 else
15401   ac_cpp_err=yes
15402 fi
15403 if test -z "$ac_cpp_err"; then
15404   ac_header_preproc=yes
15405 else
15406   echo "$as_me: failed program was:" >&5
15407 sed 's/^/| /' conftest.$ac_ext >&5
15408
15409   ac_header_preproc=no
15410 fi
15411
15412 rm -f conftest.err conftest.$ac_ext
15413 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15414 echo "${ECHO_T}$ac_header_preproc" >&6; }
15415
15416 # So?  What about this header?
15417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15418   yes:no: )
15419     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15421     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15423     ac_header_preproc=yes
15424     ;;
15425   no:yes:* )
15426     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15428     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15429 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15430     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15432     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15433 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15436     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15438     ( cat <<\_ASBOX
15439 ## ------------------------------ ##
15440 ## Report this to bugs@yourdomain ##
15441 ## ------------------------------ ##
15442 _ASBOX
15443      ) | sed "s/^/$as_me: WARNING:     /" >&2
15444     ;;
15445 esac
15446 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15449   echo $ECHO_N "(cached) $ECHO_C" >&6
15450 else
15451   eval "$as_ac_Header=\$ac_header_preproc"
15452 fi
15453 ac_res=`eval echo '${'$as_ac_Header'}'`
15454                { echo "$as_me:$LINENO: result: $ac_res" >&5
15455 echo "${ECHO_T}$ac_res" >&6; }
15456
15457 fi
15458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15459   cat >>confdefs.h <<_ACEOF
15460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15461 _ACEOF
15462
15463 fi
15464
15465 done
15466
15467 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15468
15469 for ac_header in pthread.h
15470 do
15471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15473   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15476   echo $ECHO_N "(cached) $ECHO_C" >&6
15477 fi
15478 ac_res=`eval echo '${'$as_ac_Header'}'`
15479                { echo "$as_me:$LINENO: result: $ac_res" >&5
15480 echo "${ECHO_T}$ac_res" >&6; }
15481 else
15482   # Is the header compilable?
15483 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15485 cat >conftest.$ac_ext <<_ACEOF
15486 /* confdefs.h.  */
15487 _ACEOF
15488 cat confdefs.h >>conftest.$ac_ext
15489 cat >>conftest.$ac_ext <<_ACEOF
15490 /* end confdefs.h.  */
15491 $ac_includes_default
15492 #include <$ac_header>
15493 _ACEOF
15494 rm -f conftest.$ac_objext
15495 if { (ac_try="$ac_compile"
15496 case "(($ac_try" in
15497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15498   *) ac_try_echo=$ac_try;;
15499 esac
15500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15501   (eval "$ac_compile") 2>conftest.er1
15502   ac_status=$?
15503   grep -v '^ *+' conftest.er1 >conftest.err
15504   rm -f conftest.er1
15505   cat conftest.err >&5
15506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507   (exit $ac_status); } &&
15508          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15509   { (case "(($ac_try" in
15510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511   *) ac_try_echo=$ac_try;;
15512 esac
15513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15514   (eval "$ac_try") 2>&5
15515   ac_status=$?
15516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517   (exit $ac_status); }; } &&
15518          { ac_try='test -s conftest.$ac_objext'
15519   { (case "(($ac_try" in
15520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15521   *) ac_try_echo=$ac_try;;
15522 esac
15523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15524   (eval "$ac_try") 2>&5
15525   ac_status=$?
15526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527   (exit $ac_status); }; }; then
15528   ac_header_compiler=yes
15529 else
15530   echo "$as_me: failed program was:" >&5
15531 sed 's/^/| /' conftest.$ac_ext >&5
15532
15533         ac_header_compiler=no
15534 fi
15535
15536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15537 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15538 echo "${ECHO_T}$ac_header_compiler" >&6; }
15539
15540 # Is the header present?
15541 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15543 cat >conftest.$ac_ext <<_ACEOF
15544 /* confdefs.h.  */
15545 _ACEOF
15546 cat confdefs.h >>conftest.$ac_ext
15547 cat >>conftest.$ac_ext <<_ACEOF
15548 /* end confdefs.h.  */
15549 #include <$ac_header>
15550 _ACEOF
15551 if { (ac_try="$ac_cpp conftest.$ac_ext"
15552 case "(($ac_try" in
15553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554   *) ac_try_echo=$ac_try;;
15555 esac
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15558   ac_status=$?
15559   grep -v '^ *+' conftest.er1 >conftest.err
15560   rm -f conftest.er1
15561   cat conftest.err >&5
15562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563   (exit $ac_status); } >/dev/null; then
15564   if test -s conftest.err; then
15565     ac_cpp_err=$ac_c_preproc_warn_flag
15566     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15567   else
15568     ac_cpp_err=
15569   fi
15570 else
15571   ac_cpp_err=yes
15572 fi
15573 if test -z "$ac_cpp_err"; then
15574   ac_header_preproc=yes
15575 else
15576   echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15578
15579   ac_header_preproc=no
15580 fi
15581
15582 rm -f conftest.err conftest.$ac_ext
15583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15584 echo "${ECHO_T}$ac_header_preproc" >&6; }
15585
15586 # So?  What about this header?
15587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15588   yes:no: )
15589     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15593     ac_header_preproc=yes
15594     ;;
15595   no:yes:* )
15596     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15598     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15599 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15600     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15602     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15603 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15604     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15606     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15608     ( cat <<\_ASBOX
15609 ## ------------------------------ ##
15610 ## Report this to bugs@yourdomain ##
15611 ## ------------------------------ ##
15612 _ASBOX
15613      ) | sed "s/^/$as_me: WARNING:     /" >&2
15614     ;;
15615 esac
15616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15619   echo $ECHO_N "(cached) $ECHO_C" >&6
15620 else
15621   eval "$as_ac_Header=\$ac_header_preproc"
15622 fi
15623 ac_res=`eval echo '${'$as_ac_Header'}'`
15624                { echo "$as_me:$LINENO: result: $ac_res" >&5
15625 echo "${ECHO_T}$ac_res" >&6; }
15626
15627 fi
15628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15629   cat >>confdefs.h <<_ACEOF
15630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15631 _ACEOF
15632  HAVE_PTHREAD=1
15633
15634 else
15635   HAVE_PTHREAD=0
15636
15637 fi
15638
15639 done
15640
15641 else
15642   HAVE_PTHREAD=0
15643
15644 fi
15645
15646 if test "$llvm_cv_enable_libffi" = "yes" ; then
15647
15648
15649 for ac_header in ffi.h ffi/ffi.h
15650 do
15651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15653   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15656   echo $ECHO_N "(cached) $ECHO_C" >&6
15657 fi
15658 ac_res=`eval echo '${'$as_ac_Header'}'`
15659                { echo "$as_me:$LINENO: result: $ac_res" >&5
15660 echo "${ECHO_T}$ac_res" >&6; }
15661 else
15662   # Is the header compilable?
15663 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15665 cat >conftest.$ac_ext <<_ACEOF
15666 /* confdefs.h.  */
15667 _ACEOF
15668 cat confdefs.h >>conftest.$ac_ext
15669 cat >>conftest.$ac_ext <<_ACEOF
15670 /* end confdefs.h.  */
15671 $ac_includes_default
15672 #include <$ac_header>
15673 _ACEOF
15674 rm -f conftest.$ac_objext
15675 if { (ac_try="$ac_compile"
15676 case "(($ac_try" in
15677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15678   *) ac_try_echo=$ac_try;;
15679 esac
15680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15681   (eval "$ac_compile") 2>conftest.er1
15682   ac_status=$?
15683   grep -v '^ *+' conftest.er1 >conftest.err
15684   rm -f conftest.er1
15685   cat conftest.err >&5
15686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687   (exit $ac_status); } &&
15688          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15689   { (case "(($ac_try" in
15690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691   *) ac_try_echo=$ac_try;;
15692 esac
15693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694   (eval "$ac_try") 2>&5
15695   ac_status=$?
15696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697   (exit $ac_status); }; } &&
15698          { ac_try='test -s conftest.$ac_objext'
15699   { (case "(($ac_try" in
15700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15701   *) ac_try_echo=$ac_try;;
15702 esac
15703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15704   (eval "$ac_try") 2>&5
15705   ac_status=$?
15706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707   (exit $ac_status); }; }; then
15708   ac_header_compiler=yes
15709 else
15710   echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.$ac_ext >&5
15712
15713         ac_header_compiler=no
15714 fi
15715
15716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15718 echo "${ECHO_T}$ac_header_compiler" >&6; }
15719
15720 # Is the header present?
15721 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15723 cat >conftest.$ac_ext <<_ACEOF
15724 /* confdefs.h.  */
15725 _ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h.  */
15729 #include <$ac_header>
15730 _ACEOF
15731 if { (ac_try="$ac_cpp conftest.$ac_ext"
15732 case "(($ac_try" in
15733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734   *) ac_try_echo=$ac_try;;
15735 esac
15736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15738   ac_status=$?
15739   grep -v '^ *+' conftest.er1 >conftest.err
15740   rm -f conftest.er1
15741   cat conftest.err >&5
15742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743   (exit $ac_status); } >/dev/null; then
15744   if test -s conftest.err; then
15745     ac_cpp_err=$ac_c_preproc_warn_flag
15746     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15747   else
15748     ac_cpp_err=
15749   fi
15750 else
15751   ac_cpp_err=yes
15752 fi
15753 if test -z "$ac_cpp_err"; then
15754   ac_header_preproc=yes
15755 else
15756   echo "$as_me: failed program was:" >&5
15757 sed 's/^/| /' conftest.$ac_ext >&5
15758
15759   ac_header_preproc=no
15760 fi
15761
15762 rm -f conftest.err conftest.$ac_ext
15763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15764 echo "${ECHO_T}$ac_header_preproc" >&6; }
15765
15766 # So?  What about this header?
15767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15768   yes:no: )
15769     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15773     ac_header_preproc=yes
15774     ;;
15775   no:yes:* )
15776     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15778     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15779 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15780     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15782     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15783 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15784     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15786     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15788     ( cat <<\_ASBOX
15789 ## ------------------------------ ##
15790 ## Report this to bugs@yourdomain ##
15791 ## ------------------------------ ##
15792 _ASBOX
15793      ) | sed "s/^/$as_me: WARNING:     /" >&2
15794     ;;
15795 esac
15796 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15799   echo $ECHO_N "(cached) $ECHO_C" >&6
15800 else
15801   eval "$as_ac_Header=\$ac_header_preproc"
15802 fi
15803 ac_res=`eval echo '${'$as_ac_Header'}'`
15804                { echo "$as_me:$LINENO: result: $ac_res" >&5
15805 echo "${ECHO_T}$ac_res" >&6; }
15806
15807 fi
15808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15809   cat >>confdefs.h <<_ACEOF
15810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15811 _ACEOF
15812
15813 fi
15814
15815 done
15816
15817 fi
15818
15819
15820 for ac_header in CrashReporterClient.h
15821 do
15822 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15824   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15827   echo $ECHO_N "(cached) $ECHO_C" >&6
15828 fi
15829 ac_res=`eval echo '${'$as_ac_Header'}'`
15830                { echo "$as_me:$LINENO: result: $ac_res" >&5
15831 echo "${ECHO_T}$ac_res" >&6; }
15832 else
15833   # Is the header compilable?
15834 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15836 cat >conftest.$ac_ext <<_ACEOF
15837 /* confdefs.h.  */
15838 _ACEOF
15839 cat confdefs.h >>conftest.$ac_ext
15840 cat >>conftest.$ac_ext <<_ACEOF
15841 /* end confdefs.h.  */
15842 $ac_includes_default
15843 #include <$ac_header>
15844 _ACEOF
15845 rm -f conftest.$ac_objext
15846 if { (ac_try="$ac_compile"
15847 case "(($ac_try" in
15848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15849   *) ac_try_echo=$ac_try;;
15850 esac
15851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15852   (eval "$ac_compile") 2>conftest.er1
15853   ac_status=$?
15854   grep -v '^ *+' conftest.er1 >conftest.err
15855   rm -f conftest.er1
15856   cat conftest.err >&5
15857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858   (exit $ac_status); } &&
15859          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15860   { (case "(($ac_try" in
15861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862   *) ac_try_echo=$ac_try;;
15863 esac
15864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15865   (eval "$ac_try") 2>&5
15866   ac_status=$?
15867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868   (exit $ac_status); }; } &&
15869          { ac_try='test -s conftest.$ac_objext'
15870   { (case "(($ac_try" in
15871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15872   *) ac_try_echo=$ac_try;;
15873 esac
15874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15875   (eval "$ac_try") 2>&5
15876   ac_status=$?
15877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878   (exit $ac_status); }; }; then
15879   ac_header_compiler=yes
15880 else
15881   echo "$as_me: failed program was:" >&5
15882 sed 's/^/| /' conftest.$ac_ext >&5
15883
15884         ac_header_compiler=no
15885 fi
15886
15887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15888 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15889 echo "${ECHO_T}$ac_header_compiler" >&6; }
15890
15891 # Is the header present?
15892 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15894 cat >conftest.$ac_ext <<_ACEOF
15895 /* confdefs.h.  */
15896 _ACEOF
15897 cat confdefs.h >>conftest.$ac_ext
15898 cat >>conftest.$ac_ext <<_ACEOF
15899 /* end confdefs.h.  */
15900 #include <$ac_header>
15901 _ACEOF
15902 if { (ac_try="$ac_cpp conftest.$ac_ext"
15903 case "(($ac_try" in
15904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15905   *) ac_try_echo=$ac_try;;
15906 esac
15907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15908   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15909   ac_status=$?
15910   grep -v '^ *+' conftest.er1 >conftest.err
15911   rm -f conftest.er1
15912   cat conftest.err >&5
15913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914   (exit $ac_status); } >/dev/null; then
15915   if test -s conftest.err; then
15916     ac_cpp_err=$ac_c_preproc_warn_flag
15917     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15918   else
15919     ac_cpp_err=
15920   fi
15921 else
15922   ac_cpp_err=yes
15923 fi
15924 if test -z "$ac_cpp_err"; then
15925   ac_header_preproc=yes
15926 else
15927   echo "$as_me: failed program was:" >&5
15928 sed 's/^/| /' conftest.$ac_ext >&5
15929
15930   ac_header_preproc=no
15931 fi
15932
15933 rm -f conftest.err conftest.$ac_ext
15934 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15935 echo "${ECHO_T}$ac_header_preproc" >&6; }
15936
15937 # So?  What about this header?
15938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15939   yes:no: )
15940     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15941 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15942     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15943 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15944     ac_header_preproc=yes
15945     ;;
15946   no:yes:* )
15947     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15948 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15949     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15950 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15951     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15952 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15953     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15954 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15955     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15957     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15958 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15959     ( cat <<\_ASBOX
15960 ## ------------------------------ ##
15961 ## Report this to bugs@yourdomain ##
15962 ## ------------------------------ ##
15963 _ASBOX
15964      ) | sed "s/^/$as_me: WARNING:     /" >&2
15965     ;;
15966 esac
15967 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15970   echo $ECHO_N "(cached) $ECHO_C" >&6
15971 else
15972   eval "$as_ac_Header=\$ac_header_preproc"
15973 fi
15974 ac_res=`eval echo '${'$as_ac_Header'}'`
15975                { echo "$as_me:$LINENO: result: $ac_res" >&5
15976 echo "${ECHO_T}$ac_res" >&6; }
15977
15978 fi
15979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15980   cat >>confdefs.h <<_ACEOF
15981 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15982 _ACEOF
15983
15984 fi
15985
15986 done
15987
15988
15989 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15990 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15991 cat >conftest.$ac_ext <<_ACEOF
15992 /* confdefs.h.  */
15993 _ACEOF
15994 cat confdefs.h >>conftest.$ac_ext
15995 cat >>conftest.$ac_ext <<_ACEOF
15996 /* end confdefs.h.  */
15997 extern const char *__crashreporter_info__;
15998       int main() {
15999         __crashreporter_info__ = "test";
16000         return 0;
16001       }
16002
16003 _ACEOF
16004 rm -f conftest.$ac_objext conftest$ac_exeext
16005 if { (ac_try="$ac_link"
16006 case "(($ac_try" in
16007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16008   *) ac_try_echo=$ac_try;;
16009 esac
16010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16011   (eval "$ac_link") 2>conftest.er1
16012   ac_status=$?
16013   grep -v '^ *+' conftest.er1 >conftest.err
16014   rm -f conftest.er1
16015   cat conftest.err >&5
16016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017   (exit $ac_status); } &&
16018          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16019   { (case "(($ac_try" in
16020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16021   *) ac_try_echo=$ac_try;;
16022 esac
16023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16024   (eval "$ac_try") 2>&5
16025   ac_status=$?
16026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027   (exit $ac_status); }; } &&
16028          { ac_try='test -s conftest$ac_exeext'
16029   { (case "(($ac_try" in
16030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16031   *) ac_try_echo=$ac_try;;
16032 esac
16033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16034   (eval "$ac_try") 2>&5
16035   ac_status=$?
16036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037   (exit $ac_status); }; }; then
16038   { echo "$as_me:$LINENO: result: yes" >&5
16039 echo "${ECHO_T}yes" >&6; }
16040
16041 cat >>confdefs.h <<\_ACEOF
16042 #define HAVE_CRASHREPORTER_INFO 1
16043 _ACEOF
16044
16045 else
16046   echo "$as_me: failed program was:" >&5
16047 sed 's/^/| /' conftest.$ac_ext >&5
16048
16049         { echo "$as_me:$LINENO: result: no" >&5
16050 echo "${ECHO_T}no" >&6; }
16051
16052 cat >>confdefs.h <<\_ACEOF
16053 #define HAVE_CRASHREPORTER_INFO 0
16054 _ACEOF
16055
16056 fi
16057
16058 rm -f core conftest.err conftest.$ac_objext \
16059       conftest$ac_exeext conftest.$ac_ext
16060
16061
16062
16063
16064   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16065 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16066 if test "${ac_cv_huge_val_sanity+set}" = set; then
16067   echo $ECHO_N "(cached) $ECHO_C" >&6
16068 else
16069
16070     ac_ext=cpp
16071 ac_cpp='$CXXCPP $CPPFLAGS'
16072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16075
16076     ac_save_CXXFLAGS=$CXXFLAGS
16077     CXXFLAGS=-pedantic
16078     if test "$cross_compiling" = yes; then
16079   ac_cv_huge_val_sanity=yes
16080 else
16081   cat >conftest.$ac_ext <<_ACEOF
16082 /* confdefs.h.  */
16083 _ACEOF
16084 cat confdefs.h >>conftest.$ac_ext
16085 cat >>conftest.$ac_ext <<_ACEOF
16086 /* end confdefs.h.  */
16087 #include <math.h>
16088 int
16089 main ()
16090 {
16091 double x = HUGE_VAL; return x != x;
16092   ;
16093   return 0;
16094 }
16095 _ACEOF
16096 rm -f conftest$ac_exeext
16097 if { (ac_try="$ac_link"
16098 case "(($ac_try" in
16099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100   *) ac_try_echo=$ac_try;;
16101 esac
16102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16103   (eval "$ac_link") 2>&5
16104   ac_status=$?
16105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16107   { (case "(($ac_try" in
16108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16109   *) ac_try_echo=$ac_try;;
16110 esac
16111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16112   (eval "$ac_try") 2>&5
16113   ac_status=$?
16114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115   (exit $ac_status); }; }; then
16116   ac_cv_huge_val_sanity=yes
16117 else
16118   echo "$as_me: program exited with status $ac_status" >&5
16119 echo "$as_me: failed program was:" >&5
16120 sed 's/^/| /' conftest.$ac_ext >&5
16121
16122 ( exit $ac_status )
16123 ac_cv_huge_val_sanity=no
16124 fi
16125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16126 fi
16127
16128
16129     CXXFLAGS=$ac_save_CXXFLAGS
16130     ac_ext=c
16131 ac_cpp='$CPP $CPPFLAGS'
16132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16135
16136
16137 fi
16138 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16139 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16140   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16141
16142
16143 { echo "$as_me:$LINENO: checking for pid_t" >&5
16144 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16145 if test "${ac_cv_type_pid_t+set}" = set; then
16146   echo $ECHO_N "(cached) $ECHO_C" >&6
16147 else
16148   cat >conftest.$ac_ext <<_ACEOF
16149 /* confdefs.h.  */
16150 _ACEOF
16151 cat confdefs.h >>conftest.$ac_ext
16152 cat >>conftest.$ac_ext <<_ACEOF
16153 /* end confdefs.h.  */
16154 $ac_includes_default
16155 typedef pid_t ac__type_new_;
16156 int
16157 main ()
16158 {
16159 if ((ac__type_new_ *) 0)
16160   return 0;
16161 if (sizeof (ac__type_new_))
16162   return 0;
16163   ;
16164   return 0;
16165 }
16166 _ACEOF
16167 rm -f conftest.$ac_objext
16168 if { (ac_try="$ac_compile"
16169 case "(($ac_try" in
16170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16171   *) ac_try_echo=$ac_try;;
16172 esac
16173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16174   (eval "$ac_compile") 2>conftest.er1
16175   ac_status=$?
16176   grep -v '^ *+' conftest.er1 >conftest.err
16177   rm -f conftest.er1
16178   cat conftest.err >&5
16179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180   (exit $ac_status); } &&
16181          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16182   { (case "(($ac_try" in
16183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184   *) ac_try_echo=$ac_try;;
16185 esac
16186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187   (eval "$ac_try") 2>&5
16188   ac_status=$?
16189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190   (exit $ac_status); }; } &&
16191          { ac_try='test -s conftest.$ac_objext'
16192   { (case "(($ac_try" in
16193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16194   *) ac_try_echo=$ac_try;;
16195 esac
16196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16197   (eval "$ac_try") 2>&5
16198   ac_status=$?
16199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200   (exit $ac_status); }; }; then
16201   ac_cv_type_pid_t=yes
16202 else
16203   echo "$as_me: failed program was:" >&5
16204 sed 's/^/| /' conftest.$ac_ext >&5
16205
16206         ac_cv_type_pid_t=no
16207 fi
16208
16209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16210 fi
16211 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16212 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16213 if test $ac_cv_type_pid_t = yes; then
16214   :
16215 else
16216
16217 cat >>confdefs.h <<_ACEOF
16218 #define pid_t int
16219 _ACEOF
16220
16221 fi
16222
16223 { echo "$as_me:$LINENO: checking for size_t" >&5
16224 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16225 if test "${ac_cv_type_size_t+set}" = set; then
16226   echo $ECHO_N "(cached) $ECHO_C" >&6
16227 else
16228   cat >conftest.$ac_ext <<_ACEOF
16229 /* confdefs.h.  */
16230 _ACEOF
16231 cat confdefs.h >>conftest.$ac_ext
16232 cat >>conftest.$ac_ext <<_ACEOF
16233 /* end confdefs.h.  */
16234 $ac_includes_default
16235 typedef size_t ac__type_new_;
16236 int
16237 main ()
16238 {
16239 if ((ac__type_new_ *) 0)
16240   return 0;
16241 if (sizeof (ac__type_new_))
16242   return 0;
16243   ;
16244   return 0;
16245 }
16246 _ACEOF
16247 rm -f conftest.$ac_objext
16248 if { (ac_try="$ac_compile"
16249 case "(($ac_try" in
16250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16251   *) ac_try_echo=$ac_try;;
16252 esac
16253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16254   (eval "$ac_compile") 2>conftest.er1
16255   ac_status=$?
16256   grep -v '^ *+' conftest.er1 >conftest.err
16257   rm -f conftest.er1
16258   cat conftest.err >&5
16259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260   (exit $ac_status); } &&
16261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16262   { (case "(($ac_try" in
16263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264   *) ac_try_echo=$ac_try;;
16265 esac
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267   (eval "$ac_try") 2>&5
16268   ac_status=$?
16269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270   (exit $ac_status); }; } &&
16271          { ac_try='test -s conftest.$ac_objext'
16272   { (case "(($ac_try" in
16273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274   *) ac_try_echo=$ac_try;;
16275 esac
16276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16277   (eval "$ac_try") 2>&5
16278   ac_status=$?
16279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280   (exit $ac_status); }; }; then
16281   ac_cv_type_size_t=yes
16282 else
16283   echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16285
16286         ac_cv_type_size_t=no
16287 fi
16288
16289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16290 fi
16291 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16292 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16293 if test $ac_cv_type_size_t = yes; then
16294   :
16295 else
16296
16297 cat >>confdefs.h <<_ACEOF
16298 #define size_t unsigned int
16299 _ACEOF
16300
16301 fi
16302
16303
16304 cat >>confdefs.h <<_ACEOF
16305 #define RETSIGTYPE void
16306 _ACEOF
16307
16308 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16309 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16310 if test "${ac_cv_struct_tm+set}" = set; then
16311   echo $ECHO_N "(cached) $ECHO_C" >&6
16312 else
16313   cat >conftest.$ac_ext <<_ACEOF
16314 /* confdefs.h.  */
16315 _ACEOF
16316 cat confdefs.h >>conftest.$ac_ext
16317 cat >>conftest.$ac_ext <<_ACEOF
16318 /* end confdefs.h.  */
16319 #include <sys/types.h>
16320 #include <time.h>
16321
16322 int
16323 main ()
16324 {
16325 struct tm *tp; tp->tm_sec;
16326   ;
16327   return 0;
16328 }
16329 _ACEOF
16330 rm -f conftest.$ac_objext
16331 if { (ac_try="$ac_compile"
16332 case "(($ac_try" in
16333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16334   *) ac_try_echo=$ac_try;;
16335 esac
16336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16337   (eval "$ac_compile") 2>conftest.er1
16338   ac_status=$?
16339   grep -v '^ *+' conftest.er1 >conftest.err
16340   rm -f conftest.er1
16341   cat conftest.err >&5
16342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343   (exit $ac_status); } &&
16344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16345   { (case "(($ac_try" in
16346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16347   *) ac_try_echo=$ac_try;;
16348 esac
16349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16350   (eval "$ac_try") 2>&5
16351   ac_status=$?
16352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353   (exit $ac_status); }; } &&
16354          { ac_try='test -s conftest.$ac_objext'
16355   { (case "(($ac_try" in
16356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16357   *) ac_try_echo=$ac_try;;
16358 esac
16359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16360   (eval "$ac_try") 2>&5
16361   ac_status=$?
16362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363   (exit $ac_status); }; }; then
16364   ac_cv_struct_tm=time.h
16365 else
16366   echo "$as_me: failed program was:" >&5
16367 sed 's/^/| /' conftest.$ac_ext >&5
16368
16369         ac_cv_struct_tm=sys/time.h
16370 fi
16371
16372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16373 fi
16374 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16375 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16376 if test $ac_cv_struct_tm = sys/time.h; then
16377
16378 cat >>confdefs.h <<\_ACEOF
16379 #define TM_IN_SYS_TIME 1
16380 _ACEOF
16381
16382 fi
16383
16384 { echo "$as_me:$LINENO: checking for int64_t" >&5
16385 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16386 if test "${ac_cv_type_int64_t+set}" = set; then
16387   echo $ECHO_N "(cached) $ECHO_C" >&6
16388 else
16389   cat >conftest.$ac_ext <<_ACEOF
16390 /* confdefs.h.  */
16391 _ACEOF
16392 cat confdefs.h >>conftest.$ac_ext
16393 cat >>conftest.$ac_ext <<_ACEOF
16394 /* end confdefs.h.  */
16395 $ac_includes_default
16396 typedef int64_t ac__type_new_;
16397 int
16398 main ()
16399 {
16400 if ((ac__type_new_ *) 0)
16401   return 0;
16402 if (sizeof (ac__type_new_))
16403   return 0;
16404   ;
16405   return 0;
16406 }
16407 _ACEOF
16408 rm -f conftest.$ac_objext
16409 if { (ac_try="$ac_compile"
16410 case "(($ac_try" in
16411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412   *) ac_try_echo=$ac_try;;
16413 esac
16414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16415   (eval "$ac_compile") 2>conftest.er1
16416   ac_status=$?
16417   grep -v '^ *+' conftest.er1 >conftest.err
16418   rm -f conftest.er1
16419   cat conftest.err >&5
16420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421   (exit $ac_status); } &&
16422          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16423   { (case "(($ac_try" in
16424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425   *) ac_try_echo=$ac_try;;
16426 esac
16427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428   (eval "$ac_try") 2>&5
16429   ac_status=$?
16430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431   (exit $ac_status); }; } &&
16432          { ac_try='test -s conftest.$ac_objext'
16433   { (case "(($ac_try" in
16434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16435   *) ac_try_echo=$ac_try;;
16436 esac
16437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16438   (eval "$ac_try") 2>&5
16439   ac_status=$?
16440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441   (exit $ac_status); }; }; then
16442   ac_cv_type_int64_t=yes
16443 else
16444   echo "$as_me: failed program was:" >&5
16445 sed 's/^/| /' conftest.$ac_ext >&5
16446
16447         ac_cv_type_int64_t=no
16448 fi
16449
16450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16451 fi
16452 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16453 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16454 if test $ac_cv_type_int64_t = yes; then
16455
16456 cat >>confdefs.h <<_ACEOF
16457 #define HAVE_INT64_T 1
16458 _ACEOF
16459
16460
16461 else
16462   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16463 echo "$as_me: error: Type int64_t required but not found" >&2;}
16464    { (exit 1); exit 1; }; }
16465 fi
16466
16467 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16468 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16469 if test "${ac_cv_type_uint64_t+set}" = set; then
16470   echo $ECHO_N "(cached) $ECHO_C" >&6
16471 else
16472   cat >conftest.$ac_ext <<_ACEOF
16473 /* confdefs.h.  */
16474 _ACEOF
16475 cat confdefs.h >>conftest.$ac_ext
16476 cat >>conftest.$ac_ext <<_ACEOF
16477 /* end confdefs.h.  */
16478 $ac_includes_default
16479 typedef uint64_t ac__type_new_;
16480 int
16481 main ()
16482 {
16483 if ((ac__type_new_ *) 0)
16484   return 0;
16485 if (sizeof (ac__type_new_))
16486   return 0;
16487   ;
16488   return 0;
16489 }
16490 _ACEOF
16491 rm -f conftest.$ac_objext
16492 if { (ac_try="$ac_compile"
16493 case "(($ac_try" in
16494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16495   *) ac_try_echo=$ac_try;;
16496 esac
16497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16498   (eval "$ac_compile") 2>conftest.er1
16499   ac_status=$?
16500   grep -v '^ *+' conftest.er1 >conftest.err
16501   rm -f conftest.er1
16502   cat conftest.err >&5
16503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504   (exit $ac_status); } &&
16505          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16506   { (case "(($ac_try" in
16507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16508   *) ac_try_echo=$ac_try;;
16509 esac
16510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16511   (eval "$ac_try") 2>&5
16512   ac_status=$?
16513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514   (exit $ac_status); }; } &&
16515          { ac_try='test -s conftest.$ac_objext'
16516   { (case "(($ac_try" in
16517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518   *) ac_try_echo=$ac_try;;
16519 esac
16520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521   (eval "$ac_try") 2>&5
16522   ac_status=$?
16523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524   (exit $ac_status); }; }; then
16525   ac_cv_type_uint64_t=yes
16526 else
16527   echo "$as_me: failed program was:" >&5
16528 sed 's/^/| /' conftest.$ac_ext >&5
16529
16530         ac_cv_type_uint64_t=no
16531 fi
16532
16533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16534 fi
16535 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16536 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16537 if test $ac_cv_type_uint64_t = yes; then
16538
16539 cat >>confdefs.h <<_ACEOF
16540 #define HAVE_UINT64_T 1
16541 _ACEOF
16542
16543
16544 else
16545   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16546 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16547 if test "${ac_cv_type_u_int64_t+set}" = set; then
16548   echo $ECHO_N "(cached) $ECHO_C" >&6
16549 else
16550   cat >conftest.$ac_ext <<_ACEOF
16551 /* confdefs.h.  */
16552 _ACEOF
16553 cat confdefs.h >>conftest.$ac_ext
16554 cat >>conftest.$ac_ext <<_ACEOF
16555 /* end confdefs.h.  */
16556 $ac_includes_default
16557 typedef u_int64_t ac__type_new_;
16558 int
16559 main ()
16560 {
16561 if ((ac__type_new_ *) 0)
16562   return 0;
16563 if (sizeof (ac__type_new_))
16564   return 0;
16565   ;
16566   return 0;
16567 }
16568 _ACEOF
16569 rm -f conftest.$ac_objext
16570 if { (ac_try="$ac_compile"
16571 case "(($ac_try" in
16572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573   *) ac_try_echo=$ac_try;;
16574 esac
16575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576   (eval "$ac_compile") 2>conftest.er1
16577   ac_status=$?
16578   grep -v '^ *+' conftest.er1 >conftest.err
16579   rm -f conftest.er1
16580   cat conftest.err >&5
16581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582   (exit $ac_status); } &&
16583          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16584   { (case "(($ac_try" in
16585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586   *) ac_try_echo=$ac_try;;
16587 esac
16588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589   (eval "$ac_try") 2>&5
16590   ac_status=$?
16591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592   (exit $ac_status); }; } &&
16593          { ac_try='test -s conftest.$ac_objext'
16594   { (case "(($ac_try" in
16595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596   *) ac_try_echo=$ac_try;;
16597 esac
16598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599   (eval "$ac_try") 2>&5
16600   ac_status=$?
16601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602   (exit $ac_status); }; }; then
16603   ac_cv_type_u_int64_t=yes
16604 else
16605   echo "$as_me: failed program was:" >&5
16606 sed 's/^/| /' conftest.$ac_ext >&5
16607
16608         ac_cv_type_u_int64_t=no
16609 fi
16610
16611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16612 fi
16613 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16614 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16615 if test $ac_cv_type_u_int64_t = yes; then
16616
16617 cat >>confdefs.h <<_ACEOF
16618 #define HAVE_U_INT64_T 1
16619 _ACEOF
16620
16621
16622 else
16623   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16624 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16625    { (exit 1); exit 1; }; }
16626 fi
16627
16628 fi
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16640 do
16641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16645   echo $ECHO_N "(cached) $ECHO_C" >&6
16646 else
16647   cat >conftest.$ac_ext <<_ACEOF
16648 /* confdefs.h.  */
16649 _ACEOF
16650 cat confdefs.h >>conftest.$ac_ext
16651 cat >>conftest.$ac_ext <<_ACEOF
16652 /* end confdefs.h.  */
16653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16655 #define $ac_func innocuous_$ac_func
16656
16657 /* System header to define __stub macros and hopefully few prototypes,
16658     which can conflict with char $ac_func (); below.
16659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16660     <limits.h> exists even on freestanding compilers.  */
16661
16662 #ifdef __STDC__
16663 # include <limits.h>
16664 #else
16665 # include <assert.h>
16666 #endif
16667
16668 #undef $ac_func
16669
16670 /* Override any GCC internal prototype to avoid an error.
16671    Use char because int might match the return type of a GCC
16672    builtin and then its argument prototype would still apply.  */
16673 #ifdef __cplusplus
16674 extern "C"
16675 #endif
16676 char $ac_func ();
16677 /* The GNU C library defines this for functions which it implements
16678     to always fail with ENOSYS.  Some functions are actually named
16679     something starting with __ and the normal name is an alias.  */
16680 #if defined __stub_$ac_func || defined __stub___$ac_func
16681 choke me
16682 #endif
16683
16684 int
16685 main ()
16686 {
16687 return $ac_func ();
16688   ;
16689   return 0;
16690 }
16691 _ACEOF
16692 rm -f conftest.$ac_objext conftest$ac_exeext
16693 if { (ac_try="$ac_link"
16694 case "(($ac_try" in
16695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696   *) ac_try_echo=$ac_try;;
16697 esac
16698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699   (eval "$ac_link") 2>conftest.er1
16700   ac_status=$?
16701   grep -v '^ *+' conftest.er1 >conftest.err
16702   rm -f conftest.er1
16703   cat conftest.err >&5
16704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705   (exit $ac_status); } &&
16706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16707   { (case "(($ac_try" in
16708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709   *) ac_try_echo=$ac_try;;
16710 esac
16711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712   (eval "$ac_try") 2>&5
16713   ac_status=$?
16714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715   (exit $ac_status); }; } &&
16716          { ac_try='test -s conftest$ac_exeext'
16717   { (case "(($ac_try" in
16718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719   *) ac_try_echo=$ac_try;;
16720 esac
16721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722   (eval "$ac_try") 2>&5
16723   ac_status=$?
16724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725   (exit $ac_status); }; }; then
16726   eval "$as_ac_var=yes"
16727 else
16728   echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16730
16731         eval "$as_ac_var=no"
16732 fi
16733
16734 rm -f core conftest.err conftest.$ac_objext \
16735       conftest$ac_exeext conftest.$ac_ext
16736 fi
16737 ac_res=`eval echo '${'$as_ac_var'}'`
16738                { echo "$as_me:$LINENO: result: $ac_res" >&5
16739 echo "${ECHO_T}$ac_res" >&6; }
16740 if test `eval echo '${'$as_ac_var'}'` = yes; then
16741   cat >>confdefs.h <<_ACEOF
16742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16743 _ACEOF
16744
16745 fi
16746 done
16747
16748
16749
16750
16751
16752 for ac_func in powf fmodf strtof round
16753 do
16754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16758   echo $ECHO_N "(cached) $ECHO_C" >&6
16759 else
16760   cat >conftest.$ac_ext <<_ACEOF
16761 /* confdefs.h.  */
16762 _ACEOF
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h.  */
16766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16768 #define $ac_func innocuous_$ac_func
16769
16770 /* System header to define __stub macros and hopefully few prototypes,
16771     which can conflict with char $ac_func (); below.
16772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16773     <limits.h> exists even on freestanding compilers.  */
16774
16775 #ifdef __STDC__
16776 # include <limits.h>
16777 #else
16778 # include <assert.h>
16779 #endif
16780
16781 #undef $ac_func
16782
16783 /* Override any GCC internal prototype to avoid an error.
16784    Use char because int might match the return type of a GCC
16785    builtin and then its argument prototype would still apply.  */
16786 #ifdef __cplusplus
16787 extern "C"
16788 #endif
16789 char $ac_func ();
16790 /* The GNU C library defines this for functions which it implements
16791     to always fail with ENOSYS.  Some functions are actually named
16792     something starting with __ and the normal name is an alias.  */
16793 #if defined __stub_$ac_func || defined __stub___$ac_func
16794 choke me
16795 #endif
16796
16797 int
16798 main ()
16799 {
16800 return $ac_func ();
16801   ;
16802   return 0;
16803 }
16804 _ACEOF
16805 rm -f conftest.$ac_objext conftest$ac_exeext
16806 if { (ac_try="$ac_link"
16807 case "(($ac_try" in
16808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16809   *) ac_try_echo=$ac_try;;
16810 esac
16811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16812   (eval "$ac_link") 2>conftest.er1
16813   ac_status=$?
16814   grep -v '^ *+' conftest.er1 >conftest.err
16815   rm -f conftest.er1
16816   cat conftest.err >&5
16817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818   (exit $ac_status); } &&
16819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16820   { (case "(($ac_try" in
16821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822   *) ac_try_echo=$ac_try;;
16823 esac
16824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825   (eval "$ac_try") 2>&5
16826   ac_status=$?
16827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828   (exit $ac_status); }; } &&
16829          { ac_try='test -s conftest$ac_exeext'
16830   { (case "(($ac_try" in
16831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832   *) ac_try_echo=$ac_try;;
16833 esac
16834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16835   (eval "$ac_try") 2>&5
16836   ac_status=$?
16837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838   (exit $ac_status); }; }; then
16839   eval "$as_ac_var=yes"
16840 else
16841   echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.$ac_ext >&5
16843
16844         eval "$as_ac_var=no"
16845 fi
16846
16847 rm -f core conftest.err conftest.$ac_objext \
16848       conftest$ac_exeext conftest.$ac_ext
16849 fi
16850 ac_res=`eval echo '${'$as_ac_var'}'`
16851                { echo "$as_me:$LINENO: result: $ac_res" >&5
16852 echo "${ECHO_T}$ac_res" >&6; }
16853 if test `eval echo '${'$as_ac_var'}'` = yes; then
16854   cat >>confdefs.h <<_ACEOF
16855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16856 _ACEOF
16857
16858 fi
16859 done
16860
16861
16862
16863
16864
16865
16866 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16867 do
16868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16869 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16871 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16872   echo $ECHO_N "(cached) $ECHO_C" >&6
16873 else
16874   cat >conftest.$ac_ext <<_ACEOF
16875 /* confdefs.h.  */
16876 _ACEOF
16877 cat confdefs.h >>conftest.$ac_ext
16878 cat >>conftest.$ac_ext <<_ACEOF
16879 /* end confdefs.h.  */
16880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16881    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16882 #define $ac_func innocuous_$ac_func
16883
16884 /* System header to define __stub macros and hopefully few prototypes,
16885     which can conflict with char $ac_func (); below.
16886     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16887     <limits.h> exists even on freestanding compilers.  */
16888
16889 #ifdef __STDC__
16890 # include <limits.h>
16891 #else
16892 # include <assert.h>
16893 #endif
16894
16895 #undef $ac_func
16896
16897 /* Override any GCC internal prototype to avoid an error.
16898    Use char because int might match the return type of a GCC
16899    builtin and then its argument prototype would still apply.  */
16900 #ifdef __cplusplus
16901 extern "C"
16902 #endif
16903 char $ac_func ();
16904 /* The GNU C library defines this for functions which it implements
16905     to always fail with ENOSYS.  Some functions are actually named
16906     something starting with __ and the normal name is an alias.  */
16907 #if defined __stub_$ac_func || defined __stub___$ac_func
16908 choke me
16909 #endif
16910
16911 int
16912 main ()
16913 {
16914 return $ac_func ();
16915   ;
16916   return 0;
16917 }
16918 _ACEOF
16919 rm -f conftest.$ac_objext conftest$ac_exeext
16920 if { (ac_try="$ac_link"
16921 case "(($ac_try" in
16922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923   *) ac_try_echo=$ac_try;;
16924 esac
16925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926   (eval "$ac_link") 2>conftest.er1
16927   ac_status=$?
16928   grep -v '^ *+' conftest.er1 >conftest.err
16929   rm -f conftest.er1
16930   cat conftest.err >&5
16931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932   (exit $ac_status); } &&
16933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16940   ac_status=$?
16941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942   (exit $ac_status); }; } &&
16943          { ac_try='test -s conftest$ac_exeext'
16944   { (case "(($ac_try" in
16945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946   *) ac_try_echo=$ac_try;;
16947 esac
16948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949   (eval "$ac_try") 2>&5
16950   ac_status=$?
16951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952   (exit $ac_status); }; }; then
16953   eval "$as_ac_var=yes"
16954 else
16955   echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16957
16958         eval "$as_ac_var=no"
16959 fi
16960
16961 rm -f core conftest.err conftest.$ac_objext \
16962       conftest$ac_exeext conftest.$ac_ext
16963 fi
16964 ac_res=`eval echo '${'$as_ac_var'}'`
16965                { echo "$as_me:$LINENO: result: $ac_res" >&5
16966 echo "${ECHO_T}$ac_res" >&6; }
16967 if test `eval echo '${'$as_ac_var'}'` = yes; then
16968   cat >>confdefs.h <<_ACEOF
16969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16970 _ACEOF
16971
16972 fi
16973 done
16974
16975
16976
16977
16978 for ac_func in isatty mkdtemp mkstemp
16979 do
16980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16981 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16983 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16984   echo $ECHO_N "(cached) $ECHO_C" >&6
16985 else
16986   cat >conftest.$ac_ext <<_ACEOF
16987 /* confdefs.h.  */
16988 _ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h.  */
16992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16993    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16994 #define $ac_func innocuous_$ac_func
16995
16996 /* System header to define __stub macros and hopefully few prototypes,
16997     which can conflict with char $ac_func (); below.
16998     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16999     <limits.h> exists even on freestanding compilers.  */
17000
17001 #ifdef __STDC__
17002 # include <limits.h>
17003 #else
17004 # include <assert.h>
17005 #endif
17006
17007 #undef $ac_func
17008
17009 /* Override any GCC internal prototype to avoid an error.
17010    Use char because int might match the return type of a GCC
17011    builtin and then its argument prototype would still apply.  */
17012 #ifdef __cplusplus
17013 extern "C"
17014 #endif
17015 char $ac_func ();
17016 /* The GNU C library defines this for functions which it implements
17017     to always fail with ENOSYS.  Some functions are actually named
17018     something starting with __ and the normal name is an alias.  */
17019 #if defined __stub_$ac_func || defined __stub___$ac_func
17020 choke me
17021 #endif
17022
17023 int
17024 main ()
17025 {
17026 return $ac_func ();
17027   ;
17028   return 0;
17029 }
17030 _ACEOF
17031 rm -f conftest.$ac_objext conftest$ac_exeext
17032 if { (ac_try="$ac_link"
17033 case "(($ac_try" in
17034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035   *) ac_try_echo=$ac_try;;
17036 esac
17037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17038   (eval "$ac_link") 2>conftest.er1
17039   ac_status=$?
17040   grep -v '^ *+' conftest.er1 >conftest.err
17041   rm -f conftest.er1
17042   cat conftest.err >&5
17043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044   (exit $ac_status); } &&
17045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17046   { (case "(($ac_try" in
17047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17048   *) ac_try_echo=$ac_try;;
17049 esac
17050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17051   (eval "$ac_try") 2>&5
17052   ac_status=$?
17053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054   (exit $ac_status); }; } &&
17055          { ac_try='test -s conftest$ac_exeext'
17056   { (case "(($ac_try" in
17057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058   *) ac_try_echo=$ac_try;;
17059 esac
17060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061   (eval "$ac_try") 2>&5
17062   ac_status=$?
17063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064   (exit $ac_status); }; }; then
17065   eval "$as_ac_var=yes"
17066 else
17067   echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.$ac_ext >&5
17069
17070         eval "$as_ac_var=no"
17071 fi
17072
17073 rm -f core conftest.err conftest.$ac_objext \
17074       conftest$ac_exeext conftest.$ac_ext
17075 fi
17076 ac_res=`eval echo '${'$as_ac_var'}'`
17077                { echo "$as_me:$LINENO: result: $ac_res" >&5
17078 echo "${ECHO_T}$ac_res" >&6; }
17079 if test `eval echo '${'$as_ac_var'}'` = yes; then
17080   cat >>confdefs.h <<_ACEOF
17081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17082 _ACEOF
17083
17084 fi
17085 done
17086
17087
17088
17089
17090
17091
17092
17093 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17094 do
17095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17096 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17099   echo $ECHO_N "(cached) $ECHO_C" >&6
17100 else
17101   cat >conftest.$ac_ext <<_ACEOF
17102 /* confdefs.h.  */
17103 _ACEOF
17104 cat confdefs.h >>conftest.$ac_ext
17105 cat >>conftest.$ac_ext <<_ACEOF
17106 /* end confdefs.h.  */
17107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17108    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17109 #define $ac_func innocuous_$ac_func
17110
17111 /* System header to define __stub macros and hopefully few prototypes,
17112     which can conflict with char $ac_func (); below.
17113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17114     <limits.h> exists even on freestanding compilers.  */
17115
17116 #ifdef __STDC__
17117 # include <limits.h>
17118 #else
17119 # include <assert.h>
17120 #endif
17121
17122 #undef $ac_func
17123
17124 /* Override any GCC internal prototype to avoid an error.
17125    Use char because int might match the return type of a GCC
17126    builtin and then its argument prototype would still apply.  */
17127 #ifdef __cplusplus
17128 extern "C"
17129 #endif
17130 char $ac_func ();
17131 /* The GNU C library defines this for functions which it implements
17132     to always fail with ENOSYS.  Some functions are actually named
17133     something starting with __ and the normal name is an alias.  */
17134 #if defined __stub_$ac_func || defined __stub___$ac_func
17135 choke me
17136 #endif
17137
17138 int
17139 main ()
17140 {
17141 return $ac_func ();
17142   ;
17143   return 0;
17144 }
17145 _ACEOF
17146 rm -f conftest.$ac_objext conftest$ac_exeext
17147 if { (ac_try="$ac_link"
17148 case "(($ac_try" in
17149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150   *) ac_try_echo=$ac_try;;
17151 esac
17152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153   (eval "$ac_link") 2>conftest.er1
17154   ac_status=$?
17155   grep -v '^ *+' conftest.er1 >conftest.err
17156   rm -f conftest.er1
17157   cat conftest.err >&5
17158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159   (exit $ac_status); } &&
17160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17161   { (case "(($ac_try" in
17162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163   *) ac_try_echo=$ac_try;;
17164 esac
17165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166   (eval "$ac_try") 2>&5
17167   ac_status=$?
17168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169   (exit $ac_status); }; } &&
17170          { ac_try='test -s conftest$ac_exeext'
17171   { (case "(($ac_try" in
17172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17173   *) ac_try_echo=$ac_try;;
17174 esac
17175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17176   (eval "$ac_try") 2>&5
17177   ac_status=$?
17178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179   (exit $ac_status); }; }; then
17180   eval "$as_ac_var=yes"
17181 else
17182   echo "$as_me: failed program was:" >&5
17183 sed 's/^/| /' conftest.$ac_ext >&5
17184
17185         eval "$as_ac_var=no"
17186 fi
17187
17188 rm -f core conftest.err conftest.$ac_objext \
17189       conftest$ac_exeext conftest.$ac_ext
17190 fi
17191 ac_res=`eval echo '${'$as_ac_var'}'`
17192                { echo "$as_me:$LINENO: result: $ac_res" >&5
17193 echo "${ECHO_T}$ac_res" >&6; }
17194 if test `eval echo '${'$as_ac_var'}'` = yes; then
17195   cat >>confdefs.h <<_ACEOF
17196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17197 _ACEOF
17198
17199 fi
17200 done
17201
17202
17203
17204
17205 for ac_func in strerror strerror_r setenv
17206 do
17207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17211   echo $ECHO_N "(cached) $ECHO_C" >&6
17212 else
17213   cat >conftest.$ac_ext <<_ACEOF
17214 /* confdefs.h.  */
17215 _ACEOF
17216 cat confdefs.h >>conftest.$ac_ext
17217 cat >>conftest.$ac_ext <<_ACEOF
17218 /* end confdefs.h.  */
17219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17221 #define $ac_func innocuous_$ac_func
17222
17223 /* System header to define __stub macros and hopefully few prototypes,
17224     which can conflict with char $ac_func (); below.
17225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17226     <limits.h> exists even on freestanding compilers.  */
17227
17228 #ifdef __STDC__
17229 # include <limits.h>
17230 #else
17231 # include <assert.h>
17232 #endif
17233
17234 #undef $ac_func
17235
17236 /* Override any GCC internal prototype to avoid an error.
17237    Use char because int might match the return type of a GCC
17238    builtin and then its argument prototype would still apply.  */
17239 #ifdef __cplusplus
17240 extern "C"
17241 #endif
17242 char $ac_func ();
17243 /* The GNU C library defines this for functions which it implements
17244     to always fail with ENOSYS.  Some functions are actually named
17245     something starting with __ and the normal name is an alias.  */
17246 #if defined __stub_$ac_func || defined __stub___$ac_func
17247 choke me
17248 #endif
17249
17250 int
17251 main ()
17252 {
17253 return $ac_func ();
17254   ;
17255   return 0;
17256 }
17257 _ACEOF
17258 rm -f conftest.$ac_objext conftest$ac_exeext
17259 if { (ac_try="$ac_link"
17260 case "(($ac_try" in
17261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262   *) ac_try_echo=$ac_try;;
17263 esac
17264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265   (eval "$ac_link") 2>conftest.er1
17266   ac_status=$?
17267   grep -v '^ *+' conftest.er1 >conftest.err
17268   rm -f conftest.er1
17269   cat conftest.err >&5
17270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271   (exit $ac_status); } &&
17272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17273   { (case "(($ac_try" in
17274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275   *) ac_try_echo=$ac_try;;
17276 esac
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278   (eval "$ac_try") 2>&5
17279   ac_status=$?
17280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281   (exit $ac_status); }; } &&
17282          { ac_try='test -s conftest$ac_exeext'
17283   { (case "(($ac_try" in
17284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285   *) ac_try_echo=$ac_try;;
17286 esac
17287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288   (eval "$ac_try") 2>&5
17289   ac_status=$?
17290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291   (exit $ac_status); }; }; then
17292   eval "$as_ac_var=yes"
17293 else
17294   echo "$as_me: failed program was:" >&5
17295 sed 's/^/| /' conftest.$ac_ext >&5
17296
17297         eval "$as_ac_var=no"
17298 fi
17299
17300 rm -f core conftest.err conftest.$ac_objext \
17301       conftest$ac_exeext conftest.$ac_ext
17302 fi
17303 ac_res=`eval echo '${'$as_ac_var'}'`
17304                { echo "$as_me:$LINENO: result: $ac_res" >&5
17305 echo "${ECHO_T}$ac_res" >&6; }
17306 if test `eval echo '${'$as_ac_var'}'` = yes; then
17307   cat >>confdefs.h <<_ACEOF
17308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17309 _ACEOF
17310
17311 fi
17312 done
17313
17314
17315
17316
17317
17318 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17319 do
17320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17324   echo $ECHO_N "(cached) $ECHO_C" >&6
17325 else
17326   cat >conftest.$ac_ext <<_ACEOF
17327 /* confdefs.h.  */
17328 _ACEOF
17329 cat confdefs.h >>conftest.$ac_ext
17330 cat >>conftest.$ac_ext <<_ACEOF
17331 /* end confdefs.h.  */
17332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17333    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17334 #define $ac_func innocuous_$ac_func
17335
17336 /* System header to define __stub macros and hopefully few prototypes,
17337     which can conflict with char $ac_func (); below.
17338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17339     <limits.h> exists even on freestanding compilers.  */
17340
17341 #ifdef __STDC__
17342 # include <limits.h>
17343 #else
17344 # include <assert.h>
17345 #endif
17346
17347 #undef $ac_func
17348
17349 /* Override any GCC internal prototype to avoid an error.
17350    Use char because int might match the return type of a GCC
17351    builtin and then its argument prototype would still apply.  */
17352 #ifdef __cplusplus
17353 extern "C"
17354 #endif
17355 char $ac_func ();
17356 /* The GNU C library defines this for functions which it implements
17357     to always fail with ENOSYS.  Some functions are actually named
17358     something starting with __ and the normal name is an alias.  */
17359 #if defined __stub_$ac_func || defined __stub___$ac_func
17360 choke me
17361 #endif
17362
17363 int
17364 main ()
17365 {
17366 return $ac_func ();
17367   ;
17368   return 0;
17369 }
17370 _ACEOF
17371 rm -f conftest.$ac_objext conftest$ac_exeext
17372 if { (ac_try="$ac_link"
17373 case "(($ac_try" in
17374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375   *) ac_try_echo=$ac_try;;
17376 esac
17377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378   (eval "$ac_link") 2>conftest.er1
17379   ac_status=$?
17380   grep -v '^ *+' conftest.er1 >conftest.err
17381   rm -f conftest.er1
17382   cat conftest.err >&5
17383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384   (exit $ac_status); } &&
17385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17386   { (case "(($ac_try" in
17387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388   *) ac_try_echo=$ac_try;;
17389 esac
17390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17391   (eval "$ac_try") 2>&5
17392   ac_status=$?
17393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394   (exit $ac_status); }; } &&
17395          { ac_try='test -s conftest$ac_exeext'
17396   { (case "(($ac_try" in
17397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17398   *) ac_try_echo=$ac_try;;
17399 esac
17400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17401   (eval "$ac_try") 2>&5
17402   ac_status=$?
17403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404   (exit $ac_status); }; }; then
17405   eval "$as_ac_var=yes"
17406 else
17407   echo "$as_me: failed program was:" >&5
17408 sed 's/^/| /' conftest.$ac_ext >&5
17409
17410         eval "$as_ac_var=no"
17411 fi
17412
17413 rm -f core conftest.err conftest.$ac_objext \
17414       conftest$ac_exeext conftest.$ac_ext
17415 fi
17416 ac_res=`eval echo '${'$as_ac_var'}'`
17417                { echo "$as_me:$LINENO: result: $ac_res" >&5
17418 echo "${ECHO_T}$ac_res" >&6; }
17419 if test `eval echo '${'$as_ac_var'}'` = yes; then
17420   cat >>confdefs.h <<_ACEOF
17421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17422 _ACEOF
17423
17424 fi
17425 done
17426
17427
17428
17429
17430
17431
17432 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17433 do
17434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17435 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17437 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17438   echo $ECHO_N "(cached) $ECHO_C" >&6
17439 else
17440   cat >conftest.$ac_ext <<_ACEOF
17441 /* confdefs.h.  */
17442 _ACEOF
17443 cat confdefs.h >>conftest.$ac_ext
17444 cat >>conftest.$ac_ext <<_ACEOF
17445 /* end confdefs.h.  */
17446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17447    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17448 #define $ac_func innocuous_$ac_func
17449
17450 /* System header to define __stub macros and hopefully few prototypes,
17451     which can conflict with char $ac_func (); below.
17452     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17453     <limits.h> exists even on freestanding compilers.  */
17454
17455 #ifdef __STDC__
17456 # include <limits.h>
17457 #else
17458 # include <assert.h>
17459 #endif
17460
17461 #undef $ac_func
17462
17463 /* Override any GCC internal prototype to avoid an error.
17464    Use char because int might match the return type of a GCC
17465    builtin and then its argument prototype would still apply.  */
17466 #ifdef __cplusplus
17467 extern "C"
17468 #endif
17469 char $ac_func ();
17470 /* The GNU C library defines this for functions which it implements
17471     to always fail with ENOSYS.  Some functions are actually named
17472     something starting with __ and the normal name is an alias.  */
17473 #if defined __stub_$ac_func || defined __stub___$ac_func
17474 choke me
17475 #endif
17476
17477 int
17478 main ()
17479 {
17480 return $ac_func ();
17481   ;
17482   return 0;
17483 }
17484 _ACEOF
17485 rm -f conftest.$ac_objext conftest$ac_exeext
17486 if { (ac_try="$ac_link"
17487 case "(($ac_try" in
17488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489   *) ac_try_echo=$ac_try;;
17490 esac
17491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492   (eval "$ac_link") 2>conftest.er1
17493   ac_status=$?
17494   grep -v '^ *+' conftest.er1 >conftest.err
17495   rm -f conftest.er1
17496   cat conftest.err >&5
17497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498   (exit $ac_status); } &&
17499          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17500   { (case "(($ac_try" in
17501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502   *) ac_try_echo=$ac_try;;
17503 esac
17504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17505   (eval "$ac_try") 2>&5
17506   ac_status=$?
17507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508   (exit $ac_status); }; } &&
17509          { ac_try='test -s conftest$ac_exeext'
17510   { (case "(($ac_try" in
17511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512   *) ac_try_echo=$ac_try;;
17513 esac
17514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17515   (eval "$ac_try") 2>&5
17516   ac_status=$?
17517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518   (exit $ac_status); }; }; then
17519   eval "$as_ac_var=yes"
17520 else
17521   echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.$ac_ext >&5
17523
17524         eval "$as_ac_var=no"
17525 fi
17526
17527 rm -f core conftest.err conftest.$ac_objext \
17528       conftest$ac_exeext conftest.$ac_ext
17529 fi
17530 ac_res=`eval echo '${'$as_ac_var'}'`
17531                { echo "$as_me:$LINENO: result: $ac_res" >&5
17532 echo "${ECHO_T}$ac_res" >&6; }
17533 if test `eval echo '${'$as_ac_var'}'` = yes; then
17534   cat >>confdefs.h <<_ACEOF
17535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17536 _ACEOF
17537
17538 fi
17539 done
17540
17541 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17542 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17543 if test "${llvm_cv_c_printf_a+set}" = set; then
17544   echo $ECHO_N "(cached) $ECHO_C" >&6
17545 else
17546   ac_ext=c
17547 ac_cpp='$CPP $CPPFLAGS'
17548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17551
17552  if test "$cross_compiling" = yes; then
17553   llvmac_cv_c_printf_a=no
17554 else
17555   cat >conftest.$ac_ext <<_ACEOF
17556
17557   /* confdefs.h.  */
17558 _ACEOF
17559 cat confdefs.h >>conftest.$ac_ext
17560 cat >>conftest.$ac_ext <<_ACEOF
17561 /* end confdefs.h.  */
17562
17563 #include <stdio.h>
17564 #include <stdlib.h>
17565
17566 int
17567 main ()
17568 {
17569
17570 volatile double A, B;
17571 char Buffer[100];
17572 A = 1;
17573 A /= 10.0;
17574 sprintf(Buffer, "%a", A);
17575 B = atof(Buffer);
17576 if (A != B)
17577   return (1);
17578 if (A != 0x1.999999999999ap-4)
17579   return (1);
17580 return (0);
17581   ;
17582   return 0;
17583 }
17584 _ACEOF
17585 rm -f conftest$ac_exeext
17586 if { (ac_try="$ac_link"
17587 case "(($ac_try" in
17588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17589   *) ac_try_echo=$ac_try;;
17590 esac
17591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17592   (eval "$ac_link") 2>&5
17593   ac_status=$?
17594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17596   { (case "(($ac_try" in
17597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598   *) ac_try_echo=$ac_try;;
17599 esac
17600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601   (eval "$ac_try") 2>&5
17602   ac_status=$?
17603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604   (exit $ac_status); }; }; then
17605   llvm_cv_c_printf_a=yes
17606 else
17607   echo "$as_me: program exited with status $ac_status" >&5
17608 echo "$as_me: failed program was:" >&5
17609 sed 's/^/| /' conftest.$ac_ext >&5
17610
17611 ( exit $ac_status )
17612 llvmac_cv_c_printf_a=no
17613 fi
17614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17615 fi
17616
17617
17618  ac_ext=c
17619 ac_cpp='$CPP $CPPFLAGS'
17620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17623
17624 fi
17625 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17626 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17627  if test "$llvm_cv_c_printf_a" = "yes"; then
17628
17629 cat >>confdefs.h <<\_ACEOF
17630 #define HAVE_PRINTF_A 1
17631 _ACEOF
17632
17633  fi
17634
17635
17636 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17637 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17638 if test "${ac_cv_func_rand48+set}" = set; then
17639   echo $ECHO_N "(cached) $ECHO_C" >&6
17640 else
17641   ac_ext=cpp
17642 ac_cpp='$CXXCPP $CPPFLAGS'
17643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17646
17647    cat >conftest.$ac_ext <<_ACEOF
17648 /* confdefs.h.  */
17649 _ACEOF
17650 cat confdefs.h >>conftest.$ac_ext
17651 cat >>conftest.$ac_ext <<_ACEOF
17652 /* end confdefs.h.  */
17653 #include <stdlib.h>
17654 int
17655 main ()
17656 {
17657 srand48(0);lrand48();drand48();
17658   ;
17659   return 0;
17660 }
17661 _ACEOF
17662 rm -f conftest.$ac_objext
17663 if { (ac_try="$ac_compile"
17664 case "(($ac_try" in
17665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17666   *) ac_try_echo=$ac_try;;
17667 esac
17668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17669   (eval "$ac_compile") 2>conftest.er1
17670   ac_status=$?
17671   grep -v '^ *+' conftest.er1 >conftest.err
17672   rm -f conftest.er1
17673   cat conftest.err >&5
17674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675   (exit $ac_status); } &&
17676          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17677   { (case "(($ac_try" in
17678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17679   *) ac_try_echo=$ac_try;;
17680 esac
17681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17682   (eval "$ac_try") 2>&5
17683   ac_status=$?
17684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685   (exit $ac_status); }; } &&
17686          { ac_try='test -s conftest.$ac_objext'
17687   { (case "(($ac_try" in
17688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689   *) ac_try_echo=$ac_try;;
17690 esac
17691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692   (eval "$ac_try") 2>&5
17693   ac_status=$?
17694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695   (exit $ac_status); }; }; then
17696   ac_cv_func_rand48=yes
17697 else
17698   echo "$as_me: failed program was:" >&5
17699 sed 's/^/| /' conftest.$ac_ext >&5
17700
17701         ac_cv_func_rand48=no
17702 fi
17703
17704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17705   ac_ext=c
17706 ac_cpp='$CPP $CPPFLAGS'
17707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17710
17711 fi
17712 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17713 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17714
17715 if test "$ac_cv_func_rand48" = "yes" ; then
17716
17717 cat >>confdefs.h <<\_ACEOF
17718 #define HAVE_RAND48 1
17719 _ACEOF
17720
17721 fi
17722
17723
17724 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17725 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17726 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17727   echo $ECHO_N "(cached) $ECHO_C" >&6
17728 else
17729   cat >conftest.$ac_ext <<_ACEOF
17730 /* confdefs.h.  */
17731 _ACEOF
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h.  */
17735 $ac_includes_default
17736 int
17737 main ()
17738 {
17739 #ifndef strerror_s
17740   char *p = (char *) strerror_s;
17741   return !p;
17742 #endif
17743
17744   ;
17745   return 0;
17746 }
17747 _ACEOF
17748 rm -f conftest.$ac_objext
17749 if { (ac_try="$ac_compile"
17750 case "(($ac_try" in
17751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17752   *) ac_try_echo=$ac_try;;
17753 esac
17754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17755   (eval "$ac_compile") 2>conftest.er1
17756   ac_status=$?
17757   grep -v '^ *+' conftest.er1 >conftest.err
17758   rm -f conftest.er1
17759   cat conftest.err >&5
17760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761   (exit $ac_status); } &&
17762          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17763   { (case "(($ac_try" in
17764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765   *) ac_try_echo=$ac_try;;
17766 esac
17767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768   (eval "$ac_try") 2>&5
17769   ac_status=$?
17770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771   (exit $ac_status); }; } &&
17772          { ac_try='test -s conftest.$ac_objext'
17773   { (case "(($ac_try" in
17774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17775   *) ac_try_echo=$ac_try;;
17776 esac
17777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17778   (eval "$ac_try") 2>&5
17779   ac_status=$?
17780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781   (exit $ac_status); }; }; then
17782   ac_cv_have_decl_strerror_s=yes
17783 else
17784   echo "$as_me: failed program was:" >&5
17785 sed 's/^/| /' conftest.$ac_ext >&5
17786
17787         ac_cv_have_decl_strerror_s=no
17788 fi
17789
17790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17791 fi
17792 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17793 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17794 if test $ac_cv_have_decl_strerror_s = yes; then
17795
17796 cat >>confdefs.h <<_ACEOF
17797 #define HAVE_DECL_STRERROR_S 1
17798 _ACEOF
17799
17800
17801 else
17802   cat >>confdefs.h <<_ACEOF
17803 #define HAVE_DECL_STRERROR_S 0
17804 _ACEOF
17805
17806
17807 fi
17808
17809
17810
17811 if test "$llvm_cv_os_type" = "MingW" ; then
17812   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17813 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17814 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17815   echo $ECHO_N "(cached) $ECHO_C" >&6
17816 else
17817   ac_check_lib_save_LIBS=$LIBS
17818 LIBS="-lgcc  $LIBS"
17819 cat >conftest.$ac_ext <<_ACEOF
17820 /* confdefs.h.  */
17821 _ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h.  */
17825
17826 /* Override any GCC internal prototype to avoid an error.
17827    Use char because int might match the return type of a GCC
17828    builtin and then its argument prototype would still apply.  */
17829 #ifdef __cplusplus
17830 extern "C"
17831 #endif
17832 char _alloca ();
17833 int
17834 main ()
17835 {
17836 return _alloca ();
17837   ;
17838   return 0;
17839 }
17840 _ACEOF
17841 rm -f conftest.$ac_objext conftest$ac_exeext
17842 if { (ac_try="$ac_link"
17843 case "(($ac_try" in
17844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845   *) ac_try_echo=$ac_try;;
17846 esac
17847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848   (eval "$ac_link") 2>conftest.er1
17849   ac_status=$?
17850   grep -v '^ *+' conftest.er1 >conftest.err
17851   rm -f conftest.er1
17852   cat conftest.err >&5
17853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854   (exit $ac_status); } &&
17855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17856   { (case "(($ac_try" in
17857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858   *) ac_try_echo=$ac_try;;
17859 esac
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861   (eval "$ac_try") 2>&5
17862   ac_status=$?
17863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864   (exit $ac_status); }; } &&
17865          { ac_try='test -s conftest$ac_exeext'
17866   { (case "(($ac_try" in
17867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17868   *) ac_try_echo=$ac_try;;
17869 esac
17870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17871   (eval "$ac_try") 2>&5
17872   ac_status=$?
17873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874   (exit $ac_status); }; }; then
17875   ac_cv_lib_gcc__alloca=yes
17876 else
17877   echo "$as_me: failed program was:" >&5
17878 sed 's/^/| /' conftest.$ac_ext >&5
17879
17880         ac_cv_lib_gcc__alloca=no
17881 fi
17882
17883 rm -f core conftest.err conftest.$ac_objext \
17884       conftest$ac_exeext conftest.$ac_ext
17885 LIBS=$ac_check_lib_save_LIBS
17886 fi
17887 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17888 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17889 if test $ac_cv_lib_gcc__alloca = yes; then
17890
17891 cat >>confdefs.h <<\_ACEOF
17892 #define HAVE__ALLOCA 1
17893 _ACEOF
17894
17895 fi
17896
17897   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17898 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17899 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17900   echo $ECHO_N "(cached) $ECHO_C" >&6
17901 else
17902   ac_check_lib_save_LIBS=$LIBS
17903 LIBS="-lgcc  $LIBS"
17904 cat >conftest.$ac_ext <<_ACEOF
17905 /* confdefs.h.  */
17906 _ACEOF
17907 cat confdefs.h >>conftest.$ac_ext
17908 cat >>conftest.$ac_ext <<_ACEOF
17909 /* end confdefs.h.  */
17910
17911 /* Override any GCC internal prototype to avoid an error.
17912    Use char because int might match the return type of a GCC
17913    builtin and then its argument prototype would still apply.  */
17914 #ifdef __cplusplus
17915 extern "C"
17916 #endif
17917 char __alloca ();
17918 int
17919 main ()
17920 {
17921 return __alloca ();
17922   ;
17923   return 0;
17924 }
17925 _ACEOF
17926 rm -f conftest.$ac_objext conftest$ac_exeext
17927 if { (ac_try="$ac_link"
17928 case "(($ac_try" in
17929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930   *) ac_try_echo=$ac_try;;
17931 esac
17932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933   (eval "$ac_link") 2>conftest.er1
17934   ac_status=$?
17935   grep -v '^ *+' conftest.er1 >conftest.err
17936   rm -f conftest.er1
17937   cat conftest.err >&5
17938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939   (exit $ac_status); } &&
17940          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17941   { (case "(($ac_try" in
17942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943   *) ac_try_echo=$ac_try;;
17944 esac
17945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946   (eval "$ac_try") 2>&5
17947   ac_status=$?
17948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949   (exit $ac_status); }; } &&
17950          { ac_try='test -s conftest$ac_exeext'
17951   { (case "(($ac_try" in
17952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953   *) ac_try_echo=$ac_try;;
17954 esac
17955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956   (eval "$ac_try") 2>&5
17957   ac_status=$?
17958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959   (exit $ac_status); }; }; then
17960   ac_cv_lib_gcc___alloca=yes
17961 else
17962   echo "$as_me: failed program was:" >&5
17963 sed 's/^/| /' conftest.$ac_ext >&5
17964
17965         ac_cv_lib_gcc___alloca=no
17966 fi
17967
17968 rm -f core conftest.err conftest.$ac_objext \
17969       conftest$ac_exeext conftest.$ac_ext
17970 LIBS=$ac_check_lib_save_LIBS
17971 fi
17972 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17973 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17974 if test $ac_cv_lib_gcc___alloca = yes; then
17975
17976 cat >>confdefs.h <<\_ACEOF
17977 #define HAVE___ALLOCA 1
17978 _ACEOF
17979
17980 fi
17981
17982   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17983 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17984 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17985   echo $ECHO_N "(cached) $ECHO_C" >&6
17986 else
17987   ac_check_lib_save_LIBS=$LIBS
17988 LIBS="-lgcc  $LIBS"
17989 cat >conftest.$ac_ext <<_ACEOF
17990 /* confdefs.h.  */
17991 _ACEOF
17992 cat confdefs.h >>conftest.$ac_ext
17993 cat >>conftest.$ac_ext <<_ACEOF
17994 /* end confdefs.h.  */
17995
17996 /* Override any GCC internal prototype to avoid an error.
17997    Use char because int might match the return type of a GCC
17998    builtin and then its argument prototype would still apply.  */
17999 #ifdef __cplusplus
18000 extern "C"
18001 #endif
18002 char __chkstk ();
18003 int
18004 main ()
18005 {
18006 return __chkstk ();
18007   ;
18008   return 0;
18009 }
18010 _ACEOF
18011 rm -f conftest.$ac_objext conftest$ac_exeext
18012 if { (ac_try="$ac_link"
18013 case "(($ac_try" in
18014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18015   *) ac_try_echo=$ac_try;;
18016 esac
18017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18018   (eval "$ac_link") 2>conftest.er1
18019   ac_status=$?
18020   grep -v '^ *+' conftest.er1 >conftest.err
18021   rm -f conftest.er1
18022   cat conftest.err >&5
18023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024   (exit $ac_status); } &&
18025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18026   { (case "(($ac_try" in
18027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028   *) ac_try_echo=$ac_try;;
18029 esac
18030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18031   (eval "$ac_try") 2>&5
18032   ac_status=$?
18033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034   (exit $ac_status); }; } &&
18035          { ac_try='test -s conftest$ac_exeext'
18036   { (case "(($ac_try" in
18037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18038   *) ac_try_echo=$ac_try;;
18039 esac
18040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18041   (eval "$ac_try") 2>&5
18042   ac_status=$?
18043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044   (exit $ac_status); }; }; then
18045   ac_cv_lib_gcc___chkstk=yes
18046 else
18047   echo "$as_me: failed program was:" >&5
18048 sed 's/^/| /' conftest.$ac_ext >&5
18049
18050         ac_cv_lib_gcc___chkstk=no
18051 fi
18052
18053 rm -f core conftest.err conftest.$ac_objext \
18054       conftest$ac_exeext conftest.$ac_ext
18055 LIBS=$ac_check_lib_save_LIBS
18056 fi
18057 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18058 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18059 if test $ac_cv_lib_gcc___chkstk = yes; then
18060
18061 cat >>confdefs.h <<\_ACEOF
18062 #define HAVE___CHKSTK 1
18063 _ACEOF
18064
18065 fi
18066
18067   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18068 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18069 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18070   echo $ECHO_N "(cached) $ECHO_C" >&6
18071 else
18072   ac_check_lib_save_LIBS=$LIBS
18073 LIBS="-lgcc  $LIBS"
18074 cat >conftest.$ac_ext <<_ACEOF
18075 /* confdefs.h.  */
18076 _ACEOF
18077 cat confdefs.h >>conftest.$ac_ext
18078 cat >>conftest.$ac_ext <<_ACEOF
18079 /* end confdefs.h.  */
18080
18081 /* Override any GCC internal prototype to avoid an error.
18082    Use char because int might match the return type of a GCC
18083    builtin and then its argument prototype would still apply.  */
18084 #ifdef __cplusplus
18085 extern "C"
18086 #endif
18087 char ___chkstk ();
18088 int
18089 main ()
18090 {
18091 return ___chkstk ();
18092   ;
18093   return 0;
18094 }
18095 _ACEOF
18096 rm -f conftest.$ac_objext conftest$ac_exeext
18097 if { (ac_try="$ac_link"
18098 case "(($ac_try" in
18099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100   *) ac_try_echo=$ac_try;;
18101 esac
18102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18103   (eval "$ac_link") 2>conftest.er1
18104   ac_status=$?
18105   grep -v '^ *+' conftest.er1 >conftest.err
18106   rm -f conftest.er1
18107   cat conftest.err >&5
18108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109   (exit $ac_status); } &&
18110          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18117   ac_status=$?
18118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119   (exit $ac_status); }; } &&
18120          { ac_try='test -s conftest$ac_exeext'
18121   { (case "(($ac_try" in
18122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18123   *) ac_try_echo=$ac_try;;
18124 esac
18125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18126   (eval "$ac_try") 2>&5
18127   ac_status=$?
18128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129   (exit $ac_status); }; }; then
18130   ac_cv_lib_gcc____chkstk=yes
18131 else
18132   echo "$as_me: failed program was:" >&5
18133 sed 's/^/| /' conftest.$ac_ext >&5
18134
18135         ac_cv_lib_gcc____chkstk=no
18136 fi
18137
18138 rm -f core conftest.err conftest.$ac_objext \
18139       conftest$ac_exeext conftest.$ac_ext
18140 LIBS=$ac_check_lib_save_LIBS
18141 fi
18142 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18143 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18144 if test $ac_cv_lib_gcc____chkstk = yes; then
18145
18146 cat >>confdefs.h <<\_ACEOF
18147 #define HAVE____CHKSTK 1
18148 _ACEOF
18149
18150 fi
18151
18152
18153   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18154 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18155 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18156   echo $ECHO_N "(cached) $ECHO_C" >&6
18157 else
18158   ac_check_lib_save_LIBS=$LIBS
18159 LIBS="-lgcc  $LIBS"
18160 cat >conftest.$ac_ext <<_ACEOF
18161 /* confdefs.h.  */
18162 _ACEOF
18163 cat confdefs.h >>conftest.$ac_ext
18164 cat >>conftest.$ac_ext <<_ACEOF
18165 /* end confdefs.h.  */
18166
18167 /* Override any GCC internal prototype to avoid an error.
18168    Use char because int might match the return type of a GCC
18169    builtin and then its argument prototype would still apply.  */
18170 #ifdef __cplusplus
18171 extern "C"
18172 #endif
18173 char __ashldi3 ();
18174 int
18175 main ()
18176 {
18177 return __ashldi3 ();
18178   ;
18179   return 0;
18180 }
18181 _ACEOF
18182 rm -f conftest.$ac_objext conftest$ac_exeext
18183 if { (ac_try="$ac_link"
18184 case "(($ac_try" in
18185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18186   *) ac_try_echo=$ac_try;;
18187 esac
18188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18189   (eval "$ac_link") 2>conftest.er1
18190   ac_status=$?
18191   grep -v '^ *+' conftest.er1 >conftest.err
18192   rm -f conftest.er1
18193   cat conftest.err >&5
18194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195   (exit $ac_status); } &&
18196          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18197   { (case "(($ac_try" in
18198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18199   *) ac_try_echo=$ac_try;;
18200 esac
18201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18202   (eval "$ac_try") 2>&5
18203   ac_status=$?
18204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205   (exit $ac_status); }; } &&
18206          { ac_try='test -s conftest$ac_exeext'
18207   { (case "(($ac_try" in
18208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209   *) ac_try_echo=$ac_try;;
18210 esac
18211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18212   (eval "$ac_try") 2>&5
18213   ac_status=$?
18214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215   (exit $ac_status); }; }; then
18216   ac_cv_lib_gcc___ashldi3=yes
18217 else
18218   echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18220
18221         ac_cv_lib_gcc___ashldi3=no
18222 fi
18223
18224 rm -f core conftest.err conftest.$ac_objext \
18225       conftest$ac_exeext conftest.$ac_ext
18226 LIBS=$ac_check_lib_save_LIBS
18227 fi
18228 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18229 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18230 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18231
18232 cat >>confdefs.h <<\_ACEOF
18233 #define HAVE___ASHLDI3 1
18234 _ACEOF
18235
18236 fi
18237
18238   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18239 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18240 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18241   echo $ECHO_N "(cached) $ECHO_C" >&6
18242 else
18243   ac_check_lib_save_LIBS=$LIBS
18244 LIBS="-lgcc  $LIBS"
18245 cat >conftest.$ac_ext <<_ACEOF
18246 /* confdefs.h.  */
18247 _ACEOF
18248 cat confdefs.h >>conftest.$ac_ext
18249 cat >>conftest.$ac_ext <<_ACEOF
18250 /* end confdefs.h.  */
18251
18252 /* Override any GCC internal prototype to avoid an error.
18253    Use char because int might match the return type of a GCC
18254    builtin and then its argument prototype would still apply.  */
18255 #ifdef __cplusplus
18256 extern "C"
18257 #endif
18258 char __ashrdi3 ();
18259 int
18260 main ()
18261 {
18262 return __ashrdi3 ();
18263   ;
18264   return 0;
18265 }
18266 _ACEOF
18267 rm -f conftest.$ac_objext conftest$ac_exeext
18268 if { (ac_try="$ac_link"
18269 case "(($ac_try" in
18270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18271   *) ac_try_echo=$ac_try;;
18272 esac
18273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18274   (eval "$ac_link") 2>conftest.er1
18275   ac_status=$?
18276   grep -v '^ *+' conftest.er1 >conftest.err
18277   rm -f conftest.er1
18278   cat conftest.err >&5
18279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280   (exit $ac_status); } &&
18281          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18282   { (case "(($ac_try" in
18283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18284   *) ac_try_echo=$ac_try;;
18285 esac
18286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18287   (eval "$ac_try") 2>&5
18288   ac_status=$?
18289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290   (exit $ac_status); }; } &&
18291          { ac_try='test -s conftest$ac_exeext'
18292   { (case "(($ac_try" in
18293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18294   *) ac_try_echo=$ac_try;;
18295 esac
18296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18297   (eval "$ac_try") 2>&5
18298   ac_status=$?
18299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300   (exit $ac_status); }; }; then
18301   ac_cv_lib_gcc___ashrdi3=yes
18302 else
18303   echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18305
18306         ac_cv_lib_gcc___ashrdi3=no
18307 fi
18308
18309 rm -f core conftest.err conftest.$ac_objext \
18310       conftest$ac_exeext conftest.$ac_ext
18311 LIBS=$ac_check_lib_save_LIBS
18312 fi
18313 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18314 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18315 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18316
18317 cat >>confdefs.h <<\_ACEOF
18318 #define HAVE___ASHRDI3 1
18319 _ACEOF
18320
18321 fi
18322
18323   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18324 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18325 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18326   echo $ECHO_N "(cached) $ECHO_C" >&6
18327 else
18328   ac_check_lib_save_LIBS=$LIBS
18329 LIBS="-lgcc  $LIBS"
18330 cat >conftest.$ac_ext <<_ACEOF
18331 /* confdefs.h.  */
18332 _ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h.  */
18336
18337 /* Override any GCC internal prototype to avoid an error.
18338    Use char because int might match the return type of a GCC
18339    builtin and then its argument prototype would still apply.  */
18340 #ifdef __cplusplus
18341 extern "C"
18342 #endif
18343 char __divdi3 ();
18344 int
18345 main ()
18346 {
18347 return __divdi3 ();
18348   ;
18349   return 0;
18350 }
18351 _ACEOF
18352 rm -f conftest.$ac_objext conftest$ac_exeext
18353 if { (ac_try="$ac_link"
18354 case "(($ac_try" in
18355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356   *) ac_try_echo=$ac_try;;
18357 esac
18358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18359   (eval "$ac_link") 2>conftest.er1
18360   ac_status=$?
18361   grep -v '^ *+' conftest.er1 >conftest.err
18362   rm -f conftest.er1
18363   cat conftest.err >&5
18364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365   (exit $ac_status); } &&
18366          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18373   ac_status=$?
18374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375   (exit $ac_status); }; } &&
18376          { ac_try='test -s conftest$ac_exeext'
18377   { (case "(($ac_try" in
18378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379   *) ac_try_echo=$ac_try;;
18380 esac
18381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382   (eval "$ac_try") 2>&5
18383   ac_status=$?
18384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385   (exit $ac_status); }; }; then
18386   ac_cv_lib_gcc___divdi3=yes
18387 else
18388   echo "$as_me: failed program was:" >&5
18389 sed 's/^/| /' conftest.$ac_ext >&5
18390
18391         ac_cv_lib_gcc___divdi3=no
18392 fi
18393
18394 rm -f core conftest.err conftest.$ac_objext \
18395       conftest$ac_exeext conftest.$ac_ext
18396 LIBS=$ac_check_lib_save_LIBS
18397 fi
18398 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18399 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18400 if test $ac_cv_lib_gcc___divdi3 = yes; then
18401
18402 cat >>confdefs.h <<\_ACEOF
18403 #define HAVE___DIVDI3 1
18404 _ACEOF
18405
18406 fi
18407
18408   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18409 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18410 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18411   echo $ECHO_N "(cached) $ECHO_C" >&6
18412 else
18413   ac_check_lib_save_LIBS=$LIBS
18414 LIBS="-lgcc  $LIBS"
18415 cat >conftest.$ac_ext <<_ACEOF
18416 /* confdefs.h.  */
18417 _ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h.  */
18421
18422 /* Override any GCC internal prototype to avoid an error.
18423    Use char because int might match the return type of a GCC
18424    builtin and then its argument prototype would still apply.  */
18425 #ifdef __cplusplus
18426 extern "C"
18427 #endif
18428 char __fixdfdi ();
18429 int
18430 main ()
18431 {
18432 return __fixdfdi ();
18433   ;
18434   return 0;
18435 }
18436 _ACEOF
18437 rm -f conftest.$ac_objext conftest$ac_exeext
18438 if { (ac_try="$ac_link"
18439 case "(($ac_try" in
18440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18441   *) ac_try_echo=$ac_try;;
18442 esac
18443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18444   (eval "$ac_link") 2>conftest.er1
18445   ac_status=$?
18446   grep -v '^ *+' conftest.er1 >conftest.err
18447   rm -f conftest.er1
18448   cat conftest.err >&5
18449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450   (exit $ac_status); } &&
18451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18458   ac_status=$?
18459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460   (exit $ac_status); }; } &&
18461          { ac_try='test -s conftest$ac_exeext'
18462   { (case "(($ac_try" in
18463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18464   *) ac_try_echo=$ac_try;;
18465 esac
18466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18467   (eval "$ac_try") 2>&5
18468   ac_status=$?
18469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470   (exit $ac_status); }; }; then
18471   ac_cv_lib_gcc___fixdfdi=yes
18472 else
18473   echo "$as_me: failed program was:" >&5
18474 sed 's/^/| /' conftest.$ac_ext >&5
18475
18476         ac_cv_lib_gcc___fixdfdi=no
18477 fi
18478
18479 rm -f core conftest.err conftest.$ac_objext \
18480       conftest$ac_exeext conftest.$ac_ext
18481 LIBS=$ac_check_lib_save_LIBS
18482 fi
18483 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18484 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18485 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18486
18487 cat >>confdefs.h <<\_ACEOF
18488 #define HAVE___FIXDFDI 1
18489 _ACEOF
18490
18491 fi
18492
18493   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18494 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18495 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18496   echo $ECHO_N "(cached) $ECHO_C" >&6
18497 else
18498   ac_check_lib_save_LIBS=$LIBS
18499 LIBS="-lgcc  $LIBS"
18500 cat >conftest.$ac_ext <<_ACEOF
18501 /* confdefs.h.  */
18502 _ACEOF
18503 cat confdefs.h >>conftest.$ac_ext
18504 cat >>conftest.$ac_ext <<_ACEOF
18505 /* end confdefs.h.  */
18506
18507 /* Override any GCC internal prototype to avoid an error.
18508    Use char because int might match the return type of a GCC
18509    builtin and then its argument prototype would still apply.  */
18510 #ifdef __cplusplus
18511 extern "C"
18512 #endif
18513 char __fixsfdi ();
18514 int
18515 main ()
18516 {
18517 return __fixsfdi ();
18518   ;
18519   return 0;
18520 }
18521 _ACEOF
18522 rm -f conftest.$ac_objext conftest$ac_exeext
18523 if { (ac_try="$ac_link"
18524 case "(($ac_try" in
18525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526   *) ac_try_echo=$ac_try;;
18527 esac
18528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529   (eval "$ac_link") 2>conftest.er1
18530   ac_status=$?
18531   grep -v '^ *+' conftest.er1 >conftest.err
18532   rm -f conftest.er1
18533   cat conftest.err >&5
18534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535   (exit $ac_status); } &&
18536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18543   ac_status=$?
18544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545   (exit $ac_status); }; } &&
18546          { ac_try='test -s conftest$ac_exeext'
18547   { (case "(($ac_try" in
18548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18549   *) ac_try_echo=$ac_try;;
18550 esac
18551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18552   (eval "$ac_try") 2>&5
18553   ac_status=$?
18554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555   (exit $ac_status); }; }; then
18556   ac_cv_lib_gcc___fixsfdi=yes
18557 else
18558   echo "$as_me: failed program was:" >&5
18559 sed 's/^/| /' conftest.$ac_ext >&5
18560
18561         ac_cv_lib_gcc___fixsfdi=no
18562 fi
18563
18564 rm -f core conftest.err conftest.$ac_objext \
18565       conftest$ac_exeext conftest.$ac_ext
18566 LIBS=$ac_check_lib_save_LIBS
18567 fi
18568 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18569 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18570 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18571
18572 cat >>confdefs.h <<\_ACEOF
18573 #define HAVE___FIXSFDI 1
18574 _ACEOF
18575
18576 fi
18577
18578   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18579 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18580 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18581   echo $ECHO_N "(cached) $ECHO_C" >&6
18582 else
18583   ac_check_lib_save_LIBS=$LIBS
18584 LIBS="-lgcc  $LIBS"
18585 cat >conftest.$ac_ext <<_ACEOF
18586 /* confdefs.h.  */
18587 _ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h.  */
18591
18592 /* Override any GCC internal prototype to avoid an error.
18593    Use char because int might match the return type of a GCC
18594    builtin and then its argument prototype would still apply.  */
18595 #ifdef __cplusplus
18596 extern "C"
18597 #endif
18598 char __floatdidf ();
18599 int
18600 main ()
18601 {
18602 return __floatdidf ();
18603   ;
18604   return 0;
18605 }
18606 _ACEOF
18607 rm -f conftest.$ac_objext conftest$ac_exeext
18608 if { (ac_try="$ac_link"
18609 case "(($ac_try" in
18610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18611   *) ac_try_echo=$ac_try;;
18612 esac
18613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18614   (eval "$ac_link") 2>conftest.er1
18615   ac_status=$?
18616   grep -v '^ *+' conftest.er1 >conftest.err
18617   rm -f conftest.er1
18618   cat conftest.err >&5
18619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620   (exit $ac_status); } &&
18621          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
18628   ac_status=$?
18629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630   (exit $ac_status); }; } &&
18631          { ac_try='test -s conftest$ac_exeext'
18632   { (case "(($ac_try" in
18633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634   *) ac_try_echo=$ac_try;;
18635 esac
18636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18637   (eval "$ac_try") 2>&5
18638   ac_status=$?
18639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640   (exit $ac_status); }; }; then
18641   ac_cv_lib_gcc___floatdidf=yes
18642 else
18643   echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18645
18646         ac_cv_lib_gcc___floatdidf=no
18647 fi
18648
18649 rm -f core conftest.err conftest.$ac_objext \
18650       conftest$ac_exeext conftest.$ac_ext
18651 LIBS=$ac_check_lib_save_LIBS
18652 fi
18653 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18654 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18655 if test $ac_cv_lib_gcc___floatdidf = yes; then
18656
18657 cat >>confdefs.h <<\_ACEOF
18658 #define HAVE___FLOATDIDF 1
18659 _ACEOF
18660
18661 fi
18662
18663   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18664 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18665 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18666   echo $ECHO_N "(cached) $ECHO_C" >&6
18667 else
18668   ac_check_lib_save_LIBS=$LIBS
18669 LIBS="-lgcc  $LIBS"
18670 cat >conftest.$ac_ext <<_ACEOF
18671 /* confdefs.h.  */
18672 _ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h.  */
18676
18677 /* Override any GCC internal prototype to avoid an error.
18678    Use char because int might match the return type of a GCC
18679    builtin and then its argument prototype would still apply.  */
18680 #ifdef __cplusplus
18681 extern "C"
18682 #endif
18683 char __lshrdi3 ();
18684 int
18685 main ()
18686 {
18687 return __lshrdi3 ();
18688   ;
18689   return 0;
18690 }
18691 _ACEOF
18692 rm -f conftest.$ac_objext conftest$ac_exeext
18693 if { (ac_try="$ac_link"
18694 case "(($ac_try" in
18695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18696   *) ac_try_echo=$ac_try;;
18697 esac
18698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18699   (eval "$ac_link") 2>conftest.er1
18700   ac_status=$?
18701   grep -v '^ *+' conftest.er1 >conftest.err
18702   rm -f conftest.er1
18703   cat conftest.err >&5
18704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705   (exit $ac_status); } &&
18706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18707   { (case "(($ac_try" in
18708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709   *) ac_try_echo=$ac_try;;
18710 esac
18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712   (eval "$ac_try") 2>&5
18713   ac_status=$?
18714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715   (exit $ac_status); }; } &&
18716          { ac_try='test -s conftest$ac_exeext'
18717   { (case "(($ac_try" in
18718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18719   *) ac_try_echo=$ac_try;;
18720 esac
18721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18722   (eval "$ac_try") 2>&5
18723   ac_status=$?
18724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725   (exit $ac_status); }; }; then
18726   ac_cv_lib_gcc___lshrdi3=yes
18727 else
18728   echo "$as_me: failed program was:" >&5
18729 sed 's/^/| /' conftest.$ac_ext >&5
18730
18731         ac_cv_lib_gcc___lshrdi3=no
18732 fi
18733
18734 rm -f core conftest.err conftest.$ac_objext \
18735       conftest$ac_exeext conftest.$ac_ext
18736 LIBS=$ac_check_lib_save_LIBS
18737 fi
18738 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18739 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18740 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18741
18742 cat >>confdefs.h <<\_ACEOF
18743 #define HAVE___LSHRDI3 1
18744 _ACEOF
18745
18746 fi
18747
18748   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18749 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18750 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18751   echo $ECHO_N "(cached) $ECHO_C" >&6
18752 else
18753   ac_check_lib_save_LIBS=$LIBS
18754 LIBS="-lgcc  $LIBS"
18755 cat >conftest.$ac_ext <<_ACEOF
18756 /* confdefs.h.  */
18757 _ACEOF
18758 cat confdefs.h >>conftest.$ac_ext
18759 cat >>conftest.$ac_ext <<_ACEOF
18760 /* end confdefs.h.  */
18761
18762 /* Override any GCC internal prototype to avoid an error.
18763    Use char because int might match the return type of a GCC
18764    builtin and then its argument prototype would still apply.  */
18765 #ifdef __cplusplus
18766 extern "C"
18767 #endif
18768 char __moddi3 ();
18769 int
18770 main ()
18771 {
18772 return __moddi3 ();
18773   ;
18774   return 0;
18775 }
18776 _ACEOF
18777 rm -f conftest.$ac_objext conftest$ac_exeext
18778 if { (ac_try="$ac_link"
18779 case "(($ac_try" in
18780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781   *) ac_try_echo=$ac_try;;
18782 esac
18783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784   (eval "$ac_link") 2>conftest.er1
18785   ac_status=$?
18786   grep -v '^ *+' conftest.er1 >conftest.err
18787   rm -f conftest.er1
18788   cat conftest.err >&5
18789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790   (exit $ac_status); } &&
18791          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18792   { (case "(($ac_try" in
18793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18794   *) ac_try_echo=$ac_try;;
18795 esac
18796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18797   (eval "$ac_try") 2>&5
18798   ac_status=$?
18799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800   (exit $ac_status); }; } &&
18801          { ac_try='test -s conftest$ac_exeext'
18802   { (case "(($ac_try" in
18803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18804   *) ac_try_echo=$ac_try;;
18805 esac
18806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18807   (eval "$ac_try") 2>&5
18808   ac_status=$?
18809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810   (exit $ac_status); }; }; then
18811   ac_cv_lib_gcc___moddi3=yes
18812 else
18813   echo "$as_me: failed program was:" >&5
18814 sed 's/^/| /' conftest.$ac_ext >&5
18815
18816         ac_cv_lib_gcc___moddi3=no
18817 fi
18818
18819 rm -f core conftest.err conftest.$ac_objext \
18820       conftest$ac_exeext conftest.$ac_ext
18821 LIBS=$ac_check_lib_save_LIBS
18822 fi
18823 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18824 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18825 if test $ac_cv_lib_gcc___moddi3 = yes; then
18826
18827 cat >>confdefs.h <<\_ACEOF
18828 #define HAVE___MODDI3 1
18829 _ACEOF
18830
18831 fi
18832
18833   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18834 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18835 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18836   echo $ECHO_N "(cached) $ECHO_C" >&6
18837 else
18838   ac_check_lib_save_LIBS=$LIBS
18839 LIBS="-lgcc  $LIBS"
18840 cat >conftest.$ac_ext <<_ACEOF
18841 /* confdefs.h.  */
18842 _ACEOF
18843 cat confdefs.h >>conftest.$ac_ext
18844 cat >>conftest.$ac_ext <<_ACEOF
18845 /* end confdefs.h.  */
18846
18847 /* Override any GCC internal prototype to avoid an error.
18848    Use char because int might match the return type of a GCC
18849    builtin and then its argument prototype would still apply.  */
18850 #ifdef __cplusplus
18851 extern "C"
18852 #endif
18853 char __udivdi3 ();
18854 int
18855 main ()
18856 {
18857 return __udivdi3 ();
18858   ;
18859   return 0;
18860 }
18861 _ACEOF
18862 rm -f conftest.$ac_objext conftest$ac_exeext
18863 if { (ac_try="$ac_link"
18864 case "(($ac_try" in
18865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18866   *) ac_try_echo=$ac_try;;
18867 esac
18868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18869   (eval "$ac_link") 2>conftest.er1
18870   ac_status=$?
18871   grep -v '^ *+' conftest.er1 >conftest.err
18872   rm -f conftest.er1
18873   cat conftest.err >&5
18874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875   (exit $ac_status); } &&
18876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18877   { (case "(($ac_try" in
18878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18879   *) ac_try_echo=$ac_try;;
18880 esac
18881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882   (eval "$ac_try") 2>&5
18883   ac_status=$?
18884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885   (exit $ac_status); }; } &&
18886          { ac_try='test -s conftest$ac_exeext'
18887   { (case "(($ac_try" in
18888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18889   *) ac_try_echo=$ac_try;;
18890 esac
18891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18892   (eval "$ac_try") 2>&5
18893   ac_status=$?
18894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895   (exit $ac_status); }; }; then
18896   ac_cv_lib_gcc___udivdi3=yes
18897 else
18898   echo "$as_me: failed program was:" >&5
18899 sed 's/^/| /' conftest.$ac_ext >&5
18900
18901         ac_cv_lib_gcc___udivdi3=no
18902 fi
18903
18904 rm -f core conftest.err conftest.$ac_objext \
18905       conftest$ac_exeext conftest.$ac_ext
18906 LIBS=$ac_check_lib_save_LIBS
18907 fi
18908 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18909 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18910 if test $ac_cv_lib_gcc___udivdi3 = yes; then
18911
18912 cat >>confdefs.h <<\_ACEOF
18913 #define HAVE___UDIVDI3 1
18914 _ACEOF
18915
18916 fi
18917
18918   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18919 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18920 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18921   echo $ECHO_N "(cached) $ECHO_C" >&6
18922 else
18923   ac_check_lib_save_LIBS=$LIBS
18924 LIBS="-lgcc  $LIBS"
18925 cat >conftest.$ac_ext <<_ACEOF
18926 /* confdefs.h.  */
18927 _ACEOF
18928 cat confdefs.h >>conftest.$ac_ext
18929 cat >>conftest.$ac_ext <<_ACEOF
18930 /* end confdefs.h.  */
18931
18932 /* Override any GCC internal prototype to avoid an error.
18933    Use char because int might match the return type of a GCC
18934    builtin and then its argument prototype would still apply.  */
18935 #ifdef __cplusplus
18936 extern "C"
18937 #endif
18938 char __umoddi3 ();
18939 int
18940 main ()
18941 {
18942 return __umoddi3 ();
18943   ;
18944   return 0;
18945 }
18946 _ACEOF
18947 rm -f conftest.$ac_objext conftest$ac_exeext
18948 if { (ac_try="$ac_link"
18949 case "(($ac_try" in
18950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951   *) ac_try_echo=$ac_try;;
18952 esac
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954   (eval "$ac_link") 2>conftest.er1
18955   ac_status=$?
18956   grep -v '^ *+' conftest.er1 >conftest.err
18957   rm -f conftest.er1
18958   cat conftest.err >&5
18959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960   (exit $ac_status); } &&
18961          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18962   { (case "(($ac_try" in
18963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964   *) ac_try_echo=$ac_try;;
18965 esac
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967   (eval "$ac_try") 2>&5
18968   ac_status=$?
18969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970   (exit $ac_status); }; } &&
18971          { ac_try='test -s conftest$ac_exeext'
18972   { (case "(($ac_try" in
18973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18974   *) ac_try_echo=$ac_try;;
18975 esac
18976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18977   (eval "$ac_try") 2>&5
18978   ac_status=$?
18979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980   (exit $ac_status); }; }; then
18981   ac_cv_lib_gcc___umoddi3=yes
18982 else
18983   echo "$as_me: failed program was:" >&5
18984 sed 's/^/| /' conftest.$ac_ext >&5
18985
18986         ac_cv_lib_gcc___umoddi3=no
18987 fi
18988
18989 rm -f core conftest.err conftest.$ac_objext \
18990       conftest$ac_exeext conftest.$ac_ext
18991 LIBS=$ac_check_lib_save_LIBS
18992 fi
18993 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18994 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18995 if test $ac_cv_lib_gcc___umoddi3 = yes; then
18996
18997 cat >>confdefs.h <<\_ACEOF
18998 #define HAVE___UMODDI3 1
18999 _ACEOF
19000
19001 fi
19002
19003
19004   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19005 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19006 if test "${ac_cv_lib_gcc___main+set}" = set; then
19007   echo $ECHO_N "(cached) $ECHO_C" >&6
19008 else
19009   ac_check_lib_save_LIBS=$LIBS
19010 LIBS="-lgcc  $LIBS"
19011 cat >conftest.$ac_ext <<_ACEOF
19012 /* confdefs.h.  */
19013 _ACEOF
19014 cat confdefs.h >>conftest.$ac_ext
19015 cat >>conftest.$ac_ext <<_ACEOF
19016 /* end confdefs.h.  */
19017
19018 /* Override any GCC internal prototype to avoid an error.
19019    Use char because int might match the return type of a GCC
19020    builtin and then its argument prototype would still apply.  */
19021 #ifdef __cplusplus
19022 extern "C"
19023 #endif
19024 char __main ();
19025 int
19026 main ()
19027 {
19028 return __main ();
19029   ;
19030   return 0;
19031 }
19032 _ACEOF
19033 rm -f conftest.$ac_objext conftest$ac_exeext
19034 if { (ac_try="$ac_link"
19035 case "(($ac_try" in
19036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037   *) ac_try_echo=$ac_try;;
19038 esac
19039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040   (eval "$ac_link") 2>conftest.er1
19041   ac_status=$?
19042   grep -v '^ *+' conftest.er1 >conftest.err
19043   rm -f conftest.er1
19044   cat conftest.err >&5
19045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046   (exit $ac_status); } &&
19047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
19054   ac_status=$?
19055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056   (exit $ac_status); }; } &&
19057          { ac_try='test -s conftest$ac_exeext'
19058   { (case "(($ac_try" in
19059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19060   *) ac_try_echo=$ac_try;;
19061 esac
19062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19063   (eval "$ac_try") 2>&5
19064   ac_status=$?
19065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066   (exit $ac_status); }; }; then
19067   ac_cv_lib_gcc___main=yes
19068 else
19069   echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.$ac_ext >&5
19071
19072         ac_cv_lib_gcc___main=no
19073 fi
19074
19075 rm -f core conftest.err conftest.$ac_objext \
19076       conftest$ac_exeext conftest.$ac_ext
19077 LIBS=$ac_check_lib_save_LIBS
19078 fi
19079 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19080 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19081 if test $ac_cv_lib_gcc___main = yes; then
19082
19083 cat >>confdefs.h <<\_ACEOF
19084 #define HAVE___MAIN 1
19085 _ACEOF
19086
19087 fi
19088
19089   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19090 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19091 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19092   echo $ECHO_N "(cached) $ECHO_C" >&6
19093 else
19094   ac_check_lib_save_LIBS=$LIBS
19095 LIBS="-lgcc  $LIBS"
19096 cat >conftest.$ac_ext <<_ACEOF
19097 /* confdefs.h.  */
19098 _ACEOF
19099 cat confdefs.h >>conftest.$ac_ext
19100 cat >>conftest.$ac_ext <<_ACEOF
19101 /* end confdefs.h.  */
19102
19103 /* Override any GCC internal prototype to avoid an error.
19104    Use char because int might match the return type of a GCC
19105    builtin and then its argument prototype would still apply.  */
19106 #ifdef __cplusplus
19107 extern "C"
19108 #endif
19109 char __cmpdi2 ();
19110 int
19111 main ()
19112 {
19113 return __cmpdi2 ();
19114   ;
19115   return 0;
19116 }
19117 _ACEOF
19118 rm -f conftest.$ac_objext conftest$ac_exeext
19119 if { (ac_try="$ac_link"
19120 case "(($ac_try" in
19121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19122   *) ac_try_echo=$ac_try;;
19123 esac
19124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19125   (eval "$ac_link") 2>conftest.er1
19126   ac_status=$?
19127   grep -v '^ *+' conftest.er1 >conftest.err
19128   rm -f conftest.er1
19129   cat conftest.err >&5
19130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131   (exit $ac_status); } &&
19132          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
19139   ac_status=$?
19140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141   (exit $ac_status); }; } &&
19142          { ac_try='test -s conftest$ac_exeext'
19143   { (case "(($ac_try" in
19144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19145   *) ac_try_echo=$ac_try;;
19146 esac
19147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19148   (eval "$ac_try") 2>&5
19149   ac_status=$?
19150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151   (exit $ac_status); }; }; then
19152   ac_cv_lib_gcc___cmpdi2=yes
19153 else
19154   echo "$as_me: failed program was:" >&5
19155 sed 's/^/| /' conftest.$ac_ext >&5
19156
19157         ac_cv_lib_gcc___cmpdi2=no
19158 fi
19159
19160 rm -f core conftest.err conftest.$ac_objext \
19161       conftest$ac_exeext conftest.$ac_ext
19162 LIBS=$ac_check_lib_save_LIBS
19163 fi
19164 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19165 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19166 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19167
19168 cat >>confdefs.h <<\_ACEOF
19169 #define HAVE___CMPDI2 1
19170 _ACEOF
19171
19172 fi
19173
19174 fi
19175
19176 if test "$llvm_cv_os_type" = "MingW" ; then
19177   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19178 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19179   cat >conftest.$ac_ext <<_ACEOF
19180 #include <windows.h>
19181 #include <imagehlp.h>
19182 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19183 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19184 _ACEOF
19185 rm -f conftest.$ac_objext
19186 if { (ac_try="$ac_compile"
19187 case "(($ac_try" in
19188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19189   *) ac_try_echo=$ac_try;;
19190 esac
19191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19192   (eval "$ac_compile") 2>conftest.er1
19193   ac_status=$?
19194   grep -v '^ *+' conftest.er1 >conftest.err
19195   rm -f conftest.er1
19196   cat conftest.err >&5
19197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198   (exit $ac_status); } &&
19199          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19200   { (case "(($ac_try" in
19201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19202   *) ac_try_echo=$ac_try;;
19203 esac
19204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19205   (eval "$ac_try") 2>&5
19206   ac_status=$?
19207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208   (exit $ac_status); }; } &&
19209          { ac_try='test -s conftest.$ac_objext'
19210   { (case "(($ac_try" in
19211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19212   *) ac_try_echo=$ac_try;;
19213 esac
19214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19215   (eval "$ac_try") 2>&5
19216   ac_status=$?
19217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218   (exit $ac_status); }; }; then
19219
19220   { echo "$as_me:$LINENO: result: yes" >&5
19221 echo "${ECHO_T}yes" >&6; }
19222   llvm_cv_win32_elmcb_pcstr="PCSTR"
19223
19224 else
19225   echo "$as_me: failed program was:" >&5
19226 sed 's/^/| /' conftest.$ac_ext >&5
19227
19228
19229   { echo "$as_me:$LINENO: result: no" >&5
19230 echo "${ECHO_T}no" >&6; }
19231   llvm_cv_win32_elmcb_pcstr="PSTR"
19232
19233 fi
19234
19235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19236
19237 cat >>confdefs.h <<_ACEOF
19238 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19239 _ACEOF
19240
19241 fi
19242
19243
19244 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19245 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19246 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19247   echo $ECHO_N "(cached) $ECHO_C" >&6
19248 else
19249   ac_ext=cpp
19250 ac_cpp='$CXXCPP $CPPFLAGS'
19251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19254
19255    cat >conftest.$ac_ext <<_ACEOF
19256 /* confdefs.h.  */
19257 _ACEOF
19258 cat confdefs.h >>conftest.$ac_ext
19259 cat >>conftest.$ac_ext <<_ACEOF
19260 /* end confdefs.h.  */
19261 #include <math.h>
19262 int
19263 main ()
19264 {
19265 float f; isnan(f);
19266   ;
19267   return 0;
19268 }
19269 _ACEOF
19270 rm -f conftest.$ac_objext
19271 if { (ac_try="$ac_compile"
19272 case "(($ac_try" in
19273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19274   *) ac_try_echo=$ac_try;;
19275 esac
19276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19277   (eval "$ac_compile") 2>conftest.er1
19278   ac_status=$?
19279   grep -v '^ *+' conftest.er1 >conftest.err
19280   rm -f conftest.er1
19281   cat conftest.err >&5
19282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283   (exit $ac_status); } &&
19284          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19285   { (case "(($ac_try" in
19286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287   *) ac_try_echo=$ac_try;;
19288 esac
19289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290   (eval "$ac_try") 2>&5
19291   ac_status=$?
19292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293   (exit $ac_status); }; } &&
19294          { ac_try='test -s conftest.$ac_objext'
19295   { (case "(($ac_try" in
19296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19297   *) ac_try_echo=$ac_try;;
19298 esac
19299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19300   (eval "$ac_try") 2>&5
19301   ac_status=$?
19302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303   (exit $ac_status); }; }; then
19304   ac_cv_func_isnan_in_math_h=yes
19305 else
19306   echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.$ac_ext >&5
19308
19309         ac_cv_func_isnan_in_math_h=no
19310 fi
19311
19312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19313   ac_ext=c
19314 ac_cpp='$CPP $CPPFLAGS'
19315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19318
19319 fi
19320 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19321 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19322
19323
19324 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19325
19326 cat >>confdefs.h <<\_ACEOF
19327 #define HAVE_ISNAN_IN_MATH_H 1
19328 _ACEOF
19329
19330 fi
19331
19332 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19333 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19334 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19335   echo $ECHO_N "(cached) $ECHO_C" >&6
19336 else
19337   ac_ext=cpp
19338 ac_cpp='$CXXCPP $CPPFLAGS'
19339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19342
19343    cat >conftest.$ac_ext <<_ACEOF
19344 /* confdefs.h.  */
19345 _ACEOF
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h.  */
19349 #include <cmath>
19350 int
19351 main ()
19352 {
19353 float f; isnan(f);
19354   ;
19355   return 0;
19356 }
19357 _ACEOF
19358 rm -f conftest.$ac_objext
19359 if { (ac_try="$ac_compile"
19360 case "(($ac_try" in
19361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362   *) ac_try_echo=$ac_try;;
19363 esac
19364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365   (eval "$ac_compile") 2>conftest.er1
19366   ac_status=$?
19367   grep -v '^ *+' conftest.er1 >conftest.err
19368   rm -f conftest.er1
19369   cat conftest.err >&5
19370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371   (exit $ac_status); } &&
19372          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19373   { (case "(($ac_try" in
19374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375   *) ac_try_echo=$ac_try;;
19376 esac
19377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19378   (eval "$ac_try") 2>&5
19379   ac_status=$?
19380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381   (exit $ac_status); }; } &&
19382          { ac_try='test -s conftest.$ac_objext'
19383   { (case "(($ac_try" in
19384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19385   *) ac_try_echo=$ac_try;;
19386 esac
19387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19388   (eval "$ac_try") 2>&5
19389   ac_status=$?
19390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391   (exit $ac_status); }; }; then
19392   ac_cv_func_isnan_in_cmath=yes
19393 else
19394   echo "$as_me: failed program was:" >&5
19395 sed 's/^/| /' conftest.$ac_ext >&5
19396
19397         ac_cv_func_isnan_in_cmath=no
19398 fi
19399
19400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19401   ac_ext=c
19402 ac_cpp='$CPP $CPPFLAGS'
19403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19406
19407 fi
19408 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19409 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19410
19411 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19412
19413 cat >>confdefs.h <<\_ACEOF
19414 #define HAVE_ISNAN_IN_CMATH 1
19415 _ACEOF
19416
19417 fi
19418
19419 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19420 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19421 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19422   echo $ECHO_N "(cached) $ECHO_C" >&6
19423 else
19424   ac_ext=cpp
19425 ac_cpp='$CXXCPP $CPPFLAGS'
19426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19429
19430    cat >conftest.$ac_ext <<_ACEOF
19431 /* confdefs.h.  */
19432 _ACEOF
19433 cat confdefs.h >>conftest.$ac_ext
19434 cat >>conftest.$ac_ext <<_ACEOF
19435 /* end confdefs.h.  */
19436 #include <cmath>
19437 int
19438 main ()
19439 {
19440 float f; std::isnan(f);
19441   ;
19442   return 0;
19443 }
19444 _ACEOF
19445 rm -f conftest.$ac_objext
19446 if { (ac_try="$ac_compile"
19447 case "(($ac_try" in
19448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19449   *) ac_try_echo=$ac_try;;
19450 esac
19451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19452   (eval "$ac_compile") 2>conftest.er1
19453   ac_status=$?
19454   grep -v '^ *+' conftest.er1 >conftest.err
19455   rm -f conftest.er1
19456   cat conftest.err >&5
19457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458   (exit $ac_status); } &&
19459          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19460   { (case "(($ac_try" in
19461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19462   *) ac_try_echo=$ac_try;;
19463 esac
19464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19465   (eval "$ac_try") 2>&5
19466   ac_status=$?
19467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468   (exit $ac_status); }; } &&
19469          { ac_try='test -s conftest.$ac_objext'
19470   { (case "(($ac_try" in
19471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19472   *) ac_try_echo=$ac_try;;
19473 esac
19474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19475   (eval "$ac_try") 2>&5
19476   ac_status=$?
19477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478   (exit $ac_status); }; }; then
19479   ac_cv_func_std_isnan_in_cmath=yes
19480 else
19481   echo "$as_me: failed program was:" >&5
19482 sed 's/^/| /' conftest.$ac_ext >&5
19483
19484         ac_cv_func_std_isnan_in_cmath=no
19485 fi
19486
19487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19488   ac_ext=c
19489 ac_cpp='$CPP $CPPFLAGS'
19490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19493
19494 fi
19495 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19496 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19497
19498 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19499
19500 cat >>confdefs.h <<\_ACEOF
19501 #define HAVE_STD_ISNAN_IN_CMATH 1
19502 _ACEOF
19503
19504 fi
19505
19506
19507 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19508 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19509 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19510   echo $ECHO_N "(cached) $ECHO_C" >&6
19511 else
19512   ac_ext=cpp
19513 ac_cpp='$CXXCPP $CPPFLAGS'
19514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19517
19518    cat >conftest.$ac_ext <<_ACEOF
19519 /* confdefs.h.  */
19520 _ACEOF
19521 cat confdefs.h >>conftest.$ac_ext
19522 cat >>conftest.$ac_ext <<_ACEOF
19523 /* end confdefs.h.  */
19524 #include <math.h>
19525 int
19526 main ()
19527 {
19528 float f; isinf(f);
19529   ;
19530   return 0;
19531 }
19532 _ACEOF
19533 rm -f conftest.$ac_objext
19534 if { (ac_try="$ac_compile"
19535 case "(($ac_try" in
19536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537   *) ac_try_echo=$ac_try;;
19538 esac
19539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540   (eval "$ac_compile") 2>conftest.er1
19541   ac_status=$?
19542   grep -v '^ *+' conftest.er1 >conftest.err
19543   rm -f conftest.er1
19544   cat conftest.err >&5
19545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546   (exit $ac_status); } &&
19547          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19548   { (case "(($ac_try" in
19549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550   *) ac_try_echo=$ac_try;;
19551 esac
19552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19553   (eval "$ac_try") 2>&5
19554   ac_status=$?
19555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556   (exit $ac_status); }; } &&
19557          { ac_try='test -s conftest.$ac_objext'
19558   { (case "(($ac_try" in
19559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560   *) ac_try_echo=$ac_try;;
19561 esac
19562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19563   (eval "$ac_try") 2>&5
19564   ac_status=$?
19565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566   (exit $ac_status); }; }; then
19567   ac_cv_func_isinf_in_math_h=yes
19568 else
19569   echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.$ac_ext >&5
19571
19572         ac_cv_func_isinf_in_math_h=no
19573 fi
19574
19575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19576   ac_ext=c
19577 ac_cpp='$CPP $CPPFLAGS'
19578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19581
19582 fi
19583 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19584 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19585
19586 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19587
19588 cat >>confdefs.h <<\_ACEOF
19589 #define HAVE_ISINF_IN_MATH_H 1
19590 _ACEOF
19591
19592 fi
19593
19594 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19595 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19596 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19597   echo $ECHO_N "(cached) $ECHO_C" >&6
19598 else
19599   ac_ext=cpp
19600 ac_cpp='$CXXCPP $CPPFLAGS'
19601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19604
19605    cat >conftest.$ac_ext <<_ACEOF
19606 /* confdefs.h.  */
19607 _ACEOF
19608 cat confdefs.h >>conftest.$ac_ext
19609 cat >>conftest.$ac_ext <<_ACEOF
19610 /* end confdefs.h.  */
19611 #include <cmath>
19612 int
19613 main ()
19614 {
19615 float f; isinf(f);
19616   ;
19617   return 0;
19618 }
19619 _ACEOF
19620 rm -f conftest.$ac_objext
19621 if { (ac_try="$ac_compile"
19622 case "(($ac_try" in
19623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624   *) ac_try_echo=$ac_try;;
19625 esac
19626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19627   (eval "$ac_compile") 2>conftest.er1
19628   ac_status=$?
19629   grep -v '^ *+' conftest.er1 >conftest.err
19630   rm -f conftest.er1
19631   cat conftest.err >&5
19632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633   (exit $ac_status); } &&
19634          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19635   { (case "(($ac_try" in
19636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19637   *) ac_try_echo=$ac_try;;
19638 esac
19639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19640   (eval "$ac_try") 2>&5
19641   ac_status=$?
19642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643   (exit $ac_status); }; } &&
19644          { ac_try='test -s conftest.$ac_objext'
19645   { (case "(($ac_try" in
19646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647   *) ac_try_echo=$ac_try;;
19648 esac
19649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19650   (eval "$ac_try") 2>&5
19651   ac_status=$?
19652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653   (exit $ac_status); }; }; then
19654   ac_cv_func_isinf_in_cmath=yes
19655 else
19656   echo "$as_me: failed program was:" >&5
19657 sed 's/^/| /' conftest.$ac_ext >&5
19658
19659         ac_cv_func_isinf_in_cmath=no
19660 fi
19661
19662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19663   ac_ext=c
19664 ac_cpp='$CPP $CPPFLAGS'
19665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19668
19669 fi
19670 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19671 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19672
19673 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19674
19675 cat >>confdefs.h <<\_ACEOF
19676 #define HAVE_ISINF_IN_CMATH 1
19677 _ACEOF
19678
19679 fi
19680
19681 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19682 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19683 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19684   echo $ECHO_N "(cached) $ECHO_C" >&6
19685 else
19686   ac_ext=cpp
19687 ac_cpp='$CXXCPP $CPPFLAGS'
19688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19691
19692    cat >conftest.$ac_ext <<_ACEOF
19693 /* confdefs.h.  */
19694 _ACEOF
19695 cat confdefs.h >>conftest.$ac_ext
19696 cat >>conftest.$ac_ext <<_ACEOF
19697 /* end confdefs.h.  */
19698 #include <cmath>
19699 int
19700 main ()
19701 {
19702 float f; std::isinf(f)}
19703   ;
19704   return 0;
19705 }
19706 _ACEOF
19707 rm -f conftest.$ac_objext
19708 if { (ac_try="$ac_compile"
19709 case "(($ac_try" in
19710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711   *) ac_try_echo=$ac_try;;
19712 esac
19713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714   (eval "$ac_compile") 2>conftest.er1
19715   ac_status=$?
19716   grep -v '^ *+' conftest.er1 >conftest.err
19717   rm -f conftest.er1
19718   cat conftest.err >&5
19719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720   (exit $ac_status); } &&
19721          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19722   { (case "(($ac_try" in
19723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19724   *) ac_try_echo=$ac_try;;
19725 esac
19726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19727   (eval "$ac_try") 2>&5
19728   ac_status=$?
19729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730   (exit $ac_status); }; } &&
19731          { ac_try='test -s conftest.$ac_objext'
19732   { (case "(($ac_try" in
19733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734   *) ac_try_echo=$ac_try;;
19735 esac
19736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737   (eval "$ac_try") 2>&5
19738   ac_status=$?
19739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740   (exit $ac_status); }; }; then
19741   ac_cv_func_std_isinf_in_cmath=yes
19742 else
19743   echo "$as_me: failed program was:" >&5
19744 sed 's/^/| /' conftest.$ac_ext >&5
19745
19746         ac_cv_func_std_isinf_in_cmath=no
19747 fi
19748
19749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19750   ac_ext=c
19751 ac_cpp='$CPP $CPPFLAGS'
19752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19755
19756 fi
19757 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19758 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19759
19760 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19761
19762 cat >>confdefs.h <<\_ACEOF
19763 #define HAVE_STD_ISINF_IN_CMATH 1
19764 _ACEOF
19765
19766 fi
19767
19768 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19769 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19770 if test "${ac_cv_func_finite_in_ieeefp_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 <ieeefp.h>
19786 int
19787 main ()
19788 {
19789 float f; finite(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_finite_in_ieeefp_h=yes
19829 else
19830   echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.$ac_ext >&5
19832
19833         ac_cv_func_finite_in_ieeefp_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_finite_in_ieeefp_h" >&5
19845 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19846
19847 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19848
19849 cat >>confdefs.h <<\_ACEOF
19850 #define HAVE_FINITE_IN_IEEEFP_H 1
19851 _ACEOF
19852
19853 fi
19854
19855
19856
19857 if test "$llvm_cv_platform_type" = "Unix" ; then
19858
19859
19860 for ac_header in stdlib.h unistd.h
19861 do
19862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19864   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19867   echo $ECHO_N "(cached) $ECHO_C" >&6
19868 fi
19869 ac_res=`eval echo '${'$as_ac_Header'}'`
19870                { echo "$as_me:$LINENO: result: $ac_res" >&5
19871 echo "${ECHO_T}$ac_res" >&6; }
19872 else
19873   # Is the header compilable?
19874 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19876 cat >conftest.$ac_ext <<_ACEOF
19877 /* confdefs.h.  */
19878 _ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h.  */
19882 $ac_includes_default
19883 #include <$ac_header>
19884 _ACEOF
19885 rm -f conftest.$ac_objext
19886 if { (ac_try="$ac_compile"
19887 case "(($ac_try" in
19888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19889   *) ac_try_echo=$ac_try;;
19890 esac
19891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19892   (eval "$ac_compile") 2>conftest.er1
19893   ac_status=$?
19894   grep -v '^ *+' conftest.er1 >conftest.err
19895   rm -f conftest.er1
19896   cat conftest.err >&5
19897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898   (exit $ac_status); } &&
19899          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19900   { (case "(($ac_try" in
19901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902   *) ac_try_echo=$ac_try;;
19903 esac
19904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905   (eval "$ac_try") 2>&5
19906   ac_status=$?
19907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908   (exit $ac_status); }; } &&
19909          { ac_try='test -s conftest.$ac_objext'
19910   { (case "(($ac_try" in
19911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19912   *) ac_try_echo=$ac_try;;
19913 esac
19914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19915   (eval "$ac_try") 2>&5
19916   ac_status=$?
19917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918   (exit $ac_status); }; }; then
19919   ac_header_compiler=yes
19920 else
19921   echo "$as_me: failed program was:" >&5
19922 sed 's/^/| /' conftest.$ac_ext >&5
19923
19924         ac_header_compiler=no
19925 fi
19926
19927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19928 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19929 echo "${ECHO_T}$ac_header_compiler" >&6; }
19930
19931 # Is the header present?
19932 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19934 cat >conftest.$ac_ext <<_ACEOF
19935 /* confdefs.h.  */
19936 _ACEOF
19937 cat confdefs.h >>conftest.$ac_ext
19938 cat >>conftest.$ac_ext <<_ACEOF
19939 /* end confdefs.h.  */
19940 #include <$ac_header>
19941 _ACEOF
19942 if { (ac_try="$ac_cpp conftest.$ac_ext"
19943 case "(($ac_try" in
19944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945   *) ac_try_echo=$ac_try;;
19946 esac
19947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19949   ac_status=$?
19950   grep -v '^ *+' conftest.er1 >conftest.err
19951   rm -f conftest.er1
19952   cat conftest.err >&5
19953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954   (exit $ac_status); } >/dev/null; then
19955   if test -s conftest.err; then
19956     ac_cpp_err=$ac_c_preproc_warn_flag
19957     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19958   else
19959     ac_cpp_err=
19960   fi
19961 else
19962   ac_cpp_err=yes
19963 fi
19964 if test -z "$ac_cpp_err"; then
19965   ac_header_preproc=yes
19966 else
19967   echo "$as_me: failed program was:" >&5
19968 sed 's/^/| /' conftest.$ac_ext >&5
19969
19970   ac_header_preproc=no
19971 fi
19972
19973 rm -f conftest.err conftest.$ac_ext
19974 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19975 echo "${ECHO_T}$ac_header_preproc" >&6; }
19976
19977 # So?  What about this header?
19978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19979   yes:no: )
19980     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19982     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19984     ac_header_preproc=yes
19985     ;;
19986   no:yes:* )
19987     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19989     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19990 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19991     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19993     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19994 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19995     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19997     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19999     ( cat <<\_ASBOX
20000 ## ------------------------------ ##
20001 ## Report this to bugs@yourdomain ##
20002 ## ------------------------------ ##
20003 _ASBOX
20004      ) | sed "s/^/$as_me: WARNING:     /" >&2
20005     ;;
20006 esac
20007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20010   echo $ECHO_N "(cached) $ECHO_C" >&6
20011 else
20012   eval "$as_ac_Header=\$ac_header_preproc"
20013 fi
20014 ac_res=`eval echo '${'$as_ac_Header'}'`
20015                { echo "$as_me:$LINENO: result: $ac_res" >&5
20016 echo "${ECHO_T}$ac_res" >&6; }
20017
20018 fi
20019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20020   cat >>confdefs.h <<_ACEOF
20021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20022 _ACEOF
20023
20024 fi
20025
20026 done
20027
20028
20029 for ac_func in getpagesize
20030 do
20031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20032 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20034 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20035   echo $ECHO_N "(cached) $ECHO_C" >&6
20036 else
20037   cat >conftest.$ac_ext <<_ACEOF
20038 /* confdefs.h.  */
20039 _ACEOF
20040 cat confdefs.h >>conftest.$ac_ext
20041 cat >>conftest.$ac_ext <<_ACEOF
20042 /* end confdefs.h.  */
20043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20044    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20045 #define $ac_func innocuous_$ac_func
20046
20047 /* System header to define __stub macros and hopefully few prototypes,
20048     which can conflict with char $ac_func (); below.
20049     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20050     <limits.h> exists even on freestanding compilers.  */
20051
20052 #ifdef __STDC__
20053 # include <limits.h>
20054 #else
20055 # include <assert.h>
20056 #endif
20057
20058 #undef $ac_func
20059
20060 /* Override any GCC internal prototype to avoid an error.
20061    Use char because int might match the return type of a GCC
20062    builtin and then its argument prototype would still apply.  */
20063 #ifdef __cplusplus
20064 extern "C"
20065 #endif
20066 char $ac_func ();
20067 /* The GNU C library defines this for functions which it implements
20068     to always fail with ENOSYS.  Some functions are actually named
20069     something starting with __ and the normal name is an alias.  */
20070 #if defined __stub_$ac_func || defined __stub___$ac_func
20071 choke me
20072 #endif
20073
20074 int
20075 main ()
20076 {
20077 return $ac_func ();
20078   ;
20079   return 0;
20080 }
20081 _ACEOF
20082 rm -f conftest.$ac_objext conftest$ac_exeext
20083 if { (ac_try="$ac_link"
20084 case "(($ac_try" in
20085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20086   *) ac_try_echo=$ac_try;;
20087 esac
20088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20089   (eval "$ac_link") 2>conftest.er1
20090   ac_status=$?
20091   grep -v '^ *+' conftest.er1 >conftest.err
20092   rm -f conftest.er1
20093   cat conftest.err >&5
20094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095   (exit $ac_status); } &&
20096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20097   { (case "(($ac_try" in
20098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20099   *) ac_try_echo=$ac_try;;
20100 esac
20101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20102   (eval "$ac_try") 2>&5
20103   ac_status=$?
20104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105   (exit $ac_status); }; } &&
20106          { ac_try='test -s conftest$ac_exeext'
20107   { (case "(($ac_try" in
20108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20109   *) ac_try_echo=$ac_try;;
20110 esac
20111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20112   (eval "$ac_try") 2>&5
20113   ac_status=$?
20114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115   (exit $ac_status); }; }; then
20116   eval "$as_ac_var=yes"
20117 else
20118   echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20120
20121         eval "$as_ac_var=no"
20122 fi
20123
20124 rm -f core conftest.err conftest.$ac_objext \
20125       conftest$ac_exeext conftest.$ac_ext
20126 fi
20127 ac_res=`eval echo '${'$as_ac_var'}'`
20128                { echo "$as_me:$LINENO: result: $ac_res" >&5
20129 echo "${ECHO_T}$ac_res" >&6; }
20130 if test `eval echo '${'$as_ac_var'}'` = yes; then
20131   cat >>confdefs.h <<_ACEOF
20132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20133 _ACEOF
20134
20135 fi
20136 done
20137
20138 { echo "$as_me:$LINENO: checking for working mmap" >&5
20139 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20140 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20141   echo $ECHO_N "(cached) $ECHO_C" >&6
20142 else
20143   if test "$cross_compiling" = yes; then
20144   ac_cv_func_mmap_fixed_mapped=no
20145 else
20146   cat >conftest.$ac_ext <<_ACEOF
20147 /* confdefs.h.  */
20148 _ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h.  */
20152 $ac_includes_default
20153 /* malloc might have been renamed as rpl_malloc. */
20154 #undef malloc
20155
20156 /* Thanks to Mike Haertel and Jim Avera for this test.
20157    Here is a matrix of mmap possibilities:
20158         mmap private not fixed
20159         mmap private fixed at somewhere currently unmapped
20160         mmap private fixed at somewhere already mapped
20161         mmap shared not fixed
20162         mmap shared fixed at somewhere currently unmapped
20163         mmap shared fixed at somewhere already mapped
20164    For private mappings, we should verify that changes cannot be read()
20165    back from the file, nor mmap's back from the file at a different
20166    address.  (There have been systems where private was not correctly
20167    implemented like the infamous i386 svr4.0, and systems where the
20168    VM page cache was not coherent with the file system buffer cache
20169    like early versions of FreeBSD and possibly contemporary NetBSD.)
20170    For shared mappings, we should conversely verify that changes get
20171    propagated back to all the places they're supposed to be.
20172
20173    Grep wants private fixed already mapped.
20174    The main things grep needs to know about mmap are:
20175    * does it exist and is it safe to write into the mmap'd area
20176    * how to use it (BSD variants)  */
20177
20178 #include <fcntl.h>
20179 #include <sys/mman.h>
20180
20181 #if !STDC_HEADERS && !HAVE_STDLIB_H
20182 char *malloc ();
20183 #endif
20184
20185 /* This mess was copied from the GNU getpagesize.h.  */
20186 #if !HAVE_GETPAGESIZE
20187 /* Assume that all systems that can run configure have sys/param.h.  */
20188 # if !HAVE_SYS_PARAM_H
20189 #  define HAVE_SYS_PARAM_H 1
20190 # endif
20191
20192 # ifdef _SC_PAGESIZE
20193 #  define getpagesize() sysconf(_SC_PAGESIZE)
20194 # else /* no _SC_PAGESIZE */
20195 #  if HAVE_SYS_PARAM_H
20196 #   include <sys/param.h>
20197 #   ifdef EXEC_PAGESIZE
20198 #    define getpagesize() EXEC_PAGESIZE
20199 #   else /* no EXEC_PAGESIZE */
20200 #    ifdef NBPG
20201 #     define getpagesize() NBPG * CLSIZE
20202 #     ifndef CLSIZE
20203 #      define CLSIZE 1
20204 #     endif /* no CLSIZE */
20205 #    else /* no NBPG */
20206 #     ifdef NBPC
20207 #      define getpagesize() NBPC
20208 #     else /* no NBPC */
20209 #      ifdef PAGESIZE
20210 #       define getpagesize() PAGESIZE
20211 #      endif /* PAGESIZE */
20212 #     endif /* no NBPC */
20213 #    endif /* no NBPG */
20214 #   endif /* no EXEC_PAGESIZE */
20215 #  else /* no HAVE_SYS_PARAM_H */
20216 #   define getpagesize() 8192   /* punt totally */
20217 #  endif /* no HAVE_SYS_PARAM_H */
20218 # endif /* no _SC_PAGESIZE */
20219
20220 #endif /* no HAVE_GETPAGESIZE */
20221
20222 int
20223 main ()
20224 {
20225   char *data, *data2, *data3;
20226   int i, pagesize;
20227   int fd;
20228
20229   pagesize = getpagesize ();
20230
20231   /* First, make a file with some known garbage in it. */
20232   data = (char *) malloc (pagesize);
20233   if (!data)
20234     return 1;
20235   for (i = 0; i < pagesize; ++i)
20236     *(data + i) = rand ();
20237   umask (0);
20238   fd = creat ("conftest.mmap", 0600);
20239   if (fd < 0)
20240     return 1;
20241   if (write (fd, data, pagesize) != pagesize)
20242     return 1;
20243   close (fd);
20244
20245   /* Next, try to mmap the file at a fixed address which already has
20246      something else allocated at it.  If we can, also make sure that
20247      we see the same garbage.  */
20248   fd = open ("conftest.mmap", O_RDWR);
20249   if (fd < 0)
20250     return 1;
20251   data2 = (char *) malloc (2 * pagesize);
20252   if (!data2)
20253     return 1;
20254   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20255   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20256                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20257     return 1;
20258   for (i = 0; i < pagesize; ++i)
20259     if (*(data + i) != *(data2 + i))
20260       return 1;
20261
20262   /* Finally, make sure that changes to the mapped area do not
20263      percolate back to the file as seen by read().  (This is a bug on
20264      some variants of i386 svr4.0.)  */
20265   for (i = 0; i < pagesize; ++i)
20266     *(data2 + i) = *(data2 + i) + 1;
20267   data3 = (char *) malloc (pagesize);
20268   if (!data3)
20269     return 1;
20270   if (read (fd, data3, pagesize) != pagesize)
20271     return 1;
20272   for (i = 0; i < pagesize; ++i)
20273     if (*(data + i) != *(data3 + i))
20274       return 1;
20275   close (fd);
20276   return 0;
20277 }
20278 _ACEOF
20279 rm -f conftest$ac_exeext
20280 if { (ac_try="$ac_link"
20281 case "(($ac_try" in
20282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20283   *) ac_try_echo=$ac_try;;
20284 esac
20285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20286   (eval "$ac_link") 2>&5
20287   ac_status=$?
20288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20290   { (case "(($ac_try" in
20291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20292   *) ac_try_echo=$ac_try;;
20293 esac
20294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20295   (eval "$ac_try") 2>&5
20296   ac_status=$?
20297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298   (exit $ac_status); }; }; then
20299   ac_cv_func_mmap_fixed_mapped=yes
20300 else
20301   echo "$as_me: program exited with status $ac_status" >&5
20302 echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20304
20305 ( exit $ac_status )
20306 ac_cv_func_mmap_fixed_mapped=no
20307 fi
20308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20309 fi
20310
20311
20312 fi
20313 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20314 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20315 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20316
20317 cat >>confdefs.h <<\_ACEOF
20318 #define HAVE_MMAP 1
20319 _ACEOF
20320
20321 fi
20322 rm -f conftest.mmap
20323
20324   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20325 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20326 if test "${ac_cv_func_mmap_file+set}" = set; then
20327   echo $ECHO_N "(cached) $ECHO_C" >&6
20328 else
20329    ac_ext=c
20330 ac_cpp='$CPP $CPPFLAGS'
20331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20334
20335   if test "$cross_compiling" = yes; then
20336   ac_cv_func_mmap_file=no
20337 else
20338   cat >conftest.$ac_ext <<_ACEOF
20339
20340     /* confdefs.h.  */
20341 _ACEOF
20342 cat confdefs.h >>conftest.$ac_ext
20343 cat >>conftest.$ac_ext <<_ACEOF
20344 /* end confdefs.h.  */
20345
20346 #include <sys/types.h>
20347 #include <sys/mman.h>
20348 #include <fcntl.h>
20349
20350 int
20351 main ()
20352 {
20353
20354   int fd;
20355   fd = creat ("foo",0777);
20356   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20357   unlink ("foo");
20358   return (fd != (int) MAP_FAILED);
20359   ;
20360   return 0;
20361 }
20362 _ACEOF
20363 rm -f conftest$ac_exeext
20364 if { (ac_try="$ac_link"
20365 case "(($ac_try" in
20366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367   *) ac_try_echo=$ac_try;;
20368 esac
20369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370   (eval "$ac_link") 2>&5
20371   ac_status=$?
20372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20374   { (case "(($ac_try" in
20375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376   *) ac_try_echo=$ac_try;;
20377 esac
20378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379   (eval "$ac_try") 2>&5
20380   ac_status=$?
20381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382   (exit $ac_status); }; }; then
20383   ac_cv_func_mmap_file=yes
20384 else
20385   echo "$as_me: program exited with status $ac_status" >&5
20386 echo "$as_me: failed program was:" >&5
20387 sed 's/^/| /' conftest.$ac_ext >&5
20388
20389 ( exit $ac_status )
20390 ac_cv_func_mmap_file=no
20391 fi
20392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20393 fi
20394
20395
20396   ac_ext=c
20397 ac_cpp='$CPP $CPPFLAGS'
20398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20401
20402
20403 fi
20404 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20405 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20406 if test "$ac_cv_func_mmap_file" = yes; then
20407
20408 cat >>confdefs.h <<\_ACEOF
20409 #define HAVE_MMAP_FILE
20410 _ACEOF
20411
20412    MMAP_FILE=yes
20413
20414 fi
20415
20416   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20417 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20418 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20419   echo $ECHO_N "(cached) $ECHO_C" >&6
20420 else
20421   if test "$llvm_cv_os_type" = "Interix" ; then
20422    ac_cv_need_dev_zero_for_mmap=yes
20423  else
20424    ac_cv_need_dev_zero_for_mmap=no
20425  fi
20426
20427 fi
20428 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20429 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20430 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20431
20432 cat >>confdefs.h <<\_ACEOF
20433 #define NEED_DEV_ZERO_FOR_MMAP 1
20434 _ACEOF
20435
20436 fi
20437
20438   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20439   then
20440     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20441 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20442   fi
20443   if test "$ac_cv_func_mmap_file" = "no"
20444   then
20445     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20446 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20447   fi
20448 fi
20449
20450 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20451 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20452 ac_ext=cpp
20453 ac_cpp='$CXXCPP $CPPFLAGS'
20454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20457
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 int main() {
20465         volatile unsigned long val = 1;
20466         __sync_synchronize();
20467         __sync_val_compare_and_swap(&val, 1, 0);
20468         __sync_add_and_fetch(&val, 1);
20469         __sync_sub_and_fetch(&val, 1);
20470         return 0;
20471       }
20472
20473 _ACEOF
20474 rm -f conftest.$ac_objext conftest$ac_exeext
20475 if { (ac_try="$ac_link"
20476 case "(($ac_try" in
20477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478   *) ac_try_echo=$ac_try;;
20479 esac
20480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20481   (eval "$ac_link") 2>conftest.er1
20482   ac_status=$?
20483   grep -v '^ *+' conftest.er1 >conftest.err
20484   rm -f conftest.er1
20485   cat conftest.err >&5
20486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487   (exit $ac_status); } &&
20488          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20489   { (case "(($ac_try" in
20490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20491   *) ac_try_echo=$ac_try;;
20492 esac
20493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20494   (eval "$ac_try") 2>&5
20495   ac_status=$?
20496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497   (exit $ac_status); }; } &&
20498          { ac_try='test -s conftest$ac_exeext'
20499   { (case "(($ac_try" in
20500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20501   *) ac_try_echo=$ac_try;;
20502 esac
20503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20504   (eval "$ac_try") 2>&5
20505   ac_status=$?
20506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507   (exit $ac_status); }; }; then
20508   ac_ext=c
20509 ac_cpp='$CPP $CPPFLAGS'
20510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20513
20514   { echo "$as_me:$LINENO: result: yes" >&5
20515 echo "${ECHO_T}yes" >&6; }
20516
20517 cat >>confdefs.h <<\_ACEOF
20518 #define LLVM_HAS_ATOMICS 1
20519 _ACEOF
20520
20521 else
20522   echo "$as_me: failed program was:" >&5
20523 sed 's/^/| /' conftest.$ac_ext >&5
20524
20525         { echo "$as_me:$LINENO: result: no" >&5
20526 echo "${ECHO_T}no" >&6; }
20527
20528 cat >>confdefs.h <<\_ACEOF
20529 #define LLVM_HAS_ATOMICS 0
20530 _ACEOF
20531
20532   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20533 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20534 fi
20535
20536 rm -f core conftest.err conftest.$ac_objext \
20537       conftest$ac_exeext conftest.$ac_ext
20538
20539
20540 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20541   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20542 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20543 if test "${llvm_cv_linux_mixed+set}" = set; then
20544   echo $ECHO_N "(cached) $ECHO_C" >&6
20545 else
20546    ac_ext=c
20547 ac_cpp='$CPP $CPPFLAGS'
20548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20551
20552   cat >conftest.$ac_ext <<_ACEOF
20553 /* confdefs.h.  */
20554 _ACEOF
20555 cat confdefs.h >>conftest.$ac_ext
20556 cat >>conftest.$ac_ext <<_ACEOF
20557 /* end confdefs.h.  */
20558 #ifndef __x86_64__
20559        error: Not x86-64 even if uname says so!
20560       #endif
20561
20562 int
20563 main ()
20564 {
20565
20566   ;
20567   return 0;
20568 }
20569 _ACEOF
20570 rm -f conftest.$ac_objext
20571 if { (ac_try="$ac_compile"
20572 case "(($ac_try" in
20573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20574   *) ac_try_echo=$ac_try;;
20575 esac
20576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20577   (eval "$ac_compile") 2>conftest.er1
20578   ac_status=$?
20579   grep -v '^ *+' conftest.er1 >conftest.err
20580   rm -f conftest.er1
20581   cat conftest.err >&5
20582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583   (exit $ac_status); } &&
20584          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20585   { (case "(($ac_try" in
20586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20587   *) ac_try_echo=$ac_try;;
20588 esac
20589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20590   (eval "$ac_try") 2>&5
20591   ac_status=$?
20592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593   (exit $ac_status); }; } &&
20594          { ac_try='test -s conftest.$ac_objext'
20595   { (case "(($ac_try" in
20596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20597   *) ac_try_echo=$ac_try;;
20598 esac
20599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20600   (eval "$ac_try") 2>&5
20601   ac_status=$?
20602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603   (exit $ac_status); }; }; then
20604   llvm_cv_linux_mixed=no
20605 else
20606   echo "$as_me: failed program was:" >&5
20607 sed 's/^/| /' conftest.$ac_ext >&5
20608
20609         llvm_cv_linux_mixed=yes
20610 fi
20611
20612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20613   ac_ext=c
20614 ac_cpp='$CPP $CPPFLAGS'
20615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20618
20619
20620 fi
20621 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20622 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20623
20624   if test "$llvm_cv_linux_mixed" = "yes"; then
20625     llvm_cv_target_arch="x86"
20626     ARCH="x86"
20627   fi
20628 fi
20629
20630
20631 for ac_func in __dso_handle
20632 do
20633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20634 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20636 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20637   echo $ECHO_N "(cached) $ECHO_C" >&6
20638 else
20639   cat >conftest.$ac_ext <<_ACEOF
20640 /* confdefs.h.  */
20641 _ACEOF
20642 cat confdefs.h >>conftest.$ac_ext
20643 cat >>conftest.$ac_ext <<_ACEOF
20644 /* end confdefs.h.  */
20645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20646    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20647 #define $ac_func innocuous_$ac_func
20648
20649 /* System header to define __stub macros and hopefully few prototypes,
20650     which can conflict with char $ac_func (); below.
20651     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20652     <limits.h> exists even on freestanding compilers.  */
20653
20654 #ifdef __STDC__
20655 # include <limits.h>
20656 #else
20657 # include <assert.h>
20658 #endif
20659
20660 #undef $ac_func
20661
20662 /* Override any GCC internal prototype to avoid an error.
20663    Use char because int might match the return type of a GCC
20664    builtin and then its argument prototype would still apply.  */
20665 #ifdef __cplusplus
20666 extern "C"
20667 #endif
20668 char $ac_func ();
20669 /* The GNU C library defines this for functions which it implements
20670     to always fail with ENOSYS.  Some functions are actually named
20671     something starting with __ and the normal name is an alias.  */
20672 #if defined __stub_$ac_func || defined __stub___$ac_func
20673 choke me
20674 #endif
20675
20676 int
20677 main ()
20678 {
20679 return $ac_func ();
20680   ;
20681   return 0;
20682 }
20683 _ACEOF
20684 rm -f conftest.$ac_objext conftest$ac_exeext
20685 if { (ac_try="$ac_link"
20686 case "(($ac_try" in
20687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20688   *) ac_try_echo=$ac_try;;
20689 esac
20690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20691   (eval "$ac_link") 2>conftest.er1
20692   ac_status=$?
20693   grep -v '^ *+' conftest.er1 >conftest.err
20694   rm -f conftest.er1
20695   cat conftest.err >&5
20696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697   (exit $ac_status); } &&
20698          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20699   { (case "(($ac_try" in
20700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20701   *) ac_try_echo=$ac_try;;
20702 esac
20703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20704   (eval "$ac_try") 2>&5
20705   ac_status=$?
20706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707   (exit $ac_status); }; } &&
20708          { ac_try='test -s conftest$ac_exeext'
20709   { (case "(($ac_try" in
20710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711   *) ac_try_echo=$ac_try;;
20712 esac
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714   (eval "$ac_try") 2>&5
20715   ac_status=$?
20716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717   (exit $ac_status); }; }; then
20718   eval "$as_ac_var=yes"
20719 else
20720   echo "$as_me: failed program was:" >&5
20721 sed 's/^/| /' conftest.$ac_ext >&5
20722
20723         eval "$as_ac_var=no"
20724 fi
20725
20726 rm -f core conftest.err conftest.$ac_objext \
20727       conftest$ac_exeext conftest.$ac_ext
20728 fi
20729 ac_res=`eval echo '${'$as_ac_var'}'`
20730                { echo "$as_me:$LINENO: result: $ac_res" >&5
20731 echo "${ECHO_T}$ac_res" >&6; }
20732 if test `eval echo '${'$as_ac_var'}'` = yes; then
20733   cat >>confdefs.h <<_ACEOF
20734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20735 _ACEOF
20736
20737 fi
20738 done
20739
20740
20741 SHLIBEXT=$libltdl_cv_shlibext
20742
20743
20744 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20745
20746
20747 # Translate the various configuration directories and other basic
20748 # information into substitutions that will end up in Makefile.config.in
20749 # that these configured values can be used by the makefiles
20750 if test "${prefix}" = "NONE" ; then
20751   prefix="/usr/local"
20752 fi
20753 eval LLVM_PREFIX="${prefix}";
20754 eval LLVM_BINDIR="${prefix}/bin";
20755 eval LLVM_LIBDIR="${prefix}/lib";
20756 eval LLVM_DATADIR="${prefix}/share/llvm";
20757 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20758 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20759 eval LLVM_INCLUDEDIR="${prefix}/include";
20760 eval LLVM_INFODIR="${prefix}/info";
20761 eval LLVM_MANDIR="${prefix}/man";
20762 LLVM_CONFIGTIME=`date`
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774 # Place the various directores into the config.h file as #defines so that we
20775 # can know about the installation paths within LLVM.
20776
20777 cat >>confdefs.h <<_ACEOF
20778 #define LLVM_PREFIX "$LLVM_PREFIX"
20779 _ACEOF
20780
20781
20782 cat >>confdefs.h <<_ACEOF
20783 #define LLVM_BINDIR "$LLVM_BINDIR"
20784 _ACEOF
20785
20786
20787 cat >>confdefs.h <<_ACEOF
20788 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20789 _ACEOF
20790
20791
20792 cat >>confdefs.h <<_ACEOF
20793 #define LLVM_DATADIR "$LLVM_DATADIR"
20794 _ACEOF
20795
20796
20797 cat >>confdefs.h <<_ACEOF
20798 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20799 _ACEOF
20800
20801
20802 cat >>confdefs.h <<_ACEOF
20803 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20804 _ACEOF
20805
20806
20807 cat >>confdefs.h <<_ACEOF
20808 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20809 _ACEOF
20810
20811
20812 cat >>confdefs.h <<_ACEOF
20813 #define LLVM_INFODIR "$LLVM_INFODIR"
20814 _ACEOF
20815
20816
20817 cat >>confdefs.h <<_ACEOF
20818 #define LLVM_MANDIR "$LLVM_MANDIR"
20819 _ACEOF
20820
20821
20822 cat >>confdefs.h <<_ACEOF
20823 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20824 _ACEOF
20825
20826
20827 cat >>confdefs.h <<_ACEOF
20828 #define LLVM_HOSTTRIPLE "$host"
20829 _ACEOF
20830
20831
20832 # Determine which bindings to build.
20833 if test "$BINDINGS_TO_BUILD" = auto ; then
20834   BINDINGS_TO_BUILD=""
20835   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20836     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20837   fi
20838 fi
20839 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20840
20841
20842 # This isn't really configurey, but it avoids having to repeat the list in
20843 # other files.
20844 ALL_BINDINGS=ocaml
20845
20846
20847 # Do any work necessary to ensure that bindings have what they need.
20848 binding_prereqs_failed=0
20849 for a_binding in $BINDINGS_TO_BUILD ; do
20850   case "$a_binding" in
20851   ocaml)
20852     if test "x$OCAMLC" = x ; then
20853       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20854 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20855       binding_prereqs_failed=1
20856     fi
20857     if test "x$OCAMLDEP" = x ; then
20858       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20859 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20860       binding_prereqs_failed=1
20861     fi
20862     if test "x$OCAMLOPT" = x ; then
20863       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20864 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20865           fi
20866     if test "x$with_ocaml_libdir" != xauto ; then
20867       OCAML_LIBDIR=$with_ocaml_libdir
20868
20869     else
20870       ocaml_stdlib="`"$OCAMLC" -where`"
20871       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20872       then
20873         # ocaml stdlib is beneath our prefix; use stdlib
20874         OCAML_LIBDIR=$ocaml_stdlib
20875
20876       else
20877         # ocaml stdlib is outside our prefix; use libdir/ocaml
20878         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20879
20880       fi
20881     fi
20882     ;;
20883   esac
20884 done
20885 if test "$binding_prereqs_failed" = 1 ; then
20886   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20887 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20888    { (exit 1); exit 1; }; }
20889 fi
20890
20891 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20892 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20893 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20894   echo $ECHO_N "(cached) $ECHO_C" >&6
20895 else
20896    ac_ext=cpp
20897 ac_cpp='$CXXCPP $CPPFLAGS'
20898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20901
20902   oldcxxflags="$CXXFLAGS"
20903   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20904   cat >conftest.$ac_ext <<_ACEOF
20905 /* confdefs.h.  */
20906 _ACEOF
20907 cat confdefs.h >>conftest.$ac_ext
20908 cat >>conftest.$ac_ext <<_ACEOF
20909 /* end confdefs.h.  */
20910
20911 int
20912 main ()
20913 {
20914
20915   ;
20916   return 0;
20917 }
20918 _ACEOF
20919 rm -f conftest.$ac_objext
20920 if { (ac_try="$ac_compile"
20921 case "(($ac_try" in
20922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20923   *) ac_try_echo=$ac_try;;
20924 esac
20925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20926   (eval "$ac_compile") 2>conftest.er1
20927   ac_status=$?
20928   grep -v '^ *+' conftest.er1 >conftest.err
20929   rm -f conftest.er1
20930   cat conftest.err >&5
20931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932   (exit $ac_status); } &&
20933          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20934   { (case "(($ac_try" in
20935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936   *) ac_try_echo=$ac_try;;
20937 esac
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939   (eval "$ac_try") 2>&5
20940   ac_status=$?
20941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942   (exit $ac_status); }; } &&
20943          { ac_try='test -s conftest.$ac_objext'
20944   { (case "(($ac_try" in
20945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946   *) ac_try_echo=$ac_try;;
20947 esac
20948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20949   (eval "$ac_try") 2>&5
20950   ac_status=$?
20951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952   (exit $ac_status); }; }; then
20953   llvm_cv_cxx_visibility_inlines_hidden=yes
20954 else
20955   echo "$as_me: failed program was:" >&5
20956 sed 's/^/| /' conftest.$ac_ext >&5
20957
20958         llvm_cv_cxx_visibility_inlines_hidden=no
20959 fi
20960
20961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20962   CXXFLAGS="$oldcxxflags"
20963   ac_ext=c
20964 ac_cpp='$CPP $CPPFLAGS'
20965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20968
20969
20970 fi
20971 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20972 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20973 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20974   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20975
20976 else
20977   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20978
20979 fi
20980
20981
20982 if test "$llvm_cv_link_use_r" = "yes" ; then
20983   RPATH="-Wl,-R"
20984 else
20985   RPATH="-Wl,-rpath"
20986 fi
20987
20988
20989 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20990   RDYNAMIC="-Wl,-export-dynamic"
20991 else
20992   RDYNAMIC=""
20993 fi
20994
20995
20996
20997
20998 ac_config_files="$ac_config_files Makefile.common"
20999
21000 ac_config_files="$ac_config_files Makefile.llvm.config"
21001
21002
21003 ac_config_commands="$ac_config_commands Makefile"
21004
21005
21006 ac_config_commands="$ac_config_commands lib/Makefile"
21007
21008
21009 ac_config_commands="$ac_config_commands lib/sample/Makefile"
21010
21011
21012 ac_config_commands="$ac_config_commands tools/Makefile"
21013
21014
21015 ac_config_commands="$ac_config_commands tools/sample/Makefile"
21016
21017
21018
21019 cat >confcache <<\_ACEOF
21020 # This file is a shell script that caches the results of configure
21021 # tests run on this system so they can be shared between configure
21022 # scripts and configure runs, see configure's option --config-cache.
21023 # It is not useful on other systems.  If it contains results you don't
21024 # want to keep, you may remove or edit it.
21025 #
21026 # config.status only pays attention to the cache file if you give it
21027 # the --recheck option to rerun configure.
21028 #
21029 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21030 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21031 # following values.
21032
21033 _ACEOF
21034
21035 # The following way of writing the cache mishandles newlines in values,
21036 # but we know of no workaround that is simple, portable, and efficient.
21037 # So, we kill variables containing newlines.
21038 # Ultrix sh set writes to stderr and can't be redirected directly,
21039 # and sets the high bit in the cache file unless we assign to the vars.
21040 (
21041   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21042     eval ac_val=\$$ac_var
21043     case $ac_val in #(
21044     *${as_nl}*)
21045       case $ac_var in #(
21046       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21047 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21048       esac
21049       case $ac_var in #(
21050       _ | IFS | as_nl) ;; #(
21051       *) $as_unset $ac_var ;;
21052       esac ;;
21053     esac
21054   done
21055
21056   (set) 2>&1 |
21057     case $as_nl`(ac_space=' '; set) 2>&1` in #(
21058     *${as_nl}ac_space=\ *)
21059       # `set' does not quote correctly, so add quotes (double-quote
21060       # substitution turns \\\\ into \\, and sed turns \\ into \).
21061       sed -n \
21062         "s/'/'\\\\''/g;
21063           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21064       ;; #(
21065     *)
21066       # `set' quotes correctly as required by POSIX, so do not add quotes.
21067       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21068       ;;
21069     esac |
21070     sort
21071 ) |
21072   sed '
21073      /^ac_cv_env_/b end
21074      t clear
21075      :clear
21076      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21077      t end
21078      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21079      :end' >>confcache
21080 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21081   if test -w "$cache_file"; then
21082     test "x$cache_file" != "x/dev/null" &&
21083       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21084 echo "$as_me: updating cache $cache_file" >&6;}
21085     cat confcache >$cache_file
21086   else
21087     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21088 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21089   fi
21090 fi
21091 rm -f confcache
21092
21093 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21094 # Let make expand exec_prefix.
21095 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21096
21097 # Transform confdefs.h into DEFS.
21098 # Protect against shell expansion while executing Makefile rules.
21099 # Protect against Makefile macro expansion.
21100 #
21101 # If the first sed substitution is executed (which looks for macros that
21102 # take arguments), then branch to the quote section.  Otherwise,
21103 # look for a macro that doesn't take arguments.
21104 ac_script='
21105 t clear
21106 :clear
21107 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
21108 t quote
21109 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
21110 t quote
21111 b any
21112 :quote
21113 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21114 s/\[/\\&/g
21115 s/\]/\\&/g
21116 s/\$/$$/g
21117 H
21118 :any
21119 ${
21120         g
21121         s/^\n//
21122         s/\n/ /g
21123         p
21124 }
21125 '
21126 DEFS=`sed -n "$ac_script" confdefs.h`
21127
21128
21129 ac_libobjs=
21130 ac_ltlibobjs=
21131 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21132   # 1. Remove the extension, and $U if already installed.
21133   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21134   ac_i=`echo "$ac_i" | sed "$ac_script"`
21135   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21136   #    will be set to the directory where LIBOBJS objects are built.
21137   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21138   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21139 done
21140 LIBOBJS=$ac_libobjs
21141
21142 LTLIBOBJS=$ac_ltlibobjs
21143
21144
21145 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21146   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21147 Usually this means the macro was only invoked conditionally." >&5
21148 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21149 Usually this means the macro was only invoked conditionally." >&2;}
21150    { (exit 1); exit 1; }; }
21151 fi
21152 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21153   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21154 Usually this means the macro was only invoked conditionally." >&5
21155 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21156 Usually this means the macro was only invoked conditionally." >&2;}
21157    { (exit 1); exit 1; }; }
21158 fi
21159
21160 : ${CONFIG_STATUS=./config.status}
21161 ac_clean_files_save=$ac_clean_files
21162 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21163 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21164 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21165 cat >$CONFIG_STATUS <<_ACEOF
21166 #! $SHELL
21167 # Generated by $as_me.
21168 # Run this file to recreate the current configuration.
21169 # Compiler output produced by configure, useful for debugging
21170 # configure, is in config.log if it exists.
21171
21172 debug=false
21173 ac_cs_recheck=false
21174 ac_cs_silent=false
21175 SHELL=\${CONFIG_SHELL-$SHELL}
21176 _ACEOF
21177
21178 cat >>$CONFIG_STATUS <<\_ACEOF
21179 ## --------------------- ##
21180 ## M4sh Initialization.  ##
21181 ## --------------------- ##
21182
21183 # Be Bourne compatible
21184 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21185   emulate sh
21186   NULLCMD=:
21187   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21188   # is contrary to our usage.  Disable this feature.
21189   alias -g '${1+"$@"}'='"$@"'
21190   setopt NO_GLOB_SUBST
21191 else
21192   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21193 fi
21194 BIN_SH=xpg4; export BIN_SH # for Tru64
21195 DUALCASE=1; export DUALCASE # for MKS sh
21196
21197
21198 # PATH needs CR
21199 # Avoid depending upon Character Ranges.
21200 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21201 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21202 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21203 as_cr_digits='0123456789'
21204 as_cr_alnum=$as_cr_Letters$as_cr_digits
21205
21206 # The user is always right.
21207 if test "${PATH_SEPARATOR+set}" != set; then
21208   echo "#! /bin/sh" >conf$$.sh
21209   echo  "exit 0"   >>conf$$.sh
21210   chmod +x conf$$.sh
21211   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21212     PATH_SEPARATOR=';'
21213   else
21214     PATH_SEPARATOR=:
21215   fi
21216   rm -f conf$$.sh
21217 fi
21218
21219 # Support unset when possible.
21220 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21221   as_unset=unset
21222 else
21223   as_unset=false
21224 fi
21225
21226
21227 # IFS
21228 # We need space, tab and new line, in precisely that order.  Quoting is
21229 # there to prevent editors from complaining about space-tab.
21230 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21231 # splitting by setting IFS to empty value.)
21232 as_nl='
21233 '
21234 IFS=" ""        $as_nl"
21235
21236 # Find who we are.  Look in the path if we contain no directory separator.
21237 case $0 in
21238   *[\\/]* ) as_myself=$0 ;;
21239   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21240 for as_dir in $PATH
21241 do
21242   IFS=$as_save_IFS
21243   test -z "$as_dir" && as_dir=.
21244   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21245 done
21246 IFS=$as_save_IFS
21247
21248      ;;
21249 esac
21250 # We did not find ourselves, most probably we were run as `sh COMMAND'
21251 # in which case we are not to be found in the path.
21252 if test "x$as_myself" = x; then
21253   as_myself=$0
21254 fi
21255 if test ! -f "$as_myself"; then
21256   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21257   { (exit 1); exit 1; }
21258 fi
21259
21260 # Work around bugs in pre-3.0 UWIN ksh.
21261 for as_var in ENV MAIL MAILPATH
21262 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21263 done
21264 PS1='$ '
21265 PS2='> '
21266 PS4='+ '
21267
21268 # NLS nuisances.
21269 for as_var in \
21270   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21271   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21272   LC_TELEPHONE LC_TIME
21273 do
21274   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21275     eval $as_var=C; export $as_var
21276   else
21277     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21278   fi
21279 done
21280
21281 # Required to use basename.
21282 if expr a : '\(a\)' >/dev/null 2>&1 &&
21283    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21284   as_expr=expr
21285 else
21286   as_expr=false
21287 fi
21288
21289 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21290   as_basename=basename
21291 else
21292   as_basename=false
21293 fi
21294
21295
21296 # Name of the executable.
21297 as_me=`$as_basename -- "$0" ||
21298 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21299          X"$0" : 'X\(//\)$' \| \
21300          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21301 echo X/"$0" |
21302     sed '/^.*\/\([^/][^/]*\)\/*$/{
21303             s//\1/
21304             q
21305           }
21306           /^X\/\(\/\/\)$/{
21307             s//\1/
21308             q
21309           }
21310           /^X\/\(\/\).*/{
21311             s//\1/
21312             q
21313           }
21314           s/.*/./; q'`
21315
21316 # CDPATH.
21317 $as_unset CDPATH
21318
21319
21320
21321   as_lineno_1=$LINENO
21322   as_lineno_2=$LINENO
21323   test "x$as_lineno_1" != "x$as_lineno_2" &&
21324   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21325
21326   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21327   # uniformly replaced by the line number.  The first 'sed' inserts a
21328   # line-number line after each line using $LINENO; the second 'sed'
21329   # does the real work.  The second script uses 'N' to pair each
21330   # line-number line with the line containing $LINENO, and appends
21331   # trailing '-' during substitution so that $LINENO is not a special
21332   # case at line end.
21333   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21334   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21335   # E. McMahon (1931-1989) for sed's syntax.  :-)
21336   sed -n '
21337     p
21338     /[$]LINENO/=
21339   ' <$as_myself |
21340     sed '
21341       s/[$]LINENO.*/&-/
21342       t lineno
21343       b
21344       :lineno
21345       N
21346       :loop
21347       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21348       t loop
21349       s/-\n.*//
21350     ' >$as_me.lineno &&
21351   chmod +x "$as_me.lineno" ||
21352     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21353    { (exit 1); exit 1; }; }
21354
21355   # Don't try to exec as it changes $[0], causing all sort of problems
21356   # (the dirname of $[0] is not the place where we might find the
21357   # original and so on.  Autoconf is especially sensitive to this).
21358   . "./$as_me.lineno"
21359   # Exit status is that of the last command.
21360   exit
21361 }
21362
21363
21364 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21365   as_dirname=dirname
21366 else
21367   as_dirname=false
21368 fi
21369
21370 ECHO_C= ECHO_N= ECHO_T=
21371 case `echo -n x` in
21372 -n*)
21373   case `echo 'x\c'` in
21374   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21375   *)   ECHO_C='\c';;
21376   esac;;
21377 *)
21378   ECHO_N='-n';;
21379 esac
21380
21381 if expr a : '\(a\)' >/dev/null 2>&1 &&
21382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21383   as_expr=expr
21384 else
21385   as_expr=false
21386 fi
21387
21388 rm -f conf$$ conf$$.exe conf$$.file
21389 if test -d conf$$.dir; then
21390   rm -f conf$$.dir/conf$$.file
21391 else
21392   rm -f conf$$.dir
21393   mkdir conf$$.dir
21394 fi
21395 echo >conf$$.file
21396 if ln -s conf$$.file conf$$ 2>/dev/null; then
21397   as_ln_s='ln -s'
21398   # ... but there are two gotchas:
21399   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21400   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21401   # In both cases, we have to default to `cp -p'.
21402   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21403     as_ln_s='cp -p'
21404 elif ln conf$$.file conf$$ 2>/dev/null; then
21405   as_ln_s=ln
21406 else
21407   as_ln_s='cp -p'
21408 fi
21409 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21410 rmdir conf$$.dir 2>/dev/null
21411
21412 if mkdir -p . 2>/dev/null; then
21413   as_mkdir_p=:
21414 else
21415   test -d ./-p && rmdir ./-p
21416   as_mkdir_p=false
21417 fi
21418
21419 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21420 # systems may use methods other than mode bits to determine executability.
21421 cat >conf$$.file <<_ASEOF
21422 #! /bin/sh
21423 exit 0
21424 _ASEOF
21425 chmod +x conf$$.file
21426 if test -x conf$$.file >/dev/null 2>&1; then
21427   as_executable_p="test -x"
21428 else
21429   as_executable_p=:
21430 fi
21431 rm -f conf$$.file
21432
21433 # Sed expression to map a string onto a valid CPP name.
21434 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21435
21436 # Sed expression to map a string onto a valid variable name.
21437 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21438
21439
21440 exec 6>&1
21441
21442 # Save the log message, to keep $[0] and so on meaningful, and to
21443 # report actual input values of CONFIG_FILES etc. instead of their
21444 # values after options handling.
21445 ac_log="
21446 This file was extended by [SAMPLE] $as_me [x.xx], which was
21447 generated by GNU Autoconf 2.60.  Invocation command line was
21448
21449   CONFIG_FILES    = $CONFIG_FILES
21450   CONFIG_HEADERS  = $CONFIG_HEADERS
21451   CONFIG_LINKS    = $CONFIG_LINKS
21452   CONFIG_COMMANDS = $CONFIG_COMMANDS
21453   $ $0 $@
21454
21455 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21456 "
21457
21458 _ACEOF
21459
21460 cat >>$CONFIG_STATUS <<_ACEOF
21461 # Files that config.status was made for.
21462 config_files="$ac_config_files"
21463 config_commands="$ac_config_commands"
21464
21465 _ACEOF
21466
21467 cat >>$CONFIG_STATUS <<\_ACEOF
21468 ac_cs_usage="\
21469 \`$as_me' instantiates files from templates according to the
21470 current configuration.
21471
21472 Usage: $0 [OPTIONS] [FILE]...
21473
21474   -h, --help       print this help, then exit
21475   -V, --version    print version number, then exit
21476   -q, --quiet      do not print progress messages
21477   -d, --debug      don't remove temporary files
21478       --recheck    update $as_me by reconfiguring in the same conditions
21479   --file=FILE[:TEMPLATE]
21480                    instantiate the configuration file FILE
21481
21482 Configuration files:
21483 $config_files
21484
21485 Configuration commands:
21486 $config_commands
21487
21488 Report bugs to <bug-autoconf@gnu.org>."
21489
21490 _ACEOF
21491 cat >>$CONFIG_STATUS <<_ACEOF
21492 ac_cs_version="\\
21493 [SAMPLE] config.status [x.xx]
21494 configured by $0, generated by GNU Autoconf 2.60,
21495   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21496
21497 Copyright (C) 2006 Free Software Foundation, Inc.
21498 This config.status script is free software; the Free Software Foundation
21499 gives unlimited permission to copy, distribute and modify it."
21500
21501 ac_pwd='$ac_pwd'
21502 srcdir='$srcdir'
21503 INSTALL='$INSTALL'
21504 _ACEOF
21505
21506 cat >>$CONFIG_STATUS <<\_ACEOF
21507 # If no file are specified by the user, then we need to provide default
21508 # value.  By we need to know if files were specified by the user.
21509 ac_need_defaults=:
21510 while test $# != 0
21511 do
21512   case $1 in
21513   --*=*)
21514     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21515     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21516     ac_shift=:
21517     ;;
21518   *)
21519     ac_option=$1
21520     ac_optarg=$2
21521     ac_shift=shift
21522     ;;
21523   esac
21524
21525   case $ac_option in
21526   # Handling of the options.
21527   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21528     ac_cs_recheck=: ;;
21529   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21530     echo "$ac_cs_version"; exit ;;
21531   --debug | --debu | --deb | --de | --d | -d )
21532     debug=: ;;
21533   --file | --fil | --fi | --f )
21534     $ac_shift
21535     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21536     ac_need_defaults=false;;
21537   --he | --h |  --help | --hel | -h )
21538     echo "$ac_cs_usage"; exit ;;
21539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21540   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21541     ac_cs_silent=: ;;
21542
21543   # This is an error.
21544   -*) { echo "$as_me: error: unrecognized option: $1
21545 Try \`$0 --help' for more information." >&2
21546    { (exit 1); exit 1; }; } ;;
21547
21548   *) ac_config_targets="$ac_config_targets $1"
21549      ac_need_defaults=false ;;
21550
21551   esac
21552   shift
21553 done
21554
21555 ac_configure_extra_args=
21556
21557 if $ac_cs_silent; then
21558   exec 6>/dev/null
21559   ac_configure_extra_args="$ac_configure_extra_args --silent"
21560 fi
21561
21562 _ACEOF
21563 cat >>$CONFIG_STATUS <<_ACEOF
21564 if \$ac_cs_recheck; then
21565   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21566   CONFIG_SHELL=$SHELL
21567   export CONFIG_SHELL
21568   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21569 fi
21570
21571 _ACEOF
21572 cat >>$CONFIG_STATUS <<\_ACEOF
21573 exec 5>>config.log
21574 {
21575   echo
21576   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21577 ## Running $as_me. ##
21578 _ASBOX
21579   echo "$ac_log"
21580 } >&5
21581
21582 _ACEOF
21583 cat >>$CONFIG_STATUS <<_ACEOF
21584 #
21585 # INIT-COMMANDS
21586 #
21587 llvm_src="${LLVM_SRC}"
21588
21589 _ACEOF
21590
21591 cat >>$CONFIG_STATUS <<\_ACEOF
21592
21593 # Handling of arguments.
21594 for ac_config_target in $ac_config_targets
21595 do
21596   case $ac_config_target in
21597     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21598     "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
21599     "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
21600     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21601     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21602     "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21603     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21604     "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21605
21606   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21607 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21608    { (exit 1); exit 1; }; };;
21609   esac
21610 done
21611
21612
21613 # If the user did not use the arguments to specify the items to instantiate,
21614 # then the envvar interface is used.  Set only those that are not.
21615 # We use the long form for the default assignment because of an extremely
21616 # bizarre bug on SunOS 4.1.3.
21617 if $ac_need_defaults; then
21618   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21619   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21620 fi
21621
21622 # Have a temporary directory for convenience.  Make it in the build tree
21623 # simply because there is no reason against having it here, and in addition,
21624 # creating and moving files from /tmp can sometimes cause problems.
21625 # Hook for its removal unless debugging.
21626 # Note that there is a small window in which the directory will not be cleaned:
21627 # after its creation but before its name has been assigned to `$tmp'.
21628 $debug ||
21629 {
21630   tmp=
21631   trap 'exit_status=$?
21632   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21633 ' 0
21634   trap '{ (exit 1); exit 1; }' 1 2 13 15
21635 }
21636 # Create a (secure) tmp directory for tmp files.
21637
21638 {
21639   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21640   test -n "$tmp" && test -d "$tmp"
21641 }  ||
21642 {
21643   tmp=./conf$$-$RANDOM
21644   (umask 077 && mkdir "$tmp")
21645 } ||
21646 {
21647    echo "$me: cannot create a temporary directory in ." >&2
21648    { (exit 1); exit 1; }
21649 }
21650
21651 #
21652 # Set up the sed scripts for CONFIG_FILES section.
21653 #
21654
21655 # No need to generate the scripts if there are no CONFIG_FILES.
21656 # This happens for instance when ./config.status config.h
21657 if test -n "$CONFIG_FILES"; then
21658
21659 _ACEOF
21660
21661
21662
21663 ac_delim='%!_!# '
21664 for ac_last_try in false false false false false :; do
21665   cat >conf$$subs.sed <<_ACEOF
21666 SHELL!$SHELL$ac_delim
21667 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21668 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21669 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21670 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21671 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21672 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21673 exec_prefix!$exec_prefix$ac_delim
21674 prefix!$prefix$ac_delim
21675 program_transform_name!$program_transform_name$ac_delim
21676 bindir!$bindir$ac_delim
21677 sbindir!$sbindir$ac_delim
21678 libexecdir!$libexecdir$ac_delim
21679 datarootdir!$datarootdir$ac_delim
21680 datadir!$datadir$ac_delim
21681 sysconfdir!$sysconfdir$ac_delim
21682 sharedstatedir!$sharedstatedir$ac_delim
21683 localstatedir!$localstatedir$ac_delim
21684 includedir!$includedir$ac_delim
21685 oldincludedir!$oldincludedir$ac_delim
21686 docdir!$docdir$ac_delim
21687 infodir!$infodir$ac_delim
21688 htmldir!$htmldir$ac_delim
21689 dvidir!$dvidir$ac_delim
21690 pdfdir!$pdfdir$ac_delim
21691 psdir!$psdir$ac_delim
21692 libdir!$libdir$ac_delim
21693 localedir!$localedir$ac_delim
21694 mandir!$mandir$ac_delim
21695 DEFS!$DEFS$ac_delim
21696 ECHO_C!$ECHO_C$ac_delim
21697 ECHO_N!$ECHO_N$ac_delim
21698 ECHO_T!$ECHO_T$ac_delim
21699 LIBS!$LIBS$ac_delim
21700 build_alias!$build_alias$ac_delim
21701 host_alias!$host_alias$ac_delim
21702 target_alias!$target_alias$ac_delim
21703 LLVM_SRC!$LLVM_SRC$ac_delim
21704 LLVM_OBJ!$LLVM_OBJ$ac_delim
21705 LLVM_VERSION!$LLVM_VERSION$ac_delim
21706 CC!$CC$ac_delim
21707 CFLAGS!$CFLAGS$ac_delim
21708 LDFLAGS!$LDFLAGS$ac_delim
21709 CPPFLAGS!$CPPFLAGS$ac_delim
21710 ac_ct_CC!$ac_ct_CC$ac_delim
21711 EXEEXT!$EXEEXT$ac_delim
21712 OBJEXT!$OBJEXT$ac_delim
21713 CXX!$CXX$ac_delim
21714 CXXFLAGS!$CXXFLAGS$ac_delim
21715 ac_ct_CXX!$ac_ct_CXX$ac_delim
21716 CPP!$CPP$ac_delim
21717 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21718 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21719 subdirs!$subdirs$ac_delim
21720 build!$build$ac_delim
21721 build_cpu!$build_cpu$ac_delim
21722 build_vendor!$build_vendor$ac_delim
21723 build_os!$build_os$ac_delim
21724 host!$host$ac_delim
21725 host_cpu!$host_cpu$ac_delim
21726 host_vendor!$host_vendor$ac_delim
21727 host_os!$host_os$ac_delim
21728 target!$target$ac_delim
21729 target_cpu!$target_cpu$ac_delim
21730 target_vendor!$target_vendor$ac_delim
21731 target_os!$target_os$ac_delim
21732 OS!$OS$ac_delim
21733 HOST_OS!$HOST_OS$ac_delim
21734 TARGET_OS!$TARGET_OS$ac_delim
21735 LINKALL!$LINKALL$ac_delim
21736 NOLINKALL!$NOLINKALL$ac_delim
21737 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21738 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21739 ARCH!$ARCH$ac_delim
21740 ENDIAN!$ENDIAN$ac_delim
21741 GREP!$GREP$ac_delim
21742 EGREP!$EGREP$ac_delim
21743 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21744 BUILD_CC!$BUILD_CC$ac_delim
21745 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21746 BUILD_CXX!$BUILD_CXX$ac_delim
21747 CVSBUILD!$CVSBUILD$ac_delim
21748 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21749 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21750 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21751 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21752 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21753 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21754 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21755 JIT!$JIT$ac_delim
21756 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21757 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21758 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21759 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21760 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21761 ENABLE_PIC!$ENABLE_PIC$ac_delim
21762 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21763 _ACEOF
21764
21765   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21766     break
21767   elif $ac_last_try; then
21768     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21769 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21770    { (exit 1); exit 1; }; }
21771   else
21772     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21773   fi
21774 done
21775
21776 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21777 if test -n "$ac_eof"; then
21778   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21779   ac_eof=`expr $ac_eof + 1`
21780 fi
21781
21782 cat >>$CONFIG_STATUS <<_ACEOF
21783 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21784 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21785 _ACEOF
21786 sed '
21787 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21788 s/^/s,@/; s/!/@,|#_!!_#|/
21789 :n
21790 t n
21791 s/'"$ac_delim"'$/,g/; t
21792 s/$/\\/; p
21793 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21794 ' >>$CONFIG_STATUS <conf$$subs.sed
21795 rm -f conf$$subs.sed
21796 cat >>$CONFIG_STATUS <<_ACEOF
21797 CEOF$ac_eof
21798 _ACEOF
21799
21800
21801 ac_delim='%!_!# '
21802 for ac_last_try in false false false false false :; do
21803   cat >conf$$subs.sed <<_ACEOF
21804 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21805 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21806 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21807 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21808 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21809 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21810 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21811 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21812 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21813 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21814 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21815 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21816 NM!$NM$ac_delim
21817 ifGNUmake!$ifGNUmake$ac_delim
21818 LN_S!$LN_S$ac_delim
21819 CMP!$CMP$ac_delim
21820 CP!$CP$ac_delim
21821 DATE!$DATE$ac_delim
21822 FIND!$FIND$ac_delim
21823 MKDIR!$MKDIR$ac_delim
21824 MV!$MV$ac_delim
21825 RANLIB!$RANLIB$ac_delim
21826 AR!$AR$ac_delim
21827 RM!$RM$ac_delim
21828 SED!$SED$ac_delim
21829 TAR!$TAR$ac_delim
21830 BINPWD!$BINPWD$ac_delim
21831 GRAPHVIZ!$GRAPHVIZ$ac_delim
21832 DOT!$DOT$ac_delim
21833 FDP!$FDP$ac_delim
21834 NEATO!$NEATO$ac_delim
21835 TWOPI!$TWOPI$ac_delim
21836 CIRCO!$CIRCO$ac_delim
21837 GV!$GV$ac_delim
21838 DOTTY!$DOTTY$ac_delim
21839 XDOT_PY!$XDOT_PY$ac_delim
21840 PERL!$PERL$ac_delim
21841 HAVE_PERL!$HAVE_PERL$ac_delim
21842 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21843 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21844 INSTALL_DATA!$INSTALL_DATA$ac_delim
21845 BZIP2!$BZIP2$ac_delim
21846 CAT!$CAT$ac_delim
21847 DOXYGEN!$DOXYGEN$ac_delim
21848 GROFF!$GROFF$ac_delim
21849 GZIPBIN!$GZIPBIN$ac_delim
21850 POD2HTML!$POD2HTML$ac_delim
21851 POD2MAN!$POD2MAN$ac_delim
21852 PDFROFF!$PDFROFF$ac_delim
21853 RUNTEST!$RUNTEST$ac_delim
21854 TCLSH!$TCLSH$ac_delim
21855 ZIP!$ZIP$ac_delim
21856 OCAMLC!$OCAMLC$ac_delim
21857 OCAMLOPT!$OCAMLOPT$ac_delim
21858 OCAMLDEP!$OCAMLDEP$ac_delim
21859 OCAMLDOC!$OCAMLDOC$ac_delim
21860 GAS!$GAS$ac_delim
21861 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21862 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21863 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21864 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21865 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21866 LIBADD_DL!$LIBADD_DL$ac_delim
21867 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21868 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21869 USE_UDIS86!$USE_UDIS86$ac_delim
21870 USE_OPROFILE!$USE_OPROFILE$ac_delim
21871 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21872 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21873 MMAP_FILE!$MMAP_FILE$ac_delim
21874 SHLIBEXT!$SHLIBEXT$ac_delim
21875 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21876 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21877 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21878 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21879 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21880 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21881 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21882 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21883 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21884 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21885 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21886 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21887 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21888 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21889 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21890 RPATH!$RPATH$ac_delim
21891 RDYNAMIC!$RDYNAMIC$ac_delim
21892 LIBOBJS!$LIBOBJS$ac_delim
21893 LTLIBOBJS!$LTLIBOBJS$ac_delim
21894 _ACEOF
21895
21896   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
21897     break
21898   elif $ac_last_try; then
21899     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21900 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21901    { (exit 1); exit 1; }; }
21902   else
21903     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21904   fi
21905 done
21906
21907 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21908 if test -n "$ac_eof"; then
21909   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21910   ac_eof=`expr $ac_eof + 1`
21911 fi
21912
21913 cat >>$CONFIG_STATUS <<_ACEOF
21914 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21915 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21916 _ACEOF
21917 sed '
21918 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21919 s/^/s,@/; s/!/@,|#_!!_#|/
21920 :n
21921 t n
21922 s/'"$ac_delim"'$/,g/; t
21923 s/$/\\/; p
21924 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21925 ' >>$CONFIG_STATUS <conf$$subs.sed
21926 rm -f conf$$subs.sed
21927 cat >>$CONFIG_STATUS <<_ACEOF
21928 :end
21929 s/|#_!!_#|//g
21930 CEOF$ac_eof
21931 _ACEOF
21932
21933
21934 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21935 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21936 # trailing colons and then remove the whole line if VPATH becomes empty
21937 # (actually we leave an empty line to preserve line numbers).
21938 if test "x$srcdir" = x.; then
21939   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21940 s/:*\$(srcdir):*/:/
21941 s/:*\${srcdir}:*/:/
21942 s/:*@srcdir@:*/:/
21943 s/^\([^=]*=[     ]*\):*/\1/
21944 s/:*$//
21945 s/^[^=]*=[       ]*$//
21946 }'
21947 fi
21948
21949 cat >>$CONFIG_STATUS <<\_ACEOF
21950 fi # test -n "$CONFIG_FILES"
21951
21952
21953 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
21954 do
21955   case $ac_tag in
21956   :[FHLC]) ac_mode=$ac_tag; continue;;
21957   esac
21958   case $ac_mode$ac_tag in
21959   :[FHL]*:*);;
21960   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21961 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21962    { (exit 1); exit 1; }; };;
21963   :[FH]-) ac_tag=-:-;;
21964   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21965   esac
21966   ac_save_IFS=$IFS
21967   IFS=:
21968   set x $ac_tag
21969   IFS=$ac_save_IFS
21970   shift
21971   ac_file=$1
21972   shift
21973
21974   case $ac_mode in
21975   :L) ac_source=$1;;
21976   :[FH])
21977     ac_file_inputs=
21978     for ac_f
21979     do
21980       case $ac_f in
21981       -) ac_f="$tmp/stdin";;
21982       *) # Look for the file first in the build tree, then in the source tree
21983          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21984          # because $ac_f cannot contain `:'.
21985          test -f "$ac_f" ||
21986            case $ac_f in
21987            [\\/$]*) false;;
21988            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21989            esac ||
21990            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21991 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21992    { (exit 1); exit 1; }; };;
21993       esac
21994       ac_file_inputs="$ac_file_inputs $ac_f"
21995     done
21996
21997     # Let's still pretend it is `configure' which instantiates (i.e., don't
21998     # use $as_me), people would be surprised to read:
21999     #    /* config.h.  Generated by config.status.  */
22000     configure_input="Generated from "`IFS=:
22001           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22002     if test x"$ac_file" != x-; then
22003       configure_input="$ac_file.  $configure_input"
22004       { echo "$as_me:$LINENO: creating $ac_file" >&5
22005 echo "$as_me: creating $ac_file" >&6;}
22006     fi
22007
22008     case $ac_tag in
22009     *:-:* | *:-) cat >"$tmp/stdin";;
22010     esac
22011     ;;
22012   esac
22013
22014   ac_dir=`$as_dirname -- "$ac_file" ||
22015 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22016          X"$ac_file" : 'X\(//\)[^/]' \| \
22017          X"$ac_file" : 'X\(//\)$' \| \
22018          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22019 echo X"$ac_file" |
22020     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22021             s//\1/
22022             q
22023           }
22024           /^X\(\/\/\)[^/].*/{
22025             s//\1/
22026             q
22027           }
22028           /^X\(\/\/\)$/{
22029             s//\1/
22030             q
22031           }
22032           /^X\(\/\).*/{
22033             s//\1/
22034             q
22035           }
22036           s/.*/./; q'`
22037   { as_dir="$ac_dir"
22038   case $as_dir in #(
22039   -*) as_dir=./$as_dir;;
22040   esac
22041   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22042     as_dirs=
22043     while :; do
22044       case $as_dir in #(
22045       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22046       *) as_qdir=$as_dir;;
22047       esac
22048       as_dirs="'$as_qdir' $as_dirs"
22049       as_dir=`$as_dirname -- "$as_dir" ||
22050 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22051          X"$as_dir" : 'X\(//\)[^/]' \| \
22052          X"$as_dir" : 'X\(//\)$' \| \
22053          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22054 echo X"$as_dir" |
22055     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22056             s//\1/
22057             q
22058           }
22059           /^X\(\/\/\)[^/].*/{
22060             s//\1/
22061             q
22062           }
22063           /^X\(\/\/\)$/{
22064             s//\1/
22065             q
22066           }
22067           /^X\(\/\).*/{
22068             s//\1/
22069             q
22070           }
22071           s/.*/./; q'`
22072       test -d "$as_dir" && break
22073     done
22074     test -z "$as_dirs" || eval "mkdir $as_dirs"
22075   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22076 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22077    { (exit 1); exit 1; }; }; }
22078   ac_builddir=.
22079
22080 case "$ac_dir" in
22081 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22082 *)
22083   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22084   # A ".." for each directory in $ac_dir_suffix.
22085   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22086   case $ac_top_builddir_sub in
22087   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22088   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22089   esac ;;
22090 esac
22091 ac_abs_top_builddir=$ac_pwd
22092 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22093 # for backward compatibility:
22094 ac_top_builddir=$ac_top_build_prefix
22095
22096 case $srcdir in
22097   .)  # We are building in place.
22098     ac_srcdir=.
22099     ac_top_srcdir=$ac_top_builddir_sub
22100     ac_abs_top_srcdir=$ac_pwd ;;
22101   [\\/]* | ?:[\\/]* )  # Absolute name.
22102     ac_srcdir=$srcdir$ac_dir_suffix;
22103     ac_top_srcdir=$srcdir
22104     ac_abs_top_srcdir=$srcdir ;;
22105   *) # Relative name.
22106     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22107     ac_top_srcdir=$ac_top_build_prefix$srcdir
22108     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22109 esac
22110 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22111
22112
22113   case $ac_mode in
22114   :F)
22115   #
22116   # CONFIG_FILE
22117   #
22118
22119   case $INSTALL in
22120   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22121   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22122   esac
22123 _ACEOF
22124
22125 cat >>$CONFIG_STATUS <<\_ACEOF
22126 # If the template does not know about datarootdir, expand it.
22127 # FIXME: This hack should be removed a few years after 2.60.
22128 ac_datarootdir_hack=; ac_datarootdir_seen=
22129
22130 case `sed -n '/datarootdir/ {
22131   p
22132   q
22133 }
22134 /@datadir@/p
22135 /@docdir@/p
22136 /@infodir@/p
22137 /@localedir@/p
22138 /@mandir@/p
22139 ' $ac_file_inputs` in
22140 *datarootdir*) ac_datarootdir_seen=yes;;
22141 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22142   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22143 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22144 _ACEOF
22145 cat >>$CONFIG_STATUS <<_ACEOF
22146   ac_datarootdir_hack='
22147   s&@datadir@&$datadir&g
22148   s&@docdir@&$docdir&g
22149   s&@infodir@&$infodir&g
22150   s&@localedir@&$localedir&g
22151   s&@mandir@&$mandir&g
22152     s&\\\${datarootdir}&$datarootdir&g' ;;
22153 esac
22154 _ACEOF
22155
22156 # Neutralize VPATH when `$srcdir' = `.'.
22157 # Shell code in configure.ac might set extrasub.
22158 # FIXME: do we really want to maintain this feature?
22159 cat >>$CONFIG_STATUS <<_ACEOF
22160   sed "$ac_vpsub
22161 $extrasub
22162 _ACEOF
22163 cat >>$CONFIG_STATUS <<\_ACEOF
22164 :t
22165 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22166 s&@configure_input@&$configure_input&;t t
22167 s&@top_builddir@&$ac_top_builddir_sub&;t t
22168 s&@srcdir@&$ac_srcdir&;t t
22169 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22170 s&@top_srcdir@&$ac_top_srcdir&;t t
22171 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22172 s&@builddir@&$ac_builddir&;t t
22173 s&@abs_builddir@&$ac_abs_builddir&;t t
22174 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22175 s&@INSTALL@&$ac_INSTALL&;t t
22176 $ac_datarootdir_hack
22177 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22178
22179 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22180   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22181   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22182   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22183 which seems to be undefined.  Please make sure it is defined." >&5
22184 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22185 which seems to be undefined.  Please make sure it is defined." >&2;}
22186
22187   rm -f "$tmp/stdin"
22188   case $ac_file in
22189   -) cat "$tmp/out"; rm -f "$tmp/out";;
22190   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22191   esac
22192  ;;
22193
22194
22195   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22196 echo "$as_me: executing $ac_file commands" >&6;}
22197  ;;
22198   esac
22199
22200
22201   case $ac_file$ac_mode in
22202     "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22203    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22204     "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22205    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22206     "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22207    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22208     "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22209    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22210     "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22211    ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
22212
22213   esac
22214 done # for ac_tag
22215
22216
22217 { (exit 0); exit 0; }
22218 _ACEOF
22219 chmod +x $CONFIG_STATUS
22220 ac_clean_files=$ac_clean_files_save
22221
22222
22223 # configure is writing to config.log, and then calls config.status.
22224 # config.status does its own redirection, appending to config.log.
22225 # Unfortunately, on DOS this fails, as config.log is still kept open
22226 # by configure, so config.status won't be able to write to it; its
22227 # output is simply discarded.  So we exec the FD to /dev/null,
22228 # effectively closing config.log, so it can be properly (re)opened and
22229 # appended to by config.status.  When coming back to configure, we
22230 # need to make the FD available again.
22231 if test "$no_create" != yes; then
22232   ac_cs_success=:
22233   ac_config_status_args=
22234   test "$silent" = yes &&
22235     ac_config_status_args="$ac_config_status_args --quiet"
22236   exec 5>/dev/null
22237   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22238   exec 5>>config.log
22239   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22240   # would make configure fail if this is the last instruction.
22241   $ac_cs_success || { (exit 1); exit 1; }
22242 fi
22243
22244 #
22245 # CONFIG_SUBDIRS section.
22246 #
22247 if test "$no_recursion" != yes; then
22248
22249   # Remove --cache-file and --srcdir arguments so they do not pile up.
22250   ac_sub_configure_args=
22251   ac_prev=
22252   eval "set x $ac_configure_args"
22253   shift
22254   for ac_arg
22255   do
22256     if test -n "$ac_prev"; then
22257       ac_prev=
22258       continue
22259     fi
22260     case $ac_arg in
22261     -cache-file | --cache-file | --cache-fil | --cache-fi \
22262     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22263       ac_prev=cache_file ;;
22264     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22265     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22266     | --c=*)
22267       ;;
22268     --config-cache | -C)
22269       ;;
22270     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22271       ac_prev=srcdir ;;
22272     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22273       ;;
22274     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22275       ac_prev=prefix ;;
22276     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22277       ;;
22278     *)
22279       case $ac_arg in
22280       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22281       esac
22282       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22283     esac
22284   done
22285
22286   # Always prepend --prefix to ensure using the same prefix
22287   # in subdir configurations.
22288   ac_arg="--prefix=$prefix"
22289   case $ac_arg in
22290   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22291   esac
22292   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22293
22294   ac_popdir=`pwd`
22295   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22296
22297     # Do not complain, so a configure script can configure whichever
22298     # parts of a large source tree are present.
22299     test -d "$srcdir/$ac_dir" || continue
22300
22301     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22302     echo "$as_me:$LINENO: $ac_msg" >&5
22303     echo "$ac_msg" >&6
22304     { as_dir="$ac_dir"
22305   case $as_dir in #(
22306   -*) as_dir=./$as_dir;;
22307   esac
22308   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22309     as_dirs=
22310     while :; do
22311       case $as_dir in #(
22312       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22313       *) as_qdir=$as_dir;;
22314       esac
22315       as_dirs="'$as_qdir' $as_dirs"
22316       as_dir=`$as_dirname -- "$as_dir" ||
22317 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22318          X"$as_dir" : 'X\(//\)[^/]' \| \
22319          X"$as_dir" : 'X\(//\)$' \| \
22320          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22321 echo X"$as_dir" |
22322     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22323             s//\1/
22324             q
22325           }
22326           /^X\(\/\/\)[^/].*/{
22327             s//\1/
22328             q
22329           }
22330           /^X\(\/\/\)$/{
22331             s//\1/
22332             q
22333           }
22334           /^X\(\/\).*/{
22335             s//\1/
22336             q
22337           }
22338           s/.*/./; q'`
22339       test -d "$as_dir" && break
22340     done
22341     test -z "$as_dirs" || eval "mkdir $as_dirs"
22342   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22343 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22344    { (exit 1); exit 1; }; }; }
22345     ac_builddir=.
22346
22347 case "$ac_dir" in
22348 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22349 *)
22350   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22351   # A ".." for each directory in $ac_dir_suffix.
22352   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22353   case $ac_top_builddir_sub in
22354   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22355   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22356   esac ;;
22357 esac
22358 ac_abs_top_builddir=$ac_pwd
22359 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22360 # for backward compatibility:
22361 ac_top_builddir=$ac_top_build_prefix
22362
22363 case $srcdir in
22364   .)  # We are building in place.
22365     ac_srcdir=.
22366     ac_top_srcdir=$ac_top_builddir_sub
22367     ac_abs_top_srcdir=$ac_pwd ;;
22368   [\\/]* | ?:[\\/]* )  # Absolute name.
22369     ac_srcdir=$srcdir$ac_dir_suffix;
22370     ac_top_srcdir=$srcdir
22371     ac_abs_top_srcdir=$srcdir ;;
22372   *) # Relative name.
22373     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22374     ac_top_srcdir=$ac_top_build_prefix$srcdir
22375     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22376 esac
22377 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22378
22379
22380     cd "$ac_dir"
22381
22382     # Check for guested configure; otherwise get Cygnus style configure.
22383     if test -f "$ac_srcdir/configure.gnu"; then
22384       ac_sub_configure=$ac_srcdir/configure.gnu
22385     elif test -f "$ac_srcdir/configure"; then
22386       ac_sub_configure=$ac_srcdir/configure
22387     elif test -f "$ac_srcdir/configure.in"; then
22388       # This should be Cygnus configure.
22389       ac_sub_configure=$ac_aux_dir/configure
22390     else
22391       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22392 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22393       ac_sub_configure=
22394     fi
22395
22396     # The recursion is here.
22397     if test -n "$ac_sub_configure"; then
22398       # Make the cache file name correct relative to the subdirectory.
22399       case $cache_file in
22400       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22401       *) # Relative name.
22402         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22403       esac
22404
22405       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22406 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22407       # The eval makes quoting arguments work.
22408       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22409            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22410         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22411 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22412    { (exit 1); exit 1; }; }
22413     fi
22414
22415     cd "$ac_popdir"
22416   done
22417 fi
22418