blob: 41b74cfdc72d25cdc3fc7f74b24f30fe952ddcef [file] [log] [blame]
John Bauman66b8ab22014-05-06 15:57:45 -04001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for llvm 3.0.
4#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
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# Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
13## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 emulate sh
21 NULLCMD=:
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
29esac
30
31fi
32
33
34
35
36# PATH needs CR
37# Avoid depending upon Character Ranges.
38as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41as_cr_digits='0123456789'
42as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44# The user is always right.
45if test "${PATH_SEPARATOR+set}" != set; then
46 echo "#! /bin/sh" >conf$$.sh
47 echo "exit 0" >>conf$$.sh
48 chmod +x conf$$.sh
49 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50 PATH_SEPARATOR=';'
51 else
52 PATH_SEPARATOR=:
53 fi
54 rm -f conf$$.sh
55fi
56
57# Support unset when possible.
58if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59 as_unset=unset
60else
61 as_unset=false
62fi
63
64
65# IFS
66# We need space, tab and new line, in precisely that order. Quoting is
67# there to prevent editors from complaining about space-tab.
68# (If _AS_PATH_WALK were called with IFS unset, it would disable word
69# splitting by setting IFS to empty value.)
70as_nl='
71'
72IFS=" "" $as_nl"
73
74# Find who we are. Look in the path if we contain no directory separator.
75case $0 in
76 *[\\/]* ) as_myself=$0 ;;
77 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78for as_dir in $PATH
79do
80 IFS=$as_save_IFS
81 test -z "$as_dir" && as_dir=.
82 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83done
84IFS=$as_save_IFS
85
86 ;;
87esac
88# We did not find ourselves, most probably we were run as `sh COMMAND'
89# in which case we are not to be found in the path.
90if test "x$as_myself" = x; then
91 as_myself=$0
92fi
93if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 { (exit 1); exit 1; }
96fi
97
98# Work around bugs in pre-3.0 UWIN ksh.
99for as_var in ENV MAIL MAILPATH
100do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101done
102PS1='$ '
103PS2='> '
104PS4='+ '
105
106# NLS nuisances.
107for as_var in \
108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 LC_TELEPHONE LC_TIME
111do
112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C; export $as_var
114 else
115 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 fi
117done
118
119# Required to use basename.
120if expr a : '\(a\)' >/dev/null 2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
122 as_expr=expr
123else
124 as_expr=false
125fi
126
127if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 as_basename=basename
129else
130 as_basename=false
131fi
132
133
134# Name of the executable.
135as_me=`$as_basename -- "$0" ||
136$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137 X"$0" : 'X\(//\)$' \| \
138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139echo X/"$0" |
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\/\)$/{
145 s//\1/
146 q
147 }
148 /^X\/\(\/\).*/{
149 s//\1/
150 q
151 }
152 s/.*/./; q'`
153
154# CDPATH.
155$as_unset CDPATH
156
157
158if test "x$CONFIG_SHELL" = x; then
159 if (eval ":") 2>/dev/null; then
160 as_have_required=yes
161else
162 as_have_required=no
163fi
164
165 if test $as_have_required = yes && (eval ":
166(as_func_return () {
167 (exit \$1)
168}
169as_func_success () {
170 as_func_return 0
171}
172as_func_failure () {
173 as_func_return 1
174}
175as_func_ret_success () {
176 return 0
177}
178as_func_ret_failure () {
179 return 1
180}
181
182exitcode=0
183if as_func_success; then
184 :
185else
186 exitcode=1
187 echo as_func_success failed.
188fi
189
190if as_func_failure; then
191 exitcode=1
192 echo as_func_failure succeeded.
193fi
194
195if as_func_ret_success; then
196 :
197else
198 exitcode=1
199 echo as_func_ret_success failed.
200fi
201
202if as_func_ret_failure; then
203 exitcode=1
204 echo as_func_ret_failure succeeded.
205fi
206
207if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 :
209else
210 exitcode=1
211 echo positional parameters were not saved.
212fi
213
214test \$exitcode = 0) || { (exit 1); exit 1; }
215
216(
217 as_lineno_1=\$LINENO
218 as_lineno_2=\$LINENO
219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221") 2> /dev/null; then
222 :
223else
224 as_candidate_shells=
225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227do
228 IFS=$as_save_IFS
229 test -z "$as_dir" && as_dir=.
230 case $as_dir in
231 /*)
232 for as_base in sh bash ksh sh5; do
233 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234 done;;
235 esac
236done
237IFS=$as_save_IFS
238
239
240 for as_shell in $as_candidate_shells $SHELL; do
241 # Try only shells that exist, to save several forks.
242 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243 { ("$as_shell") 2> /dev/null <<\_ASEOF
244if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 emulate sh
246 NULLCMD=:
247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248 # is contrary to our usage. Disable this feature.
249 alias -g '${1+"$@"}'='"$@"'
250 setopt NO_GLOB_SUBST
251else
252 case `(set -o) 2>/dev/null` in
253 *posix*) set -o posix ;;
254esac
255
256fi
257
258
259:
260_ASEOF
261}; then
262 CONFIG_SHELL=$as_shell
263 as_have_required=yes
264 if { "$as_shell" 2> /dev/null <<\_ASEOF
265if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 emulate sh
267 NULLCMD=:
268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
271 setopt NO_GLOB_SUBST
272else
273 case `(set -o) 2>/dev/null` in
274 *posix*) set -o posix ;;
275esac
276
277fi
278
279
280:
281(as_func_return () {
282 (exit $1)
283}
284as_func_success () {
285 as_func_return 0
286}
287as_func_failure () {
288 as_func_return 1
289}
290as_func_ret_success () {
291 return 0
292}
293as_func_ret_failure () {
294 return 1
295}
296
297exitcode=0
298if as_func_success; then
299 :
300else
301 exitcode=1
302 echo as_func_success failed.
303fi
304
305if as_func_failure; then
306 exitcode=1
307 echo as_func_failure succeeded.
308fi
309
310if as_func_ret_success; then
311 :
312else
313 exitcode=1
314 echo as_func_ret_success failed.
315fi
316
317if as_func_ret_failure; then
318 exitcode=1
319 echo as_func_ret_failure succeeded.
320fi
321
322if ( set x; as_func_ret_success y && test x = "$1" ); then
323 :
324else
325 exitcode=1
326 echo positional parameters were not saved.
327fi
328
329test $exitcode = 0) || { (exit 1); exit 1; }
330
331(
332 as_lineno_1=$LINENO
333 as_lineno_2=$LINENO
334 test "x$as_lineno_1" != "x$as_lineno_2" &&
335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336
337_ASEOF
338}; then
339 break
340fi
341
342fi
343
344 done
345
346 if test "x$CONFIG_SHELL" != x; then
347 for as_var in BASH_ENV ENV
348 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 done
350 export CONFIG_SHELL
351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352fi
353
354
355 if test $as_have_required = no; then
356 echo This script requires a shell more modern than all the
357 echo shells that I found on your system. Please install a
358 echo modern shell, or manually run the script under such a
359 echo shell if you do have one.
360 { (exit 1); exit 1; }
361fi
362
363
364fi
365
366fi
367
368
369
370(eval "as_func_return () {
371 (exit \$1)
372}
373as_func_success () {
374 as_func_return 0
375}
376as_func_failure () {
377 as_func_return 1
378}
379as_func_ret_success () {
380 return 0
381}
382as_func_ret_failure () {
383 return 1
384}
385
386exitcode=0
387if as_func_success; then
388 :
389else
390 exitcode=1
391 echo as_func_success failed.
392fi
393
394if as_func_failure; then
395 exitcode=1
396 echo as_func_failure succeeded.
397fi
398
399if as_func_ret_success; then
400 :
401else
402 exitcode=1
403 echo as_func_ret_success failed.
404fi
405
406if as_func_ret_failure; then
407 exitcode=1
408 echo as_func_ret_failure succeeded.
409fi
410
411if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 :
413else
414 exitcode=1
415 echo positional parameters were not saved.
416fi
417
418test \$exitcode = 0") || {
419 echo No shell found that supports shell functions.
420 echo Please tell autoconf@gnu.org about your system,
421 echo including any error possibly output before this
422 echo message
423}
424
425
426
427 as_lineno_1=$LINENO
428 as_lineno_2=$LINENO
429 test "x$as_lineno_1" != "x$as_lineno_2" &&
430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431
432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433 # uniformly replaced by the line number. The first 'sed' inserts a
434 # line-number line after each line using $LINENO; the second 'sed'
435 # does the real work. The second script uses 'N' to pair each
436 # line-number line with the line containing $LINENO, and appends
437 # trailing '-' during substitution so that $LINENO is not a special
438 # case at line end.
439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440 # scripts with optimization help from Paolo Bonzini. Blame Lee
441 # E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
443 p
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
449 b
450 :lineno
451 N
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459 { (exit 1); exit 1; }; }
460
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
463 # original and so on. Autoconf is especially sensitive to this).
464 . "./$as_me.lineno"
465 # Exit status is that of the last command.
466 exit
467}
468
469
470if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
471 as_dirname=dirname
472else
473 as_dirname=false
474fi
475
476ECHO_C= ECHO_N= ECHO_T=
477case `echo -n x` in
478-n*)
479 case `echo 'x\c'` in
480 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 *) ECHO_C='\c';;
482 esac;;
483*)
484 ECHO_N='-n';;
485esac
486
487if expr a : '\(a\)' >/dev/null 2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001; then
489 as_expr=expr
490else
491 as_expr=false
492fi
493
494rm -f conf$$ conf$$.exe conf$$.file
495if test -d conf$$.dir; then
496 rm -f conf$$.dir/conf$$.file
497else
498 rm -f conf$$.dir
499 mkdir conf$$.dir
500fi
501echo >conf$$.file
502if ln -s conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s='ln -s'
504 # ... but there are two gotchas:
505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507 # In both cases, we have to default to `cp -p'.
508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509 as_ln_s='cp -p'
510elif ln conf$$.file conf$$ 2>/dev/null; then
511 as_ln_s=ln
512else
513 as_ln_s='cp -p'
514fi
515rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516rmdir conf$$.dir 2>/dev/null
517
518if mkdir -p . 2>/dev/null; then
519 as_mkdir_p=:
520else
521 test -d ./-p && rmdir ./-p
522 as_mkdir_p=false
523fi
524
525if test -x / >/dev/null 2>&1; then
526 as_test_x='test -x'
527else
528 if ls -dL / >/dev/null 2>&1; then
529 as_ls_L_option=L
530 else
531 as_ls_L_option=
532 fi
533 as_test_x='
534 eval sh -c '\''
535 if test -d "$1"; then
536 test -d "$1/.";
537 else
538 case $1 in
539 -*)set "./$1";;
540 esac;
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
543 '\'' sh
544 '
545fi
546as_executable_p=$as_test_x
547
548# Sed expression to map a string onto a valid CPP name.
549as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550
551# Sed expression to map a string onto a valid variable name.
552as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553
554
555
556exec 7<&0 </dev/null 6>&1
557
558# Name of the host.
559# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
560# so uname gets run too.
561ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562
563#
564# Initializations.
565#
566ac_default_prefix=/usr/local
567ac_clean_files=
568ac_config_libobj_dir=.
569LIBOBJS=
570cross_compiling=no
571subdirs=
572MFLAGS=
573MAKEFLAGS=
574SHELL=${CONFIG_SHELL-/bin/sh}
575
576# Identity of this package.
577PACKAGE_NAME='llvm'
578PACKAGE_TARNAME='-llvm-'
579PACKAGE_VERSION='3.0'
580PACKAGE_STRING='llvm 3.0'
581PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
582
583ac_unique_file="lib/VMCore/Module.cpp"
584# Factoring default headers for most tests.
585ac_includes_default="\
586#include <stdio.h>
587#ifdef HAVE_SYS_TYPES_H
588# include <sys/types.h>
589#endif
590#ifdef HAVE_SYS_STAT_H
591# include <sys/stat.h>
592#endif
593#ifdef STDC_HEADERS
594# include <stdlib.h>
595# include <stddef.h>
596#else
597# ifdef HAVE_STDLIB_H
598# include <stdlib.h>
599# endif
600#endif
601#ifdef HAVE_STRING_H
602# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603# include <memory.h>
604# endif
605# include <string.h>
606#endif
607#ifdef HAVE_STRINGS_H
608# include <strings.h>
609#endif
610#ifdef HAVE_INTTYPES_H
611# include <inttypes.h>
612#endif
613#ifdef HAVE_STDINT_H
614# include <stdint.h>
615#endif
616#ifdef HAVE_UNISTD_H
617# include <unistd.h>
618#endif"
619
620ac_subst_vars='SHELL
621PATH_SEPARATOR
622PACKAGE_NAME
623PACKAGE_TARNAME
624PACKAGE_VERSION
625PACKAGE_STRING
626PACKAGE_BUGREPORT
627exec_prefix
628prefix
629program_transform_name
630bindir
631sbindir
632libexecdir
633datarootdir
634datadir
635sysconfdir
636sharedstatedir
637localstatedir
638includedir
639oldincludedir
640docdir
641infodir
642htmldir
643dvidir
644pdfdir
645psdir
646libdir
647localedir
648mandir
649DEFS
650ECHO_C
651ECHO_N
652ECHO_T
653LIBS
654build_alias
655host_alias
656target_alias
657LLVM_COPYRIGHT
658CC
659CFLAGS
660LDFLAGS
661CPPFLAGS
662ac_ct_CC
663EXEEXT
664OBJEXT
665CXX
666CXXFLAGS
667ac_ct_CXX
668CPP
669subdirs
670ENABLE_POLLY
671LLVM_HAS_POLLY
672build
673build_cpu
674build_vendor
675build_os
676host
677host_cpu
678host_vendor
679host_os
680target
681target_cpu
682target_vendor
683target_os
684OS
685HOST_OS
686TARGET_OS
687LINKALL
688NOLINKALL
689LLVM_ON_UNIX
690LLVM_ON_WIN32
691ARCH
692ENDIAN
693GREP
694EGREP
695LLVM_CROSS_COMPILING
696BUILD_CC
697BUILD_EXEEXT
698BUILD_CXX
699CVSBUILD
700ENABLE_OPTIMIZED
701ENABLE_PROFILING
702DISABLE_ASSERTIONS
703ENABLE_EXPENSIVE_CHECKS
704EXPENSIVE_CHECKS
705DEBUG_RUNTIME
706DEBUG_SYMBOLS
707JIT
708TARGET_HAS_JIT
709ENABLE_DOCS
710ENABLE_DOXYGEN
711ENABLE_THREADS
712ENABLE_PTHREADS
713ENABLE_PIC
714ENABLE_SHARED
715ENABLE_EMBED_STDCXX
716ENABLE_TIMESTAMPS
717TARGETS_TO_BUILD
718LLVM_ENUM_TARGETS
719LLVM_ENUM_ASM_PRINTERS
720LLVM_ENUM_ASM_PARSERS
721LLVM_ENUM_DISASSEMBLERS
722ENABLE_CBE_PRINTF_A
723OPTIMIZE_OPTION
724EXTRA_OPTIONS
725EXTRA_LD_OPTIONS
726BINUTILS_INCDIR
727NM
728ifGNUmake
729LN_S
730CMP
731CP
732DATE
733FIND
734MKDIR
735MV
736RANLIB
737AR
738RM
739SED
740TAR
741BINPWD
742GRAPHVIZ
743DOT
744FDP
745NEATO
746TWOPI
747CIRCO
748GV
749DOTTY
750XDOT_PY
751PERL
752HAVE_PERL
753INSTALL_PROGRAM
754INSTALL_SCRIPT
755INSTALL_DATA
756BZIP2
757CAT
758DOXYGEN
759GROFF
760GZIPBIN
761POD2HTML
762POD2MAN
763PDFROFF
764RUNTEST
765TCLSH
766ZIP
767OCAMLC
768OCAMLOPT
769OCAMLDEP
770OCAMLDOC
771GAS
772HAVE_LINK_VERSION_SCRIPT
773INSTALL_LTDL_TRUE
774INSTALL_LTDL_FALSE
775CONVENIENCE_LTDL_TRUE
776CONVENIENCE_LTDL_FALSE
777LIBADD_DL
778NO_VARIADIC_MACROS
779NO_MISSING_FIELD_INITIALIZERS
780USE_UDIS86
781USE_OPROFILE
782HAVE_PTHREAD
783HUGE_VAL_SANITY
784MMAP_FILE
785SHLIBEXT
786SHLIBPATH_VAR
787LLVM_PREFIX
788LLVM_BINDIR
789LLVM_LIBDIR
790LLVM_DATADIR
791LLVM_DOCSDIR
792LLVM_ETCDIR
793LLVM_INCLUDEDIR
794LLVM_INFODIR
795LLVM_MANDIR
796LLVM_CONFIGTIME
797BINDINGS_TO_BUILD
798ALL_BINDINGS
799OCAML_LIBDIR
800ENABLE_VISIBILITY_INLINES_HIDDEN
801RPATH
802RDYNAMIC
803LIBOBJS
804LTLIBOBJS'
805ac_subst_files=''
806 ac_precious_vars='build_alias
807host_alias
808target_alias
809CC
810CFLAGS
811LDFLAGS
812LIBS
813CPPFLAGS
814CXX
815CXXFLAGS
816CCC
817CPP'
818ac_subdirs_all='projects/llvm-gcc
819projects/test-suite
820projects/llvm-test
821projects/poolalloc
822projects/llvm-poolalloc
823projects/sample
824projects/privbracket
825projects/llvm-stacker
826projects/llvm-reopt
827projects/llvm-java
828projects/llvm-tv
829projects/safecode
830projects/llvm-kernel
831tools/polly'
832
833# Initialize some variables set by options.
834ac_init_help=
835ac_init_version=false
836# The variables have the same names as the options, with
837# dashes changed to underlines.
838cache_file=/dev/null
839exec_prefix=NONE
840no_create=
841no_recursion=
842prefix=NONE
843program_prefix=NONE
844program_suffix=NONE
845program_transform_name=s,x,x,
846silent=
847site=
848srcdir=
849verbose=
850x_includes=NONE
851x_libraries=NONE
852
853# Installation directory options.
854# These are left unexpanded so users can "make install exec_prefix=/foo"
855# and all the variables that are supposed to be based on exec_prefix
856# by default will actually change.
857# Use braces instead of parens because sh, perl, etc. also accept them.
858# (The list follows the same order as the GNU Coding Standards.)
859bindir='${exec_prefix}/bin'
860sbindir='${exec_prefix}/sbin'
861libexecdir='${exec_prefix}/libexec'
862datarootdir='${prefix}/share'
863datadir='${datarootdir}'
864sysconfdir='${prefix}/etc'
865sharedstatedir='${prefix}/com'
866localstatedir='${prefix}/var'
867includedir='${prefix}/include'
868oldincludedir='/usr/include'
869docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870infodir='${datarootdir}/info'
871htmldir='${docdir}'
872dvidir='${docdir}'
873pdfdir='${docdir}'
874psdir='${docdir}'
875libdir='${exec_prefix}/lib'
876localedir='${datarootdir}/locale'
877mandir='${datarootdir}/man'
878
879ac_prev=
880ac_dashdash=
881for ac_option
882do
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
886 ac_prev=
887 continue
888 fi
889
890 case $ac_option in
891 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 *) ac_optarg=yes ;;
893 esac
894
895 # Accept the important Cygnus configure options, so we can diagnose typos.
896
897 case $ac_dashdash$ac_option in
898 --)
899 ac_dashdash=yes ;;
900
901 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 ac_prev=bindir ;;
903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904 bindir=$ac_optarg ;;
905
906 -build | --build | --buil | --bui | --bu)
907 ac_prev=build_alias ;;
908 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909 build_alias=$ac_optarg ;;
910
911 -cache-file | --cache-file | --cache-fil | --cache-fi \
912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913 ac_prev=cache_file ;;
914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916 cache_file=$ac_optarg ;;
917
918 --config-cache | -C)
919 cache_file=config.cache ;;
920
921 -datadir | --datadir | --datadi | --datad)
922 ac_prev=datadir ;;
923 -datadir=* | --datadir=* | --datadi=* | --datad=*)
924 datadir=$ac_optarg ;;
925
926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927 | --dataroo | --dataro | --datar)
928 ac_prev=datarootdir ;;
929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931 datarootdir=$ac_optarg ;;
932
933 -disable-* | --disable-*)
934 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
937 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
938 { (exit 1); exit 1; }; }
939 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
940 eval enable_$ac_feature=no ;;
941
942 -docdir | --docdir | --docdi | --doc | --do)
943 ac_prev=docdir ;;
944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945 docdir=$ac_optarg ;;
946
947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 ac_prev=dvidir ;;
949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950 dvidir=$ac_optarg ;;
951
952 -enable-* | --enable-*)
953 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
956 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
957 { (exit 1); exit 1; }; }
958 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
959 eval enable_$ac_feature=\$ac_optarg ;;
960
961 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963 | --exec | --exe | --ex)
964 ac_prev=exec_prefix ;;
965 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967 | --exec=* | --exe=* | --ex=*)
968 exec_prefix=$ac_optarg ;;
969
970 -gas | --gas | --ga | --g)
971 # Obsolete; use --with-gas.
972 with_gas=yes ;;
973
974 -help | --help | --hel | --he | -h)
975 ac_init_help=long ;;
976 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977 ac_init_help=recursive ;;
978 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979 ac_init_help=short ;;
980
981 -host | --host | --hos | --ho)
982 ac_prev=host_alias ;;
983 -host=* | --host=* | --hos=* | --ho=*)
984 host_alias=$ac_optarg ;;
985
986 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 ac_prev=htmldir ;;
988 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 | --ht=*)
990 htmldir=$ac_optarg ;;
991
992 -includedir | --includedir | --includedi | --included | --include \
993 | --includ | --inclu | --incl | --inc)
994 ac_prev=includedir ;;
995 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996 | --includ=* | --inclu=* | --incl=* | --inc=*)
997 includedir=$ac_optarg ;;
998
999 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 ac_prev=infodir ;;
1001 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002 infodir=$ac_optarg ;;
1003
1004 -libdir | --libdir | --libdi | --libd)
1005 ac_prev=libdir ;;
1006 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007 libdir=$ac_optarg ;;
1008
1009 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010 | --libexe | --libex | --libe)
1011 ac_prev=libexecdir ;;
1012 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013 | --libexe=* | --libex=* | --libe=*)
1014 libexecdir=$ac_optarg ;;
1015
1016 -localedir | --localedir | --localedi | --localed | --locale)
1017 ac_prev=localedir ;;
1018 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019 localedir=$ac_optarg ;;
1020
1021 -localstatedir | --localstatedir | --localstatedi | --localstated \
1022 | --localstate | --localstat | --localsta | --localst | --locals)
1023 ac_prev=localstatedir ;;
1024 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026 localstatedir=$ac_optarg ;;
1027
1028 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 ac_prev=mandir ;;
1030 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031 mandir=$ac_optarg ;;
1032
1033 -nfp | --nfp | --nf)
1034 # Obsolete; use --without-fp.
1035 with_fp=no ;;
1036
1037 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038 | --no-cr | --no-c | -n)
1039 no_create=yes ;;
1040
1041 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043 no_recursion=yes ;;
1044
1045 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047 | --oldin | --oldi | --old | --ol | --o)
1048 ac_prev=oldincludedir ;;
1049 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052 oldincludedir=$ac_optarg ;;
1053
1054 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 ac_prev=prefix ;;
1056 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057 prefix=$ac_optarg ;;
1058
1059 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060 | --program-pre | --program-pr | --program-p)
1061 ac_prev=program_prefix ;;
1062 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064 program_prefix=$ac_optarg ;;
1065
1066 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067 | --program-suf | --program-su | --program-s)
1068 ac_prev=program_suffix ;;
1069 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071 program_suffix=$ac_optarg ;;
1072
1073 -program-transform-name | --program-transform-name \
1074 | --program-transform-nam | --program-transform-na \
1075 | --program-transform-n | --program-transform- \
1076 | --program-transform | --program-transfor \
1077 | --program-transfo | --program-transf \
1078 | --program-trans | --program-tran \
1079 | --progr-tra | --program-tr | --program-t)
1080 ac_prev=program_transform_name ;;
1081 -program-transform-name=* | --program-transform-name=* \
1082 | --program-transform-nam=* | --program-transform-na=* \
1083 | --program-transform-n=* | --program-transform-=* \
1084 | --program-transform=* | --program-transfor=* \
1085 | --program-transfo=* | --program-transf=* \
1086 | --program-trans=* | --program-tran=* \
1087 | --progr-tra=* | --program-tr=* | --program-t=*)
1088 program_transform_name=$ac_optarg ;;
1089
1090 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 ac_prev=pdfdir ;;
1092 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093 pdfdir=$ac_optarg ;;
1094
1095 -psdir | --psdir | --psdi | --psd | --ps)
1096 ac_prev=psdir ;;
1097 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098 psdir=$ac_optarg ;;
1099
1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101 | -silent | --silent | --silen | --sile | --sil)
1102 silent=yes ;;
1103
1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 ac_prev=sbindir ;;
1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 | --sbi=* | --sb=*)
1108 sbindir=$ac_optarg ;;
1109
1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 | --sharedst | --shareds | --shared | --share | --shar \
1113 | --sha | --sh)
1114 ac_prev=sharedstatedir ;;
1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 | --sha=* | --sh=*)
1119 sharedstatedir=$ac_optarg ;;
1120
1121 -site | --site | --sit)
1122 ac_prev=site ;;
1123 -site=* | --site=* | --sit=*)
1124 site=$ac_optarg ;;
1125
1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 ac_prev=srcdir ;;
1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129 srcdir=$ac_optarg ;;
1130
1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 | --syscon | --sysco | --sysc | --sys | --sy)
1133 ac_prev=sysconfdir ;;
1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136 sysconfdir=$ac_optarg ;;
1137
1138 -target | --target | --targe | --targ | --tar | --ta | --t)
1139 ac_prev=target_alias ;;
1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141 target_alias=$ac_optarg ;;
1142
1143 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 verbose=yes ;;
1145
1146 -version | --version | --versio | --versi | --vers | -V)
1147 ac_init_version=: ;;
1148
1149 -with-* | --with-*)
1150 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153 { echo "$as_me: error: invalid package name: $ac_package" >&2
1154 { (exit 1); exit 1; }; }
1155 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1156 eval with_$ac_package=\$ac_optarg ;;
1157
1158 -without-* | --without-*)
1159 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162 { echo "$as_me: error: invalid package name: $ac_package" >&2
1163 { (exit 1); exit 1; }; }
1164 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1165 eval with_$ac_package=no ;;
1166
1167 --x)
1168 # Obsolete; use --with-x.
1169 with_x=yes ;;
1170
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes=$ac_optarg ;;
1177
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries=$ac_optarg ;;
1184
1185 -*) { echo "$as_me: error: unrecognized option: $ac_option
1186Try \`$0 --help' for more information." >&2
1187 { (exit 1); exit 1; }; }
1188 ;;
1189
1190 *=*)
1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1194 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1195 { (exit 1); exit 1; }; }
1196 eval $ac_envvar=\$ac_optarg
1197 export $ac_envvar ;;
1198
1199 *)
1200 # FIXME: should be removed in autoconf 3.0.
1201 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1205 ;;
1206
1207 esac
1208done
1209
1210if test -n "$ac_prev"; then
1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212 { echo "$as_me: error: missing argument to $ac_option" >&2
1213 { (exit 1); exit 1; }; }
1214fi
1215
1216# Be sure to have absolute directory names.
1217for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218 datadir sysconfdir sharedstatedir localstatedir includedir \
1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220 libdir localedir mandir
1221do
1222 eval ac_val=\$$ac_var
1223 case $ac_val in
1224 [\\/$]* | ?:[\\/]* ) continue;;
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226 esac
1227 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1228 { (exit 1); exit 1; }; }
1229done
1230
1231# There might be people who depend on the old broken behavior: `$host'
1232# used to hold the argument of --host etc.
1233# FIXME: To remove some day.
1234build=$build_alias
1235host=$host_alias
1236target=$target_alias
1237
1238# FIXME: To remove some day.
1239if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
1242 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1243 If a cross compiler is detected then cross compile mode will be used." >&2
1244 elif test "x$build_alias" != "x$host_alias"; then
1245 cross_compiling=yes
1246 fi
1247fi
1248
1249ac_tool_prefix=
1250test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251
1252test "$silent" = yes && exec 6>/dev/null
1253
1254
1255ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256ac_ls_di=`ls -di .` &&
1257ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258 { echo "$as_me: error: Working directory cannot be determined" >&2
1259 { (exit 1); exit 1; }; }
1260test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 { echo "$as_me: error: pwd does not report name of working directory" >&2
1262 { (exit 1); exit 1; }; }
1263
1264
1265# Find the source files, if location was not specified.
1266if test -z "$srcdir"; then
1267 ac_srcdir_defaulted=yes
1268 # Try the directory containing this script, then the parent directory.
1269 ac_confdir=`$as_dirname -- "$0" ||
1270$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271 X"$0" : 'X\(//\)[^/]' \| \
1272 X"$0" : 'X\(//\)$' \| \
1273 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1274echo X"$0" |
1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)[^/].*/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\/\)$/{
1284 s//\1/
1285 q
1286 }
1287 /^X\(\/\).*/{
1288 s//\1/
1289 q
1290 }
1291 s/.*/./; q'`
1292 srcdir=$ac_confdir
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 srcdir=..
1295 fi
1296else
1297 ac_srcdir_defaulted=no
1298fi
1299if test ! -r "$srcdir/$ac_unique_file"; then
1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1302 { (exit 1); exit 1; }; }
1303fi
1304ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305ac_abs_confdir=`(
1306 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1307 { (exit 1); exit 1; }; }
1308 pwd)`
1309# When building in place, set srcdir=.
1310if test "$ac_abs_confdir" = "$ac_pwd"; then
1311 srcdir=.
1312fi
1313# Remove unnecessary trailing slashes from srcdir.
1314# Double slashes in file names in object file debugging info
1315# mess up M-x gdb in Emacs.
1316case $srcdir in
1317*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318esac
1319for ac_var in $ac_precious_vars; do
1320 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_env_${ac_var}_value=\$${ac_var}
1322 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324done
1325
1326#
1327# Report the --help message.
1328#
1329if test "$ac_init_help" = "long"; then
1330 # Omit some internal or obsolete options to make the list less imposing.
1331 # This message is too long to be a string in the A/UX 3.1 sh.
1332 cat <<_ACEOF
1333\`configure' configures llvm 3.0 to adapt to many kinds of systems.
1334
1335Usage: $0 [OPTION]... [VAR=VALUE]...
1336
1337To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338VAR=VALUE. See below for descriptions of some of the useful variables.
1339
1340Defaults for the options are specified in brackets.
1341
1342Configuration:
1343 -h, --help display this help and exit
1344 --help=short display options specific to this package
1345 --help=recursive display the short help of all the included packages
1346 -V, --version display version information and exit
1347 -q, --quiet, --silent do not print \`checking...' messages
1348 --cache-file=FILE cache test results in FILE [disabled]
1349 -C, --config-cache alias for \`--cache-file=config.cache'
1350 -n, --no-create do not create output files
1351 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352
1353Installation directories:
1354 --prefix=PREFIX install architecture-independent files in PREFIX
1355 [$ac_default_prefix]
1356 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1357 [PREFIX]
1358
1359By default, \`make install' will install all the files in
1360\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1361an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362for instance \`--prefix=\$HOME'.
1363
1364For better control, use the options below.
1365
1366Fine tuning of the installation directories:
1367 --bindir=DIR user executables [EPREFIX/bin]
1368 --sbindir=DIR system admin executables [EPREFIX/sbin]
1369 --libexecdir=DIR program executables [EPREFIX/libexec]
1370 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1371 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1372 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1373 --libdir=DIR object code libraries [EPREFIX/lib]
1374 --includedir=DIR C header files [PREFIX/include]
1375 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1378 --infodir=DIR info documentation [DATAROOTDIR/info]
1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1380 --mandir=DIR man documentation [DATAROOTDIR/man]
1381 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1382 --htmldir=DIR html documentation [DOCDIR]
1383 --dvidir=DIR dvi documentation [DOCDIR]
1384 --pdfdir=DIR pdf documentation [DOCDIR]
1385 --psdir=DIR ps documentation [DOCDIR]
1386_ACEOF
1387
1388 cat <<\_ACEOF
1389
1390System types:
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 --target=TARGET configure for building compilers for TARGET [HOST]
1394_ACEOF
1395fi
1396
1397if test -n "$ac_init_help"; then
1398 case $ac_init_help in
1399 short | recursive ) echo "Configuration of llvm 3.0:";;
1400 esac
1401 cat <<\_ACEOF
1402
1403Optional Features:
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --enable-polly Use polly if available (default is YES)
1407 --enable-optimized Compile with optimizations enabled (default is YES)
1408 --enable-profiling Compile with profiling enabled (default is NO)
1409 --enable-assertions Compile with assertion checks enabled (default is
1410 NO)
1411 --enable-expensive-checks
1412 Compile with expensive debug checks enabled (default
1413 is NO)
1414 --enable-debug-runtime Build runtime libs with debug symbols (default is
1415 NO)
1416 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1417 optimization is on and YES if it's off)
1418 --enable-jit Enable Just In Time Compiling (default is YES)
1419 --enable-docs Build documents (default is YES)
1420 --enable-doxygen Build doxygen documentation (default is NO)
1421 --enable-threads Use threads if available (default is YES)
1422 --enable-pthreads Use pthreads if available (default is YES)
1423 --enable-pic Build LLVM with Position Independent Code (default
1424 is YES)
1425 --enable-shared Build a shared library and link tools against it
1426 (default is NO)
1427 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1428 Win32 DLL (default is NO)
1429 --enable-timestamps Enable embedding timestamp information in build
1430 (default is YES)
1431 --enable-targets Build specific host targets: all or
1432 target1,target2,... Valid targets are: host, x86,
1433 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1434 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1435 (default=all)
1436 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1437 %a (default is YES)
1438 --enable-bindings Build specific language bindings:
1439 all,auto,none,{binding-name} (default=auto)
1440 --enable-libffi Check for the presence of libffi (default is NO)
1441 --enable-ltdl-install install libltdl
1442
1443Optional Packages:
1444 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1445 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1446 --with-optimize-option Select the compiler options to use for optimized
1447 builds
1448 --with-extra-options Specify additional options to compile LLVM with
1449 --with-extra-ld-options Specify additional options to link LLVM with
1450 --with-ocaml-libdir Specify install location for ocaml bindings (default
1451 is stdlib)
1452 --with-clang-resource-dir
1453 Relative directory from the Clang binary for
1454 resource files
1455 --with-c-include-dirs Colon separated list of directories clang will
1456 search for headers
1457 --with-cxx-include-root Directory with the libstdc++ headers.
1458 --with-cxx-include-arch Architecture of the libstdc++ headers.
1459 --with-cxx-include-32bit-dir
1460 32 bit multilib dir.
1461 --with-cxx-include-64bit-dir
1462 64 bit multilib directory.
1463 --with-binutils-include Specify path to binutils/include/ containing
1464 plugin-api.h file for gold plugin.
1465 --with-bug-report-url Specify the URL where bug reports should be
1466 submitted (default=http://llvm.org/bugs/)
1467 --with-tclinclude directory where tcl headers are
1468 --with-udis86=<path> Use udis86 external x86 disassembler library
1469 --with-oprofile=<prefix>
1470 Tell OProfile >= 0.9.4 how to symbolize JIT output
1471
1472Some influential environment variables:
1473 CC C compiler command
1474 CFLAGS C compiler flags
1475 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1476 nonstandard directory <lib dir>
1477 LIBS libraries to pass to the linker, e.g. -l<library>
1478 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1479 you have headers in a nonstandard directory <include dir>
1480 CXX C++ compiler command
1481 CXXFLAGS C++ compiler flags
1482 CPP C preprocessor
1483
1484Use these variables to override the choices made by `configure' or to help
1485it to find libraries and programs with nonstandard names/locations.
1486
1487Report bugs to <llvmbugs@cs.uiuc.edu>.
1488_ACEOF
1489ac_status=$?
1490fi
1491
1492if test "$ac_init_help" = "recursive"; then
1493 # If there are subdirs, report their specific --help.
1494 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495 test -d "$ac_dir" || continue
1496 ac_builddir=.
1497
1498case "$ac_dir" in
1499.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500*)
1501 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1502 # A ".." for each directory in $ac_dir_suffix.
1503 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1504 case $ac_top_builddir_sub in
1505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507 esac ;;
1508esac
1509ac_abs_top_builddir=$ac_pwd
1510ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511# for backward compatibility:
1512ac_top_builddir=$ac_top_build_prefix
1513
1514case $srcdir in
1515 .) # We are building in place.
1516 ac_srcdir=.
1517 ac_top_srcdir=$ac_top_builddir_sub
1518 ac_abs_top_srcdir=$ac_pwd ;;
1519 [\\/]* | ?:[\\/]* ) # Absolute name.
1520 ac_srcdir=$srcdir$ac_dir_suffix;
1521 ac_top_srcdir=$srcdir
1522 ac_abs_top_srcdir=$srcdir ;;
1523 *) # Relative name.
1524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525 ac_top_srcdir=$ac_top_build_prefix$srcdir
1526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1527esac
1528ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1529
1530 cd "$ac_dir" || { ac_status=$?; continue; }
1531 # Check for guested configure.
1532 if test -f "$ac_srcdir/configure.gnu"; then
1533 echo &&
1534 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535 elif test -f "$ac_srcdir/configure"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure" --help=recursive
1538 else
1539 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1540 fi || ac_status=$?
1541 cd "$ac_pwd" || { ac_status=$?; break; }
1542 done
1543fi
1544
1545test -n "$ac_init_help" && exit $ac_status
1546if $ac_init_version; then
1547 cat <<\_ACEOF
1548llvm configure 3.0
1549generated by GNU Autoconf 2.61
1550
1551Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15522002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1553This configure script is free software; the Free Software Foundation
1554gives unlimited permission to copy, distribute and modify it.
1555
1556Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1557_ACEOF
1558 exit
1559fi
1560cat >config.log <<_ACEOF
1561This file contains any messages produced by compilers while
1562running configure, to aid debugging if configure makes a mistake.
1563
1564It was created by llvm $as_me 3.0, which was
1565generated by GNU Autoconf 2.61. Invocation command line was
1566
1567 $ $0 $@
1568
1569_ACEOF
1570exec 5>>config.log
1571{
1572cat <<_ASUNAME
1573## --------- ##
1574## Platform. ##
1575## --------- ##
1576
1577hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1578uname -m = `(uname -m) 2>/dev/null || echo unknown`
1579uname -r = `(uname -r) 2>/dev/null || echo unknown`
1580uname -s = `(uname -s) 2>/dev/null || echo unknown`
1581uname -v = `(uname -v) 2>/dev/null || echo unknown`
1582
1583/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1584/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1585
1586/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1587/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1588/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1589/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1590/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1591/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1592/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1593
1594_ASUNAME
1595
1596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1597for as_dir in $PATH
1598do
1599 IFS=$as_save_IFS
1600 test -z "$as_dir" && as_dir=.
1601 echo "PATH: $as_dir"
1602done
1603IFS=$as_save_IFS
1604
1605} >&5
1606
1607cat >&5 <<_ACEOF
1608
1609
1610## ----------- ##
1611## Core tests. ##
1612## ----------- ##
1613
1614_ACEOF
1615
1616
1617# Keep a trace of the command line.
1618# Strip out --no-create and --no-recursion so they do not pile up.
1619# Strip out --silent because we don't want to record it for future runs.
1620# Also quote any args containing shell meta-characters.
1621# Make two passes to allow for proper duplicate-argument suppression.
1622ac_configure_args=
1623ac_configure_args0=
1624ac_configure_args1=
1625ac_must_keep_next=false
1626for ac_pass in 1 2
1627do
1628 for ac_arg
1629 do
1630 case $ac_arg in
1631 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1632 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1633 | -silent | --silent | --silen | --sile | --sil)
1634 continue ;;
1635 *\'*)
1636 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1637 esac
1638 case $ac_pass in
1639 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1640 2)
1641 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1642 if test $ac_must_keep_next = true; then
1643 ac_must_keep_next=false # Got value, back to normal.
1644 else
1645 case $ac_arg in
1646 *=* | --config-cache | -C | -disable-* | --disable-* \
1647 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1648 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1649 | -with-* | --with-* | -without-* | --without-* | --x)
1650 case "$ac_configure_args0 " in
1651 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1652 esac
1653 ;;
1654 -* ) ac_must_keep_next=true ;;
1655 esac
1656 fi
1657 ac_configure_args="$ac_configure_args '$ac_arg'"
1658 ;;
1659 esac
1660 done
1661done
1662$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1663$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1664
1665# When interrupted or exit'd, cleanup temporary files, and complete
1666# config.log. We remove comments because anyway the quotes in there
1667# would cause problems or look ugly.
1668# WARNING: Use '\'' to represent an apostrophe within the trap.
1669# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1670trap 'exit_status=$?
1671 # Save into config.log some information that might help in debugging.
1672 {
1673 echo
1674
1675 cat <<\_ASBOX
1676## ---------------- ##
1677## Cache variables. ##
1678## ---------------- ##
1679_ASBOX
1680 echo
1681 # The following way of writing the cache mishandles newlines in values,
1682(
1683 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1684 eval ac_val=\$$ac_var
1685 case $ac_val in #(
1686 *${as_nl}*)
1687 case $ac_var in #(
1688 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1689echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1690 esac
1691 case $ac_var in #(
1692 _ | IFS | as_nl) ;; #(
1693 *) $as_unset $ac_var ;;
1694 esac ;;
1695 esac
1696 done
1697 (set) 2>&1 |
1698 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1699 *${as_nl}ac_space=\ *)
1700 sed -n \
1701 "s/'\''/'\''\\\\'\'''\''/g;
1702 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1703 ;; #(
1704 *)
1705 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1706 ;;
1707 esac |
1708 sort
1709)
1710 echo
1711
1712 cat <<\_ASBOX
1713## ----------------- ##
1714## Output variables. ##
1715## ----------------- ##
1716_ASBOX
1717 echo
1718 for ac_var in $ac_subst_vars
1719 do
1720 eval ac_val=\$$ac_var
1721 case $ac_val in
1722 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1723 esac
1724 echo "$ac_var='\''$ac_val'\''"
1725 done | sort
1726 echo
1727
1728 if test -n "$ac_subst_files"; then
1729 cat <<\_ASBOX
1730## ------------------- ##
1731## File substitutions. ##
1732## ------------------- ##
1733_ASBOX
1734 echo
1735 for ac_var in $ac_subst_files
1736 do
1737 eval ac_val=\$$ac_var
1738 case $ac_val in
1739 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1740 esac
1741 echo "$ac_var='\''$ac_val'\''"
1742 done | sort
1743 echo
1744 fi
1745
1746 if test -s confdefs.h; then
1747 cat <<\_ASBOX
1748## ----------- ##
1749## confdefs.h. ##
1750## ----------- ##
1751_ASBOX
1752 echo
1753 cat confdefs.h
1754 echo
1755 fi
1756 test "$ac_signal" != 0 &&
1757 echo "$as_me: caught signal $ac_signal"
1758 echo "$as_me: exit $exit_status"
1759 } >&5
1760 rm -f core *.core core.conftest.* &&
1761 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1762 exit $exit_status
1763' 0
1764for ac_signal in 1 2 13 15; do
1765 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1766done
1767ac_signal=0
1768
1769# confdefs.h avoids OS command line length limits that DEFS can exceed.
1770rm -f -r conftest* confdefs.h
1771
1772# Predefined preprocessor variables.
1773
1774cat >>confdefs.h <<_ACEOF
1775#define PACKAGE_NAME "$PACKAGE_NAME"
1776_ACEOF
1777
1778
1779cat >>confdefs.h <<_ACEOF
1780#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1781_ACEOF
1782
1783
1784cat >>confdefs.h <<_ACEOF
1785#define PACKAGE_VERSION "$PACKAGE_VERSION"
1786_ACEOF
1787
1788
1789cat >>confdefs.h <<_ACEOF
1790#define PACKAGE_STRING "$PACKAGE_STRING"
1791_ACEOF
1792
1793
1794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1796_ACEOF
1797
1798
1799# Let the site file select an alternate cache file if it wants to.
1800# Prefer explicitly selected file to automatically selected ones.
1801if test -n "$CONFIG_SITE"; then
1802 set x "$CONFIG_SITE"
1803elif test "x$prefix" != xNONE; then
1804 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1805else
1806 set x "$ac_default_prefix/share/config.site" \
1807 "$ac_default_prefix/etc/config.site"
1808fi
1809shift
1810for ac_site_file
1811do
1812 if test -r "$ac_site_file"; then
1813 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1814echo "$as_me: loading site script $ac_site_file" >&6;}
1815 sed 's/^/| /' "$ac_site_file" >&5
1816 . "$ac_site_file"
1817 fi
1818done
1819
1820if test -r "$cache_file"; then
1821 # Some versions of bash will fail to source /dev/null (special
1822 # files actually), so we avoid doing that.
1823 if test -f "$cache_file"; then
1824 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1825echo "$as_me: loading cache $cache_file" >&6;}
1826 case $cache_file in
1827 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1828 *) . "./$cache_file";;
1829 esac
1830 fi
1831else
1832 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1833echo "$as_me: creating cache $cache_file" >&6;}
1834 >$cache_file
1835fi
1836
1837# Check that the precious variables saved in the cache have kept the same
1838# value.
1839ac_cache_corrupted=false
1840for ac_var in $ac_precious_vars; do
1841 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1842 eval ac_new_set=\$ac_env_${ac_var}_set
1843 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1844 eval ac_new_val=\$ac_env_${ac_var}_value
1845 case $ac_old_set,$ac_new_set in
1846 set,)
1847 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1848echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1849 ac_cache_corrupted=: ;;
1850 ,set)
1851 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1852echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1853 ac_cache_corrupted=: ;;
1854 ,);;
1855 *)
1856 if test "x$ac_old_val" != "x$ac_new_val"; then
1857 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1858echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1859 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1860echo "$as_me: former value: $ac_old_val" >&2;}
1861 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1862echo "$as_me: current value: $ac_new_val" >&2;}
1863 ac_cache_corrupted=:
1864 fi;;
1865 esac
1866 # Pass precious variables to config.status.
1867 if test "$ac_new_set" = set; then
1868 case $ac_new_val in
1869 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1870 *) ac_arg=$ac_var=$ac_new_val ;;
1871 esac
1872 case " $ac_configure_args " in
1873 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1874 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1875 esac
1876 fi
1877done
1878if $ac_cache_corrupted; then
1879 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1880echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1881 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1882echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1883 { (exit 1); exit 1; }; }
1884fi
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910ac_ext=c
1911ac_cpp='$CPP $CPPFLAGS'
1912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1914ac_compiler_gnu=$ac_cv_c_compiler_gnu
1915
1916
1917
1918LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1919
1920
1921
1922
1923
1924
1925
1926ac_aux_dir=
1927for ac_dir in autoconf "$srcdir"/autoconf; do
1928 if test -f "$ac_dir/install-sh"; then
1929 ac_aux_dir=$ac_dir
1930 ac_install_sh="$ac_aux_dir/install-sh -c"
1931 break
1932 elif test -f "$ac_dir/install.sh"; then
1933 ac_aux_dir=$ac_dir
1934 ac_install_sh="$ac_aux_dir/install.sh -c"
1935 break
1936 elif test -f "$ac_dir/shtool"; then
1937 ac_aux_dir=$ac_dir
1938 ac_install_sh="$ac_aux_dir/shtool install -c"
1939 break
1940 fi
1941done
1942if test -z "$ac_aux_dir"; then
1943 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1944echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1945 { (exit 1); exit 1; }; }
1946fi
1947
1948# These three variables are undocumented and unsupported,
1949# and are intended to be withdrawn in a future Autoconf release.
1950# They can cause serious problems if a builder's source tree is in a directory
1951# whose full name contains unusual characters.
1952ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1953ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1954ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1955
1956
1957
1958if test ${srcdir} != "." ; then
1959 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1960 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1961echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1962 { (exit 1); exit 1; }; }
1963 fi
1964fi
1965
1966ac_ext=c
1967ac_cpp='$CPP $CPPFLAGS'
1968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1970ac_compiler_gnu=$ac_cv_c_compiler_gnu
1971if test -n "$ac_tool_prefix"; then
1972 for ac_prog in clang llvm-gcc gcc
1973 do
1974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1975set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1976{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1978if test "${ac_cv_prog_CC+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1980else
1981 if test -n "$CC"; then
1982 ac_cv_prog_CC="$CC" # Let the user override the test.
1983else
1984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985for as_dir in $PATH
1986do
1987 IFS=$as_save_IFS
1988 test -z "$as_dir" && as_dir=.
1989 for ac_exec_ext in '' $ac_executable_extensions; do
1990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1991 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993 break 2
1994 fi
1995done
1996done
1997IFS=$as_save_IFS
1998
1999fi
2000fi
2001CC=$ac_cv_prog_CC
2002if test -n "$CC"; then
2003 { echo "$as_me:$LINENO: result: $CC" >&5
2004echo "${ECHO_T}$CC" >&6; }
2005else
2006 { echo "$as_me:$LINENO: result: no" >&5
2007echo "${ECHO_T}no" >&6; }
2008fi
2009
2010
2011 test -n "$CC" && break
2012 done
2013fi
2014if test -z "$CC"; then
2015 ac_ct_CC=$CC
2016 for ac_prog in clang llvm-gcc gcc
2017do
2018 # Extract the first word of "$ac_prog", so it can be a program name with args.
2019set dummy $ac_prog; ac_word=$2
2020{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2022if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2024else
2025 if test -n "$ac_ct_CC"; then
2026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2027else
2028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029for as_dir in $PATH
2030do
2031 IFS=$as_save_IFS
2032 test -z "$as_dir" && as_dir=.
2033 for ac_exec_ext in '' $ac_executable_extensions; do
2034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2035 ac_cv_prog_ac_ct_CC="$ac_prog"
2036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037 break 2
2038 fi
2039done
2040done
2041IFS=$as_save_IFS
2042
2043fi
2044fi
2045ac_ct_CC=$ac_cv_prog_ac_ct_CC
2046if test -n "$ac_ct_CC"; then
2047 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2048echo "${ECHO_T}$ac_ct_CC" >&6; }
2049else
2050 { echo "$as_me:$LINENO: result: no" >&5
2051echo "${ECHO_T}no" >&6; }
2052fi
2053
2054
2055 test -n "$ac_ct_CC" && break
2056done
2057
2058 if test "x$ac_ct_CC" = x; then
2059 CC=""
2060 else
2061 case $cross_compiling:$ac_tool_warned in
2062yes:)
2063{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2064whose name does not start with the host triplet. If you think this
2065configuration is useful to you, please write to autoconf@gnu.org." >&5
2066echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2067whose name does not start with the host triplet. If you think this
2068configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2069ac_tool_warned=yes ;;
2070esac
2071 CC=$ac_ct_CC
2072 fi
2073fi
2074
2075
2076test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2077See \`config.log' for more details." >&5
2078echo "$as_me: error: no acceptable C compiler found in \$PATH
2079See \`config.log' for more details." >&2;}
2080 { (exit 1); exit 1; }; }
2081
2082# Provide some information about the compiler.
2083echo "$as_me:$LINENO: checking for C compiler version" >&5
2084ac_compiler=`set X $ac_compile; echo $2`
2085{ (ac_try="$ac_compiler --version >&5"
2086case "(($ac_try" in
2087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088 *) ac_try_echo=$ac_try;;
2089esac
2090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2091 (eval "$ac_compiler --version >&5") 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }
2095{ (ac_try="$ac_compiler -v >&5"
2096case "(($ac_try" in
2097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098 *) ac_try_echo=$ac_try;;
2099esac
2100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2101 (eval "$ac_compiler -v >&5") 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }
2105{ (ac_try="$ac_compiler -V >&5"
2106case "(($ac_try" in
2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108 *) ac_try_echo=$ac_try;;
2109esac
2110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2111 (eval "$ac_compiler -V >&5") 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }
2115
2116cat >conftest.$ac_ext <<_ACEOF
2117/* confdefs.h. */
2118_ACEOF
2119cat confdefs.h >>conftest.$ac_ext
2120cat >>conftest.$ac_ext <<_ACEOF
2121/* end confdefs.h. */
2122
2123int
2124main ()
2125{
2126
2127 ;
2128 return 0;
2129}
2130_ACEOF
2131ac_clean_files_save=$ac_clean_files
2132ac_clean_files="$ac_clean_files a.out a.exe b.out"
2133# Try to create an executable without -o first, disregard a.out.
2134# It will help us diagnose broken compilers, and finding out an intuition
2135# of exeext.
2136{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2137echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2138ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2139#
2140# List of possible output files, starting from the most likely.
2141# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2142# only as a last resort. b.out is created by i960 compilers.
2143ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2144#
2145# The IRIX 6 linker writes into existing files which may not be
2146# executable, retaining their permissions. Remove them first so a
2147# subsequent execution test works.
2148ac_rmfiles=
2149for ac_file in $ac_files
2150do
2151 case $ac_file in
2152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2153 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2154 esac
2155done
2156rm -f $ac_rmfiles
2157
2158if { (ac_try="$ac_link_default"
2159case "(($ac_try" in
2160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2161 *) ac_try_echo=$ac_try;;
2162esac
2163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2164 (eval "$ac_link_default") 2>&5
2165 ac_status=$?
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; then
2168 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2169# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2170# in a Makefile. We should not override ac_cv_exeext if it was cached,
2171# so that the user can short-circuit this test for compilers unknown to
2172# Autoconf.
2173for ac_file in $ac_files ''
2174do
2175 test -f "$ac_file" || continue
2176 case $ac_file in
2177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2178 ;;
2179 [ab].out )
2180 # We found the default executable, but exeext='' is most
2181 # certainly right.
2182 break;;
2183 *.* )
2184 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2185 then :; else
2186 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2187 fi
2188 # We set ac_cv_exeext here because the later test for it is not
2189 # safe: cross compilers may not add the suffix if given an `-o'
2190 # argument, so we may need to know it at that point already.
2191 # Even if this section looks crufty: it has the advantage of
2192 # actually working.
2193 break;;
2194 * )
2195 break;;
2196 esac
2197done
2198test "$ac_cv_exeext" = no && ac_cv_exeext=
2199
2200else
2201 ac_file=''
2202fi
2203
2204{ echo "$as_me:$LINENO: result: $ac_file" >&5
2205echo "${ECHO_T}$ac_file" >&6; }
2206if test -z "$ac_file"; then
2207 echo "$as_me: failed program was:" >&5
2208sed 's/^/| /' conftest.$ac_ext >&5
2209
2210{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2211See \`config.log' for more details." >&5
2212echo "$as_me: error: C compiler cannot create executables
2213See \`config.log' for more details." >&2;}
2214 { (exit 77); exit 77; }; }
2215fi
2216
2217ac_exeext=$ac_cv_exeext
2218
2219# Check that the compiler produces executables we can run. If not, either
2220# the compiler is broken, or we cross compile.
2221{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2222echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2223# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2224# If not cross compiling, check that we can run a simple program.
2225if test "$cross_compiling" != yes; then
2226 if { ac_try='./$ac_file'
2227 { (case "(($ac_try" in
2228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229 *) ac_try_echo=$ac_try;;
2230esac
2231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2232 (eval "$ac_try") 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2236 cross_compiling=no
2237 else
2238 if test "$cross_compiling" = maybe; then
2239 cross_compiling=yes
2240 else
2241 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2242If you meant to cross compile, use \`--host'.
2243See \`config.log' for more details." >&5
2244echo "$as_me: error: cannot run C compiled programs.
2245If you meant to cross compile, use \`--host'.
2246See \`config.log' for more details." >&2;}
2247 { (exit 1); exit 1; }; }
2248 fi
2249 fi
2250fi
2251{ echo "$as_me:$LINENO: result: yes" >&5
2252echo "${ECHO_T}yes" >&6; }
2253
2254rm -f a.out a.exe conftest$ac_cv_exeext b.out
2255ac_clean_files=$ac_clean_files_save
2256# Check that the compiler produces executables we can run. If not, either
2257# the compiler is broken, or we cross compile.
2258{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2259echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2260{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2261echo "${ECHO_T}$cross_compiling" >&6; }
2262
2263{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2264echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2265if { (ac_try="$ac_link"
2266case "(($ac_try" in
2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2269esac
2270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2271 (eval "$ac_link") 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; then
2275 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2276# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2277# work properly (i.e., refer to `conftest.exe'), while it won't with
2278# `rm'.
2279for ac_file in conftest.exe conftest conftest.*; do
2280 test -f "$ac_file" || continue
2281 case $ac_file in
2282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2283 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2284 break;;
2285 * ) break;;
2286 esac
2287done
2288else
2289 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2290See \`config.log' for more details." >&5
2291echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2292See \`config.log' for more details." >&2;}
2293 { (exit 1); exit 1; }; }
2294fi
2295
2296rm -f conftest$ac_cv_exeext
2297{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2298echo "${ECHO_T}$ac_cv_exeext" >&6; }
2299
2300rm -f conftest.$ac_ext
2301EXEEXT=$ac_cv_exeext
2302ac_exeext=$EXEEXT
2303{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2304echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2305if test "${ac_cv_objext+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2307else
2308 cat >conftest.$ac_ext <<_ACEOF
2309/* confdefs.h. */
2310_ACEOF
2311cat confdefs.h >>conftest.$ac_ext
2312cat >>conftest.$ac_ext <<_ACEOF
2313/* end confdefs.h. */
2314
2315int
2316main ()
2317{
2318
2319 ;
2320 return 0;
2321}
2322_ACEOF
2323rm -f conftest.o conftest.obj
2324if { (ac_try="$ac_compile"
2325case "(($ac_try" in
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2328esac
2329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2330 (eval "$ac_compile") 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; then
2334 for ac_file in conftest.o conftest.obj conftest.*; do
2335 test -f "$ac_file" || continue;
2336 case $ac_file in
2337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2338 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2339 break;;
2340 esac
2341done
2342else
2343 echo "$as_me: failed program was:" >&5
2344sed 's/^/| /' conftest.$ac_ext >&5
2345
2346{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2347See \`config.log' for more details." >&5
2348echo "$as_me: error: cannot compute suffix of object files: cannot compile
2349See \`config.log' for more details." >&2;}
2350 { (exit 1); exit 1; }; }
2351fi
2352
2353rm -f conftest.$ac_cv_objext conftest.$ac_ext
2354fi
2355{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2356echo "${ECHO_T}$ac_cv_objext" >&6; }
2357OBJEXT=$ac_cv_objext
2358ac_objext=$OBJEXT
2359{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2360echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2361if test "${ac_cv_c_compiler_gnu+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2363else
2364 cat >conftest.$ac_ext <<_ACEOF
2365/* confdefs.h. */
2366_ACEOF
2367cat confdefs.h >>conftest.$ac_ext
2368cat >>conftest.$ac_ext <<_ACEOF
2369/* end confdefs.h. */
2370
2371int
2372main ()
2373{
2374#ifndef __GNUC__
2375 choke me
2376#endif
2377
2378 ;
2379 return 0;
2380}
2381_ACEOF
2382rm -f conftest.$ac_objext
2383if { (ac_try="$ac_compile"
2384case "(($ac_try" in
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2387esac
2388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389 (eval "$ac_compile") 2>conftest.er1
2390 ac_status=$?
2391 grep -v '^ *+' conftest.er1 >conftest.err
2392 rm -f conftest.er1
2393 cat conftest.err >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } && {
2396 test -z "$ac_c_werror_flag" ||
2397 test ! -s conftest.err
2398 } && test -s conftest.$ac_objext; then
2399 ac_compiler_gnu=yes
2400else
2401 echo "$as_me: failed program was:" >&5
2402sed 's/^/| /' conftest.$ac_ext >&5
2403
2404 ac_compiler_gnu=no
2405fi
2406
2407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2408ac_cv_c_compiler_gnu=$ac_compiler_gnu
2409
2410fi
2411{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2412echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2413GCC=`test $ac_compiler_gnu = yes && echo yes`
2414ac_test_CFLAGS=${CFLAGS+set}
2415ac_save_CFLAGS=$CFLAGS
2416{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2417echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2418if test "${ac_cv_prog_cc_g+set}" = set; then
2419 echo $ECHO_N "(cached) $ECHO_C" >&6
2420else
2421 ac_save_c_werror_flag=$ac_c_werror_flag
2422 ac_c_werror_flag=yes
2423 ac_cv_prog_cc_g=no
2424 CFLAGS="-g"
2425 cat >conftest.$ac_ext <<_ACEOF
2426/* confdefs.h. */
2427_ACEOF
2428cat confdefs.h >>conftest.$ac_ext
2429cat >>conftest.$ac_ext <<_ACEOF
2430/* end confdefs.h. */
2431
2432int
2433main ()
2434{
2435
2436 ;
2437 return 0;
2438}
2439_ACEOF
2440rm -f conftest.$ac_objext
2441if { (ac_try="$ac_compile"
2442case "(($ac_try" in
2443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444 *) ac_try_echo=$ac_try;;
2445esac
2446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447 (eval "$ac_compile") 2>conftest.er1
2448 ac_status=$?
2449 grep -v '^ *+' conftest.er1 >conftest.err
2450 rm -f conftest.er1
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } && {
2454 test -z "$ac_c_werror_flag" ||
2455 test ! -s conftest.err
2456 } && test -s conftest.$ac_objext; then
2457 ac_cv_prog_cc_g=yes
2458else
2459 echo "$as_me: failed program was:" >&5
2460sed 's/^/| /' conftest.$ac_ext >&5
2461
2462 CFLAGS=""
2463 cat >conftest.$ac_ext <<_ACEOF
2464/* confdefs.h. */
2465_ACEOF
2466cat confdefs.h >>conftest.$ac_ext
2467cat >>conftest.$ac_ext <<_ACEOF
2468/* end confdefs.h. */
2469
2470int
2471main ()
2472{
2473
2474 ;
2475 return 0;
2476}
2477_ACEOF
2478rm -f conftest.$ac_objext
2479if { (ac_try="$ac_compile"
2480case "(($ac_try" in
2481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482 *) ac_try_echo=$ac_try;;
2483esac
2484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2485 (eval "$ac_compile") 2>conftest.er1
2486 ac_status=$?
2487 grep -v '^ *+' conftest.er1 >conftest.err
2488 rm -f conftest.er1
2489 cat conftest.err >&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); } && {
2492 test -z "$ac_c_werror_flag" ||
2493 test ! -s conftest.err
2494 } && test -s conftest.$ac_objext; then
2495 :
2496else
2497 echo "$as_me: failed program was:" >&5
2498sed 's/^/| /' conftest.$ac_ext >&5
2499
2500 ac_c_werror_flag=$ac_save_c_werror_flag
2501 CFLAGS="-g"
2502 cat >conftest.$ac_ext <<_ACEOF
2503/* confdefs.h. */
2504_ACEOF
2505cat confdefs.h >>conftest.$ac_ext
2506cat >>conftest.$ac_ext <<_ACEOF
2507/* end confdefs.h. */
2508
2509int
2510main ()
2511{
2512
2513 ;
2514 return 0;
2515}
2516_ACEOF
2517rm -f conftest.$ac_objext
2518if { (ac_try="$ac_compile"
2519case "(($ac_try" in
2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521 *) ac_try_echo=$ac_try;;
2522esac
2523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524 (eval "$ac_compile") 2>conftest.er1
2525 ac_status=$?
2526 grep -v '^ *+' conftest.er1 >conftest.err
2527 rm -f conftest.er1
2528 cat conftest.err >&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); } && {
2531 test -z "$ac_c_werror_flag" ||
2532 test ! -s conftest.err
2533 } && test -s conftest.$ac_objext; then
2534 ac_cv_prog_cc_g=yes
2535else
2536 echo "$as_me: failed program was:" >&5
2537sed 's/^/| /' conftest.$ac_ext >&5
2538
2539
2540fi
2541
2542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2543fi
2544
2545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2546fi
2547
2548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2549 ac_c_werror_flag=$ac_save_c_werror_flag
2550fi
2551{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2552echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2553if test "$ac_test_CFLAGS" = set; then
2554 CFLAGS=$ac_save_CFLAGS
2555elif test $ac_cv_prog_cc_g = yes; then
2556 if test "$GCC" = yes; then
2557 CFLAGS="-g -O2"
2558 else
2559 CFLAGS="-g"
2560 fi
2561else
2562 if test "$GCC" = yes; then
2563 CFLAGS="-O2"
2564 else
2565 CFLAGS=
2566 fi
2567fi
2568{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2569echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2570if test "${ac_cv_prog_cc_c89+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2572else
2573 ac_cv_prog_cc_c89=no
2574ac_save_CC=$CC
2575cat >conftest.$ac_ext <<_ACEOF
2576/* confdefs.h. */
2577_ACEOF
2578cat confdefs.h >>conftest.$ac_ext
2579cat >>conftest.$ac_ext <<_ACEOF
2580/* end confdefs.h. */
2581#include <stdarg.h>
2582#include <stdio.h>
2583#include <sys/types.h>
2584#include <sys/stat.h>
2585/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2586struct buf { int x; };
2587FILE * (*rcsopen) (struct buf *, struct stat *, int);
2588static char *e (p, i)
2589 char **p;
2590 int i;
2591{
2592 return p[i];
2593}
2594static char *f (char * (*g) (char **, int), char **p, ...)
2595{
2596 char *s;
2597 va_list v;
2598 va_start (v,p);
2599 s = g (p, va_arg (v,int));
2600 va_end (v);
2601 return s;
2602}
2603
2604/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2605 function prototypes and stuff, but not '\xHH' hex character constants.
2606 These don't provoke an error unfortunately, instead are silently treated
2607 as 'x'. The following induces an error, until -std is added to get
2608 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2609 array size at least. It's necessary to write '\x00'==0 to get something
2610 that's true only with -std. */
2611int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2612
2613/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2614 inside strings and character constants. */
2615#define FOO(x) 'x'
2616int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2617
2618int test (int i, double x);
2619struct s1 {int (*f) (int a);};
2620struct s2 {int (*f) (double a);};
2621int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2622int argc;
2623char **argv;
2624int
2625main ()
2626{
2627return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2628 ;
2629 return 0;
2630}
2631_ACEOF
2632for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2633 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2634do
2635 CC="$ac_save_CC $ac_arg"
2636 rm -f conftest.$ac_objext
2637if { (ac_try="$ac_compile"
2638case "(($ac_try" in
2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640 *) ac_try_echo=$ac_try;;
2641esac
2642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2643 (eval "$ac_compile") 2>conftest.er1
2644 ac_status=$?
2645 grep -v '^ *+' conftest.er1 >conftest.err
2646 rm -f conftest.er1
2647 cat conftest.err >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } && {
2650 test -z "$ac_c_werror_flag" ||
2651 test ! -s conftest.err
2652 } && test -s conftest.$ac_objext; then
2653 ac_cv_prog_cc_c89=$ac_arg
2654else
2655 echo "$as_me: failed program was:" >&5
2656sed 's/^/| /' conftest.$ac_ext >&5
2657
2658
2659fi
2660
2661rm -f core conftest.err conftest.$ac_objext
2662 test "x$ac_cv_prog_cc_c89" != "xno" && break
2663done
2664rm -f conftest.$ac_ext
2665CC=$ac_save_CC
2666
2667fi
2668# AC_CACHE_VAL
2669case "x$ac_cv_prog_cc_c89" in
2670 x)
2671 { echo "$as_me:$LINENO: result: none needed" >&5
2672echo "${ECHO_T}none needed" >&6; } ;;
2673 xno)
2674 { echo "$as_me:$LINENO: result: unsupported" >&5
2675echo "${ECHO_T}unsupported" >&6; } ;;
2676 *)
2677 CC="$CC $ac_cv_prog_cc_c89"
2678 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2679echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2680esac
2681
2682
2683ac_ext=c
2684ac_cpp='$CPP $CPPFLAGS'
2685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2687ac_compiler_gnu=$ac_cv_c_compiler_gnu
2688
2689ac_ext=cpp
2690ac_cpp='$CXXCPP $CPPFLAGS'
2691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2694if test -z "$CXX"; then
2695 if test -n "$CCC"; then
2696 CXX=$CCC
2697 else
2698 if test -n "$ac_tool_prefix"; then
2699 for ac_prog in clang++ llvm-g++ g++
2700 do
2701 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2702set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2703{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2705if test "${ac_cv_prog_CXX+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2707else
2708 if test -n "$CXX"; then
2709 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2710else
2711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712for as_dir in $PATH
2713do
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 break 2
2721 fi
2722done
2723done
2724IFS=$as_save_IFS
2725
2726fi
2727fi
2728CXX=$ac_cv_prog_CXX
2729if test -n "$CXX"; then
2730 { echo "$as_me:$LINENO: result: $CXX" >&5
2731echo "${ECHO_T}$CXX" >&6; }
2732else
2733 { echo "$as_me:$LINENO: result: no" >&5
2734echo "${ECHO_T}no" >&6; }
2735fi
2736
2737
2738 test -n "$CXX" && break
2739 done
2740fi
2741if test -z "$CXX"; then
2742 ac_ct_CXX=$CXX
2743 for ac_prog in clang++ llvm-g++ g++
2744do
2745 # Extract the first word of "$ac_prog", so it can be a program name with args.
2746set dummy $ac_prog; ac_word=$2
2747{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2749if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2751else
2752 if test -n "$ac_ct_CXX"; then
2753 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2754else
2755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756for as_dir in $PATH
2757do
2758 IFS=$as_save_IFS
2759 test -z "$as_dir" && as_dir=.
2760 for ac_exec_ext in '' $ac_executable_extensions; do
2761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2762 ac_cv_prog_ac_ct_CXX="$ac_prog"
2763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 break 2
2765 fi
2766done
2767done
2768IFS=$as_save_IFS
2769
2770fi
2771fi
2772ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2773if test -n "$ac_ct_CXX"; then
2774 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2775echo "${ECHO_T}$ac_ct_CXX" >&6; }
2776else
2777 { echo "$as_me:$LINENO: result: no" >&5
2778echo "${ECHO_T}no" >&6; }
2779fi
2780
2781
2782 test -n "$ac_ct_CXX" && break
2783done
2784
2785 if test "x$ac_ct_CXX" = x; then
2786 CXX="g++"
2787 else
2788 case $cross_compiling:$ac_tool_warned in
2789yes:)
2790{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2791whose name does not start with the host triplet. If you think this
2792configuration is useful to you, please write to autoconf@gnu.org." >&5
2793echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2794whose name does not start with the host triplet. If you think this
2795configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2796ac_tool_warned=yes ;;
2797esac
2798 CXX=$ac_ct_CXX
2799 fi
2800fi
2801
2802 fi
2803fi
2804# Provide some information about the compiler.
2805echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2806ac_compiler=`set X $ac_compile; echo $2`
2807{ (ac_try="$ac_compiler --version >&5"
2808case "(($ac_try" in
2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2811esac
2812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813 (eval "$ac_compiler --version >&5") 2>&5
2814 ac_status=$?
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); }
2817{ (ac_try="$ac_compiler -v >&5"
2818case "(($ac_try" in
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2821esac
2822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823 (eval "$ac_compiler -v >&5") 2>&5
2824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }
2827{ (ac_try="$ac_compiler -V >&5"
2828case "(($ac_try" in
2829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830 *) ac_try_echo=$ac_try;;
2831esac
2832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2833 (eval "$ac_compiler -V >&5") 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }
2837
2838{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2839echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2840if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2842else
2843 cat >conftest.$ac_ext <<_ACEOF
2844/* confdefs.h. */
2845_ACEOF
2846cat confdefs.h >>conftest.$ac_ext
2847cat >>conftest.$ac_ext <<_ACEOF
2848/* end confdefs.h. */
2849
2850int
2851main ()
2852{
2853#ifndef __GNUC__
2854 choke me
2855#endif
2856
2857 ;
2858 return 0;
2859}
2860_ACEOF
2861rm -f conftest.$ac_objext
2862if { (ac_try="$ac_compile"
2863case "(($ac_try" in
2864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865 *) ac_try_echo=$ac_try;;
2866esac
2867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2868 (eval "$ac_compile") 2>conftest.er1
2869 ac_status=$?
2870 grep -v '^ *+' conftest.er1 >conftest.err
2871 rm -f conftest.er1
2872 cat conftest.err >&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); } && {
2875 test -z "$ac_cxx_werror_flag" ||
2876 test ! -s conftest.err
2877 } && test -s conftest.$ac_objext; then
2878 ac_compiler_gnu=yes
2879else
2880 echo "$as_me: failed program was:" >&5
2881sed 's/^/| /' conftest.$ac_ext >&5
2882
2883 ac_compiler_gnu=no
2884fi
2885
2886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2887ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2888
2889fi
2890{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2891echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2892GXX=`test $ac_compiler_gnu = yes && echo yes`
2893ac_test_CXXFLAGS=${CXXFLAGS+set}
2894ac_save_CXXFLAGS=$CXXFLAGS
2895{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2896echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2897if test "${ac_cv_prog_cxx_g+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2899else
2900 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2901 ac_cxx_werror_flag=yes
2902 ac_cv_prog_cxx_g=no
2903 CXXFLAGS="-g"
2904 cat >conftest.$ac_ext <<_ACEOF
2905/* confdefs.h. */
2906_ACEOF
2907cat confdefs.h >>conftest.$ac_ext
2908cat >>conftest.$ac_ext <<_ACEOF
2909/* end confdefs.h. */
2910
2911int
2912main ()
2913{
2914
2915 ;
2916 return 0;
2917}
2918_ACEOF
2919rm -f conftest.$ac_objext
2920if { (ac_try="$ac_compile"
2921case "(($ac_try" in
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2924esac
2925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926 (eval "$ac_compile") 2>conftest.er1
2927 ac_status=$?
2928 grep -v '^ *+' conftest.er1 >conftest.err
2929 rm -f conftest.er1
2930 cat conftest.err >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } && {
2933 test -z "$ac_cxx_werror_flag" ||
2934 test ! -s conftest.err
2935 } && test -s conftest.$ac_objext; then
2936 ac_cv_prog_cxx_g=yes
2937else
2938 echo "$as_me: failed program was:" >&5
2939sed 's/^/| /' conftest.$ac_ext >&5
2940
2941 CXXFLAGS=""
2942 cat >conftest.$ac_ext <<_ACEOF
2943/* confdefs.h. */
2944_ACEOF
2945cat confdefs.h >>conftest.$ac_ext
2946cat >>conftest.$ac_ext <<_ACEOF
2947/* end confdefs.h. */
2948
2949int
2950main ()
2951{
2952
2953 ;
2954 return 0;
2955}
2956_ACEOF
2957rm -f conftest.$ac_objext
2958if { (ac_try="$ac_compile"
2959case "(($ac_try" in
2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 *) ac_try_echo=$ac_try;;
2962esac
2963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2964 (eval "$ac_compile") 2>conftest.er1
2965 ac_status=$?
2966 grep -v '^ *+' conftest.er1 >conftest.err
2967 rm -f conftest.er1
2968 cat conftest.err >&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } && {
2971 test -z "$ac_cxx_werror_flag" ||
2972 test ! -s conftest.err
2973 } && test -s conftest.$ac_objext; then
2974 :
2975else
2976 echo "$as_me: failed program was:" >&5
2977sed 's/^/| /' conftest.$ac_ext >&5
2978
2979 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2980 CXXFLAGS="-g"
2981 cat >conftest.$ac_ext <<_ACEOF
2982/* confdefs.h. */
2983_ACEOF
2984cat confdefs.h >>conftest.$ac_ext
2985cat >>conftest.$ac_ext <<_ACEOF
2986/* end confdefs.h. */
2987
2988int
2989main ()
2990{
2991
2992 ;
2993 return 0;
2994}
2995_ACEOF
2996rm -f conftest.$ac_objext
2997if { (ac_try="$ac_compile"
2998case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3001esac
3002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003 (eval "$ac_compile") 2>conftest.er1
3004 ac_status=$?
3005 grep -v '^ *+' conftest.er1 >conftest.err
3006 rm -f conftest.er1
3007 cat conftest.err >&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); } && {
3010 test -z "$ac_cxx_werror_flag" ||
3011 test ! -s conftest.err
3012 } && test -s conftest.$ac_objext; then
3013 ac_cv_prog_cxx_g=yes
3014else
3015 echo "$as_me: failed program was:" >&5
3016sed 's/^/| /' conftest.$ac_ext >&5
3017
3018
3019fi
3020
3021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3022fi
3023
3024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3025fi
3026
3027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3028 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3029fi
3030{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3031echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3032if test "$ac_test_CXXFLAGS" = set; then
3033 CXXFLAGS=$ac_save_CXXFLAGS
3034elif test $ac_cv_prog_cxx_g = yes; then
3035 if test "$GXX" = yes; then
3036 CXXFLAGS="-g -O2"
3037 else
3038 CXXFLAGS="-g"
3039 fi
3040else
3041 if test "$GXX" = yes; then
3042 CXXFLAGS="-O2"
3043 else
3044 CXXFLAGS=
3045 fi
3046fi
3047ac_ext=c
3048ac_cpp='$CPP $CPPFLAGS'
3049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051ac_compiler_gnu=$ac_cv_c_compiler_gnu
3052
3053ac_ext=c
3054ac_cpp='$CPP $CPPFLAGS'
3055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057ac_compiler_gnu=$ac_cv_c_compiler_gnu
3058{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3059echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3060# On Suns, sometimes $CPP names a directory.
3061if test -n "$CPP" && test -d "$CPP"; then
3062 CPP=
3063fi
3064if test -z "$CPP"; then
3065 if test "${ac_cv_prog_CPP+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067else
3068 # Double quotes because CPP needs to be expanded
3069 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3070 do
3071 ac_preproc_ok=false
3072for ac_c_preproc_warn_flag in '' yes
3073do
3074 # Use a header file that comes with gcc, so configuring glibc
3075 # with a fresh cross-compiler works.
3076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3077 # <limits.h> exists even on freestanding compilers.
3078 # On the NeXT, cc -E runs the code through the compiler's parser,
3079 # not just through cpp. "Syntax error" is here to catch this case.
3080 cat >conftest.$ac_ext <<_ACEOF
3081/* confdefs.h. */
3082_ACEOF
3083cat confdefs.h >>conftest.$ac_ext
3084cat >>conftest.$ac_ext <<_ACEOF
3085/* end confdefs.h. */
3086#ifdef __STDC__
3087# include <limits.h>
3088#else
3089# include <assert.h>
3090#endif
3091 Syntax error
3092_ACEOF
3093if { (ac_try="$ac_cpp conftest.$ac_ext"
3094case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097esac
3098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3100 ac_status=$?
3101 grep -v '^ *+' conftest.er1 >conftest.err
3102 rm -f conftest.er1
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } >/dev/null && {
3106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3107 test ! -s conftest.err
3108 }; then
3109 :
3110else
3111 echo "$as_me: failed program was:" >&5
3112sed 's/^/| /' conftest.$ac_ext >&5
3113
3114 # Broken: fails on valid input.
3115continue
3116fi
3117
3118rm -f conftest.err conftest.$ac_ext
3119
3120 # OK, works on sane cases. Now check whether nonexistent headers
3121 # can be detected and how.
3122 cat >conftest.$ac_ext <<_ACEOF
3123/* confdefs.h. */
3124_ACEOF
3125cat confdefs.h >>conftest.$ac_ext
3126cat >>conftest.$ac_ext <<_ACEOF
3127/* end confdefs.h. */
3128#include <ac_nonexistent.h>
3129_ACEOF
3130if { (ac_try="$ac_cpp conftest.$ac_ext"
3131case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
3135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } >/dev/null && {
3143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3144 test ! -s conftest.err
3145 }; then
3146 # Broken: success on invalid input.
3147continue
3148else
3149 echo "$as_me: failed program was:" >&5
3150sed 's/^/| /' conftest.$ac_ext >&5
3151
3152 # Passes both tests.
3153ac_preproc_ok=:
3154break
3155fi
3156
3157rm -f conftest.err conftest.$ac_ext
3158
3159done
3160# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3161rm -f conftest.err conftest.$ac_ext
3162if $ac_preproc_ok; then
3163 break
3164fi
3165
3166 done
3167 ac_cv_prog_CPP=$CPP
3168
3169fi
3170 CPP=$ac_cv_prog_CPP
3171else
3172 ac_cv_prog_CPP=$CPP
3173fi
3174{ echo "$as_me:$LINENO: result: $CPP" >&5
3175echo "${ECHO_T}$CPP" >&6; }
3176ac_preproc_ok=false
3177for ac_c_preproc_warn_flag in '' yes
3178do
3179 # Use a header file that comes with gcc, so configuring glibc
3180 # with a fresh cross-compiler works.
3181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3182 # <limits.h> exists even on freestanding compilers.
3183 # On the NeXT, cc -E runs the code through the compiler's parser,
3184 # not just through cpp. "Syntax error" is here to catch this case.
3185 cat >conftest.$ac_ext <<_ACEOF
3186/* confdefs.h. */
3187_ACEOF
3188cat confdefs.h >>conftest.$ac_ext
3189cat >>conftest.$ac_ext <<_ACEOF
3190/* end confdefs.h. */
3191#ifdef __STDC__
3192# include <limits.h>
3193#else
3194# include <assert.h>
3195#endif
3196 Syntax error
3197_ACEOF
3198if { (ac_try="$ac_cpp conftest.$ac_ext"
3199case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202esac
3203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3205 ac_status=$?
3206 grep -v '^ *+' conftest.er1 >conftest.err
3207 rm -f conftest.er1
3208 cat conftest.err >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } >/dev/null && {
3211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3212 test ! -s conftest.err
3213 }; then
3214 :
3215else
3216 echo "$as_me: failed program was:" >&5
3217sed 's/^/| /' conftest.$ac_ext >&5
3218
3219 # Broken: fails on valid input.
3220continue
3221fi
3222
3223rm -f conftest.err conftest.$ac_ext
3224
3225 # OK, works on sane cases. Now check whether nonexistent headers
3226 # can be detected and how.
3227 cat >conftest.$ac_ext <<_ACEOF
3228/* confdefs.h. */
3229_ACEOF
3230cat confdefs.h >>conftest.$ac_ext
3231cat >>conftest.$ac_ext <<_ACEOF
3232/* end confdefs.h. */
3233#include <ac_nonexistent.h>
3234_ACEOF
3235if { (ac_try="$ac_cpp conftest.$ac_ext"
3236case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239esac
3240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3242 ac_status=$?
3243 grep -v '^ *+' conftest.er1 >conftest.err
3244 rm -f conftest.er1
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } >/dev/null && {
3248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3249 test ! -s conftest.err
3250 }; then
3251 # Broken: success on invalid input.
3252continue
3253else
3254 echo "$as_me: failed program was:" >&5
3255sed 's/^/| /' conftest.$ac_ext >&5
3256
3257 # Passes both tests.
3258ac_preproc_ok=:
3259break
3260fi
3261
3262rm -f conftest.err conftest.$ac_ext
3263
3264done
3265# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3266rm -f conftest.err conftest.$ac_ext
3267if $ac_preproc_ok; then
3268 :
3269else
3270 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3271See \`config.log' for more details." >&5
3272echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3273See \`config.log' for more details." >&2;}
3274 { (exit 1); exit 1; }; }
3275fi
3276
3277ac_ext=c
3278ac_cpp='$CPP $CPPFLAGS'
3279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3281ac_compiler_gnu=$ac_cv_c_compiler_gnu
3282
3283
3284
3285
3286if test -d ${srcdir}/projects/llvm-gcc ; then
3287 subdirs="$subdirs projects/llvm-gcc"
3288
3289fi
3290
3291if test -d ${srcdir}/projects/test-suite ; then
3292 subdirs="$subdirs projects/test-suite"
3293
3294fi
3295
3296if test -d ${srcdir}/projects/llvm-test ; then
3297 subdirs="$subdirs projects/llvm-test"
3298
3299fi
3300
3301if test -d ${srcdir}/projects/poolalloc ; then
3302 subdirs="$subdirs projects/poolalloc"
3303
3304fi
3305
3306if test -d ${srcdir}/projects/llvm-poolalloc ; then
3307 subdirs="$subdirs projects/llvm-poolalloc"
3308
3309fi
3310
3311for i in `ls ${srcdir}/projects`
3312do
3313 if test -d ${srcdir}/projects/${i} ; then
3314 case ${i} in
3315 sample) subdirs="$subdirs projects/sample"
3316 ;;
3317 privbracket) subdirs="$subdirs projects/privbracket"
3318 ;;
3319 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3320 ;;
3321 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3322;;
3323 llvm-java) subdirs="$subdirs projects/llvm-java"
3324 ;;
3325 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3326 ;;
3327 safecode) subdirs="$subdirs projects/safecode"
3328 ;;
3329 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3330 ;;
3331 llvm-gcc) ;;
3332 test-suite) ;;
3333 llvm-test) ;;
3334 poolalloc) ;;
3335 llvm-poolalloc) ;;
3336 *)
3337 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3338echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3339 ;;
3340 esac
3341 fi
3342done
3343
3344# Check whether --enable-polly was given.
3345if test "${enable_polly+set}" = set; then
3346 enableval=$enable_polly;
3347else
3348 enableval=default
3349fi
3350
3351case "$enableval" in
3352 yes) ENABLE_POLLY=1
3353 ;;
3354 no) ENABLE_POLLY=0
3355 ;;
3356 default) ENABLE_POLLY=1
3357 ;;
3358 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3359echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3360 { (exit 1); exit 1; }; } ;;
3361esac
3362
3363
3364if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3365 LLVM_HAS_POLLY=1
3366
3367 subdirs="$subdirs tools/polly"
3368
3369fi
3370
3371
3372# Make sure we can run config.sub.
3373$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3374 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3375echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3376 { (exit 1); exit 1; }; }
3377
3378{ echo "$as_me:$LINENO: checking build system type" >&5
3379echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3380if test "${ac_cv_build+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3382else
3383 ac_build_alias=$build_alias
3384test "x$ac_build_alias" = x &&
3385 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3386test "x$ac_build_alias" = x &&
3387 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3388echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3389 { (exit 1); exit 1; }; }
3390ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3391 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3392echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3393 { (exit 1); exit 1; }; }
3394
3395fi
3396{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3397echo "${ECHO_T}$ac_cv_build" >&6; }
3398case $ac_cv_build in
3399*-*-*) ;;
3400*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3401echo "$as_me: error: invalid value of canonical build" >&2;}
3402 { (exit 1); exit 1; }; };;
3403esac
3404build=$ac_cv_build
3405ac_save_IFS=$IFS; IFS='-'
3406set x $ac_cv_build
3407shift
3408build_cpu=$1
3409build_vendor=$2
3410shift; shift
3411# Remember, the first character of IFS is used to create $*,
3412# except with old shells:
3413build_os=$*
3414IFS=$ac_save_IFS
3415case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3416
3417
3418{ echo "$as_me:$LINENO: checking host system type" >&5
3419echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3420if test "${ac_cv_host+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3422else
3423 if test "x$host_alias" = x; then
3424 ac_cv_host=$ac_cv_build
3425else
3426 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3427 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3428echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3429 { (exit 1); exit 1; }; }
3430fi
3431
3432fi
3433{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3434echo "${ECHO_T}$ac_cv_host" >&6; }
3435case $ac_cv_host in
3436*-*-*) ;;
3437*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3438echo "$as_me: error: invalid value of canonical host" >&2;}
3439 { (exit 1); exit 1; }; };;
3440esac
3441host=$ac_cv_host
3442ac_save_IFS=$IFS; IFS='-'
3443set x $ac_cv_host
3444shift
3445host_cpu=$1
3446host_vendor=$2
3447shift; shift
3448# Remember, the first character of IFS is used to create $*,
3449# except with old shells:
3450host_os=$*
3451IFS=$ac_save_IFS
3452case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3453
3454
3455{ echo "$as_me:$LINENO: checking target system type" >&5
3456echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3457if test "${ac_cv_target+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3459else
3460 if test "x$target_alias" = x; then
3461 ac_cv_target=$ac_cv_host
3462else
3463 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3464 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3465echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3466 { (exit 1); exit 1; }; }
3467fi
3468
3469fi
3470{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3471echo "${ECHO_T}$ac_cv_target" >&6; }
3472case $ac_cv_target in
3473*-*-*) ;;
3474*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3475echo "$as_me: error: invalid value of canonical target" >&2;}
3476 { (exit 1); exit 1; }; };;
3477esac
3478target=$ac_cv_target
3479ac_save_IFS=$IFS; IFS='-'
3480set x $ac_cv_target
3481shift
3482target_cpu=$1
3483target_vendor=$2
3484shift; shift
3485# Remember, the first character of IFS is used to create $*,
3486# except with old shells:
3487target_os=$*
3488IFS=$ac_save_IFS
3489case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3490
3491
3492# The aliases save the names the user supplied, while $host etc.
3493# will get canonicalized.
3494test -n "$target_alias" &&
3495 test "$program_prefix$program_suffix$program_transform_name" = \
3496 NONENONEs,x,x, &&
3497 program_prefix=${target_alias}-
3498
3499{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3500echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3501if test "${llvm_cv_os_type+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3503else
3504 case $host in
3505 *-*-aix*)
3506 llvm_cv_link_all_option="-Wl,--whole-archive"
3507 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3508 llvm_cv_os_type="AIX"
3509 llvm_cv_platform_type="Unix" ;;
3510 *-*-irix*)
3511 llvm_cv_link_all_option="-Wl,--whole-archive"
3512 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3513 llvm_cv_os_type="IRIX"
3514 llvm_cv_platform_type="Unix" ;;
3515 *-*-cygwin*)
3516 llvm_cv_link_all_option="-Wl,--whole-archive"
3517 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3518 llvm_cv_os_type="Cygwin"
3519 llvm_cv_platform_type="Unix" ;;
3520 *-*-darwin*)
3521 llvm_cv_link_all_option="-Wl,-all_load"
3522 llvm_cv_no_link_all_option="-Wl,-noall_load"
3523 llvm_cv_os_type="Darwin"
3524 llvm_cv_platform_type="Unix" ;;
3525 *-*-minix*)
3526 llvm_cv_link_all_option="-Wl,-all_load"
3527 llvm_cv_no_link_all_option="-Wl,-noall_load"
3528 llvm_cv_os_type="Minix"
3529 llvm_cv_platform_type="Unix" ;;
3530 *-*-freebsd*)
3531 llvm_cv_link_all_option="-Wl,--whole-archive"
3532 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3533 llvm_cv_os_type="FreeBSD"
3534 llvm_cv_platform_type="Unix" ;;
3535 *-*-openbsd*)
3536 llvm_cv_link_all_option="-Wl,--whole-archive"
3537 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3538 llvm_cv_os_type="OpenBSD"
3539 llvm_cv_platform_type="Unix" ;;
3540 *-*-netbsd*)
3541 llvm_cv_link_all_option="-Wl,--whole-archive"
3542 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3543 llvm_cv_os_type="NetBSD"
3544 llvm_cv_platform_type="Unix" ;;
3545 *-*-dragonfly*)
3546 llvm_cv_link_all_option="-Wl,--whole-archive"
3547 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3548 llvm_cv_os_type="DragonFly"
3549 llvm_cv_platform_type="Unix" ;;
3550 *-*-hpux*)
3551 llvm_cv_link_all_option="-Wl,--whole-archive"
3552 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3553 llvm_cv_os_type="HP-UX"
3554 llvm_cv_platform_type="Unix" ;;
3555 *-*-interix*)
3556 llvm_cv_link_all_option="-Wl,--whole-archive"
3557 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3558 llvm_cv_os_type="Interix"
3559 llvm_cv_platform_type="Unix" ;;
3560 *-*-linux*)
3561 llvm_cv_link_all_option="-Wl,--whole-archive"
3562 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3563 llvm_cv_os_type="Linux"
3564 llvm_cv_platform_type="Unix" ;;
3565 *-*-solaris*)
3566 llvm_cv_link_all_option="-Wl,-z,allextract"
3567 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3568 llvm_cv_os_type="SunOS"
3569 llvm_cv_platform_type="Unix" ;;
3570 *-*-auroraux*)
3571 llvm_cv_link_all_option="-Wl,-z,allextract"
3572 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3573 llvm_cv_os_type="AuroraUX"
3574 llvm_cv_platform_type="Unix" ;;
3575 *-*-win32*)
3576 llvm_cv_link_all_option="-Wl,--whole-archive"
3577 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3578 llvm_cv_os_type="Win32"
3579 llvm_cv_platform_type="Win32" ;;
3580 *-*-mingw*)
3581 llvm_cv_link_all_option="-Wl,--whole-archive"
3582 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3583 llvm_cv_os_type="MingW"
3584 llvm_cv_platform_type="Win32" ;;
3585 *-*-haiku*)
3586 llvm_cv_link_all_option="-Wl,--whole-archive"
3587 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3588 llvm_cv_os_type="Haiku"
3589 llvm_cv_platform_type="Unix" ;;
3590 *-unknown-eabi*)
3591 llvm_cv_link_all_option="-Wl,--whole-archive"
3592 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3593 llvm_cv_os_type="Freestanding"
3594 llvm_cv_platform_type="Unix" ;;
3595 *-unknown-elf*)
3596 llvm_cv_link_all_option="-Wl,--whole-archive"
3597 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3598 llvm_cv_os_type="Freestanding"
3599 llvm_cv_platform_type="Unix" ;;
3600 *)
3601 llvm_cv_link_all_option=""
3602 llvm_cv_no_link_all_option=""
3603 llvm_cv_os_type="Unknown"
3604 llvm_cv_platform_type="Unknown" ;;
3605esac
3606fi
3607{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3608echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3609
3610{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3611echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3612if test "${llvm_cv_target_os_type+set}" = set; then
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3614else
3615 case $target in
3616 *-*-aix*)
3617 llvm_cv_target_os_type="AIX" ;;
3618 *-*-irix*)
3619 llvm_cv_target_os_type="IRIX" ;;
3620 *-*-cygwin*)
3621 llvm_cv_target_os_type="Cygwin" ;;
3622 *-*-darwin*)
3623 llvm_cv_target_os_type="Darwin" ;;
3624 *-*-minix*)
3625 llvm_cv_target_os_type="Minix" ;;
3626 *-*-freebsd*)
3627 llvm_cv_target_os_type="FreeBSD" ;;
3628 *-*-openbsd*)
3629 llvm_cv_target_os_type="OpenBSD" ;;
3630 *-*-netbsd*)
3631 llvm_cv_target_os_type="NetBSD" ;;
3632 *-*-dragonfly*)
3633 llvm_cv_target_os_type="DragonFly" ;;
3634 *-*-hpux*)
3635 llvm_cv_target_os_type="HP-UX" ;;
3636 *-*-interix*)
3637 llvm_cv_target_os_type="Interix" ;;
3638 *-*-linux*)
3639 llvm_cv_target_os_type="Linux" ;;
3640 *-*-solaris*)
3641 llvm_cv_target_os_type="SunOS" ;;
3642 *-*-auroraux*)
3643 llvm_cv_target_os_type="AuroraUX" ;;
3644 *-*-win32*)
3645 llvm_cv_target_os_type="Win32" ;;
3646 *-*-mingw*)
3647 llvm_cv_target_os_type="MingW" ;;
3648 *-*-haiku*)
3649 llvm_cv_target_os_type="Haiku" ;;
3650 *-*-rtems*)
3651 llvm_cv_target_os_type="RTEMS" ;;
3652 *-*-nacl*)
3653 llvm_cv_target_os_type="NativeClient" ;;
3654 *-unknown-eabi*)
3655 llvm_cv_target_os_type="Freestanding" ;;
3656 *)
3657 llvm_cv_target_os_type="Unknown" ;;
3658esac
3659fi
3660{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3661echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3662
3663if test "$llvm_cv_os_type" = "Unknown" ; then
3664 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3665echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3666 { (exit 1); exit 1; }; }
3667fi
3668
3669OS=$llvm_cv_os_type
3670
3671HOST_OS=$llvm_cv_os_type
3672
3673TARGET_OS=$llvm_cv_target_os_type
3674
3675
3676LINKALL=$llvm_cv_link_all_option
3677
3678NOLINKALL=$llvm_cv_no_link_all_option
3679
3680
3681case $llvm_cv_platform_type in
3682 Unix)
3683
3684cat >>confdefs.h <<\_ACEOF
3685#define LLVM_ON_UNIX 1
3686_ACEOF
3687
3688 LLVM_ON_UNIX=1
3689
3690 LLVM_ON_WIN32=0
3691
3692 ;;
3693 Win32)
3694
3695cat >>confdefs.h <<\_ACEOF
3696#define LLVM_ON_WIN32 1
3697_ACEOF
3698
3699 LLVM_ON_UNIX=0
3700
3701 LLVM_ON_WIN32=1
3702
3703 ;;
3704esac
3705
3706{ echo "$as_me:$LINENO: checking target architecture" >&5
3707echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3708if test "${llvm_cv_target_arch+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3710else
3711 case $target in
3712 i?86-*) llvm_cv_target_arch="x86" ;;
3713 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3714 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3715 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3716 alpha*-*) llvm_cv_target_arch="Alpha" ;;
3717 arm*-*) llvm_cv_target_arch="ARM" ;;
3718 mips-*) llvm_cv_target_arch="Mips" ;;
3719 xcore-*) llvm_cv_target_arch="XCore" ;;
3720 msp430-*) llvm_cv_target_arch="MSP430" ;;
3721 s390x-*) llvm_cv_target_arch="SystemZ" ;;
3722 bfin-*) llvm_cv_target_arch="Blackfin" ;;
3723 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3724 ptx-*) llvm_cv_target_arch="PTX" ;;
3725 *) llvm_cv_target_arch="Unknown" ;;
3726esac
3727fi
3728{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3729echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3730
3731if test "$llvm_cv_target_arch" = "Unknown" ; then
3732 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3733echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3734fi
3735
3736# Determine the LLVM native architecture for the target
3737case "$llvm_cv_target_arch" in
3738 x86) LLVM_NATIVE_ARCH="X86" ;;
3739 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3740 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3741esac
3742
3743ARCH=$llvm_cv_target_arch
3744
3745
3746
3747
3748{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3749echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3750if test "${ac_cv_path_GREP+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3752else
3753 # Extract the first word of "grep ggrep" to use in msg output
3754if test -z "$GREP"; then
3755set dummy grep ggrep; ac_prog_name=$2
3756if test "${ac_cv_path_GREP+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758else
3759 ac_path_GREP_found=false
3760# Loop through the user's path and test for each of PROGNAME-LIST
3761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3763do
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
3766 for ac_prog in grep ggrep; do
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3769 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3770 # Check for GNU ac_path_GREP and select it if it is found.
3771 # Check for GNU $ac_path_GREP
3772case `"$ac_path_GREP" --version 2>&1` in
3773*GNU*)
3774 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3775*)
3776 ac_count=0
3777 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3778 while :
3779 do
3780 cat "conftest.in" "conftest.in" >"conftest.tmp"
3781 mv "conftest.tmp" "conftest.in"
3782 cp "conftest.in" "conftest.nl"
3783 echo 'GREP' >> "conftest.nl"
3784 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3785 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3786 ac_count=`expr $ac_count + 1`
3787 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3788 # Best one so far, save it but keep looking for a better one
3789 ac_cv_path_GREP="$ac_path_GREP"
3790 ac_path_GREP_max=$ac_count
3791 fi
3792 # 10*(2^10) chars as input seems more than enough
3793 test $ac_count -gt 10 && break
3794 done
3795 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3796esac
3797
3798
3799 $ac_path_GREP_found && break 3
3800 done
3801done
3802
3803done
3804IFS=$as_save_IFS
3805
3806
3807fi
3808
3809GREP="$ac_cv_path_GREP"
3810if test -z "$GREP"; then
3811 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3812echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3813 { (exit 1); exit 1; }; }
3814fi
3815
3816else
3817 ac_cv_path_GREP=$GREP
3818fi
3819
3820
3821fi
3822{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3823echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3824 GREP="$ac_cv_path_GREP"
3825
3826
3827{ echo "$as_me:$LINENO: checking for egrep" >&5
3828echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3829if test "${ac_cv_path_EGREP+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3831else
3832 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3833 then ac_cv_path_EGREP="$GREP -E"
3834 else
3835 # Extract the first word of "egrep" to use in msg output
3836if test -z "$EGREP"; then
3837set dummy egrep; ac_prog_name=$2
3838if test "${ac_cv_path_EGREP+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3840else
3841 ac_path_EGREP_found=false
3842# Loop through the user's path and test for each of PROGNAME-LIST
3843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3845do
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_prog in egrep; do
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3851 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3852 # Check for GNU ac_path_EGREP and select it if it is found.
3853 # Check for GNU $ac_path_EGREP
3854case `"$ac_path_EGREP" --version 2>&1` in
3855*GNU*)
3856 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3857*)
3858 ac_count=0
3859 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3860 while :
3861 do
3862 cat "conftest.in" "conftest.in" >"conftest.tmp"
3863 mv "conftest.tmp" "conftest.in"
3864 cp "conftest.in" "conftest.nl"
3865 echo 'EGREP' >> "conftest.nl"
3866 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3868 ac_count=`expr $ac_count + 1`
3869 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3870 # Best one so far, save it but keep looking for a better one
3871 ac_cv_path_EGREP="$ac_path_EGREP"
3872 ac_path_EGREP_max=$ac_count
3873 fi
3874 # 10*(2^10) chars as input seems more than enough
3875 test $ac_count -gt 10 && break
3876 done
3877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3878esac
3879
3880
3881 $ac_path_EGREP_found && break 3
3882 done
3883done
3884
3885done
3886IFS=$as_save_IFS
3887
3888
3889fi
3890
3891EGREP="$ac_cv_path_EGREP"
3892if test -z "$EGREP"; then
3893 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3894echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3895 { (exit 1); exit 1; }; }
3896fi
3897
3898else
3899 ac_cv_path_EGREP=$EGREP
3900fi
3901
3902
3903 fi
3904fi
3905{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3906echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3907 EGREP="$ac_cv_path_EGREP"
3908
3909
3910{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3911echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3912if test "${ac_cv_header_stdc+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3914else
3915 cat >conftest.$ac_ext <<_ACEOF
3916/* confdefs.h. */
3917_ACEOF
3918cat confdefs.h >>conftest.$ac_ext
3919cat >>conftest.$ac_ext <<_ACEOF
3920/* end confdefs.h. */
3921#include <stdlib.h>
3922#include <stdarg.h>
3923#include <string.h>
3924#include <float.h>
3925
3926int
3927main ()
3928{
3929
3930 ;
3931 return 0;
3932}
3933_ACEOF
3934rm -f conftest.$ac_objext
3935if { (ac_try="$ac_compile"
3936case "(($ac_try" in
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3939esac
3940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3941 (eval "$ac_compile") 2>conftest.er1
3942 ac_status=$?
3943 grep -v '^ *+' conftest.er1 >conftest.err
3944 rm -f conftest.er1
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); } && {
3948 test -z "$ac_c_werror_flag" ||
3949 test ! -s conftest.err
3950 } && test -s conftest.$ac_objext; then
3951 ac_cv_header_stdc=yes
3952else
3953 echo "$as_me: failed program was:" >&5
3954sed 's/^/| /' conftest.$ac_ext >&5
3955
3956 ac_cv_header_stdc=no
3957fi
3958
3959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960
3961if test $ac_cv_header_stdc = yes; then
3962 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3963 cat >conftest.$ac_ext <<_ACEOF
3964/* confdefs.h. */
3965_ACEOF
3966cat confdefs.h >>conftest.$ac_ext
3967cat >>conftest.$ac_ext <<_ACEOF
3968/* end confdefs.h. */
3969#include <string.h>
3970
3971_ACEOF
3972if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3973 $EGREP "memchr" >/dev/null 2>&1; then
3974 :
3975else
3976 ac_cv_header_stdc=no
3977fi
3978rm -f -r conftest*
3979
3980fi
3981
3982if test $ac_cv_header_stdc = yes; then
3983 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3984 cat >conftest.$ac_ext <<_ACEOF
3985/* confdefs.h. */
3986_ACEOF
3987cat confdefs.h >>conftest.$ac_ext
3988cat >>conftest.$ac_ext <<_ACEOF
3989/* end confdefs.h. */
3990#include <stdlib.h>
3991
3992_ACEOF
3993if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3994 $EGREP "free" >/dev/null 2>&1; then
3995 :
3996else
3997 ac_cv_header_stdc=no
3998fi
3999rm -f -r conftest*
4000
4001fi
4002
4003if test $ac_cv_header_stdc = yes; then
4004 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4005 if test "$cross_compiling" = yes; then
4006 :
4007else
4008 cat >conftest.$ac_ext <<_ACEOF
4009/* confdefs.h. */
4010_ACEOF
4011cat confdefs.h >>conftest.$ac_ext
4012cat >>conftest.$ac_ext <<_ACEOF
4013/* end confdefs.h. */
4014#include <ctype.h>
4015#include <stdlib.h>
4016#if ((' ' & 0x0FF) == 0x020)
4017# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4018# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4019#else
4020# define ISLOWER(c) \
4021 (('a' <= (c) && (c) <= 'i') \
4022 || ('j' <= (c) && (c) <= 'r') \
4023 || ('s' <= (c) && (c) <= 'z'))
4024# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4025#endif
4026
4027#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4028int
4029main ()
4030{
4031 int i;
4032 for (i = 0; i < 256; i++)
4033 if (XOR (islower (i), ISLOWER (i))
4034 || toupper (i) != TOUPPER (i))
4035 return 2;
4036 return 0;
4037}
4038_ACEOF
4039rm -f conftest$ac_exeext
4040if { (ac_try="$ac_link"
4041case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4044esac
4045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046 (eval "$ac_link") 2>&5
4047 ac_status=$?
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4050 { (case "(($ac_try" in
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4053esac
4054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4055 (eval "$ac_try") 2>&5
4056 ac_status=$?
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; }; then
4059 :
4060else
4061 echo "$as_me: program exited with status $ac_status" >&5
4062echo "$as_me: failed program was:" >&5
4063sed 's/^/| /' conftest.$ac_ext >&5
4064
4065( exit $ac_status )
4066ac_cv_header_stdc=no
4067fi
4068rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4069fi
4070
4071
4072fi
4073fi
4074{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4075echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4076if test $ac_cv_header_stdc = yes; then
4077
4078cat >>confdefs.h <<\_ACEOF
4079#define STDC_HEADERS 1
4080_ACEOF
4081
4082fi
4083
4084# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4095 inttypes.h stdint.h unistd.h
4096do
4097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4098{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4100if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4102else
4103 cat >conftest.$ac_ext <<_ACEOF
4104/* confdefs.h. */
4105_ACEOF
4106cat confdefs.h >>conftest.$ac_ext
4107cat >>conftest.$ac_ext <<_ACEOF
4108/* end confdefs.h. */
4109$ac_includes_default
4110
4111#include <$ac_header>
4112_ACEOF
4113rm -f conftest.$ac_objext
4114if { (ac_try="$ac_compile"
4115case "(($ac_try" in
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4118esac
4119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4120 (eval "$ac_compile") 2>conftest.er1
4121 ac_status=$?
4122 grep -v '^ *+' conftest.er1 >conftest.err
4123 rm -f conftest.er1
4124 cat conftest.err >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } && {
4127 test -z "$ac_c_werror_flag" ||
4128 test ! -s conftest.err
4129 } && test -s conftest.$ac_objext; then
4130 eval "$as_ac_Header=yes"
4131else
4132 echo "$as_me: failed program was:" >&5
4133sed 's/^/| /' conftest.$ac_ext >&5
4134
4135 eval "$as_ac_Header=no"
4136fi
4137
4138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139fi
4140ac_res=`eval echo '${'$as_ac_Header'}'`
4141 { echo "$as_me:$LINENO: result: $ac_res" >&5
4142echo "${ECHO_T}$ac_res" >&6; }
4143if test `eval echo '${'$as_ac_Header'}'` = yes; then
4144 cat >>confdefs.h <<_ACEOF
4145#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4146_ACEOF
4147
4148fi
4149
4150done
4151
4152
4153{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4154echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4155if test "${ac_cv_c_bigendian+set}" = set; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4157else
4158 # See if sys/param.h defines the BYTE_ORDER macro.
4159cat >conftest.$ac_ext <<_ACEOF
4160/* confdefs.h. */
4161_ACEOF
4162cat confdefs.h >>conftest.$ac_ext
4163cat >>conftest.$ac_ext <<_ACEOF
4164/* end confdefs.h. */
4165#include <sys/types.h>
4166#include <sys/param.h>
4167
4168int
4169main ()
4170{
4171#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4172 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4173 bogus endian macros
4174#endif
4175
4176 ;
4177 return 0;
4178}
4179_ACEOF
4180rm -f conftest.$ac_objext
4181if { (ac_try="$ac_compile"
4182case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185esac
4186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_compile") 2>conftest.er1
4188 ac_status=$?
4189 grep -v '^ *+' conftest.er1 >conftest.err
4190 rm -f conftest.er1
4191 cat conftest.err >&5
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } && {
4194 test -z "$ac_c_werror_flag" ||
4195 test ! -s conftest.err
4196 } && test -s conftest.$ac_objext; then
4197 # It does; now see whether it defined to BIG_ENDIAN or not.
4198cat >conftest.$ac_ext <<_ACEOF
4199/* confdefs.h. */
4200_ACEOF
4201cat confdefs.h >>conftest.$ac_ext
4202cat >>conftest.$ac_ext <<_ACEOF
4203/* end confdefs.h. */
4204#include <sys/types.h>
4205#include <sys/param.h>
4206
4207int
4208main ()
4209{
4210#if BYTE_ORDER != BIG_ENDIAN
4211 not big endian
4212#endif
4213
4214 ;
4215 return 0;
4216}
4217_ACEOF
4218rm -f conftest.$ac_objext
4219if { (ac_try="$ac_compile"
4220case "(($ac_try" in
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4223esac
4224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_compile") 2>conftest.er1
4226 ac_status=$?
4227 grep -v '^ *+' conftest.er1 >conftest.err
4228 rm -f conftest.er1
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } && {
4232 test -z "$ac_c_werror_flag" ||
4233 test ! -s conftest.err
4234 } && test -s conftest.$ac_objext; then
4235 ac_cv_c_bigendian=yes
4236else
4237 echo "$as_me: failed program was:" >&5
4238sed 's/^/| /' conftest.$ac_ext >&5
4239
4240 ac_cv_c_bigendian=no
4241fi
4242
4243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244else
4245 echo "$as_me: failed program was:" >&5
4246sed 's/^/| /' conftest.$ac_ext >&5
4247
4248 # It does not; compile a test program.
4249if test "$cross_compiling" = yes; then
4250 # try to guess the endianness by grepping values into an object file
4251 ac_cv_c_bigendian=unknown
4252 cat >conftest.$ac_ext <<_ACEOF
4253/* confdefs.h. */
4254_ACEOF
4255cat confdefs.h >>conftest.$ac_ext
4256cat >>conftest.$ac_ext <<_ACEOF
4257/* end confdefs.h. */
4258short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4259short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4260void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4261short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4262short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4263void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4264int
4265main ()
4266{
4267 _ascii (); _ebcdic ();
4268 ;
4269 return 0;
4270}
4271_ACEOF
4272rm -f conftest.$ac_objext
4273if { (ac_try="$ac_compile"
4274case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4277esac
4278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_compile") 2>conftest.er1
4280 ac_status=$?
4281 grep -v '^ *+' conftest.er1 >conftest.err
4282 rm -f conftest.er1
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } && {
4286 test -z "$ac_c_werror_flag" ||
4287 test ! -s conftest.err
4288 } && test -s conftest.$ac_objext; then
4289 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4290 ac_cv_c_bigendian=yes
4291fi
4292if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4293 if test "$ac_cv_c_bigendian" = unknown; then
4294 ac_cv_c_bigendian=no
4295 else
4296 # finding both strings is unlikely to happen, but who knows?
4297 ac_cv_c_bigendian=unknown
4298 fi
4299fi
4300else
4301 echo "$as_me: failed program was:" >&5
4302sed 's/^/| /' conftest.$ac_ext >&5
4303
4304
4305fi
4306
4307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308else
4309 cat >conftest.$ac_ext <<_ACEOF
4310/* confdefs.h. */
4311_ACEOF
4312cat confdefs.h >>conftest.$ac_ext
4313cat >>conftest.$ac_ext <<_ACEOF
4314/* end confdefs.h. */
4315$ac_includes_default
4316int
4317main ()
4318{
4319
4320 /* Are we little or big endian? From Harbison&Steele. */
4321 union
4322 {
4323 long int l;
4324 char c[sizeof (long int)];
4325 } u;
4326 u.l = 1;
4327 return u.c[sizeof (long int) - 1] == 1;
4328
4329 ;
4330 return 0;
4331}
4332_ACEOF
4333rm -f conftest$ac_exeext
4334if { (ac_try="$ac_link"
4335case "(($ac_try" in
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4338esac
4339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4340 (eval "$ac_link") 2>&5
4341 ac_status=$?
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4344 { (case "(($ac_try" in
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4347esac
4348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4349 (eval "$ac_try") 2>&5
4350 ac_status=$?
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); }; }; then
4353 ac_cv_c_bigendian=no
4354else
4355 echo "$as_me: program exited with status $ac_status" >&5
4356echo "$as_me: failed program was:" >&5
4357sed 's/^/| /' conftest.$ac_ext >&5
4358
4359( exit $ac_status )
4360ac_cv_c_bigendian=yes
4361fi
4362rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4363fi
4364
4365
4366fi
4367
4368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369fi
4370{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4371echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4372case $ac_cv_c_bigendian in
4373 yes)
4374 ENDIAN=big
4375 ;;
4376 no)
4377 ENDIAN=little
4378 ;;
4379 *)
4380 { { echo "$as_me:$LINENO: error: unknown endianness
4381presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4382echo "$as_me: error: unknown endianness
4383presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4384 { (exit 1); exit 1; }; } ;;
4385esac
4386
4387
4388if test "$cross_compiling" = yes; then
4389 LLVM_CROSS_COMPILING=1
4390
4391
4392{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4393echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4394if test "${ac_cv_build_exeext+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4396else
4397 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4398 ac_cv_build_exeext=.exe
4399else
4400 ac_build_prefix=${build_alias}-
4401
4402 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4403set dummy ${ac_build_prefix}gcc; ac_word=$2
4404{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4406if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4408else
4409 if test -n "$BUILD_CC"; then
4410 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4411else
4412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413for as_dir in $PATH
4414do
4415 IFS=$as_save_IFS
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 break 2
4422 fi
4423done
4424done
4425IFS=$as_save_IFS
4426
4427fi
4428fi
4429BUILD_CC=$ac_cv_prog_BUILD_CC
4430if test -n "$BUILD_CC"; then
4431 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4432echo "${ECHO_T}$BUILD_CC" >&6; }
4433else
4434 { echo "$as_me:$LINENO: result: no" >&5
4435echo "${ECHO_T}no" >&6; }
4436fi
4437
4438
4439 if test -z "$BUILD_CC"; then
4440 # Extract the first word of "gcc", so it can be a program name with args.
4441set dummy gcc; ac_word=$2
4442{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4444if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446else
4447 if test -n "$BUILD_CC"; then
4448 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4449else
4450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451for as_dir in $PATH
4452do
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4457 ac_cv_prog_BUILD_CC="gcc"
4458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 break 2
4460 fi
4461done
4462done
4463IFS=$as_save_IFS
4464
4465fi
4466fi
4467BUILD_CC=$ac_cv_prog_BUILD_CC
4468if test -n "$BUILD_CC"; then
4469 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4470echo "${ECHO_T}$BUILD_CC" >&6; }
4471else
4472 { echo "$as_me:$LINENO: result: no" >&5
4473echo "${ECHO_T}no" >&6; }
4474fi
4475
4476
4477 if test -z "$BUILD_CC"; then
4478 # Extract the first word of "cc", so it can be a program name with args.
4479set dummy cc; ac_word=$2
4480{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4482if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4484else
4485 if test -n "$BUILD_CC"; then
4486 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4487else
4488 ac_prog_rejected=no
4489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490for as_dir in $PATH
4491do
4492 IFS=$as_save_IFS
4493 test -z "$as_dir" && as_dir=.
4494 for ac_exec_ext in '' $ac_executable_extensions; do
4495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4496 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4497 ac_prog_rejected=yes
4498 continue
4499 fi
4500 ac_cv_prog_BUILD_CC="cc"
4501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4502 break 2
4503 fi
4504done
4505done
4506IFS=$as_save_IFS
4507
4508if test $ac_prog_rejected = yes; then
4509 # We found a bogon in the path, so make sure we never use it.
4510 set dummy $ac_cv_prog_BUILD_CC
4511 shift
4512 if test $# != 0; then
4513 # We chose a different compiler from the bogus one.
4514 # However, it has the same basename, so the bogon will be chosen
4515 # first if we set BUILD_CC to just the basename; use the full file name.
4516 shift
4517 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4518 fi
4519fi
4520fi
4521fi
4522BUILD_CC=$ac_cv_prog_BUILD_CC
4523if test -n "$BUILD_CC"; then
4524 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4525echo "${ECHO_T}$BUILD_CC" >&6; }
4526else
4527 { echo "$as_me:$LINENO: result: no" >&5
4528echo "${ECHO_T}no" >&6; }
4529fi
4530
4531
4532 fi
4533 fi
4534 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4535echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4536 { (exit 1); exit 1; }; }
4537 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4538 rm -f conftest*
4539 echo 'int main () { return 0; }' > conftest.$ac_ext
4540 ac_cv_build_exeext=
4541 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4542 (eval $ac_build_link) 2>&5
4543 ac_status=$?
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; then
4546 for file in conftest.*; do
4547 case $file in
4548 *.c | *.o | *.obj | *.dSYM) ;;
4549 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4550 esac
4551 done
4552 else
4553 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4554echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4555 { (exit 1); exit 1; }; }
4556 fi
4557 rm -f conftest*
4558 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4559fi
4560fi
4561
4562BUILD_EXEEXT=""
4563test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4564{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4565echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4566ac_build_exeext=$BUILD_EXEEXT
4567
4568 ac_build_prefix=${build_alias}-
4569 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4570set dummy ${ac_build_prefix}g++; ac_word=$2
4571{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4573if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4575else
4576 if test -n "$BUILD_CXX"; then
4577 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4578else
4579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580for as_dir in $PATH
4581do
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4586 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 break 2
4589 fi
4590done
4591done
4592IFS=$as_save_IFS
4593
4594fi
4595fi
4596BUILD_CXX=$ac_cv_prog_BUILD_CXX
4597if test -n "$BUILD_CXX"; then
4598 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4599echo "${ECHO_T}$BUILD_CXX" >&6; }
4600else
4601 { echo "$as_me:$LINENO: result: no" >&5
4602echo "${ECHO_T}no" >&6; }
4603fi
4604
4605
4606 if test -z "$BUILD_CXX"; then
4607 # Extract the first word of "g++", so it can be a program name with args.
4608set dummy g++; ac_word=$2
4609{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4611if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4613else
4614 if test -n "$BUILD_CXX"; then
4615 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4616else
4617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618for as_dir in $PATH
4619do
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624 ac_cv_prog_BUILD_CXX="g++"
4625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4627 fi
4628done
4629done
4630IFS=$as_save_IFS
4631
4632fi
4633fi
4634BUILD_CXX=$ac_cv_prog_BUILD_CXX
4635if test -n "$BUILD_CXX"; then
4636 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4637echo "${ECHO_T}$BUILD_CXX" >&6; }
4638else
4639 { echo "$as_me:$LINENO: result: no" >&5
4640echo "${ECHO_T}no" >&6; }
4641fi
4642
4643
4644 if test -z "$BUILD_CXX"; then
4645 # Extract the first word of "c++", so it can be a program name with args.
4646set dummy c++; ac_word=$2
4647{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4649if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4651else
4652 if test -n "$BUILD_CXX"; then
4653 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4654else
4655 ac_prog_rejected=no
4656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4663 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4664 ac_prog_rejected=yes
4665 continue
4666 fi
4667 ac_cv_prog_BUILD_CXX="c++"
4668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 break 2
4670 fi
4671done
4672done
4673IFS=$as_save_IFS
4674
4675if test $ac_prog_rejected = yes; then
4676 # We found a bogon in the path, so make sure we never use it.
4677 set dummy $ac_cv_prog_BUILD_CXX
4678 shift
4679 if test $# != 0; then
4680 # We chose a different compiler from the bogus one.
4681 # However, it has the same basename, so the bogon will be chosen
4682 # first if we set BUILD_CXX to just the basename; use the full file name.
4683 shift
4684 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4685 fi
4686fi
4687fi
4688fi
4689BUILD_CXX=$ac_cv_prog_BUILD_CXX
4690if test -n "$BUILD_CXX"; then
4691 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4692echo "${ECHO_T}$BUILD_CXX" >&6; }
4693else
4694 { echo "$as_me:$LINENO: result: no" >&5
4695echo "${ECHO_T}no" >&6; }
4696fi
4697
4698
4699 fi
4700 fi
4701else
4702 LLVM_CROSS_COMPILING=0
4703
4704fi
4705
4706if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4707 cvsbuild="yes"
4708 optimize="no"
4709 CVSBUILD=CVSBUILD=1
4710
4711else
4712 cvsbuild="no"
4713 optimize="yes"
4714fi
4715
4716
4717# Check whether --enable-optimized was given.
4718if test "${enable_optimized+set}" = set; then
4719 enableval=$enable_optimized;
4720else
4721 enableval=$optimize
4722fi
4723
4724if test ${enableval} = "no" ; then
4725 ENABLE_OPTIMIZED=
4726
4727else
4728 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4729
4730fi
4731
4732# Check whether --enable-profiling was given.
4733if test "${enable_profiling+set}" = set; then
4734 enableval=$enable_profiling;
4735else
4736 enableval="no"
4737fi
4738
4739if test ${enableval} = "no" ; then
4740 ENABLE_PROFILING=
4741
4742else
4743 ENABLE_PROFILING=ENABLE_PROFILING=1
4744
4745fi
4746
4747# Check whether --enable-assertions was given.
4748if test "${enable_assertions+set}" = set; then
4749 enableval=$enable_assertions;
4750else
4751 enableval="no"
4752fi
4753
4754if test ${enableval} = "yes" ; then
4755 DISABLE_ASSERTIONS=
4756
4757else
4758 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4759
4760fi
4761
4762# Check whether --enable-expensive-checks was given.
4763if test "${enable_expensive_checks+set}" = set; then
4764 enableval=$enable_expensive_checks;
4765else
4766 enableval="no"
4767fi
4768
4769if test ${enableval} = "yes" ; then
4770 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4771
4772 EXPENSIVE_CHECKS=yes
4773
4774else
4775 ENABLE_EXPENSIVE_CHECKS=
4776
4777 EXPENSIVE_CHECKS=no
4778
4779fi
4780
4781# Check whether --enable-debug-runtime was given.
4782if test "${enable_debug_runtime+set}" = set; then
4783 enableval=$enable_debug_runtime;
4784else
4785 enableval=no
4786fi
4787
4788if test ${enableval} = "no" ; then
4789 DEBUG_RUNTIME=
4790
4791else
4792 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4793
4794fi
4795
4796# Check whether --enable-debug-symbols was given.
4797if test "${enable_debug_symbols+set}" = set; then
4798 enableval=$enable_debug_symbols;
4799else
4800 enableval=no
4801fi
4802
4803if test ${enableval} = "no" ; then
4804 DEBUG_SYMBOLS=
4805
4806else
4807 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4808
4809fi
4810
4811# Check whether --enable-jit was given.
4812if test "${enable_jit+set}" = set; then
4813 enableval=$enable_jit;
4814else
4815 enableval=default
4816fi
4817
4818if test ${enableval} = "no"
4819then
4820 JIT=
4821
4822else
4823 case "$llvm_cv_target_arch" in
4824 x86) TARGET_HAS_JIT=1
4825 ;;
4826 Sparc) TARGET_HAS_JIT=0
4827 ;;
4828 PowerPC) TARGET_HAS_JIT=1
4829 ;;
4830 x86_64) TARGET_HAS_JIT=1
4831 ;;
4832 Alpha) TARGET_HAS_JIT=0
4833 ;;
4834 ARM) TARGET_HAS_JIT=1
4835 ;;
4836 Mips) TARGET_HAS_JIT=1
4837 ;;
4838 XCore) TARGET_HAS_JIT=0
4839 ;;
4840 MSP430) TARGET_HAS_JIT=0
4841 ;;
4842 SystemZ) TARGET_HAS_JIT=0
4843 ;;
4844 Blackfin) TARGET_HAS_JIT=0
4845 ;;
4846 MBlaze) TARGET_HAS_JIT=0
4847 ;;
4848 PTX) TARGET_HAS_JIT=0
4849 ;;
4850 *) TARGET_HAS_JIT=0
4851 ;;
4852 esac
4853fi
4854
4855# Check whether --enable-docs was given.
4856if test "${enable_docs+set}" = set; then
4857 enableval=$enable_docs;
4858else
4859 enableval=default
4860fi
4861
4862case "$enableval" in
4863 yes) ENABLE_DOCS=1
4864 ;;
4865 no) ENABLE_DOCS=0
4866 ;;
4867 default) ENABLE_DOCS=1
4868 ;;
4869 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4870echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4871 { (exit 1); exit 1; }; } ;;
4872esac
4873
4874# Check whether --enable-doxygen was given.
4875if test "${enable_doxygen+set}" = set; then
4876 enableval=$enable_doxygen;
4877else
4878 enableval=default
4879fi
4880
4881case "$enableval" in
4882 yes) ENABLE_DOXYGEN=1
4883 ;;
4884 no) ENABLE_DOXYGEN=0
4885 ;;
4886 default) ENABLE_DOXYGEN=0
4887 ;;
4888 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4889echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4890 { (exit 1); exit 1; }; } ;;
4891esac
4892
4893# Check whether --enable-threads was given.
4894if test "${enable_threads+set}" = set; then
4895 enableval=$enable_threads;
4896else
4897 enableval=default
4898fi
4899
4900case "$enableval" in
4901 yes) ENABLE_THREADS=1
4902 ;;
4903 no) ENABLE_THREADS=0
4904 ;;
4905 default) ENABLE_THREADS=1
4906 ;;
4907 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4908echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4909 { (exit 1); exit 1; }; } ;;
4910esac
4911
4912cat >>confdefs.h <<_ACEOF
4913#define ENABLE_THREADS $ENABLE_THREADS
4914_ACEOF
4915
4916
4917# Check whether --enable-pthreads was given.
4918if test "${enable_pthreads+set}" = set; then
4919 enableval=$enable_pthreads;
4920else
4921 enableval=default
4922fi
4923
4924case "$enableval" in
4925 yes) ENABLE_PTHREADS=1
4926 ;;
4927 no) ENABLE_PTHREADS=0
4928 ;;
4929 default) ENABLE_PTHREADS=1
4930 ;;
4931 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4932echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4933 { (exit 1); exit 1; }; } ;;
4934esac
4935
4936# Check whether --enable-pic was given.
4937if test "${enable_pic+set}" = set; then
4938 enableval=$enable_pic;
4939else
4940 enableval=default
4941fi
4942
4943case "$enableval" in
4944 yes) ENABLE_PIC=1
4945 ;;
4946 no) ENABLE_PIC=0
4947 ;;
4948 default) ENABLE_PIC=1
4949 ;;
4950 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4951echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4952 { (exit 1); exit 1; }; } ;;
4953esac
4954
4955cat >>confdefs.h <<_ACEOF
4956#define ENABLE_PIC $ENABLE_PIC
4957_ACEOF
4958
4959
4960# Check whether --enable-shared was given.
4961if test "${enable_shared+set}" = set; then
4962 enableval=$enable_shared;
4963else
4964 enableval=default
4965fi
4966
4967case "$enableval" in
4968 yes) ENABLE_SHARED=1
4969 ;;
4970 no) ENABLE_SHARED=0
4971 ;;
4972 default) ENABLE_SHARED=0
4973 ;;
4974 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4975echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4976 { (exit 1); exit 1; }; } ;;
4977esac
4978
4979# Check whether --enable-embed-stdcxx was given.
4980if test "${enable_embed_stdcxx+set}" = set; then
4981 enableval=$enable_embed_stdcxx;
4982else
4983 enableval=default
4984fi
4985
4986case "$enableval" in
4987 yes) ENABLE_EMBED_STDCXX=1
4988 ;;
4989 no) ENABLE_EMBED_STDCXX=0
4990 ;;
4991 default) ENABLE_EMBED_STDCXX=0
4992 ;;
4993 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
4994echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
4995 { (exit 1); exit 1; }; } ;;
4996esac
4997
4998# Check whether --enable-timestamps was given.
4999if test "${enable_timestamps+set}" = set; then
5000 enableval=$enable_timestamps;
5001else
5002 enableval=default
5003fi
5004
5005case "$enableval" in
5006 yes) ENABLE_TIMESTAMPS=1
5007 ;;
5008 no) ENABLE_TIMESTAMPS=0
5009 ;;
5010 default) ENABLE_TIMESTAMPS=1
5011 ;;
5012 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5013echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5014 { (exit 1); exit 1; }; } ;;
5015esac
5016
5017cat >>confdefs.h <<_ACEOF
5018#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5019_ACEOF
5020
5021
5022TARGETS_TO_BUILD=""
5023# Check whether --enable-targets was given.
5024if test "${enable_targets+set}" = set; then
5025 enableval=$enable_targets;
5026else
5027 enableval=all
5028fi
5029
5030if test "$enableval" = host-only ; then
5031 enableval=host
5032fi
5033case "$enableval" in
5034 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5035 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5036 case "$a_target" in
5037 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5038 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5039 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5040 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5041 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5042 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5043 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5044 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5045 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5046 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5047 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5048 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5049 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5050 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5051 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5052 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5053 host) case "$llvm_cv_target_arch" in
5054 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5055 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5056 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5057 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5058 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5059 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5060 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5061 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5062 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5063 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5064 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5065 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5066 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5067 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5068 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5069echo "$as_me: error: Can not set target to build" >&2;}
5070 { (exit 1); exit 1; }; } ;;
5071 esac ;;
5072 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5073echo "$as_me: error: Unrecognized target $a_target" >&2;}
5074 { (exit 1); exit 1; }; } ;;
5075 esac
5076 done
5077 ;;
5078esac
5079TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5080
5081
5082# Determine whether we are building LLVM support for the native architecture.
5083# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5084for a_target in $TARGETS_TO_BUILD; do
5085 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5086
5087cat >>confdefs.h <<_ACEOF
5088#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5089_ACEOF
5090
5091 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5092 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5093 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5094 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5095 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5096 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5097 fi
5098
5099cat >>confdefs.h <<_ACEOF
5100#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5101_ACEOF
5102
5103
5104cat >>confdefs.h <<_ACEOF
5105#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5106_ACEOF
5107
5108
5109cat >>confdefs.h <<_ACEOF
5110#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5111_ACEOF
5112
5113
5114cat >>confdefs.h <<_ACEOF
5115#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5116_ACEOF
5117
5118 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5119
5120cat >>confdefs.h <<_ACEOF
5121#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5122_ACEOF
5123
5124 fi
5125 fi
5126done
5127
5128# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5129# target feature def files.
5130LLVM_ENUM_TARGETS=""
5131LLVM_ENUM_ASM_PRINTERS=""
5132LLVM_ENUM_ASM_PARSERS=""
5133LLVM_ENUM_DISASSEMBLERS=""
5134for target_to_build in $TARGETS_TO_BUILD; do
5135 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5136 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5137 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5138 fi
5139 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5140 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5141 fi
5142 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5143 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5144 fi
5145done
5146
5147
5148
5149
5150
5151# Check whether --enable-cbe-printf-a was given.
5152if test "${enable_cbe_printf_a+set}" = set; then
5153 enableval=$enable_cbe_printf_a;
5154else
5155 enableval=default
5156fi
5157
5158case "$enableval" in
5159 yes) ENABLE_CBE_PRINTF_A=1
5160 ;;
5161 no) ENABLE_CBE_PRINTF_A=0
5162 ;;
5163 default) ENABLE_CBE_PRINTF_A=1
5164 ;;
5165 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5166echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5167 { (exit 1); exit 1; }; } ;;
5168esac
5169
5170cat >>confdefs.h <<_ACEOF
5171#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5172_ACEOF
5173
5174
5175
5176# Check whether --with-optimize-option was given.
5177if test "${with_optimize_option+set}" = set; then
5178 withval=$with_optimize_option;
5179else
5180 withval=default
5181fi
5182
5183{ echo "$as_me:$LINENO: checking optimization flags" >&5
5184echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5185case "$withval" in
5186 default)
5187 case "$llvm_cv_os_type" in
5188 FreeBSD) optimize_option=-O2 ;;
5189 MingW) optimize_option=-O2 ;;
5190 *) optimize_option=-O3 ;;
5191 esac ;;
5192 *) optimize_option="$withval" ;;
5193esac
5194OPTIMIZE_OPTION=$optimize_option
5195
5196{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5197echo "${ECHO_T}$optimize_option" >&6; }
5198
5199
5200# Check whether --with-extra-options was given.
5201if test "${with_extra_options+set}" = set; then
5202 withval=$with_extra_options;
5203else
5204 withval=default
5205fi
5206
5207case "$withval" in
5208 default) EXTRA_OPTIONS= ;;
5209 *) EXTRA_OPTIONS=$withval ;;
5210esac
5211EXTRA_OPTIONS=$EXTRA_OPTIONS
5212
5213
5214
5215# Check whether --with-extra-ld-options was given.
5216if test "${with_extra_ld_options+set}" = set; then
5217 withval=$with_extra_ld_options;
5218else
5219 withval=default
5220fi
5221
5222case "$withval" in
5223 default) EXTRA_LD_OPTIONS= ;;
5224 *) EXTRA_LD_OPTIONS=$withval ;;
5225esac
5226EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5227
5228
5229# Check whether --enable-bindings was given.
5230if test "${enable_bindings+set}" = set; then
5231 enableval=$enable_bindings;
5232else
5233 enableval=default
5234fi
5235
5236BINDINGS_TO_BUILD=""
5237case "$enableval" in
5238 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5239 all ) BINDINGS_TO_BUILD="ocaml" ;;
5240 none | no) BINDINGS_TO_BUILD="" ;;
5241 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5242 case "$a_binding" in
5243 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5244 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5245echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5246 { (exit 1); exit 1; }; } ;;
5247 esac
5248 done
5249 ;;
5250esac
5251
5252
5253# Check whether --with-ocaml-libdir was given.
5254if test "${with_ocaml_libdir+set}" = set; then
5255 withval=$with_ocaml_libdir;
5256else
5257 withval=auto
5258fi
5259
5260case "$withval" in
5261 auto) with_ocaml_libdir="$withval" ;;
5262 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5263 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5264echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5265 { (exit 1); exit 1; }; } ;;
5266esac
5267
5268
5269# Check whether --with-clang-resource-dir was given.
5270if test "${with_clang_resource_dir+set}" = set; then
5271 withval=$with_clang_resource_dir;
5272else
5273 withval=""
5274fi
5275
5276
5277cat >>confdefs.h <<_ACEOF
5278#define CLANG_RESOURCE_DIR "$withval"
5279_ACEOF
5280
5281
5282
5283# Check whether --with-c-include-dirs was given.
5284if test "${with_c_include_dirs+set}" = set; then
5285 withval=$with_c_include_dirs;
5286else
5287 withval=""
5288fi
5289
5290
5291cat >>confdefs.h <<_ACEOF
5292#define C_INCLUDE_DIRS "$withval"
5293_ACEOF
5294
5295
5296
5297# Check whether --with-cxx-include-root was given.
5298if test "${with_cxx_include_root+set}" = set; then
5299 withval=$with_cxx_include_root;
5300else
5301 withval=""
5302fi
5303
5304
5305cat >>confdefs.h <<_ACEOF
5306#define CXX_INCLUDE_ROOT "$withval"
5307_ACEOF
5308
5309
5310
5311# Check whether --with-cxx-include-arch was given.
5312if test "${with_cxx_include_arch+set}" = set; then
5313 withval=$with_cxx_include_arch;
5314else
5315 withval=""
5316fi
5317
5318
5319cat >>confdefs.h <<_ACEOF
5320#define CXX_INCLUDE_ARCH "$withval"
5321_ACEOF
5322
5323
5324
5325# Check whether --with-cxx-include-32bit-dir was given.
5326if test "${with_cxx_include_32bit_dir+set}" = set; then
5327 withval=$with_cxx_include_32bit_dir;
5328else
5329 withval=""
5330fi
5331
5332
5333cat >>confdefs.h <<_ACEOF
5334#define CXX_INCLUDE_32BIT_DIR "$withval"
5335_ACEOF
5336
5337
5338
5339# Check whether --with-cxx-include-64bit-dir was given.
5340if test "${with_cxx_include_64bit_dir+set}" = set; then
5341 withval=$with_cxx_include_64bit_dir;
5342else
5343 withval=""
5344fi
5345
5346
5347cat >>confdefs.h <<_ACEOF
5348#define CXX_INCLUDE_64BIT_DIR "$withval"
5349_ACEOF
5350
5351
5352
5353# Check whether --with-binutils-include was given.
5354if test "${with_binutils_include+set}" = set; then
5355 withval=$with_binutils_include;
5356else
5357 withval=default
5358fi
5359
5360case "$withval" in
5361 default) WITH_BINUTILS_INCDIR=default ;;
5362 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5363 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5364echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5365 { (exit 1); exit 1; }; } ;;
5366esac
5367if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5368 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5369
5370 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5371 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5372 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5373echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5374 { (exit 1); exit 1; }; };
5375 fi
5376fi
5377
5378
5379# Check whether --with-bug-report-url was given.
5380if test "${with_bug_report_url+set}" = set; then
5381 withval=$with_bug_report_url;
5382else
5383 withval="http://llvm.org/bugs/"
5384fi
5385
5386
5387cat >>confdefs.h <<_ACEOF
5388#define BUG_REPORT_URL "$withval"
5389_ACEOF
5390
5391
5392# Check whether --enable-libffi was given.
5393if test "${enable_libffi+set}" = set; then
5394 enableval=$enable_libffi; case "$enableval" in
5395 yes) llvm_cv_enable_libffi="yes" ;;
5396 no) llvm_cv_enable_libffi="no" ;;
5397 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5398echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5399 { (exit 1); exit 1; }; } ;;
5400 esac
5401else
5402 llvm_cv_enable_libffi=no
5403fi
5404
5405
5406
5407{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5408echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5409if test "${lt_cv_path_NM+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5411else
5412 if test -n "$NM"; then
5413 # Let the user override the test.
5414 lt_cv_path_NM="$NM"
5415else
5416 lt_nm_to_check="${ac_tool_prefix}nm"
5417 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5418 lt_nm_to_check="$lt_nm_to_check nm"
5419 fi
5420 for lt_tmp_nm in $lt_nm_to_check; do
5421 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5422 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5423 IFS="$lt_save_ifs"
5424 test -z "$ac_dir" && ac_dir=.
5425 tmp_nm="$ac_dir/$lt_tmp_nm"
5426 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5427 # Check to see if the nm accepts a BSD-compat flag.
5428 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5429 # nm: unknown option "B" ignored
5430 # Tru64's nm complains that /dev/null is an invalid object file
5431 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5432 */dev/null* | *'Invalid file or object type'*)
5433 lt_cv_path_NM="$tmp_nm -B"
5434 break
5435 ;;
5436 *)
5437 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5438 */dev/null*)
5439 lt_cv_path_NM="$tmp_nm -p"
5440 break
5441 ;;
5442 *)
5443 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5444 continue # so that we can try to find one that supports BSD flags
5445 ;;
5446 esac
5447 ;;
5448 esac
5449 fi
5450 done
5451 IFS="$lt_save_ifs"
5452 done
5453 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5454fi
5455fi
5456{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5457echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5458NM="$lt_cv_path_NM"
5459
5460
5461
5462{ echo "$as_me:$LINENO: checking for GNU make" >&5
5463echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5464if test "${llvm_cv_gnu_make_command+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5466else
5467 llvm_cv_gnu_make_command=''
5468 for a in "$MAKE" make gmake gnumake ; do
5469 if test -z "$a" ; then continue ; fi ;
5470 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5471 then
5472 llvm_cv_gnu_make_command=$a ;
5473 break;
5474 fi
5475 done
5476fi
5477{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5478echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5479 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5480 ifGNUmake='' ;
5481 else
5482 ifGNUmake='#' ;
5483 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5484echo "${ECHO_T}\"Not found\"" >&6; };
5485 fi
5486
5487
5488{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5489echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5490LN_S=$as_ln_s
5491if test "$LN_S" = "ln -s"; then
5492 { echo "$as_me:$LINENO: result: yes" >&5
5493echo "${ECHO_T}yes" >&6; }
5494else
5495 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5496echo "${ECHO_T}no, using $LN_S" >&6; }
5497fi
5498
5499# Extract the first word of "cmp", so it can be a program name with args.
5500set dummy cmp; ac_word=$2
5501{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5503if test "${ac_cv_path_CMP+set}" = set; then
5504 echo $ECHO_N "(cached) $ECHO_C" >&6
5505else
5506 case $CMP in
5507 [\\/]* | ?:[\\/]*)
5508 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5509 ;;
5510 *)
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512for as_dir in $PATH
5513do
5514 IFS=$as_save_IFS
5515 test -z "$as_dir" && as_dir=.
5516 for ac_exec_ext in '' $ac_executable_extensions; do
5517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5518 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 break 2
5521 fi
5522done
5523done
5524IFS=$as_save_IFS
5525
5526 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5527 ;;
5528esac
5529fi
5530CMP=$ac_cv_path_CMP
5531if test -n "$CMP"; then
5532 { echo "$as_me:$LINENO: result: $CMP" >&5
5533echo "${ECHO_T}$CMP" >&6; }
5534else
5535 { echo "$as_me:$LINENO: result: no" >&5
5536echo "${ECHO_T}no" >&6; }
5537fi
5538
5539
5540# Extract the first word of "cp", so it can be a program name with args.
5541set dummy cp; ac_word=$2
5542{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5544if test "${ac_cv_path_CP+set}" = set; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
5546else
5547 case $CP in
5548 [\\/]* | ?:[\\/]*)
5549 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5550 ;;
5551 *)
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553for as_dir in $PATH
5554do
5555 IFS=$as_save_IFS
5556 test -z "$as_dir" && as_dir=.
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5559 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5561 break 2
5562 fi
5563done
5564done
5565IFS=$as_save_IFS
5566
5567 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5568 ;;
5569esac
5570fi
5571CP=$ac_cv_path_CP
5572if test -n "$CP"; then
5573 { echo "$as_me:$LINENO: result: $CP" >&5
5574echo "${ECHO_T}$CP" >&6; }
5575else
5576 { echo "$as_me:$LINENO: result: no" >&5
5577echo "${ECHO_T}no" >&6; }
5578fi
5579
5580
5581# Extract the first word of "date", so it can be a program name with args.
5582set dummy date; ac_word=$2
5583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5585if test "${ac_cv_path_DATE+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5587else
5588 case $DATE in
5589 [\\/]* | ?:[\\/]*)
5590 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5591 ;;
5592 *)
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594for as_dir in $PATH
5595do
5596 IFS=$as_save_IFS
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5600 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 break 2
5603 fi
5604done
5605done
5606IFS=$as_save_IFS
5607
5608 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5609 ;;
5610esac
5611fi
5612DATE=$ac_cv_path_DATE
5613if test -n "$DATE"; then
5614 { echo "$as_me:$LINENO: result: $DATE" >&5
5615echo "${ECHO_T}$DATE" >&6; }
5616else
5617 { echo "$as_me:$LINENO: result: no" >&5
5618echo "${ECHO_T}no" >&6; }
5619fi
5620
5621
5622# Extract the first word of "find", so it can be a program name with args.
5623set dummy find; ac_word=$2
5624{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5626if test "${ac_cv_path_FIND+set}" = set; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
5628else
5629 case $FIND in
5630 [\\/]* | ?:[\\/]*)
5631 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5632 ;;
5633 *)
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635for as_dir in $PATH
5636do
5637 IFS=$as_save_IFS
5638 test -z "$as_dir" && as_dir=.
5639 for ac_exec_ext in '' $ac_executable_extensions; do
5640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5641 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5643 break 2
5644 fi
5645done
5646done
5647IFS=$as_save_IFS
5648
5649 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5650 ;;
5651esac
5652fi
5653FIND=$ac_cv_path_FIND
5654if test -n "$FIND"; then
5655 { echo "$as_me:$LINENO: result: $FIND" >&5
5656echo "${ECHO_T}$FIND" >&6; }
5657else
5658 { echo "$as_me:$LINENO: result: no" >&5
5659echo "${ECHO_T}no" >&6; }
5660fi
5661
5662
5663# Extract the first word of "grep", so it can be a program name with args.
5664set dummy grep; ac_word=$2
5665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5667if test "${ac_cv_path_GREP+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5669else
5670 case $GREP in
5671 [\\/]* | ?:[\\/]*)
5672 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5673 ;;
5674 *)
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676for as_dir in $PATH
5677do
5678 IFS=$as_save_IFS
5679 test -z "$as_dir" && as_dir=.
5680 for ac_exec_ext in '' $ac_executable_extensions; do
5681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5682 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5684 break 2
5685 fi
5686done
5687done
5688IFS=$as_save_IFS
5689
5690 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5691 ;;
5692esac
5693fi
5694GREP=$ac_cv_path_GREP
5695if test -n "$GREP"; then
5696 { echo "$as_me:$LINENO: result: $GREP" >&5
5697echo "${ECHO_T}$GREP" >&6; }
5698else
5699 { echo "$as_me:$LINENO: result: no" >&5
5700echo "${ECHO_T}no" >&6; }
5701fi
5702
5703
5704# Extract the first word of "mkdir", so it can be a program name with args.
5705set dummy mkdir; ac_word=$2
5706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5708if test "${ac_cv_path_MKDIR+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5710else
5711 case $MKDIR in
5712 [\\/]* | ?:[\\/]*)
5713 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5714 ;;
5715 *)
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717for as_dir in $PATH
5718do
5719 IFS=$as_save_IFS
5720 test -z "$as_dir" && as_dir=.
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5723 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5725 break 2
5726 fi
5727done
5728done
5729IFS=$as_save_IFS
5730
5731 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5732 ;;
5733esac
5734fi
5735MKDIR=$ac_cv_path_MKDIR
5736if test -n "$MKDIR"; then
5737 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5738echo "${ECHO_T}$MKDIR" >&6; }
5739else
5740 { echo "$as_me:$LINENO: result: no" >&5
5741echo "${ECHO_T}no" >&6; }
5742fi
5743
5744
5745# Extract the first word of "mv", so it can be a program name with args.
5746set dummy mv; ac_word=$2
5747{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5749if test "${ac_cv_path_MV+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5751else
5752 case $MV in
5753 [\\/]* | ?:[\\/]*)
5754 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5755 ;;
5756 *)
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758for as_dir in $PATH
5759do
5760 IFS=$as_save_IFS
5761 test -z "$as_dir" && as_dir=.
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5764 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 break 2
5767 fi
5768done
5769done
5770IFS=$as_save_IFS
5771
5772 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5773 ;;
5774esac
5775fi
5776MV=$ac_cv_path_MV
5777if test -n "$MV"; then
5778 { echo "$as_me:$LINENO: result: $MV" >&5
5779echo "${ECHO_T}$MV" >&6; }
5780else
5781 { echo "$as_me:$LINENO: result: no" >&5
5782echo "${ECHO_T}no" >&6; }
5783fi
5784
5785
5786if test -n "$ac_tool_prefix"; then
5787 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5788set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5789{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5791if test "${ac_cv_prog_RANLIB+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5793else
5794 if test -n "$RANLIB"; then
5795 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5796else
5797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798for as_dir in $PATH
5799do
5800 IFS=$as_save_IFS
5801 test -z "$as_dir" && as_dir=.
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5804 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5806 break 2
5807 fi
5808done
5809done
5810IFS=$as_save_IFS
5811
5812fi
5813fi
5814RANLIB=$ac_cv_prog_RANLIB
5815if test -n "$RANLIB"; then
5816 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5817echo "${ECHO_T}$RANLIB" >&6; }
5818else
5819 { echo "$as_me:$LINENO: result: no" >&5
5820echo "${ECHO_T}no" >&6; }
5821fi
5822
5823
5824fi
5825if test -z "$ac_cv_prog_RANLIB"; then
5826 ac_ct_RANLIB=$RANLIB
5827 # Extract the first word of "ranlib", so it can be a program name with args.
5828set dummy ranlib; ac_word=$2
5829{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5831if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5833else
5834 if test -n "$ac_ct_RANLIB"; then
5835 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5836else
5837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838for as_dir in $PATH
5839do
5840 IFS=$as_save_IFS
5841 test -z "$as_dir" && as_dir=.
5842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5844 ac_cv_prog_ac_ct_RANLIB="ranlib"
5845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5846 break 2
5847 fi
5848done
5849done
5850IFS=$as_save_IFS
5851
5852fi
5853fi
5854ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5855if test -n "$ac_ct_RANLIB"; then
5856 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5857echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5858else
5859 { echo "$as_me:$LINENO: result: no" >&5
5860echo "${ECHO_T}no" >&6; }
5861fi
5862
5863 if test "x$ac_ct_RANLIB" = x; then
5864 RANLIB=":"
5865 else
5866 case $cross_compiling:$ac_tool_warned in
5867yes:)
5868{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5869whose name does not start with the host triplet. If you think this
5870configuration is useful to you, please write to autoconf@gnu.org." >&5
5871echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5872whose name does not start with the host triplet. If you think this
5873configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5874ac_tool_warned=yes ;;
5875esac
5876 RANLIB=$ac_ct_RANLIB
5877 fi
5878else
5879 RANLIB="$ac_cv_prog_RANLIB"
5880fi
5881
5882if test -n "$ac_tool_prefix"; then
5883 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5884set dummy ${ac_tool_prefix}ar; ac_word=$2
5885{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5887if test "${ac_cv_prog_AR+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5889else
5890 if test -n "$AR"; then
5891 ac_cv_prog_AR="$AR" # Let the user override the test.
5892else
5893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894for as_dir in $PATH
5895do
5896 IFS=$as_save_IFS
5897 test -z "$as_dir" && as_dir=.
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5900 ac_cv_prog_AR="${ac_tool_prefix}ar"
5901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5902 break 2
5903 fi
5904done
5905done
5906IFS=$as_save_IFS
5907
5908fi
5909fi
5910AR=$ac_cv_prog_AR
5911if test -n "$AR"; then
5912 { echo "$as_me:$LINENO: result: $AR" >&5
5913echo "${ECHO_T}$AR" >&6; }
5914else
5915 { echo "$as_me:$LINENO: result: no" >&5
5916echo "${ECHO_T}no" >&6; }
5917fi
5918
5919
5920fi
5921if test -z "$ac_cv_prog_AR"; then
5922 ac_ct_AR=$AR
5923 # Extract the first word of "ar", so it can be a program name with args.
5924set dummy ar; ac_word=$2
5925{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5927if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5929else
5930 if test -n "$ac_ct_AR"; then
5931 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5932else
5933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934for as_dir in $PATH
5935do
5936 IFS=$as_save_IFS
5937 test -z "$as_dir" && as_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
5939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5940 ac_cv_prog_ac_ct_AR="ar"
5941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 break 2
5943 fi
5944done
5945done
5946IFS=$as_save_IFS
5947
5948fi
5949fi
5950ac_ct_AR=$ac_cv_prog_ac_ct_AR
5951if test -n "$ac_ct_AR"; then
5952 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5953echo "${ECHO_T}$ac_ct_AR" >&6; }
5954else
5955 { echo "$as_me:$LINENO: result: no" >&5
5956echo "${ECHO_T}no" >&6; }
5957fi
5958
5959 if test "x$ac_ct_AR" = x; then
5960 AR="false"
5961 else
5962 case $cross_compiling:$ac_tool_warned in
5963yes:)
5964{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5965whose name does not start with the host triplet. If you think this
5966configuration is useful to you, please write to autoconf@gnu.org." >&5
5967echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5968whose name does not start with the host triplet. If you think this
5969configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5970ac_tool_warned=yes ;;
5971esac
5972 AR=$ac_ct_AR
5973 fi
5974else
5975 AR="$ac_cv_prog_AR"
5976fi
5977
5978# Extract the first word of "rm", so it can be a program name with args.
5979set dummy rm; ac_word=$2
5980{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5982if test "${ac_cv_path_RM+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5984else
5985 case $RM in
5986 [\\/]* | ?:[\\/]*)
5987 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5988 ;;
5989 *)
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991for as_dir in $PATH
5992do
5993 IFS=$as_save_IFS
5994 test -z "$as_dir" && as_dir=.
5995 for ac_exec_ext in '' $ac_executable_extensions; do
5996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5997 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5999 break 2
6000 fi
6001done
6002done
6003IFS=$as_save_IFS
6004
6005 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6006 ;;
6007esac
6008fi
6009RM=$ac_cv_path_RM
6010if test -n "$RM"; then
6011 { echo "$as_me:$LINENO: result: $RM" >&5
6012echo "${ECHO_T}$RM" >&6; }
6013else
6014 { echo "$as_me:$LINENO: result: no" >&5
6015echo "${ECHO_T}no" >&6; }
6016fi
6017
6018
6019# Extract the first word of "sed", so it can be a program name with args.
6020set dummy sed; ac_word=$2
6021{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6023if test "${ac_cv_path_SED+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6025else
6026 case $SED in
6027 [\\/]* | ?:[\\/]*)
6028 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6029 ;;
6030 *)
6031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032for as_dir in $PATH
6033do
6034 IFS=$as_save_IFS
6035 test -z "$as_dir" && as_dir=.
6036 for ac_exec_ext in '' $ac_executable_extensions; do
6037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6038 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 break 2
6041 fi
6042done
6043done
6044IFS=$as_save_IFS
6045
6046 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6047 ;;
6048esac
6049fi
6050SED=$ac_cv_path_SED
6051if test -n "$SED"; then
6052 { echo "$as_me:$LINENO: result: $SED" >&5
6053echo "${ECHO_T}$SED" >&6; }
6054else
6055 { echo "$as_me:$LINENO: result: no" >&5
6056echo "${ECHO_T}no" >&6; }
6057fi
6058
6059
6060# Extract the first word of "tar", so it can be a program name with args.
6061set dummy tar; ac_word=$2
6062{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6064if test "${ac_cv_path_TAR+set}" = set; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
6066else
6067 case $TAR in
6068 [\\/]* | ?:[\\/]*)
6069 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6070 ;;
6071 *)
6072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073for as_dir in $PATH
6074do
6075 IFS=$as_save_IFS
6076 test -z "$as_dir" && as_dir=.
6077 for ac_exec_ext in '' $ac_executable_extensions; do
6078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6079 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 break 2
6082 fi
6083done
6084done
6085IFS=$as_save_IFS
6086
6087 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6088 ;;
6089esac
6090fi
6091TAR=$ac_cv_path_TAR
6092if test -n "$TAR"; then
6093 { echo "$as_me:$LINENO: result: $TAR" >&5
6094echo "${ECHO_T}$TAR" >&6; }
6095else
6096 { echo "$as_me:$LINENO: result: no" >&5
6097echo "${ECHO_T}no" >&6; }
6098fi
6099
6100
6101# Extract the first word of "pwd", so it can be a program name with args.
6102set dummy pwd; ac_word=$2
6103{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6105if test "${ac_cv_path_BINPWD+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6107else
6108 case $BINPWD in
6109 [\\/]* | ?:[\\/]*)
6110 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6111 ;;
6112 *)
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114for as_dir in $PATH
6115do
6116 IFS=$as_save_IFS
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6120 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 break 2
6123 fi
6124done
6125done
6126IFS=$as_save_IFS
6127
6128 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6129 ;;
6130esac
6131fi
6132BINPWD=$ac_cv_path_BINPWD
6133if test -n "$BINPWD"; then
6134 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6135echo "${ECHO_T}$BINPWD" >&6; }
6136else
6137 { echo "$as_me:$LINENO: result: no" >&5
6138echo "${ECHO_T}no" >&6; }
6139fi
6140
6141
6142
6143# Extract the first word of "Graphviz", so it can be a program name with args.
6144set dummy Graphviz; ac_word=$2
6145{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6147if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6149else
6150 case $GRAPHVIZ in
6151 [\\/]* | ?:[\\/]*)
6152 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6153 ;;
6154 *)
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156for as_dir in $PATH
6157do
6158 IFS=$as_save_IFS
6159 test -z "$as_dir" && as_dir=.
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6162 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 break 2
6165 fi
6166done
6167done
6168IFS=$as_save_IFS
6169
6170 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6171 ;;
6172esac
6173fi
6174GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6175if test -n "$GRAPHVIZ"; then
6176 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6177echo "${ECHO_T}$GRAPHVIZ" >&6; }
6178else
6179 { echo "$as_me:$LINENO: result: no" >&5
6180echo "${ECHO_T}no" >&6; }
6181fi
6182
6183
6184if test "$GRAPHVIZ" != "echo Graphviz" ; then
6185
6186cat >>confdefs.h <<\_ACEOF
6187#define HAVE_GRAPHVIZ 1
6188_ACEOF
6189
6190 if test "$llvm_cv_os_type" = "MingW" ; then
6191 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6192 fi
6193
6194cat >>confdefs.h <<_ACEOF
6195#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6196_ACEOF
6197
6198fi
6199# Extract the first word of "dot", so it can be a program name with args.
6200set dummy dot; ac_word=$2
6201{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6203if test "${ac_cv_path_DOT+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6205else
6206 case $DOT in
6207 [\\/]* | ?:[\\/]*)
6208 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6209 ;;
6210 *)
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212for as_dir in $PATH
6213do
6214 IFS=$as_save_IFS
6215 test -z "$as_dir" && as_dir=.
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6218 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6220 break 2
6221 fi
6222done
6223done
6224IFS=$as_save_IFS
6225
6226 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6227 ;;
6228esac
6229fi
6230DOT=$ac_cv_path_DOT
6231if test -n "$DOT"; then
6232 { echo "$as_me:$LINENO: result: $DOT" >&5
6233echo "${ECHO_T}$DOT" >&6; }
6234else
6235 { echo "$as_me:$LINENO: result: no" >&5
6236echo "${ECHO_T}no" >&6; }
6237fi
6238
6239
6240if test "$DOT" != "echo dot" ; then
6241
6242cat >>confdefs.h <<\_ACEOF
6243#define HAVE_DOT 1
6244_ACEOF
6245
6246 if test "$llvm_cv_os_type" = "MingW" ; then
6247 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6248 fi
6249
6250cat >>confdefs.h <<_ACEOF
6251#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6252_ACEOF
6253
6254fi
6255# Extract the first word of "fdp", so it can be a program name with args.
6256set dummy fdp; ac_word=$2
6257{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6259if test "${ac_cv_path_FDP+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6261else
6262 case $FDP in
6263 [\\/]* | ?:[\\/]*)
6264 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6265 ;;
6266 *)
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268for as_dir in $PATH
6269do
6270 IFS=$as_save_IFS
6271 test -z "$as_dir" && as_dir=.
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6274 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6276 break 2
6277 fi
6278done
6279done
6280IFS=$as_save_IFS
6281
6282 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6283 ;;
6284esac
6285fi
6286FDP=$ac_cv_path_FDP
6287if test -n "$FDP"; then
6288 { echo "$as_me:$LINENO: result: $FDP" >&5
6289echo "${ECHO_T}$FDP" >&6; }
6290else
6291 { echo "$as_me:$LINENO: result: no" >&5
6292echo "${ECHO_T}no" >&6; }
6293fi
6294
6295
6296if test "$FDP" != "echo fdp" ; then
6297
6298cat >>confdefs.h <<\_ACEOF
6299#define HAVE_FDP 1
6300_ACEOF
6301
6302 if test "$llvm_cv_os_type" = "MingW" ; then
6303 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6304 fi
6305
6306cat >>confdefs.h <<_ACEOF
6307#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6308_ACEOF
6309
6310fi
6311# Extract the first word of "neato", so it can be a program name with args.
6312set dummy neato; ac_word=$2
6313{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6315if test "${ac_cv_path_NEATO+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6317else
6318 case $NEATO in
6319 [\\/]* | ?:[\\/]*)
6320 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6321 ;;
6322 *)
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324for as_dir in $PATH
6325do
6326 IFS=$as_save_IFS
6327 test -z "$as_dir" && as_dir=.
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6330 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 break 2
6333 fi
6334done
6335done
6336IFS=$as_save_IFS
6337
6338 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6339 ;;
6340esac
6341fi
6342NEATO=$ac_cv_path_NEATO
6343if test -n "$NEATO"; then
6344 { echo "$as_me:$LINENO: result: $NEATO" >&5
6345echo "${ECHO_T}$NEATO" >&6; }
6346else
6347 { echo "$as_me:$LINENO: result: no" >&5
6348echo "${ECHO_T}no" >&6; }
6349fi
6350
6351
6352if test "$NEATO" != "echo neato" ; then
6353
6354cat >>confdefs.h <<\_ACEOF
6355#define HAVE_NEATO 1
6356_ACEOF
6357
6358 if test "$llvm_cv_os_type" = "MingW" ; then
6359 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6360 fi
6361
6362cat >>confdefs.h <<_ACEOF
6363#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6364_ACEOF
6365
6366fi
6367# Extract the first word of "twopi", so it can be a program name with args.
6368set dummy twopi; ac_word=$2
6369{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6371if test "${ac_cv_path_TWOPI+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6373else
6374 case $TWOPI in
6375 [\\/]* | ?:[\\/]*)
6376 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6377 ;;
6378 *)
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380for as_dir in $PATH
6381do
6382 IFS=$as_save_IFS
6383 test -z "$as_dir" && as_dir=.
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6386 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6388 break 2
6389 fi
6390done
6391done
6392IFS=$as_save_IFS
6393
6394 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6395 ;;
6396esac
6397fi
6398TWOPI=$ac_cv_path_TWOPI
6399if test -n "$TWOPI"; then
6400 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6401echo "${ECHO_T}$TWOPI" >&6; }
6402else
6403 { echo "$as_me:$LINENO: result: no" >&5
6404echo "${ECHO_T}no" >&6; }
6405fi
6406
6407
6408if test "$TWOPI" != "echo twopi" ; then
6409
6410cat >>confdefs.h <<\_ACEOF
6411#define HAVE_TWOPI 1
6412_ACEOF
6413
6414 if test "$llvm_cv_os_type" = "MingW" ; then
6415 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6416 fi
6417
6418cat >>confdefs.h <<_ACEOF
6419#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6420_ACEOF
6421
6422fi
6423# Extract the first word of "circo", so it can be a program name with args.
6424set dummy circo; ac_word=$2
6425{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6427if test "${ac_cv_path_CIRCO+set}" = set; then
6428 echo $ECHO_N "(cached) $ECHO_C" >&6
6429else
6430 case $CIRCO in
6431 [\\/]* | ?:[\\/]*)
6432 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6433 ;;
6434 *)
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436for as_dir in $PATH
6437do
6438 IFS=$as_save_IFS
6439 test -z "$as_dir" && as_dir=.
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6442 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6444 break 2
6445 fi
6446done
6447done
6448IFS=$as_save_IFS
6449
6450 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6451 ;;
6452esac
6453fi
6454CIRCO=$ac_cv_path_CIRCO
6455if test -n "$CIRCO"; then
6456 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6457echo "${ECHO_T}$CIRCO" >&6; }
6458else
6459 { echo "$as_me:$LINENO: result: no" >&5
6460echo "${ECHO_T}no" >&6; }
6461fi
6462
6463
6464if test "$CIRCO" != "echo circo" ; then
6465
6466cat >>confdefs.h <<\_ACEOF
6467#define HAVE_CIRCO 1
6468_ACEOF
6469
6470 if test "$llvm_cv_os_type" = "MingW" ; then
6471 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6472 fi
6473
6474cat >>confdefs.h <<_ACEOF
6475#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6476_ACEOF
6477
6478fi
6479for ac_prog in gv gsview32
6480do
6481 # Extract the first word of "$ac_prog", so it can be a program name with args.
6482set dummy $ac_prog; ac_word=$2
6483{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6485if test "${ac_cv_path_GV+set}" = set; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
6487else
6488 case $GV in
6489 [\\/]* | ?:[\\/]*)
6490 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6491 ;;
6492 *)
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494for as_dir in $PATH
6495do
6496 IFS=$as_save_IFS
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6500 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 break 2
6503 fi
6504done
6505done
6506IFS=$as_save_IFS
6507
6508 ;;
6509esac
6510fi
6511GV=$ac_cv_path_GV
6512if test -n "$GV"; then
6513 { echo "$as_me:$LINENO: result: $GV" >&5
6514echo "${ECHO_T}$GV" >&6; }
6515else
6516 { echo "$as_me:$LINENO: result: no" >&5
6517echo "${ECHO_T}no" >&6; }
6518fi
6519
6520
6521 test -n "$GV" && break
6522done
6523test -n "$GV" || GV="echo gv"
6524
6525if test "$GV" != "echo gv" ; then
6526
6527cat >>confdefs.h <<\_ACEOF
6528#define HAVE_GV 1
6529_ACEOF
6530
6531 if test "$llvm_cv_os_type" = "MingW" ; then
6532 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6533 fi
6534
6535cat >>confdefs.h <<_ACEOF
6536#define LLVM_PATH_GV "$GV${EXEEXT}"
6537_ACEOF
6538
6539fi
6540# Extract the first word of "dotty", so it can be a program name with args.
6541set dummy dotty; ac_word=$2
6542{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6544if test "${ac_cv_path_DOTTY+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6546else
6547 case $DOTTY in
6548 [\\/]* | ?:[\\/]*)
6549 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6550 ;;
6551 *)
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553for as_dir in $PATH
6554do
6555 IFS=$as_save_IFS
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6559 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 break 2
6562 fi
6563done
6564done
6565IFS=$as_save_IFS
6566
6567 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6568 ;;
6569esac
6570fi
6571DOTTY=$ac_cv_path_DOTTY
6572if test -n "$DOTTY"; then
6573 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6574echo "${ECHO_T}$DOTTY" >&6; }
6575else
6576 { echo "$as_me:$LINENO: result: no" >&5
6577echo "${ECHO_T}no" >&6; }
6578fi
6579
6580
6581if test "$DOTTY" != "echo dotty" ; then
6582
6583cat >>confdefs.h <<\_ACEOF
6584#define HAVE_DOTTY 1
6585_ACEOF
6586
6587 if test "$llvm_cv_os_type" = "MingW" ; then
6588 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6589 fi
6590
6591cat >>confdefs.h <<_ACEOF
6592#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6593_ACEOF
6594
6595fi
6596# Extract the first word of "xdot.py", so it can be a program name with args.
6597set dummy xdot.py; ac_word=$2
6598{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6600if test "${ac_cv_path_XDOT_PY+set}" = set; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6602else
6603 case $XDOT_PY in
6604 [\\/]* | ?:[\\/]*)
6605 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6606 ;;
6607 *)
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609for as_dir in $PATH
6610do
6611 IFS=$as_save_IFS
6612 test -z "$as_dir" && as_dir=.
6613 for ac_exec_ext in '' $ac_executable_extensions; do
6614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6615 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6617 break 2
6618 fi
6619done
6620done
6621IFS=$as_save_IFS
6622
6623 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6624 ;;
6625esac
6626fi
6627XDOT_PY=$ac_cv_path_XDOT_PY
6628if test -n "$XDOT_PY"; then
6629 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6630echo "${ECHO_T}$XDOT_PY" >&6; }
6631else
6632 { echo "$as_me:$LINENO: result: no" >&5
6633echo "${ECHO_T}no" >&6; }
6634fi
6635
6636
6637if test "$XDOT_PY" != "echo xdot.py" ; then
6638
6639cat >>confdefs.h <<\_ACEOF
6640#define HAVE_XDOT_PY 1
6641_ACEOF
6642
6643 if test "$llvm_cv_os_type" = "MingW" ; then
6644 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6645 fi
6646
6647cat >>confdefs.h <<_ACEOF
6648#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6649_ACEOF
6650
6651fi
6652
6653
6654# Extract the first word of "perl", so it can be a program name with args.
6655set dummy perl; ac_word=$2
6656{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6658if test "${ac_cv_path_PERL+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6660else
6661 case $PERL in
6662 [\\/]* | ?:[\\/]*)
6663 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6664 ;;
6665 *)
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667for as_dir in $PATH
6668do
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6676 fi
6677done
6678done
6679IFS=$as_save_IFS
6680
6681 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6682 ;;
6683esac
6684fi
6685PERL=$ac_cv_path_PERL
6686if test -n "$PERL"; then
6687 { echo "$as_me:$LINENO: result: $PERL" >&5
6688echo "${ECHO_T}$PERL" >&6; }
6689else
6690 { echo "$as_me:$LINENO: result: no" >&5
6691echo "${ECHO_T}no" >&6; }
6692fi
6693
6694
6695if test "$PERL" != "none"; then
6696 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6697echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6698 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6699 { echo "$as_me:$LINENO: result: yes" >&5
6700echo "${ECHO_T}yes" >&6; }
6701 else
6702 PERL=none
6703 { echo "$as_me:$LINENO: result: not found" >&5
6704echo "${ECHO_T}not found" >&6; }
6705 fi
6706fi
6707
6708
6709if test x"$PERL" = xnone; then
6710 HAVE_PERL=0
6711
6712 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6713echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6714 { (exit 1); exit 1; }; }
6715else
6716 HAVE_PERL=1
6717
6718fi
6719
6720# Find a good install program. We prefer a C program (faster),
6721# so one script is as good as another. But avoid the broken or
6722# incompatible versions:
6723# SysV /etc/install, /usr/sbin/install
6724# SunOS /usr/etc/install
6725# IRIX /sbin/install
6726# AIX /bin/install
6727# AmigaOS /C/install, which installs bootblocks on floppy discs
6728# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6729# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6730# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6731# OS/2's system install, which has a completely different semantic
6732# ./install, which can be erroneously created by make from ./install.sh.
6733{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6734echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6735if test -z "$INSTALL"; then
6736if test "${ac_cv_path_install+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6738else
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740for as_dir in $PATH
6741do
6742 IFS=$as_save_IFS
6743 test -z "$as_dir" && as_dir=.
6744 # Account for people who put trailing slashes in PATH elements.
6745case $as_dir/ in
6746 ./ | .// | /cC/* | \
6747 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6748 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6749 /usr/ucb/* ) ;;
6750 *)
6751 # OSF1 and SCO ODT 3.0 have their own names for install.
6752 # Don't use installbsd from OSF since it installs stuff as root
6753 # by default.
6754 for ac_prog in ginstall scoinst install; do
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6757 if test $ac_prog = install &&
6758 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6759 # AIX install. It has an incompatible calling convention.
6760 :
6761 elif test $ac_prog = install &&
6762 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6763 # program-specific install script used by HP pwplus--don't use.
6764 :
6765 else
6766 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6767 break 3
6768 fi
6769 fi
6770 done
6771 done
6772 ;;
6773esac
6774done
6775IFS=$as_save_IFS
6776
6777
6778fi
6779 if test "${ac_cv_path_install+set}" = set; then
6780 INSTALL=$ac_cv_path_install
6781 else
6782 # As a last resort, use the slow shell script. Don't cache a
6783 # value for INSTALL within a source directory, because that will
6784 # break other packages using the cache if that directory is
6785 # removed, or if the value is a relative name.
6786 INSTALL=$ac_install_sh
6787 fi
6788fi
6789{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6790echo "${ECHO_T}$INSTALL" >&6; }
6791
6792# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6793# It thinks the first close brace ends the variable substitution.
6794test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6795
6796test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6797
6798test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6799
6800case "$INSTALL" in
6801 [\\/$]* | ?:[\\/]* ) ;;
6802 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6803esac
6804
6805# Extract the first word of "bzip2", so it can be a program name with args.
6806set dummy bzip2; ac_word=$2
6807{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6809if test "${ac_cv_path_BZIP2+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6811else
6812 case $BZIP2 in
6813 [\\/]* | ?:[\\/]*)
6814 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6815 ;;
6816 *)
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818for as_dir in $PATH
6819do
6820 IFS=$as_save_IFS
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6824 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6826 break 2
6827 fi
6828done
6829done
6830IFS=$as_save_IFS
6831
6832 ;;
6833esac
6834fi
6835BZIP2=$ac_cv_path_BZIP2
6836if test -n "$BZIP2"; then
6837 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6838echo "${ECHO_T}$BZIP2" >&6; }
6839else
6840 { echo "$as_me:$LINENO: result: no" >&5
6841echo "${ECHO_T}no" >&6; }
6842fi
6843
6844
6845# Extract the first word of "cat", so it can be a program name with args.
6846set dummy cat; ac_word=$2
6847{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6849if test "${ac_cv_path_CAT+set}" = set; then
6850 echo $ECHO_N "(cached) $ECHO_C" >&6
6851else
6852 case $CAT in
6853 [\\/]* | ?:[\\/]*)
6854 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6855 ;;
6856 *)
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858for as_dir in $PATH
6859do
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6864 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6867 fi
6868done
6869done
6870IFS=$as_save_IFS
6871
6872 ;;
6873esac
6874fi
6875CAT=$ac_cv_path_CAT
6876if test -n "$CAT"; then
6877 { echo "$as_me:$LINENO: result: $CAT" >&5
6878echo "${ECHO_T}$CAT" >&6; }
6879else
6880 { echo "$as_me:$LINENO: result: no" >&5
6881echo "${ECHO_T}no" >&6; }
6882fi
6883
6884
6885# Extract the first word of "doxygen", so it can be a program name with args.
6886set dummy doxygen; ac_word=$2
6887{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6889if test "${ac_cv_path_DOXYGEN+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6891else
6892 case $DOXYGEN in
6893 [\\/]* | ?:[\\/]*)
6894 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6895 ;;
6896 *)
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898for as_dir in $PATH
6899do
6900 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6904 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 break 2
6907 fi
6908done
6909done
6910IFS=$as_save_IFS
6911
6912 ;;
6913esac
6914fi
6915DOXYGEN=$ac_cv_path_DOXYGEN
6916if test -n "$DOXYGEN"; then
6917 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6918echo "${ECHO_T}$DOXYGEN" >&6; }
6919else
6920 { echo "$as_me:$LINENO: result: no" >&5
6921echo "${ECHO_T}no" >&6; }
6922fi
6923
6924
6925# Extract the first word of "groff", so it can be a program name with args.
6926set dummy groff; ac_word=$2
6927{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6929if test "${ac_cv_path_GROFF+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6931else
6932 case $GROFF in
6933 [\\/]* | ?:[\\/]*)
6934 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6935 ;;
6936 *)
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938for as_dir in $PATH
6939do
6940 IFS=$as_save_IFS
6941 test -z "$as_dir" && as_dir=.
6942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6944 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 break 2
6947 fi
6948done
6949done
6950IFS=$as_save_IFS
6951
6952 ;;
6953esac
6954fi
6955GROFF=$ac_cv_path_GROFF
6956if test -n "$GROFF"; then
6957 { echo "$as_me:$LINENO: result: $GROFF" >&5
6958echo "${ECHO_T}$GROFF" >&6; }
6959else
6960 { echo "$as_me:$LINENO: result: no" >&5
6961echo "${ECHO_T}no" >&6; }
6962fi
6963
6964
6965# Extract the first word of "gzip", so it can be a program name with args.
6966set dummy gzip; ac_word=$2
6967{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6969if test "${ac_cv_path_GZIPBIN+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6971else
6972 case $GZIPBIN in
6973 [\\/]* | ?:[\\/]*)
6974 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6975 ;;
6976 *)
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978for as_dir in $PATH
6979do
6980 IFS=$as_save_IFS
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6984 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6986 break 2
6987 fi
6988done
6989done
6990IFS=$as_save_IFS
6991
6992 ;;
6993esac
6994fi
6995GZIPBIN=$ac_cv_path_GZIPBIN
6996if test -n "$GZIPBIN"; then
6997 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6998echo "${ECHO_T}$GZIPBIN" >&6; }
6999else
7000 { echo "$as_me:$LINENO: result: no" >&5
7001echo "${ECHO_T}no" >&6; }
7002fi
7003
7004
7005# Extract the first word of "pod2html", so it can be a program name with args.
7006set dummy pod2html; ac_word=$2
7007{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7009if test "${ac_cv_path_POD2HTML+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7011else
7012 case $POD2HTML in
7013 [\\/]* | ?:[\\/]*)
7014 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7015 ;;
7016 *)
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018for as_dir in $PATH
7019do
7020 IFS=$as_save_IFS
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7024 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 break 2
7027 fi
7028done
7029done
7030IFS=$as_save_IFS
7031
7032 ;;
7033esac
7034fi
7035POD2HTML=$ac_cv_path_POD2HTML
7036if test -n "$POD2HTML"; then
7037 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7038echo "${ECHO_T}$POD2HTML" >&6; }
7039else
7040 { echo "$as_me:$LINENO: result: no" >&5
7041echo "${ECHO_T}no" >&6; }
7042fi
7043
7044
7045# Extract the first word of "pod2man", so it can be a program name with args.
7046set dummy pod2man; ac_word=$2
7047{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7049if test "${ac_cv_path_POD2MAN+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7051else
7052 case $POD2MAN in
7053 [\\/]* | ?:[\\/]*)
7054 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7055 ;;
7056 *)
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058for as_dir in $PATH
7059do
7060 IFS=$as_save_IFS
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7064 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7066 break 2
7067 fi
7068done
7069done
7070IFS=$as_save_IFS
7071
7072 ;;
7073esac
7074fi
7075POD2MAN=$ac_cv_path_POD2MAN
7076if test -n "$POD2MAN"; then
7077 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7078echo "${ECHO_T}$POD2MAN" >&6; }
7079else
7080 { echo "$as_me:$LINENO: result: no" >&5
7081echo "${ECHO_T}no" >&6; }
7082fi
7083
7084
7085# Extract the first word of "pdfroff", so it can be a program name with args.
7086set dummy pdfroff; ac_word=$2
7087{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089if test "${ac_cv_path_PDFROFF+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7091else
7092 case $PDFROFF in
7093 [\\/]* | ?:[\\/]*)
7094 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7095 ;;
7096 *)
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098for as_dir in $PATH
7099do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7104 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7107 fi
7108done
7109done
7110IFS=$as_save_IFS
7111
7112 ;;
7113esac
7114fi
7115PDFROFF=$ac_cv_path_PDFROFF
7116if test -n "$PDFROFF"; then
7117 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7118echo "${ECHO_T}$PDFROFF" >&6; }
7119else
7120 { echo "$as_me:$LINENO: result: no" >&5
7121echo "${ECHO_T}no" >&6; }
7122fi
7123
7124
7125# Extract the first word of "runtest", so it can be a program name with args.
7126set dummy runtest; ac_word=$2
7127{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129if test "${ac_cv_path_RUNTEST+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7131else
7132 case $RUNTEST in
7133 [\\/]* | ?:[\\/]*)
7134 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7135 ;;
7136 *)
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138for as_dir in $PATH
7139do
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7144 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7147 fi
7148done
7149done
7150IFS=$as_save_IFS
7151
7152 ;;
7153esac
7154fi
7155RUNTEST=$ac_cv_path_RUNTEST
7156if test -n "$RUNTEST"; then
7157 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7158echo "${ECHO_T}$RUNTEST" >&6; }
7159else
7160 { echo "$as_me:$LINENO: result: no" >&5
7161echo "${ECHO_T}no" >&6; }
7162fi
7163
7164
7165
7166no_itcl=true
7167{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7168echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7169
7170# Check whether --with-tclinclude was given.
7171if test "${with_tclinclude+set}" = set; then
7172 withval=$with_tclinclude; with_tclinclude=${withval}
7173else
7174 with_tclinclude=''
7175fi
7176
7177if test "${ac_cv_path_tclsh+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7179else
7180
7181if test x"${with_tclinclude}" != x ; then
7182 if test -f ${with_tclinclude}/tclsh ; then
7183 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7184 elif test -f ${with_tclinclude}/src/tclsh ; then
7185 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7186 else
7187 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7188echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7189 { (exit 1); exit 1; }; }
7190 fi
7191fi
7192fi
7193
7194
7195if test x"${ac_cv_path_tclsh}" = x ; then
7196 { echo "$as_me:$LINENO: result: none" >&5
7197echo "${ECHO_T}none" >&6; }
7198 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
7199do
7200 # Extract the first word of "$ac_prog", so it can be a program name with args.
7201set dummy $ac_prog; ac_word=$2
7202{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7204if test "${ac_cv_path_TCLSH+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7206else
7207 case $TCLSH in
7208 [\\/]* | ?:[\\/]*)
7209 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7210 ;;
7211 *)
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213for as_dir in $PATH
7214do
7215 IFS=$as_save_IFS
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7219 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 break 2
7222 fi
7223done
7224done
7225IFS=$as_save_IFS
7226
7227 ;;
7228esac
7229fi
7230TCLSH=$ac_cv_path_TCLSH
7231if test -n "$TCLSH"; then
7232 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7233echo "${ECHO_T}$TCLSH" >&6; }
7234else
7235 { echo "$as_me:$LINENO: result: no" >&5
7236echo "${ECHO_T}no" >&6; }
7237fi
7238
7239
7240 test -n "$TCLSH" && break
7241done
7242
7243 if test x"${TCLSH}" = x ; then
7244 ac_cv_path_tclsh='';
7245 else
7246 ac_cv_path_tclsh="${TCLSH}";
7247 fi
7248else
7249 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7250echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7251 TCLSH="${ac_cv_path_tclsh}"
7252
7253fi
7254
7255# Extract the first word of "zip", so it can be a program name with args.
7256set dummy zip; ac_word=$2
7257{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7259if test "${ac_cv_path_ZIP+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7261else
7262 case $ZIP in
7263 [\\/]* | ?:[\\/]*)
7264 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7265 ;;
7266 *)
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268for as_dir in $PATH
7269do
7270 IFS=$as_save_IFS
7271 test -z "$as_dir" && as_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7274 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 break 2
7277 fi
7278done
7279done
7280IFS=$as_save_IFS
7281
7282 ;;
7283esac
7284fi
7285ZIP=$ac_cv_path_ZIP
7286if test -n "$ZIP"; then
7287 { echo "$as_me:$LINENO: result: $ZIP" >&5
7288echo "${ECHO_T}$ZIP" >&6; }
7289else
7290 { echo "$as_me:$LINENO: result: no" >&5
7291echo "${ECHO_T}no" >&6; }
7292fi
7293
7294
7295for ac_prog in ocamlc
7296do
7297 # Extract the first word of "$ac_prog", so it can be a program name with args.
7298set dummy $ac_prog; ac_word=$2
7299{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7301if test "${ac_cv_path_OCAMLC+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7303else
7304 case $OCAMLC in
7305 [\\/]* | ?:[\\/]*)
7306 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7307 ;;
7308 *)
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310for as_dir in $PATH
7311do
7312 IFS=$as_save_IFS
7313 test -z "$as_dir" && as_dir=.
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7316 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 break 2
7319 fi
7320done
7321done
7322IFS=$as_save_IFS
7323
7324 ;;
7325esac
7326fi
7327OCAMLC=$ac_cv_path_OCAMLC
7328if test -n "$OCAMLC"; then
7329 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7330echo "${ECHO_T}$OCAMLC" >&6; }
7331else
7332 { echo "$as_me:$LINENO: result: no" >&5
7333echo "${ECHO_T}no" >&6; }
7334fi
7335
7336
7337 test -n "$OCAMLC" && break
7338done
7339
7340for ac_prog in ocamlopt
7341do
7342 # Extract the first word of "$ac_prog", so it can be a program name with args.
7343set dummy $ac_prog; ac_word=$2
7344{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7348else
7349 case $OCAMLOPT in
7350 [\\/]* | ?:[\\/]*)
7351 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7352 ;;
7353 *)
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355for as_dir in $PATH
7356do
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7361 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 break 2
7364 fi
7365done
7366done
7367IFS=$as_save_IFS
7368
7369 ;;
7370esac
7371fi
7372OCAMLOPT=$ac_cv_path_OCAMLOPT
7373if test -n "$OCAMLOPT"; then
7374 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7375echo "${ECHO_T}$OCAMLOPT" >&6; }
7376else
7377 { echo "$as_me:$LINENO: result: no" >&5
7378echo "${ECHO_T}no" >&6; }
7379fi
7380
7381
7382 test -n "$OCAMLOPT" && break
7383done
7384
7385for ac_prog in ocamldep
7386do
7387 # Extract the first word of "$ac_prog", so it can be a program name with args.
7388set dummy $ac_prog; ac_word=$2
7389{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7391if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7393else
7394 case $OCAMLDEP in
7395 [\\/]* | ?:[\\/]*)
7396 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7397 ;;
7398 *)
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400for as_dir in $PATH
7401do
7402 IFS=$as_save_IFS
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7406 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 break 2
7409 fi
7410done
7411done
7412IFS=$as_save_IFS
7413
7414 ;;
7415esac
7416fi
7417OCAMLDEP=$ac_cv_path_OCAMLDEP
7418if test -n "$OCAMLDEP"; then
7419 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7420echo "${ECHO_T}$OCAMLDEP" >&6; }
7421else
7422 { echo "$as_me:$LINENO: result: no" >&5
7423echo "${ECHO_T}no" >&6; }
7424fi
7425
7426
7427 test -n "$OCAMLDEP" && break
7428done
7429
7430for ac_prog in ocamldoc
7431do
7432 # Extract the first word of "$ac_prog", so it can be a program name with args.
7433set dummy $ac_prog; ac_word=$2
7434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7438else
7439 case $OCAMLDOC in
7440 [\\/]* | ?:[\\/]*)
7441 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7442 ;;
7443 *)
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445for as_dir in $PATH
7446do
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 break 2
7454 fi
7455done
7456done
7457IFS=$as_save_IFS
7458
7459 ;;
7460esac
7461fi
7462OCAMLDOC=$ac_cv_path_OCAMLDOC
7463if test -n "$OCAMLDOC"; then
7464 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7465echo "${ECHO_T}$OCAMLDOC" >&6; }
7466else
7467 { echo "$as_me:$LINENO: result: no" >&5
7468echo "${ECHO_T}no" >&6; }
7469fi
7470
7471
7472 test -n "$OCAMLDOC" && break
7473done
7474
7475for ac_prog in gas as
7476do
7477 # Extract the first word of "$ac_prog", so it can be a program name with args.
7478set dummy $ac_prog; ac_word=$2
7479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7481if test "${ac_cv_path_GAS+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7483else
7484 case $GAS in
7485 [\\/]* | ?:[\\/]*)
7486 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7487 ;;
7488 *)
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490for as_dir in $PATH
7491do
7492 IFS=$as_save_IFS
7493 test -z "$as_dir" && as_dir=.
7494 for ac_exec_ext in '' $ac_executable_extensions; do
7495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7496 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7498 break 2
7499 fi
7500done
7501done
7502IFS=$as_save_IFS
7503
7504 ;;
7505esac
7506fi
7507GAS=$ac_cv_path_GAS
7508if test -n "$GAS"; then
7509 { echo "$as_me:$LINENO: result: $GAS" >&5
7510echo "${ECHO_T}$GAS" >&6; }
7511else
7512 { echo "$as_me:$LINENO: result: no" >&5
7513echo "${ECHO_T}no" >&6; }
7514fi
7515
7516
7517 test -n "$GAS" && break
7518done
7519
7520
7521{ echo "$as_me:$LINENO: checking for linker version" >&5
7522echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7523if test "${llvm_cv_link_version+set}" = set; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
7525else
7526
7527 version_string="$(ld -v 2>&1 | head -1)"
7528
7529 # Check for ld64.
7530 if (echo "$version_string" | grep -q "ld64"); then
7531 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7532 else
7533 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7534 fi
7535
7536fi
7537{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7538echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7539
7540cat >>confdefs.h <<_ACEOF
7541#define HOST_LINK_VERSION "$llvm_cv_link_version"
7542_ACEOF
7543
7544
7545
7546{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7547echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7548if test "${llvm_cv_link_use_r+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550else
7551 ac_ext=c
7552ac_cpp='$CPP $CPPFLAGS'
7553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7555ac_compiler_gnu=$ac_cv_c_compiler_gnu
7556
7557 oldcflags="$CFLAGS"
7558 CFLAGS="$CFLAGS -Wl,-R."
7559 cat >conftest.$ac_ext <<_ACEOF
7560/* confdefs.h. */
7561_ACEOF
7562cat confdefs.h >>conftest.$ac_ext
7563cat >>conftest.$ac_ext <<_ACEOF
7564/* end confdefs.h. */
7565
7566int
7567main ()
7568{
7569
7570 ;
7571 return 0;
7572}
7573_ACEOF
7574rm -f conftest.$ac_objext conftest$ac_exeext
7575if { (ac_try="$ac_link"
7576case "(($ac_try" in
7577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7578 *) ac_try_echo=$ac_try;;
7579esac
7580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7581 (eval "$ac_link") 2>conftest.er1
7582 ac_status=$?
7583 grep -v '^ *+' conftest.er1 >conftest.err
7584 rm -f conftest.er1
7585 cat conftest.err >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } && {
7588 test -z "$ac_c_werror_flag" ||
7589 test ! -s conftest.err
7590 } && test -s conftest$ac_exeext &&
7591 $as_test_x conftest$ac_exeext; then
7592 llvm_cv_link_use_r=yes
7593else
7594 echo "$as_me: failed program was:" >&5
7595sed 's/^/| /' conftest.$ac_ext >&5
7596
7597 llvm_cv_link_use_r=no
7598fi
7599
7600rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7601 conftest$ac_exeext conftest.$ac_ext
7602 CFLAGS="$oldcflags"
7603 ac_ext=c
7604ac_cpp='$CPP $CPPFLAGS'
7605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7607ac_compiler_gnu=$ac_cv_c_compiler_gnu
7608
7609
7610fi
7611{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7612echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7613if test "$llvm_cv_link_use_r" = yes ; then
7614
7615cat >>confdefs.h <<\_ACEOF
7616#define HAVE_LINK_R 1
7617_ACEOF
7618
7619 fi
7620
7621
7622{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7623echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7624if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626else
7627 ac_ext=c
7628ac_cpp='$CPP $CPPFLAGS'
7629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7631ac_compiler_gnu=$ac_cv_c_compiler_gnu
7632
7633 oldcflags="$CFLAGS"
7634 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7635 cat >conftest.$ac_ext <<_ACEOF
7636/* confdefs.h. */
7637_ACEOF
7638cat confdefs.h >>conftest.$ac_ext
7639cat >>conftest.$ac_ext <<_ACEOF
7640/* end confdefs.h. */
7641
7642int
7643main ()
7644{
7645
7646 ;
7647 return 0;
7648}
7649_ACEOF
7650rm -f conftest.$ac_objext conftest$ac_exeext
7651if { (ac_try="$ac_link"
7652case "(($ac_try" in
7653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7654 *) ac_try_echo=$ac_try;;
7655esac
7656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7657 (eval "$ac_link") 2>conftest.er1
7658 ac_status=$?
7659 grep -v '^ *+' conftest.er1 >conftest.err
7660 rm -f conftest.er1
7661 cat conftest.err >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); } && {
7664 test -z "$ac_c_werror_flag" ||
7665 test ! -s conftest.err
7666 } && test -s conftest$ac_exeext &&
7667 $as_test_x conftest$ac_exeext; then
7668 llvm_cv_link_use_export_dynamic=yes
7669else
7670 echo "$as_me: failed program was:" >&5
7671sed 's/^/| /' conftest.$ac_ext >&5
7672
7673 llvm_cv_link_use_export_dynamic=no
7674fi
7675
7676rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7677 conftest$ac_exeext conftest.$ac_ext
7678 CFLAGS="$oldcflags"
7679 ac_ext=c
7680ac_cpp='$CPP $CPPFLAGS'
7681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7683ac_compiler_gnu=$ac_cv_c_compiler_gnu
7684
7685
7686fi
7687{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7688echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7689if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7690
7691cat >>confdefs.h <<\_ACEOF
7692#define HAVE_LINK_EXPORT_DYNAMIC 1
7693_ACEOF
7694
7695 fi
7696
7697
7698{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7699echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7700if test "${llvm_cv_link_use_version_script+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7702else
7703 ac_ext=c
7704ac_cpp='$CPP $CPPFLAGS'
7705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7707ac_compiler_gnu=$ac_cv_c_compiler_gnu
7708
7709 oldcflags="$CFLAGS"
7710
7711 # The following code is from the autoconf manual,
7712 # "11.13: Limitations of Usual Tools".
7713 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7714 # Use mktemp if possible; otherwise fall back on mkdir,
7715 # with $RANDOM to make collisions less likely.
7716 : ${TMPDIR=/tmp}
7717 {
7718 tmp=`
7719 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7720 ` &&
7721 test -n "$tmp" && test -d "$tmp"
7722 } || {
7723 tmp=$TMPDIR/foo$$-$RANDOM
7724 (umask 077 && mkdir "$tmp")
7725 } || exit $?
7726
7727 echo "{" > "$tmp/export.map"
7728 echo " global: main;" >> "$tmp/export.map"
7729 echo " local: *;" >> "$tmp/export.map"
7730 echo "};" >> "$tmp/export.map"
7731
7732 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7733 cat >conftest.$ac_ext <<_ACEOF
7734/* confdefs.h. */
7735_ACEOF
7736cat confdefs.h >>conftest.$ac_ext
7737cat >>conftest.$ac_ext <<_ACEOF
7738/* end confdefs.h. */
7739
7740int
7741main ()
7742{
7743
7744 ;
7745 return 0;
7746}
7747_ACEOF
7748rm -f conftest.$ac_objext conftest$ac_exeext
7749if { (ac_try="$ac_link"
7750case "(($ac_try" in
7751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7752 *) ac_try_echo=$ac_try;;
7753esac
7754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7755 (eval "$ac_link") 2>conftest.er1
7756 ac_status=$?
7757 grep -v '^ *+' conftest.er1 >conftest.err
7758 rm -f conftest.er1
7759 cat conftest.err >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } && {
7762 test -z "$ac_c_werror_flag" ||
7763 test ! -s conftest.err
7764 } && test -s conftest$ac_exeext &&
7765 $as_test_x conftest$ac_exeext; then
7766 llvm_cv_link_use_version_script=yes
7767else
7768 echo "$as_me: failed program was:" >&5
7769sed 's/^/| /' conftest.$ac_ext >&5
7770
7771 llvm_cv_link_use_version_script=no
7772fi
7773
7774rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7775 conftest$ac_exeext conftest.$ac_ext
7776 rm "$tmp/export.map"
7777 rmdir "$tmp"
7778 CFLAGS="$oldcflags"
7779 ac_ext=c
7780ac_cpp='$CPP $CPPFLAGS'
7781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7783ac_compiler_gnu=$ac_cv_c_compiler_gnu
7784
7785
7786fi
7787{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7788echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7789if test "$llvm_cv_link_use_version_script" = yes ; then
7790 HAVE_LINK_VERSION_SCRIPT=1
7791
7792 fi
7793
7794
7795
7796
7797{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7798echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7799if test "${ac_cv_c_const+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7801else
7802 cat >conftest.$ac_ext <<_ACEOF
7803/* confdefs.h. */
7804_ACEOF
7805cat confdefs.h >>conftest.$ac_ext
7806cat >>conftest.$ac_ext <<_ACEOF
7807/* end confdefs.h. */
7808
7809int
7810main ()
7811{
7812/* FIXME: Include the comments suggested by Paul. */
7813#ifndef __cplusplus
7814 /* Ultrix mips cc rejects this. */
7815 typedef int charset[2];
7816 const charset cs;
7817 /* SunOS 4.1.1 cc rejects this. */
7818 char const *const *pcpcc;
7819 char **ppc;
7820 /* NEC SVR4.0.2 mips cc rejects this. */
7821 struct point {int x, y;};
7822 static struct point const zero = {0,0};
7823 /* AIX XL C 1.02.0.0 rejects this.
7824 It does not let you subtract one const X* pointer from another in
7825 an arm of an if-expression whose if-part is not a constant
7826 expression */
7827 const char *g = "string";
7828 pcpcc = &g + (g ? g-g : 0);
7829 /* HPUX 7.0 cc rejects these. */
7830 ++pcpcc;
7831 ppc = (char**) pcpcc;
7832 pcpcc = (char const *const *) ppc;
7833 { /* SCO 3.2v4 cc rejects this. */
7834 char *t;
7835 char const *s = 0 ? (char *) 0 : (char const *) 0;
7836
7837 *t++ = 0;
7838 if (s) return 0;
7839 }
7840 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7841 int x[] = {25, 17};
7842 const int *foo = &x[0];
7843 ++foo;
7844 }
7845 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7846 typedef const int *iptr;
7847 iptr p = 0;
7848 ++p;
7849 }
7850 { /* AIX XL C 1.02.0.0 rejects this saying
7851 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7852 struct s { int j; const int *ap[3]; };
7853 struct s *b; b->j = 5;
7854 }
7855 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7856 const int foo = 10;
7857 if (!foo) return 0;
7858 }
7859 return !cs[0] && !zero.x;
7860#endif
7861
7862 ;
7863 return 0;
7864}
7865_ACEOF
7866rm -f conftest.$ac_objext
7867if { (ac_try="$ac_compile"
7868case "(($ac_try" in
7869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870 *) ac_try_echo=$ac_try;;
7871esac
7872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873 (eval "$ac_compile") 2>conftest.er1
7874 ac_status=$?
7875 grep -v '^ *+' conftest.er1 >conftest.err
7876 rm -f conftest.er1
7877 cat conftest.err >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } && {
7880 test -z "$ac_c_werror_flag" ||
7881 test ! -s conftest.err
7882 } && test -s conftest.$ac_objext; then
7883 ac_cv_c_const=yes
7884else
7885 echo "$as_me: failed program was:" >&5
7886sed 's/^/| /' conftest.$ac_ext >&5
7887
7888 ac_cv_c_const=no
7889fi
7890
7891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7892fi
7893{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7894echo "${ECHO_T}$ac_cv_c_const" >&6; }
7895if test $ac_cv_c_const = no; then
7896
7897cat >>confdefs.h <<\_ACEOF
7898#define const
7899_ACEOF
7900
7901fi
7902
7903
7904
7905
7906
7907
7908ac_header_dirent=no
7909for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7910 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7911{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7912echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7915else
7916 cat >conftest.$ac_ext <<_ACEOF
7917/* confdefs.h. */
7918_ACEOF
7919cat confdefs.h >>conftest.$ac_ext
7920cat >>conftest.$ac_ext <<_ACEOF
7921/* end confdefs.h. */
7922#include <sys/types.h>
7923#include <$ac_hdr>
7924
7925int
7926main ()
7927{
7928if ((DIR *) 0)
7929return 0;
7930 ;
7931 return 0;
7932}
7933_ACEOF
7934rm -f conftest.$ac_objext
7935if { (ac_try="$ac_compile"
7936case "(($ac_try" in
7937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938 *) ac_try_echo=$ac_try;;
7939esac
7940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7941 (eval "$ac_compile") 2>conftest.er1
7942 ac_status=$?
7943 grep -v '^ *+' conftest.er1 >conftest.err
7944 rm -f conftest.er1
7945 cat conftest.err >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } && {
7948 test -z "$ac_c_werror_flag" ||
7949 test ! -s conftest.err
7950 } && test -s conftest.$ac_objext; then
7951 eval "$as_ac_Header=yes"
7952else
7953 echo "$as_me: failed program was:" >&5
7954sed 's/^/| /' conftest.$ac_ext >&5
7955
7956 eval "$as_ac_Header=no"
7957fi
7958
7959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7960fi
7961ac_res=`eval echo '${'$as_ac_Header'}'`
7962 { echo "$as_me:$LINENO: result: $ac_res" >&5
7963echo "${ECHO_T}$ac_res" >&6; }
7964if test `eval echo '${'$as_ac_Header'}'` = yes; then
7965 cat >>confdefs.h <<_ACEOF
7966#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7967_ACEOF
7968
7969ac_header_dirent=$ac_hdr; break
7970fi
7971
7972done
7973# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7974if test $ac_header_dirent = dirent.h; then
7975 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7976echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7977if test "${ac_cv_search_opendir+set}" = set; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7979else
7980 ac_func_search_save_LIBS=$LIBS
7981cat >conftest.$ac_ext <<_ACEOF
7982/* confdefs.h. */
7983_ACEOF
7984cat confdefs.h >>conftest.$ac_ext
7985cat >>conftest.$ac_ext <<_ACEOF
7986/* end confdefs.h. */
7987
7988/* Override any GCC internal prototype to avoid an error.
7989 Use char because int might match the return type of a GCC
7990 builtin and then its argument prototype would still apply. */
7991#ifdef __cplusplus
7992extern "C"
7993#endif
7994char opendir ();
7995int
7996main ()
7997{
7998return opendir ();
7999 ;
8000 return 0;
8001}
8002_ACEOF
8003for ac_lib in '' dir; do
8004 if test -z "$ac_lib"; then
8005 ac_res="none required"
8006 else
8007 ac_res=-l$ac_lib
8008 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8009 fi
8010 rm -f conftest.$ac_objext conftest$ac_exeext
8011if { (ac_try="$ac_link"
8012case "(($ac_try" in
8013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014 *) ac_try_echo=$ac_try;;
8015esac
8016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8017 (eval "$ac_link") 2>conftest.er1
8018 ac_status=$?
8019 grep -v '^ *+' conftest.er1 >conftest.err
8020 rm -f conftest.er1
8021 cat conftest.err >&5
8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023 (exit $ac_status); } && {
8024 test -z "$ac_c_werror_flag" ||
8025 test ! -s conftest.err
8026 } && test -s conftest$ac_exeext &&
8027 $as_test_x conftest$ac_exeext; then
8028 ac_cv_search_opendir=$ac_res
8029else
8030 echo "$as_me: failed program was:" >&5
8031sed 's/^/| /' conftest.$ac_ext >&5
8032
8033
8034fi
8035
8036rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8037 conftest$ac_exeext
8038 if test "${ac_cv_search_opendir+set}" = set; then
8039 break
8040fi
8041done
8042if test "${ac_cv_search_opendir+set}" = set; then
8043 :
8044else
8045 ac_cv_search_opendir=no
8046fi
8047rm conftest.$ac_ext
8048LIBS=$ac_func_search_save_LIBS
8049fi
8050{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8051echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8052ac_res=$ac_cv_search_opendir
8053if test "$ac_res" != no; then
8054 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8055
8056fi
8057
8058else
8059 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8060echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8061if test "${ac_cv_search_opendir+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8063else
8064 ac_func_search_save_LIBS=$LIBS
8065cat >conftest.$ac_ext <<_ACEOF
8066/* confdefs.h. */
8067_ACEOF
8068cat confdefs.h >>conftest.$ac_ext
8069cat >>conftest.$ac_ext <<_ACEOF
8070/* end confdefs.h. */
8071
8072/* Override any GCC internal prototype to avoid an error.
8073 Use char because int might match the return type of a GCC
8074 builtin and then its argument prototype would still apply. */
8075#ifdef __cplusplus
8076extern "C"
8077#endif
8078char opendir ();
8079int
8080main ()
8081{
8082return opendir ();
8083 ;
8084 return 0;
8085}
8086_ACEOF
8087for ac_lib in '' x; do
8088 if test -z "$ac_lib"; then
8089 ac_res="none required"
8090 else
8091 ac_res=-l$ac_lib
8092 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8093 fi
8094 rm -f conftest.$ac_objext conftest$ac_exeext
8095if { (ac_try="$ac_link"
8096case "(($ac_try" in
8097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098 *) ac_try_echo=$ac_try;;
8099esac
8100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101 (eval "$ac_link") 2>conftest.er1
8102 ac_status=$?
8103 grep -v '^ *+' conftest.er1 >conftest.err
8104 rm -f conftest.er1
8105 cat conftest.err >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } && {
8108 test -z "$ac_c_werror_flag" ||
8109 test ! -s conftest.err
8110 } && test -s conftest$ac_exeext &&
8111 $as_test_x conftest$ac_exeext; then
8112 ac_cv_search_opendir=$ac_res
8113else
8114 echo "$as_me: failed program was:" >&5
8115sed 's/^/| /' conftest.$ac_ext >&5
8116
8117
8118fi
8119
8120rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8121 conftest$ac_exeext
8122 if test "${ac_cv_search_opendir+set}" = set; then
8123 break
8124fi
8125done
8126if test "${ac_cv_search_opendir+set}" = set; then
8127 :
8128else
8129 ac_cv_search_opendir=no
8130fi
8131rm conftest.$ac_ext
8132LIBS=$ac_func_search_save_LIBS
8133fi
8134{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8135echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8136ac_res=$ac_cv_search_opendir
8137if test "$ac_res" != no; then
8138 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8139
8140fi
8141
8142fi
8143
8144
8145for ac_header in dlfcn.h
8146do
8147as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8151if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8152 echo $ECHO_N "(cached) $ECHO_C" >&6
8153fi
8154ac_res=`eval echo '${'$as_ac_Header'}'`
8155 { echo "$as_me:$LINENO: result: $ac_res" >&5
8156echo "${ECHO_T}$ac_res" >&6; }
8157else
8158 # Is the header compilable?
8159{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8160echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8161cat >conftest.$ac_ext <<_ACEOF
8162/* confdefs.h. */
8163_ACEOF
8164cat confdefs.h >>conftest.$ac_ext
8165cat >>conftest.$ac_ext <<_ACEOF
8166/* end confdefs.h. */
8167$ac_includes_default
8168#include <$ac_header>
8169_ACEOF
8170rm -f conftest.$ac_objext
8171if { (ac_try="$ac_compile"
8172case "(($ac_try" in
8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174 *) ac_try_echo=$ac_try;;
8175esac
8176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177 (eval "$ac_compile") 2>conftest.er1
8178 ac_status=$?
8179 grep -v '^ *+' conftest.er1 >conftest.err
8180 rm -f conftest.er1
8181 cat conftest.err >&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } && {
8184 test -z "$ac_c_werror_flag" ||
8185 test ! -s conftest.err
8186 } && test -s conftest.$ac_objext; then
8187 ac_header_compiler=yes
8188else
8189 echo "$as_me: failed program was:" >&5
8190sed 's/^/| /' conftest.$ac_ext >&5
8191
8192 ac_header_compiler=no
8193fi
8194
8195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8197echo "${ECHO_T}$ac_header_compiler" >&6; }
8198
8199# Is the header present?
8200{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8201echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8202cat >conftest.$ac_ext <<_ACEOF
8203/* confdefs.h. */
8204_ACEOF
8205cat confdefs.h >>conftest.$ac_ext
8206cat >>conftest.$ac_ext <<_ACEOF
8207/* end confdefs.h. */
8208#include <$ac_header>
8209_ACEOF
8210if { (ac_try="$ac_cpp conftest.$ac_ext"
8211case "(($ac_try" in
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8214esac
8215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8217 ac_status=$?
8218 grep -v '^ *+' conftest.er1 >conftest.err
8219 rm -f conftest.er1
8220 cat conftest.err >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } >/dev/null && {
8223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8224 test ! -s conftest.err
8225 }; then
8226 ac_header_preproc=yes
8227else
8228 echo "$as_me: failed program was:" >&5
8229sed 's/^/| /' conftest.$ac_ext >&5
8230
8231 ac_header_preproc=no
8232fi
8233
8234rm -f conftest.err conftest.$ac_ext
8235{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8236echo "${ECHO_T}$ac_header_preproc" >&6; }
8237
8238# So? What about this header?
8239case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8240 yes:no: )
8241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8242echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8244echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8245 ac_header_preproc=yes
8246 ;;
8247 no:yes:* )
8248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8249echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8251echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8253echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8255echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8257echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8259echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8260 ( cat <<\_ASBOX
8261## ----------------------------------- ##
8262## Report this to llvmbugs@cs.uiuc.edu ##
8263## ----------------------------------- ##
8264_ASBOX
8265 ) | sed "s/^/$as_me: WARNING: /" >&2
8266 ;;
8267esac
8268{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8269echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8270if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8272else
8273 eval "$as_ac_Header=\$ac_header_preproc"
8274fi
8275ac_res=`eval echo '${'$as_ac_Header'}'`
8276 { echo "$as_me:$LINENO: result: $ac_res" >&5
8277echo "${ECHO_T}$ac_res" >&6; }
8278
8279fi
8280if test `eval echo '${'$as_ac_Header'}'` = yes; then
8281 cat >>confdefs.h <<_ACEOF
8282#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8283_ACEOF
8284
8285fi
8286
8287done
8288
8289# Check whether --enable-ltdl-install was given.
8290if test "${enable_ltdl_install+set}" = set; then
8291 enableval=$enable_ltdl_install;
8292fi
8293
8294
8295 if test x"${enable_ltdl_install-no}" != xno; then
8296 INSTALL_LTDL_TRUE=
8297 INSTALL_LTDL_FALSE='#'
8298else
8299 INSTALL_LTDL_TRUE='#'
8300 INSTALL_LTDL_FALSE=
8301fi
8302
8303 if test x"${enable_ltdl_convenience-no}" != xno; then
8304 CONVENIENCE_LTDL_TRUE=
8305 CONVENIENCE_LTDL_FALSE='#'
8306else
8307 CONVENIENCE_LTDL_TRUE='#'
8308 CONVENIENCE_LTDL_FALSE=
8309fi
8310
8311
8312{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8313echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8314library_names_spec=
8315libname_spec='lib$name'
8316soname_spec=
8317shrext_cmds=".so"
8318postinstall_cmds=
8319postuninstall_cmds=
8320finish_cmds=
8321finish_eval=
8322shlibpath_var=
8323shlibpath_overrides_runpath=unknown
8324version_type=none
8325dynamic_linker="$host_os ld.so"
8326sys_lib_dlsearch_path_spec="/lib /usr/lib"
8327if test "$GCC" = yes; then
8328 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8329 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8330 # if the path contains ";" then we assume it to be the separator
8331 # otherwise default to the standard path separator (i.e. ":") - it is
8332 # assumed that no part of a normal pathname contains ";" but that should
8333 # okay in the real world where ";" in dirpaths is itself problematic.
8334 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8335 else
8336 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8337 fi
8338else
8339 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8340fi
8341need_lib_prefix=unknown
8342hardcode_into_libs=no
8343
8344# when you set need_version to no, make sure it does not cause -set_version
8345# flags to be left without arguments
8346need_version=unknown
8347
8348case $host_os in
8349aix3*)
8350 version_type=linux
8351 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8352 shlibpath_var=LIBPATH
8353
8354 # AIX 3 has no versioning support, so we append a major version to the name.
8355 soname_spec='${libname}${release}${shared_ext}$major'
8356 ;;
8357
8358aix4* | aix5*)
8359 version_type=linux
8360 need_lib_prefix=no
8361 need_version=no
8362 hardcode_into_libs=yes
8363 if test "$host_cpu" = ia64; then
8364 # AIX 5 supports IA64
8365 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8366 shlibpath_var=LD_LIBRARY_PATH
8367 else
8368 # With GCC up to 2.95.x, collect2 would create an import file
8369 # for dependence libraries. The import file would start with
8370 # the line `#! .'. This would cause the generated library to
8371 # depend on `.', always an invalid library. This was fixed in
8372 # development snapshots of GCC prior to 3.0.
8373 case $host_os in
8374 aix4 | aix4.[01] | aix4.[01].*)
8375 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8376 echo ' yes '
8377 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8378 :
8379 else
8380 can_build_shared=no
8381 fi
8382 ;;
8383 esac
8384 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8385 # soname into executable. Probably we can add versioning support to
8386 # collect2, so additional links can be useful in future.
8387 if test "$aix_use_runtimelinking" = yes; then
8388 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8389 # instead of lib<name>.a to let people know that these are not
8390 # typical AIX shared libraries.
8391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8392 else
8393 # We preserve .a as extension for shared libraries through AIX4.2
8394 # and later when we are not doing run time linking.
8395 library_names_spec='${libname}${release}.a $libname.a'
8396 soname_spec='${libname}${release}${shared_ext}$major'
8397 fi
8398 shlibpath_var=LIBPATH
8399 fi
8400 ;;
8401
8402amigaos*)
8403 library_names_spec='$libname.ixlibrary $libname.a'
8404 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8405 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'
8406 ;;
8407
8408beos*)
8409 library_names_spec='${libname}${shared_ext}'
8410 dynamic_linker="$host_os ld.so"
8411 shlibpath_var=LIBRARY_PATH
8412 ;;
8413
8414bsdi[45]*)
8415 version_type=linux
8416 need_version=no
8417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8418 soname_spec='${libname}${release}${shared_ext}$major'
8419 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8420 shlibpath_var=LD_LIBRARY_PATH
8421 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8422 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8423 # the default ld.so.conf also contains /usr/contrib/lib and
8424 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8425 # libtool to hard-code these into programs
8426 ;;
8427
8428cygwin* | mingw* | pw32*)
8429 version_type=windows
8430 shrext_cmds=".dll"
8431 need_version=no
8432 need_lib_prefix=no
8433
8434 case $GCC,$host_os in
8435 yes,cygwin* | yes,mingw* | yes,pw32*)
8436 library_names_spec='$libname.dll.a'
8437 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8438 postinstall_cmds='base_file=`basename \${file}`~
8439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8440 dldir=$destdir/`dirname \$dlpath`~
8441 test -d \$dldir || mkdir -p \$dldir~
8442 $install_prog $dir/$dlname \$dldir/$dlname~
8443 chmod a+x \$dldir/$dlname'
8444 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8445 dlpath=$dir/\$dldll~
8446 $rm \$dlpath'
8447 shlibpath_overrides_runpath=yes
8448
8449 case $host_os in
8450 cygwin*)
8451 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8452 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8453 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8454 ;;
8455 mingw*)
8456 # MinGW DLLs use traditional 'lib' prefix
8457 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8458 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8459 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8460 # It is most probably a Windows format PATH printed by
8461 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8462 # path with ; separators, and with drive letters. We can handle the
8463 # drive letters (cygwin fileutils understands them), so leave them,
8464 # especially as we might pass files found there to a mingw objdump,
8465 # which wouldn't understand a cygwinified path. Ahh.
8466 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8467 else
8468 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8469 fi
8470 ;;
8471 pw32*)
8472 # pw32 DLLs use 'pw' prefix rather than 'lib'
8473 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8474 ;;
8475 esac
8476 ;;
8477
8478 *)
8479 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8480 ;;
8481 esac
8482 dynamic_linker='Win32 ld.exe'
8483 # FIXME: first we should search . and the directory the executable is in
8484 shlibpath_var=PATH
8485 ;;
8486
8487darwin* | rhapsody*)
8488 dynamic_linker="$host_os dyld"
8489 version_type=darwin
8490 need_lib_prefix=no
8491 need_version=no
8492 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8493 soname_spec='${libname}${release}${major}$shared_ext'
8494 shlibpath_overrides_runpath=yes
8495 shlibpath_var=DYLD_LIBRARY_PATH
8496 shrext_cmds='.dylib'
8497 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8498 if test "$GCC" = yes; then
8499 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"`
8500 else
8501 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8502 fi
8503 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8504 ;;
8505
8506dgux*)
8507 version_type=linux
8508 need_lib_prefix=no
8509 need_version=no
8510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8511 soname_spec='${libname}${release}${shared_ext}$major'
8512 shlibpath_var=LD_LIBRARY_PATH
8513 ;;
8514
8515freebsd1*)
8516 dynamic_linker=no
8517 ;;
8518
8519kfreebsd*-gnu)
8520 version_type=linux
8521 need_lib_prefix=no
8522 need_version=no
8523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8524 soname_spec='${libname}${release}${shared_ext}$major'
8525 shlibpath_var=LD_LIBRARY_PATH
8526 shlibpath_overrides_runpath=no
8527 hardcode_into_libs=yes
8528 dynamic_linker='GNU ld.so'
8529 ;;
8530
8531freebsd* | dragonfly*)
8532 # DragonFly does not have aout. When/if they implement a new
8533 # versioning mechanism, adjust this.
8534 if test -x /usr/bin/objformat; then
8535 objformat=`/usr/bin/objformat`
8536 else
8537 case $host_os in
8538 freebsd[123]*) objformat=aout ;;
8539 *) objformat=elf ;;
8540 esac
8541 fi
8542 version_type=freebsd-$objformat
8543 case $version_type in
8544 freebsd-elf*)
8545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8546 need_version=no
8547 need_lib_prefix=no
8548 ;;
8549 freebsd-*)
8550 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8551 need_version=yes
8552 ;;
8553 esac
8554 shlibpath_var=LD_LIBRARY_PATH
8555 case $host_os in
8556 freebsd2*)
8557 shlibpath_overrides_runpath=yes
8558 ;;
8559 freebsd3.[01]* | freebsdelf3.[01]*)
8560 shlibpath_overrides_runpath=yes
8561 hardcode_into_libs=yes
8562 ;;
8563 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8564 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8565 shlibpath_overrides_runpath=no
8566 hardcode_into_libs=yes
8567 ;;
8568 freebsd*) # from 4.6 on
8569 shlibpath_overrides_runpath=yes
8570 hardcode_into_libs=yes
8571 ;;
8572 esac
8573 ;;
8574
8575gnu*)
8576 version_type=linux
8577 need_lib_prefix=no
8578 need_version=no
8579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8580 soname_spec='${libname}${release}${shared_ext}$major'
8581 shlibpath_var=LD_LIBRARY_PATH
8582 hardcode_into_libs=yes
8583 ;;
8584
8585hpux9* | hpux10* | hpux11*)
8586 # Give a soname corresponding to the major version so that dld.sl refuses to
8587 # link against other versions.
8588 version_type=sunos
8589 need_lib_prefix=no
8590 need_version=no
8591 case $host_cpu in
8592 ia64*)
8593 shrext_cmds='.so'
8594 hardcode_into_libs=yes
8595 dynamic_linker="$host_os dld.so"
8596 shlibpath_var=LD_LIBRARY_PATH
8597 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8599 soname_spec='${libname}${release}${shared_ext}$major'
8600 if test "X$HPUX_IA64_MODE" = X32; then
8601 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8602 else
8603 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8604 fi
8605 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8606 ;;
8607 hppa*64*)
8608 shrext_cmds='.sl'
8609 hardcode_into_libs=yes
8610 dynamic_linker="$host_os dld.sl"
8611 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8612 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8614 soname_spec='${libname}${release}${shared_ext}$major'
8615 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8616 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8617 ;;
8618 *)
8619 shrext_cmds='.sl'
8620 dynamic_linker="$host_os dld.sl"
8621 shlibpath_var=SHLIB_PATH
8622 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8624 soname_spec='${libname}${release}${shared_ext}$major'
8625 ;;
8626 esac
8627 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8628 postinstall_cmds='chmod 555 $lib'
8629 ;;
8630
8631interix3*)
8632 version_type=linux
8633 need_lib_prefix=no
8634 need_version=no
8635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8636 soname_spec='${libname}${release}${shared_ext}$major'
8637 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8638 shlibpath_var=LD_LIBRARY_PATH
8639 shlibpath_overrides_runpath=no
8640 hardcode_into_libs=yes
8641 ;;
8642
8643irix5* | irix6* | nonstopux*)
8644 case $host_os in
8645 nonstopux*) version_type=nonstopux ;;
8646 *)
8647 if test "$lt_cv_prog_gnu_ld" = yes; then
8648 version_type=linux
8649 else
8650 version_type=irix
8651 fi ;;
8652 esac
8653 need_lib_prefix=no
8654 need_version=no
8655 soname_spec='${libname}${release}${shared_ext}$major'
8656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8657 case $host_os in
8658 irix5* | nonstopux*)
8659 libsuff= shlibsuff=
8660 ;;
8661 *)
8662 case $LD in # libtool.m4 will add one of these switches to LD
8663 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8664 libsuff= shlibsuff= libmagic=32-bit;;
8665 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8666 libsuff=32 shlibsuff=N32 libmagic=N32;;
8667 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8668 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8669 *) libsuff= shlibsuff= libmagic=never-match;;
8670 esac
8671 ;;
8672 esac
8673 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8674 shlibpath_overrides_runpath=no
8675 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8676 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8677 hardcode_into_libs=yes
8678 ;;
8679
8680# No shared lib support for Linux oldld, aout, or coff.
8681linux*oldld* | linux*aout* | linux*coff*)
8682 dynamic_linker=no
8683 ;;
8684
8685# This must be Linux ELF.
8686linux*)
8687 version_type=linux
8688 need_lib_prefix=no
8689 need_version=no
8690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8691 soname_spec='${libname}${release}${shared_ext}$major'
8692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8693 shlibpath_var=LD_LIBRARY_PATH
8694 shlibpath_overrides_runpath=no
8695 # This implies no fast_install, which is unacceptable.
8696 # Some rework will be needed to allow for fast_install
8697 # before this can be enabled.
8698 hardcode_into_libs=yes
8699
8700 # Append ld.so.conf contents to the search path
8701 if test -f /etc/ld.so.conf; then
8702 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' ' '`
8703 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8704 fi
8705
8706 # We used to test for /lib/ld.so.1 and disable shared libraries on
8707 # powerpc, because MkLinux only supported shared libraries with the
8708 # GNU dynamic linker. Since this was broken with cross compilers,
8709 # most powerpc-linux boxes support dynamic linking these days and
8710 # people can always --disable-shared, the test was removed, and we
8711 # assume the GNU/Linux dynamic linker is in use.
8712 dynamic_linker='GNU/Linux ld.so'
8713 ;;
8714
8715knetbsd*-gnu)
8716 version_type=linux
8717 need_lib_prefix=no
8718 need_version=no
8719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8720 soname_spec='${libname}${release}${shared_ext}$major'
8721 shlibpath_var=LD_LIBRARY_PATH
8722 shlibpath_overrides_runpath=no
8723 hardcode_into_libs=yes
8724 dynamic_linker='GNU ld.so'
8725 ;;
8726
8727netbsd*)
8728 version_type=sunos
8729 need_lib_prefix=no
8730 need_version=no
8731 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8734 dynamic_linker='NetBSD (a.out) ld.so'
8735 else
8736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8737 soname_spec='${libname}${release}${shared_ext}$major'
8738 dynamic_linker='NetBSD ld.elf_so'
8739 fi
8740 shlibpath_var=LD_LIBRARY_PATH
8741 shlibpath_overrides_runpath=yes
8742 hardcode_into_libs=yes
8743 ;;
8744
8745newsos6)
8746 version_type=linux
8747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8748 shlibpath_var=LD_LIBRARY_PATH
8749 shlibpath_overrides_runpath=yes
8750 ;;
8751
8752nto-qnx*)
8753 version_type=linux
8754 need_lib_prefix=no
8755 need_version=no
8756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8757 soname_spec='${libname}${release}${shared_ext}$major'
8758 shlibpath_var=LD_LIBRARY_PATH
8759 shlibpath_overrides_runpath=yes
8760 ;;
8761
8762openbsd*)
8763 version_type=sunos
8764 sys_lib_dlsearch_path_spec="/usr/lib"
8765 need_lib_prefix=no
8766 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8767 case $host_os in
8768 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8769 *) need_version=no ;;
8770 esac
8771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8773 shlibpath_var=LD_LIBRARY_PATH
8774 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8775 case $host_os in
8776 openbsd2.[89] | openbsd2.[89].*)
8777 shlibpath_overrides_runpath=no
8778 ;;
8779 *)
8780 shlibpath_overrides_runpath=yes
8781 ;;
8782 esac
8783 else
8784 shlibpath_overrides_runpath=yes
8785 fi
8786 ;;
8787
8788os2*)
8789 libname_spec='$name'
8790 shrext_cmds=".dll"
8791 need_lib_prefix=no
8792 library_names_spec='$libname${shared_ext} $libname.a'
8793 dynamic_linker='OS/2 ld.exe'
8794 shlibpath_var=LIBPATH
8795 ;;
8796
8797osf3* | osf4* | osf5*)
8798 version_type=osf
8799 need_lib_prefix=no
8800 need_version=no
8801 soname_spec='${libname}${release}${shared_ext}$major'
8802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8803 shlibpath_var=LD_LIBRARY_PATH
8804 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8805 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8806 ;;
8807
8808solaris*)
8809 version_type=linux
8810 need_lib_prefix=no
8811 need_version=no
8812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8813 soname_spec='${libname}${release}${shared_ext}$major'
8814 shlibpath_var=LD_LIBRARY_PATH
8815 shlibpath_overrides_runpath=yes
8816 hardcode_into_libs=yes
8817 # ldd complains unless libraries are executable
8818 postinstall_cmds='chmod +x $lib'
8819 ;;
8820
8821sunos4*)
8822 version_type=sunos
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8824 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8825 shlibpath_var=LD_LIBRARY_PATH
8826 shlibpath_overrides_runpath=yes
8827 if test "$with_gnu_ld" = yes; then
8828 need_lib_prefix=no
8829 fi
8830 need_version=yes
8831 ;;
8832
8833sysv4 | sysv4.3*)
8834 version_type=linux
8835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8836 soname_spec='${libname}${release}${shared_ext}$major'
8837 shlibpath_var=LD_LIBRARY_PATH
8838 case $host_vendor in
8839 sni)
8840 shlibpath_overrides_runpath=no
8841 need_lib_prefix=no
8842 export_dynamic_flag_spec='${wl}-Blargedynsym'
8843 runpath_var=LD_RUN_PATH
8844 ;;
8845 siemens)
8846 need_lib_prefix=no
8847 ;;
8848 motorola)
8849 need_lib_prefix=no
8850 need_version=no
8851 shlibpath_overrides_runpath=no
8852 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8853 ;;
8854 esac
8855 ;;
8856
8857sysv4*MP*)
8858 if test -d /usr/nec ;then
8859 version_type=linux
8860 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8861 soname_spec='$libname${shared_ext}.$major'
8862 shlibpath_var=LD_LIBRARY_PATH
8863 fi
8864 ;;
8865
8866sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8867 version_type=freebsd-elf
8868 need_lib_prefix=no
8869 need_version=no
8870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8871 soname_spec='${libname}${release}${shared_ext}$major'
8872 shlibpath_var=LD_LIBRARY_PATH
8873 hardcode_into_libs=yes
8874 if test "$with_gnu_ld" = yes; then
8875 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8876 shlibpath_overrides_runpath=no
8877 else
8878 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8879 shlibpath_overrides_runpath=yes
8880 case $host_os in
8881 sco3.2v5*)
8882 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8883 ;;
8884 esac
8885 fi
8886 sys_lib_dlsearch_path_spec='/usr/lib'
8887 ;;
8888
8889uts4*)
8890 version_type=linux
8891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8892 soname_spec='${libname}${release}${shared_ext}$major'
8893 shlibpath_var=LD_LIBRARY_PATH
8894 ;;
8895
8896*)
8897 dynamic_linker=no
8898 ;;
8899esac
8900{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8901echo "${ECHO_T}$dynamic_linker" >&6; }
8902test "$dynamic_linker" = no && can_build_shared=no
8903
8904variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8905if test "$GCC" = yes; then
8906 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8907fi
8908
8909
8910{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
8911echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
8912if test "${libltdl_cv_shlibext+set}" = set; then
8913 echo $ECHO_N "(cached) $ECHO_C" >&6
8914else
8915
8916module=yes
8917eval libltdl_cv_shlibext=$shrext_cmds
8918
8919fi
8920{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
8921echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
8922if test -n "$libltdl_cv_shlibext"; then
8923
8924cat >>confdefs.h <<_ACEOF
8925#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
8926_ACEOF
8927
8928fi
8929
8930
8931{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
8932echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
8933if test "${libltdl_cv_shlibpath_var+set}" = set; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8935else
8936 libltdl_cv_shlibpath_var="$shlibpath_var"
8937fi
8938{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
8939echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
8940if test -n "$libltdl_cv_shlibpath_var"; then
8941
8942cat >>confdefs.h <<_ACEOF
8943#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
8944_ACEOF
8945
8946fi
8947
8948
8949{ echo "$as_me:$LINENO: checking for the default library search path" >&5
8950echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
8951if test "${libltdl_cv_sys_search_path+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8953else
8954 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
8955fi
8956{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
8957echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
8958if test -n "$libltdl_cv_sys_search_path"; then
8959 sys_search_path=
8960 for dir in $libltdl_cv_sys_search_path; do
8961 if test -z "$sys_search_path"; then
8962 sys_search_path="$dir"
8963 else
8964 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
8965 fi
8966 done
8967
8968cat >>confdefs.h <<_ACEOF
8969#define LTDL_SYSSEARCHPATH "$sys_search_path"
8970_ACEOF
8971
8972fi
8973
8974{ echo "$as_me:$LINENO: checking for objdir" >&5
8975echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8976if test "${libltdl_cv_objdir+set}" = set; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8978else
8979 libltdl_cv_objdir="$objdir"
8980 if test -n "$objdir"; then
8981 :
8982 else
8983 rm -f .libs 2>/dev/null
8984 mkdir .libs 2>/dev/null
8985 if test -d .libs; then
8986 libltdl_cv_objdir=.libs
8987 else
8988 # MS-DOS does not allow filenames that begin with a dot.
8989 libltdl_cv_objdir=_libs
8990 fi
8991 rmdir .libs 2>/dev/null
8992 fi
8993
8994fi
8995{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
8996echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
8997
8998cat >>confdefs.h <<_ACEOF
8999#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9000_ACEOF
9001
9002
9003
9004
9005
9006
9007# Check for command to grab the raw symbol name followed by C symbol from nm.
9008{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9009echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9010if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9012else
9013
9014# These are sane defaults that work on at least a few old systems.
9015# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9016
9017# Character class describing NM global symbol codes.
9018symcode='[BCDEGRST]'
9019
9020# Regexp to match symbols that can be accessed directly from C.
9021sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9022
9023# Transform an extracted symbol line into a proper C declaration
9024lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9025
9026# Transform an extracted symbol line into symbol name and symbol address
9027lt_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'"
9028
9029# Define system-specific variables.
9030case $host_os in
9031aix*)
9032 symcode='[BCDT]'
9033 ;;
9034cygwin* | mingw* | pw32*)
9035 symcode='[ABCDGISTW]'
9036 ;;
9037hpux*) # Its linker distinguishes data from code symbols
9038 if test "$host_cpu" = ia64; then
9039 symcode='[ABCDEGRST]'
9040 fi
9041 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9042 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'"
9043 ;;
9044linux*)
9045 if test "$host_cpu" = ia64; then
9046 symcode='[ABCDGIRSTW]'
9047 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9048 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'"
9049 fi
9050 ;;
9051irix* | nonstopux*)
9052 symcode='[BCDEGRST]'
9053 ;;
9054osf*)
9055 symcode='[BCDEGQRST]'
9056 ;;
9057solaris*)
9058 symcode='[BDRT]'
9059 ;;
9060sco3.2v5*)
9061 symcode='[DT]'
9062 ;;
9063sysv4.2uw2*)
9064 symcode='[DT]'
9065 ;;
9066sysv5* | sco5v6* | unixware* | OpenUNIX*)
9067 symcode='[ABDT]'
9068 ;;
9069sysv4)
9070 symcode='[DFNSTU]'
9071 ;;
9072esac
9073
9074# Handle CRLF in mingw tool chain
9075opt_cr=
9076case $build_os in
9077mingw*)
9078 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9079 ;;
9080esac
9081
9082# If we're using GNU nm, then use its standard symbol codes.
9083case `$NM -V 2>&1` in
9084*GNU* | *'with BFD'*)
9085 symcode='[ABCDGIRSTW]' ;;
9086esac
9087
9088# Try without a prefix undercore, then with it.
9089for ac_symprfx in "" "_"; do
9090
9091 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9092 symxfrm="\\1 $ac_symprfx\\2 \\2"
9093
9094 # Write the raw and C identifiers.
9095 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9096
9097 # Check to see that the pipe works correctly.
9098 pipe_works=no
9099
9100 rm -f conftest*
9101 cat > conftest.$ac_ext <<EOF
9102#ifdef __cplusplus
9103extern "C" {
9104#endif
9105char nm_test_var;
9106void nm_test_func(){}
9107#ifdef __cplusplus
9108}
9109#endif
9110int main(){nm_test_var='a';nm_test_func();return(0);}
9111EOF
9112
9113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9114 (eval $ac_compile) 2>&5
9115 ac_status=$?
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; then
9118 # Now try to grab the symbols.
9119 nlist=conftest.nm
9120 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9121 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9122 ac_status=$?
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } && test -s "$nlist"; then
9125 # Try sorting and uniquifying the output.
9126 if sort "$nlist" | uniq > "$nlist"T; then
9127 mv -f "$nlist"T "$nlist"
9128 else
9129 rm -f "$nlist"T
9130 fi
9131
9132 # Make sure that we snagged all the symbols we need.
9133 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9134 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9135 cat <<EOF > conftest.$ac_ext
9136#ifdef __cplusplus
9137extern "C" {
9138#endif
9139
9140EOF
9141 # Now generate the symbol file.
9142 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9143
9144 cat <<EOF >> conftest.$ac_ext
9145#if defined (__STDC__) && __STDC__
9146# define lt_ptr_t void *
9147#else
9148# define lt_ptr_t char *
9149# define const
9150#endif
9151
9152/* The mapping between symbol names and symbols. */
9153const struct {
9154 const char *name;
9155 lt_ptr_t address;
9156}
9157lt_preloaded_symbols[] =
9158{
9159EOF
9160 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9161 cat <<\EOF >> conftest.$ac_ext
9162 {0, (lt_ptr_t) 0}
9163};
9164
9165#ifdef __cplusplus
9166}
9167#endif
9168EOF
9169 # Now try linking the two files.
9170 mv conftest.$ac_objext conftstm.$ac_objext
9171 lt_save_LIBS="$LIBS"
9172 lt_save_CFLAGS="$CFLAGS"
9173 LIBS="conftstm.$ac_objext"
9174 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9176 (eval $ac_link) 2>&5
9177 ac_status=$?
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9180 pipe_works=yes
9181 fi
9182 LIBS="$lt_save_LIBS"
9183 CFLAGS="$lt_save_CFLAGS"
9184 else
9185 echo "cannot find nm_test_func in $nlist" >&5
9186 fi
9187 else
9188 echo "cannot find nm_test_var in $nlist" >&5
9189 fi
9190 else
9191 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9192 fi
9193 else
9194 echo "$progname: failed program was:" >&5
9195 cat conftest.$ac_ext >&5
9196 fi
9197 rm -f conftest* conftst*
9198
9199 # Do not use the global_symbol_pipe unless it works.
9200 if test "$pipe_works" = yes; then
9201 break
9202 else
9203 lt_cv_sys_global_symbol_pipe=
9204 fi
9205done
9206
9207fi
9208
9209if test -z "$lt_cv_sys_global_symbol_pipe"; then
9210 lt_cv_sys_global_symbol_to_cdecl=
9211fi
9212if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9213 { echo "$as_me:$LINENO: result: failed" >&5
9214echo "${ECHO_T}failed" >&6; }
9215else
9216 { echo "$as_me:$LINENO: result: ok" >&5
9217echo "${ECHO_T}ok" >&6; }
9218fi
9219
9220
9221{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9222echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9223if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9225else
9226 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9227 libltdl_cv_preloaded_symbols=yes
9228 else
9229 libltdl_cv_preloaded_symbols=no
9230 fi
9231
9232fi
9233{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9234echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9235if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9236
9237cat >>confdefs.h <<\_ACEOF
9238#define HAVE_PRELOADED_SYMBOLS 1
9239_ACEOF
9240
9241fi
9242
9243LIBADD_DL=
9244
9245ac_ext=c
9246ac_cpp='$CPP $CPPFLAGS'
9247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9249ac_compiler_gnu=$ac_cv_c_compiler_gnu
9250
9251
9252{ echo "$as_me:$LINENO: checking for shl_load" >&5
9253echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9254if test "${ac_cv_func_shl_load+set}" = set; then
9255 echo $ECHO_N "(cached) $ECHO_C" >&6
9256else
9257 cat >conftest.$ac_ext <<_ACEOF
9258/* confdefs.h. */
9259_ACEOF
9260cat confdefs.h >>conftest.$ac_ext
9261cat >>conftest.$ac_ext <<_ACEOF
9262/* end confdefs.h. */
9263/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9265#define shl_load innocuous_shl_load
9266
9267/* System header to define __stub macros and hopefully few prototypes,
9268 which can conflict with char shl_load (); below.
9269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9270 <limits.h> exists even on freestanding compilers. */
9271
9272#ifdef __STDC__
9273# include <limits.h>
9274#else
9275# include <assert.h>
9276#endif
9277
9278#undef shl_load
9279
9280/* Override any GCC internal prototype to avoid an error.
9281 Use char because int might match the return type of a GCC
9282 builtin and then its argument prototype would still apply. */
9283#ifdef __cplusplus
9284extern "C"
9285#endif
9286char shl_load ();
9287/* The GNU C library defines this for functions which it implements
9288 to always fail with ENOSYS. Some functions are actually named
9289 something starting with __ and the normal name is an alias. */
9290#if defined __stub_shl_load || defined __stub___shl_load
9291choke me
9292#endif
9293
9294int
9295main ()
9296{
9297return shl_load ();
9298 ;
9299 return 0;
9300}
9301_ACEOF
9302rm -f conftest.$ac_objext conftest$ac_exeext
9303if { (ac_try="$ac_link"
9304case "(($ac_try" in
9305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9306 *) ac_try_echo=$ac_try;;
9307esac
9308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9309 (eval "$ac_link") 2>conftest.er1
9310 ac_status=$?
9311 grep -v '^ *+' conftest.er1 >conftest.err
9312 rm -f conftest.er1
9313 cat conftest.err >&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } && {
9316 test -z "$ac_c_werror_flag" ||
9317 test ! -s conftest.err
9318 } && test -s conftest$ac_exeext &&
9319 $as_test_x conftest$ac_exeext; then
9320 ac_cv_func_shl_load=yes
9321else
9322 echo "$as_me: failed program was:" >&5
9323sed 's/^/| /' conftest.$ac_ext >&5
9324
9325 ac_cv_func_shl_load=no
9326fi
9327
9328rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9329 conftest$ac_exeext conftest.$ac_ext
9330fi
9331{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9332echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9333if test $ac_cv_func_shl_load = yes; then
9334
9335cat >>confdefs.h <<\_ACEOF
9336#define HAVE_SHL_LOAD 1
9337_ACEOF
9338
9339else
9340 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9341echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9342if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9343 echo $ECHO_N "(cached) $ECHO_C" >&6
9344else
9345 ac_check_lib_save_LIBS=$LIBS
9346LIBS="-ldld $LIBS"
9347cat >conftest.$ac_ext <<_ACEOF
9348/* confdefs.h. */
9349_ACEOF
9350cat confdefs.h >>conftest.$ac_ext
9351cat >>conftest.$ac_ext <<_ACEOF
9352/* end confdefs.h. */
9353
9354/* Override any GCC internal prototype to avoid an error.
9355 Use char because int might match the return type of a GCC
9356 builtin and then its argument prototype would still apply. */
9357#ifdef __cplusplus
9358extern "C"
9359#endif
9360char shl_load ();
9361int
9362main ()
9363{
9364return shl_load ();
9365 ;
9366 return 0;
9367}
9368_ACEOF
9369rm -f conftest.$ac_objext conftest$ac_exeext
9370if { (ac_try="$ac_link"
9371case "(($ac_try" in
9372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9373 *) ac_try_echo=$ac_try;;
9374esac
9375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9376 (eval "$ac_link") 2>conftest.er1
9377 ac_status=$?
9378 grep -v '^ *+' conftest.er1 >conftest.err
9379 rm -f conftest.er1
9380 cat conftest.err >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } && {
9383 test -z "$ac_c_werror_flag" ||
9384 test ! -s conftest.err
9385 } && test -s conftest$ac_exeext &&
9386 $as_test_x conftest$ac_exeext; then
9387 ac_cv_lib_dld_shl_load=yes
9388else
9389 echo "$as_me: failed program was:" >&5
9390sed 's/^/| /' conftest.$ac_ext >&5
9391
9392 ac_cv_lib_dld_shl_load=no
9393fi
9394
9395rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9396 conftest$ac_exeext conftest.$ac_ext
9397LIBS=$ac_check_lib_save_LIBS
9398fi
9399{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9400echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9401if test $ac_cv_lib_dld_shl_load = yes; then
9402
9403cat >>confdefs.h <<\_ACEOF
9404#define HAVE_SHL_LOAD 1
9405_ACEOF
9406
9407 LIBADD_DL="$LIBADD_DL -ldld"
9408else
9409 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9410echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9411if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9412 echo $ECHO_N "(cached) $ECHO_C" >&6
9413else
9414 ac_check_lib_save_LIBS=$LIBS
9415LIBS="-ldl $LIBS"
9416cat >conftest.$ac_ext <<_ACEOF
9417/* confdefs.h. */
9418_ACEOF
9419cat confdefs.h >>conftest.$ac_ext
9420cat >>conftest.$ac_ext <<_ACEOF
9421/* end confdefs.h. */
9422
9423/* Override any GCC internal prototype to avoid an error.
9424 Use char because int might match the return type of a GCC
9425 builtin and then its argument prototype would still apply. */
9426#ifdef __cplusplus
9427extern "C"
9428#endif
9429char dlopen ();
9430int
9431main ()
9432{
9433return dlopen ();
9434 ;
9435 return 0;
9436}
9437_ACEOF
9438rm -f conftest.$ac_objext conftest$ac_exeext
9439if { (ac_try="$ac_link"
9440case "(($ac_try" in
9441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9442 *) ac_try_echo=$ac_try;;
9443esac
9444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9445 (eval "$ac_link") 2>conftest.er1
9446 ac_status=$?
9447 grep -v '^ *+' conftest.er1 >conftest.err
9448 rm -f conftest.er1
9449 cat conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } && {
9452 test -z "$ac_c_werror_flag" ||
9453 test ! -s conftest.err
9454 } && test -s conftest$ac_exeext &&
9455 $as_test_x conftest$ac_exeext; then
9456 ac_cv_lib_dl_dlopen=yes
9457else
9458 echo "$as_me: failed program was:" >&5
9459sed 's/^/| /' conftest.$ac_ext >&5
9460
9461 ac_cv_lib_dl_dlopen=no
9462fi
9463
9464rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9465 conftest$ac_exeext conftest.$ac_ext
9466LIBS=$ac_check_lib_save_LIBS
9467fi
9468{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9469echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9470if test $ac_cv_lib_dl_dlopen = yes; then
9471
9472cat >>confdefs.h <<\_ACEOF
9473#define HAVE_LIBDL 1
9474_ACEOF
9475
9476 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9477else
9478 cat >conftest.$ac_ext <<_ACEOF
9479/* confdefs.h. */
9480_ACEOF
9481cat confdefs.h >>conftest.$ac_ext
9482cat >>conftest.$ac_ext <<_ACEOF
9483/* end confdefs.h. */
9484#if HAVE_DLFCN_H
9485# include <dlfcn.h>
9486#endif
9487
9488int
9489main ()
9490{
9491dlopen(0, 0);
9492 ;
9493 return 0;
9494}
9495_ACEOF
9496rm -f conftest.$ac_objext conftest$ac_exeext
9497if { (ac_try="$ac_link"
9498case "(($ac_try" in
9499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9500 *) ac_try_echo=$ac_try;;
9501esac
9502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9503 (eval "$ac_link") 2>conftest.er1
9504 ac_status=$?
9505 grep -v '^ *+' conftest.er1 >conftest.err
9506 rm -f conftest.er1
9507 cat conftest.err >&5
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); } && {
9510 test -z "$ac_c_werror_flag" ||
9511 test ! -s conftest.err
9512 } && test -s conftest$ac_exeext &&
9513 $as_test_x conftest$ac_exeext; then
9514
9515cat >>confdefs.h <<\_ACEOF
9516#define HAVE_LIBDL 1
9517_ACEOF
9518 libltdl_cv_func_dlopen="yes"
9519else
9520 echo "$as_me: failed program was:" >&5
9521sed 's/^/| /' conftest.$ac_ext >&5
9522
9523 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9524echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9525if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9527else
9528 ac_check_lib_save_LIBS=$LIBS
9529LIBS="-lsvld $LIBS"
9530cat >conftest.$ac_ext <<_ACEOF
9531/* confdefs.h. */
9532_ACEOF
9533cat confdefs.h >>conftest.$ac_ext
9534cat >>conftest.$ac_ext <<_ACEOF
9535/* end confdefs.h. */
9536
9537/* Override any GCC internal prototype to avoid an error.
9538 Use char because int might match the return type of a GCC
9539 builtin and then its argument prototype would still apply. */
9540#ifdef __cplusplus
9541extern "C"
9542#endif
9543char dlopen ();
9544int
9545main ()
9546{
9547return dlopen ();
9548 ;
9549 return 0;
9550}
9551_ACEOF
9552rm -f conftest.$ac_objext conftest$ac_exeext
9553if { (ac_try="$ac_link"
9554case "(($ac_try" in
9555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9556 *) ac_try_echo=$ac_try;;
9557esac
9558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9559 (eval "$ac_link") 2>conftest.er1
9560 ac_status=$?
9561 grep -v '^ *+' conftest.er1 >conftest.err
9562 rm -f conftest.er1
9563 cat conftest.err >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } && {
9566 test -z "$ac_c_werror_flag" ||
9567 test ! -s conftest.err
9568 } && test -s conftest$ac_exeext &&
9569 $as_test_x conftest$ac_exeext; then
9570 ac_cv_lib_svld_dlopen=yes
9571else
9572 echo "$as_me: failed program was:" >&5
9573sed 's/^/| /' conftest.$ac_ext >&5
9574
9575 ac_cv_lib_svld_dlopen=no
9576fi
9577
9578rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9579 conftest$ac_exeext conftest.$ac_ext
9580LIBS=$ac_check_lib_save_LIBS
9581fi
9582{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9583echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9584if test $ac_cv_lib_svld_dlopen = yes; then
9585
9586cat >>confdefs.h <<\_ACEOF
9587#define HAVE_LIBDL 1
9588_ACEOF
9589
9590 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9591else
9592 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9593echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9594if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9595 echo $ECHO_N "(cached) $ECHO_C" >&6
9596else
9597 ac_check_lib_save_LIBS=$LIBS
9598LIBS="-ldld $LIBS"
9599cat >conftest.$ac_ext <<_ACEOF
9600/* confdefs.h. */
9601_ACEOF
9602cat confdefs.h >>conftest.$ac_ext
9603cat >>conftest.$ac_ext <<_ACEOF
9604/* end confdefs.h. */
9605
9606/* Override any GCC internal prototype to avoid an error.
9607 Use char because int might match the return type of a GCC
9608 builtin and then its argument prototype would still apply. */
9609#ifdef __cplusplus
9610extern "C"
9611#endif
9612char dld_link ();
9613int
9614main ()
9615{
9616return dld_link ();
9617 ;
9618 return 0;
9619}
9620_ACEOF
9621rm -f conftest.$ac_objext conftest$ac_exeext
9622if { (ac_try="$ac_link"
9623case "(($ac_try" in
9624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625 *) ac_try_echo=$ac_try;;
9626esac
9627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9628 (eval "$ac_link") 2>conftest.er1
9629 ac_status=$?
9630 grep -v '^ *+' conftest.er1 >conftest.err
9631 rm -f conftest.er1
9632 cat conftest.err >&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } && {
9635 test -z "$ac_c_werror_flag" ||
9636 test ! -s conftest.err
9637 } && test -s conftest$ac_exeext &&
9638 $as_test_x conftest$ac_exeext; then
9639 ac_cv_lib_dld_dld_link=yes
9640else
9641 echo "$as_me: failed program was:" >&5
9642sed 's/^/| /' conftest.$ac_ext >&5
9643
9644 ac_cv_lib_dld_dld_link=no
9645fi
9646
9647rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9648 conftest$ac_exeext conftest.$ac_ext
9649LIBS=$ac_check_lib_save_LIBS
9650fi
9651{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9652echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9653if test $ac_cv_lib_dld_dld_link = yes; then
9654
9655cat >>confdefs.h <<\_ACEOF
9656#define HAVE_DLD 1
9657_ACEOF
9658
9659 LIBADD_DL="$LIBADD_DL -ldld"
9660else
9661 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9662echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9663if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9665else
9666 cat >conftest.$ac_ext <<_ACEOF
9667/* confdefs.h. */
9668_ACEOF
9669cat confdefs.h >>conftest.$ac_ext
9670cat >>conftest.$ac_ext <<_ACEOF
9671/* end confdefs.h. */
9672/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9674#define _dyld_func_lookup innocuous__dyld_func_lookup
9675
9676/* System header to define __stub macros and hopefully few prototypes,
9677 which can conflict with char _dyld_func_lookup (); below.
9678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9679 <limits.h> exists even on freestanding compilers. */
9680
9681#ifdef __STDC__
9682# include <limits.h>
9683#else
9684# include <assert.h>
9685#endif
9686
9687#undef _dyld_func_lookup
9688
9689/* Override any GCC internal prototype to avoid an error.
9690 Use char because int might match the return type of a GCC
9691 builtin and then its argument prototype would still apply. */
9692#ifdef __cplusplus
9693extern "C"
9694#endif
9695char _dyld_func_lookup ();
9696/* The GNU C library defines this for functions which it implements
9697 to always fail with ENOSYS. Some functions are actually named
9698 something starting with __ and the normal name is an alias. */
9699#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9700choke me
9701#endif
9702
9703int
9704main ()
9705{
9706return _dyld_func_lookup ();
9707 ;
9708 return 0;
9709}
9710_ACEOF
9711rm -f conftest.$ac_objext conftest$ac_exeext
9712if { (ac_try="$ac_link"
9713case "(($ac_try" in
9714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715 *) ac_try_echo=$ac_try;;
9716esac
9717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718 (eval "$ac_link") 2>conftest.er1
9719 ac_status=$?
9720 grep -v '^ *+' conftest.er1 >conftest.err
9721 rm -f conftest.er1
9722 cat conftest.err >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); } && {
9725 test -z "$ac_c_werror_flag" ||
9726 test ! -s conftest.err
9727 } && test -s conftest$ac_exeext &&
9728 $as_test_x conftest$ac_exeext; then
9729 ac_cv_func__dyld_func_lookup=yes
9730else
9731 echo "$as_me: failed program was:" >&5
9732sed 's/^/| /' conftest.$ac_ext >&5
9733
9734 ac_cv_func__dyld_func_lookup=no
9735fi
9736
9737rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9738 conftest$ac_exeext conftest.$ac_ext
9739fi
9740{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9741echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
9742if test $ac_cv_func__dyld_func_lookup = yes; then
9743
9744cat >>confdefs.h <<\_ACEOF
9745#define HAVE_DYLD 1
9746_ACEOF
9747
9748fi
9749
9750
9751fi
9752
9753
9754fi
9755
9756
9757fi
9758
9759rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9760 conftest$ac_exeext conftest.$ac_ext
9761
9762fi
9763
9764
9765fi
9766
9767
9768fi
9769
9770
9771if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9772then
9773 lt_save_LIBS="$LIBS"
9774 LIBS="$LIBS $LIBADD_DL"
9775
9776for ac_func in dlerror
9777do
9778as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9779{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9780echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9781if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9783else
9784 cat >conftest.$ac_ext <<_ACEOF
9785/* confdefs.h. */
9786_ACEOF
9787cat confdefs.h >>conftest.$ac_ext
9788cat >>conftest.$ac_ext <<_ACEOF
9789/* end confdefs.h. */
9790/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9792#define $ac_func innocuous_$ac_func
9793
9794/* System header to define __stub macros and hopefully few prototypes,
9795 which can conflict with char $ac_func (); below.
9796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9797 <limits.h> exists even on freestanding compilers. */
9798
9799#ifdef __STDC__
9800# include <limits.h>
9801#else
9802# include <assert.h>
9803#endif
9804
9805#undef $ac_func
9806
9807/* Override any GCC internal prototype to avoid an error.
9808 Use char because int might match the return type of a GCC
9809 builtin and then its argument prototype would still apply. */
9810#ifdef __cplusplus
9811extern "C"
9812#endif
9813char $ac_func ();
9814/* The GNU C library defines this for functions which it implements
9815 to always fail with ENOSYS. Some functions are actually named
9816 something starting with __ and the normal name is an alias. */
9817#if defined __stub_$ac_func || defined __stub___$ac_func
9818choke me
9819#endif
9820
9821int
9822main ()
9823{
9824return $ac_func ();
9825 ;
9826 return 0;
9827}
9828_ACEOF
9829rm -f conftest.$ac_objext conftest$ac_exeext
9830if { (ac_try="$ac_link"
9831case "(($ac_try" in
9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833 *) ac_try_echo=$ac_try;;
9834esac
9835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9836 (eval "$ac_link") 2>conftest.er1
9837 ac_status=$?
9838 grep -v '^ *+' conftest.er1 >conftest.err
9839 rm -f conftest.er1
9840 cat conftest.err >&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); } && {
9843 test -z "$ac_c_werror_flag" ||
9844 test ! -s conftest.err
9845 } && test -s conftest$ac_exeext &&
9846 $as_test_x conftest$ac_exeext; then
9847 eval "$as_ac_var=yes"
9848else
9849 echo "$as_me: failed program was:" >&5
9850sed 's/^/| /' conftest.$ac_ext >&5
9851
9852 eval "$as_ac_var=no"
9853fi
9854
9855rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9856 conftest$ac_exeext conftest.$ac_ext
9857fi
9858ac_res=`eval echo '${'$as_ac_var'}'`
9859 { echo "$as_me:$LINENO: result: $ac_res" >&5
9860echo "${ECHO_T}$ac_res" >&6; }
9861if test `eval echo '${'$as_ac_var'}'` = yes; then
9862 cat >>confdefs.h <<_ACEOF
9863#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9864_ACEOF
9865
9866fi
9867done
9868
9869 LIBS="$lt_save_LIBS"
9870fi
9871ac_ext=c
9872ac_cpp='$CPP $CPPFLAGS'
9873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9875ac_compiler_gnu=$ac_cv_c_compiler_gnu
9876
9877
9878
9879{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
9880echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
9881if test "${ac_cv_sys_symbol_underscore+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9883else
9884 ac_cv_sys_symbol_underscore=no
9885 cat > conftest.$ac_ext <<EOF
9886void nm_test_func(){}
9887int main(){nm_test_func;return 0;}
9888EOF
9889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9890 (eval $ac_compile) 2>&5
9891 ac_status=$?
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); }; then
9894 # Now try to grab the symbols.
9895 ac_nlist=conftest.nm
9896 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
9897 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
9898 ac_status=$?
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } && test -s "$ac_nlist"; then
9901 # See whether the symbols have a leading underscore.
9902 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
9903 ac_cv_sys_symbol_underscore=yes
9904 else
9905 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
9906 :
9907 else
9908 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
9909 fi
9910 fi
9911 else
9912 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
9913 fi
9914 else
9915 echo "configure: failed program was:" >&5
9916 cat conftest.c >&5
9917 fi
9918 rm -rf conftest*
9919
9920fi
9921{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
9922echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
9923
9924
9925if test x"$ac_cv_sys_symbol_underscore" = xyes; then
9926 if test x"$libltdl_cv_func_dlopen" = xyes ||
9927 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
9928 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
9929echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
9930if test "${libltdl_cv_need_uscore+set}" = set; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9932else
9933 libltdl_cv_need_uscore=unknown
9934 save_LIBS="$LIBS"
9935 LIBS="$LIBS $LIBADD_DL"
9936 if test "$cross_compiling" = yes; then :
9937 libltdl_cv_need_uscore=cross
9938else
9939 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9940 lt_status=$lt_dlunknown
9941 cat > conftest.$ac_ext <<EOF
9942#line 9942 "configure"
9943#include "confdefs.h"
9944
9945#if HAVE_DLFCN_H
9946#include <dlfcn.h>
9947#endif
9948
9949#include <stdio.h>
9950
9951#ifdef RTLD_GLOBAL
9952# define LT_DLGLOBAL RTLD_GLOBAL
9953#else
9954# ifdef DL_GLOBAL
9955# define LT_DLGLOBAL DL_GLOBAL
9956# else
9957# define LT_DLGLOBAL 0
9958# endif
9959#endif
9960
9961/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9962 find out it does not work in some platform. */
9963#ifndef LT_DLLAZY_OR_NOW
9964# ifdef RTLD_LAZY
9965# define LT_DLLAZY_OR_NOW RTLD_LAZY
9966# else
9967# ifdef DL_LAZY
9968# define LT_DLLAZY_OR_NOW DL_LAZY
9969# else
9970# ifdef RTLD_NOW
9971# define LT_DLLAZY_OR_NOW RTLD_NOW
9972# else
9973# ifdef DL_NOW
9974# define LT_DLLAZY_OR_NOW DL_NOW
9975# else
9976# define LT_DLLAZY_OR_NOW 0
9977# endif
9978# endif
9979# endif
9980# endif
9981#endif
9982
9983#ifdef __cplusplus
9984extern "C" void exit (int);
9985#endif
9986
9987void fnord() { int i=42;}
9988int main ()
9989{
9990 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9991 int status = $lt_dlunknown;
9992
9993 if (self)
9994 {
9995 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9996 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9997 /* dlclose (self); */
9998 }
9999 else
10000 puts (dlerror ());
10001
10002 exit (status);
10003}
10004EOF
10005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10006 (eval $ac_link) 2>&5
10007 ac_status=$?
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10010 (./conftest; exit; ) >&5 2>/dev/null
10011 lt_status=$?
10012 case x$lt_status in
10013 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10014 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10015 x$lt_dlunknown|x*) ;;
10016 esac
10017 else :
10018 # compilation failed
10019
10020 fi
10021fi
10022rm -fr conftest*
10023
10024 LIBS="$save_LIBS"
10025
10026fi
10027{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10028echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10029 fi
10030fi
10031
10032if test x"$libltdl_cv_need_uscore" = xyes; then
10033
10034cat >>confdefs.h <<\_ACEOF
10035#define NEED_USCORE 1
10036_ACEOF
10037
10038fi
10039
10040
10041{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10042echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10043if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
10045else
10046 # PORTME does your system automatically load deplibs for dlopen?
10047 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10048 # For now, we just catch OSes we know something about -- in the
10049 # future, we'll try test this programmatically.
10050 libltdl_cv_sys_dlopen_deplibs=unknown
10051 case "$host_os" in
10052 aix3*|aix4.1.*|aix4.2.*)
10053 # Unknown whether this is true for these versions of AIX, but
10054 # we want this `case' here to explicitly catch those versions.
10055 libltdl_cv_sys_dlopen_deplibs=unknown
10056 ;;
10057 aix[45]*)
10058 libltdl_cv_sys_dlopen_deplibs=yes
10059 ;;
10060 darwin*)
10061 # Assuming the user has installed a libdl from somewhere, this is true
10062 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10063 libltdl_cv_sys_dlopen_deplibs=yes
10064 ;;
10065 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10066 # GNU and its variants, using gnu ld.so (Glibc)
10067 libltdl_cv_sys_dlopen_deplibs=yes
10068 ;;
10069 hpux10*|hpux11*)
10070 libltdl_cv_sys_dlopen_deplibs=yes
10071 ;;
10072 interix*)
10073 libltdl_cv_sys_dlopen_deplibs=yes
10074 ;;
10075 irix[12345]*|irix6.[01]*)
10076 # Catch all versions of IRIX before 6.2, and indicate that we don't
10077 # know how it worked for any of those versions.
10078 libltdl_cv_sys_dlopen_deplibs=unknown
10079 ;;
10080 irix*)
10081 # The case above catches anything before 6.2, and it's known that
10082 # at 6.2 and later dlopen does load deplibs.
10083 libltdl_cv_sys_dlopen_deplibs=yes
10084 ;;
10085 netbsd*)
10086 libltdl_cv_sys_dlopen_deplibs=yes
10087 ;;
10088 openbsd*)
10089 libltdl_cv_sys_dlopen_deplibs=yes
10090 ;;
10091 osf[1234]*)
10092 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10093 # it did *not* use an RPATH in a shared library to find objects the
10094 # library depends on, so we explicitly say `no'.
10095 libltdl_cv_sys_dlopen_deplibs=no
10096 ;;
10097 osf5.0|osf5.0a|osf5.1)
10098 # dlopen *does* load deplibs and with the right loader patch applied
10099 # it even uses RPATH in a shared library to search for shared objects
10100 # that the library depends on, but there's no easy way to know if that
10101 # patch is installed. Since this is the case, all we can really
10102 # say is unknown -- it depends on the patch being installed. If
10103 # it is, this changes to `yes'. Without it, it would be `no'.
10104 libltdl_cv_sys_dlopen_deplibs=unknown
10105 ;;
10106 osf*)
10107 # the two cases above should catch all versions of osf <= 5.1. Read
10108 # the comments above for what we know about them.
10109 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10110 # is used to find them so we can finally say `yes'.
10111 libltdl_cv_sys_dlopen_deplibs=yes
10112 ;;
10113 solaris*)
10114 libltdl_cv_sys_dlopen_deplibs=yes
10115 ;;
10116 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10117 libltdl_cv_sys_dlopen_deplibs=yes
10118 ;;
10119 esac
10120
10121fi
10122{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10123echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10124if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10125
10126cat >>confdefs.h <<\_ACEOF
10127#define LTDL_DLOPEN_DEPLIBS 1
10128_ACEOF
10129
10130fi
10131
10132
10133for ac_header in argz.h
10134do
10135as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10140 echo $ECHO_N "(cached) $ECHO_C" >&6
10141fi
10142ac_res=`eval echo '${'$as_ac_Header'}'`
10143 { echo "$as_me:$LINENO: result: $ac_res" >&5
10144echo "${ECHO_T}$ac_res" >&6; }
10145else
10146 # Is the header compilable?
10147{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10148echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10149cat >conftest.$ac_ext <<_ACEOF
10150/* confdefs.h. */
10151_ACEOF
10152cat confdefs.h >>conftest.$ac_ext
10153cat >>conftest.$ac_ext <<_ACEOF
10154/* end confdefs.h. */
10155$ac_includes_default
10156#include <$ac_header>
10157_ACEOF
10158rm -f conftest.$ac_objext
10159if { (ac_try="$ac_compile"
10160case "(($ac_try" in
10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162 *) ac_try_echo=$ac_try;;
10163esac
10164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165 (eval "$ac_compile") 2>conftest.er1
10166 ac_status=$?
10167 grep -v '^ *+' conftest.er1 >conftest.err
10168 rm -f conftest.er1
10169 cat conftest.err >&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } && {
10172 test -z "$ac_c_werror_flag" ||
10173 test ! -s conftest.err
10174 } && test -s conftest.$ac_objext; then
10175 ac_header_compiler=yes
10176else
10177 echo "$as_me: failed program was:" >&5
10178sed 's/^/| /' conftest.$ac_ext >&5
10179
10180 ac_header_compiler=no
10181fi
10182
10183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10184{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10185echo "${ECHO_T}$ac_header_compiler" >&6; }
10186
10187# Is the header present?
10188{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10189echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10190cat >conftest.$ac_ext <<_ACEOF
10191/* confdefs.h. */
10192_ACEOF
10193cat confdefs.h >>conftest.$ac_ext
10194cat >>conftest.$ac_ext <<_ACEOF
10195/* end confdefs.h. */
10196#include <$ac_header>
10197_ACEOF
10198if { (ac_try="$ac_cpp conftest.$ac_ext"
10199case "(($ac_try" in
10200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10201 *) ac_try_echo=$ac_try;;
10202esac
10203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10205 ac_status=$?
10206 grep -v '^ *+' conftest.er1 >conftest.err
10207 rm -f conftest.er1
10208 cat conftest.err >&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } >/dev/null && {
10211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10212 test ! -s conftest.err
10213 }; then
10214 ac_header_preproc=yes
10215else
10216 echo "$as_me: failed program was:" >&5
10217sed 's/^/| /' conftest.$ac_ext >&5
10218
10219 ac_header_preproc=no
10220fi
10221
10222rm -f conftest.err conftest.$ac_ext
10223{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10224echo "${ECHO_T}$ac_header_preproc" >&6; }
10225
10226# So? What about this header?
10227case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10228 yes:no: )
10229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10230echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10232echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10233 ac_header_preproc=yes
10234 ;;
10235 no:yes:* )
10236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10237echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10239echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10241echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10243echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10245echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10247echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10248 ( cat <<\_ASBOX
10249## ----------------------------------- ##
10250## Report this to llvmbugs@cs.uiuc.edu ##
10251## ----------------------------------- ##
10252_ASBOX
10253 ) | sed "s/^/$as_me: WARNING: /" >&2
10254 ;;
10255esac
10256{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10258if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10259 echo $ECHO_N "(cached) $ECHO_C" >&6
10260else
10261 eval "$as_ac_Header=\$ac_header_preproc"
10262fi
10263ac_res=`eval echo '${'$as_ac_Header'}'`
10264 { echo "$as_me:$LINENO: result: $ac_res" >&5
10265echo "${ECHO_T}$ac_res" >&6; }
10266
10267fi
10268if test `eval echo '${'$as_ac_Header'}'` = yes; then
10269 cat >>confdefs.h <<_ACEOF
10270#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10271_ACEOF
10272
10273fi
10274
10275done
10276
10277
10278{ echo "$as_me:$LINENO: checking for error_t" >&5
10279echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10280if test "${ac_cv_type_error_t+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10282else
10283 cat >conftest.$ac_ext <<_ACEOF
10284/* confdefs.h. */
10285_ACEOF
10286cat confdefs.h >>conftest.$ac_ext
10287cat >>conftest.$ac_ext <<_ACEOF
10288/* end confdefs.h. */
10289#if HAVE_ARGZ_H
10290# include <argz.h>
10291#endif
10292
10293typedef error_t ac__type_new_;
10294int
10295main ()
10296{
10297if ((ac__type_new_ *) 0)
10298 return 0;
10299if (sizeof (ac__type_new_))
10300 return 0;
10301 ;
10302 return 0;
10303}
10304_ACEOF
10305rm -f conftest.$ac_objext
10306if { (ac_try="$ac_compile"
10307case "(($ac_try" in
10308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10309 *) ac_try_echo=$ac_try;;
10310esac
10311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10312 (eval "$ac_compile") 2>conftest.er1
10313 ac_status=$?
10314 grep -v '^ *+' conftest.er1 >conftest.err
10315 rm -f conftest.er1
10316 cat conftest.err >&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); } && {
10319 test -z "$ac_c_werror_flag" ||
10320 test ! -s conftest.err
10321 } && test -s conftest.$ac_objext; then
10322 ac_cv_type_error_t=yes
10323else
10324 echo "$as_me: failed program was:" >&5
10325sed 's/^/| /' conftest.$ac_ext >&5
10326
10327 ac_cv_type_error_t=no
10328fi
10329
10330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10331fi
10332{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10333echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10334if test $ac_cv_type_error_t = yes; then
10335
10336cat >>confdefs.h <<_ACEOF
10337#define HAVE_ERROR_T 1
10338_ACEOF
10339
10340
10341else
10342
10343cat >>confdefs.h <<\_ACEOF
10344#define error_t int
10345_ACEOF
10346
10347fi
10348
10349
10350
10351
10352
10353
10354
10355for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10356do
10357as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10358{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10359echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10360if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10362else
10363 cat >conftest.$ac_ext <<_ACEOF
10364/* confdefs.h. */
10365_ACEOF
10366cat confdefs.h >>conftest.$ac_ext
10367cat >>conftest.$ac_ext <<_ACEOF
10368/* end confdefs.h. */
10369/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10371#define $ac_func innocuous_$ac_func
10372
10373/* System header to define __stub macros and hopefully few prototypes,
10374 which can conflict with char $ac_func (); below.
10375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10376 <limits.h> exists even on freestanding compilers. */
10377
10378#ifdef __STDC__
10379# include <limits.h>
10380#else
10381# include <assert.h>
10382#endif
10383
10384#undef $ac_func
10385
10386/* Override any GCC internal prototype to avoid an error.
10387 Use char because int might match the return type of a GCC
10388 builtin and then its argument prototype would still apply. */
10389#ifdef __cplusplus
10390extern "C"
10391#endif
10392char $ac_func ();
10393/* The GNU C library defines this for functions which it implements
10394 to always fail with ENOSYS. Some functions are actually named
10395 something starting with __ and the normal name is an alias. */
10396#if defined __stub_$ac_func || defined __stub___$ac_func
10397choke me
10398#endif
10399
10400int
10401main ()
10402{
10403return $ac_func ();
10404 ;
10405 return 0;
10406}
10407_ACEOF
10408rm -f conftest.$ac_objext conftest$ac_exeext
10409if { (ac_try="$ac_link"
10410case "(($ac_try" in
10411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10412 *) ac_try_echo=$ac_try;;
10413esac
10414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10415 (eval "$ac_link") 2>conftest.er1
10416 ac_status=$?
10417 grep -v '^ *+' conftest.er1 >conftest.err
10418 rm -f conftest.er1
10419 cat conftest.err >&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } && {
10422 test -z "$ac_c_werror_flag" ||
10423 test ! -s conftest.err
10424 } && test -s conftest$ac_exeext &&
10425 $as_test_x conftest$ac_exeext; then
10426 eval "$as_ac_var=yes"
10427else
10428 echo "$as_me: failed program was:" >&5
10429sed 's/^/| /' conftest.$ac_ext >&5
10430
10431 eval "$as_ac_var=no"
10432fi
10433
10434rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10435 conftest$ac_exeext conftest.$ac_ext
10436fi
10437ac_res=`eval echo '${'$as_ac_var'}'`
10438 { echo "$as_me:$LINENO: result: $ac_res" >&5
10439echo "${ECHO_T}$ac_res" >&6; }
10440if test `eval echo '${'$as_ac_var'}'` = yes; then
10441 cat >>confdefs.h <<_ACEOF
10442#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10443_ACEOF
10444
10445fi
10446done
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10476 stdio.h unistd.h
10477do
10478as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10479if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10482if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10483 echo $ECHO_N "(cached) $ECHO_C" >&6
10484fi
10485ac_res=`eval echo '${'$as_ac_Header'}'`
10486 { echo "$as_me:$LINENO: result: $ac_res" >&5
10487echo "${ECHO_T}$ac_res" >&6; }
10488else
10489 # Is the header compilable?
10490{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10491echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10492cat >conftest.$ac_ext <<_ACEOF
10493/* confdefs.h. */
10494_ACEOF
10495cat confdefs.h >>conftest.$ac_ext
10496cat >>conftest.$ac_ext <<_ACEOF
10497/* end confdefs.h. */
10498$ac_includes_default
10499#include <$ac_header>
10500_ACEOF
10501rm -f conftest.$ac_objext
10502if { (ac_try="$ac_compile"
10503case "(($ac_try" in
10504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10505 *) ac_try_echo=$ac_try;;
10506esac
10507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10508 (eval "$ac_compile") 2>conftest.er1
10509 ac_status=$?
10510 grep -v '^ *+' conftest.er1 >conftest.err
10511 rm -f conftest.er1
10512 cat conftest.err >&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); } && {
10515 test -z "$ac_c_werror_flag" ||
10516 test ! -s conftest.err
10517 } && test -s conftest.$ac_objext; then
10518 ac_header_compiler=yes
10519else
10520 echo "$as_me: failed program was:" >&5
10521sed 's/^/| /' conftest.$ac_ext >&5
10522
10523 ac_header_compiler=no
10524fi
10525
10526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10527{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10528echo "${ECHO_T}$ac_header_compiler" >&6; }
10529
10530# Is the header present?
10531{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10532echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10533cat >conftest.$ac_ext <<_ACEOF
10534/* confdefs.h. */
10535_ACEOF
10536cat confdefs.h >>conftest.$ac_ext
10537cat >>conftest.$ac_ext <<_ACEOF
10538/* end confdefs.h. */
10539#include <$ac_header>
10540_ACEOF
10541if { (ac_try="$ac_cpp conftest.$ac_ext"
10542case "(($ac_try" in
10543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544 *) ac_try_echo=$ac_try;;
10545esac
10546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10548 ac_status=$?
10549 grep -v '^ *+' conftest.er1 >conftest.err
10550 rm -f conftest.er1
10551 cat conftest.err >&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } >/dev/null && {
10554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10555 test ! -s conftest.err
10556 }; then
10557 ac_header_preproc=yes
10558else
10559 echo "$as_me: failed program was:" >&5
10560sed 's/^/| /' conftest.$ac_ext >&5
10561
10562 ac_header_preproc=no
10563fi
10564
10565rm -f conftest.err conftest.$ac_ext
10566{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10567echo "${ECHO_T}$ac_header_preproc" >&6; }
10568
10569# So? What about this header?
10570case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10571 yes:no: )
10572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10573echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10575echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10576 ac_header_preproc=yes
10577 ;;
10578 no:yes:* )
10579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10580echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10582echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10584echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10586echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10588echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10590echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10591 ( cat <<\_ASBOX
10592## ----------------------------------- ##
10593## Report this to llvmbugs@cs.uiuc.edu ##
10594## ----------------------------------- ##
10595_ASBOX
10596 ) | sed "s/^/$as_me: WARNING: /" >&2
10597 ;;
10598esac
10599{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10602 echo $ECHO_N "(cached) $ECHO_C" >&6
10603else
10604 eval "$as_ac_Header=\$ac_header_preproc"
10605fi
10606ac_res=`eval echo '${'$as_ac_Header'}'`
10607 { echo "$as_me:$LINENO: result: $ac_res" >&5
10608echo "${ECHO_T}$ac_res" >&6; }
10609
10610fi
10611if test `eval echo '${'$as_ac_Header'}'` = yes; then
10612 cat >>confdefs.h <<_ACEOF
10613#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10614_ACEOF
10615
10616fi
10617
10618done
10619
10620
10621
10622
10623
10624for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10625do
10626as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10627if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10628 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10629echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10630if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10632fi
10633ac_res=`eval echo '${'$as_ac_Header'}'`
10634 { echo "$as_me:$LINENO: result: $ac_res" >&5
10635echo "${ECHO_T}$ac_res" >&6; }
10636else
10637 # Is the header compilable?
10638{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10639echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10640cat >conftest.$ac_ext <<_ACEOF
10641/* confdefs.h. */
10642_ACEOF
10643cat confdefs.h >>conftest.$ac_ext
10644cat >>conftest.$ac_ext <<_ACEOF
10645/* end confdefs.h. */
10646$ac_includes_default
10647#include <$ac_header>
10648_ACEOF
10649rm -f conftest.$ac_objext
10650if { (ac_try="$ac_compile"
10651case "(($ac_try" in
10652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10653 *) ac_try_echo=$ac_try;;
10654esac
10655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10656 (eval "$ac_compile") 2>conftest.er1
10657 ac_status=$?
10658 grep -v '^ *+' conftest.er1 >conftest.err
10659 rm -f conftest.er1
10660 cat conftest.err >&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } && {
10663 test -z "$ac_c_werror_flag" ||
10664 test ! -s conftest.err
10665 } && test -s conftest.$ac_objext; then
10666 ac_header_compiler=yes
10667else
10668 echo "$as_me: failed program was:" >&5
10669sed 's/^/| /' conftest.$ac_ext >&5
10670
10671 ac_header_compiler=no
10672fi
10673
10674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10675{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10676echo "${ECHO_T}$ac_header_compiler" >&6; }
10677
10678# Is the header present?
10679{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10680echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10681cat >conftest.$ac_ext <<_ACEOF
10682/* confdefs.h. */
10683_ACEOF
10684cat confdefs.h >>conftest.$ac_ext
10685cat >>conftest.$ac_ext <<_ACEOF
10686/* end confdefs.h. */
10687#include <$ac_header>
10688_ACEOF
10689if { (ac_try="$ac_cpp conftest.$ac_ext"
10690case "(($ac_try" in
10691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692 *) ac_try_echo=$ac_try;;
10693esac
10694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10696 ac_status=$?
10697 grep -v '^ *+' conftest.er1 >conftest.err
10698 rm -f conftest.er1
10699 cat conftest.err >&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } >/dev/null && {
10702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10703 test ! -s conftest.err
10704 }; then
10705 ac_header_preproc=yes
10706else
10707 echo "$as_me: failed program was:" >&5
10708sed 's/^/| /' conftest.$ac_ext >&5
10709
10710 ac_header_preproc=no
10711fi
10712
10713rm -f conftest.err conftest.$ac_ext
10714{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10715echo "${ECHO_T}$ac_header_preproc" >&6; }
10716
10717# So? What about this header?
10718case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10719 yes:no: )
10720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10721echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10723echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10724 ac_header_preproc=yes
10725 ;;
10726 no:yes:* )
10727 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10728echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10729 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10730echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10731 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10732echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10733 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10734echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10736echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10737 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10738echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10739 ( cat <<\_ASBOX
10740## ----------------------------------- ##
10741## Report this to llvmbugs@cs.uiuc.edu ##
10742## ----------------------------------- ##
10743_ASBOX
10744 ) | sed "s/^/$as_me: WARNING: /" >&2
10745 ;;
10746esac
10747{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10748echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10749if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10750 echo $ECHO_N "(cached) $ECHO_C" >&6
10751else
10752 eval "$as_ac_Header=\$ac_header_preproc"
10753fi
10754ac_res=`eval echo '${'$as_ac_Header'}'`
10755 { echo "$as_me:$LINENO: result: $ac_res" >&5
10756echo "${ECHO_T}$ac_res" >&6; }
10757
10758fi
10759if test `eval echo '${'$as_ac_Header'}'` = yes; then
10760 cat >>confdefs.h <<_ACEOF
10761#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10762_ACEOF
10763
10764fi
10765
10766done
10767
10768
10769
10770for ac_header in string.h strings.h
10771do
10772as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10773if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10775echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10776if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10777 echo $ECHO_N "(cached) $ECHO_C" >&6
10778fi
10779ac_res=`eval echo '${'$as_ac_Header'}'`
10780 { echo "$as_me:$LINENO: result: $ac_res" >&5
10781echo "${ECHO_T}$ac_res" >&6; }
10782else
10783 # Is the header compilable?
10784{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10785echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10786cat >conftest.$ac_ext <<_ACEOF
10787/* confdefs.h. */
10788_ACEOF
10789cat confdefs.h >>conftest.$ac_ext
10790cat >>conftest.$ac_ext <<_ACEOF
10791/* end confdefs.h. */
10792$ac_includes_default
10793#include <$ac_header>
10794_ACEOF
10795rm -f conftest.$ac_objext
10796if { (ac_try="$ac_compile"
10797case "(($ac_try" in
10798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799 *) ac_try_echo=$ac_try;;
10800esac
10801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10802 (eval "$ac_compile") 2>conftest.er1
10803 ac_status=$?
10804 grep -v '^ *+' conftest.er1 >conftest.err
10805 rm -f conftest.er1
10806 cat conftest.err >&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); } && {
10809 test -z "$ac_c_werror_flag" ||
10810 test ! -s conftest.err
10811 } && test -s conftest.$ac_objext; then
10812 ac_header_compiler=yes
10813else
10814 echo "$as_me: failed program was:" >&5
10815sed 's/^/| /' conftest.$ac_ext >&5
10816
10817 ac_header_compiler=no
10818fi
10819
10820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10821{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10822echo "${ECHO_T}$ac_header_compiler" >&6; }
10823
10824# Is the header present?
10825{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10826echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10827cat >conftest.$ac_ext <<_ACEOF
10828/* confdefs.h. */
10829_ACEOF
10830cat confdefs.h >>conftest.$ac_ext
10831cat >>conftest.$ac_ext <<_ACEOF
10832/* end confdefs.h. */
10833#include <$ac_header>
10834_ACEOF
10835if { (ac_try="$ac_cpp conftest.$ac_ext"
10836case "(($ac_try" in
10837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10838 *) ac_try_echo=$ac_try;;
10839esac
10840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10842 ac_status=$?
10843 grep -v '^ *+' conftest.er1 >conftest.err
10844 rm -f conftest.er1
10845 cat conftest.err >&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); } >/dev/null && {
10848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10849 test ! -s conftest.err
10850 }; then
10851 ac_header_preproc=yes
10852else
10853 echo "$as_me: failed program was:" >&5
10854sed 's/^/| /' conftest.$ac_ext >&5
10855
10856 ac_header_preproc=no
10857fi
10858
10859rm -f conftest.err conftest.$ac_ext
10860{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10861echo "${ECHO_T}$ac_header_preproc" >&6; }
10862
10863# So? What about this header?
10864case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10865 yes:no: )
10866 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10867echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10869echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10870 ac_header_preproc=yes
10871 ;;
10872 no:yes:* )
10873 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10874echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10875 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10876echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10877 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10878echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10879 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10880echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10882echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10883 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10884echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10885 ( cat <<\_ASBOX
10886## ----------------------------------- ##
10887## Report this to llvmbugs@cs.uiuc.edu ##
10888## ----------------------------------- ##
10889_ASBOX
10890 ) | sed "s/^/$as_me: WARNING: /" >&2
10891 ;;
10892esac
10893{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10894echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10895if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10896 echo $ECHO_N "(cached) $ECHO_C" >&6
10897else
10898 eval "$as_ac_Header=\$ac_header_preproc"
10899fi
10900ac_res=`eval echo '${'$as_ac_Header'}'`
10901 { echo "$as_me:$LINENO: result: $ac_res" >&5
10902echo "${ECHO_T}$ac_res" >&6; }
10903
10904fi
10905if test `eval echo '${'$as_ac_Header'}'` = yes; then
10906 cat >>confdefs.h <<_ACEOF
10907#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10908_ACEOF
10909 break
10910fi
10911
10912done
10913
10914
10915
10916
10917for ac_func in strchr index
10918do
10919as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10920{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10921echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10922if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10924else
10925 cat >conftest.$ac_ext <<_ACEOF
10926/* confdefs.h. */
10927_ACEOF
10928cat confdefs.h >>conftest.$ac_ext
10929cat >>conftest.$ac_ext <<_ACEOF
10930/* end confdefs.h. */
10931/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10933#define $ac_func innocuous_$ac_func
10934
10935/* System header to define __stub macros and hopefully few prototypes,
10936 which can conflict with char $ac_func (); below.
10937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10938 <limits.h> exists even on freestanding compilers. */
10939
10940#ifdef __STDC__
10941# include <limits.h>
10942#else
10943# include <assert.h>
10944#endif
10945
10946#undef $ac_func
10947
10948/* Override any GCC internal prototype to avoid an error.
10949 Use char because int might match the return type of a GCC
10950 builtin and then its argument prototype would still apply. */
10951#ifdef __cplusplus
10952extern "C"
10953#endif
10954char $ac_func ();
10955/* The GNU C library defines this for functions which it implements
10956 to always fail with ENOSYS. Some functions are actually named
10957 something starting with __ and the normal name is an alias. */
10958#if defined __stub_$ac_func || defined __stub___$ac_func
10959choke me
10960#endif
10961
10962int
10963main ()
10964{
10965return $ac_func ();
10966 ;
10967 return 0;
10968}
10969_ACEOF
10970rm -f conftest.$ac_objext conftest$ac_exeext
10971if { (ac_try="$ac_link"
10972case "(($ac_try" in
10973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974 *) ac_try_echo=$ac_try;;
10975esac
10976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977 (eval "$ac_link") 2>conftest.er1
10978 ac_status=$?
10979 grep -v '^ *+' conftest.er1 >conftest.err
10980 rm -f conftest.er1
10981 cat conftest.err >&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } && {
10984 test -z "$ac_c_werror_flag" ||
10985 test ! -s conftest.err
10986 } && test -s conftest$ac_exeext &&
10987 $as_test_x conftest$ac_exeext; then
10988 eval "$as_ac_var=yes"
10989else
10990 echo "$as_me: failed program was:" >&5
10991sed 's/^/| /' conftest.$ac_ext >&5
10992
10993 eval "$as_ac_var=no"
10994fi
10995
10996rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10997 conftest$ac_exeext conftest.$ac_ext
10998fi
10999ac_res=`eval echo '${'$as_ac_var'}'`
11000 { echo "$as_me:$LINENO: result: $ac_res" >&5
11001echo "${ECHO_T}$ac_res" >&6; }
11002if test `eval echo '${'$as_ac_var'}'` = yes; then
11003 cat >>confdefs.h <<_ACEOF
11004#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11005_ACEOF
11006 break
11007fi
11008done
11009
11010
11011
11012for ac_func in strrchr rindex
11013do
11014as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11015{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11016echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11017if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11018 echo $ECHO_N "(cached) $ECHO_C" >&6
11019else
11020 cat >conftest.$ac_ext <<_ACEOF
11021/* confdefs.h. */
11022_ACEOF
11023cat confdefs.h >>conftest.$ac_ext
11024cat >>conftest.$ac_ext <<_ACEOF
11025/* end confdefs.h. */
11026/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11028#define $ac_func innocuous_$ac_func
11029
11030/* System header to define __stub macros and hopefully few prototypes,
11031 which can conflict with char $ac_func (); below.
11032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11033 <limits.h> exists even on freestanding compilers. */
11034
11035#ifdef __STDC__
11036# include <limits.h>
11037#else
11038# include <assert.h>
11039#endif
11040
11041#undef $ac_func
11042
11043/* Override any GCC internal prototype to avoid an error.
11044 Use char because int might match the return type of a GCC
11045 builtin and then its argument prototype would still apply. */
11046#ifdef __cplusplus
11047extern "C"
11048#endif
11049char $ac_func ();
11050/* The GNU C library defines this for functions which it implements
11051 to always fail with ENOSYS. Some functions are actually named
11052 something starting with __ and the normal name is an alias. */
11053#if defined __stub_$ac_func || defined __stub___$ac_func
11054choke me
11055#endif
11056
11057int
11058main ()
11059{
11060return $ac_func ();
11061 ;
11062 return 0;
11063}
11064_ACEOF
11065rm -f conftest.$ac_objext conftest$ac_exeext
11066if { (ac_try="$ac_link"
11067case "(($ac_try" in
11068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11069 *) ac_try_echo=$ac_try;;
11070esac
11071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11072 (eval "$ac_link") 2>conftest.er1
11073 ac_status=$?
11074 grep -v '^ *+' conftest.er1 >conftest.err
11075 rm -f conftest.er1
11076 cat conftest.err >&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } && {
11079 test -z "$ac_c_werror_flag" ||
11080 test ! -s conftest.err
11081 } && test -s conftest$ac_exeext &&
11082 $as_test_x conftest$ac_exeext; then
11083 eval "$as_ac_var=yes"
11084else
11085 echo "$as_me: failed program was:" >&5
11086sed 's/^/| /' conftest.$ac_ext >&5
11087
11088 eval "$as_ac_var=no"
11089fi
11090
11091rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11092 conftest$ac_exeext conftest.$ac_ext
11093fi
11094ac_res=`eval echo '${'$as_ac_var'}'`
11095 { echo "$as_me:$LINENO: result: $ac_res" >&5
11096echo "${ECHO_T}$ac_res" >&6; }
11097if test `eval echo '${'$as_ac_var'}'` = yes; then
11098 cat >>confdefs.h <<_ACEOF
11099#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11100_ACEOF
11101 break
11102fi
11103done
11104
11105
11106
11107for ac_func in memcpy bcopy
11108do
11109as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11110{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11111echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11112if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11114else
11115 cat >conftest.$ac_ext <<_ACEOF
11116/* confdefs.h. */
11117_ACEOF
11118cat confdefs.h >>conftest.$ac_ext
11119cat >>conftest.$ac_ext <<_ACEOF
11120/* end confdefs.h. */
11121/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11123#define $ac_func innocuous_$ac_func
11124
11125/* System header to define __stub macros and hopefully few prototypes,
11126 which can conflict with char $ac_func (); below.
11127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11128 <limits.h> exists even on freestanding compilers. */
11129
11130#ifdef __STDC__
11131# include <limits.h>
11132#else
11133# include <assert.h>
11134#endif
11135
11136#undef $ac_func
11137
11138/* Override any GCC internal prototype to avoid an error.
11139 Use char because int might match the return type of a GCC
11140 builtin and then its argument prototype would still apply. */
11141#ifdef __cplusplus
11142extern "C"
11143#endif
11144char $ac_func ();
11145/* The GNU C library defines this for functions which it implements
11146 to always fail with ENOSYS. Some functions are actually named
11147 something starting with __ and the normal name is an alias. */
11148#if defined __stub_$ac_func || defined __stub___$ac_func
11149choke me
11150#endif
11151
11152int
11153main ()
11154{
11155return $ac_func ();
11156 ;
11157 return 0;
11158}
11159_ACEOF
11160rm -f conftest.$ac_objext conftest$ac_exeext
11161if { (ac_try="$ac_link"
11162case "(($ac_try" in
11163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164 *) ac_try_echo=$ac_try;;
11165esac
11166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11167 (eval "$ac_link") 2>conftest.er1
11168 ac_status=$?
11169 grep -v '^ *+' conftest.er1 >conftest.err
11170 rm -f conftest.er1
11171 cat conftest.err >&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); } && {
11174 test -z "$ac_c_werror_flag" ||
11175 test ! -s conftest.err
11176 } && test -s conftest$ac_exeext &&
11177 $as_test_x conftest$ac_exeext; then
11178 eval "$as_ac_var=yes"
11179else
11180 echo "$as_me: failed program was:" >&5
11181sed 's/^/| /' conftest.$ac_ext >&5
11182
11183 eval "$as_ac_var=no"
11184fi
11185
11186rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11187 conftest$ac_exeext conftest.$ac_ext
11188fi
11189ac_res=`eval echo '${'$as_ac_var'}'`
11190 { echo "$as_me:$LINENO: result: $ac_res" >&5
11191echo "${ECHO_T}$ac_res" >&6; }
11192if test `eval echo '${'$as_ac_var'}'` = yes; then
11193 cat >>confdefs.h <<_ACEOF
11194#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11195_ACEOF
11196 break
11197fi
11198done
11199
11200
11201
11202for ac_func in memmove strcmp
11203do
11204as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11205{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11206echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11207if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11209else
11210 cat >conftest.$ac_ext <<_ACEOF
11211/* confdefs.h. */
11212_ACEOF
11213cat confdefs.h >>conftest.$ac_ext
11214cat >>conftest.$ac_ext <<_ACEOF
11215/* end confdefs.h. */
11216/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11218#define $ac_func innocuous_$ac_func
11219
11220/* System header to define __stub macros and hopefully few prototypes,
11221 which can conflict with char $ac_func (); below.
11222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11223 <limits.h> exists even on freestanding compilers. */
11224
11225#ifdef __STDC__
11226# include <limits.h>
11227#else
11228# include <assert.h>
11229#endif
11230
11231#undef $ac_func
11232
11233/* Override any GCC internal prototype to avoid an error.
11234 Use char because int might match the return type of a GCC
11235 builtin and then its argument prototype would still apply. */
11236#ifdef __cplusplus
11237extern "C"
11238#endif
11239char $ac_func ();
11240/* The GNU C library defines this for functions which it implements
11241 to always fail with ENOSYS. Some functions are actually named
11242 something starting with __ and the normal name is an alias. */
11243#if defined __stub_$ac_func || defined __stub___$ac_func
11244choke me
11245#endif
11246
11247int
11248main ()
11249{
11250return $ac_func ();
11251 ;
11252 return 0;
11253}
11254_ACEOF
11255rm -f conftest.$ac_objext conftest$ac_exeext
11256if { (ac_try="$ac_link"
11257case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11260esac
11261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_link") 2>conftest.er1
11263 ac_status=$?
11264 grep -v '^ *+' conftest.er1 >conftest.err
11265 rm -f conftest.er1
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } && {
11269 test -z "$ac_c_werror_flag" ||
11270 test ! -s conftest.err
11271 } && test -s conftest$ac_exeext &&
11272 $as_test_x conftest$ac_exeext; then
11273 eval "$as_ac_var=yes"
11274else
11275 echo "$as_me: failed program was:" >&5
11276sed 's/^/| /' conftest.$ac_ext >&5
11277
11278 eval "$as_ac_var=no"
11279fi
11280
11281rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11282 conftest$ac_exeext conftest.$ac_ext
11283fi
11284ac_res=`eval echo '${'$as_ac_var'}'`
11285 { echo "$as_me:$LINENO: result: $ac_res" >&5
11286echo "${ECHO_T}$ac_res" >&6; }
11287if test `eval echo '${'$as_ac_var'}'` = yes; then
11288 cat >>confdefs.h <<_ACEOF
11289#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11290_ACEOF
11291
11292fi
11293done
11294
11295
11296
11297
11298for ac_func in closedir opendir readdir
11299do
11300as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11301{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11302echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11303if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
11305else
11306 cat >conftest.$ac_ext <<_ACEOF
11307/* confdefs.h. */
11308_ACEOF
11309cat confdefs.h >>conftest.$ac_ext
11310cat >>conftest.$ac_ext <<_ACEOF
11311/* end confdefs.h. */
11312/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11314#define $ac_func innocuous_$ac_func
11315
11316/* System header to define __stub macros and hopefully few prototypes,
11317 which can conflict with char $ac_func (); below.
11318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11319 <limits.h> exists even on freestanding compilers. */
11320
11321#ifdef __STDC__
11322# include <limits.h>
11323#else
11324# include <assert.h>
11325#endif
11326
11327#undef $ac_func
11328
11329/* Override any GCC internal prototype to avoid an error.
11330 Use char because int might match the return type of a GCC
11331 builtin and then its argument prototype would still apply. */
11332#ifdef __cplusplus
11333extern "C"
11334#endif
11335char $ac_func ();
11336/* The GNU C library defines this for functions which it implements
11337 to always fail with ENOSYS. Some functions are actually named
11338 something starting with __ and the normal name is an alias. */
11339#if defined __stub_$ac_func || defined __stub___$ac_func
11340choke me
11341#endif
11342
11343int
11344main ()
11345{
11346return $ac_func ();
11347 ;
11348 return 0;
11349}
11350_ACEOF
11351rm -f conftest.$ac_objext conftest$ac_exeext
11352if { (ac_try="$ac_link"
11353case "(($ac_try" in
11354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11355 *) ac_try_echo=$ac_try;;
11356esac
11357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11358 (eval "$ac_link") 2>conftest.er1
11359 ac_status=$?
11360 grep -v '^ *+' conftest.er1 >conftest.err
11361 rm -f conftest.er1
11362 cat conftest.err >&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } && {
11365 test -z "$ac_c_werror_flag" ||
11366 test ! -s conftest.err
11367 } && test -s conftest$ac_exeext &&
11368 $as_test_x conftest$ac_exeext; then
11369 eval "$as_ac_var=yes"
11370else
11371 echo "$as_me: failed program was:" >&5
11372sed 's/^/| /' conftest.$ac_ext >&5
11373
11374 eval "$as_ac_var=no"
11375fi
11376
11377rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11378 conftest$ac_exeext conftest.$ac_ext
11379fi
11380ac_res=`eval echo '${'$as_ac_var'}'`
11381 { echo "$as_me:$LINENO: result: $ac_res" >&5
11382echo "${ECHO_T}$ac_res" >&6; }
11383if test `eval echo '${'$as_ac_var'}'` = yes; then
11384 cat >>confdefs.h <<_ACEOF
11385#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11386_ACEOF
11387
11388fi
11389done
11390
11391
11392
11393{ echo "$as_me:$LINENO: checking tool compatibility" >&5
11394echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11395
11396ICC=no
11397IXX=no
11398case $CC in
11399 icc*|icpc*)
11400 ICC=yes
11401 IXX=yes
11402 ;;
11403 *)
11404 ;;
11405esac
11406
11407if test "$GCC" != "yes" && test "$ICC" != "yes"
11408then
11409 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11410echo "$as_me: error: gcc|icc required but not found" >&2;}
11411 { (exit 1); exit 1; }; }
11412fi
11413
11414if test "$GXX" != "yes" && test "$IXX" != "yes"
11415then
11416 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11417echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11418 { (exit 1); exit 1; }; }
11419fi
11420
11421if test "$GCC" = "yes"
11422then
11423 cat >conftest.$ac_ext <<_ACEOF
11424#if !defined(__GNUC__) || __GNUC__ < 3
11425#error Unsupported GCC version
11426#endif
11427
11428_ACEOF
11429rm -f conftest.$ac_objext
11430if { (ac_try="$ac_compile"
11431case "(($ac_try" in
11432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11433 *) ac_try_echo=$ac_try;;
11434esac
11435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11436 (eval "$ac_compile") 2>conftest.er1
11437 ac_status=$?
11438 grep -v '^ *+' conftest.er1 >conftest.err
11439 rm -f conftest.er1
11440 cat conftest.err >&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); } && {
11443 test -z "$ac_c_werror_flag" ||
11444 test ! -s conftest.err
11445 } && test -s conftest.$ac_objext; then
11446 :
11447else
11448 echo "$as_me: failed program was:" >&5
11449sed 's/^/| /' conftest.$ac_ext >&5
11450
11451 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11452echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11453 { (exit 1); exit 1; }; }
11454fi
11455
11456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11457fi
11458
11459if test -z "$llvm_cv_gnu_make_command"
11460then
11461 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11462echo "$as_me: error: GNU Make required but not found" >&2;}
11463 { (exit 1); exit 1; }; }
11464fi
11465
11466{ echo "$as_me:$LINENO: result: ok" >&5
11467echo "${ECHO_T}ok" >&6; }
11468
11469{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
11470echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11471NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11472
11473NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11474
11475{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
11476echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
11477
11478
11479
11480{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
11481echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11482if test "${ac_cv_lib_m_sin+set}" = set; then
11483 echo $ECHO_N "(cached) $ECHO_C" >&6
11484else
11485 ac_check_lib_save_LIBS=$LIBS
11486LIBS="-lm $LIBS"
11487cat >conftest.$ac_ext <<_ACEOF
11488/* confdefs.h. */
11489_ACEOF
11490cat confdefs.h >>conftest.$ac_ext
11491cat >>conftest.$ac_ext <<_ACEOF
11492/* end confdefs.h. */
11493
11494/* Override any GCC internal prototype to avoid an error.
11495 Use char because int might match the return type of a GCC
11496 builtin and then its argument prototype would still apply. */
11497#ifdef __cplusplus
11498extern "C"
11499#endif
11500char sin ();
11501int
11502main ()
11503{
11504return sin ();
11505 ;
11506 return 0;
11507}
11508_ACEOF
11509rm -f conftest.$ac_objext conftest$ac_exeext
11510if { (ac_try="$ac_link"
11511case "(($ac_try" in
11512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513 *) ac_try_echo=$ac_try;;
11514esac
11515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11516 (eval "$ac_link") 2>conftest.er1
11517 ac_status=$?
11518 grep -v '^ *+' conftest.er1 >conftest.err
11519 rm -f conftest.er1
11520 cat conftest.err >&5
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); } && {
11523 test -z "$ac_c_werror_flag" ||
11524 test ! -s conftest.err
11525 } && test -s conftest$ac_exeext &&
11526 $as_test_x conftest$ac_exeext; then
11527 ac_cv_lib_m_sin=yes
11528else
11529 echo "$as_me: failed program was:" >&5
11530sed 's/^/| /' conftest.$ac_ext >&5
11531
11532 ac_cv_lib_m_sin=no
11533fi
11534
11535rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11536 conftest$ac_exeext conftest.$ac_ext
11537LIBS=$ac_check_lib_save_LIBS
11538fi
11539{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
11540echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
11541if test $ac_cv_lib_m_sin = yes; then
11542 cat >>confdefs.h <<_ACEOF
11543#define HAVE_LIBM 1
11544_ACEOF
11545
11546 LIBS="-lm $LIBS"
11547
11548fi
11549
11550if test "$llvm_cv_os_type" = "MingW" ; then
11551
11552{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
11553echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
11554if test "${ac_cv_lib_imagehlp_main+set}" = set; then
11555 echo $ECHO_N "(cached) $ECHO_C" >&6
11556else
11557 ac_check_lib_save_LIBS=$LIBS
11558LIBS="-limagehlp $LIBS"
11559cat >conftest.$ac_ext <<_ACEOF
11560/* confdefs.h. */
11561_ACEOF
11562cat confdefs.h >>conftest.$ac_ext
11563cat >>conftest.$ac_ext <<_ACEOF
11564/* end confdefs.h. */
11565
11566
11567int
11568main ()
11569{
11570return main ();
11571 ;
11572 return 0;
11573}
11574_ACEOF
11575rm -f conftest.$ac_objext conftest$ac_exeext
11576if { (ac_try="$ac_link"
11577case "(($ac_try" in
11578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11579 *) ac_try_echo=$ac_try;;
11580esac
11581eval "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 test -z "$ac_c_werror_flag" ||
11590 test ! -s conftest.err
11591 } && test -s conftest$ac_exeext &&
11592 $as_test_x conftest$ac_exeext; then
11593 ac_cv_lib_imagehlp_main=yes
11594else
11595 echo "$as_me: failed program was:" >&5
11596sed 's/^/| /' conftest.$ac_ext >&5
11597
11598 ac_cv_lib_imagehlp_main=no
11599fi
11600
11601rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11602 conftest$ac_exeext conftest.$ac_ext
11603LIBS=$ac_check_lib_save_LIBS
11604fi
11605{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
11606echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
11607if test $ac_cv_lib_imagehlp_main = yes; then
11608 cat >>confdefs.h <<_ACEOF
11609#define HAVE_LIBIMAGEHLP 1
11610_ACEOF
11611
11612 LIBS="-limagehlp $LIBS"
11613
11614fi
11615
11616
11617{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
11618echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
11619if test "${ac_cv_lib_psapi_main+set}" = set; then
11620 echo $ECHO_N "(cached) $ECHO_C" >&6
11621else
11622 ac_check_lib_save_LIBS=$LIBS
11623LIBS="-lpsapi $LIBS"
11624cat >conftest.$ac_ext <<_ACEOF
11625/* confdefs.h. */
11626_ACEOF
11627cat confdefs.h >>conftest.$ac_ext
11628cat >>conftest.$ac_ext <<_ACEOF
11629/* end confdefs.h. */
11630
11631
11632int
11633main ()
11634{
11635return main ();
11636 ;
11637 return 0;
11638}
11639_ACEOF
11640rm -f conftest.$ac_objext conftest$ac_exeext
11641if { (ac_try="$ac_link"
11642case "(($ac_try" in
11643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11644 *) ac_try_echo=$ac_try;;
11645esac
11646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11647 (eval "$ac_link") 2>conftest.er1
11648 ac_status=$?
11649 grep -v '^ *+' conftest.er1 >conftest.err
11650 rm -f conftest.er1
11651 cat conftest.err >&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); } && {
11654 test -z "$ac_c_werror_flag" ||
11655 test ! -s conftest.err
11656 } && test -s conftest$ac_exeext &&
11657 $as_test_x conftest$ac_exeext; then
11658 ac_cv_lib_psapi_main=yes
11659else
11660 echo "$as_me: failed program was:" >&5
11661sed 's/^/| /' conftest.$ac_ext >&5
11662
11663 ac_cv_lib_psapi_main=no
11664fi
11665
11666rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11667 conftest$ac_exeext conftest.$ac_ext
11668LIBS=$ac_check_lib_save_LIBS
11669fi
11670{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
11671echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
11672if test $ac_cv_lib_psapi_main = yes; then
11673 cat >>confdefs.h <<_ACEOF
11674#define HAVE_LIBPSAPI 1
11675_ACEOF
11676
11677 LIBS="-lpsapi $LIBS"
11678
11679fi
11680
11681fi
11682
11683{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
11684echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
11685if test "${ac_cv_search_dlopen+set}" = set; then
11686 echo $ECHO_N "(cached) $ECHO_C" >&6
11687else
11688 ac_func_search_save_LIBS=$LIBS
11689cat >conftest.$ac_ext <<_ACEOF
11690/* confdefs.h. */
11691_ACEOF
11692cat confdefs.h >>conftest.$ac_ext
11693cat >>conftest.$ac_ext <<_ACEOF
11694/* end confdefs.h. */
11695
11696/* Override any GCC internal prototype to avoid an error.
11697 Use char because int might match the return type of a GCC
11698 builtin and then its argument prototype would still apply. */
11699#ifdef __cplusplus
11700extern "C"
11701#endif
11702char dlopen ();
11703int
11704main ()
11705{
11706return dlopen ();
11707 ;
11708 return 0;
11709}
11710_ACEOF
11711for ac_lib in '' dl; do
11712 if test -z "$ac_lib"; then
11713 ac_res="none required"
11714 else
11715 ac_res=-l$ac_lib
11716 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11717 fi
11718 rm -f conftest.$ac_objext conftest$ac_exeext
11719if { (ac_try="$ac_link"
11720case "(($ac_try" in
11721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11722 *) ac_try_echo=$ac_try;;
11723esac
11724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11725 (eval "$ac_link") 2>conftest.er1
11726 ac_status=$?
11727 grep -v '^ *+' conftest.er1 >conftest.err
11728 rm -f conftest.er1
11729 cat conftest.err >&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } && {
11732 test -z "$ac_c_werror_flag" ||
11733 test ! -s conftest.err
11734 } && test -s conftest$ac_exeext &&
11735 $as_test_x conftest$ac_exeext; then
11736 ac_cv_search_dlopen=$ac_res
11737else
11738 echo "$as_me: failed program was:" >&5
11739sed 's/^/| /' conftest.$ac_ext >&5
11740
11741
11742fi
11743
11744rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11745 conftest$ac_exeext
11746 if test "${ac_cv_search_dlopen+set}" = set; then
11747 break
11748fi
11749done
11750if test "${ac_cv_search_dlopen+set}" = set; then
11751 :
11752else
11753 ac_cv_search_dlopen=no
11754fi
11755rm conftest.$ac_ext
11756LIBS=$ac_func_search_save_LIBS
11757fi
11758{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
11759echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
11760ac_res=$ac_cv_search_dlopen
11761if test "$ac_res" != no; then
11762 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11763
11764cat >>confdefs.h <<\_ACEOF
11765#define HAVE_DLOPEN 1
11766_ACEOF
11767
11768else
11769 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
11770echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
11771fi
11772
11773
11774if test "$llvm_cv_enable_libffi" = "yes" ; then
11775 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
11776echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
11777if test "${ac_cv_search_ffi_call+set}" = set; then
11778 echo $ECHO_N "(cached) $ECHO_C" >&6
11779else
11780 ac_func_search_save_LIBS=$LIBS
11781cat >conftest.$ac_ext <<_ACEOF
11782/* confdefs.h. */
11783_ACEOF
11784cat confdefs.h >>conftest.$ac_ext
11785cat >>conftest.$ac_ext <<_ACEOF
11786/* end confdefs.h. */
11787
11788/* Override any GCC internal prototype to avoid an error.
11789 Use char because int might match the return type of a GCC
11790 builtin and then its argument prototype would still apply. */
11791#ifdef __cplusplus
11792extern "C"
11793#endif
11794char ffi_call ();
11795int
11796main ()
11797{
11798return ffi_call ();
11799 ;
11800 return 0;
11801}
11802_ACEOF
11803for ac_lib in '' ffi; do
11804 if test -z "$ac_lib"; then
11805 ac_res="none required"
11806 else
11807 ac_res=-l$ac_lib
11808 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11809 fi
11810 rm -f conftest.$ac_objext conftest$ac_exeext
11811if { (ac_try="$ac_link"
11812case "(($ac_try" in
11813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814 *) ac_try_echo=$ac_try;;
11815esac
11816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817 (eval "$ac_link") 2>conftest.er1
11818 ac_status=$?
11819 grep -v '^ *+' conftest.er1 >conftest.err
11820 rm -f conftest.er1
11821 cat conftest.err >&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); } && {
11824 test -z "$ac_c_werror_flag" ||
11825 test ! -s conftest.err
11826 } && test -s conftest$ac_exeext &&
11827 $as_test_x conftest$ac_exeext; then
11828 ac_cv_search_ffi_call=$ac_res
11829else
11830 echo "$as_me: failed program was:" >&5
11831sed 's/^/| /' conftest.$ac_ext >&5
11832
11833
11834fi
11835
11836rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11837 conftest$ac_exeext
11838 if test "${ac_cv_search_ffi_call+set}" = set; then
11839 break
11840fi
11841done
11842if test "${ac_cv_search_ffi_call+set}" = set; then
11843 :
11844else
11845 ac_cv_search_ffi_call=no
11846fi
11847rm conftest.$ac_ext
11848LIBS=$ac_func_search_save_LIBS
11849fi
11850{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
11851echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
11852ac_res=$ac_cv_search_ffi_call
11853if test "$ac_res" != no; then
11854 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11855
11856cat >>confdefs.h <<\_ACEOF
11857#define HAVE_FFI_CALL 1
11858_ACEOF
11859
11860else
11861 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
11862echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
11863 { (exit 1); exit 1; }; }
11864fi
11865
11866fi
11867
11868{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
11869echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
11870if test "${ac_cv_search_mallinfo+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11872else
11873 ac_func_search_save_LIBS=$LIBS
11874cat >conftest.$ac_ext <<_ACEOF
11875/* confdefs.h. */
11876_ACEOF
11877cat confdefs.h >>conftest.$ac_ext
11878cat >>conftest.$ac_ext <<_ACEOF
11879/* end confdefs.h. */
11880
11881/* Override any GCC internal prototype to avoid an error.
11882 Use char because int might match the return type of a GCC
11883 builtin and then its argument prototype would still apply. */
11884#ifdef __cplusplus
11885extern "C"
11886#endif
11887char mallinfo ();
11888int
11889main ()
11890{
11891return mallinfo ();
11892 ;
11893 return 0;
11894}
11895_ACEOF
11896for ac_lib in '' malloc; do
11897 if test -z "$ac_lib"; then
11898 ac_res="none required"
11899 else
11900 ac_res=-l$ac_lib
11901 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11902 fi
11903 rm -f conftest.$ac_objext conftest$ac_exeext
11904if { (ac_try="$ac_link"
11905case "(($ac_try" in
11906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11907 *) ac_try_echo=$ac_try;;
11908esac
11909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11910 (eval "$ac_link") 2>conftest.er1
11911 ac_status=$?
11912 grep -v '^ *+' conftest.er1 >conftest.err
11913 rm -f conftest.er1
11914 cat conftest.err >&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } && {
11917 test -z "$ac_c_werror_flag" ||
11918 test ! -s conftest.err
11919 } && test -s conftest$ac_exeext &&
11920 $as_test_x conftest$ac_exeext; then
11921 ac_cv_search_mallinfo=$ac_res
11922else
11923 echo "$as_me: failed program was:" >&5
11924sed 's/^/| /' conftest.$ac_ext >&5
11925
11926
11927fi
11928
11929rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11930 conftest$ac_exeext
11931 if test "${ac_cv_search_mallinfo+set}" = set; then
11932 break
11933fi
11934done
11935if test "${ac_cv_search_mallinfo+set}" = set; then
11936 :
11937else
11938 ac_cv_search_mallinfo=no
11939fi
11940rm conftest.$ac_ext
11941LIBS=$ac_func_search_save_LIBS
11942fi
11943{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
11944echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
11945ac_res=$ac_cv_search_mallinfo
11946if test "$ac_res" != no; then
11947 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11948
11949cat >>confdefs.h <<\_ACEOF
11950#define HAVE_MALLINFO 1
11951_ACEOF
11952
11953fi
11954
11955
11956if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
11957
11958{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
11959echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
11960if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
11961 echo $ECHO_N "(cached) $ECHO_C" >&6
11962else
11963 ac_check_lib_save_LIBS=$LIBS
11964LIBS="-lpthread $LIBS"
11965cat >conftest.$ac_ext <<_ACEOF
11966/* confdefs.h. */
11967_ACEOF
11968cat confdefs.h >>conftest.$ac_ext
11969cat >>conftest.$ac_ext <<_ACEOF
11970/* end confdefs.h. */
11971
11972/* Override any GCC internal prototype to avoid an error.
11973 Use char because int might match the return type of a GCC
11974 builtin and then its argument prototype would still apply. */
11975#ifdef __cplusplus
11976extern "C"
11977#endif
11978char pthread_mutex_init ();
11979int
11980main ()
11981{
11982return pthread_mutex_init ();
11983 ;
11984 return 0;
11985}
11986_ACEOF
11987rm -f conftest.$ac_objext conftest$ac_exeext
11988if { (ac_try="$ac_link"
11989case "(($ac_try" in
11990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991 *) ac_try_echo=$ac_try;;
11992esac
11993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994 (eval "$ac_link") 2>conftest.er1
11995 ac_status=$?
11996 grep -v '^ *+' conftest.er1 >conftest.err
11997 rm -f conftest.er1
11998 cat conftest.err >&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } && {
12001 test -z "$ac_c_werror_flag" ||
12002 test ! -s conftest.err
12003 } && test -s conftest$ac_exeext &&
12004 $as_test_x conftest$ac_exeext; then
12005 ac_cv_lib_pthread_pthread_mutex_init=yes
12006else
12007 echo "$as_me: failed program was:" >&5
12008sed 's/^/| /' conftest.$ac_ext >&5
12009
12010 ac_cv_lib_pthread_pthread_mutex_init=no
12011fi
12012
12013rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12014 conftest$ac_exeext conftest.$ac_ext
12015LIBS=$ac_check_lib_save_LIBS
12016fi
12017{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12018echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12019if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12020 cat >>confdefs.h <<_ACEOF
12021#define HAVE_LIBPTHREAD 1
12022_ACEOF
12023
12024 LIBS="-lpthread $LIBS"
12025
12026fi
12027
12028 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12029echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12030if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12031 echo $ECHO_N "(cached) $ECHO_C" >&6
12032else
12033 ac_func_search_save_LIBS=$LIBS
12034cat >conftest.$ac_ext <<_ACEOF
12035/* confdefs.h. */
12036_ACEOF
12037cat confdefs.h >>conftest.$ac_ext
12038cat >>conftest.$ac_ext <<_ACEOF
12039/* end confdefs.h. */
12040
12041/* Override any GCC internal prototype to avoid an error.
12042 Use char because int might match the return type of a GCC
12043 builtin and then its argument prototype would still apply. */
12044#ifdef __cplusplus
12045extern "C"
12046#endif
12047char pthread_mutex_lock ();
12048int
12049main ()
12050{
12051return pthread_mutex_lock ();
12052 ;
12053 return 0;
12054}
12055_ACEOF
12056for ac_lib in '' pthread; do
12057 if test -z "$ac_lib"; then
12058 ac_res="none required"
12059 else
12060 ac_res=-l$ac_lib
12061 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12062 fi
12063 rm -f conftest.$ac_objext conftest$ac_exeext
12064if { (ac_try="$ac_link"
12065case "(($ac_try" in
12066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12067 *) ac_try_echo=$ac_try;;
12068esac
12069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12070 (eval "$ac_link") 2>conftest.er1
12071 ac_status=$?
12072 grep -v '^ *+' conftest.er1 >conftest.err
12073 rm -f conftest.er1
12074 cat conftest.err >&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } && {
12077 test -z "$ac_c_werror_flag" ||
12078 test ! -s conftest.err
12079 } && test -s conftest$ac_exeext &&
12080 $as_test_x conftest$ac_exeext; then
12081 ac_cv_search_pthread_mutex_lock=$ac_res
12082else
12083 echo "$as_me: failed program was:" >&5
12084sed 's/^/| /' conftest.$ac_ext >&5
12085
12086
12087fi
12088
12089rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12090 conftest$ac_exeext
12091 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12092 break
12093fi
12094done
12095if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12096 :
12097else
12098 ac_cv_search_pthread_mutex_lock=no
12099fi
12100rm conftest.$ac_ext
12101LIBS=$ac_func_search_save_LIBS
12102fi
12103{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12104echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12105ac_res=$ac_cv_search_pthread_mutex_lock
12106if test "$ac_res" != no; then
12107 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12108
12109cat >>confdefs.h <<\_ACEOF
12110#define HAVE_PTHREAD_MUTEX_LOCK 1
12111_ACEOF
12112
12113fi
12114
12115 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12116echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12117if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12119else
12120 ac_func_search_save_LIBS=$LIBS
12121cat >conftest.$ac_ext <<_ACEOF
12122/* confdefs.h. */
12123_ACEOF
12124cat confdefs.h >>conftest.$ac_ext
12125cat >>conftest.$ac_ext <<_ACEOF
12126/* end confdefs.h. */
12127
12128/* Override any GCC internal prototype to avoid an error.
12129 Use char because int might match the return type of a GCC
12130 builtin and then its argument prototype would still apply. */
12131#ifdef __cplusplus
12132extern "C"
12133#endif
12134char pthread_rwlock_init ();
12135int
12136main ()
12137{
12138return pthread_rwlock_init ();
12139 ;
12140 return 0;
12141}
12142_ACEOF
12143for ac_lib in '' pthread; do
12144 if test -z "$ac_lib"; then
12145 ac_res="none required"
12146 else
12147 ac_res=-l$ac_lib
12148 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12149 fi
12150 rm -f conftest.$ac_objext conftest$ac_exeext
12151if { (ac_try="$ac_link"
12152case "(($ac_try" in
12153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12154 *) ac_try_echo=$ac_try;;
12155esac
12156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12157 (eval "$ac_link") 2>conftest.er1
12158 ac_status=$?
12159 grep -v '^ *+' conftest.er1 >conftest.err
12160 rm -f conftest.er1
12161 cat conftest.err >&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } && {
12164 test -z "$ac_c_werror_flag" ||
12165 test ! -s conftest.err
12166 } && test -s conftest$ac_exeext &&
12167 $as_test_x conftest$ac_exeext; then
12168 ac_cv_search_pthread_rwlock_init=$ac_res
12169else
12170 echo "$as_me: failed program was:" >&5
12171sed 's/^/| /' conftest.$ac_ext >&5
12172
12173
12174fi
12175
12176rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12177 conftest$ac_exeext
12178 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12179 break
12180fi
12181done
12182if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12183 :
12184else
12185 ac_cv_search_pthread_rwlock_init=no
12186fi
12187rm conftest.$ac_ext
12188LIBS=$ac_func_search_save_LIBS
12189fi
12190{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12191echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12192ac_res=$ac_cv_search_pthread_rwlock_init
12193if test "$ac_res" != no; then
12194 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12195
12196cat >>confdefs.h <<\_ACEOF
12197#define HAVE_PTHREAD_RWLOCK_INIT 1
12198_ACEOF
12199
12200fi
12201
12202 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12203echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12204if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
12206else
12207 ac_func_search_save_LIBS=$LIBS
12208cat >conftest.$ac_ext <<_ACEOF
12209/* confdefs.h. */
12210_ACEOF
12211cat confdefs.h >>conftest.$ac_ext
12212cat >>conftest.$ac_ext <<_ACEOF
12213/* end confdefs.h. */
12214
12215/* Override any GCC internal prototype to avoid an error.
12216 Use char because int might match the return type of a GCC
12217 builtin and then its argument prototype would still apply. */
12218#ifdef __cplusplus
12219extern "C"
12220#endif
12221char pthread_getspecific ();
12222int
12223main ()
12224{
12225return pthread_getspecific ();
12226 ;
12227 return 0;
12228}
12229_ACEOF
12230for ac_lib in '' pthread; do
12231 if test -z "$ac_lib"; then
12232 ac_res="none required"
12233 else
12234 ac_res=-l$ac_lib
12235 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12236 fi
12237 rm -f conftest.$ac_objext conftest$ac_exeext
12238if { (ac_try="$ac_link"
12239case "(($ac_try" in
12240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241 *) ac_try_echo=$ac_try;;
12242esac
12243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244 (eval "$ac_link") 2>conftest.er1
12245 ac_status=$?
12246 grep -v '^ *+' conftest.er1 >conftest.err
12247 rm -f conftest.er1
12248 cat conftest.err >&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } && {
12251 test -z "$ac_c_werror_flag" ||
12252 test ! -s conftest.err
12253 } && test -s conftest$ac_exeext &&
12254 $as_test_x conftest$ac_exeext; then
12255 ac_cv_search_pthread_getspecific=$ac_res
12256else
12257 echo "$as_me: failed program was:" >&5
12258sed 's/^/| /' conftest.$ac_ext >&5
12259
12260
12261fi
12262
12263rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12264 conftest$ac_exeext
12265 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12266 break
12267fi
12268done
12269if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12270 :
12271else
12272 ac_cv_search_pthread_getspecific=no
12273fi
12274rm conftest.$ac_ext
12275LIBS=$ac_func_search_save_LIBS
12276fi
12277{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12278echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12279ac_res=$ac_cv_search_pthread_getspecific
12280if test "$ac_res" != no; then
12281 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12282
12283cat >>confdefs.h <<\_ACEOF
12284#define HAVE_PTHREAD_GETSPECIFIC 1
12285_ACEOF
12286
12287fi
12288
12289fi
12290
12291
12292# Check whether --with-udis86 was given.
12293if test "${with_udis86+set}" = set; then
12294 withval=$with_udis86;
12295 USE_UDIS86=1
12296
12297 case "$withval" in
12298 /usr/lib|yes) ;;
12299 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
12300 esac
12301
12302{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
12303echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
12304if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12306else
12307 ac_check_lib_save_LIBS=$LIBS
12308LIBS="-ludis86 $LIBS"
12309cat >conftest.$ac_ext <<_ACEOF
12310/* confdefs.h. */
12311_ACEOF
12312cat confdefs.h >>conftest.$ac_ext
12313cat >>conftest.$ac_ext <<_ACEOF
12314/* end confdefs.h. */
12315
12316/* Override any GCC internal prototype to avoid an error.
12317 Use char because int might match the return type of a GCC
12318 builtin and then its argument prototype would still apply. */
12319#ifdef __cplusplus
12320extern "C"
12321#endif
12322char ud_init ();
12323int
12324main ()
12325{
12326return ud_init ();
12327 ;
12328 return 0;
12329}
12330_ACEOF
12331rm -f conftest.$ac_objext conftest$ac_exeext
12332if { (ac_try="$ac_link"
12333case "(($ac_try" in
12334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335 *) ac_try_echo=$ac_try;;
12336esac
12337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338 (eval "$ac_link") 2>conftest.er1
12339 ac_status=$?
12340 grep -v '^ *+' conftest.er1 >conftest.err
12341 rm -f conftest.er1
12342 cat conftest.err >&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } && {
12345 test -z "$ac_c_werror_flag" ||
12346 test ! -s conftest.err
12347 } && test -s conftest$ac_exeext &&
12348 $as_test_x conftest$ac_exeext; then
12349 ac_cv_lib_udis86_ud_init=yes
12350else
12351 echo "$as_me: failed program was:" >&5
12352sed 's/^/| /' conftest.$ac_ext >&5
12353
12354 ac_cv_lib_udis86_ud_init=no
12355fi
12356
12357rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12358 conftest$ac_exeext conftest.$ac_ext
12359LIBS=$ac_check_lib_save_LIBS
12360fi
12361{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
12362echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
12363if test $ac_cv_lib_udis86_ud_init = yes; then
12364 cat >>confdefs.h <<_ACEOF
12365#define HAVE_LIBUDIS86 1
12366_ACEOF
12367
12368 LIBS="-ludis86 $LIBS"
12369
12370else
12371
12372 echo "Error! You need to have libudis86 around."
12373 exit -1
12374
12375fi
12376
12377
12378else
12379 USE_UDIS86=0
12380
12381fi
12382
12383
12384cat >>confdefs.h <<_ACEOF
12385#define USE_UDIS86 $USE_UDIS86
12386_ACEOF
12387
12388
12389
12390# Check whether --with-oprofile was given.
12391if test "${with_oprofile+set}" = set; then
12392 withval=$with_oprofile;
12393 USE_OPROFILE=1
12394
12395 case "$withval" in
12396 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
12397 no) llvm_cv_oppath=
12398 USE_OPROFILE=0
12399 ;;
12400 *) llvm_cv_oppath="${withval}/lib/oprofile"
12401 CPPFLAGS="-I${withval}/include";;
12402 esac
12403 if test -n "$llvm_cv_oppath" ; then
12404 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
12405 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
12406echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
12407if test "${ac_cv_search_bfd_init+set}" = set; then
12408 echo $ECHO_N "(cached) $ECHO_C" >&6
12409else
12410 ac_func_search_save_LIBS=$LIBS
12411cat >conftest.$ac_ext <<_ACEOF
12412/* confdefs.h. */
12413_ACEOF
12414cat confdefs.h >>conftest.$ac_ext
12415cat >>conftest.$ac_ext <<_ACEOF
12416/* end confdefs.h. */
12417
12418/* Override any GCC internal prototype to avoid an error.
12419 Use char because int might match the return type of a GCC
12420 builtin and then its argument prototype would still apply. */
12421#ifdef __cplusplus
12422extern "C"
12423#endif
12424char bfd_init ();
12425int
12426main ()
12427{
12428return bfd_init ();
12429 ;
12430 return 0;
12431}
12432_ACEOF
12433for ac_lib in '' bfd; do
12434 if test -z "$ac_lib"; then
12435 ac_res="none required"
12436 else
12437 ac_res=-l$ac_lib
12438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12439 fi
12440 rm -f conftest.$ac_objext conftest$ac_exeext
12441if { (ac_try="$ac_link"
12442case "(($ac_try" in
12443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12444 *) ac_try_echo=$ac_try;;
12445esac
12446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12447 (eval "$ac_link") 2>conftest.er1
12448 ac_status=$?
12449 grep -v '^ *+' conftest.er1 >conftest.err
12450 rm -f conftest.er1
12451 cat conftest.err >&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); } && {
12454 test -z "$ac_c_werror_flag" ||
12455 test ! -s conftest.err
12456 } && test -s conftest$ac_exeext &&
12457 $as_test_x conftest$ac_exeext; then
12458 ac_cv_search_bfd_init=$ac_res
12459else
12460 echo "$as_me: failed program was:" >&5
12461sed 's/^/| /' conftest.$ac_ext >&5
12462
12463
12464fi
12465
12466rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12467 conftest$ac_exeext
12468 if test "${ac_cv_search_bfd_init+set}" = set; then
12469 break
12470fi
12471done
12472if test "${ac_cv_search_bfd_init+set}" = set; then
12473 :
12474else
12475 ac_cv_search_bfd_init=no
12476fi
12477rm conftest.$ac_ext
12478LIBS=$ac_func_search_save_LIBS
12479fi
12480{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
12481echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
12482ac_res=$ac_cv_search_bfd_init
12483if test "$ac_res" != no; then
12484 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12485
12486fi
12487
12488 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
12489echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
12490if test "${ac_cv_search_op_open_agent+set}" = set; then
12491 echo $ECHO_N "(cached) $ECHO_C" >&6
12492else
12493 ac_func_search_save_LIBS=$LIBS
12494cat >conftest.$ac_ext <<_ACEOF
12495/* confdefs.h. */
12496_ACEOF
12497cat confdefs.h >>conftest.$ac_ext
12498cat >>conftest.$ac_ext <<_ACEOF
12499/* end confdefs.h. */
12500
12501/* Override any GCC internal prototype to avoid an error.
12502 Use char because int might match the return type of a GCC
12503 builtin and then its argument prototype would still apply. */
12504#ifdef __cplusplus
12505extern "C"
12506#endif
12507char op_open_agent ();
12508int
12509main ()
12510{
12511return op_open_agent ();
12512 ;
12513 return 0;
12514}
12515_ACEOF
12516for ac_lib in '' opagent; do
12517 if test -z "$ac_lib"; then
12518 ac_res="none required"
12519 else
12520 ac_res=-l$ac_lib
12521 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12522 fi
12523 rm -f conftest.$ac_objext conftest$ac_exeext
12524if { (ac_try="$ac_link"
12525case "(($ac_try" in
12526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12527 *) ac_try_echo=$ac_try;;
12528esac
12529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12530 (eval "$ac_link") 2>conftest.er1
12531 ac_status=$?
12532 grep -v '^ *+' conftest.er1 >conftest.err
12533 rm -f conftest.er1
12534 cat conftest.err >&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); } && {
12537 test -z "$ac_c_werror_flag" ||
12538 test ! -s conftest.err
12539 } && test -s conftest$ac_exeext &&
12540 $as_test_x conftest$ac_exeext; then
12541 ac_cv_search_op_open_agent=$ac_res
12542else
12543 echo "$as_me: failed program was:" >&5
12544sed 's/^/| /' conftest.$ac_ext >&5
12545
12546
12547fi
12548
12549rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12550 conftest$ac_exeext
12551 if test "${ac_cv_search_op_open_agent+set}" = set; then
12552 break
12553fi
12554done
12555if test "${ac_cv_search_op_open_agent+set}" = set; then
12556 :
12557else
12558 ac_cv_search_op_open_agent=no
12559fi
12560rm conftest.$ac_ext
12561LIBS=$ac_func_search_save_LIBS
12562fi
12563{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
12564echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
12565ac_res=$ac_cv_search_op_open_agent
12566if test "$ac_res" != no; then
12567 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12568
12569else
12570
12571 echo "Error! You need to have libopagent around."
12572 exit -1
12573
12574fi
12575
12576 if test "${ac_cv_header_opagent_h+set}" = set; then
12577 { echo "$as_me:$LINENO: checking for opagent.h" >&5
12578echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
12579if test "${ac_cv_header_opagent_h+set}" = set; then
12580 echo $ECHO_N "(cached) $ECHO_C" >&6
12581fi
12582{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
12583echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
12584else
12585 # Is the header compilable?
12586{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
12587echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
12588cat >conftest.$ac_ext <<_ACEOF
12589/* confdefs.h. */
12590_ACEOF
12591cat confdefs.h >>conftest.$ac_ext
12592cat >>conftest.$ac_ext <<_ACEOF
12593/* end confdefs.h. */
12594$ac_includes_default
12595#include <opagent.h>
12596_ACEOF
12597rm -f conftest.$ac_objext
12598if { (ac_try="$ac_compile"
12599case "(($ac_try" in
12600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601 *) ac_try_echo=$ac_try;;
12602esac
12603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604 (eval "$ac_compile") 2>conftest.er1
12605 ac_status=$?
12606 grep -v '^ *+' conftest.er1 >conftest.err
12607 rm -f conftest.er1
12608 cat conftest.err >&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } && {
12611 test -z "$ac_c_werror_flag" ||
12612 test ! -s conftest.err
12613 } && test -s conftest.$ac_objext; then
12614 ac_header_compiler=yes
12615else
12616 echo "$as_me: failed program was:" >&5
12617sed 's/^/| /' conftest.$ac_ext >&5
12618
12619 ac_header_compiler=no
12620fi
12621
12622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12623{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12624echo "${ECHO_T}$ac_header_compiler" >&6; }
12625
12626# Is the header present?
12627{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
12628echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
12629cat >conftest.$ac_ext <<_ACEOF
12630/* confdefs.h. */
12631_ACEOF
12632cat confdefs.h >>conftest.$ac_ext
12633cat >>conftest.$ac_ext <<_ACEOF
12634/* end confdefs.h. */
12635#include <opagent.h>
12636_ACEOF
12637if { (ac_try="$ac_cpp conftest.$ac_ext"
12638case "(($ac_try" in
12639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640 *) ac_try_echo=$ac_try;;
12641esac
12642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12644 ac_status=$?
12645 grep -v '^ *+' conftest.er1 >conftest.err
12646 rm -f conftest.er1
12647 cat conftest.err >&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); } >/dev/null && {
12650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12651 test ! -s conftest.err
12652 }; then
12653 ac_header_preproc=yes
12654else
12655 echo "$as_me: failed program was:" >&5
12656sed 's/^/| /' conftest.$ac_ext >&5
12657
12658 ac_header_preproc=no
12659fi
12660
12661rm -f conftest.err conftest.$ac_ext
12662{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12663echo "${ECHO_T}$ac_header_preproc" >&6; }
12664
12665# So? What about this header?
12666case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12667 yes:no: )
12668 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
12669echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12670 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
12671echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
12672 ac_header_preproc=yes
12673 ;;
12674 no:yes:* )
12675 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
12676echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
12677 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
12678echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
12679 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
12680echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
12681 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
12682echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
12683 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
12684echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
12685 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
12686echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
12687 ( cat <<\_ASBOX
12688## ----------------------------------- ##
12689## Report this to llvmbugs@cs.uiuc.edu ##
12690## ----------------------------------- ##
12691_ASBOX
12692 ) | sed "s/^/$as_me: WARNING: /" >&2
12693 ;;
12694esac
12695{ echo "$as_me:$LINENO: checking for opagent.h" >&5
12696echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
12697if test "${ac_cv_header_opagent_h+set}" = set; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12699else
12700 ac_cv_header_opagent_h=$ac_header_preproc
12701fi
12702{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
12703echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
12704
12705fi
12706if test $ac_cv_header_opagent_h = yes; then
12707 :
12708else
12709
12710 echo "Error! You need to have opagent.h around."
12711 exit -1
12712
12713fi
12714
12715
12716 fi
12717
12718else
12719
12720 USE_OPROFILE=0
12721
12722
12723fi
12724
12725
12726cat >>confdefs.h <<_ACEOF
12727#define USE_OPROFILE $USE_OPROFILE
12728_ACEOF
12729
12730
12731
12732
12733
12734
12735
12736
12737ac_header_dirent=no
12738for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12739 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12740{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
12741echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
12742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12744else
12745 cat >conftest.$ac_ext <<_ACEOF
12746/* confdefs.h. */
12747_ACEOF
12748cat confdefs.h >>conftest.$ac_ext
12749cat >>conftest.$ac_ext <<_ACEOF
12750/* end confdefs.h. */
12751#include <sys/types.h>
12752#include <$ac_hdr>
12753
12754int
12755main ()
12756{
12757if ((DIR *) 0)
12758return 0;
12759 ;
12760 return 0;
12761}
12762_ACEOF
12763rm -f conftest.$ac_objext
12764if { (ac_try="$ac_compile"
12765case "(($ac_try" in
12766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12767 *) ac_try_echo=$ac_try;;
12768esac
12769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12770 (eval "$ac_compile") 2>conftest.er1
12771 ac_status=$?
12772 grep -v '^ *+' conftest.er1 >conftest.err
12773 rm -f conftest.er1
12774 cat conftest.err >&5
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); } && {
12777 test -z "$ac_c_werror_flag" ||
12778 test ! -s conftest.err
12779 } && test -s conftest.$ac_objext; then
12780 eval "$as_ac_Header=yes"
12781else
12782 echo "$as_me: failed program was:" >&5
12783sed 's/^/| /' conftest.$ac_ext >&5
12784
12785 eval "$as_ac_Header=no"
12786fi
12787
12788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12789fi
12790ac_res=`eval echo '${'$as_ac_Header'}'`
12791 { echo "$as_me:$LINENO: result: $ac_res" >&5
12792echo "${ECHO_T}$ac_res" >&6; }
12793if test `eval echo '${'$as_ac_Header'}'` = yes; then
12794 cat >>confdefs.h <<_ACEOF
12795#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12796_ACEOF
12797
12798ac_header_dirent=$ac_hdr; break
12799fi
12800
12801done
12802# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12803if test $ac_header_dirent = dirent.h; then
12804 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
12805echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
12806if test "${ac_cv_search_opendir+set}" = set; then
12807 echo $ECHO_N "(cached) $ECHO_C" >&6
12808else
12809 ac_func_search_save_LIBS=$LIBS
12810cat >conftest.$ac_ext <<_ACEOF
12811/* confdefs.h. */
12812_ACEOF
12813cat confdefs.h >>conftest.$ac_ext
12814cat >>conftest.$ac_ext <<_ACEOF
12815/* end confdefs.h. */
12816
12817/* Override any GCC internal prototype to avoid an error.
12818 Use char because int might match the return type of a GCC
12819 builtin and then its argument prototype would still apply. */
12820#ifdef __cplusplus
12821extern "C"
12822#endif
12823char opendir ();
12824int
12825main ()
12826{
12827return opendir ();
12828 ;
12829 return 0;
12830}
12831_ACEOF
12832for ac_lib in '' dir; do
12833 if test -z "$ac_lib"; then
12834 ac_res="none required"
12835 else
12836 ac_res=-l$ac_lib
12837 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12838 fi
12839 rm -f conftest.$ac_objext conftest$ac_exeext
12840if { (ac_try="$ac_link"
12841case "(($ac_try" in
12842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12843 *) ac_try_echo=$ac_try;;
12844esac
12845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12846 (eval "$ac_link") 2>conftest.er1
12847 ac_status=$?
12848 grep -v '^ *+' conftest.er1 >conftest.err
12849 rm -f conftest.er1
12850 cat conftest.err >&5
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); } && {
12853 test -z "$ac_c_werror_flag" ||
12854 test ! -s conftest.err
12855 } && test -s conftest$ac_exeext &&
12856 $as_test_x conftest$ac_exeext; then
12857 ac_cv_search_opendir=$ac_res
12858else
12859 echo "$as_me: failed program was:" >&5
12860sed 's/^/| /' conftest.$ac_ext >&5
12861
12862
12863fi
12864
12865rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12866 conftest$ac_exeext
12867 if test "${ac_cv_search_opendir+set}" = set; then
12868 break
12869fi
12870done
12871if test "${ac_cv_search_opendir+set}" = set; then
12872 :
12873else
12874 ac_cv_search_opendir=no
12875fi
12876rm conftest.$ac_ext
12877LIBS=$ac_func_search_save_LIBS
12878fi
12879{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12880echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
12881ac_res=$ac_cv_search_opendir
12882if test "$ac_res" != no; then
12883 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12884
12885fi
12886
12887else
12888 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
12889echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
12890if test "${ac_cv_search_opendir+set}" = set; then
12891 echo $ECHO_N "(cached) $ECHO_C" >&6
12892else
12893 ac_func_search_save_LIBS=$LIBS
12894cat >conftest.$ac_ext <<_ACEOF
12895/* confdefs.h. */
12896_ACEOF
12897cat confdefs.h >>conftest.$ac_ext
12898cat >>conftest.$ac_ext <<_ACEOF
12899/* end confdefs.h. */
12900
12901/* Override any GCC internal prototype to avoid an error.
12902 Use char because int might match the return type of a GCC
12903 builtin and then its argument prototype would still apply. */
12904#ifdef __cplusplus
12905extern "C"
12906#endif
12907char opendir ();
12908int
12909main ()
12910{
12911return opendir ();
12912 ;
12913 return 0;
12914}
12915_ACEOF
12916for ac_lib in '' x; do
12917 if test -z "$ac_lib"; then
12918 ac_res="none required"
12919 else
12920 ac_res=-l$ac_lib
12921 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12922 fi
12923 rm -f conftest.$ac_objext conftest$ac_exeext
12924if { (ac_try="$ac_link"
12925case "(($ac_try" in
12926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927 *) ac_try_echo=$ac_try;;
12928esac
12929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12930 (eval "$ac_link") 2>conftest.er1
12931 ac_status=$?
12932 grep -v '^ *+' conftest.er1 >conftest.err
12933 rm -f conftest.er1
12934 cat conftest.err >&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } && {
12937 test -z "$ac_c_werror_flag" ||
12938 test ! -s conftest.err
12939 } && test -s conftest$ac_exeext &&
12940 $as_test_x conftest$ac_exeext; then
12941 ac_cv_search_opendir=$ac_res
12942else
12943 echo "$as_me: failed program was:" >&5
12944sed 's/^/| /' conftest.$ac_ext >&5
12945
12946
12947fi
12948
12949rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12950 conftest$ac_exeext
12951 if test "${ac_cv_search_opendir+set}" = set; then
12952 break
12953fi
12954done
12955if test "${ac_cv_search_opendir+set}" = set; then
12956 :
12957else
12958 ac_cv_search_opendir=no
12959fi
12960rm conftest.$ac_ext
12961LIBS=$ac_func_search_save_LIBS
12962fi
12963{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12964echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
12965ac_res=$ac_cv_search_opendir
12966if test "$ac_res" != no; then
12967 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12968
12969fi
12970
12971fi
12972
12973{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
12974echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
12975if test "${ac_cv_header_mmap_anon+set}" = set; then
12976 echo $ECHO_N "(cached) $ECHO_C" >&6
12977else
12978 ac_ext=c
12979ac_cpp='$CPP $CPPFLAGS'
12980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12982ac_compiler_gnu=$ac_cv_c_compiler_gnu
12983
12984 cat >conftest.$ac_ext <<_ACEOF
12985/* confdefs.h. */
12986_ACEOF
12987cat confdefs.h >>conftest.$ac_ext
12988cat >>conftest.$ac_ext <<_ACEOF
12989/* end confdefs.h. */
12990#include <sys/mman.h>
12991#include <unistd.h>
12992#include <fcntl.h>
12993int
12994main ()
12995{
12996mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
12997 ;
12998 return 0;
12999}
13000_ACEOF
13001rm -f conftest.$ac_objext
13002if { (ac_try="$ac_compile"
13003case "(($ac_try" in
13004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005 *) ac_try_echo=$ac_try;;
13006esac
13007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008 (eval "$ac_compile") 2>conftest.er1
13009 ac_status=$?
13010 grep -v '^ *+' conftest.er1 >conftest.err
13011 rm -f conftest.er1
13012 cat conftest.err >&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); } && {
13015 test -z "$ac_c_werror_flag" ||
13016 test ! -s conftest.err
13017 } && test -s conftest.$ac_objext; then
13018 ac_cv_header_mmap_anon=yes
13019else
13020 echo "$as_me: failed program was:" >&5
13021sed 's/^/| /' conftest.$ac_ext >&5
13022
13023 ac_cv_header_mmap_anon=no
13024fi
13025
13026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13027 ac_ext=c
13028ac_cpp='$CPP $CPPFLAGS'
13029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13031ac_compiler_gnu=$ac_cv_c_compiler_gnu
13032
13033
13034fi
13035{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13036echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13037if test "$ac_cv_header_mmap_anon" = yes; then
13038
13039cat >>confdefs.h <<\_ACEOF
13040#define HAVE_MMAP_ANONYMOUS 1
13041_ACEOF
13042
13043fi
13044
13045{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13046echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13047if test "${ac_cv_header_stat_broken+set}" = set; then
13048 echo $ECHO_N "(cached) $ECHO_C" >&6
13049else
13050 cat >conftest.$ac_ext <<_ACEOF
13051/* confdefs.h. */
13052_ACEOF
13053cat confdefs.h >>conftest.$ac_ext
13054cat >>conftest.$ac_ext <<_ACEOF
13055/* end confdefs.h. */
13056#include <sys/types.h>
13057#include <sys/stat.h>
13058
13059#if defined S_ISBLK && defined S_IFDIR
13060extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
13061#endif
13062
13063#if defined S_ISBLK && defined S_IFCHR
13064extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
13065#endif
13066
13067#if defined S_ISLNK && defined S_IFREG
13068extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
13069#endif
13070
13071#if defined S_ISSOCK && defined S_IFREG
13072extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
13073#endif
13074
13075_ACEOF
13076rm -f conftest.$ac_objext
13077if { (ac_try="$ac_compile"
13078case "(($ac_try" in
13079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080 *) ac_try_echo=$ac_try;;
13081esac
13082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083 (eval "$ac_compile") 2>conftest.er1
13084 ac_status=$?
13085 grep -v '^ *+' conftest.er1 >conftest.err
13086 rm -f conftest.er1
13087 cat conftest.err >&5
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); } && {
13090 test -z "$ac_c_werror_flag" ||
13091 test ! -s conftest.err
13092 } && test -s conftest.$ac_objext; then
13093 ac_cv_header_stat_broken=no
13094else
13095 echo "$as_me: failed program was:" >&5
13096sed 's/^/| /' conftest.$ac_ext >&5
13097
13098 ac_cv_header_stat_broken=yes
13099fi
13100
13101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13102fi
13103{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13104echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
13105if test $ac_cv_header_stat_broken = yes; then
13106
13107cat >>confdefs.h <<\_ACEOF
13108#define STAT_MACROS_BROKEN 1
13109_ACEOF
13110
13111fi
13112
13113{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13114echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
13115if test "${ac_cv_header_sys_wait_h+set}" = set; then
13116 echo $ECHO_N "(cached) $ECHO_C" >&6
13117else
13118 cat >conftest.$ac_ext <<_ACEOF
13119/* confdefs.h. */
13120_ACEOF
13121cat confdefs.h >>conftest.$ac_ext
13122cat >>conftest.$ac_ext <<_ACEOF
13123/* end confdefs.h. */
13124#include <sys/types.h>
13125#include <sys/wait.h>
13126#ifndef WEXITSTATUS
13127# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13128#endif
13129#ifndef WIFEXITED
13130# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13131#endif
13132
13133int
13134main ()
13135{
13136 int s;
13137 wait (&s);
13138 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13139 ;
13140 return 0;
13141}
13142_ACEOF
13143rm -f conftest.$ac_objext
13144if { (ac_try="$ac_compile"
13145case "(($ac_try" in
13146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147 *) ac_try_echo=$ac_try;;
13148esac
13149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150 (eval "$ac_compile") 2>conftest.er1
13151 ac_status=$?
13152 grep -v '^ *+' conftest.er1 >conftest.err
13153 rm -f conftest.er1
13154 cat conftest.err >&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } && {
13157 test -z "$ac_c_werror_flag" ||
13158 test ! -s conftest.err
13159 } && test -s conftest.$ac_objext; then
13160 ac_cv_header_sys_wait_h=yes
13161else
13162 echo "$as_me: failed program was:" >&5
13163sed 's/^/| /' conftest.$ac_ext >&5
13164
13165 ac_cv_header_sys_wait_h=no
13166fi
13167
13168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13169fi
13170{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13171echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
13172if test $ac_cv_header_sys_wait_h = yes; then
13173
13174cat >>confdefs.h <<\_ACEOF
13175#define HAVE_SYS_WAIT_H 1
13176_ACEOF
13177
13178fi
13179
13180{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13181echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
13182if test "${ac_cv_header_time+set}" = set; then
13183 echo $ECHO_N "(cached) $ECHO_C" >&6
13184else
13185 cat >conftest.$ac_ext <<_ACEOF
13186/* confdefs.h. */
13187_ACEOF
13188cat confdefs.h >>conftest.$ac_ext
13189cat >>conftest.$ac_ext <<_ACEOF
13190/* end confdefs.h. */
13191#include <sys/types.h>
13192#include <sys/time.h>
13193#include <time.h>
13194
13195int
13196main ()
13197{
13198if ((struct tm *) 0)
13199return 0;
13200 ;
13201 return 0;
13202}
13203_ACEOF
13204rm -f conftest.$ac_objext
13205if { (ac_try="$ac_compile"
13206case "(($ac_try" in
13207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13208 *) ac_try_echo=$ac_try;;
13209esac
13210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13211 (eval "$ac_compile") 2>conftest.er1
13212 ac_status=$?
13213 grep -v '^ *+' conftest.er1 >conftest.err
13214 rm -f conftest.er1
13215 cat conftest.err >&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } && {
13218 test -z "$ac_c_werror_flag" ||
13219 test ! -s conftest.err
13220 } && test -s conftest.$ac_objext; then
13221 ac_cv_header_time=yes
13222else
13223 echo "$as_me: failed program was:" >&5
13224sed 's/^/| /' conftest.$ac_ext >&5
13225
13226 ac_cv_header_time=no
13227fi
13228
13229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13230fi
13231{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13232echo "${ECHO_T}$ac_cv_header_time" >&6; }
13233if test $ac_cv_header_time = yes; then
13234
13235cat >>confdefs.h <<\_ACEOF
13236#define TIME_WITH_SYS_TIME 1
13237_ACEOF
13238
13239fi
13240
13241
13242
13243
13244
13245
13246
13247
13248for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
13249do
13250as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13251if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13253echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13255 echo $ECHO_N "(cached) $ECHO_C" >&6
13256fi
13257ac_res=`eval echo '${'$as_ac_Header'}'`
13258 { echo "$as_me:$LINENO: result: $ac_res" >&5
13259echo "${ECHO_T}$ac_res" >&6; }
13260else
13261 # Is the header compilable?
13262{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13263echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13264cat >conftest.$ac_ext <<_ACEOF
13265/* confdefs.h. */
13266_ACEOF
13267cat confdefs.h >>conftest.$ac_ext
13268cat >>conftest.$ac_ext <<_ACEOF
13269/* end confdefs.h. */
13270$ac_includes_default
13271#include <$ac_header>
13272_ACEOF
13273rm -f conftest.$ac_objext
13274if { (ac_try="$ac_compile"
13275case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13278esac
13279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_compile") 2>conftest.er1
13281 ac_status=$?
13282 grep -v '^ *+' conftest.er1 >conftest.err
13283 rm -f conftest.er1
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } && {
13287 test -z "$ac_c_werror_flag" ||
13288 test ! -s conftest.err
13289 } && test -s conftest.$ac_objext; then
13290 ac_header_compiler=yes
13291else
13292 echo "$as_me: failed program was:" >&5
13293sed 's/^/| /' conftest.$ac_ext >&5
13294
13295 ac_header_compiler=no
13296fi
13297
13298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13299{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13300echo "${ECHO_T}$ac_header_compiler" >&6; }
13301
13302# Is the header present?
13303{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13304echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13305cat >conftest.$ac_ext <<_ACEOF
13306/* confdefs.h. */
13307_ACEOF
13308cat confdefs.h >>conftest.$ac_ext
13309cat >>conftest.$ac_ext <<_ACEOF
13310/* end confdefs.h. */
13311#include <$ac_header>
13312_ACEOF
13313if { (ac_try="$ac_cpp conftest.$ac_ext"
13314case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13317esac
13318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13320 ac_status=$?
13321 grep -v '^ *+' conftest.er1 >conftest.err
13322 rm -f conftest.er1
13323 cat conftest.err >&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } >/dev/null && {
13326 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13327 test ! -s conftest.err
13328 }; then
13329 ac_header_preproc=yes
13330else
13331 echo "$as_me: failed program was:" >&5
13332sed 's/^/| /' conftest.$ac_ext >&5
13333
13334 ac_header_preproc=no
13335fi
13336
13337rm -f conftest.err conftest.$ac_ext
13338{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13339echo "${ECHO_T}$ac_header_preproc" >&6; }
13340
13341# So? What about this header?
13342case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13343 yes:no: )
13344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13345echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13347echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13348 ac_header_preproc=yes
13349 ;;
13350 no:yes:* )
13351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13352echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13354echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13356echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13358echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13360echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13362echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13363 ( cat <<\_ASBOX
13364## ----------------------------------- ##
13365## Report this to llvmbugs@cs.uiuc.edu ##
13366## ----------------------------------- ##
13367_ASBOX
13368 ) | sed "s/^/$as_me: WARNING: /" >&2
13369 ;;
13370esac
13371{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13373if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13374 echo $ECHO_N "(cached) $ECHO_C" >&6
13375else
13376 eval "$as_ac_Header=\$ac_header_preproc"
13377fi
13378ac_res=`eval echo '${'$as_ac_Header'}'`
13379 { echo "$as_me:$LINENO: result: $ac_res" >&5
13380echo "${ECHO_T}$ac_res" >&6; }
13381
13382fi
13383if test `eval echo '${'$as_ac_Header'}'` = yes; then
13384 cat >>confdefs.h <<_ACEOF
13385#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13386_ACEOF
13387
13388fi
13389
13390done
13391
13392
13393
13394
13395
13396
13397
13398for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
13399do
13400as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13401if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13404if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13405 echo $ECHO_N "(cached) $ECHO_C" >&6
13406fi
13407ac_res=`eval echo '${'$as_ac_Header'}'`
13408 { echo "$as_me:$LINENO: result: $ac_res" >&5
13409echo "${ECHO_T}$ac_res" >&6; }
13410else
13411 # Is the header compilable?
13412{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13413echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13414cat >conftest.$ac_ext <<_ACEOF
13415/* confdefs.h. */
13416_ACEOF
13417cat confdefs.h >>conftest.$ac_ext
13418cat >>conftest.$ac_ext <<_ACEOF
13419/* end confdefs.h. */
13420$ac_includes_default
13421#include <$ac_header>
13422_ACEOF
13423rm -f conftest.$ac_objext
13424if { (ac_try="$ac_compile"
13425case "(($ac_try" in
13426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427 *) ac_try_echo=$ac_try;;
13428esac
13429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13430 (eval "$ac_compile") 2>conftest.er1
13431 ac_status=$?
13432 grep -v '^ *+' conftest.er1 >conftest.err
13433 rm -f conftest.er1
13434 cat conftest.err >&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); } && {
13437 test -z "$ac_c_werror_flag" ||
13438 test ! -s conftest.err
13439 } && test -s conftest.$ac_objext; then
13440 ac_header_compiler=yes
13441else
13442 echo "$as_me: failed program was:" >&5
13443sed 's/^/| /' conftest.$ac_ext >&5
13444
13445 ac_header_compiler=no
13446fi
13447
13448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13449{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13450echo "${ECHO_T}$ac_header_compiler" >&6; }
13451
13452# Is the header present?
13453{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13454echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13455cat >conftest.$ac_ext <<_ACEOF
13456/* confdefs.h. */
13457_ACEOF
13458cat confdefs.h >>conftest.$ac_ext
13459cat >>conftest.$ac_ext <<_ACEOF
13460/* end confdefs.h. */
13461#include <$ac_header>
13462_ACEOF
13463if { (ac_try="$ac_cpp conftest.$ac_ext"
13464case "(($ac_try" in
13465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466 *) ac_try_echo=$ac_try;;
13467esac
13468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13470 ac_status=$?
13471 grep -v '^ *+' conftest.er1 >conftest.err
13472 rm -f conftest.er1
13473 cat conftest.err >&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); } >/dev/null && {
13476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13477 test ! -s conftest.err
13478 }; then
13479 ac_header_preproc=yes
13480else
13481 echo "$as_me: failed program was:" >&5
13482sed 's/^/| /' conftest.$ac_ext >&5
13483
13484 ac_header_preproc=no
13485fi
13486
13487rm -f conftest.err conftest.$ac_ext
13488{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13489echo "${ECHO_T}$ac_header_preproc" >&6; }
13490
13491# So? What about this header?
13492case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13493 yes:no: )
13494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13495echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13497echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13498 ac_header_preproc=yes
13499 ;;
13500 no:yes:* )
13501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13502echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13504echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13506echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13508echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13510echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13512echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13513 ( cat <<\_ASBOX
13514## ----------------------------------- ##
13515## Report this to llvmbugs@cs.uiuc.edu ##
13516## ----------------------------------- ##
13517_ASBOX
13518 ) | sed "s/^/$as_me: WARNING: /" >&2
13519 ;;
13520esac
13521{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13524 echo $ECHO_N "(cached) $ECHO_C" >&6
13525else
13526 eval "$as_ac_Header=\$ac_header_preproc"
13527fi
13528ac_res=`eval echo '${'$as_ac_Header'}'`
13529 { echo "$as_me:$LINENO: result: $ac_res" >&5
13530echo "${ECHO_T}$ac_res" >&6; }
13531
13532fi
13533if test `eval echo '${'$as_ac_Header'}'` = yes; then
13534 cat >>confdefs.h <<_ACEOF
13535#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13536_ACEOF
13537
13538fi
13539
13540done
13541
13542
13543
13544for ac_header in utime.h windows.h
13545do
13546as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13547if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13549echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13550if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13551 echo $ECHO_N "(cached) $ECHO_C" >&6
13552fi
13553ac_res=`eval echo '${'$as_ac_Header'}'`
13554 { echo "$as_me:$LINENO: result: $ac_res" >&5
13555echo "${ECHO_T}$ac_res" >&6; }
13556else
13557 # Is the header compilable?
13558{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13559echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13560cat >conftest.$ac_ext <<_ACEOF
13561/* confdefs.h. */
13562_ACEOF
13563cat confdefs.h >>conftest.$ac_ext
13564cat >>conftest.$ac_ext <<_ACEOF
13565/* end confdefs.h. */
13566$ac_includes_default
13567#include <$ac_header>
13568_ACEOF
13569rm -f conftest.$ac_objext
13570if { (ac_try="$ac_compile"
13571case "(($ac_try" in
13572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573 *) ac_try_echo=$ac_try;;
13574esac
13575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576 (eval "$ac_compile") 2>conftest.er1
13577 ac_status=$?
13578 grep -v '^ *+' conftest.er1 >conftest.err
13579 rm -f conftest.er1
13580 cat conftest.err >&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); } && {
13583 test -z "$ac_c_werror_flag" ||
13584 test ! -s conftest.err
13585 } && test -s conftest.$ac_objext; then
13586 ac_header_compiler=yes
13587else
13588 echo "$as_me: failed program was:" >&5
13589sed 's/^/| /' conftest.$ac_ext >&5
13590
13591 ac_header_compiler=no
13592fi
13593
13594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13595{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13596echo "${ECHO_T}$ac_header_compiler" >&6; }
13597
13598# Is the header present?
13599{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13600echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13601cat >conftest.$ac_ext <<_ACEOF
13602/* confdefs.h. */
13603_ACEOF
13604cat confdefs.h >>conftest.$ac_ext
13605cat >>conftest.$ac_ext <<_ACEOF
13606/* end confdefs.h. */
13607#include <$ac_header>
13608_ACEOF
13609if { (ac_try="$ac_cpp conftest.$ac_ext"
13610case "(($ac_try" in
13611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13612 *) ac_try_echo=$ac_try;;
13613esac
13614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13616 ac_status=$?
13617 grep -v '^ *+' conftest.er1 >conftest.err
13618 rm -f conftest.er1
13619 cat conftest.err >&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } >/dev/null && {
13622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13623 test ! -s conftest.err
13624 }; then
13625 ac_header_preproc=yes
13626else
13627 echo "$as_me: failed program was:" >&5
13628sed 's/^/| /' conftest.$ac_ext >&5
13629
13630 ac_header_preproc=no
13631fi
13632
13633rm -f conftest.err conftest.$ac_ext
13634{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13635echo "${ECHO_T}$ac_header_preproc" >&6; }
13636
13637# So? What about this header?
13638case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13639 yes:no: )
13640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13641echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13643echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13644 ac_header_preproc=yes
13645 ;;
13646 no:yes:* )
13647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13648echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13650echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13652echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13654echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13656echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13658echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13659 ( cat <<\_ASBOX
13660## ----------------------------------- ##
13661## Report this to llvmbugs@cs.uiuc.edu ##
13662## ----------------------------------- ##
13663_ASBOX
13664 ) | sed "s/^/$as_me: WARNING: /" >&2
13665 ;;
13666esac
13667{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13669if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13671else
13672 eval "$as_ac_Header=\$ac_header_preproc"
13673fi
13674ac_res=`eval echo '${'$as_ac_Header'}'`
13675 { echo "$as_me:$LINENO: result: $ac_res" >&5
13676echo "${ECHO_T}$ac_res" >&6; }
13677
13678fi
13679if test `eval echo '${'$as_ac_Header'}'` = yes; then
13680 cat >>confdefs.h <<_ACEOF
13681#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13682_ACEOF
13683
13684fi
13685
13686done
13687
13688
13689
13690
13691
13692
13693for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
13694do
13695as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13696if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13699if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13701fi
13702ac_res=`eval echo '${'$as_ac_Header'}'`
13703 { echo "$as_me:$LINENO: result: $ac_res" >&5
13704echo "${ECHO_T}$ac_res" >&6; }
13705else
13706 # Is the header compilable?
13707{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13708echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13709cat >conftest.$ac_ext <<_ACEOF
13710/* confdefs.h. */
13711_ACEOF
13712cat confdefs.h >>conftest.$ac_ext
13713cat >>conftest.$ac_ext <<_ACEOF
13714/* end confdefs.h. */
13715$ac_includes_default
13716#include <$ac_header>
13717_ACEOF
13718rm -f conftest.$ac_objext
13719if { (ac_try="$ac_compile"
13720case "(($ac_try" in
13721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13722 *) ac_try_echo=$ac_try;;
13723esac
13724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13725 (eval "$ac_compile") 2>conftest.er1
13726 ac_status=$?
13727 grep -v '^ *+' conftest.er1 >conftest.err
13728 rm -f conftest.er1
13729 cat conftest.err >&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); } && {
13732 test -z "$ac_c_werror_flag" ||
13733 test ! -s conftest.err
13734 } && test -s conftest.$ac_objext; then
13735 ac_header_compiler=yes
13736else
13737 echo "$as_me: failed program was:" >&5
13738sed 's/^/| /' conftest.$ac_ext >&5
13739
13740 ac_header_compiler=no
13741fi
13742
13743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13744{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13745echo "${ECHO_T}$ac_header_compiler" >&6; }
13746
13747# Is the header present?
13748{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13749echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13750cat >conftest.$ac_ext <<_ACEOF
13751/* confdefs.h. */
13752_ACEOF
13753cat confdefs.h >>conftest.$ac_ext
13754cat >>conftest.$ac_ext <<_ACEOF
13755/* end confdefs.h. */
13756#include <$ac_header>
13757_ACEOF
13758if { (ac_try="$ac_cpp conftest.$ac_ext"
13759case "(($ac_try" in
13760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13761 *) ac_try_echo=$ac_try;;
13762esac
13763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13765 ac_status=$?
13766 grep -v '^ *+' conftest.er1 >conftest.err
13767 rm -f conftest.er1
13768 cat conftest.err >&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } >/dev/null && {
13771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13772 test ! -s conftest.err
13773 }; then
13774 ac_header_preproc=yes
13775else
13776 echo "$as_me: failed program was:" >&5
13777sed 's/^/| /' conftest.$ac_ext >&5
13778
13779 ac_header_preproc=no
13780fi
13781
13782rm -f conftest.err conftest.$ac_ext
13783{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13784echo "${ECHO_T}$ac_header_preproc" >&6; }
13785
13786# So? What about this header?
13787case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13788 yes:no: )
13789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13790echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13792echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13793 ac_header_preproc=yes
13794 ;;
13795 no:yes:* )
13796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13797echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13799echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13801echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13803echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13805echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13807echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13808 ( cat <<\_ASBOX
13809## ----------------------------------- ##
13810## Report this to llvmbugs@cs.uiuc.edu ##
13811## ----------------------------------- ##
13812_ASBOX
13813 ) | sed "s/^/$as_me: WARNING: /" >&2
13814 ;;
13815esac
13816{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13817echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13818if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13820else
13821 eval "$as_ac_Header=\$ac_header_preproc"
13822fi
13823ac_res=`eval echo '${'$as_ac_Header'}'`
13824 { echo "$as_me:$LINENO: result: $ac_res" >&5
13825echo "${ECHO_T}$ac_res" >&6; }
13826
13827fi
13828if test `eval echo '${'$as_ac_Header'}'` = yes; then
13829 cat >>confdefs.h <<_ACEOF
13830#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13831_ACEOF
13832
13833fi
13834
13835done
13836
13837
13838
13839
13840
13841for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
13842do
13843as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13848 echo $ECHO_N "(cached) $ECHO_C" >&6
13849fi
13850ac_res=`eval echo '${'$as_ac_Header'}'`
13851 { echo "$as_me:$LINENO: result: $ac_res" >&5
13852echo "${ECHO_T}$ac_res" >&6; }
13853else
13854 # Is the header compilable?
13855{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13856echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13857cat >conftest.$ac_ext <<_ACEOF
13858/* confdefs.h. */
13859_ACEOF
13860cat confdefs.h >>conftest.$ac_ext
13861cat >>conftest.$ac_ext <<_ACEOF
13862/* end confdefs.h. */
13863$ac_includes_default
13864#include <$ac_header>
13865_ACEOF
13866rm -f conftest.$ac_objext
13867if { (ac_try="$ac_compile"
13868case "(($ac_try" in
13869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13870 *) ac_try_echo=$ac_try;;
13871esac
13872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13873 (eval "$ac_compile") 2>conftest.er1
13874 ac_status=$?
13875 grep -v '^ *+' conftest.er1 >conftest.err
13876 rm -f conftest.er1
13877 cat conftest.err >&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); } && {
13880 test -z "$ac_c_werror_flag" ||
13881 test ! -s conftest.err
13882 } && test -s conftest.$ac_objext; then
13883 ac_header_compiler=yes
13884else
13885 echo "$as_me: failed program was:" >&5
13886sed 's/^/| /' conftest.$ac_ext >&5
13887
13888 ac_header_compiler=no
13889fi
13890
13891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13892{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13893echo "${ECHO_T}$ac_header_compiler" >&6; }
13894
13895# Is the header present?
13896{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13897echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13898cat >conftest.$ac_ext <<_ACEOF
13899/* confdefs.h. */
13900_ACEOF
13901cat confdefs.h >>conftest.$ac_ext
13902cat >>conftest.$ac_ext <<_ACEOF
13903/* end confdefs.h. */
13904#include <$ac_header>
13905_ACEOF
13906if { (ac_try="$ac_cpp conftest.$ac_ext"
13907case "(($ac_try" in
13908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13909 *) ac_try_echo=$ac_try;;
13910esac
13911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13913 ac_status=$?
13914 grep -v '^ *+' conftest.er1 >conftest.err
13915 rm -f conftest.er1
13916 cat conftest.err >&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } >/dev/null && {
13919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13920 test ! -s conftest.err
13921 }; then
13922 ac_header_preproc=yes
13923else
13924 echo "$as_me: failed program was:" >&5
13925sed 's/^/| /' conftest.$ac_ext >&5
13926
13927 ac_header_preproc=no
13928fi
13929
13930rm -f conftest.err conftest.$ac_ext
13931{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13932echo "${ECHO_T}$ac_header_preproc" >&6; }
13933
13934# So? What about this header?
13935case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13936 yes:no: )
13937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13938echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13940echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13941 ac_header_preproc=yes
13942 ;;
13943 no:yes:* )
13944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13945echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13947echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13949echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13951echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13953echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13955echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13956 ( cat <<\_ASBOX
13957## ----------------------------------- ##
13958## Report this to llvmbugs@cs.uiuc.edu ##
13959## ----------------------------------- ##
13960_ASBOX
13961 ) | sed "s/^/$as_me: WARNING: /" >&2
13962 ;;
13963esac
13964{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13967 echo $ECHO_N "(cached) $ECHO_C" >&6
13968else
13969 eval "$as_ac_Header=\$ac_header_preproc"
13970fi
13971ac_res=`eval echo '${'$as_ac_Header'}'`
13972 { echo "$as_me:$LINENO: result: $ac_res" >&5
13973echo "${ECHO_T}$ac_res" >&6; }
13974
13975fi
13976if test `eval echo '${'$as_ac_Header'}'` = yes; then
13977 cat >>confdefs.h <<_ACEOF
13978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13979_ACEOF
13980
13981fi
13982
13983done
13984
13985
13986for ac_header in valgrind/valgrind.h
13987do
13988as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13991echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13994fi
13995ac_res=`eval echo '${'$as_ac_Header'}'`
13996 { echo "$as_me:$LINENO: result: $ac_res" >&5
13997echo "${ECHO_T}$ac_res" >&6; }
13998else
13999 # Is the header compilable?
14000{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14001echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14002cat >conftest.$ac_ext <<_ACEOF
14003/* confdefs.h. */
14004_ACEOF
14005cat confdefs.h >>conftest.$ac_ext
14006cat >>conftest.$ac_ext <<_ACEOF
14007/* end confdefs.h. */
14008$ac_includes_default
14009#include <$ac_header>
14010_ACEOF
14011rm -f conftest.$ac_objext
14012if { (ac_try="$ac_compile"
14013case "(($ac_try" in
14014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14015 *) ac_try_echo=$ac_try;;
14016esac
14017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14018 (eval "$ac_compile") 2>conftest.er1
14019 ac_status=$?
14020 grep -v '^ *+' conftest.er1 >conftest.err
14021 rm -f conftest.er1
14022 cat conftest.err >&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); } && {
14025 test -z "$ac_c_werror_flag" ||
14026 test ! -s conftest.err
14027 } && test -s conftest.$ac_objext; then
14028 ac_header_compiler=yes
14029else
14030 echo "$as_me: failed program was:" >&5
14031sed 's/^/| /' conftest.$ac_ext >&5
14032
14033 ac_header_compiler=no
14034fi
14035
14036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14037{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14038echo "${ECHO_T}$ac_header_compiler" >&6; }
14039
14040# Is the header present?
14041{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14042echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14043cat >conftest.$ac_ext <<_ACEOF
14044/* confdefs.h. */
14045_ACEOF
14046cat confdefs.h >>conftest.$ac_ext
14047cat >>conftest.$ac_ext <<_ACEOF
14048/* end confdefs.h. */
14049#include <$ac_header>
14050_ACEOF
14051if { (ac_try="$ac_cpp conftest.$ac_ext"
14052case "(($ac_try" in
14053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054 *) ac_try_echo=$ac_try;;
14055esac
14056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14058 ac_status=$?
14059 grep -v '^ *+' conftest.er1 >conftest.err
14060 rm -f conftest.er1
14061 cat conftest.err >&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); } >/dev/null && {
14064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14065 test ! -s conftest.err
14066 }; then
14067 ac_header_preproc=yes
14068else
14069 echo "$as_me: failed program was:" >&5
14070sed 's/^/| /' conftest.$ac_ext >&5
14071
14072 ac_header_preproc=no
14073fi
14074
14075rm -f conftest.err conftest.$ac_ext
14076{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14077echo "${ECHO_T}$ac_header_preproc" >&6; }
14078
14079# So? What about this header?
14080case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14081 yes:no: )
14082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14083echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14085echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14086 ac_header_preproc=yes
14087 ;;
14088 no:yes:* )
14089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14090echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14092echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14093 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14094echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14095 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14096echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14098echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14099 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14100echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14101 ( cat <<\_ASBOX
14102## ----------------------------------- ##
14103## Report this to llvmbugs@cs.uiuc.edu ##
14104## ----------------------------------- ##
14105_ASBOX
14106 ) | sed "s/^/$as_me: WARNING: /" >&2
14107 ;;
14108esac
14109{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14111if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
14113else
14114 eval "$as_ac_Header=\$ac_header_preproc"
14115fi
14116ac_res=`eval echo '${'$as_ac_Header'}'`
14117 { echo "$as_me:$LINENO: result: $ac_res" >&5
14118echo "${ECHO_T}$ac_res" >&6; }
14119
14120fi
14121if test `eval echo '${'$as_ac_Header'}'` = yes; then
14122 cat >>confdefs.h <<_ACEOF
14123#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14124_ACEOF
14125
14126fi
14127
14128done
14129
14130
14131for ac_header in fenv.h
14132do
14133as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14134if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14139fi
14140ac_res=`eval echo '${'$as_ac_Header'}'`
14141 { echo "$as_me:$LINENO: result: $ac_res" >&5
14142echo "${ECHO_T}$ac_res" >&6; }
14143else
14144 # Is the header compilable?
14145{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14146echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14147cat >conftest.$ac_ext <<_ACEOF
14148/* confdefs.h. */
14149_ACEOF
14150cat confdefs.h >>conftest.$ac_ext
14151cat >>conftest.$ac_ext <<_ACEOF
14152/* end confdefs.h. */
14153$ac_includes_default
14154#include <$ac_header>
14155_ACEOF
14156rm -f conftest.$ac_objext
14157if { (ac_try="$ac_compile"
14158case "(($ac_try" in
14159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14160 *) ac_try_echo=$ac_try;;
14161esac
14162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14163 (eval "$ac_compile") 2>conftest.er1
14164 ac_status=$?
14165 grep -v '^ *+' conftest.er1 >conftest.err
14166 rm -f conftest.er1
14167 cat conftest.err >&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } && {
14170 test -z "$ac_c_werror_flag" ||
14171 test ! -s conftest.err
14172 } && test -s conftest.$ac_objext; then
14173 ac_header_compiler=yes
14174else
14175 echo "$as_me: failed program was:" >&5
14176sed 's/^/| /' conftest.$ac_ext >&5
14177
14178 ac_header_compiler=no
14179fi
14180
14181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14182{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14183echo "${ECHO_T}$ac_header_compiler" >&6; }
14184
14185# Is the header present?
14186{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14187echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14188cat >conftest.$ac_ext <<_ACEOF
14189/* confdefs.h. */
14190_ACEOF
14191cat confdefs.h >>conftest.$ac_ext
14192cat >>conftest.$ac_ext <<_ACEOF
14193/* end confdefs.h. */
14194#include <$ac_header>
14195_ACEOF
14196if { (ac_try="$ac_cpp conftest.$ac_ext"
14197case "(($ac_try" in
14198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199 *) ac_try_echo=$ac_try;;
14200esac
14201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14203 ac_status=$?
14204 grep -v '^ *+' conftest.er1 >conftest.err
14205 rm -f conftest.er1
14206 cat conftest.err >&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } >/dev/null && {
14209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14210 test ! -s conftest.err
14211 }; then
14212 ac_header_preproc=yes
14213else
14214 echo "$as_me: failed program was:" >&5
14215sed 's/^/| /' conftest.$ac_ext >&5
14216
14217 ac_header_preproc=no
14218fi
14219
14220rm -f conftest.err conftest.$ac_ext
14221{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14222echo "${ECHO_T}$ac_header_preproc" >&6; }
14223
14224# So? What about this header?
14225case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14226 yes:no: )
14227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14228echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14230echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14231 ac_header_preproc=yes
14232 ;;
14233 no:yes:* )
14234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14235echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14237echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14239echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14241echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14243echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14245echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14246 ( cat <<\_ASBOX
14247## ----------------------------------- ##
14248## Report this to llvmbugs@cs.uiuc.edu ##
14249## ----------------------------------- ##
14250_ASBOX
14251 ) | sed "s/^/$as_me: WARNING: /" >&2
14252 ;;
14253esac
14254{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14255echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14257 echo $ECHO_N "(cached) $ECHO_C" >&6
14258else
14259 eval "$as_ac_Header=\$ac_header_preproc"
14260fi
14261ac_res=`eval echo '${'$as_ac_Header'}'`
14262 { echo "$as_me:$LINENO: result: $ac_res" >&5
14263echo "${ECHO_T}$ac_res" >&6; }
14264
14265fi
14266if test `eval echo '${'$as_ac_Header'}'` = yes; then
14267 cat >>confdefs.h <<_ACEOF
14268#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14269_ACEOF
14270
14271fi
14272
14273done
14274
14275if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
14276
14277for ac_header in pthread.h
14278do
14279as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14283if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14284 echo $ECHO_N "(cached) $ECHO_C" >&6
14285fi
14286ac_res=`eval echo '${'$as_ac_Header'}'`
14287 { echo "$as_me:$LINENO: result: $ac_res" >&5
14288echo "${ECHO_T}$ac_res" >&6; }
14289else
14290 # Is the header compilable?
14291{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14292echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14293cat >conftest.$ac_ext <<_ACEOF
14294/* confdefs.h. */
14295_ACEOF
14296cat confdefs.h >>conftest.$ac_ext
14297cat >>conftest.$ac_ext <<_ACEOF
14298/* end confdefs.h. */
14299$ac_includes_default
14300#include <$ac_header>
14301_ACEOF
14302rm -f conftest.$ac_objext
14303if { (ac_try="$ac_compile"
14304case "(($ac_try" in
14305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306 *) ac_try_echo=$ac_try;;
14307esac
14308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309 (eval "$ac_compile") 2>conftest.er1
14310 ac_status=$?
14311 grep -v '^ *+' conftest.er1 >conftest.err
14312 rm -f conftest.er1
14313 cat conftest.err >&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } && {
14316 test -z "$ac_c_werror_flag" ||
14317 test ! -s conftest.err
14318 } && test -s conftest.$ac_objext; then
14319 ac_header_compiler=yes
14320else
14321 echo "$as_me: failed program was:" >&5
14322sed 's/^/| /' conftest.$ac_ext >&5
14323
14324 ac_header_compiler=no
14325fi
14326
14327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14328{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14329echo "${ECHO_T}$ac_header_compiler" >&6; }
14330
14331# Is the header present?
14332{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14333echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14334cat >conftest.$ac_ext <<_ACEOF
14335/* confdefs.h. */
14336_ACEOF
14337cat confdefs.h >>conftest.$ac_ext
14338cat >>conftest.$ac_ext <<_ACEOF
14339/* end confdefs.h. */
14340#include <$ac_header>
14341_ACEOF
14342if { (ac_try="$ac_cpp conftest.$ac_ext"
14343case "(($ac_try" in
14344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345 *) ac_try_echo=$ac_try;;
14346esac
14347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14349 ac_status=$?
14350 grep -v '^ *+' conftest.er1 >conftest.err
14351 rm -f conftest.er1
14352 cat conftest.err >&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); } >/dev/null && {
14355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14356 test ! -s conftest.err
14357 }; then
14358 ac_header_preproc=yes
14359else
14360 echo "$as_me: failed program was:" >&5
14361sed 's/^/| /' conftest.$ac_ext >&5
14362
14363 ac_header_preproc=no
14364fi
14365
14366rm -f conftest.err conftest.$ac_ext
14367{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14368echo "${ECHO_T}$ac_header_preproc" >&6; }
14369
14370# So? What about this header?
14371case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14372 yes:no: )
14373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14374echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14376echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14377 ac_header_preproc=yes
14378 ;;
14379 no:yes:* )
14380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14381echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14383echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14385echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14387echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14389echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14391echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14392 ( cat <<\_ASBOX
14393## ----------------------------------- ##
14394## Report this to llvmbugs@cs.uiuc.edu ##
14395## ----------------------------------- ##
14396_ASBOX
14397 ) | sed "s/^/$as_me: WARNING: /" >&2
14398 ;;
14399esac
14400{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14403 echo $ECHO_N "(cached) $ECHO_C" >&6
14404else
14405 eval "$as_ac_Header=\$ac_header_preproc"
14406fi
14407ac_res=`eval echo '${'$as_ac_Header'}'`
14408 { echo "$as_me:$LINENO: result: $ac_res" >&5
14409echo "${ECHO_T}$ac_res" >&6; }
14410
14411fi
14412if test `eval echo '${'$as_ac_Header'}'` = yes; then
14413 cat >>confdefs.h <<_ACEOF
14414#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14415_ACEOF
14416 HAVE_PTHREAD=1
14417
14418else
14419 HAVE_PTHREAD=0
14420
14421fi
14422
14423done
14424
14425else
14426 HAVE_PTHREAD=0
14427
14428fi
14429
14430if test "$llvm_cv_enable_libffi" = "yes" ; then
14431
14432
14433for ac_header in ffi.h ffi/ffi.h
14434do
14435as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14436if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14437 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14438echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14439if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14440 echo $ECHO_N "(cached) $ECHO_C" >&6
14441fi
14442ac_res=`eval echo '${'$as_ac_Header'}'`
14443 { echo "$as_me:$LINENO: result: $ac_res" >&5
14444echo "${ECHO_T}$ac_res" >&6; }
14445else
14446 # Is the header compilable?
14447{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14448echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14449cat >conftest.$ac_ext <<_ACEOF
14450/* confdefs.h. */
14451_ACEOF
14452cat confdefs.h >>conftest.$ac_ext
14453cat >>conftest.$ac_ext <<_ACEOF
14454/* end confdefs.h. */
14455$ac_includes_default
14456#include <$ac_header>
14457_ACEOF
14458rm -f conftest.$ac_objext
14459if { (ac_try="$ac_compile"
14460case "(($ac_try" in
14461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14462 *) ac_try_echo=$ac_try;;
14463esac
14464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14465 (eval "$ac_compile") 2>conftest.er1
14466 ac_status=$?
14467 grep -v '^ *+' conftest.er1 >conftest.err
14468 rm -f conftest.er1
14469 cat conftest.err >&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); } && {
14472 test -z "$ac_c_werror_flag" ||
14473 test ! -s conftest.err
14474 } && test -s conftest.$ac_objext; then
14475 ac_header_compiler=yes
14476else
14477 echo "$as_me: failed program was:" >&5
14478sed 's/^/| /' conftest.$ac_ext >&5
14479
14480 ac_header_compiler=no
14481fi
14482
14483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14484{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14485echo "${ECHO_T}$ac_header_compiler" >&6; }
14486
14487# Is the header present?
14488{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14489echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14490cat >conftest.$ac_ext <<_ACEOF
14491/* confdefs.h. */
14492_ACEOF
14493cat confdefs.h >>conftest.$ac_ext
14494cat >>conftest.$ac_ext <<_ACEOF
14495/* end confdefs.h. */
14496#include <$ac_header>
14497_ACEOF
14498if { (ac_try="$ac_cpp conftest.$ac_ext"
14499case "(($ac_try" in
14500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14501 *) ac_try_echo=$ac_try;;
14502esac
14503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14505 ac_status=$?
14506 grep -v '^ *+' conftest.er1 >conftest.err
14507 rm -f conftest.er1
14508 cat conftest.err >&5
14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); } >/dev/null && {
14511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14512 test ! -s conftest.err
14513 }; then
14514 ac_header_preproc=yes
14515else
14516 echo "$as_me: failed program was:" >&5
14517sed 's/^/| /' conftest.$ac_ext >&5
14518
14519 ac_header_preproc=no
14520fi
14521
14522rm -f conftest.err conftest.$ac_ext
14523{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14524echo "${ECHO_T}$ac_header_preproc" >&6; }
14525
14526# So? What about this header?
14527case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14528 yes:no: )
14529 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14530echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14532echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14533 ac_header_preproc=yes
14534 ;;
14535 no:yes:* )
14536 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14537echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14538 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14539echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14540 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14541echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14542 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14543echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14545echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14546 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14547echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14548 ( cat <<\_ASBOX
14549## ----------------------------------- ##
14550## Report this to llvmbugs@cs.uiuc.edu ##
14551## ----------------------------------- ##
14552_ASBOX
14553 ) | sed "s/^/$as_me: WARNING: /" >&2
14554 ;;
14555esac
14556{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14558if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14559 echo $ECHO_N "(cached) $ECHO_C" >&6
14560else
14561 eval "$as_ac_Header=\$ac_header_preproc"
14562fi
14563ac_res=`eval echo '${'$as_ac_Header'}'`
14564 { echo "$as_me:$LINENO: result: $ac_res" >&5
14565echo "${ECHO_T}$ac_res" >&6; }
14566
14567fi
14568if test `eval echo '${'$as_ac_Header'}'` = yes; then
14569 cat >>confdefs.h <<_ACEOF
14570#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14571_ACEOF
14572
14573fi
14574
14575done
14576
14577fi
14578
14579
14580for ac_header in CrashReporterClient.h
14581do
14582as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14583if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14587 echo $ECHO_N "(cached) $ECHO_C" >&6
14588fi
14589ac_res=`eval echo '${'$as_ac_Header'}'`
14590 { echo "$as_me:$LINENO: result: $ac_res" >&5
14591echo "${ECHO_T}$ac_res" >&6; }
14592else
14593 # Is the header compilable?
14594{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14595echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14596cat >conftest.$ac_ext <<_ACEOF
14597/* confdefs.h. */
14598_ACEOF
14599cat confdefs.h >>conftest.$ac_ext
14600cat >>conftest.$ac_ext <<_ACEOF
14601/* end confdefs.h. */
14602$ac_includes_default
14603#include <$ac_header>
14604_ACEOF
14605rm -f conftest.$ac_objext
14606if { (ac_try="$ac_compile"
14607case "(($ac_try" in
14608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14609 *) ac_try_echo=$ac_try;;
14610esac
14611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14612 (eval "$ac_compile") 2>conftest.er1
14613 ac_status=$?
14614 grep -v '^ *+' conftest.er1 >conftest.err
14615 rm -f conftest.er1
14616 cat conftest.err >&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); } && {
14619 test -z "$ac_c_werror_flag" ||
14620 test ! -s conftest.err
14621 } && test -s conftest.$ac_objext; then
14622 ac_header_compiler=yes
14623else
14624 echo "$as_me: failed program was:" >&5
14625sed 's/^/| /' conftest.$ac_ext >&5
14626
14627 ac_header_compiler=no
14628fi
14629
14630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14631{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14632echo "${ECHO_T}$ac_header_compiler" >&6; }
14633
14634# Is the header present?
14635{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14636echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14637cat >conftest.$ac_ext <<_ACEOF
14638/* confdefs.h. */
14639_ACEOF
14640cat confdefs.h >>conftest.$ac_ext
14641cat >>conftest.$ac_ext <<_ACEOF
14642/* end confdefs.h. */
14643#include <$ac_header>
14644_ACEOF
14645if { (ac_try="$ac_cpp conftest.$ac_ext"
14646case "(($ac_try" in
14647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648 *) ac_try_echo=$ac_try;;
14649esac
14650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14652 ac_status=$?
14653 grep -v '^ *+' conftest.er1 >conftest.err
14654 rm -f conftest.er1
14655 cat conftest.err >&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); } >/dev/null && {
14658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14659 test ! -s conftest.err
14660 }; then
14661 ac_header_preproc=yes
14662else
14663 echo "$as_me: failed program was:" >&5
14664sed 's/^/| /' conftest.$ac_ext >&5
14665
14666 ac_header_preproc=no
14667fi
14668
14669rm -f conftest.err conftest.$ac_ext
14670{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14671echo "${ECHO_T}$ac_header_preproc" >&6; }
14672
14673# So? What about this header?
14674case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14675 yes:no: )
14676 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14677echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14679echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14680 ac_header_preproc=yes
14681 ;;
14682 no:yes:* )
14683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14684echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14686echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14687 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14688echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14689 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14690echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14692echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14693 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14694echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14695 ( cat <<\_ASBOX
14696## ----------------------------------- ##
14697## Report this to llvmbugs@cs.uiuc.edu ##
14698## ----------------------------------- ##
14699_ASBOX
14700 ) | sed "s/^/$as_me: WARNING: /" >&2
14701 ;;
14702esac
14703{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14704echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14705if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14706 echo $ECHO_N "(cached) $ECHO_C" >&6
14707else
14708 eval "$as_ac_Header=\$ac_header_preproc"
14709fi
14710ac_res=`eval echo '${'$as_ac_Header'}'`
14711 { echo "$as_me:$LINENO: result: $ac_res" >&5
14712echo "${ECHO_T}$ac_res" >&6; }
14713
14714fi
14715if test `eval echo '${'$as_ac_Header'}'` = yes; then
14716 cat >>confdefs.h <<_ACEOF
14717#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14718_ACEOF
14719
14720fi
14721
14722done
14723
14724
14725{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
14726echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
14727cat >conftest.$ac_ext <<_ACEOF
14728/* confdefs.h. */
14729_ACEOF
14730cat confdefs.h >>conftest.$ac_ext
14731cat >>conftest.$ac_ext <<_ACEOF
14732/* end confdefs.h. */
14733extern const char *__crashreporter_info__;
14734 int main() {
14735 __crashreporter_info__ = "test";
14736 return 0;
14737 }
14738
14739_ACEOF
14740rm -f conftest.$ac_objext conftest$ac_exeext
14741if { (ac_try="$ac_link"
14742case "(($ac_try" in
14743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14744 *) ac_try_echo=$ac_try;;
14745esac
14746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14747 (eval "$ac_link") 2>conftest.er1
14748 ac_status=$?
14749 grep -v '^ *+' conftest.er1 >conftest.err
14750 rm -f conftest.er1
14751 cat conftest.err >&5
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); } && {
14754 test -z "$ac_c_werror_flag" ||
14755 test ! -s conftest.err
14756 } && test -s conftest$ac_exeext &&
14757 $as_test_x conftest$ac_exeext; then
14758 { echo "$as_me:$LINENO: result: yes" >&5
14759echo "${ECHO_T}yes" >&6; }
14760
14761cat >>confdefs.h <<\_ACEOF
14762#define HAVE_CRASHREPORTER_INFO 1
14763_ACEOF
14764
14765else
14766 echo "$as_me: failed program was:" >&5
14767sed 's/^/| /' conftest.$ac_ext >&5
14768
14769 { echo "$as_me:$LINENO: result: no" >&5
14770echo "${ECHO_T}no" >&6; }
14771
14772cat >>confdefs.h <<\_ACEOF
14773#define HAVE_CRASHREPORTER_INFO 0
14774_ACEOF
14775
14776fi
14777
14778rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14779 conftest$ac_exeext conftest.$ac_ext
14780
14781
14782
14783
14784 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
14785echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
14786if test "${ac_cv_huge_val_sanity+set}" = set; then
14787 echo $ECHO_N "(cached) $ECHO_C" >&6
14788else
14789
14790 ac_ext=cpp
14791ac_cpp='$CXXCPP $CPPFLAGS'
14792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14795
14796 ac_save_CXXFLAGS=$CXXFLAGS
14797 CXXFLAGS=-pedantic
14798 if test "$cross_compiling" = yes; then
14799 ac_cv_huge_val_sanity=yes
14800else
14801 cat >conftest.$ac_ext <<_ACEOF
14802/* confdefs.h. */
14803_ACEOF
14804cat confdefs.h >>conftest.$ac_ext
14805cat >>conftest.$ac_ext <<_ACEOF
14806/* end confdefs.h. */
14807#include <math.h>
14808int
14809main ()
14810{
14811double x = HUGE_VAL; return x != x;
14812 ;
14813 return 0;
14814}
14815_ACEOF
14816rm -f conftest$ac_exeext
14817if { (ac_try="$ac_link"
14818case "(($ac_try" in
14819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14820 *) ac_try_echo=$ac_try;;
14821esac
14822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14823 (eval "$ac_link") 2>&5
14824 ac_status=$?
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14827 { (case "(($ac_try" in
14828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14829 *) ac_try_echo=$ac_try;;
14830esac
14831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14832 (eval "$ac_try") 2>&5
14833 ac_status=$?
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; }; then
14836 ac_cv_huge_val_sanity=yes
14837else
14838 echo "$as_me: program exited with status $ac_status" >&5
14839echo "$as_me: failed program was:" >&5
14840sed 's/^/| /' conftest.$ac_ext >&5
14841
14842( exit $ac_status )
14843ac_cv_huge_val_sanity=no
14844fi
14845rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14846fi
14847
14848
14849 CXXFLAGS=$ac_save_CXXFLAGS
14850 ac_ext=c
14851ac_cpp='$CPP $CPPFLAGS'
14852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14854ac_compiler_gnu=$ac_cv_c_compiler_gnu
14855
14856
14857fi
14858{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
14859echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
14860 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
14861
14862
14863{ echo "$as_me:$LINENO: checking for pid_t" >&5
14864echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
14865if test "${ac_cv_type_pid_t+set}" = set; then
14866 echo $ECHO_N "(cached) $ECHO_C" >&6
14867else
14868 cat >conftest.$ac_ext <<_ACEOF
14869/* confdefs.h. */
14870_ACEOF
14871cat confdefs.h >>conftest.$ac_ext
14872cat >>conftest.$ac_ext <<_ACEOF
14873/* end confdefs.h. */
14874$ac_includes_default
14875typedef pid_t ac__type_new_;
14876int
14877main ()
14878{
14879if ((ac__type_new_ *) 0)
14880 return 0;
14881if (sizeof (ac__type_new_))
14882 return 0;
14883 ;
14884 return 0;
14885}
14886_ACEOF
14887rm -f conftest.$ac_objext
14888if { (ac_try="$ac_compile"
14889case "(($ac_try" in
14890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14891 *) ac_try_echo=$ac_try;;
14892esac
14893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14894 (eval "$ac_compile") 2>conftest.er1
14895 ac_status=$?
14896 grep -v '^ *+' conftest.er1 >conftest.err
14897 rm -f conftest.er1
14898 cat conftest.err >&5
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); } && {
14901 test -z "$ac_c_werror_flag" ||
14902 test ! -s conftest.err
14903 } && test -s conftest.$ac_objext; then
14904 ac_cv_type_pid_t=yes
14905else
14906 echo "$as_me: failed program was:" >&5
14907sed 's/^/| /' conftest.$ac_ext >&5
14908
14909 ac_cv_type_pid_t=no
14910fi
14911
14912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14913fi
14914{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14915echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
14916if test $ac_cv_type_pid_t = yes; then
14917 :
14918else
14919
14920cat >>confdefs.h <<_ACEOF
14921#define pid_t int
14922_ACEOF
14923
14924fi
14925
14926{ echo "$as_me:$LINENO: checking for size_t" >&5
14927echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14928if test "${ac_cv_type_size_t+set}" = set; then
14929 echo $ECHO_N "(cached) $ECHO_C" >&6
14930else
14931 cat >conftest.$ac_ext <<_ACEOF
14932/* confdefs.h. */
14933_ACEOF
14934cat confdefs.h >>conftest.$ac_ext
14935cat >>conftest.$ac_ext <<_ACEOF
14936/* end confdefs.h. */
14937$ac_includes_default
14938typedef size_t ac__type_new_;
14939int
14940main ()
14941{
14942if ((ac__type_new_ *) 0)
14943 return 0;
14944if (sizeof (ac__type_new_))
14945 return 0;
14946 ;
14947 return 0;
14948}
14949_ACEOF
14950rm -f conftest.$ac_objext
14951if { (ac_try="$ac_compile"
14952case "(($ac_try" in
14953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14954 *) ac_try_echo=$ac_try;;
14955esac
14956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14957 (eval "$ac_compile") 2>conftest.er1
14958 ac_status=$?
14959 grep -v '^ *+' conftest.er1 >conftest.err
14960 rm -f conftest.er1
14961 cat conftest.err >&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); } && {
14964 test -z "$ac_c_werror_flag" ||
14965 test ! -s conftest.err
14966 } && test -s conftest.$ac_objext; then
14967 ac_cv_type_size_t=yes
14968else
14969 echo "$as_me: failed program was:" >&5
14970sed 's/^/| /' conftest.$ac_ext >&5
14971
14972 ac_cv_type_size_t=no
14973fi
14974
14975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14976fi
14977{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14978echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
14979if test $ac_cv_type_size_t = yes; then
14980 :
14981else
14982
14983cat >>confdefs.h <<_ACEOF
14984#define size_t unsigned int
14985_ACEOF
14986
14987fi
14988
14989
14990cat >>confdefs.h <<_ACEOF
14991#define RETSIGTYPE void
14992_ACEOF
14993
14994{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14995echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
14996if test "${ac_cv_struct_tm+set}" = set; then
14997 echo $ECHO_N "(cached) $ECHO_C" >&6
14998else
14999 cat >conftest.$ac_ext <<_ACEOF
15000/* confdefs.h. */
15001_ACEOF
15002cat confdefs.h >>conftest.$ac_ext
15003cat >>conftest.$ac_ext <<_ACEOF
15004/* end confdefs.h. */
15005#include <sys/types.h>
15006#include <time.h>
15007
15008int
15009main ()
15010{
15011struct tm tm;
15012 int *p = &tm.tm_sec;
15013 return !p;
15014 ;
15015 return 0;
15016}
15017_ACEOF
15018rm -f conftest.$ac_objext
15019if { (ac_try="$ac_compile"
15020case "(($ac_try" in
15021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15022 *) ac_try_echo=$ac_try;;
15023esac
15024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15025 (eval "$ac_compile") 2>conftest.er1
15026 ac_status=$?
15027 grep -v '^ *+' conftest.er1 >conftest.err
15028 rm -f conftest.er1
15029 cat conftest.err >&5
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); } && {
15032 test -z "$ac_c_werror_flag" ||
15033 test ! -s conftest.err
15034 } && test -s conftest.$ac_objext; then
15035 ac_cv_struct_tm=time.h
15036else
15037 echo "$as_me: failed program was:" >&5
15038sed 's/^/| /' conftest.$ac_ext >&5
15039
15040 ac_cv_struct_tm=sys/time.h
15041fi
15042
15043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15044fi
15045{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
15046echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
15047if test $ac_cv_struct_tm = sys/time.h; then
15048
15049cat >>confdefs.h <<\_ACEOF
15050#define TM_IN_SYS_TIME 1
15051_ACEOF
15052
15053fi
15054
15055{ echo "$as_me:$LINENO: checking for int64_t" >&5
15056echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
15057if test "${ac_cv_type_int64_t+set}" = set; then
15058 echo $ECHO_N "(cached) $ECHO_C" >&6
15059else
15060 cat >conftest.$ac_ext <<_ACEOF
15061/* confdefs.h. */
15062_ACEOF
15063cat confdefs.h >>conftest.$ac_ext
15064cat >>conftest.$ac_ext <<_ACEOF
15065/* end confdefs.h. */
15066$ac_includes_default
15067typedef int64_t ac__type_new_;
15068int
15069main ()
15070{
15071if ((ac__type_new_ *) 0)
15072 return 0;
15073if (sizeof (ac__type_new_))
15074 return 0;
15075 ;
15076 return 0;
15077}
15078_ACEOF
15079rm -f conftest.$ac_objext
15080if { (ac_try="$ac_compile"
15081case "(($ac_try" in
15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083 *) ac_try_echo=$ac_try;;
15084esac
15085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086 (eval "$ac_compile") 2>conftest.er1
15087 ac_status=$?
15088 grep -v '^ *+' conftest.er1 >conftest.err
15089 rm -f conftest.er1
15090 cat conftest.err >&5
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); } && {
15093 test -z "$ac_c_werror_flag" ||
15094 test ! -s conftest.err
15095 } && test -s conftest.$ac_objext; then
15096 ac_cv_type_int64_t=yes
15097else
15098 echo "$as_me: failed program was:" >&5
15099sed 's/^/| /' conftest.$ac_ext >&5
15100
15101 ac_cv_type_int64_t=no
15102fi
15103
15104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15105fi
15106{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
15107echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
15108if test $ac_cv_type_int64_t = yes; then
15109
15110cat >>confdefs.h <<_ACEOF
15111#define HAVE_INT64_T 1
15112_ACEOF
15113
15114
15115else
15116 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
15117echo "$as_me: error: Type int64_t required but not found" >&2;}
15118 { (exit 1); exit 1; }; }
15119fi
15120
15121{ echo "$as_me:$LINENO: checking for uint64_t" >&5
15122echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
15123if test "${ac_cv_type_uint64_t+set}" = set; then
15124 echo $ECHO_N "(cached) $ECHO_C" >&6
15125else
15126 cat >conftest.$ac_ext <<_ACEOF
15127/* confdefs.h. */
15128_ACEOF
15129cat confdefs.h >>conftest.$ac_ext
15130cat >>conftest.$ac_ext <<_ACEOF
15131/* end confdefs.h. */
15132$ac_includes_default
15133typedef uint64_t ac__type_new_;
15134int
15135main ()
15136{
15137if ((ac__type_new_ *) 0)
15138 return 0;
15139if (sizeof (ac__type_new_))
15140 return 0;
15141 ;
15142 return 0;
15143}
15144_ACEOF
15145rm -f conftest.$ac_objext
15146if { (ac_try="$ac_compile"
15147case "(($ac_try" in
15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149 *) ac_try_echo=$ac_try;;
15150esac
15151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15152 (eval "$ac_compile") 2>conftest.er1
15153 ac_status=$?
15154 grep -v '^ *+' conftest.er1 >conftest.err
15155 rm -f conftest.er1
15156 cat conftest.err >&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); } && {
15159 test -z "$ac_c_werror_flag" ||
15160 test ! -s conftest.err
15161 } && test -s conftest.$ac_objext; then
15162 ac_cv_type_uint64_t=yes
15163else
15164 echo "$as_me: failed program was:" >&5
15165sed 's/^/| /' conftest.$ac_ext >&5
15166
15167 ac_cv_type_uint64_t=no
15168fi
15169
15170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15171fi
15172{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
15173echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
15174if test $ac_cv_type_uint64_t = yes; then
15175
15176cat >>confdefs.h <<_ACEOF
15177#define HAVE_UINT64_T 1
15178_ACEOF
15179
15180
15181else
15182 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
15183echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
15184if test "${ac_cv_type_u_int64_t+set}" = set; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15186else
15187 cat >conftest.$ac_ext <<_ACEOF
15188/* confdefs.h. */
15189_ACEOF
15190cat confdefs.h >>conftest.$ac_ext
15191cat >>conftest.$ac_ext <<_ACEOF
15192/* end confdefs.h. */
15193$ac_includes_default
15194typedef u_int64_t ac__type_new_;
15195int
15196main ()
15197{
15198if ((ac__type_new_ *) 0)
15199 return 0;
15200if (sizeof (ac__type_new_))
15201 return 0;
15202 ;
15203 return 0;
15204}
15205_ACEOF
15206rm -f conftest.$ac_objext
15207if { (ac_try="$ac_compile"
15208case "(($ac_try" in
15209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210 *) ac_try_echo=$ac_try;;
15211esac
15212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15213 (eval "$ac_compile") 2>conftest.er1
15214 ac_status=$?
15215 grep -v '^ *+' conftest.er1 >conftest.err
15216 rm -f conftest.er1
15217 cat conftest.err >&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } && {
15220 test -z "$ac_c_werror_flag" ||
15221 test ! -s conftest.err
15222 } && test -s conftest.$ac_objext; then
15223 ac_cv_type_u_int64_t=yes
15224else
15225 echo "$as_me: failed program was:" >&5
15226sed 's/^/| /' conftest.$ac_ext >&5
15227
15228 ac_cv_type_u_int64_t=no
15229fi
15230
15231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15232fi
15233{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
15234echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
15235if test $ac_cv_type_u_int64_t = yes; then
15236
15237cat >>confdefs.h <<_ACEOF
15238#define HAVE_U_INT64_T 1
15239_ACEOF
15240
15241
15242else
15243 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
15244echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
15245 { (exit 1); exit 1; }; }
15246fi
15247
15248fi
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
15260do
15261as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15262{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15263echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15264if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15265 echo $ECHO_N "(cached) $ECHO_C" >&6
15266else
15267 cat >conftest.$ac_ext <<_ACEOF
15268/* confdefs.h. */
15269_ACEOF
15270cat confdefs.h >>conftest.$ac_ext
15271cat >>conftest.$ac_ext <<_ACEOF
15272/* end confdefs.h. */
15273/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15275#define $ac_func innocuous_$ac_func
15276
15277/* System header to define __stub macros and hopefully few prototypes,
15278 which can conflict with char $ac_func (); below.
15279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15280 <limits.h> exists even on freestanding compilers. */
15281
15282#ifdef __STDC__
15283# include <limits.h>
15284#else
15285# include <assert.h>
15286#endif
15287
15288#undef $ac_func
15289
15290/* Override any GCC internal prototype to avoid an error.
15291 Use char because int might match the return type of a GCC
15292 builtin and then its argument prototype would still apply. */
15293#ifdef __cplusplus
15294extern "C"
15295#endif
15296char $ac_func ();
15297/* The GNU C library defines this for functions which it implements
15298 to always fail with ENOSYS. Some functions are actually named
15299 something starting with __ and the normal name is an alias. */
15300#if defined __stub_$ac_func || defined __stub___$ac_func
15301choke me
15302#endif
15303
15304int
15305main ()
15306{
15307return $ac_func ();
15308 ;
15309 return 0;
15310}
15311_ACEOF
15312rm -f conftest.$ac_objext conftest$ac_exeext
15313if { (ac_try="$ac_link"
15314case "(($ac_try" in
15315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15316 *) ac_try_echo=$ac_try;;
15317esac
15318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15319 (eval "$ac_link") 2>conftest.er1
15320 ac_status=$?
15321 grep -v '^ *+' conftest.er1 >conftest.err
15322 rm -f conftest.er1
15323 cat conftest.err >&5
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); } && {
15326 test -z "$ac_c_werror_flag" ||
15327 test ! -s conftest.err
15328 } && test -s conftest$ac_exeext &&
15329 $as_test_x conftest$ac_exeext; then
15330 eval "$as_ac_var=yes"
15331else
15332 echo "$as_me: failed program was:" >&5
15333sed 's/^/| /' conftest.$ac_ext >&5
15334
15335 eval "$as_ac_var=no"
15336fi
15337
15338rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15339 conftest$ac_exeext conftest.$ac_ext
15340fi
15341ac_res=`eval echo '${'$as_ac_var'}'`
15342 { echo "$as_me:$LINENO: result: $ac_res" >&5
15343echo "${ECHO_T}$ac_res" >&6; }
15344if test `eval echo '${'$as_ac_var'}'` = yes; then
15345 cat >>confdefs.h <<_ACEOF
15346#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15347_ACEOF
15348
15349fi
15350done
15351
15352
15353
15354
15355
15356for ac_func in powf fmodf strtof round
15357do
15358as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15359{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15360echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15361if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15362 echo $ECHO_N "(cached) $ECHO_C" >&6
15363else
15364 cat >conftest.$ac_ext <<_ACEOF
15365/* confdefs.h. */
15366_ACEOF
15367cat confdefs.h >>conftest.$ac_ext
15368cat >>conftest.$ac_ext <<_ACEOF
15369/* end confdefs.h. */
15370/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15372#define $ac_func innocuous_$ac_func
15373
15374/* System header to define __stub macros and hopefully few prototypes,
15375 which can conflict with char $ac_func (); below.
15376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15377 <limits.h> exists even on freestanding compilers. */
15378
15379#ifdef __STDC__
15380# include <limits.h>
15381#else
15382# include <assert.h>
15383#endif
15384
15385#undef $ac_func
15386
15387/* Override any GCC internal prototype to avoid an error.
15388 Use char because int might match the return type of a GCC
15389 builtin and then its argument prototype would still apply. */
15390#ifdef __cplusplus
15391extern "C"
15392#endif
15393char $ac_func ();
15394/* The GNU C library defines this for functions which it implements
15395 to always fail with ENOSYS. Some functions are actually named
15396 something starting with __ and the normal name is an alias. */
15397#if defined __stub_$ac_func || defined __stub___$ac_func
15398choke me
15399#endif
15400
15401int
15402main ()
15403{
15404return $ac_func ();
15405 ;
15406 return 0;
15407}
15408_ACEOF
15409rm -f conftest.$ac_objext conftest$ac_exeext
15410if { (ac_try="$ac_link"
15411case "(($ac_try" in
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15414esac
15415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416 (eval "$ac_link") 2>conftest.er1
15417 ac_status=$?
15418 grep -v '^ *+' conftest.er1 >conftest.err
15419 rm -f conftest.er1
15420 cat conftest.err >&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); } && {
15423 test -z "$ac_c_werror_flag" ||
15424 test ! -s conftest.err
15425 } && test -s conftest$ac_exeext &&
15426 $as_test_x conftest$ac_exeext; then
15427 eval "$as_ac_var=yes"
15428else
15429 echo "$as_me: failed program was:" >&5
15430sed 's/^/| /' conftest.$ac_ext >&5
15431
15432 eval "$as_ac_var=no"
15433fi
15434
15435rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15436 conftest$ac_exeext conftest.$ac_ext
15437fi
15438ac_res=`eval echo '${'$as_ac_var'}'`
15439 { echo "$as_me:$LINENO: result: $ac_res" >&5
15440echo "${ECHO_T}$ac_res" >&6; }
15441if test `eval echo '${'$as_ac_var'}'` = yes; then
15442 cat >>confdefs.h <<_ACEOF
15443#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15444_ACEOF
15445
15446fi
15447done
15448
15449
15450
15451
15452
15453
15454for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
15455do
15456as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15457{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15458echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15459if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15460 echo $ECHO_N "(cached) $ECHO_C" >&6
15461else
15462 cat >conftest.$ac_ext <<_ACEOF
15463/* confdefs.h. */
15464_ACEOF
15465cat confdefs.h >>conftest.$ac_ext
15466cat >>conftest.$ac_ext <<_ACEOF
15467/* end confdefs.h. */
15468/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15470#define $ac_func innocuous_$ac_func
15471
15472/* System header to define __stub macros and hopefully few prototypes,
15473 which can conflict with char $ac_func (); below.
15474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15475 <limits.h> exists even on freestanding compilers. */
15476
15477#ifdef __STDC__
15478# include <limits.h>
15479#else
15480# include <assert.h>
15481#endif
15482
15483#undef $ac_func
15484
15485/* Override any GCC internal prototype to avoid an error.
15486 Use char because int might match the return type of a GCC
15487 builtin and then its argument prototype would still apply. */
15488#ifdef __cplusplus
15489extern "C"
15490#endif
15491char $ac_func ();
15492/* The GNU C library defines this for functions which it implements
15493 to always fail with ENOSYS. Some functions are actually named
15494 something starting with __ and the normal name is an alias. */
15495#if defined __stub_$ac_func || defined __stub___$ac_func
15496choke me
15497#endif
15498
15499int
15500main ()
15501{
15502return $ac_func ();
15503 ;
15504 return 0;
15505}
15506_ACEOF
15507rm -f conftest.$ac_objext conftest$ac_exeext
15508if { (ac_try="$ac_link"
15509case "(($ac_try" in
15510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511 *) ac_try_echo=$ac_try;;
15512esac
15513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15514 (eval "$ac_link") 2>conftest.er1
15515 ac_status=$?
15516 grep -v '^ *+' conftest.er1 >conftest.err
15517 rm -f conftest.er1
15518 cat conftest.err >&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); } && {
15521 test -z "$ac_c_werror_flag" ||
15522 test ! -s conftest.err
15523 } && test -s conftest$ac_exeext &&
15524 $as_test_x conftest$ac_exeext; then
15525 eval "$as_ac_var=yes"
15526else
15527 echo "$as_me: failed program was:" >&5
15528sed 's/^/| /' conftest.$ac_ext >&5
15529
15530 eval "$as_ac_var=no"
15531fi
15532
15533rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15534 conftest$ac_exeext conftest.$ac_ext
15535fi
15536ac_res=`eval echo '${'$as_ac_var'}'`
15537 { echo "$as_me:$LINENO: result: $ac_res" >&5
15538echo "${ECHO_T}$ac_res" >&6; }
15539if test `eval echo '${'$as_ac_var'}'` = yes; then
15540 cat >>confdefs.h <<_ACEOF
15541#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15542_ACEOF
15543
15544fi
15545done
15546
15547
15548
15549
15550for ac_func in isatty mkdtemp mkstemp
15551do
15552as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15553{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15554echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15555if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
15557else
15558 cat >conftest.$ac_ext <<_ACEOF
15559/* confdefs.h. */
15560_ACEOF
15561cat confdefs.h >>conftest.$ac_ext
15562cat >>conftest.$ac_ext <<_ACEOF
15563/* end confdefs.h. */
15564/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15566#define $ac_func innocuous_$ac_func
15567
15568/* System header to define __stub macros and hopefully few prototypes,
15569 which can conflict with char $ac_func (); below.
15570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15571 <limits.h> exists even on freestanding compilers. */
15572
15573#ifdef __STDC__
15574# include <limits.h>
15575#else
15576# include <assert.h>
15577#endif
15578
15579#undef $ac_func
15580
15581/* Override any GCC internal prototype to avoid an error.
15582 Use char because int might match the return type of a GCC
15583 builtin and then its argument prototype would still apply. */
15584#ifdef __cplusplus
15585extern "C"
15586#endif
15587char $ac_func ();
15588/* The GNU C library defines this for functions which it implements
15589 to always fail with ENOSYS. Some functions are actually named
15590 something starting with __ and the normal name is an alias. */
15591#if defined __stub_$ac_func || defined __stub___$ac_func
15592choke me
15593#endif
15594
15595int
15596main ()
15597{
15598return $ac_func ();
15599 ;
15600 return 0;
15601}
15602_ACEOF
15603rm -f conftest.$ac_objext conftest$ac_exeext
15604if { (ac_try="$ac_link"
15605case "(($ac_try" in
15606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15607 *) ac_try_echo=$ac_try;;
15608esac
15609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15610 (eval "$ac_link") 2>conftest.er1
15611 ac_status=$?
15612 grep -v '^ *+' conftest.er1 >conftest.err
15613 rm -f conftest.er1
15614 cat conftest.err >&5
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); } && {
15617 test -z "$ac_c_werror_flag" ||
15618 test ! -s conftest.err
15619 } && test -s conftest$ac_exeext &&
15620 $as_test_x conftest$ac_exeext; then
15621 eval "$as_ac_var=yes"
15622else
15623 echo "$as_me: failed program was:" >&5
15624sed 's/^/| /' conftest.$ac_ext >&5
15625
15626 eval "$as_ac_var=no"
15627fi
15628
15629rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15630 conftest$ac_exeext conftest.$ac_ext
15631fi
15632ac_res=`eval echo '${'$as_ac_var'}'`
15633 { echo "$as_me:$LINENO: result: $ac_res" >&5
15634echo "${ECHO_T}$ac_res" >&6; }
15635if test `eval echo '${'$as_ac_var'}'` = yes; then
15636 cat >>confdefs.h <<_ACEOF
15637#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15638_ACEOF
15639
15640fi
15641done
15642
15643
15644
15645
15646
15647
15648
15649for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
15650do
15651as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15652{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15653echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15654if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15655 echo $ECHO_N "(cached) $ECHO_C" >&6
15656else
15657 cat >conftest.$ac_ext <<_ACEOF
15658/* confdefs.h. */
15659_ACEOF
15660cat confdefs.h >>conftest.$ac_ext
15661cat >>conftest.$ac_ext <<_ACEOF
15662/* end confdefs.h. */
15663/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15665#define $ac_func innocuous_$ac_func
15666
15667/* System header to define __stub macros and hopefully few prototypes,
15668 which can conflict with char $ac_func (); below.
15669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15670 <limits.h> exists even on freestanding compilers. */
15671
15672#ifdef __STDC__
15673# include <limits.h>
15674#else
15675# include <assert.h>
15676#endif
15677
15678#undef $ac_func
15679
15680/* Override any GCC internal prototype to avoid an error.
15681 Use char because int might match the return type of a GCC
15682 builtin and then its argument prototype would still apply. */
15683#ifdef __cplusplus
15684extern "C"
15685#endif
15686char $ac_func ();
15687/* The GNU C library defines this for functions which it implements
15688 to always fail with ENOSYS. Some functions are actually named
15689 something starting with __ and the normal name is an alias. */
15690#if defined __stub_$ac_func || defined __stub___$ac_func
15691choke me
15692#endif
15693
15694int
15695main ()
15696{
15697return $ac_func ();
15698 ;
15699 return 0;
15700}
15701_ACEOF
15702rm -f conftest.$ac_objext conftest$ac_exeext
15703if { (ac_try="$ac_link"
15704case "(($ac_try" in
15705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15706 *) ac_try_echo=$ac_try;;
15707esac
15708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15709 (eval "$ac_link") 2>conftest.er1
15710 ac_status=$?
15711 grep -v '^ *+' conftest.er1 >conftest.err
15712 rm -f conftest.er1
15713 cat conftest.err >&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); } && {
15716 test -z "$ac_c_werror_flag" ||
15717 test ! -s conftest.err
15718 } && test -s conftest$ac_exeext &&
15719 $as_test_x conftest$ac_exeext; then
15720 eval "$as_ac_var=yes"
15721else
15722 echo "$as_me: failed program was:" >&5
15723sed 's/^/| /' conftest.$ac_ext >&5
15724
15725 eval "$as_ac_var=no"
15726fi
15727
15728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15729 conftest$ac_exeext conftest.$ac_ext
15730fi
15731ac_res=`eval echo '${'$as_ac_var'}'`
15732 { echo "$as_me:$LINENO: result: $ac_res" >&5
15733echo "${ECHO_T}$ac_res" >&6; }
15734if test `eval echo '${'$as_ac_var'}'` = yes; then
15735 cat >>confdefs.h <<_ACEOF
15736#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15737_ACEOF
15738
15739fi
15740done
15741
15742
15743
15744
15745for ac_func in strerror strerror_r setenv
15746do
15747as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15748{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15749echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15750if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15751 echo $ECHO_N "(cached) $ECHO_C" >&6
15752else
15753 cat >conftest.$ac_ext <<_ACEOF
15754/* confdefs.h. */
15755_ACEOF
15756cat confdefs.h >>conftest.$ac_ext
15757cat >>conftest.$ac_ext <<_ACEOF
15758/* end confdefs.h. */
15759/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15761#define $ac_func innocuous_$ac_func
15762
15763/* System header to define __stub macros and hopefully few prototypes,
15764 which can conflict with char $ac_func (); below.
15765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15766 <limits.h> exists even on freestanding compilers. */
15767
15768#ifdef __STDC__
15769# include <limits.h>
15770#else
15771# include <assert.h>
15772#endif
15773
15774#undef $ac_func
15775
15776/* Override any GCC internal prototype to avoid an error.
15777 Use char because int might match the return type of a GCC
15778 builtin and then its argument prototype would still apply. */
15779#ifdef __cplusplus
15780extern "C"
15781#endif
15782char $ac_func ();
15783/* The GNU C library defines this for functions which it implements
15784 to always fail with ENOSYS. Some functions are actually named
15785 something starting with __ and the normal name is an alias. */
15786#if defined __stub_$ac_func || defined __stub___$ac_func
15787choke me
15788#endif
15789
15790int
15791main ()
15792{
15793return $ac_func ();
15794 ;
15795 return 0;
15796}
15797_ACEOF
15798rm -f conftest.$ac_objext conftest$ac_exeext
15799if { (ac_try="$ac_link"
15800case "(($ac_try" in
15801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802 *) ac_try_echo=$ac_try;;
15803esac
15804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805 (eval "$ac_link") 2>conftest.er1
15806 ac_status=$?
15807 grep -v '^ *+' conftest.er1 >conftest.err
15808 rm -f conftest.er1
15809 cat conftest.err >&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } && {
15812 test -z "$ac_c_werror_flag" ||
15813 test ! -s conftest.err
15814 } && test -s conftest$ac_exeext &&
15815 $as_test_x conftest$ac_exeext; then
15816 eval "$as_ac_var=yes"
15817else
15818 echo "$as_me: failed program was:" >&5
15819sed 's/^/| /' conftest.$ac_ext >&5
15820
15821 eval "$as_ac_var=no"
15822fi
15823
15824rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15825 conftest$ac_exeext conftest.$ac_ext
15826fi
15827ac_res=`eval echo '${'$as_ac_var'}'`
15828 { echo "$as_me:$LINENO: result: $ac_res" >&5
15829echo "${ECHO_T}$ac_res" >&6; }
15830if test `eval echo '${'$as_ac_var'}'` = yes; then
15831 cat >>confdefs.h <<_ACEOF
15832#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15833_ACEOF
15834
15835fi
15836done
15837
15838
15839
15840
15841
15842for ac_func in strtoll strtoq sysconf malloc_zone_statistics
15843do
15844as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15845{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15846echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15847if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15848 echo $ECHO_N "(cached) $ECHO_C" >&6
15849else
15850 cat >conftest.$ac_ext <<_ACEOF
15851/* confdefs.h. */
15852_ACEOF
15853cat confdefs.h >>conftest.$ac_ext
15854cat >>conftest.$ac_ext <<_ACEOF
15855/* end confdefs.h. */
15856/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15858#define $ac_func innocuous_$ac_func
15859
15860/* System header to define __stub macros and hopefully few prototypes,
15861 which can conflict with char $ac_func (); below.
15862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15863 <limits.h> exists even on freestanding compilers. */
15864
15865#ifdef __STDC__
15866# include <limits.h>
15867#else
15868# include <assert.h>
15869#endif
15870
15871#undef $ac_func
15872
15873/* Override any GCC internal prototype to avoid an error.
15874 Use char because int might match the return type of a GCC
15875 builtin and then its argument prototype would still apply. */
15876#ifdef __cplusplus
15877extern "C"
15878#endif
15879char $ac_func ();
15880/* The GNU C library defines this for functions which it implements
15881 to always fail with ENOSYS. Some functions are actually named
15882 something starting with __ and the normal name is an alias. */
15883#if defined __stub_$ac_func || defined __stub___$ac_func
15884choke me
15885#endif
15886
15887int
15888main ()
15889{
15890return $ac_func ();
15891 ;
15892 return 0;
15893}
15894_ACEOF
15895rm -f conftest.$ac_objext conftest$ac_exeext
15896if { (ac_try="$ac_link"
15897case "(($ac_try" in
15898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15899 *) ac_try_echo=$ac_try;;
15900esac
15901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15902 (eval "$ac_link") 2>conftest.er1
15903 ac_status=$?
15904 grep -v '^ *+' conftest.er1 >conftest.err
15905 rm -f conftest.er1
15906 cat conftest.err >&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); } && {
15909 test -z "$ac_c_werror_flag" ||
15910 test ! -s conftest.err
15911 } && test -s conftest$ac_exeext &&
15912 $as_test_x conftest$ac_exeext; then
15913 eval "$as_ac_var=yes"
15914else
15915 echo "$as_me: failed program was:" >&5
15916sed 's/^/| /' conftest.$ac_ext >&5
15917
15918 eval "$as_ac_var=no"
15919fi
15920
15921rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15922 conftest$ac_exeext conftest.$ac_ext
15923fi
15924ac_res=`eval echo '${'$as_ac_var'}'`
15925 { echo "$as_me:$LINENO: result: $ac_res" >&5
15926echo "${ECHO_T}$ac_res" >&6; }
15927if test `eval echo '${'$as_ac_var'}'` = yes; then
15928 cat >>confdefs.h <<_ACEOF
15929#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15930_ACEOF
15931
15932fi
15933done
15934
15935
15936
15937
15938
15939
15940for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
15941do
15942as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15943{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15944echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15945if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15946 echo $ECHO_N "(cached) $ECHO_C" >&6
15947else
15948 cat >conftest.$ac_ext <<_ACEOF
15949/* confdefs.h. */
15950_ACEOF
15951cat confdefs.h >>conftest.$ac_ext
15952cat >>conftest.$ac_ext <<_ACEOF
15953/* end confdefs.h. */
15954/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15956#define $ac_func innocuous_$ac_func
15957
15958/* System header to define __stub macros and hopefully few prototypes,
15959 which can conflict with char $ac_func (); below.
15960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15961 <limits.h> exists even on freestanding compilers. */
15962
15963#ifdef __STDC__
15964# include <limits.h>
15965#else
15966# include <assert.h>
15967#endif
15968
15969#undef $ac_func
15970
15971/* Override any GCC internal prototype to avoid an error.
15972 Use char because int might match the return type of a GCC
15973 builtin and then its argument prototype would still apply. */
15974#ifdef __cplusplus
15975extern "C"
15976#endif
15977char $ac_func ();
15978/* The GNU C library defines this for functions which it implements
15979 to always fail with ENOSYS. Some functions are actually named
15980 something starting with __ and the normal name is an alias. */
15981#if defined __stub_$ac_func || defined __stub___$ac_func
15982choke me
15983#endif
15984
15985int
15986main ()
15987{
15988return $ac_func ();
15989 ;
15990 return 0;
15991}
15992_ACEOF
15993rm -f conftest.$ac_objext conftest$ac_exeext
15994if { (ac_try="$ac_link"
15995case "(($ac_try" in
15996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997 *) ac_try_echo=$ac_try;;
15998esac
15999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000 (eval "$ac_link") 2>conftest.er1
16001 ac_status=$?
16002 grep -v '^ *+' conftest.er1 >conftest.err
16003 rm -f conftest.er1
16004 cat conftest.err >&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } && {
16007 test -z "$ac_c_werror_flag" ||
16008 test ! -s conftest.err
16009 } && test -s conftest$ac_exeext &&
16010 $as_test_x conftest$ac_exeext; then
16011 eval "$as_ac_var=yes"
16012else
16013 echo "$as_me: failed program was:" >&5
16014sed 's/^/| /' conftest.$ac_ext >&5
16015
16016 eval "$as_ac_var=no"
16017fi
16018
16019rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16020 conftest$ac_exeext conftest.$ac_ext
16021fi
16022ac_res=`eval echo '${'$as_ac_var'}'`
16023 { echo "$as_me:$LINENO: result: $ac_res" >&5
16024echo "${ECHO_T}$ac_res" >&6; }
16025if test `eval echo '${'$as_ac_var'}'` = yes; then
16026 cat >>confdefs.h <<_ACEOF
16027#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16028_ACEOF
16029
16030fi
16031done
16032
16033{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
16034echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
16035if test "${llvm_cv_c_printf_a+set}" = set; then
16036 echo $ECHO_N "(cached) $ECHO_C" >&6
16037else
16038 ac_ext=c
16039ac_cpp='$CPP $CPPFLAGS'
16040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16042ac_compiler_gnu=$ac_cv_c_compiler_gnu
16043
16044 if test "$cross_compiling" = yes; then
16045 llvmac_cv_c_printf_a=no
16046else
16047 cat >conftest.$ac_ext <<_ACEOF
16048
16049 /* confdefs.h. */
16050_ACEOF
16051cat confdefs.h >>conftest.$ac_ext
16052cat >>conftest.$ac_ext <<_ACEOF
16053/* end confdefs.h. */
16054
16055#include <stdio.h>
16056#include <stdlib.h>
16057
16058int
16059main ()
16060{
16061
16062volatile double A, B;
16063char Buffer[100];
16064A = 1;
16065A /= 10.0;
16066sprintf(Buffer, "%a", A);
16067B = atof(Buffer);
16068if (A != B)
16069 return (1);
16070if (A != 0x1.999999999999ap-4)
16071 return (1);
16072return (0);
16073 ;
16074 return 0;
16075}
16076_ACEOF
16077rm -f conftest$ac_exeext
16078if { (ac_try="$ac_link"
16079case "(($ac_try" in
16080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16081 *) ac_try_echo=$ac_try;;
16082esac
16083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16084 (eval "$ac_link") 2>&5
16085 ac_status=$?
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16088 { (case "(($ac_try" in
16089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16090 *) ac_try_echo=$ac_try;;
16091esac
16092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16093 (eval "$ac_try") 2>&5
16094 ac_status=$?
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); }; }; then
16097 llvm_cv_c_printf_a=yes
16098else
16099 echo "$as_me: program exited with status $ac_status" >&5
16100echo "$as_me: failed program was:" >&5
16101sed 's/^/| /' conftest.$ac_ext >&5
16102
16103( exit $ac_status )
16104llvmac_cv_c_printf_a=no
16105fi
16106rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16107fi
16108
16109
16110 ac_ext=c
16111ac_cpp='$CPP $CPPFLAGS'
16112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16114ac_compiler_gnu=$ac_cv_c_compiler_gnu
16115
16116fi
16117{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
16118echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
16119 if test "$llvm_cv_c_printf_a" = "yes"; then
16120
16121cat >>confdefs.h <<\_ACEOF
16122#define HAVE_PRINTF_A 1
16123_ACEOF
16124
16125 fi
16126
16127
16128{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
16129echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
16130if test "${ac_cv_func_rand48+set}" = set; then
16131 echo $ECHO_N "(cached) $ECHO_C" >&6
16132else
16133 ac_ext=cpp
16134ac_cpp='$CXXCPP $CPPFLAGS'
16135ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16136ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16137ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16138
16139 cat >conftest.$ac_ext <<_ACEOF
16140/* confdefs.h. */
16141_ACEOF
16142cat confdefs.h >>conftest.$ac_ext
16143cat >>conftest.$ac_ext <<_ACEOF
16144/* end confdefs.h. */
16145#include <stdlib.h>
16146int
16147main ()
16148{
16149srand48(0);lrand48();drand48();
16150 ;
16151 return 0;
16152}
16153_ACEOF
16154rm -f conftest.$ac_objext
16155if { (ac_try="$ac_compile"
16156case "(($ac_try" in
16157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158 *) ac_try_echo=$ac_try;;
16159esac
16160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16161 (eval "$ac_compile") 2>conftest.er1
16162 ac_status=$?
16163 grep -v '^ *+' conftest.er1 >conftest.err
16164 rm -f conftest.er1
16165 cat conftest.err >&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } && {
16168 test -z "$ac_cxx_werror_flag" ||
16169 test ! -s conftest.err
16170 } && test -s conftest.$ac_objext; then
16171 ac_cv_func_rand48=yes
16172else
16173 echo "$as_me: failed program was:" >&5
16174sed 's/^/| /' conftest.$ac_ext >&5
16175
16176 ac_cv_func_rand48=no
16177fi
16178
16179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16180 ac_ext=c
16181ac_cpp='$CPP $CPPFLAGS'
16182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16184ac_compiler_gnu=$ac_cv_c_compiler_gnu
16185
16186fi
16187{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
16188echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
16189
16190if test "$ac_cv_func_rand48" = "yes" ; then
16191
16192cat >>confdefs.h <<\_ACEOF
16193#define HAVE_RAND48 1
16194_ACEOF
16195
16196fi
16197
16198
16199{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
16200echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
16201if test "${ac_cv_have_decl_strerror_s+set}" = set; then
16202 echo $ECHO_N "(cached) $ECHO_C" >&6
16203else
16204 cat >conftest.$ac_ext <<_ACEOF
16205/* confdefs.h. */
16206_ACEOF
16207cat confdefs.h >>conftest.$ac_ext
16208cat >>conftest.$ac_ext <<_ACEOF
16209/* end confdefs.h. */
16210$ac_includes_default
16211int
16212main ()
16213{
16214#ifndef strerror_s
16215 (void) strerror_s;
16216#endif
16217
16218 ;
16219 return 0;
16220}
16221_ACEOF
16222rm -f conftest.$ac_objext
16223if { (ac_try="$ac_compile"
16224case "(($ac_try" in
16225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16226 *) ac_try_echo=$ac_try;;
16227esac
16228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16229 (eval "$ac_compile") 2>conftest.er1
16230 ac_status=$?
16231 grep -v '^ *+' conftest.er1 >conftest.err
16232 rm -f conftest.er1
16233 cat conftest.err >&5
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); } && {
16236 test -z "$ac_c_werror_flag" ||
16237 test ! -s conftest.err
16238 } && test -s conftest.$ac_objext; then
16239 ac_cv_have_decl_strerror_s=yes
16240else
16241 echo "$as_me: failed program was:" >&5
16242sed 's/^/| /' conftest.$ac_ext >&5
16243
16244 ac_cv_have_decl_strerror_s=no
16245fi
16246
16247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16248fi
16249{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
16250echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
16251if test $ac_cv_have_decl_strerror_s = yes; then
16252
16253cat >>confdefs.h <<_ACEOF
16254#define HAVE_DECL_STRERROR_S 1
16255_ACEOF
16256
16257
16258else
16259 cat >>confdefs.h <<_ACEOF
16260#define HAVE_DECL_STRERROR_S 0
16261_ACEOF
16262
16263
16264fi
16265
16266
16267
16268if test "$llvm_cv_os_type" = "MingW" ; then
16269 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
16270echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
16271if test "${ac_cv_lib_gcc__alloca+set}" = set; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16273else
16274 ac_check_lib_save_LIBS=$LIBS
16275LIBS="-lgcc $LIBS"
16276cat >conftest.$ac_ext <<_ACEOF
16277/* confdefs.h. */
16278_ACEOF
16279cat confdefs.h >>conftest.$ac_ext
16280cat >>conftest.$ac_ext <<_ACEOF
16281/* end confdefs.h. */
16282
16283/* Override any GCC internal prototype to avoid an error.
16284 Use char because int might match the return type of a GCC
16285 builtin and then its argument prototype would still apply. */
16286#ifdef __cplusplus
16287extern "C"
16288#endif
16289char _alloca ();
16290int
16291main ()
16292{
16293return _alloca ();
16294 ;
16295 return 0;
16296}
16297_ACEOF
16298rm -f conftest.$ac_objext conftest$ac_exeext
16299if { (ac_try="$ac_link"
16300case "(($ac_try" in
16301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16302 *) ac_try_echo=$ac_try;;
16303esac
16304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16305 (eval "$ac_link") 2>conftest.er1
16306 ac_status=$?
16307 grep -v '^ *+' conftest.er1 >conftest.err
16308 rm -f conftest.er1
16309 cat conftest.err >&5
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); } && {
16312 test -z "$ac_c_werror_flag" ||
16313 test ! -s conftest.err
16314 } && test -s conftest$ac_exeext &&
16315 $as_test_x conftest$ac_exeext; then
16316 ac_cv_lib_gcc__alloca=yes
16317else
16318 echo "$as_me: failed program was:" >&5
16319sed 's/^/| /' conftest.$ac_ext >&5
16320
16321 ac_cv_lib_gcc__alloca=no
16322fi
16323
16324rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16325 conftest$ac_exeext conftest.$ac_ext
16326LIBS=$ac_check_lib_save_LIBS
16327fi
16328{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
16329echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
16330if test $ac_cv_lib_gcc__alloca = yes; then
16331
16332cat >>confdefs.h <<\_ACEOF
16333#define HAVE__ALLOCA 1
16334_ACEOF
16335
16336fi
16337
16338 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
16339echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
16340if test "${ac_cv_lib_gcc___alloca+set}" = set; then
16341 echo $ECHO_N "(cached) $ECHO_C" >&6
16342else
16343 ac_check_lib_save_LIBS=$LIBS
16344LIBS="-lgcc $LIBS"
16345cat >conftest.$ac_ext <<_ACEOF
16346/* confdefs.h. */
16347_ACEOF
16348cat confdefs.h >>conftest.$ac_ext
16349cat >>conftest.$ac_ext <<_ACEOF
16350/* end confdefs.h. */
16351
16352/* Override any GCC internal prototype to avoid an error.
16353 Use char because int might match the return type of a GCC
16354 builtin and then its argument prototype would still apply. */
16355#ifdef __cplusplus
16356extern "C"
16357#endif
16358char __alloca ();
16359int
16360main ()
16361{
16362return __alloca ();
16363 ;
16364 return 0;
16365}
16366_ACEOF
16367rm -f conftest.$ac_objext conftest$ac_exeext
16368if { (ac_try="$ac_link"
16369case "(($ac_try" in
16370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371 *) ac_try_echo=$ac_try;;
16372esac
16373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16374 (eval "$ac_link") 2>conftest.er1
16375 ac_status=$?
16376 grep -v '^ *+' conftest.er1 >conftest.err
16377 rm -f conftest.er1
16378 cat conftest.err >&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); } && {
16381 test -z "$ac_c_werror_flag" ||
16382 test ! -s conftest.err
16383 } && test -s conftest$ac_exeext &&
16384 $as_test_x conftest$ac_exeext; then
16385 ac_cv_lib_gcc___alloca=yes
16386else
16387 echo "$as_me: failed program was:" >&5
16388sed 's/^/| /' conftest.$ac_ext >&5
16389
16390 ac_cv_lib_gcc___alloca=no
16391fi
16392
16393rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16394 conftest$ac_exeext conftest.$ac_ext
16395LIBS=$ac_check_lib_save_LIBS
16396fi
16397{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
16398echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
16399if test $ac_cv_lib_gcc___alloca = yes; then
16400
16401cat >>confdefs.h <<\_ACEOF
16402#define HAVE___ALLOCA 1
16403_ACEOF
16404
16405fi
16406
16407 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
16408echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
16409if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
16410 echo $ECHO_N "(cached) $ECHO_C" >&6
16411else
16412 ac_check_lib_save_LIBS=$LIBS
16413LIBS="-lgcc $LIBS"
16414cat >conftest.$ac_ext <<_ACEOF
16415/* confdefs.h. */
16416_ACEOF
16417cat confdefs.h >>conftest.$ac_ext
16418cat >>conftest.$ac_ext <<_ACEOF
16419/* end confdefs.h. */
16420
16421/* Override any GCC internal prototype to avoid an error.
16422 Use char because int might match the return type of a GCC
16423 builtin and then its argument prototype would still apply. */
16424#ifdef __cplusplus
16425extern "C"
16426#endif
16427char __chkstk ();
16428int
16429main ()
16430{
16431return __chkstk ();
16432 ;
16433 return 0;
16434}
16435_ACEOF
16436rm -f conftest.$ac_objext conftest$ac_exeext
16437if { (ac_try="$ac_link"
16438case "(($ac_try" in
16439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440 *) ac_try_echo=$ac_try;;
16441esac
16442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16443 (eval "$ac_link") 2>conftest.er1
16444 ac_status=$?
16445 grep -v '^ *+' conftest.er1 >conftest.err
16446 rm -f conftest.er1
16447 cat conftest.err >&5
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); } && {
16450 test -z "$ac_c_werror_flag" ||
16451 test ! -s conftest.err
16452 } && test -s conftest$ac_exeext &&
16453 $as_test_x conftest$ac_exeext; then
16454 ac_cv_lib_gcc___chkstk=yes
16455else
16456 echo "$as_me: failed program was:" >&5
16457sed 's/^/| /' conftest.$ac_ext >&5
16458
16459 ac_cv_lib_gcc___chkstk=no
16460fi
16461
16462rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16463 conftest$ac_exeext conftest.$ac_ext
16464LIBS=$ac_check_lib_save_LIBS
16465fi
16466{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
16467echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
16468if test $ac_cv_lib_gcc___chkstk = yes; then
16469
16470cat >>confdefs.h <<\_ACEOF
16471#define HAVE___CHKSTK 1
16472_ACEOF
16473
16474fi
16475
16476 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
16477echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
16478if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
16479 echo $ECHO_N "(cached) $ECHO_C" >&6
16480else
16481 ac_check_lib_save_LIBS=$LIBS
16482LIBS="-lgcc $LIBS"
16483cat >conftest.$ac_ext <<_ACEOF
16484/* confdefs.h. */
16485_ACEOF
16486cat confdefs.h >>conftest.$ac_ext
16487cat >>conftest.$ac_ext <<_ACEOF
16488/* end confdefs.h. */
16489
16490/* Override any GCC internal prototype to avoid an error.
16491 Use char because int might match the return type of a GCC
16492 builtin and then its argument prototype would still apply. */
16493#ifdef __cplusplus
16494extern "C"
16495#endif
16496char ___chkstk ();
16497int
16498main ()
16499{
16500return ___chkstk ();
16501 ;
16502 return 0;
16503}
16504_ACEOF
16505rm -f conftest.$ac_objext conftest$ac_exeext
16506if { (ac_try="$ac_link"
16507case "(($ac_try" in
16508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16509 *) ac_try_echo=$ac_try;;
16510esac
16511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16512 (eval "$ac_link") 2>conftest.er1
16513 ac_status=$?
16514 grep -v '^ *+' conftest.er1 >conftest.err
16515 rm -f conftest.er1
16516 cat conftest.err >&5
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); } && {
16519 test -z "$ac_c_werror_flag" ||
16520 test ! -s conftest.err
16521 } && test -s conftest$ac_exeext &&
16522 $as_test_x conftest$ac_exeext; then
16523 ac_cv_lib_gcc____chkstk=yes
16524else
16525 echo "$as_me: failed program was:" >&5
16526sed 's/^/| /' conftest.$ac_ext >&5
16527
16528 ac_cv_lib_gcc____chkstk=no
16529fi
16530
16531rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16532 conftest$ac_exeext conftest.$ac_ext
16533LIBS=$ac_check_lib_save_LIBS
16534fi
16535{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
16536echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
16537if test $ac_cv_lib_gcc____chkstk = yes; then
16538
16539cat >>confdefs.h <<\_ACEOF
16540#define HAVE____CHKSTK 1
16541_ACEOF
16542
16543fi
16544
16545
16546 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
16547echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
16548if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
16549 echo $ECHO_N "(cached) $ECHO_C" >&6
16550else
16551 ac_check_lib_save_LIBS=$LIBS
16552LIBS="-lgcc $LIBS"
16553cat >conftest.$ac_ext <<_ACEOF
16554/* confdefs.h. */
16555_ACEOF
16556cat confdefs.h >>conftest.$ac_ext
16557cat >>conftest.$ac_ext <<_ACEOF
16558/* end confdefs.h. */
16559
16560/* Override any GCC internal prototype to avoid an error.
16561 Use char because int might match the return type of a GCC
16562 builtin and then its argument prototype would still apply. */
16563#ifdef __cplusplus
16564extern "C"
16565#endif
16566char __ashldi3 ();
16567int
16568main ()
16569{
16570return __ashldi3 ();
16571 ;
16572 return 0;
16573}
16574_ACEOF
16575rm -f conftest.$ac_objext conftest$ac_exeext
16576if { (ac_try="$ac_link"
16577case "(($ac_try" in
16578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16579 *) ac_try_echo=$ac_try;;
16580esac
16581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16582 (eval "$ac_link") 2>conftest.er1
16583 ac_status=$?
16584 grep -v '^ *+' conftest.er1 >conftest.err
16585 rm -f conftest.er1
16586 cat conftest.err >&5
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); } && {
16589 test -z "$ac_c_werror_flag" ||
16590 test ! -s conftest.err
16591 } && test -s conftest$ac_exeext &&
16592 $as_test_x conftest$ac_exeext; then
16593 ac_cv_lib_gcc___ashldi3=yes
16594else
16595 echo "$as_me: failed program was:" >&5
16596sed 's/^/| /' conftest.$ac_ext >&5
16597
16598 ac_cv_lib_gcc___ashldi3=no
16599fi
16600
16601rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16602 conftest$ac_exeext conftest.$ac_ext
16603LIBS=$ac_check_lib_save_LIBS
16604fi
16605{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
16606echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
16607if test $ac_cv_lib_gcc___ashldi3 = yes; then
16608
16609cat >>confdefs.h <<\_ACEOF
16610#define HAVE___ASHLDI3 1
16611_ACEOF
16612
16613fi
16614
16615 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
16616echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
16617if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
16618 echo $ECHO_N "(cached) $ECHO_C" >&6
16619else
16620 ac_check_lib_save_LIBS=$LIBS
16621LIBS="-lgcc $LIBS"
16622cat >conftest.$ac_ext <<_ACEOF
16623/* confdefs.h. */
16624_ACEOF
16625cat confdefs.h >>conftest.$ac_ext
16626cat >>conftest.$ac_ext <<_ACEOF
16627/* end confdefs.h. */
16628
16629/* Override any GCC internal prototype to avoid an error.
16630 Use char because int might match the return type of a GCC
16631 builtin and then its argument prototype would still apply. */
16632#ifdef __cplusplus
16633extern "C"
16634#endif
16635char __ashrdi3 ();
16636int
16637main ()
16638{
16639return __ashrdi3 ();
16640 ;
16641 return 0;
16642}
16643_ACEOF
16644rm -f conftest.$ac_objext conftest$ac_exeext
16645if { (ac_try="$ac_link"
16646case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16649esac
16650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_link") 2>conftest.er1
16652 ac_status=$?
16653 grep -v '^ *+' conftest.er1 >conftest.err
16654 rm -f conftest.er1
16655 cat conftest.err >&5
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); } && {
16658 test -z "$ac_c_werror_flag" ||
16659 test ! -s conftest.err
16660 } && test -s conftest$ac_exeext &&
16661 $as_test_x conftest$ac_exeext; then
16662 ac_cv_lib_gcc___ashrdi3=yes
16663else
16664 echo "$as_me: failed program was:" >&5
16665sed 's/^/| /' conftest.$ac_ext >&5
16666
16667 ac_cv_lib_gcc___ashrdi3=no
16668fi
16669
16670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16671 conftest$ac_exeext conftest.$ac_ext
16672LIBS=$ac_check_lib_save_LIBS
16673fi
16674{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
16675echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
16676if test $ac_cv_lib_gcc___ashrdi3 = yes; then
16677
16678cat >>confdefs.h <<\_ACEOF
16679#define HAVE___ASHRDI3 1
16680_ACEOF
16681
16682fi
16683
16684 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
16685echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
16686if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
16687 echo $ECHO_N "(cached) $ECHO_C" >&6
16688else
16689 ac_check_lib_save_LIBS=$LIBS
16690LIBS="-lgcc $LIBS"
16691cat >conftest.$ac_ext <<_ACEOF
16692/* confdefs.h. */
16693_ACEOF
16694cat confdefs.h >>conftest.$ac_ext
16695cat >>conftest.$ac_ext <<_ACEOF
16696/* end confdefs.h. */
16697
16698/* Override any GCC internal prototype to avoid an error.
16699 Use char because int might match the return type of a GCC
16700 builtin and then its argument prototype would still apply. */
16701#ifdef __cplusplus
16702extern "C"
16703#endif
16704char __divdi3 ();
16705int
16706main ()
16707{
16708return __divdi3 ();
16709 ;
16710 return 0;
16711}
16712_ACEOF
16713rm -f conftest.$ac_objext conftest$ac_exeext
16714if { (ac_try="$ac_link"
16715case "(($ac_try" in
16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717 *) ac_try_echo=$ac_try;;
16718esac
16719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720 (eval "$ac_link") 2>conftest.er1
16721 ac_status=$?
16722 grep -v '^ *+' conftest.er1 >conftest.err
16723 rm -f conftest.er1
16724 cat conftest.err >&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); } && {
16727 test -z "$ac_c_werror_flag" ||
16728 test ! -s conftest.err
16729 } && test -s conftest$ac_exeext &&
16730 $as_test_x conftest$ac_exeext; then
16731 ac_cv_lib_gcc___divdi3=yes
16732else
16733 echo "$as_me: failed program was:" >&5
16734sed 's/^/| /' conftest.$ac_ext >&5
16735
16736 ac_cv_lib_gcc___divdi3=no
16737fi
16738
16739rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16740 conftest$ac_exeext conftest.$ac_ext
16741LIBS=$ac_check_lib_save_LIBS
16742fi
16743{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16744echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16745if test $ac_cv_lib_gcc___divdi3 = yes; then
16746
16747cat >>confdefs.h <<\_ACEOF
16748#define HAVE___DIVDI3 1
16749_ACEOF
16750
16751fi
16752
16753 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16754echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16755if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16756 echo $ECHO_N "(cached) $ECHO_C" >&6
16757else
16758 ac_check_lib_save_LIBS=$LIBS
16759LIBS="-lgcc $LIBS"
16760cat >conftest.$ac_ext <<_ACEOF
16761/* confdefs.h. */
16762_ACEOF
16763cat confdefs.h >>conftest.$ac_ext
16764cat >>conftest.$ac_ext <<_ACEOF
16765/* end confdefs.h. */
16766
16767/* Override any GCC internal prototype to avoid an error.
16768 Use char because int might match the return type of a GCC
16769 builtin and then its argument prototype would still apply. */
16770#ifdef __cplusplus
16771extern "C"
16772#endif
16773char __fixdfdi ();
16774int
16775main ()
16776{
16777return __fixdfdi ();
16778 ;
16779 return 0;
16780}
16781_ACEOF
16782rm -f conftest.$ac_objext conftest$ac_exeext
16783if { (ac_try="$ac_link"
16784case "(($ac_try" in
16785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16786 *) ac_try_echo=$ac_try;;
16787esac
16788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16789 (eval "$ac_link") 2>conftest.er1
16790 ac_status=$?
16791 grep -v '^ *+' conftest.er1 >conftest.err
16792 rm -f conftest.er1
16793 cat conftest.err >&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); } && {
16796 test -z "$ac_c_werror_flag" ||
16797 test ! -s conftest.err
16798 } && test -s conftest$ac_exeext &&
16799 $as_test_x conftest$ac_exeext; then
16800 ac_cv_lib_gcc___fixdfdi=yes
16801else
16802 echo "$as_me: failed program was:" >&5
16803sed 's/^/| /' conftest.$ac_ext >&5
16804
16805 ac_cv_lib_gcc___fixdfdi=no
16806fi
16807
16808rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16809 conftest$ac_exeext conftest.$ac_ext
16810LIBS=$ac_check_lib_save_LIBS
16811fi
16812{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16813echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16814if test $ac_cv_lib_gcc___fixdfdi = yes; then
16815
16816cat >>confdefs.h <<\_ACEOF
16817#define HAVE___FIXDFDI 1
16818_ACEOF
16819
16820fi
16821
16822 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16823echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16824if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16825 echo $ECHO_N "(cached) $ECHO_C" >&6
16826else
16827 ac_check_lib_save_LIBS=$LIBS
16828LIBS="-lgcc $LIBS"
16829cat >conftest.$ac_ext <<_ACEOF
16830/* confdefs.h. */
16831_ACEOF
16832cat confdefs.h >>conftest.$ac_ext
16833cat >>conftest.$ac_ext <<_ACEOF
16834/* end confdefs.h. */
16835
16836/* Override any GCC internal prototype to avoid an error.
16837 Use char because int might match the return type of a GCC
16838 builtin and then its argument prototype would still apply. */
16839#ifdef __cplusplus
16840extern "C"
16841#endif
16842char __fixsfdi ();
16843int
16844main ()
16845{
16846return __fixsfdi ();
16847 ;
16848 return 0;
16849}
16850_ACEOF
16851rm -f conftest.$ac_objext conftest$ac_exeext
16852if { (ac_try="$ac_link"
16853case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16856esac
16857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_link") 2>conftest.er1
16859 ac_status=$?
16860 grep -v '^ *+' conftest.er1 >conftest.err
16861 rm -f conftest.er1
16862 cat conftest.err >&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } && {
16865 test -z "$ac_c_werror_flag" ||
16866 test ! -s conftest.err
16867 } && test -s conftest$ac_exeext &&
16868 $as_test_x conftest$ac_exeext; then
16869 ac_cv_lib_gcc___fixsfdi=yes
16870else
16871 echo "$as_me: failed program was:" >&5
16872sed 's/^/| /' conftest.$ac_ext >&5
16873
16874 ac_cv_lib_gcc___fixsfdi=no
16875fi
16876
16877rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16878 conftest$ac_exeext conftest.$ac_ext
16879LIBS=$ac_check_lib_save_LIBS
16880fi
16881{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16882echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16883if test $ac_cv_lib_gcc___fixsfdi = yes; then
16884
16885cat >>confdefs.h <<\_ACEOF
16886#define HAVE___FIXSFDI 1
16887_ACEOF
16888
16889fi
16890
16891 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16892echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16893if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16894 echo $ECHO_N "(cached) $ECHO_C" >&6
16895else
16896 ac_check_lib_save_LIBS=$LIBS
16897LIBS="-lgcc $LIBS"
16898cat >conftest.$ac_ext <<_ACEOF
16899/* confdefs.h. */
16900_ACEOF
16901cat confdefs.h >>conftest.$ac_ext
16902cat >>conftest.$ac_ext <<_ACEOF
16903/* end confdefs.h. */
16904
16905/* Override any GCC internal prototype to avoid an error.
16906 Use char because int might match the return type of a GCC
16907 builtin and then its argument prototype would still apply. */
16908#ifdef __cplusplus
16909extern "C"
16910#endif
16911char __floatdidf ();
16912int
16913main ()
16914{
16915return __floatdidf ();
16916 ;
16917 return 0;
16918}
16919_ACEOF
16920rm -f conftest.$ac_objext conftest$ac_exeext
16921if { (ac_try="$ac_link"
16922case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16925esac
16926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_link") 2>conftest.er1
16928 ac_status=$?
16929 grep -v '^ *+' conftest.er1 >conftest.err
16930 rm -f conftest.er1
16931 cat conftest.err >&5
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); } && {
16934 test -z "$ac_c_werror_flag" ||
16935 test ! -s conftest.err
16936 } && test -s conftest$ac_exeext &&
16937 $as_test_x conftest$ac_exeext; then
16938 ac_cv_lib_gcc___floatdidf=yes
16939else
16940 echo "$as_me: failed program was:" >&5
16941sed 's/^/| /' conftest.$ac_ext >&5
16942
16943 ac_cv_lib_gcc___floatdidf=no
16944fi
16945
16946rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16947 conftest$ac_exeext conftest.$ac_ext
16948LIBS=$ac_check_lib_save_LIBS
16949fi
16950{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16951echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16952if test $ac_cv_lib_gcc___floatdidf = yes; then
16953
16954cat >>confdefs.h <<\_ACEOF
16955#define HAVE___FLOATDIDF 1
16956_ACEOF
16957
16958fi
16959
16960 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16961echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16962if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16963 echo $ECHO_N "(cached) $ECHO_C" >&6
16964else
16965 ac_check_lib_save_LIBS=$LIBS
16966LIBS="-lgcc $LIBS"
16967cat >conftest.$ac_ext <<_ACEOF
16968/* confdefs.h. */
16969_ACEOF
16970cat confdefs.h >>conftest.$ac_ext
16971cat >>conftest.$ac_ext <<_ACEOF
16972/* end confdefs.h. */
16973
16974/* Override any GCC internal prototype to avoid an error.
16975 Use char because int might match the return type of a GCC
16976 builtin and then its argument prototype would still apply. */
16977#ifdef __cplusplus
16978extern "C"
16979#endif
16980char __lshrdi3 ();
16981int
16982main ()
16983{
16984return __lshrdi3 ();
16985 ;
16986 return 0;
16987}
16988_ACEOF
16989rm -f conftest.$ac_objext conftest$ac_exeext
16990if { (ac_try="$ac_link"
16991case "(($ac_try" in
16992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993 *) ac_try_echo=$ac_try;;
16994esac
16995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16996 (eval "$ac_link") 2>conftest.er1
16997 ac_status=$?
16998 grep -v '^ *+' conftest.er1 >conftest.err
16999 rm -f conftest.er1
17000 cat conftest.err >&5
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); } && {
17003 test -z "$ac_c_werror_flag" ||
17004 test ! -s conftest.err
17005 } && test -s conftest$ac_exeext &&
17006 $as_test_x conftest$ac_exeext; then
17007 ac_cv_lib_gcc___lshrdi3=yes
17008else
17009 echo "$as_me: failed program was:" >&5
17010sed 's/^/| /' conftest.$ac_ext >&5
17011
17012 ac_cv_lib_gcc___lshrdi3=no
17013fi
17014
17015rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17016 conftest$ac_exeext conftest.$ac_ext
17017LIBS=$ac_check_lib_save_LIBS
17018fi
17019{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
17020echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
17021if test $ac_cv_lib_gcc___lshrdi3 = yes; then
17022
17023cat >>confdefs.h <<\_ACEOF
17024#define HAVE___LSHRDI3 1
17025_ACEOF
17026
17027fi
17028
17029 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
17030echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
17031if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
17033else
17034 ac_check_lib_save_LIBS=$LIBS
17035LIBS="-lgcc $LIBS"
17036cat >conftest.$ac_ext <<_ACEOF
17037/* confdefs.h. */
17038_ACEOF
17039cat confdefs.h >>conftest.$ac_ext
17040cat >>conftest.$ac_ext <<_ACEOF
17041/* end confdefs.h. */
17042
17043/* Override any GCC internal prototype to avoid an error.
17044 Use char because int might match the return type of a GCC
17045 builtin and then its argument prototype would still apply. */
17046#ifdef __cplusplus
17047extern "C"
17048#endif
17049char __moddi3 ();
17050int
17051main ()
17052{
17053return __moddi3 ();
17054 ;
17055 return 0;
17056}
17057_ACEOF
17058rm -f conftest.$ac_objext conftest$ac_exeext
17059if { (ac_try="$ac_link"
17060case "(($ac_try" in
17061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17062 *) ac_try_echo=$ac_try;;
17063esac
17064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17065 (eval "$ac_link") 2>conftest.er1
17066 ac_status=$?
17067 grep -v '^ *+' conftest.er1 >conftest.err
17068 rm -f conftest.er1
17069 cat conftest.err >&5
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); } && {
17072 test -z "$ac_c_werror_flag" ||
17073 test ! -s conftest.err
17074 } && test -s conftest$ac_exeext &&
17075 $as_test_x conftest$ac_exeext; then
17076 ac_cv_lib_gcc___moddi3=yes
17077else
17078 echo "$as_me: failed program was:" >&5
17079sed 's/^/| /' conftest.$ac_ext >&5
17080
17081 ac_cv_lib_gcc___moddi3=no
17082fi
17083
17084rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17085 conftest$ac_exeext conftest.$ac_ext
17086LIBS=$ac_check_lib_save_LIBS
17087fi
17088{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
17089echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
17090if test $ac_cv_lib_gcc___moddi3 = yes; then
17091
17092cat >>confdefs.h <<\_ACEOF
17093#define HAVE___MODDI3 1
17094_ACEOF
17095
17096fi
17097
17098 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
17099echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
17100if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
17101 echo $ECHO_N "(cached) $ECHO_C" >&6
17102else
17103 ac_check_lib_save_LIBS=$LIBS
17104LIBS="-lgcc $LIBS"
17105cat >conftest.$ac_ext <<_ACEOF
17106/* confdefs.h. */
17107_ACEOF
17108cat confdefs.h >>conftest.$ac_ext
17109cat >>conftest.$ac_ext <<_ACEOF
17110/* end confdefs.h. */
17111
17112/* Override any GCC internal prototype to avoid an error.
17113 Use char because int might match the return type of a GCC
17114 builtin and then its argument prototype would still apply. */
17115#ifdef __cplusplus
17116extern "C"
17117#endif
17118char __udivdi3 ();
17119int
17120main ()
17121{
17122return __udivdi3 ();
17123 ;
17124 return 0;
17125}
17126_ACEOF
17127rm -f conftest.$ac_objext conftest$ac_exeext
17128if { (ac_try="$ac_link"
17129case "(($ac_try" in
17130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17131 *) ac_try_echo=$ac_try;;
17132esac
17133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17134 (eval "$ac_link") 2>conftest.er1
17135 ac_status=$?
17136 grep -v '^ *+' conftest.er1 >conftest.err
17137 rm -f conftest.er1
17138 cat conftest.err >&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } && {
17141 test -z "$ac_c_werror_flag" ||
17142 test ! -s conftest.err
17143 } && test -s conftest$ac_exeext &&
17144 $as_test_x conftest$ac_exeext; then
17145 ac_cv_lib_gcc___udivdi3=yes
17146else
17147 echo "$as_me: failed program was:" >&5
17148sed 's/^/| /' conftest.$ac_ext >&5
17149
17150 ac_cv_lib_gcc___udivdi3=no
17151fi
17152
17153rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17154 conftest$ac_exeext conftest.$ac_ext
17155LIBS=$ac_check_lib_save_LIBS
17156fi
17157{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
17158echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
17159if test $ac_cv_lib_gcc___udivdi3 = yes; then
17160
17161cat >>confdefs.h <<\_ACEOF
17162#define HAVE___UDIVDI3 1
17163_ACEOF
17164
17165fi
17166
17167 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
17168echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
17169if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
17170 echo $ECHO_N "(cached) $ECHO_C" >&6
17171else
17172 ac_check_lib_save_LIBS=$LIBS
17173LIBS="-lgcc $LIBS"
17174cat >conftest.$ac_ext <<_ACEOF
17175/* confdefs.h. */
17176_ACEOF
17177cat confdefs.h >>conftest.$ac_ext
17178cat >>conftest.$ac_ext <<_ACEOF
17179/* end confdefs.h. */
17180
17181/* Override any GCC internal prototype to avoid an error.
17182 Use char because int might match the return type of a GCC
17183 builtin and then its argument prototype would still apply. */
17184#ifdef __cplusplus
17185extern "C"
17186#endif
17187char __umoddi3 ();
17188int
17189main ()
17190{
17191return __umoddi3 ();
17192 ;
17193 return 0;
17194}
17195_ACEOF
17196rm -f conftest.$ac_objext conftest$ac_exeext
17197if { (ac_try="$ac_link"
17198case "(($ac_try" in
17199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17200 *) ac_try_echo=$ac_try;;
17201esac
17202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17203 (eval "$ac_link") 2>conftest.er1
17204 ac_status=$?
17205 grep -v '^ *+' conftest.er1 >conftest.err
17206 rm -f conftest.er1
17207 cat conftest.err >&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } && {
17210 test -z "$ac_c_werror_flag" ||
17211 test ! -s conftest.err
17212 } && test -s conftest$ac_exeext &&
17213 $as_test_x conftest$ac_exeext; then
17214 ac_cv_lib_gcc___umoddi3=yes
17215else
17216 echo "$as_me: failed program was:" >&5
17217sed 's/^/| /' conftest.$ac_ext >&5
17218
17219 ac_cv_lib_gcc___umoddi3=no
17220fi
17221
17222rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17223 conftest$ac_exeext conftest.$ac_ext
17224LIBS=$ac_check_lib_save_LIBS
17225fi
17226{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
17227echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
17228if test $ac_cv_lib_gcc___umoddi3 = yes; then
17229
17230cat >>confdefs.h <<\_ACEOF
17231#define HAVE___UMODDI3 1
17232_ACEOF
17233
17234fi
17235
17236
17237 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
17238echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
17239if test "${ac_cv_lib_gcc___main+set}" = set; then
17240 echo $ECHO_N "(cached) $ECHO_C" >&6
17241else
17242 ac_check_lib_save_LIBS=$LIBS
17243LIBS="-lgcc $LIBS"
17244cat >conftest.$ac_ext <<_ACEOF
17245/* confdefs.h. */
17246_ACEOF
17247cat confdefs.h >>conftest.$ac_ext
17248cat >>conftest.$ac_ext <<_ACEOF
17249/* end confdefs.h. */
17250
17251/* Override any GCC internal prototype to avoid an error.
17252 Use char because int might match the return type of a GCC
17253 builtin and then its argument prototype would still apply. */
17254#ifdef __cplusplus
17255extern "C"
17256#endif
17257char __main ();
17258int
17259main ()
17260{
17261return __main ();
17262 ;
17263 return 0;
17264}
17265_ACEOF
17266rm -f conftest.$ac_objext conftest$ac_exeext
17267if { (ac_try="$ac_link"
17268case "(($ac_try" in
17269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17270 *) ac_try_echo=$ac_try;;
17271esac
17272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17273 (eval "$ac_link") 2>conftest.er1
17274 ac_status=$?
17275 grep -v '^ *+' conftest.er1 >conftest.err
17276 rm -f conftest.er1
17277 cat conftest.err >&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); } && {
17280 test -z "$ac_c_werror_flag" ||
17281 test ! -s conftest.err
17282 } && test -s conftest$ac_exeext &&
17283 $as_test_x conftest$ac_exeext; then
17284 ac_cv_lib_gcc___main=yes
17285else
17286 echo "$as_me: failed program was:" >&5
17287sed 's/^/| /' conftest.$ac_ext >&5
17288
17289 ac_cv_lib_gcc___main=no
17290fi
17291
17292rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17293 conftest$ac_exeext conftest.$ac_ext
17294LIBS=$ac_check_lib_save_LIBS
17295fi
17296{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
17297echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
17298if test $ac_cv_lib_gcc___main = yes; then
17299
17300cat >>confdefs.h <<\_ACEOF
17301#define HAVE___MAIN 1
17302_ACEOF
17303
17304fi
17305
17306 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
17307echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
17308if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
17309 echo $ECHO_N "(cached) $ECHO_C" >&6
17310else
17311 ac_check_lib_save_LIBS=$LIBS
17312LIBS="-lgcc $LIBS"
17313cat >conftest.$ac_ext <<_ACEOF
17314/* confdefs.h. */
17315_ACEOF
17316cat confdefs.h >>conftest.$ac_ext
17317cat >>conftest.$ac_ext <<_ACEOF
17318/* end confdefs.h. */
17319
17320/* Override any GCC internal prototype to avoid an error.
17321 Use char because int might match the return type of a GCC
17322 builtin and then its argument prototype would still apply. */
17323#ifdef __cplusplus
17324extern "C"
17325#endif
17326char __cmpdi2 ();
17327int
17328main ()
17329{
17330return __cmpdi2 ();
17331 ;
17332 return 0;
17333}
17334_ACEOF
17335rm -f conftest.$ac_objext conftest$ac_exeext
17336if { (ac_try="$ac_link"
17337case "(($ac_try" in
17338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17339 *) ac_try_echo=$ac_try;;
17340esac
17341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17342 (eval "$ac_link") 2>conftest.er1
17343 ac_status=$?
17344 grep -v '^ *+' conftest.er1 >conftest.err
17345 rm -f conftest.er1
17346 cat conftest.err >&5
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); } && {
17349 test -z "$ac_c_werror_flag" ||
17350 test ! -s conftest.err
17351 } && test -s conftest$ac_exeext &&
17352 $as_test_x conftest$ac_exeext; then
17353 ac_cv_lib_gcc___cmpdi2=yes
17354else
17355 echo "$as_me: failed program was:" >&5
17356sed 's/^/| /' conftest.$ac_ext >&5
17357
17358 ac_cv_lib_gcc___cmpdi2=no
17359fi
17360
17361rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17362 conftest$ac_exeext conftest.$ac_ext
17363LIBS=$ac_check_lib_save_LIBS
17364fi
17365{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
17366echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
17367if test $ac_cv_lib_gcc___cmpdi2 = yes; then
17368
17369cat >>confdefs.h <<\_ACEOF
17370#define HAVE___CMPDI2 1
17371_ACEOF
17372
17373fi
17374
17375fi
17376
17377if test "$llvm_cv_os_type" = "MingW" ; then
17378 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
17379echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
17380 cat >conftest.$ac_ext <<_ACEOF
17381#include <windows.h>
17382#include <imagehlp.h>
17383extern void foo(PENUMLOADED_MODULES_CALLBACK);
17384extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
17385_ACEOF
17386rm -f conftest.$ac_objext
17387if { (ac_try="$ac_compile"
17388case "(($ac_try" in
17389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17390 *) ac_try_echo=$ac_try;;
17391esac
17392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17393 (eval "$ac_compile") 2>conftest.er1
17394 ac_status=$?
17395 grep -v '^ *+' conftest.er1 >conftest.err
17396 rm -f conftest.er1
17397 cat conftest.err >&5
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); } && {
17400 test -z "$ac_c_werror_flag" ||
17401 test ! -s conftest.err
17402 } && test -s conftest.$ac_objext; then
17403
17404 { echo "$as_me:$LINENO: result: yes" >&5
17405echo "${ECHO_T}yes" >&6; }
17406 llvm_cv_win32_elmcb_pcstr="PCSTR"
17407
17408else
17409 echo "$as_me: failed program was:" >&5
17410sed 's/^/| /' conftest.$ac_ext >&5
17411
17412
17413 { echo "$as_me:$LINENO: result: no" >&5
17414echo "${ECHO_T}no" >&6; }
17415 llvm_cv_win32_elmcb_pcstr="PSTR"
17416
17417fi
17418
17419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17420
17421cat >>confdefs.h <<_ACEOF
17422#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
17423_ACEOF
17424
17425fi
17426
17427
17428{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
17429echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
17430if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
17431 echo $ECHO_N "(cached) $ECHO_C" >&6
17432else
17433 ac_ext=cpp
17434ac_cpp='$CXXCPP $CPPFLAGS'
17435ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17436ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17437ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17438
17439 cat >conftest.$ac_ext <<_ACEOF
17440/* confdefs.h. */
17441_ACEOF
17442cat confdefs.h >>conftest.$ac_ext
17443cat >>conftest.$ac_ext <<_ACEOF
17444/* end confdefs.h. */
17445#include <math.h>
17446int
17447main ()
17448{
17449float f; isnan(f);
17450 ;
17451 return 0;
17452}
17453_ACEOF
17454rm -f conftest.$ac_objext
17455if { (ac_try="$ac_compile"
17456case "(($ac_try" in
17457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458 *) ac_try_echo=$ac_try;;
17459esac
17460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17461 (eval "$ac_compile") 2>conftest.er1
17462 ac_status=$?
17463 grep -v '^ *+' conftest.er1 >conftest.err
17464 rm -f conftest.er1
17465 cat conftest.err >&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); } && {
17468 test -z "$ac_cxx_werror_flag" ||
17469 test ! -s conftest.err
17470 } && test -s conftest.$ac_objext; then
17471 ac_cv_func_isnan_in_math_h=yes
17472else
17473 echo "$as_me: failed program was:" >&5
17474sed 's/^/| /' conftest.$ac_ext >&5
17475
17476 ac_cv_func_isnan_in_math_h=no
17477fi
17478
17479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17480 ac_ext=c
17481ac_cpp='$CPP $CPPFLAGS'
17482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17484ac_compiler_gnu=$ac_cv_c_compiler_gnu
17485
17486fi
17487{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
17488echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
17489
17490
17491if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
17492
17493cat >>confdefs.h <<\_ACEOF
17494#define HAVE_ISNAN_IN_MATH_H 1
17495_ACEOF
17496
17497fi
17498
17499{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
17500echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
17501if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
17502 echo $ECHO_N "(cached) $ECHO_C" >&6
17503else
17504 ac_ext=cpp
17505ac_cpp='$CXXCPP $CPPFLAGS'
17506ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17507ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17508ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17509
17510 cat >conftest.$ac_ext <<_ACEOF
17511/* confdefs.h. */
17512_ACEOF
17513cat confdefs.h >>conftest.$ac_ext
17514cat >>conftest.$ac_ext <<_ACEOF
17515/* end confdefs.h. */
17516#include <cmath>
17517int
17518main ()
17519{
17520float f; isnan(f);
17521 ;
17522 return 0;
17523}
17524_ACEOF
17525rm -f conftest.$ac_objext
17526if { (ac_try="$ac_compile"
17527case "(($ac_try" in
17528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529 *) ac_try_echo=$ac_try;;
17530esac
17531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17532 (eval "$ac_compile") 2>conftest.er1
17533 ac_status=$?
17534 grep -v '^ *+' conftest.er1 >conftest.err
17535 rm -f conftest.er1
17536 cat conftest.err >&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); } && {
17539 test -z "$ac_cxx_werror_flag" ||
17540 test ! -s conftest.err
17541 } && test -s conftest.$ac_objext; then
17542 ac_cv_func_isnan_in_cmath=yes
17543else
17544 echo "$as_me: failed program was:" >&5
17545sed 's/^/| /' conftest.$ac_ext >&5
17546
17547 ac_cv_func_isnan_in_cmath=no
17548fi
17549
17550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17551 ac_ext=c
17552ac_cpp='$CPP $CPPFLAGS'
17553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17555ac_compiler_gnu=$ac_cv_c_compiler_gnu
17556
17557fi
17558{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
17559echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
17560
17561if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
17562
17563cat >>confdefs.h <<\_ACEOF
17564#define HAVE_ISNAN_IN_CMATH 1
17565_ACEOF
17566
17567fi
17568
17569{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
17570echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
17571if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
17572 echo $ECHO_N "(cached) $ECHO_C" >&6
17573else
17574 ac_ext=cpp
17575ac_cpp='$CXXCPP $CPPFLAGS'
17576ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17577ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17578ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17579
17580 cat >conftest.$ac_ext <<_ACEOF
17581/* confdefs.h. */
17582_ACEOF
17583cat confdefs.h >>conftest.$ac_ext
17584cat >>conftest.$ac_ext <<_ACEOF
17585/* end confdefs.h. */
17586#include <cmath>
17587int
17588main ()
17589{
17590float f; std::isnan(f);
17591 ;
17592 return 0;
17593}
17594_ACEOF
17595rm -f conftest.$ac_objext
17596if { (ac_try="$ac_compile"
17597case "(($ac_try" in
17598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17599 *) ac_try_echo=$ac_try;;
17600esac
17601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17602 (eval "$ac_compile") 2>conftest.er1
17603 ac_status=$?
17604 grep -v '^ *+' conftest.er1 >conftest.err
17605 rm -f conftest.er1
17606 cat conftest.err >&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); } && {
17609 test -z "$ac_cxx_werror_flag" ||
17610 test ! -s conftest.err
17611 } && test -s conftest.$ac_objext; then
17612 ac_cv_func_std_isnan_in_cmath=yes
17613else
17614 echo "$as_me: failed program was:" >&5
17615sed 's/^/| /' conftest.$ac_ext >&5
17616
17617 ac_cv_func_std_isnan_in_cmath=no
17618fi
17619
17620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17621 ac_ext=c
17622ac_cpp='$CPP $CPPFLAGS'
17623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17625ac_compiler_gnu=$ac_cv_c_compiler_gnu
17626
17627fi
17628{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17629echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
17630
17631if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
17632
17633cat >>confdefs.h <<\_ACEOF
17634#define HAVE_STD_ISNAN_IN_CMATH 1
17635_ACEOF
17636
17637fi
17638
17639
17640{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
17641echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17642if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17643 echo $ECHO_N "(cached) $ECHO_C" >&6
17644else
17645 ac_ext=cpp
17646ac_cpp='$CXXCPP $CPPFLAGS'
17647ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17648ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17649ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17650
17651 cat >conftest.$ac_ext <<_ACEOF
17652/* confdefs.h. */
17653_ACEOF
17654cat confdefs.h >>conftest.$ac_ext
17655cat >>conftest.$ac_ext <<_ACEOF
17656/* end confdefs.h. */
17657#include <math.h>
17658int
17659main ()
17660{
17661float f; isinf(f);
17662 ;
17663 return 0;
17664}
17665_ACEOF
17666rm -f conftest.$ac_objext
17667if { (ac_try="$ac_compile"
17668case "(($ac_try" in
17669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670 *) ac_try_echo=$ac_try;;
17671esac
17672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673 (eval "$ac_compile") 2>conftest.er1
17674 ac_status=$?
17675 grep -v '^ *+' conftest.er1 >conftest.err
17676 rm -f conftest.er1
17677 cat conftest.err >&5
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); } && {
17680 test -z "$ac_cxx_werror_flag" ||
17681 test ! -s conftest.err
17682 } && test -s conftest.$ac_objext; then
17683 ac_cv_func_isinf_in_math_h=yes
17684else
17685 echo "$as_me: failed program was:" >&5
17686sed 's/^/| /' conftest.$ac_ext >&5
17687
17688 ac_cv_func_isinf_in_math_h=no
17689fi
17690
17691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17692 ac_ext=c
17693ac_cpp='$CPP $CPPFLAGS'
17694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17696ac_compiler_gnu=$ac_cv_c_compiler_gnu
17697
17698fi
17699{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17700echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17701
17702if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17703
17704cat >>confdefs.h <<\_ACEOF
17705#define HAVE_ISINF_IN_MATH_H 1
17706_ACEOF
17707
17708fi
17709
17710{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17711echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17712if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17713 echo $ECHO_N "(cached) $ECHO_C" >&6
17714else
17715 ac_ext=cpp
17716ac_cpp='$CXXCPP $CPPFLAGS'
17717ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17718ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17719ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17720
17721 cat >conftest.$ac_ext <<_ACEOF
17722/* confdefs.h. */
17723_ACEOF
17724cat confdefs.h >>conftest.$ac_ext
17725cat >>conftest.$ac_ext <<_ACEOF
17726/* end confdefs.h. */
17727#include <cmath>
17728int
17729main ()
17730{
17731float f; isinf(f);
17732 ;
17733 return 0;
17734}
17735_ACEOF
17736rm -f conftest.$ac_objext
17737if { (ac_try="$ac_compile"
17738case "(($ac_try" in
17739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740 *) ac_try_echo=$ac_try;;
17741esac
17742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743 (eval "$ac_compile") 2>conftest.er1
17744 ac_status=$?
17745 grep -v '^ *+' conftest.er1 >conftest.err
17746 rm -f conftest.er1
17747 cat conftest.err >&5
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); } && {
17750 test -z "$ac_cxx_werror_flag" ||
17751 test ! -s conftest.err
17752 } && test -s conftest.$ac_objext; then
17753 ac_cv_func_isinf_in_cmath=yes
17754else
17755 echo "$as_me: failed program was:" >&5
17756sed 's/^/| /' conftest.$ac_ext >&5
17757
17758 ac_cv_func_isinf_in_cmath=no
17759fi
17760
17761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17762 ac_ext=c
17763ac_cpp='$CPP $CPPFLAGS'
17764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17766ac_compiler_gnu=$ac_cv_c_compiler_gnu
17767
17768fi
17769{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
17770echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
17771
17772if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
17773
17774cat >>confdefs.h <<\_ACEOF
17775#define HAVE_ISINF_IN_CMATH 1
17776_ACEOF
17777
17778fi
17779
17780{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
17781echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
17782if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
17783 echo $ECHO_N "(cached) $ECHO_C" >&6
17784else
17785 ac_ext=cpp
17786ac_cpp='$CXXCPP $CPPFLAGS'
17787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17790
17791 cat >conftest.$ac_ext <<_ACEOF
17792/* confdefs.h. */
17793_ACEOF
17794cat confdefs.h >>conftest.$ac_ext
17795cat >>conftest.$ac_ext <<_ACEOF
17796/* end confdefs.h. */
17797#include <cmath>
17798int
17799main ()
17800{
17801float f; std::isinf(f)}
17802 ;
17803 return 0;
17804}
17805_ACEOF
17806rm -f conftest.$ac_objext
17807if { (ac_try="$ac_compile"
17808case "(($ac_try" in
17809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17810 *) ac_try_echo=$ac_try;;
17811esac
17812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17813 (eval "$ac_compile") 2>conftest.er1
17814 ac_status=$?
17815 grep -v '^ *+' conftest.er1 >conftest.err
17816 rm -f conftest.er1
17817 cat conftest.err >&5
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); } && {
17820 test -z "$ac_cxx_werror_flag" ||
17821 test ! -s conftest.err
17822 } && test -s conftest.$ac_objext; then
17823 ac_cv_func_std_isinf_in_cmath=yes
17824else
17825 echo "$as_me: failed program was:" >&5
17826sed 's/^/| /' conftest.$ac_ext >&5
17827
17828 ac_cv_func_std_isinf_in_cmath=no
17829fi
17830
17831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17832 ac_ext=c
17833ac_cpp='$CPP $CPPFLAGS'
17834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17836ac_compiler_gnu=$ac_cv_c_compiler_gnu
17837
17838fi
17839{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
17840echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
17841
17842if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
17843
17844cat >>confdefs.h <<\_ACEOF
17845#define HAVE_STD_ISINF_IN_CMATH 1
17846_ACEOF
17847
17848fi
17849
17850{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
17851echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
17852if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
17853 echo $ECHO_N "(cached) $ECHO_C" >&6
17854else
17855 ac_ext=cpp
17856ac_cpp='$CXXCPP $CPPFLAGS'
17857ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17858ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17859ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17860
17861 cat >conftest.$ac_ext <<_ACEOF
17862/* confdefs.h. */
17863_ACEOF
17864cat confdefs.h >>conftest.$ac_ext
17865cat >>conftest.$ac_ext <<_ACEOF
17866/* end confdefs.h. */
17867#include <ieeefp.h>
17868int
17869main ()
17870{
17871float f; finite(f);
17872 ;
17873 return 0;
17874}
17875_ACEOF
17876rm -f conftest.$ac_objext
17877if { (ac_try="$ac_compile"
17878case "(($ac_try" in
17879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17880 *) ac_try_echo=$ac_try;;
17881esac
17882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17883 (eval "$ac_compile") 2>conftest.er1
17884 ac_status=$?
17885 grep -v '^ *+' conftest.er1 >conftest.err
17886 rm -f conftest.er1
17887 cat conftest.err >&5
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); } && {
17890 test -z "$ac_cxx_werror_flag" ||
17891 test ! -s conftest.err
17892 } && test -s conftest.$ac_objext; then
17893 ac_cv_func_finite_in_ieeefp_h=yes
17894else
17895 echo "$as_me: failed program was:" >&5
17896sed 's/^/| /' conftest.$ac_ext >&5
17897
17898 ac_cv_func_finite_in_ieeefp_h=no
17899fi
17900
17901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17902 ac_ext=c
17903ac_cpp='$CPP $CPPFLAGS'
17904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17906ac_compiler_gnu=$ac_cv_c_compiler_gnu
17907
17908fi
17909{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
17910echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
17911
17912if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
17913
17914cat >>confdefs.h <<\_ACEOF
17915#define HAVE_FINITE_IN_IEEEFP_H 1
17916_ACEOF
17917
17918fi
17919
17920
17921
17922if test "$llvm_cv_platform_type" = "Unix" ; then
17923
17924
17925for ac_header in stdlib.h unistd.h
17926do
17927as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17928if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17929 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17931if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17932 echo $ECHO_N "(cached) $ECHO_C" >&6
17933fi
17934ac_res=`eval echo '${'$as_ac_Header'}'`
17935 { echo "$as_me:$LINENO: result: $ac_res" >&5
17936echo "${ECHO_T}$ac_res" >&6; }
17937else
17938 # Is the header compilable?
17939{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17940echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17941cat >conftest.$ac_ext <<_ACEOF
17942/* confdefs.h. */
17943_ACEOF
17944cat confdefs.h >>conftest.$ac_ext
17945cat >>conftest.$ac_ext <<_ACEOF
17946/* end confdefs.h. */
17947$ac_includes_default
17948#include <$ac_header>
17949_ACEOF
17950rm -f conftest.$ac_objext
17951if { (ac_try="$ac_compile"
17952case "(($ac_try" in
17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954 *) ac_try_echo=$ac_try;;
17955esac
17956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17957 (eval "$ac_compile") 2>conftest.er1
17958 ac_status=$?
17959 grep -v '^ *+' conftest.er1 >conftest.err
17960 rm -f conftest.er1
17961 cat conftest.err >&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); } && {
17964 test -z "$ac_c_werror_flag" ||
17965 test ! -s conftest.err
17966 } && test -s conftest.$ac_objext; then
17967 ac_header_compiler=yes
17968else
17969 echo "$as_me: failed program was:" >&5
17970sed 's/^/| /' conftest.$ac_ext >&5
17971
17972 ac_header_compiler=no
17973fi
17974
17975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17976{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17977echo "${ECHO_T}$ac_header_compiler" >&6; }
17978
17979# Is the header present?
17980{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17981echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17982cat >conftest.$ac_ext <<_ACEOF
17983/* confdefs.h. */
17984_ACEOF
17985cat confdefs.h >>conftest.$ac_ext
17986cat >>conftest.$ac_ext <<_ACEOF
17987/* end confdefs.h. */
17988#include <$ac_header>
17989_ACEOF
17990if { (ac_try="$ac_cpp conftest.$ac_ext"
17991case "(($ac_try" in
17992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17993 *) ac_try_echo=$ac_try;;
17994esac
17995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17997 ac_status=$?
17998 grep -v '^ *+' conftest.er1 >conftest.err
17999 rm -f conftest.er1
18000 cat conftest.err >&5
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); } >/dev/null && {
18003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18004 test ! -s conftest.err
18005 }; then
18006 ac_header_preproc=yes
18007else
18008 echo "$as_me: failed program was:" >&5
18009sed 's/^/| /' conftest.$ac_ext >&5
18010
18011 ac_header_preproc=no
18012fi
18013
18014rm -f conftest.err conftest.$ac_ext
18015{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18016echo "${ECHO_T}$ac_header_preproc" >&6; }
18017
18018# So? What about this header?
18019case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18020 yes:no: )
18021 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18022echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18024echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18025 ac_header_preproc=yes
18026 ;;
18027 no:yes:* )
18028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18029echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18031echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18032 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18033echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18034 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18035echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18037echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18038 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18039echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18040 ( cat <<\_ASBOX
18041## ----------------------------------- ##
18042## Report this to llvmbugs@cs.uiuc.edu ##
18043## ----------------------------------- ##
18044_ASBOX
18045 ) | sed "s/^/$as_me: WARNING: /" >&2
18046 ;;
18047esac
18048{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18050if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18051 echo $ECHO_N "(cached) $ECHO_C" >&6
18052else
18053 eval "$as_ac_Header=\$ac_header_preproc"
18054fi
18055ac_res=`eval echo '${'$as_ac_Header'}'`
18056 { echo "$as_me:$LINENO: result: $ac_res" >&5
18057echo "${ECHO_T}$ac_res" >&6; }
18058
18059fi
18060if test `eval echo '${'$as_ac_Header'}'` = yes; then
18061 cat >>confdefs.h <<_ACEOF
18062#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18063_ACEOF
18064
18065fi
18066
18067done
18068
18069
18070for ac_func in getpagesize
18071do
18072as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18073{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18074echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18075if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
18077else
18078 cat >conftest.$ac_ext <<_ACEOF
18079/* confdefs.h. */
18080_ACEOF
18081cat confdefs.h >>conftest.$ac_ext
18082cat >>conftest.$ac_ext <<_ACEOF
18083/* end confdefs.h. */
18084/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18086#define $ac_func innocuous_$ac_func
18087
18088/* System header to define __stub macros and hopefully few prototypes,
18089 which can conflict with char $ac_func (); below.
18090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18091 <limits.h> exists even on freestanding compilers. */
18092
18093#ifdef __STDC__
18094# include <limits.h>
18095#else
18096# include <assert.h>
18097#endif
18098
18099#undef $ac_func
18100
18101/* Override any GCC internal prototype to avoid an error.
18102 Use char because int might match the return type of a GCC
18103 builtin and then its argument prototype would still apply. */
18104#ifdef __cplusplus
18105extern "C"
18106#endif
18107char $ac_func ();
18108/* The GNU C library defines this for functions which it implements
18109 to always fail with ENOSYS. Some functions are actually named
18110 something starting with __ and the normal name is an alias. */
18111#if defined __stub_$ac_func || defined __stub___$ac_func
18112choke me
18113#endif
18114
18115int
18116main ()
18117{
18118return $ac_func ();
18119 ;
18120 return 0;
18121}
18122_ACEOF
18123rm -f conftest.$ac_objext conftest$ac_exeext
18124if { (ac_try="$ac_link"
18125case "(($ac_try" in
18126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127 *) ac_try_echo=$ac_try;;
18128esac
18129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18130 (eval "$ac_link") 2>conftest.er1
18131 ac_status=$?
18132 grep -v '^ *+' conftest.er1 >conftest.err
18133 rm -f conftest.er1
18134 cat conftest.err >&5
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); } && {
18137 test -z "$ac_c_werror_flag" ||
18138 test ! -s conftest.err
18139 } && test -s conftest$ac_exeext &&
18140 $as_test_x conftest$ac_exeext; then
18141 eval "$as_ac_var=yes"
18142else
18143 echo "$as_me: failed program was:" >&5
18144sed 's/^/| /' conftest.$ac_ext >&5
18145
18146 eval "$as_ac_var=no"
18147fi
18148
18149rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18150 conftest$ac_exeext conftest.$ac_ext
18151fi
18152ac_res=`eval echo '${'$as_ac_var'}'`
18153 { echo "$as_me:$LINENO: result: $ac_res" >&5
18154echo "${ECHO_T}$ac_res" >&6; }
18155if test `eval echo '${'$as_ac_var'}'` = yes; then
18156 cat >>confdefs.h <<_ACEOF
18157#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18158_ACEOF
18159
18160fi
18161done
18162
18163{ echo "$as_me:$LINENO: checking for working mmap" >&5
18164echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
18165if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18166 echo $ECHO_N "(cached) $ECHO_C" >&6
18167else
18168 if test "$cross_compiling" = yes; then
18169 ac_cv_func_mmap_fixed_mapped=no
18170else
18171 cat >conftest.$ac_ext <<_ACEOF
18172/* confdefs.h. */
18173_ACEOF
18174cat confdefs.h >>conftest.$ac_ext
18175cat >>conftest.$ac_ext <<_ACEOF
18176/* end confdefs.h. */
18177$ac_includes_default
18178/* malloc might have been renamed as rpl_malloc. */
18179#undef malloc
18180
18181/* Thanks to Mike Haertel and Jim Avera for this test.
18182 Here is a matrix of mmap possibilities:
18183 mmap private not fixed
18184 mmap private fixed at somewhere currently unmapped
18185 mmap private fixed at somewhere already mapped
18186 mmap shared not fixed
18187 mmap shared fixed at somewhere currently unmapped
18188 mmap shared fixed at somewhere already mapped
18189 For private mappings, we should verify that changes cannot be read()
18190 back from the file, nor mmap's back from the file at a different
18191 address. (There have been systems where private was not correctly
18192 implemented like the infamous i386 svr4.0, and systems where the
18193 VM page cache was not coherent with the file system buffer cache
18194 like early versions of FreeBSD and possibly contemporary NetBSD.)
18195 For shared mappings, we should conversely verify that changes get
18196 propagated back to all the places they're supposed to be.
18197
18198 Grep wants private fixed already mapped.
18199 The main things grep needs to know about mmap are:
18200 * does it exist and is it safe to write into the mmap'd area
18201 * how to use it (BSD variants) */
18202
18203#include <fcntl.h>
18204#include <sys/mman.h>
18205
18206#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18207char *malloc ();
18208#endif
18209
18210/* This mess was copied from the GNU getpagesize.h. */
18211#ifndef HAVE_GETPAGESIZE
18212/* Assume that all systems that can run configure have sys/param.h. */
18213# ifndef HAVE_SYS_PARAM_H
18214# define HAVE_SYS_PARAM_H 1
18215# endif
18216
18217# ifdef _SC_PAGESIZE
18218# define getpagesize() sysconf(_SC_PAGESIZE)
18219# else /* no _SC_PAGESIZE */
18220# ifdef HAVE_SYS_PARAM_H
18221# include <sys/param.h>
18222# ifdef EXEC_PAGESIZE
18223# define getpagesize() EXEC_PAGESIZE
18224# else /* no EXEC_PAGESIZE */
18225# ifdef NBPG
18226# define getpagesize() NBPG * CLSIZE
18227# ifndef CLSIZE
18228# define CLSIZE 1
18229# endif /* no CLSIZE */
18230# else /* no NBPG */
18231# ifdef NBPC
18232# define getpagesize() NBPC
18233# else /* no NBPC */
18234# ifdef PAGESIZE
18235# define getpagesize() PAGESIZE
18236# endif /* PAGESIZE */
18237# endif /* no NBPC */
18238# endif /* no NBPG */
18239# endif /* no EXEC_PAGESIZE */
18240# else /* no HAVE_SYS_PARAM_H */
18241# define getpagesize() 8192 /* punt totally */
18242# endif /* no HAVE_SYS_PARAM_H */
18243# endif /* no _SC_PAGESIZE */
18244
18245#endif /* no HAVE_GETPAGESIZE */
18246
18247int
18248main ()
18249{
18250 char *data, *data2, *data3;
18251 int i, pagesize;
18252 int fd;
18253
18254 pagesize = getpagesize ();
18255
18256 /* First, make a file with some known garbage in it. */
18257 data = (char *) malloc (pagesize);
18258 if (!data)
18259 return 1;
18260 for (i = 0; i < pagesize; ++i)
18261 *(data + i) = rand ();
18262 umask (0);
18263 fd = creat ("conftest.mmap", 0600);
18264 if (fd < 0)
18265 return 1;
18266 if (write (fd, data, pagesize) != pagesize)
18267 return 1;
18268 close (fd);
18269
18270 /* Next, try to mmap the file at a fixed address which already has
18271 something else allocated at it. If we can, also make sure that
18272 we see the same garbage. */
18273 fd = open ("conftest.mmap", O_RDWR);
18274 if (fd < 0)
18275 return 1;
18276 data2 = (char *) malloc (2 * pagesize);
18277 if (!data2)
18278 return 1;
18279 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
18280 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18281 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18282 return 1;
18283 for (i = 0; i < pagesize; ++i)
18284 if (*(data + i) != *(data2 + i))
18285 return 1;
18286
18287 /* Finally, make sure that changes to the mapped area do not
18288 percolate back to the file as seen by read(). (This is a bug on
18289 some variants of i386 svr4.0.) */
18290 for (i = 0; i < pagesize; ++i)
18291 *(data2 + i) = *(data2 + i) + 1;
18292 data3 = (char *) malloc (pagesize);
18293 if (!data3)
18294 return 1;
18295 if (read (fd, data3, pagesize) != pagesize)
18296 return 1;
18297 for (i = 0; i < pagesize; ++i)
18298 if (*(data + i) != *(data3 + i))
18299 return 1;
18300 close (fd);
18301 return 0;
18302}
18303_ACEOF
18304rm -f conftest$ac_exeext
18305if { (ac_try="$ac_link"
18306case "(($ac_try" in
18307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18308 *) ac_try_echo=$ac_try;;
18309esac
18310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18311 (eval "$ac_link") 2>&5
18312 ac_status=$?
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18315 { (case "(($ac_try" in
18316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18317 *) ac_try_echo=$ac_try;;
18318esac
18319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18320 (eval "$ac_try") 2>&5
18321 ac_status=$?
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); }; }; then
18324 ac_cv_func_mmap_fixed_mapped=yes
18325else
18326 echo "$as_me: program exited with status $ac_status" >&5
18327echo "$as_me: failed program was:" >&5
18328sed 's/^/| /' conftest.$ac_ext >&5
18329
18330( exit $ac_status )
18331ac_cv_func_mmap_fixed_mapped=no
18332fi
18333rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18334fi
18335
18336
18337fi
18338{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18339echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
18340if test $ac_cv_func_mmap_fixed_mapped = yes; then
18341
18342cat >>confdefs.h <<\_ACEOF
18343#define HAVE_MMAP 1
18344_ACEOF
18345
18346fi
18347rm -f conftest.mmap
18348
18349 { echo "$as_me:$LINENO: checking for mmap of files" >&5
18350echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
18351if test "${ac_cv_func_mmap_file+set}" = set; then
18352 echo $ECHO_N "(cached) $ECHO_C" >&6
18353else
18354 ac_ext=c
18355ac_cpp='$CPP $CPPFLAGS'
18356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18358ac_compiler_gnu=$ac_cv_c_compiler_gnu
18359
18360 if test "$cross_compiling" = yes; then
18361 ac_cv_func_mmap_file=no
18362else
18363 cat >conftest.$ac_ext <<_ACEOF
18364
18365 /* confdefs.h. */
18366_ACEOF
18367cat confdefs.h >>conftest.$ac_ext
18368cat >>conftest.$ac_ext <<_ACEOF
18369/* end confdefs.h. */
18370
18371#include <sys/types.h>
18372#include <sys/mman.h>
18373#include <fcntl.h>
18374
18375int
18376main ()
18377{
18378
18379 int fd;
18380 fd = creat ("foo",0777);
18381 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
18382 unlink ("foo");
18383 return (fd != (int) MAP_FAILED);
18384 ;
18385 return 0;
18386}
18387_ACEOF
18388rm -f conftest$ac_exeext
18389if { (ac_try="$ac_link"
18390case "(($ac_try" in
18391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18392 *) ac_try_echo=$ac_try;;
18393esac
18394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18395 (eval "$ac_link") 2>&5
18396 ac_status=$?
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18399 { (case "(($ac_try" in
18400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18401 *) ac_try_echo=$ac_try;;
18402esac
18403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18404 (eval "$ac_try") 2>&5
18405 ac_status=$?
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; }; then
18408 ac_cv_func_mmap_file=yes
18409else
18410 echo "$as_me: program exited with status $ac_status" >&5
18411echo "$as_me: failed program was:" >&5
18412sed 's/^/| /' conftest.$ac_ext >&5
18413
18414( exit $ac_status )
18415ac_cv_func_mmap_file=no
18416fi
18417rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18418fi
18419
18420
18421 ac_ext=c
18422ac_cpp='$CPP $CPPFLAGS'
18423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18425ac_compiler_gnu=$ac_cv_c_compiler_gnu
18426
18427
18428fi
18429{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
18430echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
18431if test "$ac_cv_func_mmap_file" = yes; then
18432
18433cat >>confdefs.h <<\_ACEOF
18434#define HAVE_MMAP_FILE
18435_ACEOF
18436
18437 MMAP_FILE=yes
18438
18439fi
18440
18441 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
18442echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
18443if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
18444 echo $ECHO_N "(cached) $ECHO_C" >&6
18445else
18446 if test "$llvm_cv_os_type" = "Interix" ; then
18447 ac_cv_need_dev_zero_for_mmap=yes
18448 else
18449 ac_cv_need_dev_zero_for_mmap=no
18450 fi
18451
18452fi
18453{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18454echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
18455if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18456
18457cat >>confdefs.h <<\_ACEOF
18458#define NEED_DEV_ZERO_FOR_MMAP 1
18459_ACEOF
18460
18461fi
18462
18463 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18464 then
18465 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18466echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
18467 fi
18468 if test "$ac_cv_func_mmap_file" = "no"
18469 then
18470 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18471echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
18472 fi
18473fi
18474
18475{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18476echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
18477ac_ext=cpp
18478ac_cpp='$CXXCPP $CPPFLAGS'
18479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18482
18483cat >conftest.$ac_ext <<_ACEOF
18484/* confdefs.h. */
18485_ACEOF
18486cat confdefs.h >>conftest.$ac_ext
18487cat >>conftest.$ac_ext <<_ACEOF
18488/* end confdefs.h. */
18489int main() {
18490 volatile unsigned long val = 1;
18491 __sync_synchronize();
18492 __sync_val_compare_and_swap(&val, 1, 0);
18493 __sync_add_and_fetch(&val, 1);
18494 __sync_sub_and_fetch(&val, 1);
18495 return 0;
18496 }
18497
18498_ACEOF
18499rm -f conftest.$ac_objext conftest$ac_exeext
18500if { (ac_try="$ac_link"
18501case "(($ac_try" in
18502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18503 *) ac_try_echo=$ac_try;;
18504esac
18505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18506 (eval "$ac_link") 2>conftest.er1
18507 ac_status=$?
18508 grep -v '^ *+' conftest.er1 >conftest.err
18509 rm -f conftest.er1
18510 cat conftest.err >&5
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); } && {
18513 test -z "$ac_c_werror_flag" ||
18514 test ! -s conftest.err
18515 } && test -s conftest$ac_exeext &&
18516 $as_test_x conftest$ac_exeext; then
18517 ac_ext=c
18518ac_cpp='$CPP $CPPFLAGS'
18519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18521ac_compiler_gnu=$ac_cv_c_compiler_gnu
18522
18523 { echo "$as_me:$LINENO: result: yes" >&5
18524echo "${ECHO_T}yes" >&6; }
18525
18526cat >>confdefs.h <<\_ACEOF
18527#define LLVM_HAS_ATOMICS 1
18528_ACEOF
18529
18530else
18531 echo "$as_me: failed program was:" >&5
18532sed 's/^/| /' conftest.$ac_ext >&5
18533
18534 { echo "$as_me:$LINENO: result: no" >&5
18535echo "${ECHO_T}no" >&6; }
18536
18537cat >>confdefs.h <<\_ACEOF
18538#define LLVM_HAS_ATOMICS 0
18539_ACEOF
18540
18541 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18542echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18543fi
18544
18545rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18546 conftest$ac_exeext conftest.$ac_ext
18547
18548
18549if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18550 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18551echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18552if test "${llvm_cv_linux_mixed+set}" = set; then
18553 echo $ECHO_N "(cached) $ECHO_C" >&6
18554else
18555 ac_ext=c
18556ac_cpp='$CPP $CPPFLAGS'
18557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18559ac_compiler_gnu=$ac_cv_c_compiler_gnu
18560
18561 cat >conftest.$ac_ext <<_ACEOF
18562/* confdefs.h. */
18563_ACEOF
18564cat confdefs.h >>conftest.$ac_ext
18565cat >>conftest.$ac_ext <<_ACEOF
18566/* end confdefs.h. */
18567#ifndef __x86_64__
18568 error: Not x86-64 even if uname says so!
18569 #endif
18570
18571int
18572main ()
18573{
18574
18575 ;
18576 return 0;
18577}
18578_ACEOF
18579rm -f conftest.$ac_objext
18580if { (ac_try="$ac_compile"
18581case "(($ac_try" in
18582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18583 *) ac_try_echo=$ac_try;;
18584esac
18585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18586 (eval "$ac_compile") 2>conftest.er1
18587 ac_status=$?
18588 grep -v '^ *+' conftest.er1 >conftest.err
18589 rm -f conftest.er1
18590 cat conftest.err >&5
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); } && {
18593 test -z "$ac_c_werror_flag" ||
18594 test ! -s conftest.err
18595 } && test -s conftest.$ac_objext; then
18596 llvm_cv_linux_mixed=no
18597else
18598 echo "$as_me: failed program was:" >&5
18599sed 's/^/| /' conftest.$ac_ext >&5
18600
18601 llvm_cv_linux_mixed=yes
18602fi
18603
18604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18605 ac_ext=c
18606ac_cpp='$CPP $CPPFLAGS'
18607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18609ac_compiler_gnu=$ac_cv_c_compiler_gnu
18610
18611
18612fi
18613{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
18614echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
18615
18616 if test "$llvm_cv_linux_mixed" = "yes"; then
18617 llvm_cv_target_arch="x86"
18618 ARCH="x86"
18619 fi
18620fi
18621
18622
18623for ac_func in __dso_handle
18624do
18625as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18626{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18627echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18628if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18629 echo $ECHO_N "(cached) $ECHO_C" >&6
18630else
18631 cat >conftest.$ac_ext <<_ACEOF
18632/* confdefs.h. */
18633_ACEOF
18634cat confdefs.h >>conftest.$ac_ext
18635cat >>conftest.$ac_ext <<_ACEOF
18636/* end confdefs.h. */
18637/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18639#define $ac_func innocuous_$ac_func
18640
18641/* System header to define __stub macros and hopefully few prototypes,
18642 which can conflict with char $ac_func (); below.
18643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18644 <limits.h> exists even on freestanding compilers. */
18645
18646#ifdef __STDC__
18647# include <limits.h>
18648#else
18649# include <assert.h>
18650#endif
18651
18652#undef $ac_func
18653
18654/* Override any GCC internal prototype to avoid an error.
18655 Use char because int might match the return type of a GCC
18656 builtin and then its argument prototype would still apply. */
18657#ifdef __cplusplus
18658extern "C"
18659#endif
18660char $ac_func ();
18661/* The GNU C library defines this for functions which it implements
18662 to always fail with ENOSYS. Some functions are actually named
18663 something starting with __ and the normal name is an alias. */
18664#if defined __stub_$ac_func || defined __stub___$ac_func
18665choke me
18666#endif
18667
18668int
18669main ()
18670{
18671return $ac_func ();
18672 ;
18673 return 0;
18674}
18675_ACEOF
18676rm -f conftest.$ac_objext conftest$ac_exeext
18677if { (ac_try="$ac_link"
18678case "(($ac_try" in
18679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18680 *) ac_try_echo=$ac_try;;
18681esac
18682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18683 (eval "$ac_link") 2>conftest.er1
18684 ac_status=$?
18685 grep -v '^ *+' conftest.er1 >conftest.err
18686 rm -f conftest.er1
18687 cat conftest.err >&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } && {
18690 test -z "$ac_c_werror_flag" ||
18691 test ! -s conftest.err
18692 } && test -s conftest$ac_exeext &&
18693 $as_test_x conftest$ac_exeext; then
18694 eval "$as_ac_var=yes"
18695else
18696 echo "$as_me: failed program was:" >&5
18697sed 's/^/| /' conftest.$ac_ext >&5
18698
18699 eval "$as_ac_var=no"
18700fi
18701
18702rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18703 conftest$ac_exeext conftest.$ac_ext
18704fi
18705ac_res=`eval echo '${'$as_ac_var'}'`
18706 { echo "$as_me:$LINENO: result: $ac_res" >&5
18707echo "${ECHO_T}$ac_res" >&6; }
18708if test `eval echo '${'$as_ac_var'}'` = yes; then
18709 cat >>confdefs.h <<_ACEOF
18710#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18711_ACEOF
18712
18713fi
18714done
18715
18716
18717SHLIBEXT=$libltdl_cv_shlibext
18718
18719
18720SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
18721
18722
18723# Translate the various configuration directories and other basic
18724# information into substitutions that will end up in Makefile.config.in
18725# that these configured values can be used by the makefiles
18726if test "${prefix}" = "NONE" ; then
18727 prefix="/usr/local"
18728fi
18729eval LLVM_PREFIX="${prefix}";
18730eval LLVM_BINDIR="${prefix}/bin";
18731eval LLVM_LIBDIR="${prefix}/lib";
18732eval LLVM_DATADIR="${prefix}/share/llvm";
18733eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
18734eval LLVM_ETCDIR="${prefix}/etc/llvm";
18735eval LLVM_INCLUDEDIR="${prefix}/include";
18736eval LLVM_INFODIR="${prefix}/info";
18737eval LLVM_MANDIR="${prefix}/man";
18738LLVM_CONFIGTIME=`date`
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750# Place the various directores into the config.h file as #defines so that we
18751# can know about the installation paths within LLVM.
18752
18753cat >>confdefs.h <<_ACEOF
18754#define LLVM_PREFIX "$LLVM_PREFIX"
18755_ACEOF
18756
18757
18758cat >>confdefs.h <<_ACEOF
18759#define LLVM_BINDIR "$LLVM_BINDIR"
18760_ACEOF
18761
18762
18763cat >>confdefs.h <<_ACEOF
18764#define LLVM_LIBDIR "$LLVM_LIBDIR"
18765_ACEOF
18766
18767
18768cat >>confdefs.h <<_ACEOF
18769#define LLVM_DATADIR "$LLVM_DATADIR"
18770_ACEOF
18771
18772
18773cat >>confdefs.h <<_ACEOF
18774#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
18775_ACEOF
18776
18777
18778cat >>confdefs.h <<_ACEOF
18779#define LLVM_ETCDIR "$LLVM_ETCDIR"
18780_ACEOF
18781
18782
18783cat >>confdefs.h <<_ACEOF
18784#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
18785_ACEOF
18786
18787
18788cat >>confdefs.h <<_ACEOF
18789#define LLVM_INFODIR "$LLVM_INFODIR"
18790_ACEOF
18791
18792
18793cat >>confdefs.h <<_ACEOF
18794#define LLVM_MANDIR "$LLVM_MANDIR"
18795_ACEOF
18796
18797
18798cat >>confdefs.h <<_ACEOF
18799#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
18800_ACEOF
18801
18802
18803cat >>confdefs.h <<_ACEOF
18804#define LLVM_HOSTTRIPLE "$host"
18805_ACEOF
18806
18807
18808# Determine which bindings to build.
18809if test "$BINDINGS_TO_BUILD" = auto ; then
18810 BINDINGS_TO_BUILD=""
18811 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
18812 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
18813 fi
18814fi
18815BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
18816
18817
18818# This isn't really configurey, but it avoids having to repeat the list in
18819# other files.
18820ALL_BINDINGS=ocaml
18821
18822
18823# Do any work necessary to ensure that bindings have what they need.
18824binding_prereqs_failed=0
18825for a_binding in $BINDINGS_TO_BUILD ; do
18826 case "$a_binding" in
18827 ocaml)
18828 if test "x$OCAMLC" = x ; then
18829 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
18830echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
18831 binding_prereqs_failed=1
18832 fi
18833 if test "x$OCAMLDEP" = x ; then
18834 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
18835echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
18836 binding_prereqs_failed=1
18837 fi
18838 if test "x$OCAMLOPT" = x ; then
18839 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
18840echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
18841 fi
18842 if test "x$with_ocaml_libdir" != xauto ; then
18843 OCAML_LIBDIR=$with_ocaml_libdir
18844
18845 else
18846 ocaml_stdlib="`"$OCAMLC" -where`"
18847 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18848 then
18849 # ocaml stdlib is beneath our prefix; use stdlib
18850 OCAML_LIBDIR=$ocaml_stdlib
18851
18852 else
18853 # ocaml stdlib is outside our prefix; use libdir/ocaml
18854 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
18855
18856 fi
18857 fi
18858 ;;
18859 esac
18860done
18861if test "$binding_prereqs_failed" = 1 ; then
18862 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18863echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18864 { (exit 1); exit 1; }; }
18865fi
18866
18867{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18868echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18869if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18870 echo $ECHO_N "(cached) $ECHO_C" >&6
18871else
18872 ac_ext=cpp
18873ac_cpp='$CXXCPP $CPPFLAGS'
18874ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18875ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18876ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18877
18878 oldcxxflags="$CXXFLAGS"
18879 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
18880 cat >conftest.$ac_ext <<_ACEOF
18881/* confdefs.h. */
18882_ACEOF
18883cat confdefs.h >>conftest.$ac_ext
18884cat >>conftest.$ac_ext <<_ACEOF
18885/* end confdefs.h. */
18886
18887int
18888main ()
18889{
18890
18891 ;
18892 return 0;
18893}
18894_ACEOF
18895rm -f conftest.$ac_objext
18896if { (ac_try="$ac_compile"
18897case "(($ac_try" in
18898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899 *) ac_try_echo=$ac_try;;
18900esac
18901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18902 (eval "$ac_compile") 2>conftest.er1
18903 ac_status=$?
18904 grep -v '^ *+' conftest.er1 >conftest.err
18905 rm -f conftest.er1
18906 cat conftest.err >&5
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); } && {
18909 test -z "$ac_cxx_werror_flag" ||
18910 test ! -s conftest.err
18911 } && test -s conftest.$ac_objext; then
18912 llvm_cv_cxx_visibility_inlines_hidden=yes
18913else
18914 echo "$as_me: failed program was:" >&5
18915sed 's/^/| /' conftest.$ac_ext >&5
18916
18917 llvm_cv_cxx_visibility_inlines_hidden=no
18918fi
18919
18920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18921 CXXFLAGS="$oldcxxflags"
18922 ac_ext=c
18923ac_cpp='$CPP $CPPFLAGS'
18924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18926ac_compiler_gnu=$ac_cv_c_compiler_gnu
18927
18928
18929fi
18930{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18931echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18932if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18933 ENABLE_VISIBILITY_INLINES_HIDDEN=1
18934
18935else
18936 ENABLE_VISIBILITY_INLINES_HIDDEN=0
18937
18938fi
18939
18940
18941if test "$llvm_cv_link_use_r" = "yes" ; then
18942 RPATH="-Wl,-R"
18943else
18944 RPATH="-Wl,-rpath"
18945fi
18946
18947
18948if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18949 RDYNAMIC="-Wl,-export-dynamic"
18950else
18951 RDYNAMIC=""
18952fi
18953
18954
18955
18956ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18957
18958
18959
18960
18961
18962
18963ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18964
18965ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18966
18967ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18968
18969ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18970
18971ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18972
18973
18974ac_config_files="$ac_config_files Makefile.config"
18975
18976
18977ac_config_files="$ac_config_files llvm.spec"
18978
18979
18980ac_config_files="$ac_config_files docs/doxygen.cfg"
18981
18982if test -f ${srcdir}/tools/clang/README.txt; then
18983 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
18984
18985fi
18986
18987ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
18988
18989
18990ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18991
18992
18993ac_config_commands="$ac_config_commands setup"
18994
18995ac_config_commands="$ac_config_commands Makefile"
18996
18997
18998ac_config_commands="$ac_config_commands Makefile.common"
18999
19000
19001ac_config_commands="$ac_config_commands examples/Makefile"
19002
19003
19004ac_config_commands="$ac_config_commands lib/Makefile"
19005
19006
19007ac_config_commands="$ac_config_commands runtime/Makefile"
19008
19009
19010ac_config_commands="$ac_config_commands test/Makefile"
19011
19012
19013ac_config_commands="$ac_config_commands test/Makefile.tests"
19014
19015
19016ac_config_commands="$ac_config_commands unittests/Makefile"
19017
19018
19019ac_config_commands="$ac_config_commands tools/Makefile"
19020
19021
19022ac_config_commands="$ac_config_commands utils/Makefile"
19023
19024
19025ac_config_commands="$ac_config_commands projects/Makefile"
19026
19027
19028ac_config_commands="$ac_config_commands bindings/Makefile"
19029
19030
19031ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
19032
19033
19034
19035cat >confcache <<\_ACEOF
19036# This file is a shell script that caches the results of configure
19037# tests run on this system so they can be shared between configure
19038# scripts and configure runs, see configure's option --config-cache.
19039# It is not useful on other systems. If it contains results you don't
19040# want to keep, you may remove or edit it.
19041#
19042# config.status only pays attention to the cache file if you give it
19043# the --recheck option to rerun configure.
19044#
19045# `ac_cv_env_foo' variables (set or unset) will be overridden when
19046# loading this file, other *unset* `ac_cv_foo' will be assigned the
19047# following values.
19048
19049_ACEOF
19050
19051# The following way of writing the cache mishandles newlines in values,
19052# but we know of no workaround that is simple, portable, and efficient.
19053# So, we kill variables containing newlines.
19054# Ultrix sh set writes to stderr and can't be redirected directly,
19055# and sets the high bit in the cache file unless we assign to the vars.
19056(
19057 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19058 eval ac_val=\$$ac_var
19059 case $ac_val in #(
19060 *${as_nl}*)
19061 case $ac_var in #(
19062 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19063echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19064 esac
19065 case $ac_var in #(
19066 _ | IFS | as_nl) ;; #(
19067 *) $as_unset $ac_var ;;
19068 esac ;;
19069 esac
19070 done
19071
19072 (set) 2>&1 |
19073 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19074 *${as_nl}ac_space=\ *)
19075 # `set' does not quote correctly, so add quotes (double-quote
19076 # substitution turns \\\\ into \\, and sed turns \\ into \).
19077 sed -n \
19078 "s/'/'\\\\''/g;
19079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19080 ;; #(
19081 *)
19082 # `set' quotes correctly as required by POSIX, so do not add quotes.
19083 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19084 ;;
19085 esac |
19086 sort
19087) |
19088 sed '
19089 /^ac_cv_env_/b end
19090 t clear
19091 :clear
19092 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19093 t end
19094 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19095 :end' >>confcache
19096if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19097 if test -w "$cache_file"; then
19098 test "x$cache_file" != "x/dev/null" &&
19099 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19100echo "$as_me: updating cache $cache_file" >&6;}
19101 cat confcache >$cache_file
19102 else
19103 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19104echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19105 fi
19106fi
19107rm -f confcache
19108
19109test "x$prefix" = xNONE && prefix=$ac_default_prefix
19110# Let make expand exec_prefix.
19111test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19112
19113DEFS=-DHAVE_CONFIG_H
19114
19115ac_libobjs=
19116ac_ltlibobjs=
19117for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19118 # 1. Remove the extension, and $U if already installed.
19119 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19120 ac_i=`echo "$ac_i" | sed "$ac_script"`
19121 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19122 # will be set to the directory where LIBOBJS objects are built.
19123 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19124 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19125done
19126LIBOBJS=$ac_libobjs
19127
19128LTLIBOBJS=$ac_ltlibobjs
19129
19130
19131if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
19132 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
19133Usually this means the macro was only invoked conditionally." >&5
19134echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
19135Usually this means the macro was only invoked conditionally." >&2;}
19136 { (exit 1); exit 1; }; }
19137fi
19138if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
19139 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
19140Usually this means the macro was only invoked conditionally." >&5
19141echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
19142Usually this means the macro was only invoked conditionally." >&2;}
19143 { (exit 1); exit 1; }; }
19144fi
19145
19146: ${CONFIG_STATUS=./config.status}
19147ac_clean_files_save=$ac_clean_files
19148ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19149{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19150echo "$as_me: creating $CONFIG_STATUS" >&6;}
19151cat >$CONFIG_STATUS <<_ACEOF
19152#! $SHELL
19153# Generated by $as_me.
19154# Run this file to recreate the current configuration.
19155# Compiler output produced by configure, useful for debugging
19156# configure, is in config.log if it exists.
19157
19158debug=false
19159ac_cs_recheck=false
19160ac_cs_silent=false
19161SHELL=\${CONFIG_SHELL-$SHELL}
19162_ACEOF
19163
19164cat >>$CONFIG_STATUS <<\_ACEOF
19165## --------------------- ##
19166## M4sh Initialization. ##
19167## --------------------- ##
19168
19169# Be more Bourne compatible
19170DUALCASE=1; export DUALCASE # for MKS sh
19171if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19172 emulate sh
19173 NULLCMD=:
19174 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19175 # is contrary to our usage. Disable this feature.
19176 alias -g '${1+"$@"}'='"$@"'
19177 setopt NO_GLOB_SUBST
19178else
19179 case `(set -o) 2>/dev/null` in
19180 *posix*) set -o posix ;;
19181esac
19182
19183fi
19184
19185
19186
19187
19188# PATH needs CR
19189# Avoid depending upon Character Ranges.
19190as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19191as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19192as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19193as_cr_digits='0123456789'
19194as_cr_alnum=$as_cr_Letters$as_cr_digits
19195
19196# The user is always right.
19197if test "${PATH_SEPARATOR+set}" != set; then
19198 echo "#! /bin/sh" >conf$$.sh
19199 echo "exit 0" >>conf$$.sh
19200 chmod +x conf$$.sh
19201 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19202 PATH_SEPARATOR=';'
19203 else
19204 PATH_SEPARATOR=:
19205 fi
19206 rm -f conf$$.sh
19207fi
19208
19209# Support unset when possible.
19210if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19211 as_unset=unset
19212else
19213 as_unset=false
19214fi
19215
19216
19217# IFS
19218# We need space, tab and new line, in precisely that order. Quoting is
19219# there to prevent editors from complaining about space-tab.
19220# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19221# splitting by setting IFS to empty value.)
19222as_nl='
19223'
19224IFS=" "" $as_nl"
19225
19226# Find who we are. Look in the path if we contain no directory separator.
19227case $0 in
19228 *[\\/]* ) as_myself=$0 ;;
19229 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19230for as_dir in $PATH
19231do
19232 IFS=$as_save_IFS
19233 test -z "$as_dir" && as_dir=.
19234 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19235done
19236IFS=$as_save_IFS
19237
19238 ;;
19239esac
19240# We did not find ourselves, most probably we were run as `sh COMMAND'
19241# in which case we are not to be found in the path.
19242if test "x$as_myself" = x; then
19243 as_myself=$0
19244fi
19245if test ! -f "$as_myself"; then
19246 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19247 { (exit 1); exit 1; }
19248fi
19249
19250# Work around bugs in pre-3.0 UWIN ksh.
19251for as_var in ENV MAIL MAILPATH
19252do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19253done
19254PS1='$ '
19255PS2='> '
19256PS4='+ '
19257
19258# NLS nuisances.
19259for as_var in \
19260 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19261 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19262 LC_TELEPHONE LC_TIME
19263do
19264 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19265 eval $as_var=C; export $as_var
19266 else
19267 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19268 fi
19269done
19270
19271# Required to use basename.
19272if expr a : '\(a\)' >/dev/null 2>&1 &&
19273 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19274 as_expr=expr
19275else
19276 as_expr=false
19277fi
19278
19279if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19280 as_basename=basename
19281else
19282 as_basename=false
19283fi
19284
19285
19286# Name of the executable.
19287as_me=`$as_basename -- "$0" ||
19288$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19289 X"$0" : 'X\(//\)$' \| \
19290 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19291echo X/"$0" |
19292 sed '/^.*\/\([^/][^/]*\)\/*$/{
19293 s//\1/
19294 q
19295 }
19296 /^X\/\(\/\/\)$/{
19297 s//\1/
19298 q
19299 }
19300 /^X\/\(\/\).*/{
19301 s//\1/
19302 q
19303 }
19304 s/.*/./; q'`
19305
19306# CDPATH.
19307$as_unset CDPATH
19308
19309
19310
19311 as_lineno_1=$LINENO
19312 as_lineno_2=$LINENO
19313 test "x$as_lineno_1" != "x$as_lineno_2" &&
19314 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19315
19316 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19317 # uniformly replaced by the line number. The first 'sed' inserts a
19318 # line-number line after each line using $LINENO; the second 'sed'
19319 # does the real work. The second script uses 'N' to pair each
19320 # line-number line with the line containing $LINENO, and appends
19321 # trailing '-' during substitution so that $LINENO is not a special
19322 # case at line end.
19323 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19324 # scripts with optimization help from Paolo Bonzini. Blame Lee
19325 # E. McMahon (1931-1989) for sed's syntax. :-)
19326 sed -n '
19327 p
19328 /[$]LINENO/=
19329 ' <$as_myself |
19330 sed '
19331 s/[$]LINENO.*/&-/
19332 t lineno
19333 b
19334 :lineno
19335 N
19336 :loop
19337 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19338 t loop
19339 s/-\n.*//
19340 ' >$as_me.lineno &&
19341 chmod +x "$as_me.lineno" ||
19342 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19343 { (exit 1); exit 1; }; }
19344
19345 # Don't try to exec as it changes $[0], causing all sort of problems
19346 # (the dirname of $[0] is not the place where we might find the
19347 # original and so on. Autoconf is especially sensitive to this).
19348 . "./$as_me.lineno"
19349 # Exit status is that of the last command.
19350 exit
19351}
19352
19353
19354if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19355 as_dirname=dirname
19356else
19357 as_dirname=false
19358fi
19359
19360ECHO_C= ECHO_N= ECHO_T=
19361case `echo -n x` in
19362-n*)
19363 case `echo 'x\c'` in
19364 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19365 *) ECHO_C='\c';;
19366 esac;;
19367*)
19368 ECHO_N='-n';;
19369esac
19370
19371if expr a : '\(a\)' >/dev/null 2>&1 &&
19372 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19373 as_expr=expr
19374else
19375 as_expr=false
19376fi
19377
19378rm -f conf$$ conf$$.exe conf$$.file
19379if test -d conf$$.dir; then
19380 rm -f conf$$.dir/conf$$.file
19381else
19382 rm -f conf$$.dir
19383 mkdir conf$$.dir
19384fi
19385echo >conf$$.file
19386if ln -s conf$$.file conf$$ 2>/dev/null; then
19387 as_ln_s='ln -s'
19388 # ... but there are two gotchas:
19389 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19390 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19391 # In both cases, we have to default to `cp -p'.
19392 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19393 as_ln_s='cp -p'
19394elif ln conf$$.file conf$$ 2>/dev/null; then
19395 as_ln_s=ln
19396else
19397 as_ln_s='cp -p'
19398fi
19399rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19400rmdir conf$$.dir 2>/dev/null
19401
19402if mkdir -p . 2>/dev/null; then
19403 as_mkdir_p=:
19404else
19405 test -d ./-p && rmdir ./-p
19406 as_mkdir_p=false
19407fi
19408
19409if test -x / >/dev/null 2>&1; then
19410 as_test_x='test -x'
19411else
19412 if ls -dL / >/dev/null 2>&1; then
19413 as_ls_L_option=L
19414 else
19415 as_ls_L_option=
19416 fi
19417 as_test_x='
19418 eval sh -c '\''
19419 if test -d "$1"; then
19420 test -d "$1/.";
19421 else
19422 case $1 in
19423 -*)set "./$1";;
19424 esac;
19425 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
19426 ???[sx]*):;;*)false;;esac;fi
19427 '\'' sh
19428 '
19429fi
19430as_executable_p=$as_test_x
19431
19432# Sed expression to map a string onto a valid CPP name.
19433as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19434
19435# Sed expression to map a string onto a valid variable name.
19436as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19437
19438
19439exec 6>&1
19440
19441# Save the log message, to keep $[0] and so on meaningful, and to
19442# report actual input values of CONFIG_FILES etc. instead of their
19443# values after options handling.
19444ac_log="
19445This file was extended by llvm $as_me 3.0, which was
19446generated by GNU Autoconf 2.61. Invocation command line was
19447
19448 CONFIG_FILES = $CONFIG_FILES
19449 CONFIG_HEADERS = $CONFIG_HEADERS
19450 CONFIG_LINKS = $CONFIG_LINKS
19451 CONFIG_COMMANDS = $CONFIG_COMMANDS
19452 $ $0 $@
19453
19454on `(hostname || uname -n) 2>/dev/null | sed 1q`
19455"
19456
19457_ACEOF
19458
19459cat >>$CONFIG_STATUS <<_ACEOF
19460# Files that config.status was made for.
19461config_files="$ac_config_files"
19462config_headers="$ac_config_headers"
19463config_commands="$ac_config_commands"
19464
19465_ACEOF
19466
19467cat >>$CONFIG_STATUS <<\_ACEOF
19468ac_cs_usage="\
19469\`$as_me' instantiates files from templates according to the
19470current configuration.
19471
19472Usage: $0 [OPTIONS] [FILE]...
19473
19474 -h, --help print this help, then exit
19475 -V, --version print version number and configuration settings, then exit
19476 -q, --quiet do not print progress messages
19477 -d, --debug don't remove temporary files
19478 --recheck update $as_me by reconfiguring in the same conditions
19479 --file=FILE[:TEMPLATE]
19480 instantiate the configuration file FILE
19481 --header=FILE[:TEMPLATE]
19482 instantiate the configuration header FILE
19483
19484Configuration files:
19485$config_files
19486
19487Configuration headers:
19488$config_headers
19489
19490Configuration commands:
19491$config_commands
19492
19493Report bugs to <bug-autoconf@gnu.org>."
19494
19495_ACEOF
19496cat >>$CONFIG_STATUS <<_ACEOF
19497ac_cs_version="\\
19498llvm config.status 3.0
19499configured by $0, generated by GNU Autoconf 2.61,
19500 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19501
19502Copyright (C) 2006 Free Software Foundation, Inc.
19503This config.status script is free software; the Free Software Foundation
19504gives unlimited permission to copy, distribute and modify it."
19505
19506ac_pwd='$ac_pwd'
19507srcdir='$srcdir'
19508INSTALL='$INSTALL'
19509_ACEOF
19510
19511cat >>$CONFIG_STATUS <<\_ACEOF
19512# If no file are specified by the user, then we need to provide default
19513# value. By we need to know if files were specified by the user.
19514ac_need_defaults=:
19515while test $# != 0
19516do
19517 case $1 in
19518 --*=*)
19519 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19520 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19521 ac_shift=:
19522 ;;
19523 *)
19524 ac_option=$1
19525 ac_optarg=$2
19526 ac_shift=shift
19527 ;;
19528 esac
19529
19530 case $ac_option in
19531 # Handling of the options.
19532 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19533 ac_cs_recheck=: ;;
19534 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19535 echo "$ac_cs_version"; exit ;;
19536 --debug | --debu | --deb | --de | --d | -d )
19537 debug=: ;;
19538 --file | --fil | --fi | --f )
19539 $ac_shift
19540 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19541 ac_need_defaults=false;;
19542 --header | --heade | --head | --hea )
19543 $ac_shift
19544 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19545 ac_need_defaults=false;;
19546 --he | --h)
19547 # Conflict between --help and --header
19548 { echo "$as_me: error: ambiguous option: $1
19549Try \`$0 --help' for more information." >&2
19550 { (exit 1); exit 1; }; };;
19551 --help | --hel | -h )
19552 echo "$ac_cs_usage"; exit ;;
19553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19554 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19555 ac_cs_silent=: ;;
19556
19557 # This is an error.
19558 -*) { echo "$as_me: error: unrecognized option: $1
19559Try \`$0 --help' for more information." >&2
19560 { (exit 1); exit 1; }; } ;;
19561
19562 *) ac_config_targets="$ac_config_targets $1"
19563 ac_need_defaults=false ;;
19564
19565 esac
19566 shift
19567done
19568
19569ac_configure_extra_args=
19570
19571if $ac_cs_silent; then
19572 exec 6>/dev/null
19573 ac_configure_extra_args="$ac_configure_extra_args --silent"
19574fi
19575
19576_ACEOF
19577cat >>$CONFIG_STATUS <<_ACEOF
19578if \$ac_cs_recheck; then
19579 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19580 CONFIG_SHELL=$SHELL
19581 export CONFIG_SHELL
19582 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19583fi
19584
19585_ACEOF
19586cat >>$CONFIG_STATUS <<\_ACEOF
19587exec 5>>config.log
19588{
19589 echo
19590 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19591## Running $as_me. ##
19592_ASBOX
19593 echo "$ac_log"
19594} >&5
19595
19596_ACEOF
19597cat >>$CONFIG_STATUS <<_ACEOF
19598#
19599# INIT-COMMANDS
19600#
19601llvm_src="${srcdir}"
19602
19603_ACEOF
19604
19605cat >>$CONFIG_STATUS <<\_ACEOF
19606
19607# Handling of arguments.
19608for ac_config_target in $ac_config_targets
19609do
19610 case $ac_config_target in
19611 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
19612 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
19613 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
19614 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
19615 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
19616 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
19617 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
19618 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
19619 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
19620 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
19621 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
19622 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
19623 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
19624 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
19625 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
19626 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
19627 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
19628 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
19629 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
19630 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
19631 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
19632 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
19633 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
19634 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
19635 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
19636 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
19637 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
19638
19639 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19640echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19641 { (exit 1); exit 1; }; };;
19642 esac
19643done
19644
19645
19646# If the user did not use the arguments to specify the items to instantiate,
19647# then the envvar interface is used. Set only those that are not.
19648# We use the long form for the default assignment because of an extremely
19649# bizarre bug on SunOS 4.1.3.
19650if $ac_need_defaults; then
19651 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19652 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19653 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19654fi
19655
19656# Have a temporary directory for convenience. Make it in the build tree
19657# simply because there is no reason against having it here, and in addition,
19658# creating and moving files from /tmp can sometimes cause problems.
19659# Hook for its removal unless debugging.
19660# Note that there is a small window in which the directory will not be cleaned:
19661# after its creation but before its name has been assigned to `$tmp'.
19662$debug ||
19663{
19664 tmp=
19665 trap 'exit_status=$?
19666 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19667' 0
19668 trap '{ (exit 1); exit 1; }' 1 2 13 15
19669}
19670# Create a (secure) tmp directory for tmp files.
19671
19672{
19673 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19674 test -n "$tmp" && test -d "$tmp"
19675} ||
19676{
19677 tmp=./conf$$-$RANDOM
19678 (umask 077 && mkdir "$tmp")
19679} ||
19680{
19681 echo "$me: cannot create a temporary directory in ." >&2
19682 { (exit 1); exit 1; }
19683}
19684
19685#
19686# Set up the sed scripts for CONFIG_FILES section.
19687#
19688
19689# No need to generate the scripts if there are no CONFIG_FILES.
19690# This happens for instance when ./config.status config.h
19691if test -n "$CONFIG_FILES"; then
19692
19693_ACEOF
19694
19695
19696
19697ac_delim='%!_!# '
19698for ac_last_try in false false false false false :; do
19699 cat >conf$$subs.sed <<_ACEOF
19700SHELL!$SHELL$ac_delim
19701PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19702PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19703PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19704PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19705PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19706PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19707exec_prefix!$exec_prefix$ac_delim
19708prefix!$prefix$ac_delim
19709program_transform_name!$program_transform_name$ac_delim
19710bindir!$bindir$ac_delim
19711sbindir!$sbindir$ac_delim
19712libexecdir!$libexecdir$ac_delim
19713datarootdir!$datarootdir$ac_delim
19714datadir!$datadir$ac_delim
19715sysconfdir!$sysconfdir$ac_delim
19716sharedstatedir!$sharedstatedir$ac_delim
19717localstatedir!$localstatedir$ac_delim
19718includedir!$includedir$ac_delim
19719oldincludedir!$oldincludedir$ac_delim
19720docdir!$docdir$ac_delim
19721infodir!$infodir$ac_delim
19722htmldir!$htmldir$ac_delim
19723dvidir!$dvidir$ac_delim
19724pdfdir!$pdfdir$ac_delim
19725psdir!$psdir$ac_delim
19726libdir!$libdir$ac_delim
19727localedir!$localedir$ac_delim
19728mandir!$mandir$ac_delim
19729DEFS!$DEFS$ac_delim
19730ECHO_C!$ECHO_C$ac_delim
19731ECHO_N!$ECHO_N$ac_delim
19732ECHO_T!$ECHO_T$ac_delim
19733LIBS!$LIBS$ac_delim
19734build_alias!$build_alias$ac_delim
19735host_alias!$host_alias$ac_delim
19736target_alias!$target_alias$ac_delim
19737LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
19738CC!$CC$ac_delim
19739CFLAGS!$CFLAGS$ac_delim
19740LDFLAGS!$LDFLAGS$ac_delim
19741CPPFLAGS!$CPPFLAGS$ac_delim
19742ac_ct_CC!$ac_ct_CC$ac_delim
19743EXEEXT!$EXEEXT$ac_delim
19744OBJEXT!$OBJEXT$ac_delim
19745CXX!$CXX$ac_delim
19746CXXFLAGS!$CXXFLAGS$ac_delim
19747ac_ct_CXX!$ac_ct_CXX$ac_delim
19748CPP!$CPP$ac_delim
19749subdirs!$subdirs$ac_delim
19750ENABLE_POLLY!$ENABLE_POLLY$ac_delim
19751LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
19752build!$build$ac_delim
19753build_cpu!$build_cpu$ac_delim
19754build_vendor!$build_vendor$ac_delim
19755build_os!$build_os$ac_delim
19756host!$host$ac_delim
19757host_cpu!$host_cpu$ac_delim
19758host_vendor!$host_vendor$ac_delim
19759host_os!$host_os$ac_delim
19760target!$target$ac_delim
19761target_cpu!$target_cpu$ac_delim
19762target_vendor!$target_vendor$ac_delim
19763target_os!$target_os$ac_delim
19764OS!$OS$ac_delim
19765HOST_OS!$HOST_OS$ac_delim
19766TARGET_OS!$TARGET_OS$ac_delim
19767LINKALL!$LINKALL$ac_delim
19768NOLINKALL!$NOLINKALL$ac_delim
19769LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
19770LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
19771ARCH!$ARCH$ac_delim
19772ENDIAN!$ENDIAN$ac_delim
19773GREP!$GREP$ac_delim
19774EGREP!$EGREP$ac_delim
19775LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
19776BUILD_CC!$BUILD_CC$ac_delim
19777BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
19778BUILD_CXX!$BUILD_CXX$ac_delim
19779CVSBUILD!$CVSBUILD$ac_delim
19780ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
19781ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
19782DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
19783ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
19784EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
19785DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
19786DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19787JIT!$JIT$ac_delim
19788TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19789ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19790ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19791ENABLE_THREADS!$ENABLE_THREADS$ac_delim
19792ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19793ENABLE_PIC!$ENABLE_PIC$ac_delim
19794ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19795ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19796ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19797_ACEOF
19798
19799 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19800 break
19801 elif $ac_last_try; then
19802 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19803echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19804 { (exit 1); exit 1; }; }
19805 else
19806 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19807 fi
19808done
19809
19810ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19811if test -n "$ac_eof"; then
19812 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19813 ac_eof=`expr $ac_eof + 1`
19814fi
19815
19816cat >>$CONFIG_STATUS <<_ACEOF
19817cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19818/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19819_ACEOF
19820sed '
19821s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19822s/^/s,@/; s/!/@,|#_!!_#|/
19823:n
19824t n
19825s/'"$ac_delim"'$/,g/; t
19826s/$/\\/; p
19827N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19828' >>$CONFIG_STATUS <conf$$subs.sed
19829rm -f conf$$subs.sed
19830cat >>$CONFIG_STATUS <<_ACEOF
19831CEOF$ac_eof
19832_ACEOF
19833
19834
19835ac_delim='%!_!# '
19836for ac_last_try in false false false false false :; do
19837 cat >conf$$subs.sed <<_ACEOF
19838TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19839LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19840LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19841LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19842LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19843ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
19844OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19845EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19846EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19847BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19848NM!$NM$ac_delim
19849ifGNUmake!$ifGNUmake$ac_delim
19850LN_S!$LN_S$ac_delim
19851CMP!$CMP$ac_delim
19852CP!$CP$ac_delim
19853DATE!$DATE$ac_delim
19854FIND!$FIND$ac_delim
19855MKDIR!$MKDIR$ac_delim
19856MV!$MV$ac_delim
19857RANLIB!$RANLIB$ac_delim
19858AR!$AR$ac_delim
19859RM!$RM$ac_delim
19860SED!$SED$ac_delim
19861TAR!$TAR$ac_delim
19862BINPWD!$BINPWD$ac_delim
19863GRAPHVIZ!$GRAPHVIZ$ac_delim
19864DOT!$DOT$ac_delim
19865FDP!$FDP$ac_delim
19866NEATO!$NEATO$ac_delim
19867TWOPI!$TWOPI$ac_delim
19868CIRCO!$CIRCO$ac_delim
19869GV!$GV$ac_delim
19870DOTTY!$DOTTY$ac_delim
19871XDOT_PY!$XDOT_PY$ac_delim
19872PERL!$PERL$ac_delim
19873HAVE_PERL!$HAVE_PERL$ac_delim
19874INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19875INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19876INSTALL_DATA!$INSTALL_DATA$ac_delim
19877BZIP2!$BZIP2$ac_delim
19878CAT!$CAT$ac_delim
19879DOXYGEN!$DOXYGEN$ac_delim
19880GROFF!$GROFF$ac_delim
19881GZIPBIN!$GZIPBIN$ac_delim
19882POD2HTML!$POD2HTML$ac_delim
19883POD2MAN!$POD2MAN$ac_delim
19884PDFROFF!$PDFROFF$ac_delim
19885RUNTEST!$RUNTEST$ac_delim
19886TCLSH!$TCLSH$ac_delim
19887ZIP!$ZIP$ac_delim
19888OCAMLC!$OCAMLC$ac_delim
19889OCAMLOPT!$OCAMLOPT$ac_delim
19890OCAMLDEP!$OCAMLDEP$ac_delim
19891OCAMLDOC!$OCAMLDOC$ac_delim
19892GAS!$GAS$ac_delim
19893HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19894INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
19895INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
19896CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
19897CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
19898LIBADD_DL!$LIBADD_DL$ac_delim
19899NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19900NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19901USE_UDIS86!$USE_UDIS86$ac_delim
19902USE_OPROFILE!$USE_OPROFILE$ac_delim
19903HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19904HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19905MMAP_FILE!$MMAP_FILE$ac_delim
19906SHLIBEXT!$SHLIBEXT$ac_delim
19907SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
19908LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19909LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19910LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
19911LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19912LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19913LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19914LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19915LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19916LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19917LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19918BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19919ALL_BINDINGS!$ALL_BINDINGS$ac_delim
19920OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19921ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19922RPATH!$RPATH$ac_delim
19923RDYNAMIC!$RDYNAMIC$ac_delim
19924LIBOBJS!$LIBOBJS$ac_delim
19925LTLIBOBJS!$LTLIBOBJS$ac_delim
19926_ACEOF
19927
19928 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then
19929 break
19930 elif $ac_last_try; then
19931 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19932echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19933 { (exit 1); exit 1; }; }
19934 else
19935 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19936 fi
19937done
19938
19939ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19940if test -n "$ac_eof"; then
19941 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19942 ac_eof=`expr $ac_eof + 1`
19943fi
19944
19945cat >>$CONFIG_STATUS <<_ACEOF
19946cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19947/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19948_ACEOF
19949sed '
19950s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19951s/^/s,@/; s/!/@,|#_!!_#|/
19952:n
19953t n
19954s/'"$ac_delim"'$/,g/; t
19955s/$/\\/; p
19956N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19957' >>$CONFIG_STATUS <conf$$subs.sed
19958rm -f conf$$subs.sed
19959cat >>$CONFIG_STATUS <<_ACEOF
19960:end
19961s/|#_!!_#|//g
19962CEOF$ac_eof
19963_ACEOF
19964
19965
19966# VPATH may cause trouble with some makes, so we remove $(srcdir),
19967# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19968# trailing colons and then remove the whole line if VPATH becomes empty
19969# (actually we leave an empty line to preserve line numbers).
19970if test "x$srcdir" = x.; then
19971 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19972s/:*\$(srcdir):*/:/
19973s/:*\${srcdir}:*/:/
19974s/:*@srcdir@:*/:/
19975s/^\([^=]*=[ ]*\):*/\1/
19976s/:*$//
19977s/^[^=]*=[ ]*$//
19978}'
19979fi
19980
19981cat >>$CONFIG_STATUS <<\_ACEOF
19982fi # test -n "$CONFIG_FILES"
19983
19984
19985for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
19986do
19987 case $ac_tag in
19988 :[FHLC]) ac_mode=$ac_tag; continue;;
19989 esac
19990 case $ac_mode$ac_tag in
19991 :[FHL]*:*);;
19992 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19993echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19994 { (exit 1); exit 1; }; };;
19995 :[FH]-) ac_tag=-:-;;
19996 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19997 esac
19998 ac_save_IFS=$IFS
19999 IFS=:
20000 set x $ac_tag
20001 IFS=$ac_save_IFS
20002 shift
20003 ac_file=$1
20004 shift
20005
20006 case $ac_mode in
20007 :L) ac_source=$1;;
20008 :[FH])
20009 ac_file_inputs=
20010 for ac_f
20011 do
20012 case $ac_f in
20013 -) ac_f="$tmp/stdin";;
20014 *) # Look for the file first in the build tree, then in the source tree
20015 # (if the path is not absolute). The absolute path cannot be DOS-style,
20016 # because $ac_f cannot contain `:'.
20017 test -f "$ac_f" ||
20018 case $ac_f in
20019 [\\/$]*) false;;
20020 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20021 esac ||
20022 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20023echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20024 { (exit 1); exit 1; }; };;
20025 esac
20026 ac_file_inputs="$ac_file_inputs $ac_f"
20027 done
20028
20029 # Let's still pretend it is `configure' which instantiates (i.e., don't
20030 # use $as_me), people would be surprised to read:
20031 # /* config.h. Generated by config.status. */
20032 configure_input="Generated from "`IFS=:
20033 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20034 if test x"$ac_file" != x-; then
20035 configure_input="$ac_file. $configure_input"
20036 { echo "$as_me:$LINENO: creating $ac_file" >&5
20037echo "$as_me: creating $ac_file" >&6;}
20038 fi
20039
20040 case $ac_tag in
20041 *:-:* | *:-) cat >"$tmp/stdin";;
20042 esac
20043 ;;
20044 esac
20045
20046 ac_dir=`$as_dirname -- "$ac_file" ||
20047$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20048 X"$ac_file" : 'X\(//\)[^/]' \| \
20049 X"$ac_file" : 'X\(//\)$' \| \
20050 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20051echo X"$ac_file" |
20052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20053 s//\1/
20054 q
20055 }
20056 /^X\(\/\/\)[^/].*/{
20057 s//\1/
20058 q
20059 }
20060 /^X\(\/\/\)$/{
20061 s//\1/
20062 q
20063 }
20064 /^X\(\/\).*/{
20065 s//\1/
20066 q
20067 }
20068 s/.*/./; q'`
20069 { as_dir="$ac_dir"
20070 case $as_dir in #(
20071 -*) as_dir=./$as_dir;;
20072 esac
20073 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20074 as_dirs=
20075 while :; do
20076 case $as_dir in #(
20077 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20078 *) as_qdir=$as_dir;;
20079 esac
20080 as_dirs="'$as_qdir' $as_dirs"
20081 as_dir=`$as_dirname -- "$as_dir" ||
20082$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20083 X"$as_dir" : 'X\(//\)[^/]' \| \
20084 X"$as_dir" : 'X\(//\)$' \| \
20085 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20086echo X"$as_dir" |
20087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20088 s//\1/
20089 q
20090 }
20091 /^X\(\/\/\)[^/].*/{
20092 s//\1/
20093 q
20094 }
20095 /^X\(\/\/\)$/{
20096 s//\1/
20097 q
20098 }
20099 /^X\(\/\).*/{
20100 s//\1/
20101 q
20102 }
20103 s/.*/./; q'`
20104 test -d "$as_dir" && break
20105 done
20106 test -z "$as_dirs" || eval "mkdir $as_dirs"
20107 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20108echo "$as_me: error: cannot create directory $as_dir" >&2;}
20109 { (exit 1); exit 1; }; }; }
20110 ac_builddir=.
20111
20112case "$ac_dir" in
20113.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20114*)
20115 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20116 # A ".." for each directory in $ac_dir_suffix.
20117 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20118 case $ac_top_builddir_sub in
20119 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20120 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20121 esac ;;
20122esac
20123ac_abs_top_builddir=$ac_pwd
20124ac_abs_builddir=$ac_pwd$ac_dir_suffix
20125# for backward compatibility:
20126ac_top_builddir=$ac_top_build_prefix
20127
20128case $srcdir in
20129 .) # We are building in place.
20130 ac_srcdir=.
20131 ac_top_srcdir=$ac_top_builddir_sub
20132 ac_abs_top_srcdir=$ac_pwd ;;
20133 [\\/]* | ?:[\\/]* ) # Absolute name.
20134 ac_srcdir=$srcdir$ac_dir_suffix;
20135 ac_top_srcdir=$srcdir
20136 ac_abs_top_srcdir=$srcdir ;;
20137 *) # Relative name.
20138 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20139 ac_top_srcdir=$ac_top_build_prefix$srcdir
20140 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20141esac
20142ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20143
20144
20145 case $ac_mode in
20146 :F)
20147 #
20148 # CONFIG_FILE
20149 #
20150
20151 case $INSTALL in
20152 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20153 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20154 esac
20155_ACEOF
20156
20157cat >>$CONFIG_STATUS <<\_ACEOF
20158# If the template does not know about datarootdir, expand it.
20159# FIXME: This hack should be removed a few years after 2.60.
20160ac_datarootdir_hack=; ac_datarootdir_seen=
20161
20162case `sed -n '/datarootdir/ {
20163 p
20164 q
20165}
20166/@datadir@/p
20167/@docdir@/p
20168/@infodir@/p
20169/@localedir@/p
20170/@mandir@/p
20171' $ac_file_inputs` in
20172*datarootdir*) ac_datarootdir_seen=yes;;
20173*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20174 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20175echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20176_ACEOF
20177cat >>$CONFIG_STATUS <<_ACEOF
20178 ac_datarootdir_hack='
20179 s&@datadir@&$datadir&g
20180 s&@docdir@&$docdir&g
20181 s&@infodir@&$infodir&g
20182 s&@localedir@&$localedir&g
20183 s&@mandir@&$mandir&g
20184 s&\\\${datarootdir}&$datarootdir&g' ;;
20185esac
20186_ACEOF
20187
20188# Neutralize VPATH when `$srcdir' = `.'.
20189# Shell code in configure.ac might set extrasub.
20190# FIXME: do we really want to maintain this feature?
20191cat >>$CONFIG_STATUS <<_ACEOF
20192 sed "$ac_vpsub
20193$extrasub
20194_ACEOF
20195cat >>$CONFIG_STATUS <<\_ACEOF
20196:t
20197/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20198s&@configure_input@&$configure_input&;t t
20199s&@top_builddir@&$ac_top_builddir_sub&;t t
20200s&@srcdir@&$ac_srcdir&;t t
20201s&@abs_srcdir@&$ac_abs_srcdir&;t t
20202s&@top_srcdir@&$ac_top_srcdir&;t t
20203s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20204s&@builddir@&$ac_builddir&;t t
20205s&@abs_builddir@&$ac_abs_builddir&;t t
20206s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20207s&@INSTALL@&$ac_INSTALL&;t t
20208$ac_datarootdir_hack
20209" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20210
20211test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20212 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20213 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20214 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20215which seems to be undefined. Please make sure it is defined." >&5
20216echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20217which seems to be undefined. Please make sure it is defined." >&2;}
20218
20219 rm -f "$tmp/stdin"
20220 case $ac_file in
20221 -) cat "$tmp/out"; rm -f "$tmp/out";;
20222 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20223 esac
20224 ;;
20225 :H)
20226 #
20227 # CONFIG_HEADER
20228 #
20229_ACEOF
20230
20231# Transform confdefs.h into a sed script `conftest.defines', that
20232# substitutes the proper values into config.h.in to produce config.h.
20233rm -f conftest.defines conftest.tail
20234# First, append a space to every undef/define line, to ease matching.
20235echo 's/$/ /' >conftest.defines
20236# Then, protect against being on the right side of a sed subst, or in
20237# an unquoted here document, in config.status. If some macros were
20238# called several times there might be several #defines for the same
20239# symbol, which is useless. But do not sort them, since the last
20240# AC_DEFINE must be honored.
20241ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20242# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20243# NAME is the cpp macro being defined, VALUE is the value it is being given.
20244# PARAMS is the parameter list in the macro definition--in most cases, it's
20245# just an empty string.
20246ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
20247ac_dB='\\)[ (].*,\\1define\\2'
20248ac_dC=' '
20249ac_dD=' ,'
20250
20251uniq confdefs.h |
20252 sed -n '
20253 t rset
20254 :rset
20255 s/^[ ]*#[ ]*define[ ][ ]*//
20256 t ok
20257 d
20258 :ok
20259 s/[\\&,]/\\&/g
20260 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20261 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20262 ' >>conftest.defines
20263
20264# Remove the space that was appended to ease matching.
20265# Then replace #undef with comments. This is necessary, for
20266# example, in the case of _POSIX_SOURCE, which is predefined and required
20267# on some systems where configure will not decide to define it.
20268# (The regexp can be short, since the line contains either #define or #undef.)
20269echo 's/ $//
20270s,^[ #]*u.*,/* & */,' >>conftest.defines
20271
20272# Break up conftest.defines:
20273ac_max_sed_lines=50
20274
20275# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20276# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20277# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20278# et cetera.
20279ac_in='$ac_file_inputs'
20280ac_out='"$tmp/out1"'
20281ac_nxt='"$tmp/out2"'
20282
20283while :
20284do
20285 # Write a here document:
20286 cat >>$CONFIG_STATUS <<_ACEOF
20287 # First, check the format of the line:
20288 cat >"\$tmp/defines.sed" <<\\CEOF
20289/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*/b def
20290/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
20291b
20292:def
20293_ACEOF
20294 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20295 echo 'CEOF
20296 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20297 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20298 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20299 grep . conftest.tail >/dev/null || break
20300 rm -f conftest.defines
20301 mv conftest.tail conftest.defines
20302done
20303rm -f conftest.defines conftest.tail
20304
20305echo "ac_result=$ac_in" >>$CONFIG_STATUS
20306cat >>$CONFIG_STATUS <<\_ACEOF
20307 if test x"$ac_file" != x-; then
20308 echo "/* $configure_input */" >"$tmp/config.h"
20309 cat "$ac_result" >>"$tmp/config.h"
20310 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20311 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20312echo "$as_me: $ac_file is unchanged" >&6;}
20313 else
20314 rm -f $ac_file
20315 mv "$tmp/config.h" $ac_file
20316 fi
20317 else
20318 echo "/* $configure_input */"
20319 cat "$ac_result"
20320 fi
20321 rm -f "$tmp/out12"
20322 ;;
20323
20324 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20325echo "$as_me: executing $ac_file commands" >&6;}
20326 ;;
20327 esac
20328
20329
20330 case $ac_file$ac_mode in
20331 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
20332 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
20333 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
20334 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
20335 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
20336 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
20337 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
20338 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
20339 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
20340 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
20341 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
20342 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
20343 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
20344 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
20345 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
20346 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
20347 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
20348 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
20349 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
20350 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
20351 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
20352 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
20353 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
20354 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
20355 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
20356 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
20357
20358 esac
20359done # for ac_tag
20360
20361
20362{ (exit 0); exit 0; }
20363_ACEOF
20364chmod +x $CONFIG_STATUS
20365ac_clean_files=$ac_clean_files_save
20366
20367
20368# configure is writing to config.log, and then calls config.status.
20369# config.status does its own redirection, appending to config.log.
20370# Unfortunately, on DOS this fails, as config.log is still kept open
20371# by configure, so config.status won't be able to write to it; its
20372# output is simply discarded. So we exec the FD to /dev/null,
20373# effectively closing config.log, so it can be properly (re)opened and
20374# appended to by config.status. When coming back to configure, we
20375# need to make the FD available again.
20376if test "$no_create" != yes; then
20377 ac_cs_success=:
20378 ac_config_status_args=
20379 test "$silent" = yes &&
20380 ac_config_status_args="$ac_config_status_args --quiet"
20381 exec 5>/dev/null
20382 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20383 exec 5>>config.log
20384 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20385 # would make configure fail if this is the last instruction.
20386 $ac_cs_success || { (exit 1); exit 1; }
20387fi
20388
20389#
20390# CONFIG_SUBDIRS section.
20391#
20392if test "$no_recursion" != yes; then
20393
20394 # Remove --cache-file and --srcdir arguments so they do not pile up.
20395 ac_sub_configure_args=
20396 ac_prev=
20397 eval "set x $ac_configure_args"
20398 shift
20399 for ac_arg
20400 do
20401 if test -n "$ac_prev"; then
20402 ac_prev=
20403 continue
20404 fi
20405 case $ac_arg in
20406 -cache-file | --cache-file | --cache-fil | --cache-fi \
20407 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20408 ac_prev=cache_file ;;
20409 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20410 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20411 | --c=*)
20412 ;;
20413 --config-cache | -C)
20414 ;;
20415 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20416 ac_prev=srcdir ;;
20417 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20418 ;;
20419 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20420 ac_prev=prefix ;;
20421 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20422 ;;
20423 *)
20424 case $ac_arg in
20425 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20426 esac
20427 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20428 esac
20429 done
20430
20431 # Always prepend --prefix to ensure using the same prefix
20432 # in subdir configurations.
20433 ac_arg="--prefix=$prefix"
20434 case $ac_arg in
20435 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20436 esac
20437 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
20438
20439 # Pass --silent
20440 if test "$silent" = yes; then
20441 ac_sub_configure_args="--silent $ac_sub_configure_args"
20442 fi
20443
20444 ac_popdir=`pwd`
20445 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20446
20447 # Do not complain, so a configure script can configure whichever
20448 # parts of a large source tree are present.
20449 test -d "$srcdir/$ac_dir" || continue
20450
20451 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20452 echo "$as_me:$LINENO: $ac_msg" >&5
20453 echo "$ac_msg" >&6
20454 { as_dir="$ac_dir"
20455 case $as_dir in #(
20456 -*) as_dir=./$as_dir;;
20457 esac
20458 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20459 as_dirs=
20460 while :; do
20461 case $as_dir in #(
20462 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20463 *) as_qdir=$as_dir;;
20464 esac
20465 as_dirs="'$as_qdir' $as_dirs"
20466 as_dir=`$as_dirname -- "$as_dir" ||
20467$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20468 X"$as_dir" : 'X\(//\)[^/]' \| \
20469 X"$as_dir" : 'X\(//\)$' \| \
20470 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20471echo X"$as_dir" |
20472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20473 s//\1/
20474 q
20475 }
20476 /^X\(\/\/\)[^/].*/{
20477 s//\1/
20478 q
20479 }
20480 /^X\(\/\/\)$/{
20481 s//\1/
20482 q
20483 }
20484 /^X\(\/\).*/{
20485 s//\1/
20486 q
20487 }
20488 s/.*/./; q'`
20489 test -d "$as_dir" && break
20490 done
20491 test -z "$as_dirs" || eval "mkdir $as_dirs"
20492 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20493echo "$as_me: error: cannot create directory $as_dir" >&2;}
20494 { (exit 1); exit 1; }; }; }
20495 ac_builddir=.
20496
20497case "$ac_dir" in
20498.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20499*)
20500 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20501 # A ".." for each directory in $ac_dir_suffix.
20502 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20503 case $ac_top_builddir_sub in
20504 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20505 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20506 esac ;;
20507esac
20508ac_abs_top_builddir=$ac_pwd
20509ac_abs_builddir=$ac_pwd$ac_dir_suffix
20510# for backward compatibility:
20511ac_top_builddir=$ac_top_build_prefix
20512
20513case $srcdir in
20514 .) # We are building in place.
20515 ac_srcdir=.
20516 ac_top_srcdir=$ac_top_builddir_sub
20517 ac_abs_top_srcdir=$ac_pwd ;;
20518 [\\/]* | ?:[\\/]* ) # Absolute name.
20519 ac_srcdir=$srcdir$ac_dir_suffix;
20520 ac_top_srcdir=$srcdir
20521 ac_abs_top_srcdir=$srcdir ;;
20522 *) # Relative name.
20523 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20524 ac_top_srcdir=$ac_top_build_prefix$srcdir
20525 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20526esac
20527ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20528
20529
20530 cd "$ac_dir"
20531
20532 # Check for guested configure; otherwise get Cygnus style configure.
20533 if test -f "$ac_srcdir/configure.gnu"; then
20534 ac_sub_configure=$ac_srcdir/configure.gnu
20535 elif test -f "$ac_srcdir/configure"; then
20536 ac_sub_configure=$ac_srcdir/configure
20537 elif test -f "$ac_srcdir/configure.in"; then
20538 # This should be Cygnus configure.
20539 ac_sub_configure=$ac_aux_dir/configure
20540 else
20541 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20542echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20543 ac_sub_configure=
20544 fi
20545
20546 # The recursion is here.
20547 if test -n "$ac_sub_configure"; then
20548 # Make the cache file name correct relative to the subdirectory.
20549 case $cache_file in
20550 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20551 *) # Relative name.
20552 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20553 esac
20554
20555 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20556echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20557 # The eval makes quoting arguments work.
20558 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20559 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20560 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20561echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20562 { (exit 1); exit 1; }; }
20563 fi
20564
20565 cd "$ac_popdir"
20566 done
20567fi
20568