blob: a362e63b2611af9cf5997de92c8a55daa4826768 [file] [log] [blame]
John Criswell451f67f2003-10-16 01:45:35 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00003# Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx].
John Criswell451f67f2003-10-16 01:45:35 +00004#
5# Report bugs to <bugs@yourdomain>.
6#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
Dan Gohman324f6082009-03-25 00:52:11 +000015# Be Bourne compatible
John Criswell451f67f2003-10-16 01:45:35 +000016if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022 setopt NO_GLOB_SUBST
23else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohman324f6082009-03-25 00:52:11 +000025fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000026BIN_SH=xpg4; export BIN_SH # for Tru64
Dan Gohman324f6082009-03-25 00:52:11 +000027DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmand02a2812009-03-24 23:47:11 +000028
John Criswell451f67f2003-10-16 01:45:35 +000029
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000030# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +000031# Avoid depending upon Character Ranges.
32as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35as_cr_digits='0123456789'
36as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38# The user is always right.
39if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
47 fi
48 rm -f conf$$.sh
49fi
50
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000051# Support unset when possible.
52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54else
55 as_unset=false
56fi
John Criswell451f67f2003-10-16 01:45:35 +000057
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000058
59# IFS
60# We need space, tab and new line, in precisely that order. Quoting is
61# there to prevent editors from complaining about space-tab.
62# (If _AS_PATH_WALK were called with IFS unset, it would disable word
63# splitting by setting IFS to empty value.)
64as_nl='
65'
66IFS=" "" $as_nl"
67
68# Find who we are. Look in the path if we contain no directory separator.
69case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +000072for as_dir in $PATH
73do
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000078IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +000079
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000080 ;;
81esac
82# We did not find ourselves, most probably we were run as `sh COMMAND'
83# in which case we are not to be found in the path.
84if test "x$as_myself" = x; then
85 as_myself=$0
86fi
87if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
90fi
91
92# Work around bugs in pre-3.0 UWIN ksh.
93for as_var in ENV MAIL MAILPATH
94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95done
96PS1='$ '
97PS2='> '
98PS4='+ '
99
100# NLS nuisances.
101for as_var in \
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 LC_TELEPHONE LC_TIME
105do
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell451f67f2003-10-16 01:45:35 +0000110 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000111done
112
113# Required to use basename.
114if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117else
118 as_expr=false
119fi
120
121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123else
124 as_basename=false
125fi
126
127
128# Name of the executable.
129as_me=`$as_basename -- "$0" ||
130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133echo X/"$0" |
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
136 q
137 }
138 /^X\/\(\/\/\)$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\).*/{
143 s//\1/
144 q
145 }
146 s/.*/./; q'`
147
148# CDPATH.
149$as_unset CDPATH
150
151
152if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155else
156 as_have_required=no
157fi
158
159 if test $as_have_required = yes && (eval ":
160(as_func_return () {
161 (exit \$1)
162}
163as_func_success () {
164 as_func_return 0
165}
166as_func_failure () {
167 as_func_return 1
168}
169as_func_ret_success () {
170 return 0
171}
172as_func_ret_failure () {
173 return 1
174}
175
176exitcode=0
177if as_func_success; then
178 :
179else
180 exitcode=1
181 echo as_func_success failed.
182fi
183
184if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
187fi
188
189if as_func_ret_success; then
190 :
191else
192 exitcode=1
193 echo as_func_ret_success failed.
194fi
195
196if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
199fi
200
201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202 :
203else
204 exitcode=1
205 echo positional parameters were not saved.
206fi
207
208test \$exitcode = 0) || { (exit 1); exit 1; }
209
210(
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215") 2> /dev/null; then
216 :
217else
218 as_candidate_shells=
John Criswell451f67f2003-10-16 01:45:35 +0000219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell451f67f2003-10-16 01:45:35 +0000221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000224 case $as_dir in
John Criswell451f67f2003-10-16 01:45:35 +0000225 /*)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230done
231IFS=$as_save_IFS
232
233
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238# Be Bourne compatible
239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248fi
249BIN_SH=xpg4; export BIN_SH # for Tru64
250DUALCASE=1; export DUALCASE # for MKS sh
251
252:
253_ASEOF
254}; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258# Be Bourne compatible
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268fi
269BIN_SH=xpg4; export BIN_SH # for Tru64
270DUALCASE=1; export DUALCASE # for MKS sh
271
272:
273(as_func_return () {
274 (exit $1)
275}
276as_func_success () {
277 as_func_return 0
278}
279as_func_failure () {
280 as_func_return 1
281}
282as_func_ret_success () {
283 return 0
284}
285as_func_ret_failure () {
286 return 1
287}
288
289exitcode=0
290if as_func_success; then
291 :
292else
293 exitcode=1
294 echo as_func_success failed.
295fi
296
297if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
300fi
301
302if as_func_ret_success; then
303 :
304else
305 exitcode=1
306 echo as_func_ret_success failed.
307fi
308
309if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
312fi
313
314if ( set x; as_func_ret_success y && test x = "$1" ); then
315 :
316else
317 exitcode=1
318 echo positional parameters were not saved.
319fi
320
321test $exitcode = 0) || { (exit 1); exit 1; }
322
323(
Dan Gohman324f6082009-03-25 00:52:11 +0000324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
Dan Gohman324f6082009-03-25 00:52:11 +0000326 test "x$as_lineno_1" != "x$as_lineno_2" &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329_ASEOF
330}; then
331 break
332fi
333
334fi
335
336 done
337
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344fi
345
346
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
353fi
354
355
356fi
357
358fi
359
360
361
362(eval "as_func_return () {
363 (exit \$1)
364}
365as_func_success () {
366 as_func_return 0
367}
368as_func_failure () {
369 as_func_return 1
370}
371as_func_ret_success () {
372 return 0
373}
374as_func_ret_failure () {
375 return 1
376}
377
378exitcode=0
379if as_func_success; then
380 :
381else
382 exitcode=1
383 echo as_func_success failed.
384fi
385
386if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
389fi
390
391if as_func_ret_success; then
392 :
393else
394 exitcode=1
395 echo as_func_ret_success failed.
396fi
397
398if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
401fi
402
403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404 :
405else
406 exitcode=1
407 echo positional parameters were not saved.
408fi
409
410test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
415}
416
417
418
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +0000423
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +0000431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +0000438 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
John Criswell451f67f2003-10-16 01:45:35 +0000443 N
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +0000446 t loop
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000447 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +0000448 ' >$as_me.lineno &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000449 chmod +x "$as_me.lineno" ||
John Criswell451f67f2003-10-16 01:45:35 +0000450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +0000457 # Exit status is that of the last command.
458 exit
459}
460
461
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464else
465 as_dirname=false
466fi
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in
470-n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
475*)
476 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +0000477esac
478
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000479if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +0000481 as_expr=expr
482else
483 as_expr=false
484fi
485
486rm -f conf$$ conf$$.exe conf$$.file
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000487if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
492fi
John Criswell451f67f2003-10-16 01:45:35 +0000493echo >conf$$.file
494if ln -s conf$$.file conf$$ 2>/dev/null; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000495 as_ln_s='ln -s'
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +0000501 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +0000502elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504else
505 as_ln_s='cp -p'
506fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +0000509
510if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512else
Reid Spencer9964cd82005-01-01 09:26:55 +0000513 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +0000514 as_mkdir_p=false
515fi
516
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000517# Find out whether ``test -x'' works. Don't use a zero-byte file, as
518# systems may use methods other than mode bits to determine executability.
519cat >conf$$.file <<_ASEOF
520#! /bin/sh
521exit 0
522_ASEOF
523chmod +x conf$$.file
524if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526else
527 as_executable_p=:
528fi
529rm -f conf$$.file
John Criswell451f67f2003-10-16 01:45:35 +0000530
531# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +0000532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +0000533
534# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +0000535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +0000536
537
John Criswell451f67f2003-10-16 01:45:35 +0000538
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000539exec 7<&0 </dev/null 6>&1
John Criswell451f67f2003-10-16 01:45:35 +0000540
541# Name of the host.
542# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543# so uname gets run too.
544ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
John Criswell451f67f2003-10-16 01:45:35 +0000546#
547# Initializations.
548#
549ac_default_prefix=/usr/local
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000550ac_clean_files=
John Criswell451f67f2003-10-16 01:45:35 +0000551ac_config_libobj_dir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000552LIBOBJS=
John Criswell451f67f2003-10-16 01:45:35 +0000553cross_compiling=no
554subdirs=
555MFLAGS=
556MAKEFLAGS=
557SHELL=${CONFIG_SHELL-/bin/sh}
558
John Criswell451f67f2003-10-16 01:45:35 +0000559# Identity of this package.
560PACKAGE_NAME='[SAMPLE]'
561PACKAGE_TARNAME='--sample--'
562PACKAGE_VERSION='[x.xx]'
563PACKAGE_STRING='[SAMPLE] [x.xx]'
564PACKAGE_BUGREPORT='bugs@yourdomain'
565
566ac_unique_file=""Makefile.common.in""
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000567# Factoring default headers for most tests.
568ac_includes_default="\
569#include <stdio.h>
570#if HAVE_SYS_TYPES_H
571# include <sys/types.h>
572#endif
573#if HAVE_SYS_STAT_H
574# include <sys/stat.h>
575#endif
576#if STDC_HEADERS
577# include <stdlib.h>
578# include <stddef.h>
579#else
580# if HAVE_STDLIB_H
581# include <stdlib.h>
582# endif
583#endif
584#if HAVE_STRING_H
585# if !STDC_HEADERS && HAVE_MEMORY_H
586# include <memory.h>
587# endif
588# include <string.h>
589#endif
590#if HAVE_STRINGS_H
591# include <strings.h>
592#endif
593#if HAVE_INTTYPES_H
594# include <inttypes.h>
595#endif
596#if HAVE_STDINT_H
597# include <stdint.h>
598#endif
599#if HAVE_UNISTD_H
600# include <unistd.h>
601#endif"
602
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000603ac_subst_vars='SHELL
604PATH_SEPARATOR
605PACKAGE_NAME
606PACKAGE_TARNAME
607PACKAGE_VERSION
608PACKAGE_STRING
609PACKAGE_BUGREPORT
610exec_prefix
611prefix
612program_transform_name
613bindir
614sbindir
615libexecdir
616datarootdir
617datadir
618sysconfdir
619sharedstatedir
620localstatedir
621includedir
622oldincludedir
623docdir
624infodir
625htmldir
626dvidir
627pdfdir
628psdir
629libdir
630localedir
631mandir
632DEFS
633ECHO_C
634ECHO_N
635ECHO_T
636LIBS
637build_alias
638host_alias
639target_alias
640LLVM_SRC
641LLVM_OBJ
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000642LLVM_VERSION
643CC
644CFLAGS
645LDFLAGS
646CPPFLAGS
647ac_ct_CC
648EXEEXT
649OBJEXT
650CXX
651CXXFLAGS
652ac_ct_CXX
653CPP
654ENABLE_POLLY
655LLVM_HAS_POLLY
656subdirs
657build
658build_cpu
659build_vendor
660build_os
661host
662host_cpu
663host_vendor
664host_os
665target
666target_cpu
667target_vendor
668target_os
669OS
670HOST_OS
671TARGET_OS
672LINKALL
673NOLINKALL
674LLVM_ON_UNIX
675LLVM_ON_WIN32
676ARCH
677ENDIAN
678GREP
679EGREP
680LLVM_CROSS_COMPILING
681BUILD_CC
682BUILD_EXEEXT
683BUILD_CXX
684CVSBUILD
685ENABLE_OPTIMIZED
686ENABLE_PROFILING
687DISABLE_ASSERTIONS
688ENABLE_EXPENSIVE_CHECKS
689EXPENSIVE_CHECKS
690DEBUG_RUNTIME
691DEBUG_SYMBOLS
692JIT
693TARGET_HAS_JIT
694ENABLE_DOCS
695ENABLE_DOXYGEN
696ENABLE_THREADS
697ENABLE_PTHREADS
698ENABLE_PIC
699ENABLE_SHARED
700ENABLE_EMBED_STDCXX
701ENABLE_TIMESTAMPS
702TARGETS_TO_BUILD
703LLVM_ENUM_TARGETS
704LLVM_ENUM_ASM_PRINTERS
705LLVM_ENUM_ASM_PARSERS
706LLVM_ENUM_DISASSEMBLERS
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000707OPTIMIZE_OPTION
708EXTRA_OPTIONS
709EXTRA_LD_OPTIONS
710BINUTILS_INCDIR
711NM
712ifGNUmake
713LN_S
714CMP
715CP
716DATE
717FIND
718MKDIR
719MV
720RANLIB
721AR
722RM
723SED
724TAR
725BINPWD
726GRAPHVIZ
727DOT
728FDP
729NEATO
730TWOPI
731CIRCO
732GV
733DOTTY
734XDOT_PY
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000735INSTALL_PROGRAM
736INSTALL_SCRIPT
737INSTALL_DATA
738BZIP2
739CAT
740DOXYGEN
741GROFF
742GZIPBIN
743POD2HTML
744POD2MAN
745PDFROFF
746RUNTEST
747TCLSH
748ZIP
749OCAMLC
750OCAMLOPT
751OCAMLDEP
752OCAMLDOC
753GAS
754HAVE_LINK_VERSION_SCRIPT
755INSTALL_LTDL_TRUE
756INSTALL_LTDL_FALSE
757CONVENIENCE_LTDL_TRUE
758CONVENIENCE_LTDL_FALSE
759LIBADD_DL
760NO_VARIADIC_MACROS
761NO_MISSING_FIELD_INITIALIZERS
Rafael Espindola9993a3a2012-02-28 23:32:06 +0000762COVERED_SWITCH_DEFAULT
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000763USE_UDIS86
764USE_OPROFILE
765HAVE_PTHREAD
766HUGE_VAL_SANITY
767MMAP_FILE
768SHLIBEXT
769SHLIBPATH_VAR
770LLVM_PREFIX
771LLVM_BINDIR
772LLVM_LIBDIR
773LLVM_DATADIR
774LLVM_DOCSDIR
775LLVM_ETCDIR
776LLVM_INCLUDEDIR
777LLVM_INFODIR
778LLVM_MANDIR
779LLVM_CONFIGTIME
780BINDINGS_TO_BUILD
781ALL_BINDINGS
782OCAML_LIBDIR
783ENABLE_VISIBILITY_INLINES_HIDDEN
784RPATH
785RDYNAMIC
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000786LIBOBJS
787LTLIBOBJS'
John Criswell451f67f2003-10-16 01:45:35 +0000788ac_subst_files=''
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000789 ac_precious_vars='build_alias
790host_alias
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000791target_alias
792CC
793CFLAGS
794LDFLAGS
795CPPFLAGS
796CXX
797CXXFLAGS
798CCC
799CPP'
800ac_subdirs_all='tools/polly'
John Criswell451f67f2003-10-16 01:45:35 +0000801
802# Initialize some variables set by options.
803ac_init_help=
804ac_init_version=false
805# The variables have the same names as the options, with
806# dashes changed to underlines.
807cache_file=/dev/null
808exec_prefix=NONE
809no_create=
810no_recursion=
811prefix=NONE
812program_prefix=NONE
813program_suffix=NONE
814program_transform_name=s,x,x,
815silent=
816site=
817srcdir=
818verbose=
819x_includes=NONE
820x_libraries=NONE
821
822# Installation directory options.
823# These are left unexpanded so users can "make install exec_prefix=/foo"
824# and all the variables that are supposed to be based on exec_prefix
825# by default will actually change.
826# Use braces instead of parens because sh, perl, etc. also accept them.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000827# (The list follows the same order as the GNU Coding Standards.)
John Criswell451f67f2003-10-16 01:45:35 +0000828bindir='${exec_prefix}/bin'
829sbindir='${exec_prefix}/sbin'
830libexecdir='${exec_prefix}/libexec'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000831datarootdir='${prefix}/share'
832datadir='${datarootdir}'
John Criswell451f67f2003-10-16 01:45:35 +0000833sysconfdir='${prefix}/etc'
834sharedstatedir='${prefix}/com'
835localstatedir='${prefix}/var'
John Criswell451f67f2003-10-16 01:45:35 +0000836includedir='${prefix}/include'
837oldincludedir='/usr/include'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000838docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839infodir='${datarootdir}/info'
840htmldir='${docdir}'
841dvidir='${docdir}'
842pdfdir='${docdir}'
843psdir='${docdir}'
844libdir='${exec_prefix}/lib'
845localedir='${datarootdir}/locale'
846mandir='${datarootdir}/man'
John Criswell451f67f2003-10-16 01:45:35 +0000847
848ac_prev=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000849ac_dashdash=
John Criswell451f67f2003-10-16 01:45:35 +0000850for ac_option
851do
852 # If the previous option needs an argument, assign it.
853 if test -n "$ac_prev"; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000854 eval $ac_prev=\$ac_option
John Criswell451f67f2003-10-16 01:45:35 +0000855 ac_prev=
856 continue
857 fi
858
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000859 case $ac_option in
860 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861 *) ac_optarg=yes ;;
862 esac
John Criswell451f67f2003-10-16 01:45:35 +0000863
864 # Accept the important Cygnus configure options, so we can diagnose typos.
865
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000866 case $ac_dashdash$ac_option in
867 --)
868 ac_dashdash=yes ;;
John Criswell451f67f2003-10-16 01:45:35 +0000869
870 -bindir | --bindir | --bindi | --bind | --bin | --bi)
871 ac_prev=bindir ;;
872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
873 bindir=$ac_optarg ;;
874
875 -build | --build | --buil | --bui | --bu)
876 ac_prev=build_alias ;;
877 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
878 build_alias=$ac_optarg ;;
879
880 -cache-file | --cache-file | --cache-fil | --cache-fi \
881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882 ac_prev=cache_file ;;
883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885 cache_file=$ac_optarg ;;
886
887 --config-cache | -C)
888 cache_file=config.cache ;;
889
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000890 -datadir | --datadir | --datadi | --datad)
John Criswell451f67f2003-10-16 01:45:35 +0000891 ac_prev=datadir ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000892 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell451f67f2003-10-16 01:45:35 +0000893 datadir=$ac_optarg ;;
894
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000895 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896 | --dataroo | --dataro | --datar)
897 ac_prev=datarootdir ;;
898 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900 datarootdir=$ac_optarg ;;
901
John Criswell451f67f2003-10-16 01:45:35 +0000902 -disable-* | --disable-*)
903 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
904 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000905 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000906 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
907 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000908 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000909 eval enable_$ac_feature=no ;;
910
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
915
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000920
921 -enable-* | --enable-*)
922 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000924 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000925 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000927 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000928 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000929
930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932 | --exec | --exe | --ex)
933 ac_prev=exec_prefix ;;
934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936 | --exec=* | --exe=* | --ex=*)
937 exec_prefix=$ac_optarg ;;
938
939 -gas | --gas | --ga | --g)
940 # Obsolete; use --with-gas.
941 with_gas=yes ;;
942
943 -help | --help | --hel | --he | -h)
944 ac_init_help=long ;;
945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946 ac_init_help=recursive ;;
947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948 ac_init_help=short ;;
949
950 -host | --host | --hos | --ho)
951 ac_prev=host_alias ;;
952 -host=* | --host=* | --hos=* | --ho=*)
953 host_alias=$ac_optarg ;;
954
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
956 ac_prev=htmldir ;;
957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
958 | --ht=*)
959 htmldir=$ac_optarg ;;
960
John Criswell451f67f2003-10-16 01:45:35 +0000961 -includedir | --includedir | --includedi | --included | --include \
962 | --includ | --inclu | --incl | --inc)
963 ac_prev=includedir ;;
964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965 | --includ=* | --inclu=* | --incl=* | --inc=*)
966 includedir=$ac_optarg ;;
967
968 -infodir | --infodir | --infodi | --infod | --info | --inf)
969 ac_prev=infodir ;;
970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971 infodir=$ac_optarg ;;
972
973 -libdir | --libdir | --libdi | --libd)
974 ac_prev=libdir ;;
975 -libdir=* | --libdir=* | --libdi=* | --libd=*)
976 libdir=$ac_optarg ;;
977
978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979 | --libexe | --libex | --libe)
980 ac_prev=libexecdir ;;
981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982 | --libexe=* | --libex=* | --libe=*)
983 libexecdir=$ac_optarg ;;
984
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000985 -localedir | --localedir | --localedi | --localed | --locale)
986 ac_prev=localedir ;;
987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988 localedir=$ac_optarg ;;
989
John Criswell451f67f2003-10-16 01:45:35 +0000990 -localstatedir | --localstatedir | --localstatedi | --localstated \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000991 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell451f67f2003-10-16 01:45:35 +0000992 ac_prev=localstatedir ;;
993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell451f67f2003-10-16 01:45:35 +0000995 localstatedir=$ac_optarg ;;
996
997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
998 ac_prev=mandir ;;
999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 mandir=$ac_optarg ;;
1001
1002 -nfp | --nfp | --nf)
1003 # Obsolete; use --without-fp.
1004 with_fp=no ;;
1005
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n)
1008 no_create=yes ;;
1009
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 no_recursion=yes ;;
1013
1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016 | --oldin | --oldi | --old | --ol | --o)
1017 ac_prev=oldincludedir ;;
1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021 oldincludedir=$ac_optarg ;;
1022
1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1024 ac_prev=prefix ;;
1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026 prefix=$ac_optarg ;;
1027
1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029 | --program-pre | --program-pr | --program-p)
1030 ac_prev=program_prefix ;;
1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033 program_prefix=$ac_optarg ;;
1034
1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036 | --program-suf | --program-su | --program-s)
1037 ac_prev=program_suffix ;;
1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040 program_suffix=$ac_optarg ;;
1041
1042 -program-transform-name | --program-transform-name \
1043 | --program-transform-nam | --program-transform-na \
1044 | --program-transform-n | --program-transform- \
1045 | --program-transform | --program-transfor \
1046 | --program-transfo | --program-transf \
1047 | --program-trans | --program-tran \
1048 | --progr-tra | --program-tr | --program-t)
1049 ac_prev=program_transform_name ;;
1050 -program-transform-name=* | --program-transform-name=* \
1051 | --program-transform-nam=* | --program-transform-na=* \
1052 | --program-transform-n=* | --program-transform-=* \
1053 | --program-transform=* | --program-transfor=* \
1054 | --program-transfo=* | --program-transf=* \
1055 | --program-trans=* | --program-tran=* \
1056 | --progr-tra=* | --program-tr=* | --program-t=*)
1057 program_transform_name=$ac_optarg ;;
1058
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1060 ac_prev=pdfdir ;;
1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062 pdfdir=$ac_optarg ;;
1063
1064 -psdir | --psdir | --psdi | --psd | --ps)
1065 ac_prev=psdir ;;
1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067 psdir=$ac_optarg ;;
1068
John Criswell451f67f2003-10-16 01:45:35 +00001069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 silent=yes ;;
1072
1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1074 ac_prev=sbindir ;;
1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1076 | --sbi=* | --sb=*)
1077 sbindir=$ac_optarg ;;
1078
1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081 | --sharedst | --shareds | --shared | --share | --shar \
1082 | --sha | --sh)
1083 ac_prev=sharedstatedir ;;
1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1087 | --sha=* | --sh=*)
1088 sharedstatedir=$ac_optarg ;;
1089
1090 -site | --site | --sit)
1091 ac_prev=site ;;
1092 -site=* | --site=* | --sit=*)
1093 site=$ac_optarg ;;
1094
1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1096 ac_prev=srcdir ;;
1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1098 srcdir=$ac_optarg ;;
1099
1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101 | --syscon | --sysco | --sysc | --sys | --sy)
1102 ac_prev=sysconfdir ;;
1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1105 sysconfdir=$ac_optarg ;;
1106
1107 -target | --target | --targe | --targ | --tar | --ta | --t)
1108 ac_prev=target_alias ;;
1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1110 target_alias=$ac_optarg ;;
1111
1112 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113 verbose=yes ;;
1114
1115 -version | --version | --versio | --versi | --vers | -V)
1116 ac_init_version=: ;;
1117
1118 -with-* | --with-*)
1119 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +00001121 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +00001122 { echo "$as_me: error: invalid package name: $ac_package" >&2
1123 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +00001124 ac_package=`echo $ac_package| sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001125 eval with_$ac_package=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +00001126
1127 -without-* | --without-*)
1128 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1129 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +00001130 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +00001131 { echo "$as_me: error: invalid package name: $ac_package" >&2
1132 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +00001133 ac_package=`echo $ac_package | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001134 eval with_$ac_package=no ;;
John Criswell451f67f2003-10-16 01:45:35 +00001135
1136 --x)
1137 # Obsolete; use --with-x.
1138 with_x=yes ;;
1139
1140 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141 | --x-incl | --x-inc | --x-in | --x-i)
1142 ac_prev=x_includes ;;
1143 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145 x_includes=$ac_optarg ;;
1146
1147 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149 ac_prev=x_libraries ;;
1150 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152 x_libraries=$ac_optarg ;;
1153
1154 -*) { echo "$as_me: error: unrecognized option: $ac_option
1155Try \`$0 --help' for more information." >&2
1156 { (exit 1); exit 1; }; }
1157 ;;
1158
1159 *=*)
1160 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1163 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1164 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001165 eval $ac_envvar=\$ac_optarg
John Criswell451f67f2003-10-16 01:45:35 +00001166 export $ac_envvar ;;
1167
1168 *)
1169 # FIXME: should be removed in autoconf 3.0.
1170 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1174 ;;
1175
1176 esac
1177done
1178
1179if test -n "$ac_prev"; then
1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181 { echo "$as_me: error: missing argument to $ac_option" >&2
1182 { (exit 1); exit 1; }; }
1183fi
1184
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001185# Be sure to have absolute directory names.
1186for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1187 datadir sysconfdir sharedstatedir localstatedir includedir \
1188 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1189 libdir localedir mandir
John Criswell451f67f2003-10-16 01:45:35 +00001190do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001191 eval ac_val=\$$ac_var
John Criswell451f67f2003-10-16 01:45:35 +00001192 case $ac_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001193 [\\/$]* | ?:[\\/]* ) continue;;
1194 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell451f67f2003-10-16 01:45:35 +00001195 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001196 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1197 { (exit 1); exit 1; }; }
John Criswell451f67f2003-10-16 01:45:35 +00001198done
1199
1200# There might be people who depend on the old broken behavior: `$host'
1201# used to hold the argument of --host etc.
1202# FIXME: To remove some day.
1203build=$build_alias
1204host=$host_alias
1205target=$target_alias
1206
1207# FIXME: To remove some day.
1208if test "x$host_alias" != x; then
1209 if test "x$build_alias" = x; then
1210 cross_compiling=maybe
1211 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1212 If a cross compiler is detected then cross compile mode will be used." >&2
1213 elif test "x$build_alias" != "x$host_alias"; then
1214 cross_compiling=yes
1215 fi
1216fi
1217
1218ac_tool_prefix=
1219test -n "$host_alias" && ac_tool_prefix=$host_alias-
1220
1221test "$silent" = yes && exec 6>/dev/null
1222
1223
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001224ac_pwd=`pwd` && test -n "$ac_pwd" &&
1225ac_ls_di=`ls -di .` &&
1226ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1227 { echo "$as_me: error: Working directory cannot be determined" >&2
1228 { (exit 1); exit 1; }; }
1229test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1230 { echo "$as_me: error: pwd does not report name of working directory" >&2
1231 { (exit 1); exit 1; }; }
1232
1233
John Criswell451f67f2003-10-16 01:45:35 +00001234# Find the source files, if location was not specified.
1235if test -z "$srcdir"; then
1236 ac_srcdir_defaulted=yes
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001237 # Try the directory containing this script, then the parent directory.
1238 ac_confdir=`$as_dirname -- "$0" ||
John Criswell451f67f2003-10-16 01:45:35 +00001239$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +00001240 X"$0" : 'X\(//\)[^/]' \| \
1241 X"$0" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001242 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +00001243echo X"$0" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1245 s//\1/
1246 q
1247 }
1248 /^X\(\/\/\)[^/].*/{
1249 s//\1/
1250 q
1251 }
1252 /^X\(\/\/\)$/{
1253 s//\1/
1254 q
1255 }
1256 /^X\(\/\).*/{
1257 s//\1/
1258 q
1259 }
1260 s/.*/./; q'`
John Criswell451f67f2003-10-16 01:45:35 +00001261 srcdir=$ac_confdir
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001262 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell451f67f2003-10-16 01:45:35 +00001263 srcdir=..
1264 fi
1265else
1266 ac_srcdir_defaulted=no
1267fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001268if test ! -r "$srcdir/$ac_unique_file"; then
1269 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1270 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell451f67f2003-10-16 01:45:35 +00001271 { (exit 1); exit 1; }; }
Dan Gohmand02a2812009-03-24 23:47:11 +00001272fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001273ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1274ac_abs_confdir=`(
1275 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Dan Gohman324f6082009-03-25 00:52:11 +00001276 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001277 pwd)`
1278# When building in place, set srcdir=.
1279if test "$ac_abs_confdir" = "$ac_pwd"; then
1280 srcdir=.
1281fi
1282# Remove unnecessary trailing slashes from srcdir.
1283# Double slashes in file names in object file debugging info
1284# mess up M-x gdb in Emacs.
1285case $srcdir in
1286*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1287esac
1288for ac_var in $ac_precious_vars; do
1289 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_env_${ac_var}_value=\$${ac_var}
1291 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1293done
John Criswell451f67f2003-10-16 01:45:35 +00001294
1295#
1296# Report the --help message.
1297#
1298if test "$ac_init_help" = "long"; then
1299 # Omit some internal or obsolete options to make the list less imposing.
1300 # This message is too long to be a string in the A/UX 3.1 sh.
1301 cat <<_ACEOF
1302\`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1303
1304Usage: $0 [OPTION]... [VAR=VALUE]...
1305
1306To assign environment variables (e.g., CC, CFLAGS...), specify them as
1307VAR=VALUE. See below for descriptions of some of the useful variables.
1308
1309Defaults for the options are specified in brackets.
1310
1311Configuration:
1312 -h, --help display this help and exit
1313 --help=short display options specific to this package
1314 --help=recursive display the short help of all the included packages
1315 -V, --version display version information and exit
1316 -q, --quiet, --silent do not print \`checking...' messages
1317 --cache-file=FILE cache test results in FILE [disabled]
1318 -C, --config-cache alias for \`--cache-file=config.cache'
1319 -n, --no-create do not create output files
1320 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1321
John Criswell451f67f2003-10-16 01:45:35 +00001322Installation directories:
1323 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001324 [$ac_default_prefix]
John Criswell451f67f2003-10-16 01:45:35 +00001325 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001326 [PREFIX]
John Criswell451f67f2003-10-16 01:45:35 +00001327
1328By default, \`make install' will install all the files in
1329\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1330an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1331for instance \`--prefix=\$HOME'.
1332
1333For better control, use the options below.
1334
1335Fine tuning of the installation directories:
1336 --bindir=DIR user executables [EPREFIX/bin]
1337 --sbindir=DIR system admin executables [EPREFIX/sbin]
1338 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell451f67f2003-10-16 01:45:35 +00001339 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1340 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1341 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1342 --libdir=DIR object code libraries [EPREFIX/lib]
1343 --includedir=DIR C header files [PREFIX/include]
1344 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001345 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1346 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1347 --infodir=DIR info documentation [DATAROOTDIR/info]
1348 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1349 --mandir=DIR man documentation [DATAROOTDIR/man]
1350 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1351 --htmldir=DIR html documentation [DOCDIR]
1352 --dvidir=DIR dvi documentation [DOCDIR]
1353 --pdfdir=DIR pdf documentation [DOCDIR]
1354 --psdir=DIR ps documentation [DOCDIR]
John Criswell451f67f2003-10-16 01:45:35 +00001355_ACEOF
1356
1357 cat <<\_ACEOF
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001358
1359System types:
1360 --build=BUILD configure for building on BUILD [guessed]
1361 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1362 --target=TARGET configure for building compilers for TARGET [HOST]
John Criswell451f67f2003-10-16 01:45:35 +00001363_ACEOF
1364fi
1365
1366if test -n "$ac_init_help"; then
1367 case $ac_init_help in
1368 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1369 esac
1370 cat <<\_ACEOF
1371
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001372Optional Features:
1373 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1374 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1375 --enable-polly Use polly if available (default is YES)
1376 --enable-optimized Compile with optimizations enabled (default is NO)
1377 --enable-profiling Compile with profiling enabled (default is NO)
1378 --enable-assertions Compile with assertion checks enabled (default is
1379 YES)
1380 --enable-expensive-checks
1381 Compile with expensive debug checks enabled (default
1382 is NO)
1383 --enable-debug-runtime Build runtime libs with debug symbols (default is
1384 NO)
1385 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1386 optimization is on and YES if it's off)
1387 --enable-jit Enable Just In Time Compiling (default is YES)
1388 --enable-docs Build documents (default is YES)
1389 --enable-doxygen Build doxygen documentation (default is NO)
1390 --enable-threads Use threads if available (default is YES)
1391 --enable-pthreads Use pthreads if available (default is YES)
1392 --enable-pic Build LLVM with Position Independent Code (default
1393 is YES)
1394 --enable-shared Build a shared library and link tools against it
1395 (default is NO)
1396 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1397 Win32 DLL (default is YES)
1398 --enable-timestamps Enable embedding timestamp information in build
1399 (default is YES)
1400 --enable-targets Build specific host targets: all or
1401 target1,target2,... Valid targets are: host, x86,
Tony Linthicumb4b54152011-12-12 21:14:40 +00001402 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1403 xcore, msp430, ptx, cbe, and cpp (default=all)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001404 --enable-bindings Build specific language bindings:
1405 all,auto,none,{binding-name} (default=auto)
1406 --enable-libffi Check for the presence of libffi (default is NO)
1407 --enable-ltdl-install install libltdl
1408
John Criswell451f67f2003-10-16 01:45:35 +00001409Optional Packages:
1410 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1411 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1412 --with-llvmsrc Location of LLVM Source Code
1413 --with-llvmobj Location of LLVM Object Code
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001414 --with-optimize-option Select the compiler options to use for optimized
1415 builds
1416 --with-extra-options Specify additional options to compile LLVM with
1417 --with-extra-ld-options Specify additional options to link LLVM with
1418 --with-ocaml-libdir Specify install location for ocaml bindings (default
1419 is stdlib)
1420 --with-clang-resource-dir
1421 Relative directory from the Clang binary for
1422 resource files
1423 --with-c-include-dirs Colon separated list of directories clang will
1424 search for headers
Rafael Espindola1aee22e2012-02-03 00:59:30 +00001425 --with-gcc-toolchain Directory where gcc is installed.
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001426 --with-binutils-include Specify path to binutils/include/ containing
1427 plugin-api.h file for gold plugin.
1428 --with-bug-report-url Specify the URL where bug reports should be
1429 submitted (default=http://llvm.org/bugs/)
1430 --with-tclinclude directory where tcl headers are
1431 --with-udis86=<path> Use udis86 external x86 disassembler library
1432 --with-oprofile=<prefix>
1433 Tell OProfile >= 0.9.4 how to symbolize JIT output
1434
1435Some influential environment variables:
1436 CC C compiler command
1437 CFLAGS C compiler flags
1438 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1439 nonstandard directory <lib dir>
1440 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1441 you have headers in a nonstandard directory <include dir>
1442 CXX C++ compiler command
1443 CXXFLAGS C++ compiler flags
1444 CPP C preprocessor
1445
1446Use these variables to override the choices made by `configure' or to help
1447it to find libraries and programs with nonstandard names/locations.
John Criswell451f67f2003-10-16 01:45:35 +00001448
1449Report bugs to <bugs@yourdomain>.
1450_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001451ac_status=$?
John Criswell451f67f2003-10-16 01:45:35 +00001452fi
1453
1454if test "$ac_init_help" = "recursive"; then
1455 # If there are subdirs, report their specific --help.
John Criswell451f67f2003-10-16 01:45:35 +00001456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001457 test -d "$ac_dir" || continue
John Criswell451f67f2003-10-16 01:45:35 +00001458 ac_builddir=.
1459
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001460case "$ac_dir" in
1461.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462*)
John Criswell451f67f2003-10-16 01:45:35 +00001463 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001464 # A ".." for each directory in $ac_dir_suffix.
1465 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1466 case $ac_top_builddir_sub in
1467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469 esac ;;
1470esac
1471ac_abs_top_builddir=$ac_pwd
1472ac_abs_builddir=$ac_pwd$ac_dir_suffix
1473# for backward compatibility:
1474ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +00001475
1476case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001477 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +00001478 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001479 ac_top_srcdir=$ac_top_builddir_sub
1480 ac_abs_top_srcdir=$ac_pwd ;;
1481 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +00001482 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001483 ac_top_srcdir=$srcdir
1484 ac_abs_top_srcdir=$srcdir ;;
1485 *) # Relative name.
1486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1487 ac_top_srcdir=$ac_top_build_prefix$srcdir
1488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +00001489esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001490ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer9964cd82005-01-01 09:26:55 +00001491
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001492 cd "$ac_dir" || { ac_status=$?; continue; }
1493 # Check for guested configure.
1494 if test -f "$ac_srcdir/configure.gnu"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1497 elif test -f "$ac_srcdir/configure"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell451f67f2003-10-16 01:45:35 +00001500 else
1501 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001502 fi || ac_status=$?
1503 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell451f67f2003-10-16 01:45:35 +00001504 done
1505fi
1506
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001507test -n "$ac_init_help" && exit $ac_status
John Criswell451f67f2003-10-16 01:45:35 +00001508if $ac_init_version; then
1509 cat <<\_ACEOF
1510[SAMPLE] configure [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001511generated by GNU Autoconf 2.60
John Criswell451f67f2003-10-16 01:45:35 +00001512
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001513Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15142002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00001515This configure script is free software; the Free Software Foundation
1516gives unlimited permission to copy, distribute and modify it.
1517_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001518 exit
John Criswell451f67f2003-10-16 01:45:35 +00001519fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001520cat >config.log <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00001521This file contains any messages produced by compilers while
1522running configure, to aid debugging if configure makes a mistake.
1523
1524It was created by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001525generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +00001526
1527 $ $0 $@
1528
1529_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001530exec 5>>config.log
John Criswell451f67f2003-10-16 01:45:35 +00001531{
1532cat <<_ASUNAME
1533## --------- ##
1534## Platform. ##
1535## --------- ##
1536
1537hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1538uname -m = `(uname -m) 2>/dev/null || echo unknown`
1539uname -r = `(uname -r) 2>/dev/null || echo unknown`
1540uname -s = `(uname -s) 2>/dev/null || echo unknown`
1541uname -v = `(uname -v) 2>/dev/null || echo unknown`
1542
1543/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1544/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1545
1546/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1547/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1548/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001549/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell451f67f2003-10-16 01:45:35 +00001550/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1551/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1552/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1553
1554_ASUNAME
1555
1556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1557for as_dir in $PATH
1558do
1559 IFS=$as_save_IFS
1560 test -z "$as_dir" && as_dir=.
1561 echo "PATH: $as_dir"
1562done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001563IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +00001564
1565} >&5
1566
1567cat >&5 <<_ACEOF
1568
1569
1570## ----------- ##
1571## Core tests. ##
1572## ----------- ##
1573
1574_ACEOF
1575
1576
1577# Keep a trace of the command line.
1578# Strip out --no-create and --no-recursion so they do not pile up.
1579# Strip out --silent because we don't want to record it for future runs.
1580# Also quote any args containing shell meta-characters.
1581# Make two passes to allow for proper duplicate-argument suppression.
1582ac_configure_args=
1583ac_configure_args0=
1584ac_configure_args1=
John Criswell451f67f2003-10-16 01:45:35 +00001585ac_must_keep_next=false
1586for ac_pass in 1 2
1587do
1588 for ac_arg
1589 do
1590 case $ac_arg in
1591 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1592 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1593 | -silent | --silent | --silen | --sile | --sil)
1594 continue ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001595 *\'*)
John Criswell451f67f2003-10-16 01:45:35 +00001596 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1597 esac
1598 case $ac_pass in
1599 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1600 2)
1601 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1602 if test $ac_must_keep_next = true; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001603 ac_must_keep_next=false # Got value, back to normal.
John Criswell451f67f2003-10-16 01:45:35 +00001604 else
Reid Spencer9964cd82005-01-01 09:26:55 +00001605 case $ac_arg in
1606 *=* | --config-cache | -C | -disable-* | --disable-* \
1607 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1608 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1609 | -with-* | --with-* | -without-* | --without-* | --x)
1610 case "$ac_configure_args0 " in
1611 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1612 esac
1613 ;;
1614 -* ) ac_must_keep_next=true ;;
1615 esac
John Criswell451f67f2003-10-16 01:45:35 +00001616 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001617 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell451f67f2003-10-16 01:45:35 +00001618 ;;
1619 esac
1620 done
1621done
1622$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1623$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1624
1625# When interrupted or exit'd, cleanup temporary files, and complete
1626# config.log. We remove comments because anyway the quotes in there
1627# would cause problems or look ugly.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001628# WARNING: Use '\'' to represent an apostrophe within the trap.
1629# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell451f67f2003-10-16 01:45:35 +00001630trap 'exit_status=$?
1631 # Save into config.log some information that might help in debugging.
1632 {
1633 echo
1634
1635 cat <<\_ASBOX
1636## ---------------- ##
1637## Cache variables. ##
1638## ---------------- ##
1639_ASBOX
1640 echo
1641 # The following way of writing the cache mishandles newlines in values,
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001642(
1643 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1644 eval ac_val=\$$ac_var
1645 case $ac_val in #(
1646 *${as_nl}*)
1647 case $ac_var in #(
1648 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1649echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1650 esac
1651 case $ac_var in #(
1652 _ | IFS | as_nl) ;; #(
1653 *) $as_unset $ac_var ;;
1654 esac ;;
1655 esac
1656 done
John Criswell451f67f2003-10-16 01:45:35 +00001657 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001658 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1659 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +00001660 sed -n \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001661 "s/'\''/'\''\\\\'\'''\''/g;
1662 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1663 ;; #(
Dan Gohman324f6082009-03-25 00:52:11 +00001664 *)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001665 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Dan Gohman324f6082009-03-25 00:52:11 +00001666 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001667 esac |
1668 sort
1669)
John Criswell451f67f2003-10-16 01:45:35 +00001670 echo
1671
1672 cat <<\_ASBOX
1673## ----------------- ##
1674## Output variables. ##
1675## ----------------- ##
1676_ASBOX
1677 echo
1678 for ac_var in $ac_subst_vars
1679 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001680 eval ac_val=\$$ac_var
1681 case $ac_val in
1682 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1683 esac
1684 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001685 done | sort
1686 echo
1687
1688 if test -n "$ac_subst_files"; then
1689 cat <<\_ASBOX
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001690## ------------------- ##
1691## File substitutions. ##
1692## ------------------- ##
John Criswell451f67f2003-10-16 01:45:35 +00001693_ASBOX
1694 echo
1695 for ac_var in $ac_subst_files
1696 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001697 eval ac_val=\$$ac_var
1698 case $ac_val in
1699 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1700 esac
1701 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001702 done | sort
1703 echo
1704 fi
1705
1706 if test -s confdefs.h; then
1707 cat <<\_ASBOX
1708## ----------- ##
1709## confdefs.h. ##
1710## ----------- ##
1711_ASBOX
1712 echo
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001713 cat confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001714 echo
1715 fi
1716 test "$ac_signal" != 0 &&
1717 echo "$as_me: caught signal $ac_signal"
1718 echo "$as_me: exit $exit_status"
1719 } >&5
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001720 rm -f core *.core core.conftest.* &&
1721 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell451f67f2003-10-16 01:45:35 +00001722 exit $exit_status
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001723' 0
John Criswell451f67f2003-10-16 01:45:35 +00001724for ac_signal in 1 2 13 15; do
1725 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1726done
1727ac_signal=0
1728
1729# confdefs.h avoids OS command line length limits that DEFS can exceed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001730rm -f -r conftest* confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001731
1732# Predefined preprocessor variables.
1733
1734cat >>confdefs.h <<_ACEOF
1735#define PACKAGE_NAME "$PACKAGE_NAME"
1736_ACEOF
1737
1738
1739cat >>confdefs.h <<_ACEOF
1740#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1741_ACEOF
1742
1743
1744cat >>confdefs.h <<_ACEOF
1745#define PACKAGE_VERSION "$PACKAGE_VERSION"
1746_ACEOF
1747
1748
1749cat >>confdefs.h <<_ACEOF
1750#define PACKAGE_STRING "$PACKAGE_STRING"
1751_ACEOF
1752
1753
1754cat >>confdefs.h <<_ACEOF
1755#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1756_ACEOF
1757
1758
1759# Let the site file select an alternate cache file if it wants to.
1760# Prefer explicitly selected file to automatically selected ones.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001761if test -n "$CONFIG_SITE"; then
1762 set x "$CONFIG_SITE"
1763elif test "x$prefix" != xNONE; then
1764 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1765else
1766 set x "$ac_default_prefix/share/config.site" \
1767 "$ac_default_prefix/etc/config.site"
John Criswell451f67f2003-10-16 01:45:35 +00001768fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001769shift
1770for ac_site_file
1771do
John Criswell451f67f2003-10-16 01:45:35 +00001772 if test -r "$ac_site_file"; then
1773 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1774echo "$as_me: loading site script $ac_site_file" >&6;}
1775 sed 's/^/| /' "$ac_site_file" >&5
1776 . "$ac_site_file"
1777 fi
1778done
1779
1780if test -r "$cache_file"; then
1781 # Some versions of bash will fail to source /dev/null (special
1782 # files actually), so we avoid doing that.
1783 if test -f "$cache_file"; then
1784 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1785echo "$as_me: loading cache $cache_file" >&6;}
1786 case $cache_file in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001787 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1788 *) . "./$cache_file";;
John Criswell451f67f2003-10-16 01:45:35 +00001789 esac
1790 fi
1791else
1792 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1793echo "$as_me: creating cache $cache_file" >&6;}
1794 >$cache_file
1795fi
1796
1797# Check that the precious variables saved in the cache have kept the same
1798# value.
1799ac_cache_corrupted=false
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001800for ac_var in $ac_precious_vars; do
John Criswell451f67f2003-10-16 01:45:35 +00001801 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1802 eval ac_new_set=\$ac_env_${ac_var}_set
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001803 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1804 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell451f67f2003-10-16 01:45:35 +00001805 case $ac_old_set,$ac_new_set in
1806 set,)
1807 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1808echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1809 ac_cache_corrupted=: ;;
1810 ,set)
1811 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1812echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1813 ac_cache_corrupted=: ;;
1814 ,);;
1815 *)
1816 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001817 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001818echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001819 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001820echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001821 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001822echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001823 ac_cache_corrupted=:
John Criswell451f67f2003-10-16 01:45:35 +00001824 fi;;
1825 esac
1826 # Pass precious variables to config.status.
1827 if test "$ac_new_set" = set; then
1828 case $ac_new_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001829 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell451f67f2003-10-16 01:45:35 +00001830 *) ac_arg=$ac_var=$ac_new_val ;;
1831 esac
1832 case " $ac_configure_args " in
1833 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1834 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1835 esac
1836 fi
1837done
1838if $ac_cache_corrupted; then
1839 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1840echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1841 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1842echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1843 { (exit 1); exit 1; }; }
1844fi
1845
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
John Criswell451f67f2003-10-16 01:45:35 +00001870ac_ext=c
1871ac_cpp='$CPP $CPPFLAGS'
1872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1874ac_compiler_gnu=$ac_cv_c_compiler_gnu
1875
1876
1877
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001878LLVM_SRC_ROOT="../.."
1879LLVM_OBJ_ROOT="../.."
1880
1881LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1882LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
Dan Gohman324f6082009-03-25 00:52:11 +00001883
1884
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001885# Check whether --with-llvmsrc was given.
1886if test "${with_llvmsrc+set}" = set; then
1887 withval=$with_llvmsrc; llvm_src="$withval"
1888else
1889 llvm_src="$LLVM_ABS_SRC_ROOT"
1890fi
1891
1892 LLVM_SRC=$llvm_src
Dan Gohman324f6082009-03-25 00:52:11 +00001893
1894
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001895# Check whether --with-llvmobj was given.
1896if test "${with_llvmobj+set}" = set; then
1897 withval=$with_llvmobj; llvm_obj="$withval"
1898else
1899 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1900fi
Dan Gohman324f6082009-03-25 00:52:11 +00001901
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001902 LLVM_OBJ=$llvm_obj
Dan Gohman324f6082009-03-25 00:52:11 +00001903
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001904 ac_config_commands="$ac_config_commands setup"
Dan Gohman324f6082009-03-25 00:52:11 +00001905
1906
1907
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001908{ echo "$as_me:$LINENO: checking llvm-config" >&5
1909echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1910llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1911if ! test -f "$llvm_config_path" ; then
1912 llvm_config_path="no"
1913fi
1914{ echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1915echo "${ECHO_T}$llvm_config_path" >&6; }
1916
1917{ echo "$as_me:$LINENO: checking LLVM package version" >&5
1918echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1919if test "$llvm_config_path" != no ; then
1920 llvm_package_version=`$llvm_config_path --version`
1921else
1922 llvm_package_version="unknown";
1923fi
1924{ echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1925echo "${ECHO_T}$llvm_package_version" >&6; }
1926LLVM_VERSION=$llvm_package_version
1927
1928
1929
1930
John Criswell451f67f2003-10-16 01:45:35 +00001931ac_aux_dir=
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001932for ac_dir in autoconf "$srcdir"/autoconf; do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001933 if test -f "$ac_dir/install-sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001934 ac_aux_dir=$ac_dir
1935 ac_install_sh="$ac_aux_dir/install-sh -c"
1936 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001937 elif test -f "$ac_dir/install.sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001938 ac_aux_dir=$ac_dir
1939 ac_install_sh="$ac_aux_dir/install.sh -c"
1940 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001941 elif test -f "$ac_dir/shtool"; then
John Criswell451f67f2003-10-16 01:45:35 +00001942 ac_aux_dir=$ac_dir
1943 ac_install_sh="$ac_aux_dir/shtool install -c"
1944 break
1945 fi
1946done
1947if test -z "$ac_aux_dir"; then
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001948 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1949echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +00001950 { (exit 1); exit 1; }; }
1951fi
John Criswell451f67f2003-10-16 01:45:35 +00001952
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001953# These three variables are undocumented and unsupported,
1954# and are intended to be withdrawn in a future Autoconf release.
1955# They can cause serious problems if a builder's source tree is in a directory
1956# whose full name contains unusual characters.
1957ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1958ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1959ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Reid Spencer421ec052005-02-24 18:53:47 +00001960
1961
1962
1963
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001964ac_ext=c
1965ac_cpp='$CPP $CPPFLAGS'
1966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1968ac_compiler_gnu=$ac_cv_c_compiler_gnu
1969if test -n "$ac_tool_prefix"; then
1970 for ac_prog in clang llvm-gcc gcc
1971 do
1972 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1973set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1974{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1976if test "${ac_cv_prog_CC+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1978else
1979 if test -n "$CC"; then
1980 ac_cv_prog_CC="$CC" # Let the user override the test.
1981else
1982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983for as_dir in $PATH
1984do
1985 IFS=$as_save_IFS
1986 test -z "$as_dir" && as_dir=.
1987 for ac_exec_ext in '' $ac_executable_extensions; do
1988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1989 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991 break 2
1992 fi
1993done
1994done
1995IFS=$as_save_IFS
1996
1997fi
1998fi
1999CC=$ac_cv_prog_CC
2000if test -n "$CC"; then
2001 { echo "$as_me:$LINENO: result: $CC" >&5
2002echo "${ECHO_T}$CC" >&6; }
2003else
2004 { echo "$as_me:$LINENO: result: no" >&5
2005echo "${ECHO_T}no" >&6; }
2006fi
2007
2008
2009 test -n "$CC" && break
2010 done
2011fi
2012if test -z "$CC"; then
2013 ac_ct_CC=$CC
2014 for ac_prog in clang llvm-gcc gcc
2015do
2016 # Extract the first word of "$ac_prog", so it can be a program name with args.
2017set dummy $ac_prog; ac_word=$2
2018{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2020if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2022else
2023 if test -n "$ac_ct_CC"; then
2024 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2025else
2026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027for as_dir in $PATH
2028do
2029 IFS=$as_save_IFS
2030 test -z "$as_dir" && as_dir=.
2031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2033 ac_cv_prog_ac_ct_CC="$ac_prog"
2034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035 break 2
2036 fi
2037done
2038done
2039IFS=$as_save_IFS
2040
2041fi
2042fi
2043ac_ct_CC=$ac_cv_prog_ac_ct_CC
2044if test -n "$ac_ct_CC"; then
2045 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2046echo "${ECHO_T}$ac_ct_CC" >&6; }
2047else
2048 { echo "$as_me:$LINENO: result: no" >&5
2049echo "${ECHO_T}no" >&6; }
2050fi
2051
2052
2053 test -n "$ac_ct_CC" && break
2054done
2055
2056 if test "x$ac_ct_CC" = x; then
2057 CC=""
2058 else
2059 case $cross_compiling:$ac_tool_warned in
2060yes:)
2061{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2062whose name does not start with the host triplet. If you think this
2063configuration is useful to you, please write to autoconf@gnu.org." >&5
2064echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2065whose name does not start with the host triplet. If you think this
2066configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2067ac_tool_warned=yes ;;
2068esac
2069 CC=$ac_ct_CC
2070 fi
2071fi
2072
2073
2074test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2075See \`config.log' for more details." >&5
2076echo "$as_me: error: no acceptable C compiler found in \$PATH
2077See \`config.log' for more details." >&2;}
2078 { (exit 1); exit 1; }; }
2079
2080# Provide some information about the compiler.
2081echo "$as_me:$LINENO: checking for C compiler version" >&5
2082ac_compiler=`set X $ac_compile; echo $2`
2083{ (ac_try="$ac_compiler --version >&5"
2084case "(($ac_try" in
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2087esac
2088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2089 (eval "$ac_compiler --version >&5") 2>&5
2090 ac_status=$?
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }
2093{ (ac_try="$ac_compiler -v >&5"
2094case "(($ac_try" in
2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096 *) ac_try_echo=$ac_try;;
2097esac
2098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099 (eval "$ac_compiler -v >&5") 2>&5
2100 ac_status=$?
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
2103{ (ac_try="$ac_compiler -V >&5"
2104case "(($ac_try" in
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2107esac
2108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2109 (eval "$ac_compiler -V >&5") 2>&5
2110 ac_status=$?
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }
2113
2114cat >conftest.$ac_ext <<_ACEOF
2115/* confdefs.h. */
2116_ACEOF
2117cat confdefs.h >>conftest.$ac_ext
2118cat >>conftest.$ac_ext <<_ACEOF
2119/* end confdefs.h. */
2120
2121int
2122main ()
2123{
2124
2125 ;
2126 return 0;
2127}
2128_ACEOF
2129ac_clean_files_save=$ac_clean_files
2130ac_clean_files="$ac_clean_files a.out a.exe b.out"
2131# Try to create an executable without -o first, disregard a.out.
2132# It will help us diagnose broken compilers, and finding out an intuition
2133# of exeext.
2134{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2135echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2136ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2137#
2138# List of possible output files, starting from the most likely.
2139# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2140# only as a last resort. b.out is created by i960 compilers.
2141ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2142#
2143# The IRIX 6 linker writes into existing files which may not be
2144# executable, retaining their permissions. Remove them first so a
2145# subsequent execution test works.
2146ac_rmfiles=
2147for ac_file in $ac_files
2148do
2149 case $ac_file in
2150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2151 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2152 esac
2153done
2154rm -f $ac_rmfiles
2155
2156if { (ac_try="$ac_link_default"
2157case "(($ac_try" in
2158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2159 *) ac_try_echo=$ac_try;;
2160esac
2161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2162 (eval "$ac_link_default") 2>&5
2163 ac_status=$?
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; then
2166 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2167# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2168# in a Makefile. We should not override ac_cv_exeext if it was cached,
2169# so that the user can short-circuit this test for compilers unknown to
2170# Autoconf.
2171for ac_file in $ac_files
2172do
2173 test -f "$ac_file" || continue
2174 case $ac_file in
2175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2176 ;;
2177 [ab].out )
2178 # We found the default executable, but exeext='' is most
2179 # certainly right.
2180 break;;
2181 *.* )
2182 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2183 then :; else
2184 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2185 fi
2186 # We set ac_cv_exeext here because the later test for it is not
2187 # safe: cross compilers may not add the suffix if given an `-o'
2188 # argument, so we may need to know it at that point already.
2189 # Even if this section looks crufty: it has the advantage of
2190 # actually working.
2191 break;;
2192 * )
2193 break;;
2194 esac
2195done
2196test "$ac_cv_exeext" = no && ac_cv_exeext=
2197
2198else
2199 echo "$as_me: failed program was:" >&5
2200sed 's/^/| /' conftest.$ac_ext >&5
2201
2202{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2203See \`config.log' for more details." >&5
2204echo "$as_me: error: C compiler cannot create executables
2205See \`config.log' for more details." >&2;}
2206 { (exit 77); exit 77; }; }
2207fi
2208
2209ac_exeext=$ac_cv_exeext
2210{ echo "$as_me:$LINENO: result: $ac_file" >&5
2211echo "${ECHO_T}$ac_file" >&6; }
2212
2213# Check that the compiler produces executables we can run. If not, either
2214# the compiler is broken, or we cross compile.
2215{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2216echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2217# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2218# If not cross compiling, check that we can run a simple program.
2219if test "$cross_compiling" != yes; then
2220 if { ac_try='./$ac_file'
2221 { (case "(($ac_try" in
2222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2223 *) ac_try_echo=$ac_try;;
2224esac
2225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2226 (eval "$ac_try") 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2230 cross_compiling=no
2231 else
2232 if test "$cross_compiling" = maybe; then
2233 cross_compiling=yes
2234 else
2235 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2236If you meant to cross compile, use \`--host'.
2237See \`config.log' for more details." >&5
2238echo "$as_me: error: cannot run C compiled programs.
2239If you meant to cross compile, use \`--host'.
2240See \`config.log' for more details." >&2;}
2241 { (exit 1); exit 1; }; }
2242 fi
2243 fi
2244fi
2245{ echo "$as_me:$LINENO: result: yes" >&5
2246echo "${ECHO_T}yes" >&6; }
2247
2248rm -f a.out a.exe conftest$ac_cv_exeext b.out
2249ac_clean_files=$ac_clean_files_save
2250# Check that the compiler produces executables we can run. If not, either
2251# the compiler is broken, or we cross compile.
2252{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2253echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2254{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2255echo "${ECHO_T}$cross_compiling" >&6; }
2256
2257{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2258echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2259if { (ac_try="$ac_link"
2260case "(($ac_try" in
2261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262 *) ac_try_echo=$ac_try;;
2263esac
2264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2265 (eval "$ac_link") 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; then
2269 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2270# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2271# work properly (i.e., refer to `conftest.exe'), while it won't with
2272# `rm'.
2273for ac_file in conftest.exe conftest conftest.*; do
2274 test -f "$ac_file" || continue
2275 case $ac_file in
2276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2277 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2278 break;;
2279 * ) break;;
2280 esac
2281done
2282else
2283 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2284See \`config.log' for more details." >&5
2285echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2286See \`config.log' for more details." >&2;}
2287 { (exit 1); exit 1; }; }
2288fi
2289
2290rm -f conftest$ac_cv_exeext
2291{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2292echo "${ECHO_T}$ac_cv_exeext" >&6; }
2293
2294rm -f conftest.$ac_ext
2295EXEEXT=$ac_cv_exeext
2296ac_exeext=$EXEEXT
2297{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2298echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2299if test "${ac_cv_objext+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2301else
2302 cat >conftest.$ac_ext <<_ACEOF
2303/* confdefs.h. */
2304_ACEOF
2305cat confdefs.h >>conftest.$ac_ext
2306cat >>conftest.$ac_ext <<_ACEOF
2307/* end confdefs.h. */
2308
2309int
2310main ()
2311{
2312
2313 ;
2314 return 0;
2315}
2316_ACEOF
2317rm -f conftest.o conftest.obj
2318if { (ac_try="$ac_compile"
2319case "(($ac_try" in
2320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2321 *) ac_try_echo=$ac_try;;
2322esac
2323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2324 (eval "$ac_compile") 2>&5
2325 ac_status=$?
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; then
2328 for ac_file in conftest.o conftest.obj conftest.*; do
2329 test -f "$ac_file" || continue;
2330 case $ac_file in
2331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2332 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2333 break;;
2334 esac
2335done
2336else
2337 echo "$as_me: failed program was:" >&5
2338sed 's/^/| /' conftest.$ac_ext >&5
2339
2340{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2341See \`config.log' for more details." >&5
2342echo "$as_me: error: cannot compute suffix of object files: cannot compile
2343See \`config.log' for more details." >&2;}
2344 { (exit 1); exit 1; }; }
2345fi
2346
2347rm -f conftest.$ac_cv_objext conftest.$ac_ext
2348fi
2349{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2350echo "${ECHO_T}$ac_cv_objext" >&6; }
2351OBJEXT=$ac_cv_objext
2352ac_objext=$OBJEXT
2353{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2354echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2355if test "${ac_cv_c_compiler_gnu+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2357else
2358 cat >conftest.$ac_ext <<_ACEOF
2359/* confdefs.h. */
2360_ACEOF
2361cat confdefs.h >>conftest.$ac_ext
2362cat >>conftest.$ac_ext <<_ACEOF
2363/* end confdefs.h. */
2364
2365int
2366main ()
2367{
2368#ifndef __GNUC__
2369 choke me
2370#endif
2371
2372 ;
2373 return 0;
2374}
2375_ACEOF
2376rm -f conftest.$ac_objext
2377if { (ac_try="$ac_compile"
2378case "(($ac_try" in
2379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380 *) ac_try_echo=$ac_try;;
2381esac
2382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2383 (eval "$ac_compile") 2>conftest.er1
2384 ac_status=$?
2385 grep -v '^ *+' conftest.er1 >conftest.err
2386 rm -f conftest.er1
2387 cat conftest.err >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
2390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2391 { (case "(($ac_try" in
2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2394esac
2395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396 (eval "$ac_try") 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; } &&
2400 { ac_try='test -s conftest.$ac_objext'
2401 { (case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2404esac
2405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406 (eval "$ac_try") 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; }; then
2410 ac_compiler_gnu=yes
2411else
2412 echo "$as_me: failed program was:" >&5
2413sed 's/^/| /' conftest.$ac_ext >&5
2414
2415 ac_compiler_gnu=no
2416fi
2417
2418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2419ac_cv_c_compiler_gnu=$ac_compiler_gnu
2420
2421fi
2422{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2423echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2424GCC=`test $ac_compiler_gnu = yes && echo yes`
2425ac_test_CFLAGS=${CFLAGS+set}
2426ac_save_CFLAGS=$CFLAGS
2427{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2428echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2429if test "${ac_cv_prog_cc_g+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2431else
2432 ac_save_c_werror_flag=$ac_c_werror_flag
2433 ac_c_werror_flag=yes
2434 ac_cv_prog_cc_g=no
2435 CFLAGS="-g"
2436 cat >conftest.$ac_ext <<_ACEOF
2437/* confdefs.h. */
2438_ACEOF
2439cat confdefs.h >>conftest.$ac_ext
2440cat >>conftest.$ac_ext <<_ACEOF
2441/* end confdefs.h. */
2442
2443int
2444main ()
2445{
2446
2447 ;
2448 return 0;
2449}
2450_ACEOF
2451rm -f conftest.$ac_objext
2452if { (ac_try="$ac_compile"
2453case "(($ac_try" in
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2456esac
2457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458 (eval "$ac_compile") 2>conftest.er1
2459 ac_status=$?
2460 grep -v '^ *+' conftest.er1 >conftest.err
2461 rm -f conftest.er1
2462 cat conftest.err >&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); } &&
2465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2466 { (case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2469esac
2470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471 (eval "$ac_try") 2>&5
2472 ac_status=$?
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; } &&
2475 { ac_try='test -s conftest.$ac_objext'
2476 { (case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2479esac
2480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481 (eval "$ac_try") 2>&5
2482 ac_status=$?
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; }; then
2485 ac_cv_prog_cc_g=yes
2486else
2487 echo "$as_me: failed program was:" >&5
2488sed 's/^/| /' conftest.$ac_ext >&5
2489
2490 CFLAGS=""
2491 cat >conftest.$ac_ext <<_ACEOF
2492/* confdefs.h. */
2493_ACEOF
2494cat confdefs.h >>conftest.$ac_ext
2495cat >>conftest.$ac_ext <<_ACEOF
2496/* end confdefs.h. */
2497
2498int
2499main ()
2500{
2501
2502 ;
2503 return 0;
2504}
2505_ACEOF
2506rm -f conftest.$ac_objext
2507if { (ac_try="$ac_compile"
2508case "(($ac_try" in
2509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510 *) ac_try_echo=$ac_try;;
2511esac
2512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2513 (eval "$ac_compile") 2>conftest.er1
2514 ac_status=$?
2515 grep -v '^ *+' conftest.er1 >conftest.err
2516 rm -f conftest.er1
2517 cat conftest.err >&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); } &&
2520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2521 { (case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2524esac
2525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_try") 2>&5
2527 ac_status=$?
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; } &&
2530 { ac_try='test -s conftest.$ac_objext'
2531 { (case "(($ac_try" in
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2534esac
2535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536 (eval "$ac_try") 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2540 :
2541else
2542 echo "$as_me: failed program was:" >&5
2543sed 's/^/| /' conftest.$ac_ext >&5
2544
2545 ac_c_werror_flag=$ac_save_c_werror_flag
2546 CFLAGS="-g"
2547 cat >conftest.$ac_ext <<_ACEOF
2548/* confdefs.h. */
2549_ACEOF
2550cat confdefs.h >>conftest.$ac_ext
2551cat >>conftest.$ac_ext <<_ACEOF
2552/* end confdefs.h. */
2553
2554int
2555main ()
2556{
2557
2558 ;
2559 return 0;
2560}
2561_ACEOF
2562rm -f conftest.$ac_objext
2563if { (ac_try="$ac_compile"
2564case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2567esac
2568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_compile") 2>conftest.er1
2570 ac_status=$?
2571 grep -v '^ *+' conftest.er1 >conftest.err
2572 rm -f conftest.er1
2573 cat conftest.err >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); } &&
2576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2577 { (case "(($ac_try" in
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2580esac
2581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582 (eval "$ac_try") 2>&5
2583 ac_status=$?
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; } &&
2586 { ac_try='test -s conftest.$ac_objext'
2587 { (case "(($ac_try" in
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2590esac
2591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592 (eval "$ac_try") 2>&5
2593 ac_status=$?
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; }; then
2596 ac_cv_prog_cc_g=yes
2597else
2598 echo "$as_me: failed program was:" >&5
2599sed 's/^/| /' conftest.$ac_ext >&5
2600
2601
2602fi
2603
2604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605fi
2606
2607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608fi
2609
2610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611 ac_c_werror_flag=$ac_save_c_werror_flag
2612fi
2613{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2614echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2615if test "$ac_test_CFLAGS" = set; then
2616 CFLAGS=$ac_save_CFLAGS
2617elif test $ac_cv_prog_cc_g = yes; then
2618 if test "$GCC" = yes; then
2619 CFLAGS="-g -O2"
2620 else
2621 CFLAGS="-g"
2622 fi
2623else
2624 if test "$GCC" = yes; then
2625 CFLAGS="-O2"
2626 else
2627 CFLAGS=
2628 fi
2629fi
2630{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2631echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2632if test "${ac_cv_prog_cc_c89+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2634else
2635 ac_cv_prog_cc_c89=no
2636ac_save_CC=$CC
2637cat >conftest.$ac_ext <<_ACEOF
2638/* confdefs.h. */
2639_ACEOF
2640cat confdefs.h >>conftest.$ac_ext
2641cat >>conftest.$ac_ext <<_ACEOF
2642/* end confdefs.h. */
2643#include <stdarg.h>
2644#include <stdio.h>
2645#include <sys/types.h>
2646#include <sys/stat.h>
2647/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2648struct buf { int x; };
2649FILE * (*rcsopen) (struct buf *, struct stat *, int);
2650static char *e (p, i)
2651 char **p;
2652 int i;
2653{
2654 return p[i];
2655}
2656static char *f (char * (*g) (char **, int), char **p, ...)
2657{
2658 char *s;
2659 va_list v;
2660 va_start (v,p);
2661 s = g (p, va_arg (v,int));
2662 va_end (v);
2663 return s;
2664}
2665
2666/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2667 function prototypes and stuff, but not '\xHH' hex character constants.
2668 These don't provoke an error unfortunately, instead are silently treated
2669 as 'x'. The following induces an error, until -std is added to get
2670 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2671 array size at least. It's necessary to write '\x00'==0 to get something
2672 that's true only with -std. */
2673int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2674
2675/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2676 inside strings and character constants. */
2677#define FOO(x) 'x'
2678int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2679
2680int test (int i, double x);
2681struct s1 {int (*f) (int a);};
2682struct s2 {int (*f) (double a);};
2683int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2684int argc;
2685char **argv;
2686int
2687main ()
2688{
2689return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2690 ;
2691 return 0;
2692}
2693_ACEOF
2694for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2695 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2696do
2697 CC="$ac_save_CC $ac_arg"
2698 rm -f conftest.$ac_objext
2699if { (ac_try="$ac_compile"
2700case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703esac
2704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_compile") 2>conftest.er1
2706 ac_status=$?
2707 grep -v '^ *+' conftest.er1 >conftest.err
2708 rm -f conftest.er1
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2713 { (case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2716esac
2717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_try") 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; } &&
2722 { ac_try='test -s conftest.$ac_objext'
2723 { (case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726esac
2727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_try") 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; }; then
2732 ac_cv_prog_cc_c89=$ac_arg
2733else
2734 echo "$as_me: failed program was:" >&5
2735sed 's/^/| /' conftest.$ac_ext >&5
2736
2737
2738fi
2739
2740rm -f core conftest.err conftest.$ac_objext
2741 test "x$ac_cv_prog_cc_c89" != "xno" && break
2742done
2743rm -f conftest.$ac_ext
2744CC=$ac_save_CC
2745
2746fi
2747# AC_CACHE_VAL
2748case "x$ac_cv_prog_cc_c89" in
2749 x)
2750 { echo "$as_me:$LINENO: result: none needed" >&5
2751echo "${ECHO_T}none needed" >&6; } ;;
2752 xno)
2753 { echo "$as_me:$LINENO: result: unsupported" >&5
2754echo "${ECHO_T}unsupported" >&6; } ;;
2755 *)
2756 CC="$CC $ac_cv_prog_cc_c89"
2757 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2758echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2759esac
2760
2761
2762ac_ext=c
2763ac_cpp='$CPP $CPPFLAGS'
2764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766ac_compiler_gnu=$ac_cv_c_compiler_gnu
2767
2768ac_ext=cpp
2769ac_cpp='$CXXCPP $CPPFLAGS'
2770ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2773if test -z "$CXX"; then
2774 if test -n "$CCC"; then
2775 CXX=$CCC
2776 else
2777 if test -n "$ac_tool_prefix"; then
2778 for ac_prog in clang++ llvm-g++ g++
2779 do
2780 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2781set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2782{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2784if test "${ac_cv_prog_CXX+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2786else
2787 if test -n "$CXX"; then
2788 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2789else
2790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH
2792do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2797 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2800 fi
2801done
2802done
2803IFS=$as_save_IFS
2804
2805fi
2806fi
2807CXX=$ac_cv_prog_CXX
2808if test -n "$CXX"; then
2809 { echo "$as_me:$LINENO: result: $CXX" >&5
2810echo "${ECHO_T}$CXX" >&6; }
2811else
2812 { echo "$as_me:$LINENO: result: no" >&5
2813echo "${ECHO_T}no" >&6; }
2814fi
2815
2816
2817 test -n "$CXX" && break
2818 done
2819fi
2820if test -z "$CXX"; then
2821 ac_ct_CXX=$CXX
2822 for ac_prog in clang++ llvm-g++ g++
2823do
2824 # Extract the first word of "$ac_prog", so it can be a program name with args.
2825set dummy $ac_prog; ac_word=$2
2826{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2828if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2830else
2831 if test -n "$ac_ct_CXX"; then
2832 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2833else
2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835for as_dir in $PATH
2836do
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2841 ac_cv_prog_ac_ct_CXX="$ac_prog"
2842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2844 fi
2845done
2846done
2847IFS=$as_save_IFS
2848
2849fi
2850fi
2851ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2852if test -n "$ac_ct_CXX"; then
2853 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2854echo "${ECHO_T}$ac_ct_CXX" >&6; }
2855else
2856 { echo "$as_me:$LINENO: result: no" >&5
2857echo "${ECHO_T}no" >&6; }
2858fi
2859
2860
2861 test -n "$ac_ct_CXX" && break
2862done
2863
2864 if test "x$ac_ct_CXX" = x; then
2865 CXX="g++"
2866 else
2867 case $cross_compiling:$ac_tool_warned in
2868yes:)
2869{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2870whose name does not start with the host triplet. If you think this
2871configuration is useful to you, please write to autoconf@gnu.org." >&5
2872echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2873whose name does not start with the host triplet. If you think this
2874configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2875ac_tool_warned=yes ;;
2876esac
2877 CXX=$ac_ct_CXX
2878 fi
2879fi
2880
2881 fi
2882fi
2883# Provide some information about the compiler.
2884echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2885ac_compiler=`set X $ac_compile; echo $2`
2886{ (ac_try="$ac_compiler --version >&5"
2887case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2890esac
2891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_compiler --version >&5") 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }
2896{ (ac_try="$ac_compiler -v >&5"
2897case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900esac
2901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compiler -v >&5") 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2906{ (ac_try="$ac_compiler -V >&5"
2907case "(($ac_try" in
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2910esac
2911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_compiler -V >&5") 2>&5
2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }
2916
2917{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2918echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2919if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2921else
2922 cat >conftest.$ac_ext <<_ACEOF
2923/* confdefs.h. */
2924_ACEOF
2925cat confdefs.h >>conftest.$ac_ext
2926cat >>conftest.$ac_ext <<_ACEOF
2927/* end confdefs.h. */
2928
2929int
2930main ()
2931{
2932#ifndef __GNUC__
2933 choke me
2934#endif
2935
2936 ;
2937 return 0;
2938}
2939_ACEOF
2940rm -f conftest.$ac_objext
2941if { (ac_try="$ac_compile"
2942case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2945esac
2946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_compile") 2>conftest.er1
2948 ac_status=$?
2949 grep -v '^ *+' conftest.er1 >conftest.err
2950 rm -f conftest.er1
2951 cat conftest.err >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); } &&
2954 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2955 { (case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2958esac
2959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_try") 2>&5
2961 ac_status=$?
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; } &&
2964 { ac_try='test -s conftest.$ac_objext'
2965 { (case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968esac
2969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_try") 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2974 ac_compiler_gnu=yes
2975else
2976 echo "$as_me: failed program was:" >&5
2977sed 's/^/| /' conftest.$ac_ext >&5
2978
2979 ac_compiler_gnu=no
2980fi
2981
2982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2983ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2984
2985fi
2986{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2987echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2988GXX=`test $ac_compiler_gnu = yes && echo yes`
2989ac_test_CXXFLAGS=${CXXFLAGS+set}
2990ac_save_CXXFLAGS=$CXXFLAGS
2991{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2992echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2993if test "${ac_cv_prog_cxx_g+set}" = set; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2995else
2996 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2997 ac_cxx_werror_flag=yes
2998 ac_cv_prog_cxx_g=no
2999 CXXFLAGS="-g"
3000 cat >conftest.$ac_ext <<_ACEOF
3001/* confdefs.h. */
3002_ACEOF
3003cat confdefs.h >>conftest.$ac_ext
3004cat >>conftest.$ac_ext <<_ACEOF
3005/* end confdefs.h. */
3006
3007int
3008main ()
3009{
3010
3011 ;
3012 return 0;
3013}
3014_ACEOF
3015rm -f conftest.$ac_objext
3016if { (ac_try="$ac_compile"
3017case "(($ac_try" in
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3020esac
3021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022 (eval "$ac_compile") 2>conftest.er1
3023 ac_status=$?
3024 grep -v '^ *+' conftest.er1 >conftest.err
3025 rm -f conftest.er1
3026 cat conftest.err >&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } &&
3029 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3030 { (case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033esac
3034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_try") 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; } &&
3039 { ac_try='test -s conftest.$ac_objext'
3040 { (case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043esac
3044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_try") 2>&5
3046 ac_status=$?
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; }; then
3049 ac_cv_prog_cxx_g=yes
3050else
3051 echo "$as_me: failed program was:" >&5
3052sed 's/^/| /' conftest.$ac_ext >&5
3053
3054 CXXFLAGS=""
3055 cat >conftest.$ac_ext <<_ACEOF
3056/* confdefs.h. */
3057_ACEOF
3058cat confdefs.h >>conftest.$ac_ext
3059cat >>conftest.$ac_ext <<_ACEOF
3060/* end confdefs.h. */
3061
3062int
3063main ()
3064{
3065
3066 ;
3067 return 0;
3068}
3069_ACEOF
3070rm -f conftest.$ac_objext
3071if { (ac_try="$ac_compile"
3072case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075esac
3076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_compile") 2>conftest.er1
3078 ac_status=$?
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
3089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; } &&
3094 { ac_try='test -s conftest.$ac_objext'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098esac
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3104 :
3105else
3106 echo "$as_me: failed program was:" >&5
3107sed 's/^/| /' conftest.$ac_ext >&5
3108
3109 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3110 CXXFLAGS="-g"
3111 cat >conftest.$ac_ext <<_ACEOF
3112/* confdefs.h. */
3113_ACEOF
3114cat confdefs.h >>conftest.$ac_ext
3115cat >>conftest.$ac_ext <<_ACEOF
3116/* end confdefs.h. */
3117
3118int
3119main ()
3120{
3121
3122 ;
3123 return 0;
3124}
3125_ACEOF
3126rm -f conftest.$ac_objext
3127if { (ac_try="$ac_compile"
3128case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131esac
3132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_compile") 2>conftest.er1
3134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } &&
3140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3141 { (case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3144esac
3145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_try") 2>&5
3147 ac_status=$?
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; } &&
3150 { ac_try='test -s conftest.$ac_objext'
3151 { (case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154esac
3155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_try") 2>&5
3157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; }; then
3160 ac_cv_prog_cxx_g=yes
3161else
3162 echo "$as_me: failed program was:" >&5
3163sed 's/^/| /' conftest.$ac_ext >&5
3164
3165
3166fi
3167
3168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169fi
3170
3171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172fi
3173
3174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3176fi
3177{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3178echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3179if test "$ac_test_CXXFLAGS" = set; then
3180 CXXFLAGS=$ac_save_CXXFLAGS
3181elif test $ac_cv_prog_cxx_g = yes; then
3182 if test "$GXX" = yes; then
3183 CXXFLAGS="-g -O2"
3184 else
3185 CXXFLAGS="-g"
3186 fi
3187else
3188 if test "$GXX" = yes; then
3189 CXXFLAGS="-O2"
3190 else
3191 CXXFLAGS=
3192 fi
3193fi
3194ac_ext=c
3195ac_cpp='$CPP $CPPFLAGS'
3196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3198ac_compiler_gnu=$ac_cv_c_compiler_gnu
3199
3200ac_ext=c
3201ac_cpp='$CPP $CPPFLAGS'
3202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204ac_compiler_gnu=$ac_cv_c_compiler_gnu
3205{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3206echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3207# On Suns, sometimes $CPP names a directory.
3208if test -n "$CPP" && test -d "$CPP"; then
3209 CPP=
3210fi
3211if test -z "$CPP"; then
3212 if test "${ac_cv_prog_CPP+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3214else
3215 # Double quotes because CPP needs to be expanded
3216 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3217 do
3218 ac_preproc_ok=false
3219for ac_c_preproc_warn_flag in '' yes
3220do
3221 # Use a header file that comes with gcc, so configuring glibc
3222 # with a fresh cross-compiler works.
3223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3224 # <limits.h> exists even on freestanding compilers.
3225 # On the NeXT, cc -E runs the code through the compiler's parser,
3226 # not just through cpp. "Syntax error" is here to catch this case.
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#ifdef __STDC__
3234# include <limits.h>
3235#else
3236# include <assert.h>
3237#endif
3238 Syntax error
3239_ACEOF
3240if { (ac_try="$ac_cpp conftest.$ac_ext"
3241case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244esac
3245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3247 ac_status=$?
3248 grep -v '^ *+' conftest.er1 >conftest.err
3249 rm -f conftest.er1
3250 cat conftest.err >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } >/dev/null; then
3253 if test -s conftest.err; then
3254 ac_cpp_err=$ac_c_preproc_warn_flag
3255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3256 else
3257 ac_cpp_err=
3258 fi
3259else
3260 ac_cpp_err=yes
3261fi
3262if test -z "$ac_cpp_err"; then
3263 :
3264else
3265 echo "$as_me: failed program was:" >&5
3266sed 's/^/| /' conftest.$ac_ext >&5
3267
3268 # Broken: fails on valid input.
3269continue
3270fi
3271
3272rm -f conftest.err conftest.$ac_ext
3273
3274 # OK, works on sane cases. Now check whether nonexistent headers
3275 # can be detected and how.
3276 cat >conftest.$ac_ext <<_ACEOF
3277/* confdefs.h. */
3278_ACEOF
3279cat confdefs.h >>conftest.$ac_ext
3280cat >>conftest.$ac_ext <<_ACEOF
3281/* end confdefs.h. */
3282#include <ac_nonexistent.h>
3283_ACEOF
3284if { (ac_try="$ac_cpp conftest.$ac_ext"
3285case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288esac
3289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3291 ac_status=$?
3292 grep -v '^ *+' conftest.er1 >conftest.err
3293 rm -f conftest.er1
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } >/dev/null; then
3297 if test -s conftest.err; then
3298 ac_cpp_err=$ac_c_preproc_warn_flag
3299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3300 else
3301 ac_cpp_err=
3302 fi
3303else
3304 ac_cpp_err=yes
3305fi
3306if test -z "$ac_cpp_err"; then
3307 # Broken: success on invalid input.
3308continue
3309else
3310 echo "$as_me: failed program was:" >&5
3311sed 's/^/| /' conftest.$ac_ext >&5
3312
3313 # Passes both tests.
3314ac_preproc_ok=:
3315break
3316fi
3317
3318rm -f conftest.err conftest.$ac_ext
3319
3320done
3321# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3322rm -f conftest.err conftest.$ac_ext
3323if $ac_preproc_ok; then
3324 break
3325fi
3326
3327 done
3328 ac_cv_prog_CPP=$CPP
3329
3330fi
3331 CPP=$ac_cv_prog_CPP
3332else
3333 ac_cv_prog_CPP=$CPP
3334fi
3335{ echo "$as_me:$LINENO: result: $CPP" >&5
3336echo "${ECHO_T}$CPP" >&6; }
3337ac_preproc_ok=false
3338for ac_c_preproc_warn_flag in '' yes
3339do
3340 # Use a header file that comes with gcc, so configuring glibc
3341 # with a fresh cross-compiler works.
3342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3343 # <limits.h> exists even on freestanding compilers.
3344 # On the NeXT, cc -E runs the code through the compiler's parser,
3345 # not just through cpp. "Syntax error" is here to catch this case.
3346 cat >conftest.$ac_ext <<_ACEOF
3347/* confdefs.h. */
3348_ACEOF
3349cat confdefs.h >>conftest.$ac_ext
3350cat >>conftest.$ac_ext <<_ACEOF
3351/* end confdefs.h. */
3352#ifdef __STDC__
3353# include <limits.h>
3354#else
3355# include <assert.h>
3356#endif
3357 Syntax error
3358_ACEOF
3359if { (ac_try="$ac_cpp conftest.$ac_ext"
3360case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3363esac
3364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3366 ac_status=$?
3367 grep -v '^ *+' conftest.er1 >conftest.err
3368 rm -f conftest.er1
3369 cat conftest.err >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } >/dev/null; then
3372 if test -s conftest.err; then
3373 ac_cpp_err=$ac_c_preproc_warn_flag
3374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3375 else
3376 ac_cpp_err=
3377 fi
3378else
3379 ac_cpp_err=yes
3380fi
3381if test -z "$ac_cpp_err"; then
3382 :
3383else
3384 echo "$as_me: failed program was:" >&5
3385sed 's/^/| /' conftest.$ac_ext >&5
3386
3387 # Broken: fails on valid input.
3388continue
3389fi
3390
3391rm -f conftest.err conftest.$ac_ext
3392
3393 # OK, works on sane cases. Now check whether nonexistent headers
3394 # can be detected and how.
3395 cat >conftest.$ac_ext <<_ACEOF
3396/* confdefs.h. */
3397_ACEOF
3398cat confdefs.h >>conftest.$ac_ext
3399cat >>conftest.$ac_ext <<_ACEOF
3400/* end confdefs.h. */
3401#include <ac_nonexistent.h>
3402_ACEOF
3403if { (ac_try="$ac_cpp conftest.$ac_ext"
3404case "(($ac_try" in
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3407esac
3408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3410 ac_status=$?
3411 grep -v '^ *+' conftest.er1 >conftest.err
3412 rm -f conftest.er1
3413 cat conftest.err >&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } >/dev/null; then
3416 if test -s conftest.err; then
3417 ac_cpp_err=$ac_c_preproc_warn_flag
3418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3419 else
3420 ac_cpp_err=
3421 fi
3422else
3423 ac_cpp_err=yes
3424fi
3425if test -z "$ac_cpp_err"; then
3426 # Broken: success on invalid input.
3427continue
3428else
3429 echo "$as_me: failed program was:" >&5
3430sed 's/^/| /' conftest.$ac_ext >&5
3431
3432 # Passes both tests.
3433ac_preproc_ok=:
3434break
3435fi
3436
3437rm -f conftest.err conftest.$ac_ext
3438
3439done
3440# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3441rm -f conftest.err conftest.$ac_ext
3442if $ac_preproc_ok; then
3443 :
3444else
3445 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3446See \`config.log' for more details." >&5
3447echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3448See \`config.log' for more details." >&2;}
3449 { (exit 1); exit 1; }; }
3450fi
3451
3452ac_ext=c
3453ac_cpp='$CPP $CPPFLAGS'
3454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457
3458
3459
3460
3461# Check whether --enable-polly was given.
3462if test "${enable_polly+set}" = set; then
3463 enableval=$enable_polly;
3464else
3465 enableval=default
3466fi
3467
3468case "$enableval" in
3469 yes) ENABLE_POLLY=1
3470 ;;
3471 no) ENABLE_POLLY=0
3472 ;;
3473 default) ENABLE_POLLY=1
3474 ;;
3475 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3476echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3477 { (exit 1); exit 1; }; } ;;
3478esac
3479
3480
3481if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3482 LLVM_HAS_POLLY=1
3483
3484 subdirs="$subdirs tools/polly"
3485
3486fi
3487
3488
3489# Make sure we can run config.sub.
3490$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3491 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3492echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3493 { (exit 1); exit 1; }; }
3494
3495{ echo "$as_me:$LINENO: checking build system type" >&5
3496echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3497if test "${ac_cv_build+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499else
3500 ac_build_alias=$build_alias
3501test "x$ac_build_alias" = x &&
3502 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3503test "x$ac_build_alias" = x &&
3504 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3505echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3506 { (exit 1); exit 1; }; }
3507ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3508 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3509echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3510 { (exit 1); exit 1; }; }
3511
3512fi
3513{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3514echo "${ECHO_T}$ac_cv_build" >&6; }
3515case $ac_cv_build in
3516*-*-*) ;;
3517*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3518echo "$as_me: error: invalid value of canonical build" >&2;}
3519 { (exit 1); exit 1; }; };;
3520esac
3521build=$ac_cv_build
3522ac_save_IFS=$IFS; IFS='-'
3523set x $ac_cv_build
3524shift
3525build_cpu=$1
3526build_vendor=$2
3527shift; shift
3528# Remember, the first character of IFS is used to create $*,
3529# except with old shells:
3530build_os=$*
3531IFS=$ac_save_IFS
3532case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3533
3534
3535{ echo "$as_me:$LINENO: checking host system type" >&5
3536echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3537if test "${ac_cv_host+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3539else
3540 if test "x$host_alias" = x; then
3541 ac_cv_host=$ac_cv_build
3542else
3543 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3544 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3545echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3546 { (exit 1); exit 1; }; }
3547fi
3548
3549fi
3550{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3551echo "${ECHO_T}$ac_cv_host" >&6; }
3552case $ac_cv_host in
3553*-*-*) ;;
3554*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3555echo "$as_me: error: invalid value of canonical host" >&2;}
3556 { (exit 1); exit 1; }; };;
3557esac
3558host=$ac_cv_host
3559ac_save_IFS=$IFS; IFS='-'
3560set x $ac_cv_host
3561shift
3562host_cpu=$1
3563host_vendor=$2
3564shift; shift
3565# Remember, the first character of IFS is used to create $*,
3566# except with old shells:
3567host_os=$*
3568IFS=$ac_save_IFS
3569case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3570
3571
3572{ echo "$as_me:$LINENO: checking target system type" >&5
3573echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3574if test "${ac_cv_target+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3576else
3577 if test "x$target_alias" = x; then
3578 ac_cv_target=$ac_cv_host
3579else
3580 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3581 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3582echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3583 { (exit 1); exit 1; }; }
3584fi
3585
3586fi
3587{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3588echo "${ECHO_T}$ac_cv_target" >&6; }
3589case $ac_cv_target in
3590*-*-*) ;;
3591*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3592echo "$as_me: error: invalid value of canonical target" >&2;}
3593 { (exit 1); exit 1; }; };;
3594esac
3595target=$ac_cv_target
3596ac_save_IFS=$IFS; IFS='-'
3597set x $ac_cv_target
3598shift
3599target_cpu=$1
3600target_vendor=$2
3601shift; shift
3602# Remember, the first character of IFS is used to create $*,
3603# except with old shells:
3604target_os=$*
3605IFS=$ac_save_IFS
3606case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3607
3608
3609# The aliases save the names the user supplied, while $host etc.
3610# will get canonicalized.
3611test -n "$target_alias" &&
3612 test "$program_prefix$program_suffix$program_transform_name" = \
3613 NONENONEs,x,x, &&
3614 program_prefix=${target_alias}-
3615
3616{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3617echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3618if test "${llvm_cv_os_type+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3620else
3621 case $host in
3622 *-*-aix*)
3623 llvm_cv_link_all_option="-Wl,--whole-archive"
3624 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3625 llvm_cv_os_type="AIX"
3626 llvm_cv_platform_type="Unix" ;;
3627 *-*-irix*)
3628 llvm_cv_link_all_option="-Wl,--whole-archive"
3629 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3630 llvm_cv_os_type="IRIX"
3631 llvm_cv_platform_type="Unix" ;;
3632 *-*-cygwin*)
3633 llvm_cv_link_all_option="-Wl,--whole-archive"
3634 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3635 llvm_cv_os_type="Cygwin"
3636 llvm_cv_platform_type="Unix" ;;
3637 *-*-darwin*)
3638 llvm_cv_link_all_option="-Wl,-all_load"
3639 llvm_cv_no_link_all_option="-Wl,-noall_load"
3640 llvm_cv_os_type="Darwin"
3641 llvm_cv_platform_type="Unix" ;;
3642 *-*-minix*)
3643 llvm_cv_link_all_option="-Wl,-all_load"
3644 llvm_cv_no_link_all_option="-Wl,-noall_load"
3645 llvm_cv_os_type="Minix"
3646 llvm_cv_platform_type="Unix" ;;
3647 *-*-freebsd*)
3648 llvm_cv_link_all_option="-Wl,--whole-archive"
3649 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3650 llvm_cv_os_type="FreeBSD"
3651 llvm_cv_platform_type="Unix" ;;
3652 *-*-openbsd*)
3653 llvm_cv_link_all_option="-Wl,--whole-archive"
3654 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3655 llvm_cv_os_type="OpenBSD"
3656 llvm_cv_platform_type="Unix" ;;
3657 *-*-netbsd*)
3658 llvm_cv_link_all_option="-Wl,--whole-archive"
3659 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3660 llvm_cv_os_type="NetBSD"
3661 llvm_cv_platform_type="Unix" ;;
3662 *-*-dragonfly*)
3663 llvm_cv_link_all_option="-Wl,--whole-archive"
3664 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3665 llvm_cv_os_type="DragonFly"
3666 llvm_cv_platform_type="Unix" ;;
3667 *-*-hpux*)
3668 llvm_cv_link_all_option="-Wl,--whole-archive"
3669 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3670 llvm_cv_os_type="HP-UX"
3671 llvm_cv_platform_type="Unix" ;;
3672 *-*-interix*)
3673 llvm_cv_link_all_option="-Wl,--whole-archive"
3674 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3675 llvm_cv_os_type="Interix"
3676 llvm_cv_platform_type="Unix" ;;
3677 *-*-linux*)
3678 llvm_cv_link_all_option="-Wl,--whole-archive"
3679 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680 llvm_cv_os_type="Linux"
3681 llvm_cv_platform_type="Unix" ;;
3682 *-*-solaris*)
3683 llvm_cv_link_all_option="-Wl,-z,allextract"
3684 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3685 llvm_cv_os_type="SunOS"
3686 llvm_cv_platform_type="Unix" ;;
3687 *-*-auroraux*)
3688 llvm_cv_link_all_option="-Wl,-z,allextract"
3689 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3690 llvm_cv_os_type="AuroraUX"
3691 llvm_cv_platform_type="Unix" ;;
3692 *-*-win32*)
3693 llvm_cv_link_all_option="-Wl,--whole-archive"
3694 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695 llvm_cv_os_type="Win32"
3696 llvm_cv_platform_type="Win32" ;;
3697 *-*-mingw*)
3698 llvm_cv_link_all_option="-Wl,--whole-archive"
3699 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3700 llvm_cv_os_type="MingW"
3701 llvm_cv_platform_type="Win32" ;;
3702 *-*-haiku*)
3703 llvm_cv_link_all_option="-Wl,--whole-archive"
3704 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705 llvm_cv_os_type="Haiku"
3706 llvm_cv_platform_type="Unix" ;;
3707 *-unknown-eabi*)
3708 llvm_cv_link_all_option="-Wl,--whole-archive"
3709 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710 llvm_cv_os_type="Freestanding"
3711 llvm_cv_platform_type="Unix" ;;
3712 *-unknown-elf*)
3713 llvm_cv_link_all_option="-Wl,--whole-archive"
3714 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715 llvm_cv_os_type="Freestanding"
3716 llvm_cv_platform_type="Unix" ;;
3717 *)
3718 llvm_cv_link_all_option=""
3719 llvm_cv_no_link_all_option=""
3720 llvm_cv_os_type="Unknown"
3721 llvm_cv_platform_type="Unknown" ;;
3722esac
3723fi
3724{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3725echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3726
3727{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3728echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3729if test "${llvm_cv_target_os_type+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3731else
3732 case $target in
3733 *-*-aix*)
3734 llvm_cv_target_os_type="AIX" ;;
3735 *-*-irix*)
3736 llvm_cv_target_os_type="IRIX" ;;
3737 *-*-cygwin*)
3738 llvm_cv_target_os_type="Cygwin" ;;
3739 *-*-darwin*)
3740 llvm_cv_target_os_type="Darwin" ;;
3741 *-*-minix*)
3742 llvm_cv_target_os_type="Minix" ;;
3743 *-*-freebsd*)
3744 llvm_cv_target_os_type="FreeBSD" ;;
3745 *-*-openbsd*)
3746 llvm_cv_target_os_type="OpenBSD" ;;
3747 *-*-netbsd*)
3748 llvm_cv_target_os_type="NetBSD" ;;
3749 *-*-dragonfly*)
3750 llvm_cv_target_os_type="DragonFly" ;;
3751 *-*-hpux*)
3752 llvm_cv_target_os_type="HP-UX" ;;
3753 *-*-interix*)
3754 llvm_cv_target_os_type="Interix" ;;
3755 *-*-linux*)
3756 llvm_cv_target_os_type="Linux" ;;
3757 *-*-solaris*)
3758 llvm_cv_target_os_type="SunOS" ;;
3759 *-*-auroraux*)
3760 llvm_cv_target_os_type="AuroraUX" ;;
3761 *-*-win32*)
3762 llvm_cv_target_os_type="Win32" ;;
3763 *-*-mingw*)
3764 llvm_cv_target_os_type="MingW" ;;
3765 *-*-haiku*)
3766 llvm_cv_target_os_type="Haiku" ;;
3767 *-*-rtems*)
3768 llvm_cv_target_os_type="RTEMS" ;;
3769 *-*-nacl*)
3770 llvm_cv_target_os_type="NativeClient" ;;
3771 *-unknown-eabi*)
3772 llvm_cv_target_os_type="Freestanding" ;;
3773 *)
3774 llvm_cv_target_os_type="Unknown" ;;
3775esac
3776fi
3777{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3778echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3779
3780if test "$llvm_cv_os_type" = "Unknown" ; then
3781 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3782echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3783 { (exit 1); exit 1; }; }
3784fi
3785
3786OS=$llvm_cv_os_type
3787
3788HOST_OS=$llvm_cv_os_type
3789
3790TARGET_OS=$llvm_cv_target_os_type
3791
3792
3793LINKALL=$llvm_cv_link_all_option
3794
3795NOLINKALL=$llvm_cv_no_link_all_option
3796
3797
3798case $llvm_cv_platform_type in
3799 Unix)
3800
3801cat >>confdefs.h <<\_ACEOF
3802#define LLVM_ON_UNIX 1
3803_ACEOF
3804
3805 LLVM_ON_UNIX=1
3806
3807 LLVM_ON_WIN32=0
3808
3809 ;;
3810 Win32)
3811
3812cat >>confdefs.h <<\_ACEOF
3813#define LLVM_ON_WIN32 1
3814_ACEOF
3815
3816 LLVM_ON_UNIX=0
3817
3818 LLVM_ON_WIN32=1
3819
3820 ;;
3821esac
3822
3823{ echo "$as_me:$LINENO: checking target architecture" >&5
3824echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3825if test "${llvm_cv_target_arch+set}" = set; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3827else
3828 case $target in
3829 i?86-*) llvm_cv_target_arch="x86" ;;
3830 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3831 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3832 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003833 arm*-*) llvm_cv_target_arch="ARM" ;;
3834 mips-*) llvm_cv_target_arch="Mips" ;;
3835 xcore-*) llvm_cv_target_arch="XCore" ;;
3836 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003837 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003838 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3839 ptx-*) llvm_cv_target_arch="PTX" ;;
3840 *) llvm_cv_target_arch="Unknown" ;;
3841esac
3842fi
3843{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3844echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3845
3846if test "$llvm_cv_target_arch" = "Unknown" ; then
3847 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3848echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3849fi
3850
3851# Determine the LLVM native architecture for the target
3852case "$llvm_cv_target_arch" in
3853 x86) LLVM_NATIVE_ARCH="X86" ;;
3854 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3855 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3856esac
3857
3858ARCH=$llvm_cv_target_arch
3859
3860
3861
3862
3863{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3864echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3865if test "${ac_cv_path_GREP+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867else
3868 # Extract the first word of "grep ggrep" to use in msg output
3869if test -z "$GREP"; then
3870set dummy grep ggrep; ac_prog_name=$2
3871if test "${ac_cv_path_GREP+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3873else
3874 ac_path_GREP_found=false
3875# Loop through the user's path and test for each of PROGNAME-LIST
3876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3878do
3879 IFS=$as_save_IFS
3880 test -z "$as_dir" && as_dir=.
3881 for ac_prog in grep ggrep; do
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3884 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3885 # Check for GNU ac_path_GREP and select it if it is found.
3886 # Check for GNU $ac_path_GREP
3887case `"$ac_path_GREP" --version 2>&1` in
3888*GNU*)
3889 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3890*)
3891 ac_count=0
3892 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3893 while :
3894 do
3895 cat "conftest.in" "conftest.in" >"conftest.tmp"
3896 mv "conftest.tmp" "conftest.in"
3897 cp "conftest.in" "conftest.nl"
3898 echo 'GREP' >> "conftest.nl"
3899 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3900 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3901 ac_count=`expr $ac_count + 1`
3902 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3903 # Best one so far, save it but keep looking for a better one
3904 ac_cv_path_GREP="$ac_path_GREP"
3905 ac_path_GREP_max=$ac_count
3906 fi
3907 # 10*(2^10) chars as input seems more than enough
3908 test $ac_count -gt 10 && break
3909 done
3910 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3911esac
3912
3913
3914 $ac_path_GREP_found && break 3
3915 done
3916done
3917
3918done
3919IFS=$as_save_IFS
3920
3921
3922fi
3923
3924GREP="$ac_cv_path_GREP"
3925if test -z "$GREP"; then
3926 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3927echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3928 { (exit 1); exit 1; }; }
3929fi
3930
3931else
3932 ac_cv_path_GREP=$GREP
3933fi
3934
3935
3936fi
3937{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3938echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3939 GREP="$ac_cv_path_GREP"
3940
3941
3942{ echo "$as_me:$LINENO: checking for egrep" >&5
3943echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3944if test "${ac_cv_path_EGREP+set}" = set; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3946else
3947 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3948 then ac_cv_path_EGREP="$GREP -E"
3949 else
3950 # Extract the first word of "egrep" to use in msg output
3951if test -z "$EGREP"; then
3952set dummy egrep; ac_prog_name=$2
3953if test "${ac_cv_path_EGREP+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3955else
3956 ac_path_EGREP_found=false
3957# Loop through the user's path and test for each of PROGNAME-LIST
3958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3960do
3961 IFS=$as_save_IFS
3962 test -z "$as_dir" && as_dir=.
3963 for ac_prog in egrep; do
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3966 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3967 # Check for GNU ac_path_EGREP and select it if it is found.
3968 # Check for GNU $ac_path_EGREP
3969case `"$ac_path_EGREP" --version 2>&1` in
3970*GNU*)
3971 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3972*)
3973 ac_count=0
3974 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3975 while :
3976 do
3977 cat "conftest.in" "conftest.in" >"conftest.tmp"
3978 mv "conftest.tmp" "conftest.in"
3979 cp "conftest.in" "conftest.nl"
3980 echo 'EGREP' >> "conftest.nl"
3981 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3983 ac_count=`expr $ac_count + 1`
3984 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3985 # Best one so far, save it but keep looking for a better one
3986 ac_cv_path_EGREP="$ac_path_EGREP"
3987 ac_path_EGREP_max=$ac_count
3988 fi
3989 # 10*(2^10) chars as input seems more than enough
3990 test $ac_count -gt 10 && break
3991 done
3992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3993esac
3994
3995
3996 $ac_path_EGREP_found && break 3
3997 done
3998done
3999
4000done
4001IFS=$as_save_IFS
4002
4003
4004fi
4005
4006EGREP="$ac_cv_path_EGREP"
4007if test -z "$EGREP"; then
4008 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4009echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4010 { (exit 1); exit 1; }; }
4011fi
4012
4013else
4014 ac_cv_path_EGREP=$EGREP
4015fi
4016
4017
4018 fi
4019fi
4020{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4021echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4022 EGREP="$ac_cv_path_EGREP"
4023
4024
4025{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4026echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4027if test "${ac_cv_header_stdc+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4029else
4030 cat >conftest.$ac_ext <<_ACEOF
4031/* confdefs.h. */
4032_ACEOF
4033cat confdefs.h >>conftest.$ac_ext
4034cat >>conftest.$ac_ext <<_ACEOF
4035/* end confdefs.h. */
4036#include <stdlib.h>
4037#include <stdarg.h>
4038#include <string.h>
4039#include <float.h>
4040
4041int
4042main ()
4043{
4044
4045 ;
4046 return 0;
4047}
4048_ACEOF
4049rm -f conftest.$ac_objext
4050if { (ac_try="$ac_compile"
4051case "(($ac_try" in
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4054esac
4055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4056 (eval "$ac_compile") 2>conftest.er1
4057 ac_status=$?
4058 grep -v '^ *+' conftest.er1 >conftest.err
4059 rm -f conftest.er1
4060 cat conftest.err >&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } &&
4063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4064 { (case "(($ac_try" in
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4067esac
4068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069 (eval "$ac_try") 2>&5
4070 ac_status=$?
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; } &&
4073 { ac_try='test -s conftest.$ac_objext'
4074 { (case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4077esac
4078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_try") 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4083 ac_cv_header_stdc=yes
4084else
4085 echo "$as_me: failed program was:" >&5
4086sed 's/^/| /' conftest.$ac_ext >&5
4087
4088 ac_cv_header_stdc=no
4089fi
4090
4091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092
4093if test $ac_cv_header_stdc = yes; then
4094 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4095 cat >conftest.$ac_ext <<_ACEOF
4096/* confdefs.h. */
4097_ACEOF
4098cat confdefs.h >>conftest.$ac_ext
4099cat >>conftest.$ac_ext <<_ACEOF
4100/* end confdefs.h. */
4101#include <string.h>
4102
4103_ACEOF
4104if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4105 $EGREP "memchr" >/dev/null 2>&1; then
4106 :
4107else
4108 ac_cv_header_stdc=no
4109fi
4110rm -f conftest*
4111
4112fi
4113
4114if test $ac_cv_header_stdc = yes; then
4115 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4116 cat >conftest.$ac_ext <<_ACEOF
4117/* confdefs.h. */
4118_ACEOF
4119cat confdefs.h >>conftest.$ac_ext
4120cat >>conftest.$ac_ext <<_ACEOF
4121/* end confdefs.h. */
4122#include <stdlib.h>
4123
4124_ACEOF
4125if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4126 $EGREP "free" >/dev/null 2>&1; then
4127 :
4128else
4129 ac_cv_header_stdc=no
4130fi
4131rm -f conftest*
4132
4133fi
4134
4135if test $ac_cv_header_stdc = yes; then
4136 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4137 if test "$cross_compiling" = yes; then
4138 :
4139else
4140 cat >conftest.$ac_ext <<_ACEOF
4141/* confdefs.h. */
4142_ACEOF
4143cat confdefs.h >>conftest.$ac_ext
4144cat >>conftest.$ac_ext <<_ACEOF
4145/* end confdefs.h. */
4146#include <ctype.h>
4147#include <stdlib.h>
4148#if ((' ' & 0x0FF) == 0x020)
4149# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4150# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4151#else
4152# define ISLOWER(c) \
4153 (('a' <= (c) && (c) <= 'i') \
4154 || ('j' <= (c) && (c) <= 'r') \
4155 || ('s' <= (c) && (c) <= 'z'))
4156# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4157#endif
4158
4159#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4160int
4161main ()
4162{
4163 int i;
4164 for (i = 0; i < 256; i++)
4165 if (XOR (islower (i), ISLOWER (i))
4166 || toupper (i) != TOUPPER (i))
4167 return 2;
4168 return 0;
4169}
4170_ACEOF
4171rm -f conftest$ac_exeext
4172if { (ac_try="$ac_link"
4173case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4176esac
4177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_link") 2>&5
4179 ac_status=$?
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4182 { (case "(($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_try") 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
4191 :
4192else
4193 echo "$as_me: program exited with status $ac_status" >&5
4194echo "$as_me: failed program was:" >&5
4195sed 's/^/| /' conftest.$ac_ext >&5
4196
4197( exit $ac_status )
4198ac_cv_header_stdc=no
4199fi
4200rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4201fi
4202
4203
4204fi
4205fi
4206{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4207echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4208if test $ac_cv_header_stdc = yes; then
4209
4210cat >>confdefs.h <<\_ACEOF
4211#define STDC_HEADERS 1
4212_ACEOF
4213
4214fi
4215
4216# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4227 inttypes.h stdint.h unistd.h
4228do
4229as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4230{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4232if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4234else
4235 cat >conftest.$ac_ext <<_ACEOF
4236/* confdefs.h. */
4237_ACEOF
4238cat confdefs.h >>conftest.$ac_ext
4239cat >>conftest.$ac_ext <<_ACEOF
4240/* end confdefs.h. */
4241$ac_includes_default
4242
4243#include <$ac_header>
4244_ACEOF
4245rm -f conftest.$ac_objext
4246if { (ac_try="$ac_compile"
4247case "(($ac_try" in
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4250esac
4251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252 (eval "$ac_compile") 2>conftest.er1
4253 ac_status=$?
4254 grep -v '^ *+' conftest.er1 >conftest.err
4255 rm -f conftest.er1
4256 cat conftest.err >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } &&
4259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4260 { (case "(($ac_try" in
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4263esac
4264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265 (eval "$ac_try") 2>&5
4266 ac_status=$?
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; } &&
4269 { ac_try='test -s conftest.$ac_objext'
4270 { (case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4273esac
4274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_try") 2>&5
4276 ac_status=$?
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; }; then
4279 eval "$as_ac_Header=yes"
4280else
4281 echo "$as_me: failed program was:" >&5
4282sed 's/^/| /' conftest.$ac_ext >&5
4283
4284 eval "$as_ac_Header=no"
4285fi
4286
4287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4288fi
4289ac_res=`eval echo '${'$as_ac_Header'}'`
4290 { echo "$as_me:$LINENO: result: $ac_res" >&5
4291echo "${ECHO_T}$ac_res" >&6; }
4292if test `eval echo '${'$as_ac_Header'}'` = yes; then
4293 cat >>confdefs.h <<_ACEOF
4294#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4295_ACEOF
4296
4297fi
4298
4299done
4300
4301
4302{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4303echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4304if test "${ac_cv_c_bigendian+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4306else
4307 # See if sys/param.h defines the BYTE_ORDER macro.
4308cat >conftest.$ac_ext <<_ACEOF
4309/* confdefs.h. */
4310_ACEOF
4311cat confdefs.h >>conftest.$ac_ext
4312cat >>conftest.$ac_ext <<_ACEOF
4313/* end confdefs.h. */
4314#include <sys/types.h>
4315#include <sys/param.h>
4316
4317int
4318main ()
4319{
4320#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4321 bogus endian macros
4322#endif
4323
4324 ;
4325 return 0;
4326}
4327_ACEOF
4328rm -f conftest.$ac_objext
4329if { (ac_try="$ac_compile"
4330case "(($ac_try" in
4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4333esac
4334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4335 (eval "$ac_compile") 2>conftest.er1
4336 ac_status=$?
4337 grep -v '^ *+' conftest.er1 >conftest.err
4338 rm -f conftest.er1
4339 cat conftest.err >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } &&
4342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4343 { (case "(($ac_try" in
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4346esac
4347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_try") 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; } &&
4352 { ac_try='test -s conftest.$ac_objext'
4353 { (case "(($ac_try" in
4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355 *) ac_try_echo=$ac_try;;
4356esac
4357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4358 (eval "$ac_try") 2>&5
4359 ac_status=$?
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; }; then
4362 # It does; now see whether it defined to BIG_ENDIAN or not.
4363cat >conftest.$ac_ext <<_ACEOF
4364/* confdefs.h. */
4365_ACEOF
4366cat confdefs.h >>conftest.$ac_ext
4367cat >>conftest.$ac_ext <<_ACEOF
4368/* end confdefs.h. */
4369#include <sys/types.h>
4370#include <sys/param.h>
4371
4372int
4373main ()
4374{
4375#if BYTE_ORDER != BIG_ENDIAN
4376 not big endian
4377#endif
4378
4379 ;
4380 return 0;
4381}
4382_ACEOF
4383rm -f conftest.$ac_objext
4384if { (ac_try="$ac_compile"
4385case "(($ac_try" in
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4388esac
4389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390 (eval "$ac_compile") 2>conftest.er1
4391 ac_status=$?
4392 grep -v '^ *+' conftest.er1 >conftest.err
4393 rm -f conftest.er1
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } &&
4397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4398 { (case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4401esac
4402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403 (eval "$ac_try") 2>&5
4404 ac_status=$?
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; } &&
4407 { ac_try='test -s conftest.$ac_objext'
4408 { (case "(($ac_try" in
4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410 *) ac_try_echo=$ac_try;;
4411esac
4412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4413 (eval "$ac_try") 2>&5
4414 ac_status=$?
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; }; then
4417 ac_cv_c_bigendian=yes
4418else
4419 echo "$as_me: failed program was:" >&5
4420sed 's/^/| /' conftest.$ac_ext >&5
4421
4422 ac_cv_c_bigendian=no
4423fi
4424
4425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4426else
4427 echo "$as_me: failed program was:" >&5
4428sed 's/^/| /' conftest.$ac_ext >&5
4429
4430 # It does not; compile a test program.
4431if test "$cross_compiling" = yes; then
4432 # try to guess the endianness by grepping values into an object file
4433 ac_cv_c_bigendian=unknown
4434 cat >conftest.$ac_ext <<_ACEOF
4435/* confdefs.h. */
4436_ACEOF
4437cat confdefs.h >>conftest.$ac_ext
4438cat >>conftest.$ac_ext <<_ACEOF
4439/* end confdefs.h. */
4440short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4441short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4442void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4443short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4444short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4445void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4446int
4447main ()
4448{
4449 _ascii (); _ebcdic ();
4450 ;
4451 return 0;
4452}
4453_ACEOF
4454rm -f conftest.$ac_objext
4455if { (ac_try="$ac_compile"
4456case "(($ac_try" in
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4459esac
4460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4461 (eval "$ac_compile") 2>conftest.er1
4462 ac_status=$?
4463 grep -v '^ *+' conftest.er1 >conftest.err
4464 rm -f conftest.er1
4465 cat conftest.err >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } &&
4468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4469 { (case "(($ac_try" in
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4472esac
4473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4474 (eval "$ac_try") 2>&5
4475 ac_status=$?
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; } &&
4478 { ac_try='test -s conftest.$ac_objext'
4479 { (case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4482esac
4483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484 (eval "$ac_try") 2>&5
4485 ac_status=$?
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }; }; then
4488 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4489 ac_cv_c_bigendian=yes
4490fi
4491if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4492 if test "$ac_cv_c_bigendian" = unknown; then
4493 ac_cv_c_bigendian=no
4494 else
4495 # finding both strings is unlikely to happen, but who knows?
4496 ac_cv_c_bigendian=unknown
4497 fi
4498fi
4499else
4500 echo "$as_me: failed program was:" >&5
4501sed 's/^/| /' conftest.$ac_ext >&5
4502
4503
4504fi
4505
4506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507else
4508 cat >conftest.$ac_ext <<_ACEOF
4509/* confdefs.h. */
4510_ACEOF
4511cat confdefs.h >>conftest.$ac_ext
4512cat >>conftest.$ac_ext <<_ACEOF
4513/* end confdefs.h. */
4514$ac_includes_default
4515int
4516main ()
4517{
4518
4519 /* Are we little or big endian? From Harbison&Steele. */
4520 union
4521 {
4522 long int l;
4523 char c[sizeof (long int)];
4524 } u;
4525 u.l = 1;
4526 return u.c[sizeof (long int) - 1] == 1;
4527
4528 ;
4529 return 0;
4530}
4531_ACEOF
4532rm -f conftest$ac_exeext
4533if { (ac_try="$ac_link"
4534case "(($ac_try" in
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4537esac
4538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4539 (eval "$ac_link") 2>&5
4540 ac_status=$?
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4543 { (case "(($ac_try" in
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4546esac
4547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_try") 2>&5
4549 ac_status=$?
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; }; then
4552 ac_cv_c_bigendian=no
4553else
4554 echo "$as_me: program exited with status $ac_status" >&5
4555echo "$as_me: failed program was:" >&5
4556sed 's/^/| /' conftest.$ac_ext >&5
4557
4558( exit $ac_status )
4559ac_cv_c_bigendian=yes
4560fi
4561rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4562fi
4563
4564
4565fi
4566
4567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4568fi
4569{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4570echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4571case $ac_cv_c_bigendian in
4572 yes)
4573 ENDIAN=big
4574 ;;
4575 no)
4576 ENDIAN=little
4577 ;;
4578 *)
4579 { { echo "$as_me:$LINENO: error: unknown endianness
4580presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4581echo "$as_me: error: unknown endianness
4582presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4583 { (exit 1); exit 1; }; } ;;
4584esac
4585
4586
4587if test "$cross_compiling" = yes; then
4588 LLVM_CROSS_COMPILING=1
4589
4590
4591{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4592echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4593if test "${ac_cv_build_exeext+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4595else
4596 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4597 ac_cv_build_exeext=.exe
4598else
4599 ac_build_prefix=${build_alias}-
4600
4601 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4602set dummy ${ac_build_prefix}gcc; ac_word=$2
4603{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4605if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4607else
4608 if test -n "$BUILD_CC"; then
4609 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4610else
4611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612for as_dir in $PATH
4613do
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4618 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 break 2
4621 fi
4622done
4623done
4624IFS=$as_save_IFS
4625
4626fi
4627fi
4628BUILD_CC=$ac_cv_prog_BUILD_CC
4629if test -n "$BUILD_CC"; then
4630 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4631echo "${ECHO_T}$BUILD_CC" >&6; }
4632else
4633 { echo "$as_me:$LINENO: result: no" >&5
4634echo "${ECHO_T}no" >&6; }
4635fi
4636
4637
4638 if test -z "$BUILD_CC"; then
4639 # Extract the first word of "gcc", so it can be a program name with args.
4640set dummy gcc; ac_word=$2
4641{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4643if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4645else
4646 if test -n "$BUILD_CC"; then
4647 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4648else
4649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650for as_dir in $PATH
4651do
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_prog_BUILD_CC="gcc"
4657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 break 2
4659 fi
4660done
4661done
4662IFS=$as_save_IFS
4663
4664fi
4665fi
4666BUILD_CC=$ac_cv_prog_BUILD_CC
4667if test -n "$BUILD_CC"; then
4668 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4669echo "${ECHO_T}$BUILD_CC" >&6; }
4670else
4671 { echo "$as_me:$LINENO: result: no" >&5
4672echo "${ECHO_T}no" >&6; }
4673fi
4674
4675
4676 if test -z "$BUILD_CC"; then
4677 # Extract the first word of "cc", so it can be a program name with args.
4678set dummy cc; ac_word=$2
4679{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4681if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4683else
4684 if test -n "$BUILD_CC"; then
4685 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4686else
4687 ac_prog_rejected=no
4688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689for as_dir in $PATH
4690do
4691 IFS=$as_save_IFS
4692 test -z "$as_dir" && as_dir=.
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4695 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4696 ac_prog_rejected=yes
4697 continue
4698 fi
4699 ac_cv_prog_BUILD_CC="cc"
4700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 break 2
4702 fi
4703done
4704done
4705IFS=$as_save_IFS
4706
4707if test $ac_prog_rejected = yes; then
4708 # We found a bogon in the path, so make sure we never use it.
4709 set dummy $ac_cv_prog_BUILD_CC
4710 shift
4711 if test $# != 0; then
4712 # We chose a different compiler from the bogus one.
4713 # However, it has the same basename, so the bogon will be chosen
4714 # first if we set BUILD_CC to just the basename; use the full file name.
4715 shift
4716 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4717 fi
4718fi
4719fi
4720fi
4721BUILD_CC=$ac_cv_prog_BUILD_CC
4722if test -n "$BUILD_CC"; then
4723 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4724echo "${ECHO_T}$BUILD_CC" >&6; }
4725else
4726 { echo "$as_me:$LINENO: result: no" >&5
4727echo "${ECHO_T}no" >&6; }
4728fi
4729
4730
4731 fi
4732 fi
4733 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4734echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4735 { (exit 1); exit 1; }; }
4736 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4737 rm -f conftest*
4738 echo 'int main () { return 0; }' > conftest.$ac_ext
4739 ac_cv_build_exeext=
4740 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4741 (eval $ac_build_link) 2>&5
4742 ac_status=$?
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; then
4745 for file in conftest.*; do
4746 case $file in
4747 *.c | *.o | *.obj | *.dSYM) ;;
4748 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4749 esac
4750 done
4751 else
4752 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4753echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4754 { (exit 1); exit 1; }; }
4755 fi
4756 rm -f conftest*
4757 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4758fi
4759fi
4760
4761BUILD_EXEEXT=""
4762test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4763{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4764echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4765ac_build_exeext=$BUILD_EXEEXT
4766
4767 ac_build_prefix=${build_alias}-
4768 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4769set dummy ${ac_build_prefix}g++; ac_word=$2
4770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4772if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4774else
4775 if test -n "$BUILD_CXX"; then
4776 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4777else
4778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779for as_dir in $PATH
4780do
4781 IFS=$as_save_IFS
4782 test -z "$as_dir" && as_dir=.
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4785 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4787 break 2
4788 fi
4789done
4790done
4791IFS=$as_save_IFS
4792
4793fi
4794fi
4795BUILD_CXX=$ac_cv_prog_BUILD_CXX
4796if test -n "$BUILD_CXX"; then
4797 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4798echo "${ECHO_T}$BUILD_CXX" >&6; }
4799else
4800 { echo "$as_me:$LINENO: result: no" >&5
4801echo "${ECHO_T}no" >&6; }
4802fi
4803
4804
4805 if test -z "$BUILD_CXX"; then
4806 # Extract the first word of "g++", so it can be a program name with args.
4807set dummy g++; ac_word=$2
4808{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4810if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4812else
4813 if test -n "$BUILD_CXX"; then
4814 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4815else
4816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817for as_dir in $PATH
4818do
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4823 ac_cv_prog_BUILD_CXX="g++"
4824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 break 2
4826 fi
4827done
4828done
4829IFS=$as_save_IFS
4830
4831fi
4832fi
4833BUILD_CXX=$ac_cv_prog_BUILD_CXX
4834if test -n "$BUILD_CXX"; then
4835 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4836echo "${ECHO_T}$BUILD_CXX" >&6; }
4837else
4838 { echo "$as_me:$LINENO: result: no" >&5
4839echo "${ECHO_T}no" >&6; }
4840fi
4841
4842
4843 if test -z "$BUILD_CXX"; then
4844 # Extract the first word of "c++", so it can be a program name with args.
4845set dummy c++; ac_word=$2
4846{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4848if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4850else
4851 if test -n "$BUILD_CXX"; then
4852 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4853else
4854 ac_prog_rejected=no
4855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856for as_dir in $PATH
4857do
4858 IFS=$as_save_IFS
4859 test -z "$as_dir" && as_dir=.
4860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4862 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4863 ac_prog_rejected=yes
4864 continue
4865 fi
4866 ac_cv_prog_BUILD_CXX="c++"
4867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4869 fi
4870done
4871done
4872IFS=$as_save_IFS
4873
4874if test $ac_prog_rejected = yes; then
4875 # We found a bogon in the path, so make sure we never use it.
4876 set dummy $ac_cv_prog_BUILD_CXX
4877 shift
4878 if test $# != 0; then
4879 # We chose a different compiler from the bogus one.
4880 # However, it has the same basename, so the bogon will be chosen
4881 # first if we set BUILD_CXX to just the basename; use the full file name.
4882 shift
4883 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4884 fi
4885fi
4886fi
4887fi
4888BUILD_CXX=$ac_cv_prog_BUILD_CXX
4889if test -n "$BUILD_CXX"; then
4890 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4891echo "${ECHO_T}$BUILD_CXX" >&6; }
4892else
4893 { echo "$as_me:$LINENO: result: no" >&5
4894echo "${ECHO_T}no" >&6; }
4895fi
4896
4897
4898 fi
4899 fi
4900else
4901 LLVM_CROSS_COMPILING=0
4902
4903fi
4904
4905if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4906 cvsbuild="yes"
4907 optimize="no"
4908 CVSBUILD=CVSBUILD=1
4909
4910else
4911 cvsbuild="no"
4912 optimize="yes"
4913fi
4914
4915
4916# Check whether --enable-optimized was given.
4917if test "${enable_optimized+set}" = set; then
4918 enableval=$enable_optimized;
4919else
4920 enableval=$optimize
4921fi
4922
4923if test ${enableval} = "no" ; then
4924 ENABLE_OPTIMIZED=
4925
4926else
4927 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4928
4929fi
4930
4931# Check whether --enable-profiling was given.
4932if test "${enable_profiling+set}" = set; then
4933 enableval=$enable_profiling;
4934else
4935 enableval="no"
4936fi
4937
4938if test ${enableval} = "no" ; then
4939 ENABLE_PROFILING=
4940
4941else
4942 ENABLE_PROFILING=ENABLE_PROFILING=1
4943
4944fi
4945
4946# Check whether --enable-assertions was given.
4947if test "${enable_assertions+set}" = set; then
4948 enableval=$enable_assertions;
4949else
4950 enableval="yes"
4951fi
4952
4953if test ${enableval} = "yes" ; then
4954 DISABLE_ASSERTIONS=
4955
4956else
4957 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4958
4959fi
4960
4961# Check whether --enable-expensive-checks was given.
4962if test "${enable_expensive_checks+set}" = set; then
4963 enableval=$enable_expensive_checks;
4964else
4965 enableval="no"
4966fi
4967
4968if test ${enableval} = "yes" ; then
4969 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4970
4971 EXPENSIVE_CHECKS=yes
4972
4973else
4974 ENABLE_EXPENSIVE_CHECKS=
4975
4976 EXPENSIVE_CHECKS=no
4977
4978fi
4979
4980# Check whether --enable-debug-runtime was given.
4981if test "${enable_debug_runtime+set}" = set; then
4982 enableval=$enable_debug_runtime;
4983else
4984 enableval=no
4985fi
4986
4987if test ${enableval} = "no" ; then
4988 DEBUG_RUNTIME=
4989
4990else
4991 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4992
4993fi
4994
4995# Check whether --enable-debug-symbols was given.
4996if test "${enable_debug_symbols+set}" = set; then
4997 enableval=$enable_debug_symbols;
4998else
4999 enableval=no
5000fi
5001
5002if test ${enableval} = "no" ; then
5003 DEBUG_SYMBOLS=
5004
5005else
5006 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5007
5008fi
5009
5010# Check whether --enable-jit was given.
5011if test "${enable_jit+set}" = set; then
5012 enableval=$enable_jit;
5013else
5014 enableval=default
5015fi
5016
5017if test ${enableval} = "no"
5018then
5019 JIT=
5020
5021else
5022 case "$llvm_cv_target_arch" in
5023 x86) TARGET_HAS_JIT=1
5024 ;;
5025 Sparc) TARGET_HAS_JIT=0
5026 ;;
5027 PowerPC) TARGET_HAS_JIT=1
5028 ;;
5029 x86_64) TARGET_HAS_JIT=1
5030 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005031 ARM) TARGET_HAS_JIT=1
5032 ;;
5033 Mips) TARGET_HAS_JIT=1
5034 ;;
5035 XCore) TARGET_HAS_JIT=0
5036 ;;
5037 MSP430) TARGET_HAS_JIT=0
5038 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005039 Hexagon) TARGET_HAS_JIT=0
5040 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005041 MBlaze) TARGET_HAS_JIT=0
5042 ;;
5043 PTX) TARGET_HAS_JIT=0
5044 ;;
5045 *) TARGET_HAS_JIT=0
5046 ;;
5047 esac
5048fi
5049
5050# Check whether --enable-docs was given.
5051if test "${enable_docs+set}" = set; then
5052 enableval=$enable_docs;
5053else
5054 enableval=default
5055fi
5056
5057case "$enableval" in
5058 yes) ENABLE_DOCS=1
5059 ;;
5060 no) ENABLE_DOCS=0
5061 ;;
5062 default) ENABLE_DOCS=1
5063 ;;
5064 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5065echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5066 { (exit 1); exit 1; }; } ;;
5067esac
5068
5069# Check whether --enable-doxygen was given.
5070if test "${enable_doxygen+set}" = set; then
5071 enableval=$enable_doxygen;
5072else
5073 enableval=default
5074fi
5075
5076case "$enableval" in
5077 yes) ENABLE_DOXYGEN=1
5078 ;;
5079 no) ENABLE_DOXYGEN=0
5080 ;;
5081 default) ENABLE_DOXYGEN=0
5082 ;;
5083 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5084echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5085 { (exit 1); exit 1; }; } ;;
5086esac
5087
5088# Check whether --enable-threads was given.
5089if test "${enable_threads+set}" = set; then
5090 enableval=$enable_threads;
5091else
5092 enableval=default
5093fi
5094
5095case "$enableval" in
5096 yes) ENABLE_THREADS=1
5097 ;;
5098 no) ENABLE_THREADS=0
5099 ;;
5100 default) ENABLE_THREADS=1
5101 ;;
5102 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5103echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5104 { (exit 1); exit 1; }; } ;;
5105esac
5106
5107cat >>confdefs.h <<_ACEOF
5108#define ENABLE_THREADS $ENABLE_THREADS
5109_ACEOF
5110
5111
5112# Check whether --enable-pthreads was given.
5113if test "${enable_pthreads+set}" = set; then
5114 enableval=$enable_pthreads;
5115else
5116 enableval=default
5117fi
5118
5119case "$enableval" in
5120 yes) ENABLE_PTHREADS=1
5121 ;;
5122 no) ENABLE_PTHREADS=0
5123 ;;
5124 default) ENABLE_PTHREADS=1
5125 ;;
5126 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5127echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5128 { (exit 1); exit 1; }; } ;;
5129esac
5130
5131# Check whether --enable-pic was given.
5132if test "${enable_pic+set}" = set; then
5133 enableval=$enable_pic;
5134else
5135 enableval=default
5136fi
5137
5138case "$enableval" in
5139 yes) ENABLE_PIC=1
5140 ;;
5141 no) ENABLE_PIC=0
5142 ;;
5143 default) ENABLE_PIC=1
5144 ;;
5145 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5146echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5147 { (exit 1); exit 1; }; } ;;
5148esac
5149
5150cat >>confdefs.h <<_ACEOF
5151#define ENABLE_PIC $ENABLE_PIC
5152_ACEOF
5153
5154
5155# Check whether --enable-shared was given.
5156if test "${enable_shared+set}" = set; then
5157 enableval=$enable_shared;
5158else
5159 enableval=default
5160fi
5161
5162case "$enableval" in
5163 yes) ENABLE_SHARED=1
5164 ;;
5165 no) ENABLE_SHARED=0
5166 ;;
5167 default) ENABLE_SHARED=0
5168 ;;
5169 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5170echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5171 { (exit 1); exit 1; }; } ;;
5172esac
5173
5174# Check whether --enable-embed-stdcxx was given.
5175if test "${enable_embed_stdcxx+set}" = set; then
5176 enableval=$enable_embed_stdcxx;
5177else
5178 enableval=default
5179fi
5180
5181case "$enableval" in
5182 yes) ENABLE_EMBED_STDCXX=1
5183 ;;
5184 no) ENABLE_EMBED_STDCXX=0
5185 ;;
5186 default) ENABLE_EMBED_STDCXX=1
5187 ;;
5188 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5189echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5190 { (exit 1); exit 1; }; } ;;
5191esac
5192
5193# Check whether --enable-timestamps was given.
5194if test "${enable_timestamps+set}" = set; then
5195 enableval=$enable_timestamps;
5196else
5197 enableval=default
5198fi
5199
5200case "$enableval" in
5201 yes) ENABLE_TIMESTAMPS=1
5202 ;;
5203 no) ENABLE_TIMESTAMPS=0
5204 ;;
5205 default) ENABLE_TIMESTAMPS=1
5206 ;;
5207 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5208echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5209 { (exit 1); exit 1; }; } ;;
5210esac
5211
5212cat >>confdefs.h <<_ACEOF
5213#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5214_ACEOF
5215
5216
5217TARGETS_TO_BUILD=""
5218# Check whether --enable-targets was given.
5219if test "${enable_targets+set}" = set; then
5220 enableval=$enable_targets;
5221else
5222 enableval=all
5223fi
5224
5225if test "$enableval" = host-only ; then
5226 enableval=host
5227fi
5228case "$enableval" in
Eric Christophera443e5b2012-03-23 05:50:46 +00005229 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CppBackend MBlaze PTX" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005230 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5231 case "$a_target" in
5232 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5233 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5234 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5235 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005236 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5237 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5238 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5239 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5240 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005241 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005242 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5243 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5244 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5245 host) case "$llvm_cv_target_arch" in
5246 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5247 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5248 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5249 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005250 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5251 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5252 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5253 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5254 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5255 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005256 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005257 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5258 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5259echo "$as_me: error: Can not set target to build" >&2;}
5260 { (exit 1); exit 1; }; } ;;
5261 esac ;;
5262 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5263echo "$as_me: error: Unrecognized target $a_target" >&2;}
5264 { (exit 1); exit 1; }; } ;;
5265 esac
5266 done
5267 ;;
5268esac
5269TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5270
5271
5272# Determine whether we are building LLVM support for the native architecture.
5273# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5274for a_target in $TARGETS_TO_BUILD; do
5275 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5276
5277cat >>confdefs.h <<_ACEOF
5278#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5279_ACEOF
5280
5281 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5282 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5283 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5284 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5285 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5286 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5287 fi
5288
5289cat >>confdefs.h <<_ACEOF
5290#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5291_ACEOF
5292
5293
5294cat >>confdefs.h <<_ACEOF
5295#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5296_ACEOF
5297
5298
5299cat >>confdefs.h <<_ACEOF
5300#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5301_ACEOF
5302
5303
5304cat >>confdefs.h <<_ACEOF
5305#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5306_ACEOF
5307
5308 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5309
5310cat >>confdefs.h <<_ACEOF
5311#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5312_ACEOF
5313
5314 fi
5315 fi
5316done
5317
5318# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5319# target feature def files.
5320LLVM_ENUM_TARGETS=""
5321LLVM_ENUM_ASM_PRINTERS=""
5322LLVM_ENUM_ASM_PARSERS=""
5323LLVM_ENUM_DISASSEMBLERS=""
5324for target_to_build in $TARGETS_TO_BUILD; do
5325 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5326 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5327 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5328 fi
5329 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5330 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5331 fi
5332 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5333 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5334 fi
5335done
5336
5337
5338
5339
5340
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005341
5342# Check whether --with-optimize-option was given.
5343if test "${with_optimize_option+set}" = set; then
5344 withval=$with_optimize_option;
5345else
5346 withval=default
5347fi
5348
5349{ echo "$as_me:$LINENO: checking optimization flags" >&5
5350echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5351case "$withval" in
5352 default)
5353 case "$llvm_cv_os_type" in
5354 FreeBSD) optimize_option=-O2 ;;
5355 MingW) optimize_option=-O2 ;;
5356 *) optimize_option=-O3 ;;
5357 esac ;;
5358 *) optimize_option="$withval" ;;
5359esac
5360OPTIMIZE_OPTION=$optimize_option
5361
5362{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5363echo "${ECHO_T}$optimize_option" >&6; }
5364
5365
5366# Check whether --with-extra-options was given.
5367if test "${with_extra_options+set}" = set; then
5368 withval=$with_extra_options;
5369else
5370 withval=default
5371fi
5372
5373case "$withval" in
5374 default) EXTRA_OPTIONS= ;;
5375 *) EXTRA_OPTIONS=$withval ;;
5376esac
5377EXTRA_OPTIONS=$EXTRA_OPTIONS
5378
5379
5380
5381# Check whether --with-extra-ld-options was given.
5382if test "${with_extra_ld_options+set}" = set; then
5383 withval=$with_extra_ld_options;
5384else
5385 withval=default
5386fi
5387
5388case "$withval" in
5389 default) EXTRA_LD_OPTIONS= ;;
5390 *) EXTRA_LD_OPTIONS=$withval ;;
5391esac
5392EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5393
5394
5395# Check whether --enable-bindings was given.
5396if test "${enable_bindings+set}" = set; then
5397 enableval=$enable_bindings;
5398else
5399 enableval=default
5400fi
5401
5402BINDINGS_TO_BUILD=""
5403case "$enableval" in
5404 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5405 all ) BINDINGS_TO_BUILD="ocaml" ;;
5406 none | no) BINDINGS_TO_BUILD="" ;;
5407 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5408 case "$a_binding" in
5409 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5410 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5411echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5412 { (exit 1); exit 1; }; } ;;
5413 esac
5414 done
5415 ;;
5416esac
5417
5418
5419# Check whether --with-ocaml-libdir was given.
5420if test "${with_ocaml_libdir+set}" = set; then
5421 withval=$with_ocaml_libdir;
5422else
5423 withval=auto
5424fi
5425
5426case "$withval" in
5427 auto) with_ocaml_libdir="$withval" ;;
5428 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5429 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5430echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5431 { (exit 1); exit 1; }; } ;;
5432esac
5433
5434
5435# Check whether --with-clang-resource-dir was given.
5436if test "${with_clang_resource_dir+set}" = set; then
5437 withval=$with_clang_resource_dir;
5438else
5439 withval=""
5440fi
5441
5442
5443cat >>confdefs.h <<_ACEOF
5444#define CLANG_RESOURCE_DIR "$withval"
5445_ACEOF
5446
5447
5448
5449# Check whether --with-c-include-dirs was given.
5450if test "${with_c_include_dirs+set}" = set; then
5451 withval=$with_c_include_dirs;
5452else
5453 withval=""
5454fi
5455
5456
5457cat >>confdefs.h <<_ACEOF
5458#define C_INCLUDE_DIRS "$withval"
5459_ACEOF
5460
5461
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005462# Clang normally uses the system c++ headers and libraries. With this option,
5463# clang will use the ones provided by a gcc installation instead. This option should
5464# be passed the same value that was used with --prefix when configuring gcc.
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005465
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005466# Check whether --with-gcc-toolchain was given.
5467if test "${with_gcc_toolchain+set}" = set; then
5468 withval=$with_gcc_toolchain;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005469else
5470 withval=""
5471fi
5472
5473
5474cat >>confdefs.h <<_ACEOF
Rafael Espindola1aee22e2012-02-03 00:59:30 +00005475#define GCC_INSTALL_PREFIX "$withval"
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005476_ACEOF
5477
5478
5479
5480# Check whether --with-binutils-include was given.
5481if test "${with_binutils_include+set}" = set; then
5482 withval=$with_binutils_include;
5483else
5484 withval=default
5485fi
5486
5487case "$withval" in
5488 default) WITH_BINUTILS_INCDIR=default ;;
5489 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5490 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5491echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5492 { (exit 1); exit 1; }; } ;;
5493esac
5494if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5495 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5496
5497 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5498 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5499 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5500echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5501 { (exit 1); exit 1; }; };
5502 fi
5503fi
5504
5505
5506# Check whether --with-bug-report-url was given.
5507if test "${with_bug_report_url+set}" = set; then
5508 withval=$with_bug_report_url;
5509else
5510 withval="http://llvm.org/bugs/"
5511fi
5512
5513
5514cat >>confdefs.h <<_ACEOF
5515#define BUG_REPORT_URL "$withval"
5516_ACEOF
5517
5518
5519# Check whether --enable-libffi was given.
5520if test "${enable_libffi+set}" = set; then
5521 enableval=$enable_libffi; case "$enableval" in
5522 yes) llvm_cv_enable_libffi="yes" ;;
5523 no) llvm_cv_enable_libffi="no" ;;
5524 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5525echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5526 { (exit 1); exit 1; }; } ;;
5527 esac
5528else
5529 llvm_cv_enable_libffi=no
5530fi
5531
5532
5533
5534{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5535echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5536if test "${lt_cv_path_NM+set}" = set; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5538else
5539 if test -n "$NM"; then
5540 # Let the user override the test.
5541 lt_cv_path_NM="$NM"
5542else
5543 lt_nm_to_check="${ac_tool_prefix}nm"
5544 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5545 lt_nm_to_check="$lt_nm_to_check nm"
5546 fi
5547 for lt_tmp_nm in $lt_nm_to_check; do
5548 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5549 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5550 IFS="$lt_save_ifs"
5551 test -z "$ac_dir" && ac_dir=.
5552 tmp_nm="$ac_dir/$lt_tmp_nm"
5553 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5554 # Check to see if the nm accepts a BSD-compat flag.
5555 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5556 # nm: unknown option "B" ignored
5557 # Tru64's nm complains that /dev/null is an invalid object file
5558 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5559 */dev/null* | *'Invalid file or object type'*)
5560 lt_cv_path_NM="$tmp_nm -B"
5561 break
5562 ;;
5563 *)
5564 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5565 */dev/null*)
5566 lt_cv_path_NM="$tmp_nm -p"
5567 break
5568 ;;
5569 *)
5570 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5571 continue # so that we can try to find one that supports BSD flags
5572 ;;
5573 esac
5574 ;;
5575 esac
5576 fi
5577 done
5578 IFS="$lt_save_ifs"
5579 done
5580 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5581fi
5582fi
5583{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5584echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5585NM="$lt_cv_path_NM"
5586
5587
5588
5589{ echo "$as_me:$LINENO: checking for GNU make" >&5
5590echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5591if test "${llvm_cv_gnu_make_command+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5593else
5594 llvm_cv_gnu_make_command=''
5595 for a in "$MAKE" make gmake gnumake ; do
5596 if test -z "$a" ; then continue ; fi ;
5597 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5598 then
5599 llvm_cv_gnu_make_command=$a ;
5600 break;
5601 fi
5602 done
5603fi
5604{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5605echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5606 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5607 ifGNUmake='' ;
5608 else
5609 ifGNUmake='#' ;
5610 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5611echo "${ECHO_T}\"Not found\"" >&6; };
5612 fi
5613
5614
5615{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5616echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5617LN_S=$as_ln_s
5618if test "$LN_S" = "ln -s"; then
5619 { echo "$as_me:$LINENO: result: yes" >&5
5620echo "${ECHO_T}yes" >&6; }
5621else
5622 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5623echo "${ECHO_T}no, using $LN_S" >&6; }
5624fi
5625
5626# Extract the first word of "cmp", so it can be a program name with args.
5627set dummy cmp; ac_word=$2
5628{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5630if test "${ac_cv_path_CMP+set}" = set; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5632else
5633 case $CMP in
5634 [\\/]* | ?:[\\/]*)
5635 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5636 ;;
5637 *)
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639for as_dir in $PATH
5640do
5641 IFS=$as_save_IFS
5642 test -z "$as_dir" && as_dir=.
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5645 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5647 break 2
5648 fi
5649done
5650done
5651IFS=$as_save_IFS
5652
5653 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5654 ;;
5655esac
5656fi
5657CMP=$ac_cv_path_CMP
5658if test -n "$CMP"; then
5659 { echo "$as_me:$LINENO: result: $CMP" >&5
5660echo "${ECHO_T}$CMP" >&6; }
5661else
5662 { echo "$as_me:$LINENO: result: no" >&5
5663echo "${ECHO_T}no" >&6; }
5664fi
5665
5666
5667# Extract the first word of "cp", so it can be a program name with args.
5668set dummy cp; ac_word=$2
5669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5671if test "${ac_cv_path_CP+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5673else
5674 case $CP in
5675 [\\/]* | ?:[\\/]*)
5676 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5677 ;;
5678 *)
5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680for as_dir in $PATH
5681do
5682 IFS=$as_save_IFS
5683 test -z "$as_dir" && as_dir=.
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5686 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5688 break 2
5689 fi
5690done
5691done
5692IFS=$as_save_IFS
5693
5694 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5695 ;;
5696esac
5697fi
5698CP=$ac_cv_path_CP
5699if test -n "$CP"; then
5700 { echo "$as_me:$LINENO: result: $CP" >&5
5701echo "${ECHO_T}$CP" >&6; }
5702else
5703 { echo "$as_me:$LINENO: result: no" >&5
5704echo "${ECHO_T}no" >&6; }
5705fi
5706
5707
5708# Extract the first word of "date", so it can be a program name with args.
5709set dummy date; ac_word=$2
5710{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5712if test "${ac_cv_path_DATE+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5714else
5715 case $DATE in
5716 [\\/]* | ?:[\\/]*)
5717 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5718 ;;
5719 *)
5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721for as_dir in $PATH
5722do
5723 IFS=$as_save_IFS
5724 test -z "$as_dir" && as_dir=.
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5727 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 break 2
5730 fi
5731done
5732done
5733IFS=$as_save_IFS
5734
5735 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5736 ;;
5737esac
5738fi
5739DATE=$ac_cv_path_DATE
5740if test -n "$DATE"; then
5741 { echo "$as_me:$LINENO: result: $DATE" >&5
5742echo "${ECHO_T}$DATE" >&6; }
5743else
5744 { echo "$as_me:$LINENO: result: no" >&5
5745echo "${ECHO_T}no" >&6; }
5746fi
5747
5748
5749# Extract the first word of "find", so it can be a program name with args.
5750set dummy find; ac_word=$2
5751{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5753if test "${ac_cv_path_FIND+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5755else
5756 case $FIND in
5757 [\\/]* | ?:[\\/]*)
5758 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5759 ;;
5760 *)
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762for as_dir in $PATH
5763do
5764 IFS=$as_save_IFS
5765 test -z "$as_dir" && as_dir=.
5766 for ac_exec_ext in '' $ac_executable_extensions; do
5767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5768 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 break 2
5771 fi
5772done
5773done
5774IFS=$as_save_IFS
5775
5776 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5777 ;;
5778esac
5779fi
5780FIND=$ac_cv_path_FIND
5781if test -n "$FIND"; then
5782 { echo "$as_me:$LINENO: result: $FIND" >&5
5783echo "${ECHO_T}$FIND" >&6; }
5784else
5785 { echo "$as_me:$LINENO: result: no" >&5
5786echo "${ECHO_T}no" >&6; }
5787fi
5788
5789
5790# Extract the first word of "grep", so it can be a program name with args.
5791set dummy grep; ac_word=$2
5792{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5794if test "${ac_cv_path_GREP+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796else
5797 case $GREP in
5798 [\\/]* | ?:[\\/]*)
5799 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5800 ;;
5801 *)
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803for as_dir in $PATH
5804do
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5809 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 break 2
5812 fi
5813done
5814done
5815IFS=$as_save_IFS
5816
5817 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5818 ;;
5819esac
5820fi
5821GREP=$ac_cv_path_GREP
5822if test -n "$GREP"; then
5823 { echo "$as_me:$LINENO: result: $GREP" >&5
5824echo "${ECHO_T}$GREP" >&6; }
5825else
5826 { echo "$as_me:$LINENO: result: no" >&5
5827echo "${ECHO_T}no" >&6; }
5828fi
5829
5830
5831# Extract the first word of "mkdir", so it can be a program name with args.
5832set dummy mkdir; ac_word=$2
5833{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5835if test "${ac_cv_path_MKDIR+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5837else
5838 case $MKDIR in
5839 [\\/]* | ?:[\\/]*)
5840 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5841 ;;
5842 *)
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844for as_dir in $PATH
5845do
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5850 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 break 2
5853 fi
5854done
5855done
5856IFS=$as_save_IFS
5857
5858 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5859 ;;
5860esac
5861fi
5862MKDIR=$ac_cv_path_MKDIR
5863if test -n "$MKDIR"; then
5864 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5865echo "${ECHO_T}$MKDIR" >&6; }
5866else
5867 { echo "$as_me:$LINENO: result: no" >&5
5868echo "${ECHO_T}no" >&6; }
5869fi
5870
5871
5872# Extract the first word of "mv", so it can be a program name with args.
5873set dummy mv; ac_word=$2
5874{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5876if test "${ac_cv_path_MV+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5878else
5879 case $MV in
5880 [\\/]* | ?:[\\/]*)
5881 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5882 ;;
5883 *)
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885for as_dir in $PATH
5886do
5887 IFS=$as_save_IFS
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5891 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893 break 2
5894 fi
5895done
5896done
5897IFS=$as_save_IFS
5898
5899 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5900 ;;
5901esac
5902fi
5903MV=$ac_cv_path_MV
5904if test -n "$MV"; then
5905 { echo "$as_me:$LINENO: result: $MV" >&5
5906echo "${ECHO_T}$MV" >&6; }
5907else
5908 { echo "$as_me:$LINENO: result: no" >&5
5909echo "${ECHO_T}no" >&6; }
5910fi
5911
5912
5913if test -n "$ac_tool_prefix"; then
5914 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5915set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5916{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5918if test "${ac_cv_prog_RANLIB+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5920else
5921 if test -n "$RANLIB"; then
5922 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5923else
5924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925for as_dir in $PATH
5926do
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5931 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 break 2
5934 fi
5935done
5936done
5937IFS=$as_save_IFS
5938
5939fi
5940fi
5941RANLIB=$ac_cv_prog_RANLIB
5942if test -n "$RANLIB"; then
5943 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5944echo "${ECHO_T}$RANLIB" >&6; }
5945else
5946 { echo "$as_me:$LINENO: result: no" >&5
5947echo "${ECHO_T}no" >&6; }
5948fi
5949
5950
5951fi
5952if test -z "$ac_cv_prog_RANLIB"; then
5953 ac_ct_RANLIB=$RANLIB
5954 # Extract the first word of "ranlib", so it can be a program name with args.
5955set dummy ranlib; ac_word=$2
5956{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5958if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5960else
5961 if test -n "$ac_ct_RANLIB"; then
5962 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5963else
5964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965for as_dir in $PATH
5966do
5967 IFS=$as_save_IFS
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5971 ac_cv_prog_ac_ct_RANLIB="ranlib"
5972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5973 break 2
5974 fi
5975done
5976done
5977IFS=$as_save_IFS
5978
5979fi
5980fi
5981ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5982if test -n "$ac_ct_RANLIB"; then
5983 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5984echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5985else
5986 { echo "$as_me:$LINENO: result: no" >&5
5987echo "${ECHO_T}no" >&6; }
5988fi
5989
5990 if test "x$ac_ct_RANLIB" = x; then
5991 RANLIB=":"
5992 else
5993 case $cross_compiling:$ac_tool_warned in
5994yes:)
5995{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5996whose name does not start with the host triplet. If you think this
5997configuration is useful to you, please write to autoconf@gnu.org." >&5
5998echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5999whose name does not start with the host triplet. If you think this
6000configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6001ac_tool_warned=yes ;;
6002esac
6003 RANLIB=$ac_ct_RANLIB
6004 fi
6005else
6006 RANLIB="$ac_cv_prog_RANLIB"
6007fi
6008
6009if test -n "$ac_tool_prefix"; then
6010 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6011set dummy ${ac_tool_prefix}ar; ac_word=$2
6012{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6014if test "${ac_cv_prog_AR+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6016else
6017 if test -n "$AR"; then
6018 ac_cv_prog_AR="$AR" # Let the user override the test.
6019else
6020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021for as_dir in $PATH
6022do
6023 IFS=$as_save_IFS
6024 test -z "$as_dir" && as_dir=.
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6027 ac_cv_prog_AR="${ac_tool_prefix}ar"
6028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6029 break 2
6030 fi
6031done
6032done
6033IFS=$as_save_IFS
6034
6035fi
6036fi
6037AR=$ac_cv_prog_AR
6038if test -n "$AR"; then
6039 { echo "$as_me:$LINENO: result: $AR" >&5
6040echo "${ECHO_T}$AR" >&6; }
6041else
6042 { echo "$as_me:$LINENO: result: no" >&5
6043echo "${ECHO_T}no" >&6; }
6044fi
6045
6046
6047fi
6048if test -z "$ac_cv_prog_AR"; then
6049 ac_ct_AR=$AR
6050 # Extract the first word of "ar", so it can be a program name with args.
6051set dummy ar; ac_word=$2
6052{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6054if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6056else
6057 if test -n "$ac_ct_AR"; then
6058 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6059else
6060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061for as_dir in $PATH
6062do
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6067 ac_cv_prog_ac_ct_AR="ar"
6068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 break 2
6070 fi
6071done
6072done
6073IFS=$as_save_IFS
6074
6075fi
6076fi
6077ac_ct_AR=$ac_cv_prog_ac_ct_AR
6078if test -n "$ac_ct_AR"; then
6079 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6080echo "${ECHO_T}$ac_ct_AR" >&6; }
6081else
6082 { echo "$as_me:$LINENO: result: no" >&5
6083echo "${ECHO_T}no" >&6; }
6084fi
6085
6086 if test "x$ac_ct_AR" = x; then
6087 AR="false"
6088 else
6089 case $cross_compiling:$ac_tool_warned in
6090yes:)
6091{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6092whose name does not start with the host triplet. If you think this
6093configuration is useful to you, please write to autoconf@gnu.org." >&5
6094echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6095whose name does not start with the host triplet. If you think this
6096configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6097ac_tool_warned=yes ;;
6098esac
6099 AR=$ac_ct_AR
6100 fi
6101else
6102 AR="$ac_cv_prog_AR"
6103fi
6104
6105# Extract the first word of "rm", so it can be a program name with args.
6106set dummy rm; ac_word=$2
6107{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6109if test "${ac_cv_path_RM+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6111else
6112 case $RM in
6113 [\\/]* | ?:[\\/]*)
6114 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6115 ;;
6116 *)
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118for as_dir in $PATH
6119do
6120 IFS=$as_save_IFS
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6124 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6126 break 2
6127 fi
6128done
6129done
6130IFS=$as_save_IFS
6131
6132 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6133 ;;
6134esac
6135fi
6136RM=$ac_cv_path_RM
6137if test -n "$RM"; then
6138 { echo "$as_me:$LINENO: result: $RM" >&5
6139echo "${ECHO_T}$RM" >&6; }
6140else
6141 { echo "$as_me:$LINENO: result: no" >&5
6142echo "${ECHO_T}no" >&6; }
6143fi
6144
6145
6146# Extract the first word of "sed", so it can be a program name with args.
6147set dummy sed; ac_word=$2
6148{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6150if test "${ac_cv_path_SED+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6152else
6153 case $SED in
6154 [\\/]* | ?:[\\/]*)
6155 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6156 ;;
6157 *)
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159for as_dir in $PATH
6160do
6161 IFS=$as_save_IFS
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6165 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6167 break 2
6168 fi
6169done
6170done
6171IFS=$as_save_IFS
6172
6173 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6174 ;;
6175esac
6176fi
6177SED=$ac_cv_path_SED
6178if test -n "$SED"; then
6179 { echo "$as_me:$LINENO: result: $SED" >&5
6180echo "${ECHO_T}$SED" >&6; }
6181else
6182 { echo "$as_me:$LINENO: result: no" >&5
6183echo "${ECHO_T}no" >&6; }
6184fi
6185
6186
6187# Extract the first word of "tar", so it can be a program name with args.
6188set dummy tar; ac_word=$2
6189{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191if test "${ac_cv_path_TAR+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6193else
6194 case $TAR in
6195 [\\/]* | ?:[\\/]*)
6196 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6197 ;;
6198 *)
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200for as_dir in $PATH
6201do
6202 IFS=$as_save_IFS
6203 test -z "$as_dir" && as_dir=.
6204 for ac_exec_ext in '' $ac_executable_extensions; do
6205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6206 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6208 break 2
6209 fi
6210done
6211done
6212IFS=$as_save_IFS
6213
6214 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6215 ;;
6216esac
6217fi
6218TAR=$ac_cv_path_TAR
6219if test -n "$TAR"; then
6220 { echo "$as_me:$LINENO: result: $TAR" >&5
6221echo "${ECHO_T}$TAR" >&6; }
6222else
6223 { echo "$as_me:$LINENO: result: no" >&5
6224echo "${ECHO_T}no" >&6; }
6225fi
6226
6227
6228# Extract the first word of "pwd", so it can be a program name with args.
6229set dummy pwd; ac_word=$2
6230{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6232if test "${ac_cv_path_BINPWD+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6234else
6235 case $BINPWD in
6236 [\\/]* | ?:[\\/]*)
6237 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6238 ;;
6239 *)
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241for as_dir in $PATH
6242do
6243 IFS=$as_save_IFS
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6247 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 break 2
6250 fi
6251done
6252done
6253IFS=$as_save_IFS
6254
6255 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6256 ;;
6257esac
6258fi
6259BINPWD=$ac_cv_path_BINPWD
6260if test -n "$BINPWD"; then
6261 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6262echo "${ECHO_T}$BINPWD" >&6; }
6263else
6264 { echo "$as_me:$LINENO: result: no" >&5
6265echo "${ECHO_T}no" >&6; }
6266fi
6267
6268
6269
6270# Extract the first word of "Graphviz", so it can be a program name with args.
6271set dummy Graphviz; ac_word=$2
6272{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6274if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6276else
6277 case $GRAPHVIZ in
6278 [\\/]* | ?:[\\/]*)
6279 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6280 ;;
6281 *)
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283for as_dir in $PATH
6284do
6285 IFS=$as_save_IFS
6286 test -z "$as_dir" && as_dir=.
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6289 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 break 2
6292 fi
6293done
6294done
6295IFS=$as_save_IFS
6296
6297 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6298 ;;
6299esac
6300fi
6301GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6302if test -n "$GRAPHVIZ"; then
6303 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6304echo "${ECHO_T}$GRAPHVIZ" >&6; }
6305else
6306 { echo "$as_me:$LINENO: result: no" >&5
6307echo "${ECHO_T}no" >&6; }
6308fi
6309
6310
6311if test "$GRAPHVIZ" != "echo Graphviz" ; then
6312
6313cat >>confdefs.h <<\_ACEOF
6314#define HAVE_GRAPHVIZ 1
6315_ACEOF
6316
6317 if test "$llvm_cv_os_type" = "MingW" ; then
6318 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6319 fi
6320
6321cat >>confdefs.h <<_ACEOF
6322#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6323_ACEOF
6324
6325fi
6326# Extract the first word of "dot", so it can be a program name with args.
6327set dummy dot; ac_word=$2
6328{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6330if test "${ac_cv_path_DOT+set}" = set; then
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
6332else
6333 case $DOT in
6334 [\\/]* | ?:[\\/]*)
6335 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6336 ;;
6337 *)
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339for as_dir in $PATH
6340do
6341 IFS=$as_save_IFS
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6345 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 break 2
6348 fi
6349done
6350done
6351IFS=$as_save_IFS
6352
6353 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6354 ;;
6355esac
6356fi
6357DOT=$ac_cv_path_DOT
6358if test -n "$DOT"; then
6359 { echo "$as_me:$LINENO: result: $DOT" >&5
6360echo "${ECHO_T}$DOT" >&6; }
6361else
6362 { echo "$as_me:$LINENO: result: no" >&5
6363echo "${ECHO_T}no" >&6; }
6364fi
6365
6366
6367if test "$DOT" != "echo dot" ; then
6368
6369cat >>confdefs.h <<\_ACEOF
6370#define HAVE_DOT 1
6371_ACEOF
6372
6373 if test "$llvm_cv_os_type" = "MingW" ; then
6374 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6375 fi
6376
6377cat >>confdefs.h <<_ACEOF
6378#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6379_ACEOF
6380
6381fi
6382# Extract the first word of "fdp", so it can be a program name with args.
6383set dummy fdp; ac_word=$2
6384{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6386if test "${ac_cv_path_FDP+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6388else
6389 case $FDP in
6390 [\\/]* | ?:[\\/]*)
6391 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6392 ;;
6393 *)
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395for as_dir in $PATH
6396do
6397 IFS=$as_save_IFS
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6401 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 break 2
6404 fi
6405done
6406done
6407IFS=$as_save_IFS
6408
6409 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6410 ;;
6411esac
6412fi
6413FDP=$ac_cv_path_FDP
6414if test -n "$FDP"; then
6415 { echo "$as_me:$LINENO: result: $FDP" >&5
6416echo "${ECHO_T}$FDP" >&6; }
6417else
6418 { echo "$as_me:$LINENO: result: no" >&5
6419echo "${ECHO_T}no" >&6; }
6420fi
6421
6422
6423if test "$FDP" != "echo fdp" ; then
6424
6425cat >>confdefs.h <<\_ACEOF
6426#define HAVE_FDP 1
6427_ACEOF
6428
6429 if test "$llvm_cv_os_type" = "MingW" ; then
6430 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6431 fi
6432
6433cat >>confdefs.h <<_ACEOF
6434#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6435_ACEOF
6436
6437fi
6438# Extract the first word of "neato", so it can be a program name with args.
6439set dummy neato; ac_word=$2
6440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6442if test "${ac_cv_path_NEATO+set}" = set; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
6444else
6445 case $NEATO in
6446 [\\/]* | ?:[\\/]*)
6447 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6448 ;;
6449 *)
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451for as_dir in $PATH
6452do
6453 IFS=$as_save_IFS
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6457 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6459 break 2
6460 fi
6461done
6462done
6463IFS=$as_save_IFS
6464
6465 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6466 ;;
6467esac
6468fi
6469NEATO=$ac_cv_path_NEATO
6470if test -n "$NEATO"; then
6471 { echo "$as_me:$LINENO: result: $NEATO" >&5
6472echo "${ECHO_T}$NEATO" >&6; }
6473else
6474 { echo "$as_me:$LINENO: result: no" >&5
6475echo "${ECHO_T}no" >&6; }
6476fi
6477
6478
6479if test "$NEATO" != "echo neato" ; then
6480
6481cat >>confdefs.h <<\_ACEOF
6482#define HAVE_NEATO 1
6483_ACEOF
6484
6485 if test "$llvm_cv_os_type" = "MingW" ; then
6486 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6487 fi
6488
6489cat >>confdefs.h <<_ACEOF
6490#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6491_ACEOF
6492
6493fi
6494# Extract the first word of "twopi", so it can be a program name with args.
6495set dummy twopi; ac_word=$2
6496{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6498if test "${ac_cv_path_TWOPI+set}" = set; then
6499 echo $ECHO_N "(cached) $ECHO_C" >&6
6500else
6501 case $TWOPI in
6502 [\\/]* | ?:[\\/]*)
6503 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6504 ;;
6505 *)
6506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507for as_dir in $PATH
6508do
6509 IFS=$as_save_IFS
6510 test -z "$as_dir" && as_dir=.
6511 for ac_exec_ext in '' $ac_executable_extensions; do
6512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6513 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 break 2
6516 fi
6517done
6518done
6519IFS=$as_save_IFS
6520
6521 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6522 ;;
6523esac
6524fi
6525TWOPI=$ac_cv_path_TWOPI
6526if test -n "$TWOPI"; then
6527 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6528echo "${ECHO_T}$TWOPI" >&6; }
6529else
6530 { echo "$as_me:$LINENO: result: no" >&5
6531echo "${ECHO_T}no" >&6; }
6532fi
6533
6534
6535if test "$TWOPI" != "echo twopi" ; then
6536
6537cat >>confdefs.h <<\_ACEOF
6538#define HAVE_TWOPI 1
6539_ACEOF
6540
6541 if test "$llvm_cv_os_type" = "MingW" ; then
6542 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6543 fi
6544
6545cat >>confdefs.h <<_ACEOF
6546#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6547_ACEOF
6548
6549fi
6550# Extract the first word of "circo", so it can be a program name with args.
6551set dummy circo; ac_word=$2
6552{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6554if test "${ac_cv_path_CIRCO+set}" = set; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6556else
6557 case $CIRCO in
6558 [\\/]* | ?:[\\/]*)
6559 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6560 ;;
6561 *)
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563for as_dir in $PATH
6564do
6565 IFS=$as_save_IFS
6566 test -z "$as_dir" && as_dir=.
6567 for ac_exec_ext in '' $ac_executable_extensions; do
6568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6569 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6571 break 2
6572 fi
6573done
6574done
6575IFS=$as_save_IFS
6576
6577 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6578 ;;
6579esac
6580fi
6581CIRCO=$ac_cv_path_CIRCO
6582if test -n "$CIRCO"; then
6583 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6584echo "${ECHO_T}$CIRCO" >&6; }
6585else
6586 { echo "$as_me:$LINENO: result: no" >&5
6587echo "${ECHO_T}no" >&6; }
6588fi
6589
6590
6591if test "$CIRCO" != "echo circo" ; then
6592
6593cat >>confdefs.h <<\_ACEOF
6594#define HAVE_CIRCO 1
6595_ACEOF
6596
6597 if test "$llvm_cv_os_type" = "MingW" ; then
6598 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6599 fi
6600
6601cat >>confdefs.h <<_ACEOF
6602#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6603_ACEOF
6604
6605fi
6606for ac_prog in gv gsview32
6607do
6608 # Extract the first word of "$ac_prog", so it can be a program name with args.
6609set dummy $ac_prog; ac_word=$2
6610{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6612if test "${ac_cv_path_GV+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6614else
6615 case $GV in
6616 [\\/]* | ?:[\\/]*)
6617 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6618 ;;
6619 *)
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621for as_dir in $PATH
6622do
6623 IFS=$as_save_IFS
6624 test -z "$as_dir" && as_dir=.
6625 for ac_exec_ext in '' $ac_executable_extensions; do
6626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6627 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6629 break 2
6630 fi
6631done
6632done
6633IFS=$as_save_IFS
6634
6635 ;;
6636esac
6637fi
6638GV=$ac_cv_path_GV
6639if test -n "$GV"; then
6640 { echo "$as_me:$LINENO: result: $GV" >&5
6641echo "${ECHO_T}$GV" >&6; }
6642else
6643 { echo "$as_me:$LINENO: result: no" >&5
6644echo "${ECHO_T}no" >&6; }
6645fi
6646
6647
6648 test -n "$GV" && break
6649done
6650test -n "$GV" || GV="echo gv"
6651
6652if test "$GV" != "echo gv" ; then
6653
6654cat >>confdefs.h <<\_ACEOF
6655#define HAVE_GV 1
6656_ACEOF
6657
6658 if test "$llvm_cv_os_type" = "MingW" ; then
6659 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6660 fi
6661
6662cat >>confdefs.h <<_ACEOF
6663#define LLVM_PATH_GV "$GV${EXEEXT}"
6664_ACEOF
6665
6666fi
6667# Extract the first word of "dotty", so it can be a program name with args.
6668set dummy dotty; ac_word=$2
6669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671if test "${ac_cv_path_DOTTY+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6673else
6674 case $DOTTY in
6675 [\\/]* | ?:[\\/]*)
6676 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6677 ;;
6678 *)
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680for as_dir in $PATH
6681do
6682 IFS=$as_save_IFS
6683 test -z "$as_dir" && as_dir=.
6684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6686 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6688 break 2
6689 fi
6690done
6691done
6692IFS=$as_save_IFS
6693
6694 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6695 ;;
6696esac
6697fi
6698DOTTY=$ac_cv_path_DOTTY
6699if test -n "$DOTTY"; then
6700 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6701echo "${ECHO_T}$DOTTY" >&6; }
6702else
6703 { echo "$as_me:$LINENO: result: no" >&5
6704echo "${ECHO_T}no" >&6; }
6705fi
6706
6707
6708if test "$DOTTY" != "echo dotty" ; then
6709
6710cat >>confdefs.h <<\_ACEOF
6711#define HAVE_DOTTY 1
6712_ACEOF
6713
6714 if test "$llvm_cv_os_type" = "MingW" ; then
6715 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6716 fi
6717
6718cat >>confdefs.h <<_ACEOF
6719#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6720_ACEOF
6721
6722fi
6723# Extract the first word of "xdot.py", so it can be a program name with args.
6724set dummy xdot.py; ac_word=$2
6725{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727if test "${ac_cv_path_XDOT_PY+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6729else
6730 case $XDOT_PY in
6731 [\\/]* | ?:[\\/]*)
6732 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6733 ;;
6734 *)
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736for as_dir in $PATH
6737do
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6742 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 break 2
6745 fi
6746done
6747done
6748IFS=$as_save_IFS
6749
6750 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6751 ;;
6752esac
6753fi
6754XDOT_PY=$ac_cv_path_XDOT_PY
6755if test -n "$XDOT_PY"; then
6756 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6757echo "${ECHO_T}$XDOT_PY" >&6; }
6758else
6759 { echo "$as_me:$LINENO: result: no" >&5
6760echo "${ECHO_T}no" >&6; }
6761fi
6762
6763
6764if test "$XDOT_PY" != "echo xdot.py" ; then
6765
6766cat >>confdefs.h <<\_ACEOF
6767#define HAVE_XDOT_PY 1
6768_ACEOF
6769
6770 if test "$llvm_cv_os_type" = "MingW" ; then
6771 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6772 fi
6773
6774cat >>confdefs.h <<_ACEOF
6775#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6776_ACEOF
6777
6778fi
6779
Daniel Dunbarbf79f912011-10-18 23:10:58 +00006780# Find a good install program. We prefer a C program (faster),
6781# so one script is as good as another. But avoid the broken or
6782# incompatible versions:
6783# SysV /etc/install, /usr/sbin/install
6784# SunOS /usr/etc/install
6785# IRIX /sbin/install
6786# AIX /bin/install
6787# AmigaOS /C/install, which installs bootblocks on floppy discs
6788# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6789# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6790# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6791# OS/2's system install, which has a completely different semantic
6792# ./install, which can be erroneously created by make from ./install.sh.
6793{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6794echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6795if test -z "$INSTALL"; then
6796if test "${ac_cv_path_install+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6798else
6799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800for as_dir in $PATH
6801do
6802 IFS=$as_save_IFS
6803 test -z "$as_dir" && as_dir=.
6804 # Account for people who put trailing slashes in PATH elements.
6805case $as_dir/ in
6806 ./ | .// | /cC/* | \
6807 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6808 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6809 /usr/ucb/* ) ;;
6810 *)
6811 # OSF1 and SCO ODT 3.0 have their own names for install.
6812 # Don't use installbsd from OSF since it installs stuff as root
6813 # by default.
6814 for ac_prog in ginstall scoinst install; do
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6817 if test $ac_prog = install &&
6818 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6819 # AIX install. It has an incompatible calling convention.
6820 :
6821 elif test $ac_prog = install &&
6822 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6823 # program-specific install script used by HP pwplus--don't use.
6824 :
6825 else
6826 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6827 break 3
6828 fi
6829 fi
6830 done
6831 done
6832 ;;
6833esac
6834done
6835IFS=$as_save_IFS
6836
6837
6838fi
6839 if test "${ac_cv_path_install+set}" = set; then
6840 INSTALL=$ac_cv_path_install
6841 else
6842 # As a last resort, use the slow shell script. Don't cache a
6843 # value for INSTALL within a source directory, because that will
6844 # break other packages using the cache if that directory is
6845 # removed, or if the value is a relative name.
6846 INSTALL=$ac_install_sh
6847 fi
6848fi
6849{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6850echo "${ECHO_T}$INSTALL" >&6; }
6851
6852# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6853# It thinks the first close brace ends the variable substitution.
6854test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6855
6856test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6857
6858test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6859
6860case "$INSTALL" in
6861 [\\/$]* | ?:[\\/]* ) ;;
6862 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6863esac
6864
6865# Extract the first word of "bzip2", so it can be a program name with args.
6866set dummy bzip2; ac_word=$2
6867{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869if test "${ac_cv_path_BZIP2+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6871else
6872 case $BZIP2 in
6873 [\\/]* | ?:[\\/]*)
6874 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6875 ;;
6876 *)
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878for as_dir in $PATH
6879do
6880 IFS=$as_save_IFS
6881 test -z "$as_dir" && as_dir=.
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6884 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 break 2
6887 fi
6888done
6889done
6890IFS=$as_save_IFS
6891
6892 ;;
6893esac
6894fi
6895BZIP2=$ac_cv_path_BZIP2
6896if test -n "$BZIP2"; then
6897 { echo "$as_me:$LINENO: result: $BZIP2" >&5
6898echo "${ECHO_T}$BZIP2" >&6; }
6899else
6900 { echo "$as_me:$LINENO: result: no" >&5
6901echo "${ECHO_T}no" >&6; }
6902fi
6903
6904
6905# Extract the first word of "cat", so it can be a program name with args.
6906set dummy cat; ac_word=$2
6907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909if test "${ac_cv_path_CAT+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6911else
6912 case $CAT in
6913 [\\/]* | ?:[\\/]*)
6914 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6915 ;;
6916 *)
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918for as_dir in $PATH
6919do
6920 IFS=$as_save_IFS
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6924 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 break 2
6927 fi
6928done
6929done
6930IFS=$as_save_IFS
6931
6932 ;;
6933esac
6934fi
6935CAT=$ac_cv_path_CAT
6936if test -n "$CAT"; then
6937 { echo "$as_me:$LINENO: result: $CAT" >&5
6938echo "${ECHO_T}$CAT" >&6; }
6939else
6940 { echo "$as_me:$LINENO: result: no" >&5
6941echo "${ECHO_T}no" >&6; }
6942fi
6943
6944
6945# Extract the first word of "doxygen", so it can be a program name with args.
6946set dummy doxygen; ac_word=$2
6947{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6949if test "${ac_cv_path_DOXYGEN+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6951else
6952 case $DOXYGEN in
6953 [\\/]* | ?:[\\/]*)
6954 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6955 ;;
6956 *)
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958for as_dir in $PATH
6959do
6960 IFS=$as_save_IFS
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6964 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 break 2
6967 fi
6968done
6969done
6970IFS=$as_save_IFS
6971
6972 ;;
6973esac
6974fi
6975DOXYGEN=$ac_cv_path_DOXYGEN
6976if test -n "$DOXYGEN"; then
6977 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6978echo "${ECHO_T}$DOXYGEN" >&6; }
6979else
6980 { echo "$as_me:$LINENO: result: no" >&5
6981echo "${ECHO_T}no" >&6; }
6982fi
6983
6984
6985# Extract the first word of "groff", so it can be a program name with args.
6986set dummy groff; ac_word=$2
6987{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6989if test "${ac_cv_path_GROFF+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6991else
6992 case $GROFF in
6993 [\\/]* | ?:[\\/]*)
6994 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6995 ;;
6996 *)
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998for as_dir in $PATH
6999do
7000 IFS=$as_save_IFS
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7004 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7006 break 2
7007 fi
7008done
7009done
7010IFS=$as_save_IFS
7011
7012 ;;
7013esac
7014fi
7015GROFF=$ac_cv_path_GROFF
7016if test -n "$GROFF"; then
7017 { echo "$as_me:$LINENO: result: $GROFF" >&5
7018echo "${ECHO_T}$GROFF" >&6; }
7019else
7020 { echo "$as_me:$LINENO: result: no" >&5
7021echo "${ECHO_T}no" >&6; }
7022fi
7023
7024
7025# Extract the first word of "gzip", so it can be a program name with args.
7026set dummy gzip; ac_word=$2
7027{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7029if test "${ac_cv_path_GZIPBIN+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7031else
7032 case $GZIPBIN in
7033 [\\/]* | ?:[\\/]*)
7034 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7035 ;;
7036 *)
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038for as_dir in $PATH
7039do
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7044 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 break 2
7047 fi
7048done
7049done
7050IFS=$as_save_IFS
7051
7052 ;;
7053esac
7054fi
7055GZIPBIN=$ac_cv_path_GZIPBIN
7056if test -n "$GZIPBIN"; then
7057 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7058echo "${ECHO_T}$GZIPBIN" >&6; }
7059else
7060 { echo "$as_me:$LINENO: result: no" >&5
7061echo "${ECHO_T}no" >&6; }
7062fi
7063
7064
7065# Extract the first word of "pod2html", so it can be a program name with args.
7066set dummy pod2html; ac_word=$2
7067{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7069if test "${ac_cv_path_POD2HTML+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7071else
7072 case $POD2HTML in
7073 [\\/]* | ?:[\\/]*)
7074 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7075 ;;
7076 *)
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078for as_dir in $PATH
7079do
7080 IFS=$as_save_IFS
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7084 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 break 2
7087 fi
7088done
7089done
7090IFS=$as_save_IFS
7091
7092 ;;
7093esac
7094fi
7095POD2HTML=$ac_cv_path_POD2HTML
7096if test -n "$POD2HTML"; then
7097 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7098echo "${ECHO_T}$POD2HTML" >&6; }
7099else
7100 { echo "$as_me:$LINENO: result: no" >&5
7101echo "${ECHO_T}no" >&6; }
7102fi
7103
7104
7105# Extract the first word of "pod2man", so it can be a program name with args.
7106set dummy pod2man; ac_word=$2
7107{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7109if test "${ac_cv_path_POD2MAN+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7111else
7112 case $POD2MAN in
7113 [\\/]* | ?:[\\/]*)
7114 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7115 ;;
7116 *)
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118for as_dir in $PATH
7119do
7120 IFS=$as_save_IFS
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7124 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 break 2
7127 fi
7128done
7129done
7130IFS=$as_save_IFS
7131
7132 ;;
7133esac
7134fi
7135POD2MAN=$ac_cv_path_POD2MAN
7136if test -n "$POD2MAN"; then
7137 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7138echo "${ECHO_T}$POD2MAN" >&6; }
7139else
7140 { echo "$as_me:$LINENO: result: no" >&5
7141echo "${ECHO_T}no" >&6; }
7142fi
7143
7144
7145# Extract the first word of "pdfroff", so it can be a program name with args.
7146set dummy pdfroff; ac_word=$2
7147{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7149if test "${ac_cv_path_PDFROFF+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7151else
7152 case $PDFROFF in
7153 [\\/]* | ?:[\\/]*)
7154 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7155 ;;
7156 *)
7157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158for as_dir in $PATH
7159do
7160 IFS=$as_save_IFS
7161 test -z "$as_dir" && as_dir=.
7162 for ac_exec_ext in '' $ac_executable_extensions; do
7163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7164 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7166 break 2
7167 fi
7168done
7169done
7170IFS=$as_save_IFS
7171
7172 ;;
7173esac
7174fi
7175PDFROFF=$ac_cv_path_PDFROFF
7176if test -n "$PDFROFF"; then
7177 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7178echo "${ECHO_T}$PDFROFF" >&6; }
7179else
7180 { echo "$as_me:$LINENO: result: no" >&5
7181echo "${ECHO_T}no" >&6; }
7182fi
7183
7184
7185# Extract the first word of "runtest", so it can be a program name with args.
7186set dummy runtest; ac_word=$2
7187{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7189if test "${ac_cv_path_RUNTEST+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7191else
7192 case $RUNTEST in
7193 [\\/]* | ?:[\\/]*)
7194 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7195 ;;
7196 *)
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198for as_dir in $PATH
7199do
7200 IFS=$as_save_IFS
7201 test -z "$as_dir" && as_dir=.
7202 for ac_exec_ext in '' $ac_executable_extensions; do
7203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7204 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7206 break 2
7207 fi
7208done
7209done
7210IFS=$as_save_IFS
7211
7212 ;;
7213esac
7214fi
7215RUNTEST=$ac_cv_path_RUNTEST
7216if test -n "$RUNTEST"; then
7217 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7218echo "${ECHO_T}$RUNTEST" >&6; }
7219else
7220 { echo "$as_me:$LINENO: result: no" >&5
7221echo "${ECHO_T}no" >&6; }
7222fi
7223
7224
7225
7226no_itcl=true
7227{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7228echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7229
7230# Check whether --with-tclinclude was given.
7231if test "${with_tclinclude+set}" = set; then
7232 withval=$with_tclinclude; with_tclinclude=${withval}
7233else
7234 with_tclinclude=''
7235fi
7236
7237if test "${ac_cv_path_tclsh+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7239else
7240
7241if test x"${with_tclinclude}" != x ; then
7242 if test -f ${with_tclinclude}/tclsh ; then
7243 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7244 elif test -f ${with_tclinclude}/src/tclsh ; then
7245 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7246 else
7247 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7248echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7249 { (exit 1); exit 1; }; }
7250 fi
7251fi
7252fi
7253
7254
7255if test x"${ac_cv_path_tclsh}" = x ; then
7256 { echo "$as_me:$LINENO: result: none" >&5
7257echo "${ECHO_T}none" >&6; }
7258 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
7259do
7260 # Extract the first word of "$ac_prog", so it can be a program name with args.
7261set dummy $ac_prog; ac_word=$2
7262{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264if test "${ac_cv_path_TCLSH+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7266else
7267 case $TCLSH in
7268 [\\/]* | ?:[\\/]*)
7269 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7270 ;;
7271 *)
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273for as_dir in $PATH
7274do
7275 IFS=$as_save_IFS
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 break 2
7282 fi
7283done
7284done
7285IFS=$as_save_IFS
7286
7287 ;;
7288esac
7289fi
7290TCLSH=$ac_cv_path_TCLSH
7291if test -n "$TCLSH"; then
7292 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7293echo "${ECHO_T}$TCLSH" >&6; }
7294else
7295 { echo "$as_me:$LINENO: result: no" >&5
7296echo "${ECHO_T}no" >&6; }
7297fi
7298
7299
7300 test -n "$TCLSH" && break
7301done
7302
7303 if test x"${TCLSH}" = x ; then
7304 ac_cv_path_tclsh='';
7305 else
7306 ac_cv_path_tclsh="${TCLSH}";
7307 fi
7308else
7309 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7310echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7311 TCLSH="${ac_cv_path_tclsh}"
7312
7313fi
7314
7315# Extract the first word of "zip", so it can be a program name with args.
7316set dummy zip; ac_word=$2
7317{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7319if test "${ac_cv_path_ZIP+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7321else
7322 case $ZIP in
7323 [\\/]* | ?:[\\/]*)
7324 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7325 ;;
7326 *)
7327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328for as_dir in $PATH
7329do
7330 IFS=$as_save_IFS
7331 test -z "$as_dir" && as_dir=.
7332 for ac_exec_ext in '' $ac_executable_extensions; do
7333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7334 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7336 break 2
7337 fi
7338done
7339done
7340IFS=$as_save_IFS
7341
7342 ;;
7343esac
7344fi
7345ZIP=$ac_cv_path_ZIP
7346if test -n "$ZIP"; then
7347 { echo "$as_me:$LINENO: result: $ZIP" >&5
7348echo "${ECHO_T}$ZIP" >&6; }
7349else
7350 { echo "$as_me:$LINENO: result: no" >&5
7351echo "${ECHO_T}no" >&6; }
7352fi
7353
7354
7355for ac_prog in ocamlc
7356do
7357 # Extract the first word of "$ac_prog", so it can be a program name with args.
7358set dummy $ac_prog; ac_word=$2
7359{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7361if test "${ac_cv_path_OCAMLC+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7363else
7364 case $OCAMLC in
7365 [\\/]* | ?:[\\/]*)
7366 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7367 ;;
7368 *)
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370for as_dir in $PATH
7371do
7372 IFS=$as_save_IFS
7373 test -z "$as_dir" && as_dir=.
7374 for ac_exec_ext in '' $ac_executable_extensions; do
7375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7376 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7378 break 2
7379 fi
7380done
7381done
7382IFS=$as_save_IFS
7383
7384 ;;
7385esac
7386fi
7387OCAMLC=$ac_cv_path_OCAMLC
7388if test -n "$OCAMLC"; then
7389 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7390echo "${ECHO_T}$OCAMLC" >&6; }
7391else
7392 { echo "$as_me:$LINENO: result: no" >&5
7393echo "${ECHO_T}no" >&6; }
7394fi
7395
7396
7397 test -n "$OCAMLC" && break
7398done
7399
7400for ac_prog in ocamlopt
7401do
7402 # Extract the first word of "$ac_prog", so it can be a program name with args.
7403set dummy $ac_prog; ac_word=$2
7404{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7406if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7408else
7409 case $OCAMLOPT in
7410 [\\/]* | ?:[\\/]*)
7411 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7412 ;;
7413 *)
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415for as_dir in $PATH
7416do
7417 IFS=$as_save_IFS
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7421 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 break 2
7424 fi
7425done
7426done
7427IFS=$as_save_IFS
7428
7429 ;;
7430esac
7431fi
7432OCAMLOPT=$ac_cv_path_OCAMLOPT
7433if test -n "$OCAMLOPT"; then
7434 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7435echo "${ECHO_T}$OCAMLOPT" >&6; }
7436else
7437 { echo "$as_me:$LINENO: result: no" >&5
7438echo "${ECHO_T}no" >&6; }
7439fi
7440
7441
7442 test -n "$OCAMLOPT" && break
7443done
7444
7445for ac_prog in ocamldep
7446do
7447 # Extract the first word of "$ac_prog", so it can be a program name with args.
7448set dummy $ac_prog; ac_word=$2
7449{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7451if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7453else
7454 case $OCAMLDEP in
7455 [\\/]* | ?:[\\/]*)
7456 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7457 ;;
7458 *)
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460for as_dir in $PATH
7461do
7462 IFS=$as_save_IFS
7463 test -z "$as_dir" && as_dir=.
7464 for ac_exec_ext in '' $ac_executable_extensions; do
7465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7466 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7468 break 2
7469 fi
7470done
7471done
7472IFS=$as_save_IFS
7473
7474 ;;
7475esac
7476fi
7477OCAMLDEP=$ac_cv_path_OCAMLDEP
7478if test -n "$OCAMLDEP"; then
7479 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7480echo "${ECHO_T}$OCAMLDEP" >&6; }
7481else
7482 { echo "$as_me:$LINENO: result: no" >&5
7483echo "${ECHO_T}no" >&6; }
7484fi
7485
7486
7487 test -n "$OCAMLDEP" && break
7488done
7489
7490for ac_prog in ocamldoc
7491do
7492 # Extract the first word of "$ac_prog", so it can be a program name with args.
7493set dummy $ac_prog; ac_word=$2
7494{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7496if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7498else
7499 case $OCAMLDOC in
7500 [\\/]* | ?:[\\/]*)
7501 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7502 ;;
7503 *)
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505for as_dir in $PATH
7506do
7507 IFS=$as_save_IFS
7508 test -z "$as_dir" && as_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7511 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7513 break 2
7514 fi
7515done
7516done
7517IFS=$as_save_IFS
7518
7519 ;;
7520esac
7521fi
7522OCAMLDOC=$ac_cv_path_OCAMLDOC
7523if test -n "$OCAMLDOC"; then
7524 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7525echo "${ECHO_T}$OCAMLDOC" >&6; }
7526else
7527 { echo "$as_me:$LINENO: result: no" >&5
7528echo "${ECHO_T}no" >&6; }
7529fi
7530
7531
7532 test -n "$OCAMLDOC" && break
7533done
7534
7535for ac_prog in gas as
7536do
7537 # Extract the first word of "$ac_prog", so it can be a program name with args.
7538set dummy $ac_prog; ac_word=$2
7539{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7541if test "${ac_cv_path_GAS+set}" = set; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
7543else
7544 case $GAS in
7545 [\\/]* | ?:[\\/]*)
7546 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7547 ;;
7548 *)
7549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550for as_dir in $PATH
7551do
7552 IFS=$as_save_IFS
7553 test -z "$as_dir" && as_dir=.
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7556 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7558 break 2
7559 fi
7560done
7561done
7562IFS=$as_save_IFS
7563
7564 ;;
7565esac
7566fi
7567GAS=$ac_cv_path_GAS
7568if test -n "$GAS"; then
7569 { echo "$as_me:$LINENO: result: $GAS" >&5
7570echo "${ECHO_T}$GAS" >&6; }
7571else
7572 { echo "$as_me:$LINENO: result: no" >&5
7573echo "${ECHO_T}no" >&6; }
7574fi
7575
7576
7577 test -n "$GAS" && break
7578done
7579
7580
7581{ echo "$as_me:$LINENO: checking for linker version" >&5
7582echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7583if test "${llvm_cv_link_version+set}" = set; then
7584 echo $ECHO_N "(cached) $ECHO_C" >&6
7585else
7586
7587 version_string="$(ld -v 2>&1 | head -1)"
7588
7589 # Check for ld64.
7590 if (echo "$version_string" | grep -q "ld64"); then
7591 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7592 else
7593 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7594 fi
7595
7596fi
7597{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7598echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7599
7600cat >>confdefs.h <<_ACEOF
7601#define HOST_LINK_VERSION "$llvm_cv_link_version"
7602_ACEOF
7603
7604
7605
7606{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7607echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7608if test "${llvm_cv_link_use_r+set}" = set; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7610else
7611 ac_ext=c
7612ac_cpp='$CPP $CPPFLAGS'
7613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7615ac_compiler_gnu=$ac_cv_c_compiler_gnu
7616
7617 oldcflags="$CFLAGS"
7618 CFLAGS="$CFLAGS -Wl,-R."
7619 cat >conftest.$ac_ext <<_ACEOF
7620/* confdefs.h. */
7621_ACEOF
7622cat confdefs.h >>conftest.$ac_ext
7623cat >>conftest.$ac_ext <<_ACEOF
7624/* end confdefs.h. */
7625
7626int
7627main ()
7628{
7629
7630 ;
7631 return 0;
7632}
7633_ACEOF
7634rm -f conftest.$ac_objext conftest$ac_exeext
7635if { (ac_try="$ac_link"
7636case "(($ac_try" in
7637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7638 *) ac_try_echo=$ac_try;;
7639esac
7640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7641 (eval "$ac_link") 2>conftest.er1
7642 ac_status=$?
7643 grep -v '^ *+' conftest.er1 >conftest.err
7644 rm -f conftest.er1
7645 cat conftest.err >&5
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); } &&
7648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7649 { (case "(($ac_try" in
7650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7651 *) ac_try_echo=$ac_try;;
7652esac
7653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7654 (eval "$ac_try") 2>&5
7655 ac_status=$?
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); }; } &&
7658 { ac_try='test -s conftest$ac_exeext'
7659 { (case "(($ac_try" in
7660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7661 *) ac_try_echo=$ac_try;;
7662esac
7663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664 (eval "$ac_try") 2>&5
7665 ac_status=$?
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; }; then
7668 llvm_cv_link_use_r=yes
7669else
7670 echo "$as_me: failed program was:" >&5
7671sed 's/^/| /' conftest.$ac_ext >&5
7672
7673 llvm_cv_link_use_r=no
7674fi
7675
7676rm -f core conftest.err conftest.$ac_objext \
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_r" >&5
7688echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7689if test "$llvm_cv_link_use_r" = yes ; then
7690
7691cat >>confdefs.h <<\_ACEOF
7692#define HAVE_LINK_R 1
7693_ACEOF
7694
7695 fi
7696
7697
7698{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7699echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7700if test "${llvm_cv_link_use_export_dynamic+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 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7711 cat >conftest.$ac_ext <<_ACEOF
7712/* confdefs.h. */
7713_ACEOF
7714cat confdefs.h >>conftest.$ac_ext
7715cat >>conftest.$ac_ext <<_ACEOF
7716/* end confdefs.h. */
7717
7718int
7719main ()
7720{
7721
7722 ;
7723 return 0;
7724}
7725_ACEOF
7726rm -f conftest.$ac_objext conftest$ac_exeext
7727if { (ac_try="$ac_link"
7728case "(($ac_try" in
7729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730 *) ac_try_echo=$ac_try;;
7731esac
7732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7733 (eval "$ac_link") 2>conftest.er1
7734 ac_status=$?
7735 grep -v '^ *+' conftest.er1 >conftest.err
7736 rm -f conftest.er1
7737 cat conftest.err >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } &&
7740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7741 { (case "(($ac_try" in
7742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743 *) ac_try_echo=$ac_try;;
7744esac
7745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7746 (eval "$ac_try") 2>&5
7747 ac_status=$?
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; } &&
7750 { ac_try='test -s conftest$ac_exeext'
7751 { (case "(($ac_try" in
7752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753 *) ac_try_echo=$ac_try;;
7754esac
7755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7756 (eval "$ac_try") 2>&5
7757 ac_status=$?
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; }; then
7760 llvm_cv_link_use_export_dynamic=yes
7761else
7762 echo "$as_me: failed program was:" >&5
7763sed 's/^/| /' conftest.$ac_ext >&5
7764
7765 llvm_cv_link_use_export_dynamic=no
7766fi
7767
7768rm -f core conftest.err conftest.$ac_objext \
7769 conftest$ac_exeext conftest.$ac_ext
7770 CFLAGS="$oldcflags"
7771 ac_ext=c
7772ac_cpp='$CPP $CPPFLAGS'
7773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7775ac_compiler_gnu=$ac_cv_c_compiler_gnu
7776
7777
7778fi
7779{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7780echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7781if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7782
7783cat >>confdefs.h <<\_ACEOF
7784#define HAVE_LINK_EXPORT_DYNAMIC 1
7785_ACEOF
7786
7787 fi
7788
7789
7790{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7791echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7792if test "${llvm_cv_link_use_version_script+set}" = set; then
7793 echo $ECHO_N "(cached) $ECHO_C" >&6
7794else
7795 ac_ext=c
7796ac_cpp='$CPP $CPPFLAGS'
7797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7799ac_compiler_gnu=$ac_cv_c_compiler_gnu
7800
7801 oldcflags="$CFLAGS"
7802
7803 # The following code is from the autoconf manual,
7804 # "11.13: Limitations of Usual Tools".
7805 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7806 # Use mktemp if possible; otherwise fall back on mkdir,
7807 # with $RANDOM to make collisions less likely.
7808 : ${TMPDIR=/tmp}
7809 {
7810 tmp=`
7811 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7812 ` &&
7813 test -n "$tmp" && test -d "$tmp"
7814 } || {
7815 tmp=$TMPDIR/foo$$-$RANDOM
7816 (umask 077 && mkdir "$tmp")
7817 } || exit $?
7818
7819 echo "{" > "$tmp/export.map"
7820 echo " global: main;" >> "$tmp/export.map"
7821 echo " local: *;" >> "$tmp/export.map"
7822 echo "};" >> "$tmp/export.map"
7823
7824 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7825 cat >conftest.$ac_ext <<_ACEOF
7826/* confdefs.h. */
7827_ACEOF
7828cat confdefs.h >>conftest.$ac_ext
7829cat >>conftest.$ac_ext <<_ACEOF
7830/* end confdefs.h. */
7831
7832int
7833main ()
7834{
7835
7836 ;
7837 return 0;
7838}
7839_ACEOF
7840rm -f conftest.$ac_objext conftest$ac_exeext
7841if { (ac_try="$ac_link"
7842case "(($ac_try" in
7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844 *) ac_try_echo=$ac_try;;
7845esac
7846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7847 (eval "$ac_link") 2>conftest.er1
7848 ac_status=$?
7849 grep -v '^ *+' conftest.er1 >conftest.err
7850 rm -f conftest.er1
7851 cat conftest.err >&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } &&
7854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7855 { (case "(($ac_try" in
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7858esac
7859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_try") 2>&5
7861 ac_status=$?
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); }; } &&
7864 { ac_try='test -s conftest$ac_exeext'
7865 { (case "(($ac_try" in
7866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867 *) ac_try_echo=$ac_try;;
7868esac
7869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870 (eval "$ac_try") 2>&5
7871 ac_status=$?
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); }; }; then
7874 llvm_cv_link_use_version_script=yes
7875else
7876 echo "$as_me: failed program was:" >&5
7877sed 's/^/| /' conftest.$ac_ext >&5
7878
7879 llvm_cv_link_use_version_script=no
7880fi
7881
7882rm -f core conftest.err conftest.$ac_objext \
7883 conftest$ac_exeext conftest.$ac_ext
7884 rm "$tmp/export.map"
7885 rmdir "$tmp"
7886 CFLAGS="$oldcflags"
7887 ac_ext=c
7888ac_cpp='$CPP $CPPFLAGS'
7889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7891ac_compiler_gnu=$ac_cv_c_compiler_gnu
7892
7893
7894fi
7895{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7896echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7897if test "$llvm_cv_link_use_version_script" = yes ; then
7898 HAVE_LINK_VERSION_SCRIPT=1
7899
7900 fi
7901
7902
7903
7904
7905{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7906echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7907if test "${ac_cv_c_const+set}" = set; then
7908 echo $ECHO_N "(cached) $ECHO_C" >&6
7909else
7910 cat >conftest.$ac_ext <<_ACEOF
7911/* confdefs.h. */
7912_ACEOF
7913cat confdefs.h >>conftest.$ac_ext
7914cat >>conftest.$ac_ext <<_ACEOF
7915/* end confdefs.h. */
7916
7917int
7918main ()
7919{
7920/* FIXME: Include the comments suggested by Paul. */
7921#ifndef __cplusplus
7922 /* Ultrix mips cc rejects this. */
7923 typedef int charset[2];
7924 const charset x;
7925 /* SunOS 4.1.1 cc rejects this. */
7926 char const *const *ccp;
7927 char **p;
7928 /* NEC SVR4.0.2 mips cc rejects this. */
7929 struct point {int x, y;};
7930 static struct point const zero = {0,0};
7931 /* AIX XL C 1.02.0.0 rejects this.
7932 It does not let you subtract one const X* pointer from another in
7933 an arm of an if-expression whose if-part is not a constant
7934 expression */
7935 const char *g = "string";
7936 ccp = &g + (g ? g-g : 0);
7937 /* HPUX 7.0 cc rejects these. */
7938 ++ccp;
7939 p = (char**) ccp;
7940 ccp = (char const *const *) p;
7941 { /* SCO 3.2v4 cc rejects this. */
7942 char *t;
7943 char const *s = 0 ? (char *) 0 : (char const *) 0;
7944
7945 *t++ = 0;
7946 if (s) return 0;
7947 }
7948 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7949 int x[] = {25, 17};
7950 const int *foo = &x[0];
7951 ++foo;
7952 }
7953 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7954 typedef const int *iptr;
7955 iptr p = 0;
7956 ++p;
7957 }
7958 { /* AIX XL C 1.02.0.0 rejects this saying
7959 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7960 struct s { int j; const int *ap[3]; };
7961 struct s *b; b->j = 5;
7962 }
7963 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7964 const int foo = 10;
7965 if (!foo) return 0;
7966 }
7967 return !x[0] && !zero.x;
7968#endif
7969
7970 ;
7971 return 0;
7972}
7973_ACEOF
7974rm -f conftest.$ac_objext
7975if { (ac_try="$ac_compile"
7976case "(($ac_try" in
7977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7979esac
7980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_compile") 2>conftest.er1
7982 ac_status=$?
7983 grep -v '^ *+' conftest.er1 >conftest.err
7984 rm -f conftest.er1
7985 cat conftest.err >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } &&
7988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7989 { (case "(($ac_try" in
7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7992esac
7993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994 (eval "$ac_try") 2>&5
7995 ac_status=$?
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; } &&
7998 { ac_try='test -s conftest.$ac_objext'
7999 { (case "(($ac_try" in
8000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8001 *) ac_try_echo=$ac_try;;
8002esac
8003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8004 (eval "$ac_try") 2>&5
8005 ac_status=$?
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
8008 ac_cv_c_const=yes
8009else
8010 echo "$as_me: failed program was:" >&5
8011sed 's/^/| /' conftest.$ac_ext >&5
8012
8013 ac_cv_c_const=no
8014fi
8015
8016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8017fi
8018{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8019echo "${ECHO_T}$ac_cv_c_const" >&6; }
8020if test $ac_cv_c_const = no; then
8021
8022cat >>confdefs.h <<\_ACEOF
8023#define const
8024_ACEOF
8025
8026fi
8027
8028
8029
8030
8031
8032
8033ac_header_dirent=no
8034for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8035 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8036{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8037echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8038if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8040else
8041 cat >conftest.$ac_ext <<_ACEOF
8042/* confdefs.h. */
8043_ACEOF
8044cat confdefs.h >>conftest.$ac_ext
8045cat >>conftest.$ac_ext <<_ACEOF
8046/* end confdefs.h. */
8047#include <sys/types.h>
8048#include <$ac_hdr>
8049
8050int
8051main ()
8052{
8053if ((DIR *) 0)
8054return 0;
8055 ;
8056 return 0;
8057}
8058_ACEOF
8059rm -f conftest.$ac_objext
8060if { (ac_try="$ac_compile"
8061case "(($ac_try" in
8062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063 *) ac_try_echo=$ac_try;;
8064esac
8065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8066 (eval "$ac_compile") 2>conftest.er1
8067 ac_status=$?
8068 grep -v '^ *+' conftest.er1 >conftest.err
8069 rm -f conftest.er1
8070 cat conftest.err >&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } &&
8073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8074 { (case "(($ac_try" in
8075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076 *) ac_try_echo=$ac_try;;
8077esac
8078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079 (eval "$ac_try") 2>&5
8080 ac_status=$?
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; } &&
8083 { ac_try='test -s conftest.$ac_objext'
8084 { (case "(($ac_try" in
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8087esac
8088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089 (eval "$ac_try") 2>&5
8090 ac_status=$?
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; }; then
8093 eval "$as_ac_Header=yes"
8094else
8095 echo "$as_me: failed program was:" >&5
8096sed 's/^/| /' conftest.$ac_ext >&5
8097
8098 eval "$as_ac_Header=no"
8099fi
8100
8101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102fi
8103ac_res=`eval echo '${'$as_ac_Header'}'`
8104 { echo "$as_me:$LINENO: result: $ac_res" >&5
8105echo "${ECHO_T}$ac_res" >&6; }
8106if test `eval echo '${'$as_ac_Header'}'` = yes; then
8107 cat >>confdefs.h <<_ACEOF
8108#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8109_ACEOF
8110
8111ac_header_dirent=$ac_hdr; break
8112fi
8113
8114done
8115# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8116if test $ac_header_dirent = dirent.h; then
8117 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8118echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8119if test "${ac_cv_search_opendir+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8121else
8122 ac_func_search_save_LIBS=$LIBS
8123cat >conftest.$ac_ext <<_ACEOF
8124/* confdefs.h. */
8125_ACEOF
8126cat confdefs.h >>conftest.$ac_ext
8127cat >>conftest.$ac_ext <<_ACEOF
8128/* end confdefs.h. */
8129
8130/* Override any GCC internal prototype to avoid an error.
8131 Use char because int might match the return type of a GCC
8132 builtin and then its argument prototype would still apply. */
8133#ifdef __cplusplus
8134extern "C"
8135#endif
8136char opendir ();
8137int
8138main ()
8139{
8140return opendir ();
8141 ;
8142 return 0;
8143}
8144_ACEOF
8145for ac_lib in '' dir; do
8146 if test -z "$ac_lib"; then
8147 ac_res="none required"
8148 else
8149 ac_res=-l$ac_lib
8150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8151 fi
8152 rm -f conftest.$ac_objext conftest$ac_exeext
8153if { (ac_try="$ac_link"
8154case "(($ac_try" in
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8157esac
8158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159 (eval "$ac_link") 2>conftest.er1
8160 ac_status=$?
8161 grep -v '^ *+' conftest.er1 >conftest.err
8162 rm -f conftest.er1
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } &&
8166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8167 { (case "(($ac_try" in
8168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169 *) ac_try_echo=$ac_try;;
8170esac
8171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172 (eval "$ac_try") 2>&5
8173 ac_status=$?
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; } &&
8176 { ac_try='test -s conftest$ac_exeext'
8177 { (case "(($ac_try" in
8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8180esac
8181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182 (eval "$ac_try") 2>&5
8183 ac_status=$?
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); }; }; then
8186 ac_cv_search_opendir=$ac_res
8187else
8188 echo "$as_me: failed program was:" >&5
8189sed 's/^/| /' conftest.$ac_ext >&5
8190
8191
8192fi
8193
8194rm -f core conftest.err conftest.$ac_objext \
8195 conftest$ac_exeext
8196 if test "${ac_cv_search_opendir+set}" = set; then
8197 break
8198fi
8199done
8200if test "${ac_cv_search_opendir+set}" = set; then
8201 :
8202else
8203 ac_cv_search_opendir=no
8204fi
8205rm conftest.$ac_ext
8206LIBS=$ac_func_search_save_LIBS
8207fi
8208{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8209echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8210ac_res=$ac_cv_search_opendir
8211if test "$ac_res" != no; then
8212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8213
8214fi
8215
8216else
8217 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8218echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8219if test "${ac_cv_search_opendir+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8221else
8222 ac_func_search_save_LIBS=$LIBS
8223cat >conftest.$ac_ext <<_ACEOF
8224/* confdefs.h. */
8225_ACEOF
8226cat confdefs.h >>conftest.$ac_ext
8227cat >>conftest.$ac_ext <<_ACEOF
8228/* end confdefs.h. */
8229
8230/* Override any GCC internal prototype to avoid an error.
8231 Use char because int might match the return type of a GCC
8232 builtin and then its argument prototype would still apply. */
8233#ifdef __cplusplus
8234extern "C"
8235#endif
8236char opendir ();
8237int
8238main ()
8239{
8240return opendir ();
8241 ;
8242 return 0;
8243}
8244_ACEOF
8245for ac_lib in '' x; do
8246 if test -z "$ac_lib"; then
8247 ac_res="none required"
8248 else
8249 ac_res=-l$ac_lib
8250 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8251 fi
8252 rm -f conftest.$ac_objext conftest$ac_exeext
8253if { (ac_try="$ac_link"
8254case "(($ac_try" in
8255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256 *) ac_try_echo=$ac_try;;
8257esac
8258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259 (eval "$ac_link") 2>conftest.er1
8260 ac_status=$?
8261 grep -v '^ *+' conftest.er1 >conftest.err
8262 rm -f conftest.er1
8263 cat conftest.err >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } &&
8266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8267 { (case "(($ac_try" in
8268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8269 *) ac_try_echo=$ac_try;;
8270esac
8271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8272 (eval "$ac_try") 2>&5
8273 ac_status=$?
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; } &&
8276 { ac_try='test -s conftest$ac_exeext'
8277 { (case "(($ac_try" in
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8280esac
8281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_try") 2>&5
8283 ac_status=$?
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); }; }; then
8286 ac_cv_search_opendir=$ac_res
8287else
8288 echo "$as_me: failed program was:" >&5
8289sed 's/^/| /' conftest.$ac_ext >&5
8290
8291
8292fi
8293
8294rm -f core conftest.err conftest.$ac_objext \
8295 conftest$ac_exeext
8296 if test "${ac_cv_search_opendir+set}" = set; then
8297 break
8298fi
8299done
8300if test "${ac_cv_search_opendir+set}" = set; then
8301 :
8302else
8303 ac_cv_search_opendir=no
8304fi
8305rm conftest.$ac_ext
8306LIBS=$ac_func_search_save_LIBS
8307fi
8308{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8309echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8310ac_res=$ac_cv_search_opendir
8311if test "$ac_res" != no; then
8312 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8313
8314fi
8315
8316fi
8317
8318
8319for ac_header in dlfcn.h
8320do
8321as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8322if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8324echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8325if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8326 echo $ECHO_N "(cached) $ECHO_C" >&6
8327fi
8328ac_res=`eval echo '${'$as_ac_Header'}'`
8329 { echo "$as_me:$LINENO: result: $ac_res" >&5
8330echo "${ECHO_T}$ac_res" >&6; }
8331else
8332 # Is the header compilable?
8333{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8334echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8335cat >conftest.$ac_ext <<_ACEOF
8336/* confdefs.h. */
8337_ACEOF
8338cat confdefs.h >>conftest.$ac_ext
8339cat >>conftest.$ac_ext <<_ACEOF
8340/* end confdefs.h. */
8341$ac_includes_default
8342#include <$ac_header>
8343_ACEOF
8344rm -f conftest.$ac_objext
8345if { (ac_try="$ac_compile"
8346case "(($ac_try" in
8347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348 *) ac_try_echo=$ac_try;;
8349esac
8350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351 (eval "$ac_compile") 2>conftest.er1
8352 ac_status=$?
8353 grep -v '^ *+' conftest.er1 >conftest.err
8354 rm -f conftest.er1
8355 cat conftest.err >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } &&
8358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8359 { (case "(($ac_try" in
8360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8362esac
8363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364 (eval "$ac_try") 2>&5
8365 ac_status=$?
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; } &&
8368 { ac_try='test -s conftest.$ac_objext'
8369 { (case "(($ac_try" in
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8372esac
8373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374 (eval "$ac_try") 2>&5
8375 ac_status=$?
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
8378 ac_header_compiler=yes
8379else
8380 echo "$as_me: failed program was:" >&5
8381sed 's/^/| /' conftest.$ac_ext >&5
8382
8383 ac_header_compiler=no
8384fi
8385
8386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8388echo "${ECHO_T}$ac_header_compiler" >&6; }
8389
8390# Is the header present?
8391{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8392echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8393cat >conftest.$ac_ext <<_ACEOF
8394/* confdefs.h. */
8395_ACEOF
8396cat confdefs.h >>conftest.$ac_ext
8397cat >>conftest.$ac_ext <<_ACEOF
8398/* end confdefs.h. */
8399#include <$ac_header>
8400_ACEOF
8401if { (ac_try="$ac_cpp conftest.$ac_ext"
8402case "(($ac_try" in
8403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404 *) ac_try_echo=$ac_try;;
8405esac
8406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8408 ac_status=$?
8409 grep -v '^ *+' conftest.er1 >conftest.err
8410 rm -f conftest.er1
8411 cat conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } >/dev/null; then
8414 if test -s conftest.err; then
8415 ac_cpp_err=$ac_c_preproc_warn_flag
8416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8417 else
8418 ac_cpp_err=
8419 fi
8420else
8421 ac_cpp_err=yes
8422fi
8423if test -z "$ac_cpp_err"; then
8424 ac_header_preproc=yes
8425else
8426 echo "$as_me: failed program was:" >&5
8427sed 's/^/| /' conftest.$ac_ext >&5
8428
8429 ac_header_preproc=no
8430fi
8431
8432rm -f conftest.err conftest.$ac_ext
8433{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8434echo "${ECHO_T}$ac_header_preproc" >&6; }
8435
8436# So? What about this header?
8437case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8438 yes:no: )
8439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8440echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8442echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8443 ac_header_preproc=yes
8444 ;;
8445 no:yes:* )
8446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8447echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8449echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8451echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8453echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8455echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8457echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8458 ( cat <<\_ASBOX
8459## ------------------------------ ##
8460## Report this to bugs@yourdomain ##
8461## ------------------------------ ##
8462_ASBOX
8463 ) | sed "s/^/$as_me: WARNING: /" >&2
8464 ;;
8465esac
8466{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8469 echo $ECHO_N "(cached) $ECHO_C" >&6
8470else
8471 eval "$as_ac_Header=\$ac_header_preproc"
8472fi
8473ac_res=`eval echo '${'$as_ac_Header'}'`
8474 { echo "$as_me:$LINENO: result: $ac_res" >&5
8475echo "${ECHO_T}$ac_res" >&6; }
8476
8477fi
8478if test `eval echo '${'$as_ac_Header'}'` = yes; then
8479 cat >>confdefs.h <<_ACEOF
8480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8481_ACEOF
8482
8483fi
8484
8485done
8486
8487# Check whether --enable-ltdl-install was given.
8488if test "${enable_ltdl_install+set}" = set; then
8489 enableval=$enable_ltdl_install;
8490fi
8491
8492
8493
8494
8495if test x"${enable_ltdl_install-no}" != xno; then
8496 INSTALL_LTDL_TRUE=
8497 INSTALL_LTDL_FALSE='#'
8498else
8499 INSTALL_LTDL_TRUE='#'
8500 INSTALL_LTDL_FALSE=
8501fi
8502
8503
8504
8505if test x"${enable_ltdl_convenience-no}" != xno; then
8506 CONVENIENCE_LTDL_TRUE=
8507 CONVENIENCE_LTDL_FALSE='#'
8508else
8509 CONVENIENCE_LTDL_TRUE='#'
8510 CONVENIENCE_LTDL_FALSE=
8511fi
8512
8513
8514{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8515echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8516library_names_spec=
8517libname_spec='lib$name'
8518soname_spec=
8519shrext_cmds=".so"
8520postinstall_cmds=
8521postuninstall_cmds=
8522finish_cmds=
8523finish_eval=
8524shlibpath_var=
8525shlibpath_overrides_runpath=unknown
8526version_type=none
8527dynamic_linker="$host_os ld.so"
8528sys_lib_dlsearch_path_spec="/lib /usr/lib"
8529if test "$GCC" = yes; then
8530 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8531 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8532 # if the path contains ";" then we assume it to be the separator
8533 # otherwise default to the standard path separator (i.e. ":") - it is
8534 # assumed that no part of a normal pathname contains ";" but that should
8535 # okay in the real world where ";" in dirpaths is itself problematic.
8536 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8537 else
8538 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8539 fi
8540else
8541 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8542fi
8543need_lib_prefix=unknown
8544hardcode_into_libs=no
8545
8546# when you set need_version to no, make sure it does not cause -set_version
8547# flags to be left without arguments
8548need_version=unknown
8549
8550case $host_os in
8551aix3*)
8552 version_type=linux
8553 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8554 shlibpath_var=LIBPATH
8555
8556 # AIX 3 has no versioning support, so we append a major version to the name.
8557 soname_spec='${libname}${release}${shared_ext}$major'
8558 ;;
8559
8560aix4* | aix5*)
8561 version_type=linux
8562 need_lib_prefix=no
8563 need_version=no
8564 hardcode_into_libs=yes
8565 if test "$host_cpu" = ia64; then
8566 # AIX 5 supports IA64
8567 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8568 shlibpath_var=LD_LIBRARY_PATH
8569 else
8570 # With GCC up to 2.95.x, collect2 would create an import file
8571 # for dependence libraries. The import file would start with
8572 # the line `#! .'. This would cause the generated library to
8573 # depend on `.', always an invalid library. This was fixed in
8574 # development snapshots of GCC prior to 3.0.
8575 case $host_os in
8576 aix4 | aix4.[01] | aix4.[01].*)
8577 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8578 echo ' yes '
8579 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8580 :
8581 else
8582 can_build_shared=no
8583 fi
8584 ;;
8585 esac
8586 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8587 # soname into executable. Probably we can add versioning support to
8588 # collect2, so additional links can be useful in future.
8589 if test "$aix_use_runtimelinking" = yes; then
8590 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8591 # instead of lib<name>.a to let people know that these are not
8592 # typical AIX shared libraries.
8593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8594 else
8595 # We preserve .a as extension for shared libraries through AIX4.2
8596 # and later when we are not doing run time linking.
8597 library_names_spec='${libname}${release}.a $libname.a'
8598 soname_spec='${libname}${release}${shared_ext}$major'
8599 fi
8600 shlibpath_var=LIBPATH
8601 fi
8602 ;;
8603
8604amigaos*)
8605 library_names_spec='$libname.ixlibrary $libname.a'
8606 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8607 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'
8608 ;;
8609
8610beos*)
8611 library_names_spec='${libname}${shared_ext}'
8612 dynamic_linker="$host_os ld.so"
8613 shlibpath_var=LIBRARY_PATH
8614 ;;
8615
8616bsdi[45]*)
8617 version_type=linux
8618 need_version=no
8619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8620 soname_spec='${libname}${release}${shared_ext}$major'
8621 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8622 shlibpath_var=LD_LIBRARY_PATH
8623 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8624 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8625 # the default ld.so.conf also contains /usr/contrib/lib and
8626 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8627 # libtool to hard-code these into programs
8628 ;;
8629
8630cygwin* | mingw* | pw32*)
8631 version_type=windows
8632 shrext_cmds=".dll"
8633 need_version=no
8634 need_lib_prefix=no
8635
8636 case $GCC,$host_os in
8637 yes,cygwin* | yes,mingw* | yes,pw32*)
8638 library_names_spec='$libname.dll.a'
8639 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8640 postinstall_cmds='base_file=`basename \${file}`~
8641 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8642 dldir=$destdir/`dirname \$dlpath`~
8643 test -d \$dldir || mkdir -p \$dldir~
8644 $install_prog $dir/$dlname \$dldir/$dlname~
8645 chmod a+x \$dldir/$dlname'
8646 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8647 dlpath=$dir/\$dldll~
8648 $rm \$dlpath'
8649 shlibpath_overrides_runpath=yes
8650
8651 case $host_os in
8652 cygwin*)
8653 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8654 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8655 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8656 ;;
8657 mingw*)
8658 # MinGW DLLs use traditional 'lib' prefix
8659 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8660 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8661 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8662 # It is most probably a Windows format PATH printed by
8663 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8664 # path with ; separators, and with drive letters. We can handle the
8665 # drive letters (cygwin fileutils understands them), so leave them,
8666 # especially as we might pass files found there to a mingw objdump,
8667 # which wouldn't understand a cygwinified path. Ahh.
8668 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8669 else
8670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8671 fi
8672 ;;
8673 pw32*)
8674 # pw32 DLLs use 'pw' prefix rather than 'lib'
8675 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8676 ;;
8677 esac
8678 ;;
8679
8680 *)
8681 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8682 ;;
8683 esac
8684 dynamic_linker='Win32 ld.exe'
8685 # FIXME: first we should search . and the directory the executable is in
8686 shlibpath_var=PATH
8687 ;;
8688
8689darwin* | rhapsody*)
8690 dynamic_linker="$host_os dyld"
8691 version_type=darwin
8692 need_lib_prefix=no
8693 need_version=no
8694 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8695 soname_spec='${libname}${release}${major}$shared_ext'
8696 shlibpath_overrides_runpath=yes
8697 shlibpath_var=DYLD_LIBRARY_PATH
8698 shrext_cmds='.dylib'
8699 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8700 if test "$GCC" = yes; then
8701 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"`
8702 else
8703 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8704 fi
8705 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8706 ;;
8707
8708dgux*)
8709 version_type=linux
8710 need_lib_prefix=no
8711 need_version=no
8712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8713 soname_spec='${libname}${release}${shared_ext}$major'
8714 shlibpath_var=LD_LIBRARY_PATH
8715 ;;
8716
Rafael Espindola48381e52012-01-31 17:18:47 +00008717freebsd1.*)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008718 dynamic_linker=no
8719 ;;
8720
8721kfreebsd*-gnu)
8722 version_type=linux
8723 need_lib_prefix=no
8724 need_version=no
8725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8726 soname_spec='${libname}${release}${shared_ext}$major'
8727 shlibpath_var=LD_LIBRARY_PATH
8728 shlibpath_overrides_runpath=no
8729 hardcode_into_libs=yes
8730 dynamic_linker='GNU ld.so'
8731 ;;
8732
8733freebsd* | dragonfly*)
8734 # DragonFly does not have aout. When/if they implement a new
8735 # versioning mechanism, adjust this.
8736 if test -x /usr/bin/objformat; then
8737 objformat=`/usr/bin/objformat`
8738 else
8739 case $host_os in
Rafael Espindola48381e52012-01-31 17:18:47 +00008740 freebsd[123].*) objformat=aout ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008741 *) objformat=elf ;;
8742 esac
8743 fi
8744 version_type=freebsd-$objformat
8745 case $version_type in
8746 freebsd-elf*)
8747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8748 need_version=no
8749 need_lib_prefix=no
8750 ;;
8751 freebsd-*)
8752 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8753 need_version=yes
8754 ;;
8755 esac
8756 shlibpath_var=LD_LIBRARY_PATH
8757 case $host_os in
Rafael Espindola48381e52012-01-31 17:18:47 +00008758 freebsd2.*)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00008759 shlibpath_overrides_runpath=yes
8760 ;;
8761 freebsd3.[01]* | freebsdelf3.[01]*)
8762 shlibpath_overrides_runpath=yes
8763 hardcode_into_libs=yes
8764 ;;
8765 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8766 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8767 shlibpath_overrides_runpath=no
8768 hardcode_into_libs=yes
8769 ;;
8770 freebsd*) # from 4.6 on
8771 shlibpath_overrides_runpath=yes
8772 hardcode_into_libs=yes
8773 ;;
8774 esac
8775 ;;
8776
8777gnu*)
8778 version_type=linux
8779 need_lib_prefix=no
8780 need_version=no
8781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8782 soname_spec='${libname}${release}${shared_ext}$major'
8783 shlibpath_var=LD_LIBRARY_PATH
8784 hardcode_into_libs=yes
8785 ;;
8786
8787hpux9* | hpux10* | hpux11*)
8788 # Give a soname corresponding to the major version so that dld.sl refuses to
8789 # link against other versions.
8790 version_type=sunos
8791 need_lib_prefix=no
8792 need_version=no
8793 case $host_cpu in
8794 ia64*)
8795 shrext_cmds='.so'
8796 hardcode_into_libs=yes
8797 dynamic_linker="$host_os dld.so"
8798 shlibpath_var=LD_LIBRARY_PATH
8799 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8801 soname_spec='${libname}${release}${shared_ext}$major'
8802 if test "X$HPUX_IA64_MODE" = X32; then
8803 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8804 else
8805 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8806 fi
8807 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8808 ;;
8809 hppa*64*)
8810 shrext_cmds='.sl'
8811 hardcode_into_libs=yes
8812 dynamic_linker="$host_os dld.sl"
8813 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8814 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8816 soname_spec='${libname}${release}${shared_ext}$major'
8817 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8818 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8819 ;;
8820 *)
8821 shrext_cmds='.sl'
8822 dynamic_linker="$host_os dld.sl"
8823 shlibpath_var=SHLIB_PATH
8824 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8826 soname_spec='${libname}${release}${shared_ext}$major'
8827 ;;
8828 esac
8829 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8830 postinstall_cmds='chmod 555 $lib'
8831 ;;
8832
8833interix3*)
8834 version_type=linux
8835 need_lib_prefix=no
8836 need_version=no
8837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8838 soname_spec='${libname}${release}${shared_ext}$major'
8839 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8840 shlibpath_var=LD_LIBRARY_PATH
8841 shlibpath_overrides_runpath=no
8842 hardcode_into_libs=yes
8843 ;;
8844
8845irix5* | irix6* | nonstopux*)
8846 case $host_os in
8847 nonstopux*) version_type=nonstopux ;;
8848 *)
8849 if test "$lt_cv_prog_gnu_ld" = yes; then
8850 version_type=linux
8851 else
8852 version_type=irix
8853 fi ;;
8854 esac
8855 need_lib_prefix=no
8856 need_version=no
8857 soname_spec='${libname}${release}${shared_ext}$major'
8858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8859 case $host_os in
8860 irix5* | nonstopux*)
8861 libsuff= shlibsuff=
8862 ;;
8863 *)
8864 case $LD in # libtool.m4 will add one of these switches to LD
8865 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8866 libsuff= shlibsuff= libmagic=32-bit;;
8867 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8868 libsuff=32 shlibsuff=N32 libmagic=N32;;
8869 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8870 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8871 *) libsuff= shlibsuff= libmagic=never-match;;
8872 esac
8873 ;;
8874 esac
8875 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8876 shlibpath_overrides_runpath=no
8877 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8878 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8879 hardcode_into_libs=yes
8880 ;;
8881
8882# No shared lib support for Linux oldld, aout, or coff.
8883linux*oldld* | linux*aout* | linux*coff*)
8884 dynamic_linker=no
8885 ;;
8886
8887# This must be Linux ELF.
8888linux*)
8889 version_type=linux
8890 need_lib_prefix=no
8891 need_version=no
8892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8893 soname_spec='${libname}${release}${shared_ext}$major'
8894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8895 shlibpath_var=LD_LIBRARY_PATH
8896 shlibpath_overrides_runpath=no
8897 # This implies no fast_install, which is unacceptable.
8898 # Some rework will be needed to allow for fast_install
8899 # before this can be enabled.
8900 hardcode_into_libs=yes
8901
8902 # Append ld.so.conf contents to the search path
8903 if test -f /etc/ld.so.conf; then
8904 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' ' '`
8905 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8906 fi
8907
8908 # We used to test for /lib/ld.so.1 and disable shared libraries on
8909 # powerpc, because MkLinux only supported shared libraries with the
8910 # GNU dynamic linker. Since this was broken with cross compilers,
8911 # most powerpc-linux boxes support dynamic linking these days and
8912 # people can always --disable-shared, the test was removed, and we
8913 # assume the GNU/Linux dynamic linker is in use.
8914 dynamic_linker='GNU/Linux ld.so'
8915 ;;
8916
8917knetbsd*-gnu)
8918 version_type=linux
8919 need_lib_prefix=no
8920 need_version=no
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8922 soname_spec='${libname}${release}${shared_ext}$major'
8923 shlibpath_var=LD_LIBRARY_PATH
8924 shlibpath_overrides_runpath=no
8925 hardcode_into_libs=yes
8926 dynamic_linker='GNU ld.so'
8927 ;;
8928
8929netbsd*)
8930 version_type=sunos
8931 need_lib_prefix=no
8932 need_version=no
8933 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8936 dynamic_linker='NetBSD (a.out) ld.so'
8937 else
8938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8939 soname_spec='${libname}${release}${shared_ext}$major'
8940 dynamic_linker='NetBSD ld.elf_so'
8941 fi
8942 shlibpath_var=LD_LIBRARY_PATH
8943 shlibpath_overrides_runpath=yes
8944 hardcode_into_libs=yes
8945 ;;
8946
8947newsos6)
8948 version_type=linux
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8950 shlibpath_var=LD_LIBRARY_PATH
8951 shlibpath_overrides_runpath=yes
8952 ;;
8953
8954nto-qnx*)
8955 version_type=linux
8956 need_lib_prefix=no
8957 need_version=no
8958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8959 soname_spec='${libname}${release}${shared_ext}$major'
8960 shlibpath_var=LD_LIBRARY_PATH
8961 shlibpath_overrides_runpath=yes
8962 ;;
8963
8964openbsd*)
8965 version_type=sunos
8966 sys_lib_dlsearch_path_spec="/usr/lib"
8967 need_lib_prefix=no
8968 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8969 case $host_os in
8970 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8971 *) need_version=no ;;
8972 esac
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8975 shlibpath_var=LD_LIBRARY_PATH
8976 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8977 case $host_os in
8978 openbsd2.[89] | openbsd2.[89].*)
8979 shlibpath_overrides_runpath=no
8980 ;;
8981 *)
8982 shlibpath_overrides_runpath=yes
8983 ;;
8984 esac
8985 else
8986 shlibpath_overrides_runpath=yes
8987 fi
8988 ;;
8989
8990os2*)
8991 libname_spec='$name'
8992 shrext_cmds=".dll"
8993 need_lib_prefix=no
8994 library_names_spec='$libname${shared_ext} $libname.a'
8995 dynamic_linker='OS/2 ld.exe'
8996 shlibpath_var=LIBPATH
8997 ;;
8998
8999osf3* | osf4* | osf5*)
9000 version_type=osf
9001 need_lib_prefix=no
9002 need_version=no
9003 soname_spec='${libname}${release}${shared_ext}$major'
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9005 shlibpath_var=LD_LIBRARY_PATH
9006 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9007 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9008 ;;
9009
9010solaris*)
9011 version_type=linux
9012 need_lib_prefix=no
9013 need_version=no
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9015 soname_spec='${libname}${release}${shared_ext}$major'
9016 shlibpath_var=LD_LIBRARY_PATH
9017 shlibpath_overrides_runpath=yes
9018 hardcode_into_libs=yes
9019 # ldd complains unless libraries are executable
9020 postinstall_cmds='chmod +x $lib'
9021 ;;
9022
9023sunos4*)
9024 version_type=sunos
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9026 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9027 shlibpath_var=LD_LIBRARY_PATH
9028 shlibpath_overrides_runpath=yes
9029 if test "$with_gnu_ld" = yes; then
9030 need_lib_prefix=no
9031 fi
9032 need_version=yes
9033 ;;
9034
9035sysv4 | sysv4.3*)
9036 version_type=linux
9037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9038 soname_spec='${libname}${release}${shared_ext}$major'
9039 shlibpath_var=LD_LIBRARY_PATH
9040 case $host_vendor in
9041 sni)
9042 shlibpath_overrides_runpath=no
9043 need_lib_prefix=no
9044 export_dynamic_flag_spec='${wl}-Blargedynsym'
9045 runpath_var=LD_RUN_PATH
9046 ;;
9047 siemens)
9048 need_lib_prefix=no
9049 ;;
9050 motorola)
9051 need_lib_prefix=no
9052 need_version=no
9053 shlibpath_overrides_runpath=no
9054 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9055 ;;
9056 esac
9057 ;;
9058
9059sysv4*MP*)
9060 if test -d /usr/nec ;then
9061 version_type=linux
9062 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9063 soname_spec='$libname${shared_ext}.$major'
9064 shlibpath_var=LD_LIBRARY_PATH
9065 fi
9066 ;;
9067
9068sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9069 version_type=freebsd-elf
9070 need_lib_prefix=no
9071 need_version=no
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9073 soname_spec='${libname}${release}${shared_ext}$major'
9074 shlibpath_var=LD_LIBRARY_PATH
9075 hardcode_into_libs=yes
9076 if test "$with_gnu_ld" = yes; then
9077 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9078 shlibpath_overrides_runpath=no
9079 else
9080 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9081 shlibpath_overrides_runpath=yes
9082 case $host_os in
9083 sco3.2v5*)
9084 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9085 ;;
9086 esac
9087 fi
9088 sys_lib_dlsearch_path_spec='/usr/lib'
9089 ;;
9090
9091uts4*)
9092 version_type=linux
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094 soname_spec='${libname}${release}${shared_ext}$major'
9095 shlibpath_var=LD_LIBRARY_PATH
9096 ;;
9097
9098*)
9099 dynamic_linker=no
9100 ;;
9101esac
9102{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9103echo "${ECHO_T}$dynamic_linker" >&6; }
9104test "$dynamic_linker" = no && can_build_shared=no
9105
9106variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9107if test "$GCC" = yes; then
9108 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9109fi
9110
9111
9112{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9113echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9114if test "${libltdl_cv_shlibext+set}" = set; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9116else
9117
9118module=yes
9119eval libltdl_cv_shlibext=$shrext_cmds
9120
9121fi
9122{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9123echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9124if test -n "$libltdl_cv_shlibext"; then
9125
9126cat >>confdefs.h <<_ACEOF
9127#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9128_ACEOF
9129
9130fi
9131
9132
9133{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9134echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9135if test "${libltdl_cv_shlibpath_var+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9137else
9138 libltdl_cv_shlibpath_var="$shlibpath_var"
9139fi
9140{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9141echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9142if test -n "$libltdl_cv_shlibpath_var"; then
9143
9144cat >>confdefs.h <<_ACEOF
9145#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9146_ACEOF
9147
9148fi
9149
9150
9151{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9152echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9153if test "${libltdl_cv_sys_search_path+set}" = set; then
9154 echo $ECHO_N "(cached) $ECHO_C" >&6
9155else
9156 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9157fi
9158{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9159echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9160if test -n "$libltdl_cv_sys_search_path"; then
9161 sys_search_path=
9162 for dir in $libltdl_cv_sys_search_path; do
9163 if test -z "$sys_search_path"; then
9164 sys_search_path="$dir"
9165 else
9166 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9167 fi
9168 done
9169
9170cat >>confdefs.h <<_ACEOF
9171#define LTDL_SYSSEARCHPATH "$sys_search_path"
9172_ACEOF
9173
9174fi
9175
9176{ echo "$as_me:$LINENO: checking for objdir" >&5
9177echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9178if test "${libltdl_cv_objdir+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9180else
9181 libltdl_cv_objdir="$objdir"
9182 if test -n "$objdir"; then
9183 :
9184 else
9185 rm -f .libs 2>/dev/null
9186 mkdir .libs 2>/dev/null
9187 if test -d .libs; then
9188 libltdl_cv_objdir=.libs
9189 else
9190 # MS-DOS does not allow filenames that begin with a dot.
9191 libltdl_cv_objdir=_libs
9192 fi
9193 rmdir .libs 2>/dev/null
9194 fi
9195
9196fi
9197{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9198echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9199
9200cat >>confdefs.h <<_ACEOF
9201#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9202_ACEOF
9203
9204
9205
9206
9207
9208
9209# Check for command to grab the raw symbol name followed by C symbol from nm.
9210{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9211echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9212if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9214else
9215
9216# These are sane defaults that work on at least a few old systems.
9217# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9218
9219# Character class describing NM global symbol codes.
9220symcode='[BCDEGRST]'
9221
9222# Regexp to match symbols that can be accessed directly from C.
9223sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9224
9225# Transform an extracted symbol line into a proper C declaration
9226lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9227
9228# Transform an extracted symbol line into symbol name and symbol address
9229lt_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'"
9230
9231# Define system-specific variables.
9232case $host_os in
9233aix*)
9234 symcode='[BCDT]'
9235 ;;
9236cygwin* | mingw* | pw32*)
9237 symcode='[ABCDGISTW]'
9238 ;;
9239hpux*) # Its linker distinguishes data from code symbols
9240 if test "$host_cpu" = ia64; then
9241 symcode='[ABCDEGRST]'
9242 fi
9243 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9244 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'"
9245 ;;
9246linux*)
9247 if test "$host_cpu" = ia64; then
9248 symcode='[ABCDGIRSTW]'
9249 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9250 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'"
9251 fi
9252 ;;
9253irix* | nonstopux*)
9254 symcode='[BCDEGRST]'
9255 ;;
9256osf*)
9257 symcode='[BCDEGQRST]'
9258 ;;
9259solaris*)
9260 symcode='[BDRT]'
9261 ;;
9262sco3.2v5*)
9263 symcode='[DT]'
9264 ;;
9265sysv4.2uw2*)
9266 symcode='[DT]'
9267 ;;
9268sysv5* | sco5v6* | unixware* | OpenUNIX*)
9269 symcode='[ABDT]'
9270 ;;
9271sysv4)
9272 symcode='[DFNSTU]'
9273 ;;
9274esac
9275
9276# Handle CRLF in mingw tool chain
9277opt_cr=
9278case $build_os in
9279mingw*)
9280 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9281 ;;
9282esac
9283
9284# If we're using GNU nm, then use its standard symbol codes.
9285case `$NM -V 2>&1` in
9286*GNU* | *'with BFD'*)
9287 symcode='[ABCDGIRSTW]' ;;
9288esac
9289
9290# Try without a prefix undercore, then with it.
9291for ac_symprfx in "" "_"; do
9292
9293 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9294 symxfrm="\\1 $ac_symprfx\\2 \\2"
9295
9296 # Write the raw and C identifiers.
9297 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9298
9299 # Check to see that the pipe works correctly.
9300 pipe_works=no
9301
9302 rm -f conftest*
9303 cat > conftest.$ac_ext <<EOF
9304#ifdef __cplusplus
9305extern "C" {
9306#endif
9307char nm_test_var;
9308void nm_test_func(){}
9309#ifdef __cplusplus
9310}
9311#endif
9312int main(){nm_test_var='a';nm_test_func();return(0);}
9313EOF
9314
9315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9316 (eval $ac_compile) 2>&5
9317 ac_status=$?
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); }; then
9320 # Now try to grab the symbols.
9321 nlist=conftest.nm
9322 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9323 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9324 ac_status=$?
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } && test -s "$nlist"; then
9327 # Try sorting and uniquifying the output.
9328 if sort "$nlist" | uniq > "$nlist"T; then
9329 mv -f "$nlist"T "$nlist"
9330 else
9331 rm -f "$nlist"T
9332 fi
9333
9334 # Make sure that we snagged all the symbols we need.
9335 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9336 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9337 cat <<EOF > conftest.$ac_ext
9338#ifdef __cplusplus
9339extern "C" {
9340#endif
9341
9342EOF
9343 # Now generate the symbol file.
9344 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9345
9346 cat <<EOF >> conftest.$ac_ext
9347#if defined (__STDC__) && __STDC__
9348# define lt_ptr_t void *
9349#else
9350# define lt_ptr_t char *
9351# define const
9352#endif
9353
9354/* The mapping between symbol names and symbols. */
9355const struct {
9356 const char *name;
9357 lt_ptr_t address;
9358}
9359lt_preloaded_symbols[] =
9360{
9361EOF
9362 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9363 cat <<\EOF >> conftest.$ac_ext
9364 {0, (lt_ptr_t) 0}
9365};
9366
9367#ifdef __cplusplus
9368}
9369#endif
9370EOF
9371 # Now try linking the two files.
9372 mv conftest.$ac_objext conftstm.$ac_objext
9373 lt_save_LIBS="$LIBS"
9374 lt_save_CFLAGS="$CFLAGS"
9375 LIBS="conftstm.$ac_objext"
9376 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9378 (eval $ac_link) 2>&5
9379 ac_status=$?
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9382 pipe_works=yes
9383 fi
9384 LIBS="$lt_save_LIBS"
9385 CFLAGS="$lt_save_CFLAGS"
9386 else
9387 echo "cannot find nm_test_func in $nlist" >&5
9388 fi
9389 else
9390 echo "cannot find nm_test_var in $nlist" >&5
9391 fi
9392 else
9393 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9394 fi
9395 else
9396 echo "$progname: failed program was:" >&5
9397 cat conftest.$ac_ext >&5
9398 fi
9399 rm -f conftest* conftst*
9400
9401 # Do not use the global_symbol_pipe unless it works.
9402 if test "$pipe_works" = yes; then
9403 break
9404 else
9405 lt_cv_sys_global_symbol_pipe=
9406 fi
9407done
9408
9409fi
9410
9411if test -z "$lt_cv_sys_global_symbol_pipe"; then
9412 lt_cv_sys_global_symbol_to_cdecl=
9413fi
9414if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9415 { echo "$as_me:$LINENO: result: failed" >&5
9416echo "${ECHO_T}failed" >&6; }
9417else
9418 { echo "$as_me:$LINENO: result: ok" >&5
9419echo "${ECHO_T}ok" >&6; }
9420fi
9421
9422
9423{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9424echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9425if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9427else
9428 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9429 libltdl_cv_preloaded_symbols=yes
9430 else
9431 libltdl_cv_preloaded_symbols=no
9432 fi
9433
9434fi
9435{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9436echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9437if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9438
9439cat >>confdefs.h <<\_ACEOF
9440#define HAVE_PRELOADED_SYMBOLS 1
9441_ACEOF
9442
9443fi
9444
9445LIBADD_DL=
9446
9447ac_ext=c
9448ac_cpp='$CPP $CPPFLAGS'
9449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9451ac_compiler_gnu=$ac_cv_c_compiler_gnu
9452
9453
9454{ echo "$as_me:$LINENO: checking for shl_load" >&5
9455echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9456if test "${ac_cv_func_shl_load+set}" = set; then
9457 echo $ECHO_N "(cached) $ECHO_C" >&6
9458else
9459 cat >conftest.$ac_ext <<_ACEOF
9460/* confdefs.h. */
9461_ACEOF
9462cat confdefs.h >>conftest.$ac_ext
9463cat >>conftest.$ac_ext <<_ACEOF
9464/* end confdefs.h. */
9465/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9467#define shl_load innocuous_shl_load
9468
9469/* System header to define __stub macros and hopefully few prototypes,
9470 which can conflict with char shl_load (); below.
9471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9472 <limits.h> exists even on freestanding compilers. */
9473
9474#ifdef __STDC__
9475# include <limits.h>
9476#else
9477# include <assert.h>
9478#endif
9479
9480#undef shl_load
9481
9482/* Override any GCC internal prototype to avoid an error.
9483 Use char because int might match the return type of a GCC
9484 builtin and then its argument prototype would still apply. */
9485#ifdef __cplusplus
9486extern "C"
9487#endif
9488char shl_load ();
9489/* The GNU C library defines this for functions which it implements
9490 to always fail with ENOSYS. Some functions are actually named
9491 something starting with __ and the normal name is an alias. */
9492#if defined __stub_shl_load || defined __stub___shl_load
9493choke me
9494#endif
9495
9496int
9497main ()
9498{
9499return shl_load ();
9500 ;
9501 return 0;
9502}
9503_ACEOF
9504rm -f conftest.$ac_objext conftest$ac_exeext
9505if { (ac_try="$ac_link"
9506case "(($ac_try" in
9507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508 *) ac_try_echo=$ac_try;;
9509esac
9510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511 (eval "$ac_link") 2>conftest.er1
9512 ac_status=$?
9513 grep -v '^ *+' conftest.er1 >conftest.err
9514 rm -f conftest.er1
9515 cat conftest.err >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } &&
9518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9519 { (case "(($ac_try" in
9520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9521 *) ac_try_echo=$ac_try;;
9522esac
9523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9524 (eval "$ac_try") 2>&5
9525 ac_status=$?
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); }; } &&
9528 { ac_try='test -s conftest$ac_exeext'
9529 { (case "(($ac_try" in
9530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531 *) ac_try_echo=$ac_try;;
9532esac
9533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9534 (eval "$ac_try") 2>&5
9535 ac_status=$?
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); }; }; then
9538 ac_cv_func_shl_load=yes
9539else
9540 echo "$as_me: failed program was:" >&5
9541sed 's/^/| /' conftest.$ac_ext >&5
9542
9543 ac_cv_func_shl_load=no
9544fi
9545
9546rm -f core conftest.err conftest.$ac_objext \
9547 conftest$ac_exeext conftest.$ac_ext
9548fi
9549{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9550echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9551if test $ac_cv_func_shl_load = yes; then
9552
9553cat >>confdefs.h <<\_ACEOF
9554#define HAVE_SHL_LOAD 1
9555_ACEOF
9556
9557else
9558 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9559echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9560if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9562else
9563 ac_check_lib_save_LIBS=$LIBS
9564LIBS="-ldld $LIBS"
9565cat >conftest.$ac_ext <<_ACEOF
9566/* confdefs.h. */
9567_ACEOF
9568cat confdefs.h >>conftest.$ac_ext
9569cat >>conftest.$ac_ext <<_ACEOF
9570/* end confdefs.h. */
9571
9572/* Override any GCC internal prototype to avoid an error.
9573 Use char because int might match the return type of a GCC
9574 builtin and then its argument prototype would still apply. */
9575#ifdef __cplusplus
9576extern "C"
9577#endif
9578char shl_load ();
9579int
9580main ()
9581{
9582return shl_load ();
9583 ;
9584 return 0;
9585}
9586_ACEOF
9587rm -f conftest.$ac_objext conftest$ac_exeext
9588if { (ac_try="$ac_link"
9589case "(($ac_try" in
9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591 *) ac_try_echo=$ac_try;;
9592esac
9593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594 (eval "$ac_link") 2>conftest.er1
9595 ac_status=$?
9596 grep -v '^ *+' conftest.er1 >conftest.err
9597 rm -f conftest.er1
9598 cat conftest.err >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } &&
9601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9602 { (case "(($ac_try" in
9603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604 *) ac_try_echo=$ac_try;;
9605esac
9606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9607 (eval "$ac_try") 2>&5
9608 ac_status=$?
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; } &&
9611 { ac_try='test -s conftest$ac_exeext'
9612 { (case "(($ac_try" in
9613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9614 *) ac_try_echo=$ac_try;;
9615esac
9616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9617 (eval "$ac_try") 2>&5
9618 ac_status=$?
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; }; then
9621 ac_cv_lib_dld_shl_load=yes
9622else
9623 echo "$as_me: failed program was:" >&5
9624sed 's/^/| /' conftest.$ac_ext >&5
9625
9626 ac_cv_lib_dld_shl_load=no
9627fi
9628
9629rm -f core conftest.err conftest.$ac_objext \
9630 conftest$ac_exeext conftest.$ac_ext
9631LIBS=$ac_check_lib_save_LIBS
9632fi
9633{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9634echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9635if test $ac_cv_lib_dld_shl_load = yes; then
9636
9637cat >>confdefs.h <<\_ACEOF
9638#define HAVE_SHL_LOAD 1
9639_ACEOF
9640
9641 LIBADD_DL="$LIBADD_DL -ldld"
9642else
9643 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9644echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9645if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9647else
9648 ac_check_lib_save_LIBS=$LIBS
9649LIBS="-ldl $LIBS"
9650cat >conftest.$ac_ext <<_ACEOF
9651/* confdefs.h. */
9652_ACEOF
9653cat confdefs.h >>conftest.$ac_ext
9654cat >>conftest.$ac_ext <<_ACEOF
9655/* end confdefs.h. */
9656
9657/* Override any GCC internal prototype to avoid an error.
9658 Use char because int might match the return type of a GCC
9659 builtin and then its argument prototype would still apply. */
9660#ifdef __cplusplus
9661extern "C"
9662#endif
9663char dlopen ();
9664int
9665main ()
9666{
9667return dlopen ();
9668 ;
9669 return 0;
9670}
9671_ACEOF
9672rm -f conftest.$ac_objext conftest$ac_exeext
9673if { (ac_try="$ac_link"
9674case "(($ac_try" in
9675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9676 *) ac_try_echo=$ac_try;;
9677esac
9678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9679 (eval "$ac_link") 2>conftest.er1
9680 ac_status=$?
9681 grep -v '^ *+' conftest.er1 >conftest.err
9682 rm -f conftest.er1
9683 cat conftest.err >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } &&
9686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9687 { (case "(($ac_try" in
9688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9690esac
9691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_try") 2>&5
9693 ac_status=$?
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; } &&
9696 { ac_try='test -s conftest$ac_exeext'
9697 { (case "(($ac_try" in
9698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9699 *) ac_try_echo=$ac_try;;
9700esac
9701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9702 (eval "$ac_try") 2>&5
9703 ac_status=$?
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; }; then
9706 ac_cv_lib_dl_dlopen=yes
9707else
9708 echo "$as_me: failed program was:" >&5
9709sed 's/^/| /' conftest.$ac_ext >&5
9710
9711 ac_cv_lib_dl_dlopen=no
9712fi
9713
9714rm -f core conftest.err conftest.$ac_objext \
9715 conftest$ac_exeext conftest.$ac_ext
9716LIBS=$ac_check_lib_save_LIBS
9717fi
9718{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9719echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9720if test $ac_cv_lib_dl_dlopen = yes; then
9721
9722cat >>confdefs.h <<\_ACEOF
9723#define HAVE_LIBDL 1
9724_ACEOF
9725
9726 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9727else
9728 cat >conftest.$ac_ext <<_ACEOF
9729/* confdefs.h. */
9730_ACEOF
9731cat confdefs.h >>conftest.$ac_ext
9732cat >>conftest.$ac_ext <<_ACEOF
9733/* end confdefs.h. */
9734#if HAVE_DLFCN_H
9735# include <dlfcn.h>
9736#endif
9737
9738int
9739main ()
9740{
9741dlopen(0, 0);
9742 ;
9743 return 0;
9744}
9745_ACEOF
9746rm -f conftest.$ac_objext conftest$ac_exeext
9747if { (ac_try="$ac_link"
9748case "(($ac_try" in
9749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750 *) ac_try_echo=$ac_try;;
9751esac
9752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753 (eval "$ac_link") 2>conftest.er1
9754 ac_status=$?
9755 grep -v '^ *+' conftest.er1 >conftest.err
9756 rm -f conftest.er1
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } &&
9760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9761 { (case "(($ac_try" in
9762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763 *) ac_try_echo=$ac_try;;
9764esac
9765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9766 (eval "$ac_try") 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest$ac_exeext'
9771 { (case "(($ac_try" in
9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9774esac
9775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_try") 2>&5
9777 ac_status=$?
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; }; then
9780
9781cat >>confdefs.h <<\_ACEOF
9782#define HAVE_LIBDL 1
9783_ACEOF
9784 libltdl_cv_func_dlopen="yes"
9785else
9786 echo "$as_me: failed program was:" >&5
9787sed 's/^/| /' conftest.$ac_ext >&5
9788
9789 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9790echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9791if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9793else
9794 ac_check_lib_save_LIBS=$LIBS
9795LIBS="-lsvld $LIBS"
9796cat >conftest.$ac_ext <<_ACEOF
9797/* confdefs.h. */
9798_ACEOF
9799cat confdefs.h >>conftest.$ac_ext
9800cat >>conftest.$ac_ext <<_ACEOF
9801/* end confdefs.h. */
9802
9803/* Override any GCC internal prototype to avoid an error.
9804 Use char because int might match the return type of a GCC
9805 builtin and then its argument prototype would still apply. */
9806#ifdef __cplusplus
9807extern "C"
9808#endif
9809char dlopen ();
9810int
9811main ()
9812{
9813return dlopen ();
9814 ;
9815 return 0;
9816}
9817_ACEOF
9818rm -f conftest.$ac_objext conftest$ac_exeext
9819if { (ac_try="$ac_link"
9820case "(($ac_try" in
9821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 *) ac_try_echo=$ac_try;;
9823esac
9824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 (eval "$ac_link") 2>conftest.er1
9826 ac_status=$?
9827 grep -v '^ *+' conftest.er1 >conftest.err
9828 rm -f conftest.er1
9829 cat conftest.err >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); } &&
9832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9833 { (case "(($ac_try" in
9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9836esac
9837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838 (eval "$ac_try") 2>&5
9839 ac_status=$?
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; } &&
9842 { ac_try='test -s conftest$ac_exeext'
9843 { (case "(($ac_try" in
9844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9846esac
9847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848 (eval "$ac_try") 2>&5
9849 ac_status=$?
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 ac_cv_lib_svld_dlopen=yes
9853else
9854 echo "$as_me: failed program was:" >&5
9855sed 's/^/| /' conftest.$ac_ext >&5
9856
9857 ac_cv_lib_svld_dlopen=no
9858fi
9859
9860rm -f core conftest.err conftest.$ac_objext \
9861 conftest$ac_exeext conftest.$ac_ext
9862LIBS=$ac_check_lib_save_LIBS
9863fi
9864{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9865echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9866if test $ac_cv_lib_svld_dlopen = yes; then
9867
9868cat >>confdefs.h <<\_ACEOF
9869#define HAVE_LIBDL 1
9870_ACEOF
9871
9872 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9873else
9874 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9875echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9876if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9878else
9879 ac_check_lib_save_LIBS=$LIBS
9880LIBS="-ldld $LIBS"
9881cat >conftest.$ac_ext <<_ACEOF
9882/* confdefs.h. */
9883_ACEOF
9884cat confdefs.h >>conftest.$ac_ext
9885cat >>conftest.$ac_ext <<_ACEOF
9886/* end confdefs.h. */
9887
9888/* Override any GCC internal prototype to avoid an error.
9889 Use char because int might match the return type of a GCC
9890 builtin and then its argument prototype would still apply. */
9891#ifdef __cplusplus
9892extern "C"
9893#endif
9894char dld_link ();
9895int
9896main ()
9897{
9898return dld_link ();
9899 ;
9900 return 0;
9901}
9902_ACEOF
9903rm -f conftest.$ac_objext conftest$ac_exeext
9904if { (ac_try="$ac_link"
9905case "(($ac_try" in
9906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907 *) ac_try_echo=$ac_try;;
9908esac
9909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910 (eval "$ac_link") 2>conftest.er1
9911 ac_status=$?
9912 grep -v '^ *+' conftest.er1 >conftest.err
9913 rm -f conftest.er1
9914 cat conftest.err >&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); } &&
9917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9918 { (case "(($ac_try" in
9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920 *) ac_try_echo=$ac_try;;
9921esac
9922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923 (eval "$ac_try") 2>&5
9924 ac_status=$?
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; } &&
9927 { ac_try='test -s conftest$ac_exeext'
9928 { (case "(($ac_try" in
9929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930 *) ac_try_echo=$ac_try;;
9931esac
9932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933 (eval "$ac_try") 2>&5
9934 ac_status=$?
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; }; then
9937 ac_cv_lib_dld_dld_link=yes
9938else
9939 echo "$as_me: failed program was:" >&5
9940sed 's/^/| /' conftest.$ac_ext >&5
9941
9942 ac_cv_lib_dld_dld_link=no
9943fi
9944
9945rm -f core conftest.err conftest.$ac_objext \
9946 conftest$ac_exeext conftest.$ac_ext
9947LIBS=$ac_check_lib_save_LIBS
9948fi
9949{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9950echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9951if test $ac_cv_lib_dld_dld_link = yes; then
9952
9953cat >>confdefs.h <<\_ACEOF
9954#define HAVE_DLD 1
9955_ACEOF
9956
9957 LIBADD_DL="$LIBADD_DL -ldld"
9958else
9959 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9960echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9961if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9963else
9964 cat >conftest.$ac_ext <<_ACEOF
9965/* confdefs.h. */
9966_ACEOF
9967cat confdefs.h >>conftest.$ac_ext
9968cat >>conftest.$ac_ext <<_ACEOF
9969/* end confdefs.h. */
9970/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9972#define _dyld_func_lookup innocuous__dyld_func_lookup
9973
9974/* System header to define __stub macros and hopefully few prototypes,
9975 which can conflict with char _dyld_func_lookup (); below.
9976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9977 <limits.h> exists even on freestanding compilers. */
9978
9979#ifdef __STDC__
9980# include <limits.h>
9981#else
9982# include <assert.h>
9983#endif
9984
9985#undef _dyld_func_lookup
9986
9987/* Override any GCC internal prototype to avoid an error.
9988 Use char because int might match the return type of a GCC
9989 builtin and then its argument prototype would still apply. */
9990#ifdef __cplusplus
9991extern "C"
9992#endif
9993char _dyld_func_lookup ();
9994/* The GNU C library defines this for functions which it implements
9995 to always fail with ENOSYS. Some functions are actually named
9996 something starting with __ and the normal name is an alias. */
9997#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9998choke me
9999#endif
10000
10001int
10002main ()
10003{
10004return _dyld_func_lookup ();
10005 ;
10006 return 0;
10007}
10008_ACEOF
10009rm -f conftest.$ac_objext conftest$ac_exeext
10010if { (ac_try="$ac_link"
10011case "(($ac_try" in
10012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013 *) ac_try_echo=$ac_try;;
10014esac
10015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10016 (eval "$ac_link") 2>conftest.er1
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
10023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10024 { (case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10027esac
10028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_try") 2>&5
10030 ac_status=$?
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; } &&
10033 { ac_try='test -s conftest$ac_exeext'
10034 { (case "(($ac_try" in
10035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036 *) ac_try_echo=$ac_try;;
10037esac
10038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039 (eval "$ac_try") 2>&5
10040 ac_status=$?
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; }; then
10043 ac_cv_func__dyld_func_lookup=yes
10044else
10045 echo "$as_me: failed program was:" >&5
10046sed 's/^/| /' conftest.$ac_ext >&5
10047
10048 ac_cv_func__dyld_func_lookup=no
10049fi
10050
10051rm -f core conftest.err conftest.$ac_objext \
10052 conftest$ac_exeext conftest.$ac_ext
10053fi
10054{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10055echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10056if test $ac_cv_func__dyld_func_lookup = yes; then
10057
10058cat >>confdefs.h <<\_ACEOF
10059#define HAVE_DYLD 1
10060_ACEOF
10061
10062fi
10063
10064
10065fi
10066
10067
10068fi
10069
10070
10071fi
10072
10073rm -f core conftest.err conftest.$ac_objext \
10074 conftest$ac_exeext conftest.$ac_ext
10075
10076fi
10077
10078
10079fi
10080
10081
10082fi
10083
10084
10085if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10086then
10087 lt_save_LIBS="$LIBS"
10088 LIBS="$LIBS $LIBADD_DL"
10089
10090for ac_func in dlerror
10091do
10092as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10093{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10094echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10095if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10097else
10098 cat >conftest.$ac_ext <<_ACEOF
10099/* confdefs.h. */
10100_ACEOF
10101cat confdefs.h >>conftest.$ac_ext
10102cat >>conftest.$ac_ext <<_ACEOF
10103/* end confdefs.h. */
10104/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10106#define $ac_func innocuous_$ac_func
10107
10108/* System header to define __stub macros and hopefully few prototypes,
10109 which can conflict with char $ac_func (); below.
10110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10111 <limits.h> exists even on freestanding compilers. */
10112
10113#ifdef __STDC__
10114# include <limits.h>
10115#else
10116# include <assert.h>
10117#endif
10118
10119#undef $ac_func
10120
10121/* Override any GCC internal prototype to avoid an error.
10122 Use char because int might match the return type of a GCC
10123 builtin and then its argument prototype would still apply. */
10124#ifdef __cplusplus
10125extern "C"
10126#endif
10127char $ac_func ();
10128/* The GNU C library defines this for functions which it implements
10129 to always fail with ENOSYS. Some functions are actually named
10130 something starting with __ and the normal name is an alias. */
10131#if defined __stub_$ac_func || defined __stub___$ac_func
10132choke me
10133#endif
10134
10135int
10136main ()
10137{
10138return $ac_func ();
10139 ;
10140 return 0;
10141}
10142_ACEOF
10143rm -f conftest.$ac_objext conftest$ac_exeext
10144if { (ac_try="$ac_link"
10145case "(($ac_try" in
10146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10147 *) ac_try_echo=$ac_try;;
10148esac
10149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10150 (eval "$ac_link") 2>conftest.er1
10151 ac_status=$?
10152 grep -v '^ *+' conftest.er1 >conftest.err
10153 rm -f conftest.er1
10154 cat conftest.err >&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } &&
10157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10158 { (case "(($ac_try" in
10159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160 *) ac_try_echo=$ac_try;;
10161esac
10162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163 (eval "$ac_try") 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; } &&
10167 { ac_try='test -s conftest$ac_exeext'
10168 { (case "(($ac_try" in
10169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10170 *) ac_try_echo=$ac_try;;
10171esac
10172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10173 (eval "$ac_try") 2>&5
10174 ac_status=$?
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; }; then
10177 eval "$as_ac_var=yes"
10178else
10179 echo "$as_me: failed program was:" >&5
10180sed 's/^/| /' conftest.$ac_ext >&5
10181
10182 eval "$as_ac_var=no"
10183fi
10184
10185rm -f core conftest.err conftest.$ac_objext \
10186 conftest$ac_exeext conftest.$ac_ext
10187fi
10188ac_res=`eval echo '${'$as_ac_var'}'`
10189 { echo "$as_me:$LINENO: result: $ac_res" >&5
10190echo "${ECHO_T}$ac_res" >&6; }
10191if test `eval echo '${'$as_ac_var'}'` = yes; then
10192 cat >>confdefs.h <<_ACEOF
10193#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10194_ACEOF
10195
10196fi
10197done
10198
10199 LIBS="$lt_save_LIBS"
10200fi
10201ac_ext=c
10202ac_cpp='$CPP $CPPFLAGS'
10203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10205ac_compiler_gnu=$ac_cv_c_compiler_gnu
10206
10207
10208
10209{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10210echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10211if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10213else
10214 ac_cv_sys_symbol_underscore=no
10215 cat > conftest.$ac_ext <<EOF
10216void nm_test_func(){}
10217int main(){nm_test_func;return 0;}
10218EOF
10219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10220 (eval $ac_compile) 2>&5
10221 ac_status=$?
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; then
10224 # Now try to grab the symbols.
10225 ac_nlist=conftest.nm
10226 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10227 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10228 ac_status=$?
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); } && test -s "$ac_nlist"; then
10231 # See whether the symbols have a leading underscore.
10232 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10233 ac_cv_sys_symbol_underscore=yes
10234 else
10235 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10236 :
10237 else
10238 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10239 fi
10240 fi
10241 else
10242 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10243 fi
10244 else
10245 echo "configure: failed program was:" >&5
10246 cat conftest.c >&5
10247 fi
10248 rm -rf conftest*
10249
10250fi
10251{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10252echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10253
10254
10255if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10256 if test x"$libltdl_cv_func_dlopen" = xyes ||
10257 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10258 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10259echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10260if test "${libltdl_cv_need_uscore+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10262else
10263 libltdl_cv_need_uscore=unknown
10264 save_LIBS="$LIBS"
10265 LIBS="$LIBS $LIBADD_DL"
10266 if test "$cross_compiling" = yes; then :
10267 libltdl_cv_need_uscore=cross
10268else
10269 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10270 lt_status=$lt_dlunknown
10271 cat > conftest.$ac_ext <<EOF
Eric Christophera443e5b2012-03-23 05:50:46 +000010272#line 10272 "configure"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000010273#include "confdefs.h"
10274
10275#if HAVE_DLFCN_H
10276#include <dlfcn.h>
10277#endif
10278
10279#include <stdio.h>
10280
10281#ifdef RTLD_GLOBAL
10282# define LT_DLGLOBAL RTLD_GLOBAL
10283#else
10284# ifdef DL_GLOBAL
10285# define LT_DLGLOBAL DL_GLOBAL
10286# else
10287# define LT_DLGLOBAL 0
10288# endif
10289#endif
10290
10291/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10292 find out it does not work in some platform. */
10293#ifndef LT_DLLAZY_OR_NOW
10294# ifdef RTLD_LAZY
10295# define LT_DLLAZY_OR_NOW RTLD_LAZY
10296# else
10297# ifdef DL_LAZY
10298# define LT_DLLAZY_OR_NOW DL_LAZY
10299# else
10300# ifdef RTLD_NOW
10301# define LT_DLLAZY_OR_NOW RTLD_NOW
10302# else
10303# ifdef DL_NOW
10304# define LT_DLLAZY_OR_NOW DL_NOW
10305# else
10306# define LT_DLLAZY_OR_NOW 0
10307# endif
10308# endif
10309# endif
10310# endif
10311#endif
10312
10313#ifdef __cplusplus
10314extern "C" void exit (int);
10315#endif
10316
10317void fnord() { int i=42;}
10318int main ()
10319{
10320 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10321 int status = $lt_dlunknown;
10322
10323 if (self)
10324 {
10325 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10326 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10327 /* dlclose (self); */
10328 }
10329 else
10330 puts (dlerror ());
10331
10332 exit (status);
10333}
10334EOF
10335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10336 (eval $ac_link) 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10340 (./conftest; exit; ) >&5 2>/dev/null
10341 lt_status=$?
10342 case x$lt_status in
10343 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10344 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10345 x$lt_dlunknown|x*) ;;
10346 esac
10347 else :
10348 # compilation failed
10349
10350 fi
10351fi
10352rm -fr conftest*
10353
10354 LIBS="$save_LIBS"
10355
10356fi
10357{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10358echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10359 fi
10360fi
10361
10362if test x"$libltdl_cv_need_uscore" = xyes; then
10363
10364cat >>confdefs.h <<\_ACEOF
10365#define NEED_USCORE 1
10366_ACEOF
10367
10368fi
10369
10370
10371{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10372echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10373if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10375else
10376 # PORTME does your system automatically load deplibs for dlopen?
10377 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10378 # For now, we just catch OSes we know something about -- in the
10379 # future, we'll try test this programmatically.
10380 libltdl_cv_sys_dlopen_deplibs=unknown
10381 case "$host_os" in
10382 aix3*|aix4.1.*|aix4.2.*)
10383 # Unknown whether this is true for these versions of AIX, but
10384 # we want this `case' here to explicitly catch those versions.
10385 libltdl_cv_sys_dlopen_deplibs=unknown
10386 ;;
10387 aix[45]*)
10388 libltdl_cv_sys_dlopen_deplibs=yes
10389 ;;
10390 darwin*)
10391 # Assuming the user has installed a libdl from somewhere, this is true
10392 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10393 libltdl_cv_sys_dlopen_deplibs=yes
10394 ;;
10395 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10396 # GNU and its variants, using gnu ld.so (Glibc)
10397 libltdl_cv_sys_dlopen_deplibs=yes
10398 ;;
10399 hpux10*|hpux11*)
10400 libltdl_cv_sys_dlopen_deplibs=yes
10401 ;;
10402 interix*)
10403 libltdl_cv_sys_dlopen_deplibs=yes
10404 ;;
10405 irix[12345]*|irix6.[01]*)
10406 # Catch all versions of IRIX before 6.2, and indicate that we don't
10407 # know how it worked for any of those versions.
10408 libltdl_cv_sys_dlopen_deplibs=unknown
10409 ;;
10410 irix*)
10411 # The case above catches anything before 6.2, and it's known that
10412 # at 6.2 and later dlopen does load deplibs.
10413 libltdl_cv_sys_dlopen_deplibs=yes
10414 ;;
10415 netbsd*)
10416 libltdl_cv_sys_dlopen_deplibs=yes
10417 ;;
10418 openbsd*)
10419 libltdl_cv_sys_dlopen_deplibs=yes
10420 ;;
10421 osf[1234]*)
10422 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10423 # it did *not* use an RPATH in a shared library to find objects the
10424 # library depends on, so we explicitly say `no'.
10425 libltdl_cv_sys_dlopen_deplibs=no
10426 ;;
10427 osf5.0|osf5.0a|osf5.1)
10428 # dlopen *does* load deplibs and with the right loader patch applied
10429 # it even uses RPATH in a shared library to search for shared objects
10430 # that the library depends on, but there's no easy way to know if that
10431 # patch is installed. Since this is the case, all we can really
10432 # say is unknown -- it depends on the patch being installed. If
10433 # it is, this changes to `yes'. Without it, it would be `no'.
10434 libltdl_cv_sys_dlopen_deplibs=unknown
10435 ;;
10436 osf*)
10437 # the two cases above should catch all versions of osf <= 5.1. Read
10438 # the comments above for what we know about them.
10439 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10440 # is used to find them so we can finally say `yes'.
10441 libltdl_cv_sys_dlopen_deplibs=yes
10442 ;;
10443 solaris*)
10444 libltdl_cv_sys_dlopen_deplibs=yes
10445 ;;
10446 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10447 libltdl_cv_sys_dlopen_deplibs=yes
10448 ;;
10449 esac
10450
10451fi
10452{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10453echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10454if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10455
10456cat >>confdefs.h <<\_ACEOF
10457#define LTDL_DLOPEN_DEPLIBS 1
10458_ACEOF
10459
10460fi
10461
10462
10463for ac_header in argz.h
10464do
10465as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10466if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10469if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10471fi
10472ac_res=`eval echo '${'$as_ac_Header'}'`
10473 { echo "$as_me:$LINENO: result: $ac_res" >&5
10474echo "${ECHO_T}$ac_res" >&6; }
10475else
10476 # Is the header compilable?
10477{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10478echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10479cat >conftest.$ac_ext <<_ACEOF
10480/* confdefs.h. */
10481_ACEOF
10482cat confdefs.h >>conftest.$ac_ext
10483cat >>conftest.$ac_ext <<_ACEOF
10484/* end confdefs.h. */
10485$ac_includes_default
10486#include <$ac_header>
10487_ACEOF
10488rm -f conftest.$ac_objext
10489if { (ac_try="$ac_compile"
10490case "(($ac_try" in
10491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10492 *) ac_try_echo=$ac_try;;
10493esac
10494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10495 (eval "$ac_compile") 2>conftest.er1
10496 ac_status=$?
10497 grep -v '^ *+' conftest.er1 >conftest.err
10498 rm -f conftest.er1
10499 cat conftest.err >&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); } &&
10502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10503 { (case "(($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_try") 2>&5
10509 ac_status=$?
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; } &&
10512 { ac_try='test -s conftest.$ac_objext'
10513 { (case "(($ac_try" in
10514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10515 *) ac_try_echo=$ac_try;;
10516esac
10517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518 (eval "$ac_try") 2>&5
10519 ac_status=$?
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; }; then
10522 ac_header_compiler=yes
10523else
10524 echo "$as_me: failed program was:" >&5
10525sed 's/^/| /' conftest.$ac_ext >&5
10526
10527 ac_header_compiler=no
10528fi
10529
10530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10531{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10532echo "${ECHO_T}$ac_header_compiler" >&6; }
10533
10534# Is the header present?
10535{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10536echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10537cat >conftest.$ac_ext <<_ACEOF
10538/* confdefs.h. */
10539_ACEOF
10540cat confdefs.h >>conftest.$ac_ext
10541cat >>conftest.$ac_ext <<_ACEOF
10542/* end confdefs.h. */
10543#include <$ac_header>
10544_ACEOF
10545if { (ac_try="$ac_cpp conftest.$ac_ext"
10546case "(($ac_try" in
10547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548 *) ac_try_echo=$ac_try;;
10549esac
10550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10552 ac_status=$?
10553 grep -v '^ *+' conftest.er1 >conftest.err
10554 rm -f conftest.er1
10555 cat conftest.err >&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); } >/dev/null; then
10558 if test -s conftest.err; then
10559 ac_cpp_err=$ac_c_preproc_warn_flag
10560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10561 else
10562 ac_cpp_err=
10563 fi
10564else
10565 ac_cpp_err=yes
10566fi
10567if test -z "$ac_cpp_err"; then
10568 ac_header_preproc=yes
10569else
10570 echo "$as_me: failed program was:" >&5
10571sed 's/^/| /' conftest.$ac_ext >&5
10572
10573 ac_header_preproc=no
10574fi
10575
10576rm -f conftest.err conftest.$ac_ext
10577{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10578echo "${ECHO_T}$ac_header_preproc" >&6; }
10579
10580# So? What about this header?
10581case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10582 yes:no: )
10583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10584echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10586echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10587 ac_header_preproc=yes
10588 ;;
10589 no:yes:* )
10590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10591echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10593echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10595echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10597echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10599echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10601echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10602 ( cat <<\_ASBOX
10603## ------------------------------ ##
10604## Report this to bugs@yourdomain ##
10605## ------------------------------ ##
10606_ASBOX
10607 ) | sed "s/^/$as_me: WARNING: /" >&2
10608 ;;
10609esac
10610{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10612if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10613 echo $ECHO_N "(cached) $ECHO_C" >&6
10614else
10615 eval "$as_ac_Header=\$ac_header_preproc"
10616fi
10617ac_res=`eval echo '${'$as_ac_Header'}'`
10618 { echo "$as_me:$LINENO: result: $ac_res" >&5
10619echo "${ECHO_T}$ac_res" >&6; }
10620
10621fi
10622if test `eval echo '${'$as_ac_Header'}'` = yes; then
10623 cat >>confdefs.h <<_ACEOF
10624#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10625_ACEOF
10626
10627fi
10628
10629done
10630
10631
10632{ echo "$as_me:$LINENO: checking for error_t" >&5
10633echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10634if test "${ac_cv_type_error_t+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10636else
10637 cat >conftest.$ac_ext <<_ACEOF
10638/* confdefs.h. */
10639_ACEOF
10640cat confdefs.h >>conftest.$ac_ext
10641cat >>conftest.$ac_ext <<_ACEOF
10642/* end confdefs.h. */
10643#if HAVE_ARGZ_H
10644# include <argz.h>
10645#endif
10646
10647typedef error_t ac__type_new_;
10648int
10649main ()
10650{
10651if ((ac__type_new_ *) 0)
10652 return 0;
10653if (sizeof (ac__type_new_))
10654 return 0;
10655 ;
10656 return 0;
10657}
10658_ACEOF
10659rm -f conftest.$ac_objext
10660if { (ac_try="$ac_compile"
10661case "(($ac_try" in
10662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10663 *) ac_try_echo=$ac_try;;
10664esac
10665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10666 (eval "$ac_compile") 2>conftest.er1
10667 ac_status=$?
10668 grep -v '^ *+' conftest.er1 >conftest.err
10669 rm -f conftest.er1
10670 cat conftest.err >&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } &&
10673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10674 { (case "(($ac_try" in
10675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10676 *) ac_try_echo=$ac_try;;
10677esac
10678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10679 (eval "$ac_try") 2>&5
10680 ac_status=$?
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; } &&
10683 { ac_try='test -s conftest.$ac_objext'
10684 { (case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10687esac
10688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_try") 2>&5
10690 ac_status=$?
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; }; then
10693 ac_cv_type_error_t=yes
10694else
10695 echo "$as_me: failed program was:" >&5
10696sed 's/^/| /' conftest.$ac_ext >&5
10697
10698 ac_cv_type_error_t=no
10699fi
10700
10701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10702fi
10703{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10704echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10705if test $ac_cv_type_error_t = yes; then
10706
10707cat >>confdefs.h <<_ACEOF
10708#define HAVE_ERROR_T 1
10709_ACEOF
10710
10711
10712else
10713
10714cat >>confdefs.h <<\_ACEOF
10715#define error_t int
10716_ACEOF
10717
10718fi
10719
10720
10721
10722
10723
10724
10725
10726for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10727do
10728as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10729{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10730echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10731if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10733else
10734 cat >conftest.$ac_ext <<_ACEOF
10735/* confdefs.h. */
10736_ACEOF
10737cat confdefs.h >>conftest.$ac_ext
10738cat >>conftest.$ac_ext <<_ACEOF
10739/* end confdefs.h. */
10740/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10742#define $ac_func innocuous_$ac_func
10743
10744/* System header to define __stub macros and hopefully few prototypes,
10745 which can conflict with char $ac_func (); below.
10746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10747 <limits.h> exists even on freestanding compilers. */
10748
10749#ifdef __STDC__
10750# include <limits.h>
10751#else
10752# include <assert.h>
10753#endif
10754
10755#undef $ac_func
10756
10757/* Override any GCC internal prototype to avoid an error.
10758 Use char because int might match the return type of a GCC
10759 builtin and then its argument prototype would still apply. */
10760#ifdef __cplusplus
10761extern "C"
10762#endif
10763char $ac_func ();
10764/* The GNU C library defines this for functions which it implements
10765 to always fail with ENOSYS. Some functions are actually named
10766 something starting with __ and the normal name is an alias. */
10767#if defined __stub_$ac_func || defined __stub___$ac_func
10768choke me
10769#endif
10770
10771int
10772main ()
10773{
10774return $ac_func ();
10775 ;
10776 return 0;
10777}
10778_ACEOF
10779rm -f conftest.$ac_objext conftest$ac_exeext
10780if { (ac_try="$ac_link"
10781case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10784esac
10785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786 (eval "$ac_link") 2>conftest.er1
10787 ac_status=$?
10788 grep -v '^ *+' conftest.er1 >conftest.err
10789 rm -f conftest.er1
10790 cat conftest.err >&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } &&
10793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10794 { (case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10797esac
10798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_try") 2>&5
10800 ac_status=$?
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; } &&
10803 { ac_try='test -s conftest$ac_exeext'
10804 { (case "(($ac_try" in
10805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806 *) ac_try_echo=$ac_try;;
10807esac
10808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10809 (eval "$ac_try") 2>&5
10810 ac_status=$?
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); }; }; then
10813 eval "$as_ac_var=yes"
10814else
10815 echo "$as_me: failed program was:" >&5
10816sed 's/^/| /' conftest.$ac_ext >&5
10817
10818 eval "$as_ac_var=no"
10819fi
10820
10821rm -f core conftest.err conftest.$ac_objext \
10822 conftest$ac_exeext conftest.$ac_ext
10823fi
10824ac_res=`eval echo '${'$as_ac_var'}'`
10825 { echo "$as_me:$LINENO: result: $ac_res" >&5
10826echo "${ECHO_T}$ac_res" >&6; }
10827if test `eval echo '${'$as_ac_var'}'` = yes; then
10828 cat >>confdefs.h <<_ACEOF
10829#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10830_ACEOF
10831
10832fi
10833done
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10863 stdio.h unistd.h
10864do
10865as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10869if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10871fi
10872ac_res=`eval echo '${'$as_ac_Header'}'`
10873 { echo "$as_me:$LINENO: result: $ac_res" >&5
10874echo "${ECHO_T}$ac_res" >&6; }
10875else
10876 # Is the header compilable?
10877{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10878echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10879cat >conftest.$ac_ext <<_ACEOF
10880/* confdefs.h. */
10881_ACEOF
10882cat confdefs.h >>conftest.$ac_ext
10883cat >>conftest.$ac_ext <<_ACEOF
10884/* end confdefs.h. */
10885$ac_includes_default
10886#include <$ac_header>
10887_ACEOF
10888rm -f conftest.$ac_objext
10889if { (ac_try="$ac_compile"
10890case "(($ac_try" in
10891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892 *) ac_try_echo=$ac_try;;
10893esac
10894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895 (eval "$ac_compile") 2>conftest.er1
10896 ac_status=$?
10897 grep -v '^ *+' conftest.er1 >conftest.err
10898 rm -f conftest.er1
10899 cat conftest.err >&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } &&
10902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10903 { (case "(($ac_try" in
10904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10905 *) ac_try_echo=$ac_try;;
10906esac
10907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10908 (eval "$ac_try") 2>&5
10909 ac_status=$?
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); }; } &&
10912 { ac_try='test -s conftest.$ac_objext'
10913 { (case "(($ac_try" in
10914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10915 *) ac_try_echo=$ac_try;;
10916esac
10917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918 (eval "$ac_try") 2>&5
10919 ac_status=$?
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); }; }; then
10922 ac_header_compiler=yes
10923else
10924 echo "$as_me: failed program was:" >&5
10925sed 's/^/| /' conftest.$ac_ext >&5
10926
10927 ac_header_compiler=no
10928fi
10929
10930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10931{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10932echo "${ECHO_T}$ac_header_compiler" >&6; }
10933
10934# Is the header present?
10935{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10936echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10937cat >conftest.$ac_ext <<_ACEOF
10938/* confdefs.h. */
10939_ACEOF
10940cat confdefs.h >>conftest.$ac_ext
10941cat >>conftest.$ac_ext <<_ACEOF
10942/* end confdefs.h. */
10943#include <$ac_header>
10944_ACEOF
10945if { (ac_try="$ac_cpp conftest.$ac_ext"
10946case "(($ac_try" in
10947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948 *) ac_try_echo=$ac_try;;
10949esac
10950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10952 ac_status=$?
10953 grep -v '^ *+' conftest.er1 >conftest.err
10954 rm -f conftest.er1
10955 cat conftest.err >&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); } >/dev/null; then
10958 if test -s conftest.err; then
10959 ac_cpp_err=$ac_c_preproc_warn_flag
10960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10961 else
10962 ac_cpp_err=
10963 fi
10964else
10965 ac_cpp_err=yes
10966fi
10967if test -z "$ac_cpp_err"; then
10968 ac_header_preproc=yes
10969else
10970 echo "$as_me: failed program was:" >&5
10971sed 's/^/| /' conftest.$ac_ext >&5
10972
10973 ac_header_preproc=no
10974fi
10975
10976rm -f conftest.err conftest.$ac_ext
10977{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10978echo "${ECHO_T}$ac_header_preproc" >&6; }
10979
10980# So? What about this header?
10981case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10982 yes:no: )
10983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10984echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10986echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10987 ac_header_preproc=yes
10988 ;;
10989 no:yes:* )
10990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10991echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10993echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10995echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10997echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10999echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11001echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11002 ( cat <<\_ASBOX
11003## ------------------------------ ##
11004## Report this to bugs@yourdomain ##
11005## ------------------------------ ##
11006_ASBOX
11007 ) | sed "s/^/$as_me: WARNING: /" >&2
11008 ;;
11009esac
11010{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11012if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
11014else
11015 eval "$as_ac_Header=\$ac_header_preproc"
11016fi
11017ac_res=`eval echo '${'$as_ac_Header'}'`
11018 { echo "$as_me:$LINENO: result: $ac_res" >&5
11019echo "${ECHO_T}$ac_res" >&6; }
11020
11021fi
11022if test `eval echo '${'$as_ac_Header'}'` = yes; then
11023 cat >>confdefs.h <<_ACEOF
11024#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11025_ACEOF
11026
11027fi
11028
11029done
11030
11031
11032
11033
11034
11035for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11036do
11037as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11038if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11041if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11042 echo $ECHO_N "(cached) $ECHO_C" >&6
11043fi
11044ac_res=`eval echo '${'$as_ac_Header'}'`
11045 { echo "$as_me:$LINENO: result: $ac_res" >&5
11046echo "${ECHO_T}$ac_res" >&6; }
11047else
11048 # Is the header compilable?
11049{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11050echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11051cat >conftest.$ac_ext <<_ACEOF
11052/* confdefs.h. */
11053_ACEOF
11054cat confdefs.h >>conftest.$ac_ext
11055cat >>conftest.$ac_ext <<_ACEOF
11056/* end confdefs.h. */
11057$ac_includes_default
11058#include <$ac_header>
11059_ACEOF
11060rm -f conftest.$ac_objext
11061if { (ac_try="$ac_compile"
11062case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11065esac
11066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_compile") 2>conftest.er1
11068 ac_status=$?
11069 grep -v '^ *+' conftest.er1 >conftest.err
11070 rm -f conftest.er1
11071 cat conftest.err >&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } &&
11074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11075 { (case "(($ac_try" in
11076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11078esac
11079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080 (eval "$ac_try") 2>&5
11081 ac_status=$?
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); }; } &&
11084 { ac_try='test -s conftest.$ac_objext'
11085 { (case "(($ac_try" in
11086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087 *) ac_try_echo=$ac_try;;
11088esac
11089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11090 (eval "$ac_try") 2>&5
11091 ac_status=$?
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; }; then
11094 ac_header_compiler=yes
11095else
11096 echo "$as_me: failed program was:" >&5
11097sed 's/^/| /' conftest.$ac_ext >&5
11098
11099 ac_header_compiler=no
11100fi
11101
11102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11103{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11104echo "${ECHO_T}$ac_header_compiler" >&6; }
11105
11106# Is the header present?
11107{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11108echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11109cat >conftest.$ac_ext <<_ACEOF
11110/* confdefs.h. */
11111_ACEOF
11112cat confdefs.h >>conftest.$ac_ext
11113cat >>conftest.$ac_ext <<_ACEOF
11114/* end confdefs.h. */
11115#include <$ac_header>
11116_ACEOF
11117if { (ac_try="$ac_cpp conftest.$ac_ext"
11118case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11121esac
11122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11124 ac_status=$?
11125 grep -v '^ *+' conftest.er1 >conftest.err
11126 rm -f conftest.er1
11127 cat conftest.err >&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } >/dev/null; then
11130 if test -s conftest.err; then
11131 ac_cpp_err=$ac_c_preproc_warn_flag
11132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11133 else
11134 ac_cpp_err=
11135 fi
11136else
11137 ac_cpp_err=yes
11138fi
11139if test -z "$ac_cpp_err"; then
11140 ac_header_preproc=yes
11141else
11142 echo "$as_me: failed program was:" >&5
11143sed 's/^/| /' conftest.$ac_ext >&5
11144
11145 ac_header_preproc=no
11146fi
11147
11148rm -f conftest.err conftest.$ac_ext
11149{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11150echo "${ECHO_T}$ac_header_preproc" >&6; }
11151
11152# So? What about this header?
11153case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11154 yes:no: )
11155 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11156echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11158echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11159 ac_header_preproc=yes
11160 ;;
11161 no:yes:* )
11162 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11163echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11164 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11165echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11166 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11167echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11168 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11169echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11171echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11173echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11174 ( cat <<\_ASBOX
11175## ------------------------------ ##
11176## Report this to bugs@yourdomain ##
11177## ------------------------------ ##
11178_ASBOX
11179 ) | sed "s/^/$as_me: WARNING: /" >&2
11180 ;;
11181esac
11182{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11184if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11185 echo $ECHO_N "(cached) $ECHO_C" >&6
11186else
11187 eval "$as_ac_Header=\$ac_header_preproc"
11188fi
11189ac_res=`eval echo '${'$as_ac_Header'}'`
11190 { echo "$as_me:$LINENO: result: $ac_res" >&5
11191echo "${ECHO_T}$ac_res" >&6; }
11192
11193fi
11194if test `eval echo '${'$as_ac_Header'}'` = yes; then
11195 cat >>confdefs.h <<_ACEOF
11196#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11197_ACEOF
11198
11199fi
11200
11201done
11202
11203
11204
11205for ac_header in string.h strings.h
11206do
11207as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11208if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11213fi
11214ac_res=`eval echo '${'$as_ac_Header'}'`
11215 { echo "$as_me:$LINENO: result: $ac_res" >&5
11216echo "${ECHO_T}$ac_res" >&6; }
11217else
11218 # Is the header compilable?
11219{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11220echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11221cat >conftest.$ac_ext <<_ACEOF
11222/* confdefs.h. */
11223_ACEOF
11224cat confdefs.h >>conftest.$ac_ext
11225cat >>conftest.$ac_ext <<_ACEOF
11226/* end confdefs.h. */
11227$ac_includes_default
11228#include <$ac_header>
11229_ACEOF
11230rm -f conftest.$ac_objext
11231if { (ac_try="$ac_compile"
11232case "(($ac_try" in
11233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234 *) ac_try_echo=$ac_try;;
11235esac
11236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11237 (eval "$ac_compile") 2>conftest.er1
11238 ac_status=$?
11239 grep -v '^ *+' conftest.er1 >conftest.err
11240 rm -f conftest.er1
11241 cat conftest.err >&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); } &&
11244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11245 { (case "(($ac_try" in
11246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11247 *) ac_try_echo=$ac_try;;
11248esac
11249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11250 (eval "$ac_try") 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; } &&
11254 { ac_try='test -s conftest.$ac_objext'
11255 { (case "(($ac_try" in
11256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257 *) ac_try_echo=$ac_try;;
11258esac
11259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11260 (eval "$ac_try") 2>&5
11261 ac_status=$?
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }; }; then
11264 ac_header_compiler=yes
11265else
11266 echo "$as_me: failed program was:" >&5
11267sed 's/^/| /' conftest.$ac_ext >&5
11268
11269 ac_header_compiler=no
11270fi
11271
11272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11273{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11274echo "${ECHO_T}$ac_header_compiler" >&6; }
11275
11276# Is the header present?
11277{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11278echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11279cat >conftest.$ac_ext <<_ACEOF
11280/* confdefs.h. */
11281_ACEOF
11282cat confdefs.h >>conftest.$ac_ext
11283cat >>conftest.$ac_ext <<_ACEOF
11284/* end confdefs.h. */
11285#include <$ac_header>
11286_ACEOF
11287if { (ac_try="$ac_cpp conftest.$ac_ext"
11288case "(($ac_try" in
11289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290 *) ac_try_echo=$ac_try;;
11291esac
11292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11294 ac_status=$?
11295 grep -v '^ *+' conftest.er1 >conftest.err
11296 rm -f conftest.er1
11297 cat conftest.err >&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } >/dev/null; then
11300 if test -s conftest.err; then
11301 ac_cpp_err=$ac_c_preproc_warn_flag
11302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11303 else
11304 ac_cpp_err=
11305 fi
11306else
11307 ac_cpp_err=yes
11308fi
11309if test -z "$ac_cpp_err"; then
11310 ac_header_preproc=yes
11311else
11312 echo "$as_me: failed program was:" >&5
11313sed 's/^/| /' conftest.$ac_ext >&5
11314
11315 ac_header_preproc=no
11316fi
11317
11318rm -f conftest.err conftest.$ac_ext
11319{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11320echo "${ECHO_T}$ac_header_preproc" >&6; }
11321
11322# So? What about this header?
11323case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11324 yes:no: )
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11326echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11328echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11329 ac_header_preproc=yes
11330 ;;
11331 no:yes:* )
11332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11333echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11335echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11337echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11339echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11341echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11343echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11344 ( cat <<\_ASBOX
11345## ------------------------------ ##
11346## Report this to bugs@yourdomain ##
11347## ------------------------------ ##
11348_ASBOX
11349 ) | sed "s/^/$as_me: WARNING: /" >&2
11350 ;;
11351esac
11352{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11355 echo $ECHO_N "(cached) $ECHO_C" >&6
11356else
11357 eval "$as_ac_Header=\$ac_header_preproc"
11358fi
11359ac_res=`eval echo '${'$as_ac_Header'}'`
11360 { echo "$as_me:$LINENO: result: $ac_res" >&5
11361echo "${ECHO_T}$ac_res" >&6; }
11362
11363fi
11364if test `eval echo '${'$as_ac_Header'}'` = yes; then
11365 cat >>confdefs.h <<_ACEOF
11366#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11367_ACEOF
11368 break
11369fi
11370
11371done
11372
11373
11374
11375
11376for ac_func in strchr index
11377do
11378as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11379{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11380echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11381if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11382 echo $ECHO_N "(cached) $ECHO_C" >&6
11383else
11384 cat >conftest.$ac_ext <<_ACEOF
11385/* confdefs.h. */
11386_ACEOF
11387cat confdefs.h >>conftest.$ac_ext
11388cat >>conftest.$ac_ext <<_ACEOF
11389/* end confdefs.h. */
11390/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11392#define $ac_func innocuous_$ac_func
11393
11394/* System header to define __stub macros and hopefully few prototypes,
11395 which can conflict with char $ac_func (); below.
11396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11397 <limits.h> exists even on freestanding compilers. */
11398
11399#ifdef __STDC__
11400# include <limits.h>
11401#else
11402# include <assert.h>
11403#endif
11404
11405#undef $ac_func
11406
11407/* Override any GCC internal prototype to avoid an error.
11408 Use char because int might match the return type of a GCC
11409 builtin and then its argument prototype would still apply. */
11410#ifdef __cplusplus
11411extern "C"
11412#endif
11413char $ac_func ();
11414/* The GNU C library defines this for functions which it implements
11415 to always fail with ENOSYS. Some functions are actually named
11416 something starting with __ and the normal name is an alias. */
11417#if defined __stub_$ac_func || defined __stub___$ac_func
11418choke me
11419#endif
11420
11421int
11422main ()
11423{
11424return $ac_func ();
11425 ;
11426 return 0;
11427}
11428_ACEOF
11429rm -f conftest.$ac_objext conftest$ac_exeext
11430if { (ac_try="$ac_link"
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_link") 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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11444 { (case "(($ac_try" in
11445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446 *) ac_try_echo=$ac_try;;
11447esac
11448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449 (eval "$ac_try") 2>&5
11450 ac_status=$?
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; } &&
11453 { ac_try='test -s conftest$ac_exeext'
11454 { (case "(($ac_try" in
11455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456 *) ac_try_echo=$ac_try;;
11457esac
11458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459 (eval "$ac_try") 2>&5
11460 ac_status=$?
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; }; then
11463 eval "$as_ac_var=yes"
11464else
11465 echo "$as_me: failed program was:" >&5
11466sed 's/^/| /' conftest.$ac_ext >&5
11467
11468 eval "$as_ac_var=no"
11469fi
11470
11471rm -f core conftest.err conftest.$ac_objext \
11472 conftest$ac_exeext conftest.$ac_ext
11473fi
11474ac_res=`eval echo '${'$as_ac_var'}'`
11475 { echo "$as_me:$LINENO: result: $ac_res" >&5
11476echo "${ECHO_T}$ac_res" >&6; }
11477if test `eval echo '${'$as_ac_var'}'` = yes; then
11478 cat >>confdefs.h <<_ACEOF
11479#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11480_ACEOF
11481 break
11482fi
11483done
11484
11485
11486
11487for ac_func in strrchr rindex
11488do
11489as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11490{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11491echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11492if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11494else
11495 cat >conftest.$ac_ext <<_ACEOF
11496/* confdefs.h. */
11497_ACEOF
11498cat confdefs.h >>conftest.$ac_ext
11499cat >>conftest.$ac_ext <<_ACEOF
11500/* end confdefs.h. */
11501/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11503#define $ac_func innocuous_$ac_func
11504
11505/* System header to define __stub macros and hopefully few prototypes,
11506 which can conflict with char $ac_func (); below.
11507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11508 <limits.h> exists even on freestanding compilers. */
11509
11510#ifdef __STDC__
11511# include <limits.h>
11512#else
11513# include <assert.h>
11514#endif
11515
11516#undef $ac_func
11517
11518/* Override any GCC internal prototype to avoid an error.
11519 Use char because int might match the return type of a GCC
11520 builtin and then its argument prototype would still apply. */
11521#ifdef __cplusplus
11522extern "C"
11523#endif
11524char $ac_func ();
11525/* The GNU C library defines this for functions which it implements
11526 to always fail with ENOSYS. Some functions are actually named
11527 something starting with __ and the normal name is an alias. */
11528#if defined __stub_$ac_func || defined __stub___$ac_func
11529choke me
11530#endif
11531
11532int
11533main ()
11534{
11535return $ac_func ();
11536 ;
11537 return 0;
11538}
11539_ACEOF
11540rm -f conftest.$ac_objext conftest$ac_exeext
11541if { (ac_try="$ac_link"
11542case "(($ac_try" in
11543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11544 *) ac_try_echo=$ac_try;;
11545esac
11546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11547 (eval "$ac_link") 2>conftest.er1
11548 ac_status=$?
11549 grep -v '^ *+' conftest.er1 >conftest.err
11550 rm -f conftest.er1
11551 cat conftest.err >&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } &&
11554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11555 { (case "(($ac_try" in
11556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557 *) ac_try_echo=$ac_try;;
11558esac
11559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560 (eval "$ac_try") 2>&5
11561 ac_status=$?
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); }; } &&
11564 { ac_try='test -s conftest$ac_exeext'
11565 { (case "(($ac_try" in
11566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11567 *) ac_try_echo=$ac_try;;
11568esac
11569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11570 (eval "$ac_try") 2>&5
11571 ac_status=$?
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); }; }; then
11574 eval "$as_ac_var=yes"
11575else
11576 echo "$as_me: failed program was:" >&5
11577sed 's/^/| /' conftest.$ac_ext >&5
11578
11579 eval "$as_ac_var=no"
11580fi
11581
11582rm -f core conftest.err conftest.$ac_objext \
11583 conftest$ac_exeext conftest.$ac_ext
11584fi
11585ac_res=`eval echo '${'$as_ac_var'}'`
11586 { echo "$as_me:$LINENO: result: $ac_res" >&5
11587echo "${ECHO_T}$ac_res" >&6; }
11588if test `eval echo '${'$as_ac_var'}'` = yes; then
11589 cat >>confdefs.h <<_ACEOF
11590#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11591_ACEOF
11592 break
11593fi
11594done
11595
11596
11597
11598for ac_func in memcpy bcopy
11599do
11600as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11601{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11602echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11603if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
11605else
11606 cat >conftest.$ac_ext <<_ACEOF
11607/* confdefs.h. */
11608_ACEOF
11609cat confdefs.h >>conftest.$ac_ext
11610cat >>conftest.$ac_ext <<_ACEOF
11611/* end confdefs.h. */
11612/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11614#define $ac_func innocuous_$ac_func
11615
11616/* System header to define __stub macros and hopefully few prototypes,
11617 which can conflict with char $ac_func (); below.
11618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11619 <limits.h> exists even on freestanding compilers. */
11620
11621#ifdef __STDC__
11622# include <limits.h>
11623#else
11624# include <assert.h>
11625#endif
11626
11627#undef $ac_func
11628
11629/* Override any GCC internal prototype to avoid an error.
11630 Use char because int might match the return type of a GCC
11631 builtin and then its argument prototype would still apply. */
11632#ifdef __cplusplus
11633extern "C"
11634#endif
11635char $ac_func ();
11636/* The GNU C library defines this for functions which it implements
11637 to always fail with ENOSYS. Some functions are actually named
11638 something starting with __ and the normal name is an alias. */
11639#if defined __stub_$ac_func || defined __stub___$ac_func
11640choke me
11641#endif
11642
11643int
11644main ()
11645{
11646return $ac_func ();
11647 ;
11648 return 0;
11649}
11650_ACEOF
11651rm -f conftest.$ac_objext conftest$ac_exeext
11652if { (ac_try="$ac_link"
11653case "(($ac_try" in
11654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655 *) ac_try_echo=$ac_try;;
11656esac
11657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658 (eval "$ac_link") 2>conftest.er1
11659 ac_status=$?
11660 grep -v '^ *+' conftest.er1 >conftest.err
11661 rm -f conftest.er1
11662 cat conftest.err >&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } &&
11665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11666 { (case "(($ac_try" in
11667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668 *) ac_try_echo=$ac_try;;
11669esac
11670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671 (eval "$ac_try") 2>&5
11672 ac_status=$?
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; } &&
11675 { ac_try='test -s conftest$ac_exeext'
11676 { (case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11679esac
11680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681 (eval "$ac_try") 2>&5
11682 ac_status=$?
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; }; then
11685 eval "$as_ac_var=yes"
11686else
11687 echo "$as_me: failed program was:" >&5
11688sed 's/^/| /' conftest.$ac_ext >&5
11689
11690 eval "$as_ac_var=no"
11691fi
11692
11693rm -f core conftest.err conftest.$ac_objext \
11694 conftest$ac_exeext conftest.$ac_ext
11695fi
11696ac_res=`eval echo '${'$as_ac_var'}'`
11697 { echo "$as_me:$LINENO: result: $ac_res" >&5
11698echo "${ECHO_T}$ac_res" >&6; }
11699if test `eval echo '${'$as_ac_var'}'` = yes; then
11700 cat >>confdefs.h <<_ACEOF
11701#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11702_ACEOF
11703 break
11704fi
11705done
11706
11707
11708
11709for ac_func in memmove strcmp
11710do
11711as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11712{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11713echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11714if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11715 echo $ECHO_N "(cached) $ECHO_C" >&6
11716else
11717 cat >conftest.$ac_ext <<_ACEOF
11718/* confdefs.h. */
11719_ACEOF
11720cat confdefs.h >>conftest.$ac_ext
11721cat >>conftest.$ac_ext <<_ACEOF
11722/* end confdefs.h. */
11723/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11725#define $ac_func innocuous_$ac_func
11726
11727/* System header to define __stub macros and hopefully few prototypes,
11728 which can conflict with char $ac_func (); below.
11729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11730 <limits.h> exists even on freestanding compilers. */
11731
11732#ifdef __STDC__
11733# include <limits.h>
11734#else
11735# include <assert.h>
11736#endif
11737
11738#undef $ac_func
11739
11740/* Override any GCC internal prototype to avoid an error.
11741 Use char because int might match the return type of a GCC
11742 builtin and then its argument prototype would still apply. */
11743#ifdef __cplusplus
11744extern "C"
11745#endif
11746char $ac_func ();
11747/* The GNU C library defines this for functions which it implements
11748 to always fail with ENOSYS. Some functions are actually named
11749 something starting with __ and the normal name is an alias. */
11750#if defined __stub_$ac_func || defined __stub___$ac_func
11751choke me
11752#endif
11753
11754int
11755main ()
11756{
11757return $ac_func ();
11758 ;
11759 return 0;
11760}
11761_ACEOF
11762rm -f conftest.$ac_objext conftest$ac_exeext
11763if { (ac_try="$ac_link"
11764case "(($ac_try" in
11765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766 *) ac_try_echo=$ac_try;;
11767esac
11768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769 (eval "$ac_link") 2>conftest.er1
11770 ac_status=$?
11771 grep -v '^ *+' conftest.er1 >conftest.err
11772 rm -f conftest.er1
11773 cat conftest.err >&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } &&
11776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11777 { (case "(($ac_try" in
11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11780esac
11781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782 (eval "$ac_try") 2>&5
11783 ac_status=$?
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; } &&
11786 { ac_try='test -s conftest$ac_exeext'
11787 { (case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11790esac
11791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792 (eval "$ac_try") 2>&5
11793 ac_status=$?
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; }; then
11796 eval "$as_ac_var=yes"
11797else
11798 echo "$as_me: failed program was:" >&5
11799sed 's/^/| /' conftest.$ac_ext >&5
11800
11801 eval "$as_ac_var=no"
11802fi
11803
11804rm -f core conftest.err conftest.$ac_objext \
11805 conftest$ac_exeext conftest.$ac_ext
11806fi
11807ac_res=`eval echo '${'$as_ac_var'}'`
11808 { echo "$as_me:$LINENO: result: $ac_res" >&5
11809echo "${ECHO_T}$ac_res" >&6; }
11810if test `eval echo '${'$as_ac_var'}'` = yes; then
11811 cat >>confdefs.h <<_ACEOF
11812#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11813_ACEOF
11814
11815fi
11816done
11817
11818
11819
11820
11821for ac_func in closedir opendir readdir
11822do
11823as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11824{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11825echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11826if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11828else
11829 cat >conftest.$ac_ext <<_ACEOF
11830/* confdefs.h. */
11831_ACEOF
11832cat confdefs.h >>conftest.$ac_ext
11833cat >>conftest.$ac_ext <<_ACEOF
11834/* end confdefs.h. */
11835/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11837#define $ac_func innocuous_$ac_func
11838
11839/* System header to define __stub macros and hopefully few prototypes,
11840 which can conflict with char $ac_func (); below.
11841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11842 <limits.h> exists even on freestanding compilers. */
11843
11844#ifdef __STDC__
11845# include <limits.h>
11846#else
11847# include <assert.h>
11848#endif
11849
11850#undef $ac_func
11851
11852/* Override any GCC internal prototype to avoid an error.
11853 Use char because int might match the return type of a GCC
11854 builtin and then its argument prototype would still apply. */
11855#ifdef __cplusplus
11856extern "C"
11857#endif
11858char $ac_func ();
11859/* The GNU C library defines this for functions which it implements
11860 to always fail with ENOSYS. Some functions are actually named
11861 something starting with __ and the normal name is an alias. */
11862#if defined __stub_$ac_func || defined __stub___$ac_func
11863choke me
11864#endif
11865
11866int
11867main ()
11868{
11869return $ac_func ();
11870 ;
11871 return 0;
11872}
11873_ACEOF
11874rm -f conftest.$ac_objext conftest$ac_exeext
11875if { (ac_try="$ac_link"
11876case "(($ac_try" in
11877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878 *) ac_try_echo=$ac_try;;
11879esac
11880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881 (eval "$ac_link") 2>conftest.er1
11882 ac_status=$?
11883 grep -v '^ *+' conftest.er1 >conftest.err
11884 rm -f conftest.er1
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } &&
11888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11889 { (case "(($ac_try" in
11890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891 *) ac_try_echo=$ac_try;;
11892esac
11893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894 (eval "$ac_try") 2>&5
11895 ac_status=$?
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; } &&
11898 { ac_try='test -s conftest$ac_exeext'
11899 { (case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11902esac
11903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904 (eval "$ac_try") 2>&5
11905 ac_status=$?
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; }; then
11908 eval "$as_ac_var=yes"
11909else
11910 echo "$as_me: failed program was:" >&5
11911sed 's/^/| /' conftest.$ac_ext >&5
11912
11913 eval "$as_ac_var=no"
11914fi
11915
11916rm -f core conftest.err conftest.$ac_objext \
11917 conftest$ac_exeext conftest.$ac_ext
11918fi
11919ac_res=`eval echo '${'$as_ac_var'}'`
11920 { echo "$as_me:$LINENO: result: $ac_res" >&5
11921echo "${ECHO_T}$ac_res" >&6; }
11922if test `eval echo '${'$as_ac_var'}'` = yes; then
11923 cat >>confdefs.h <<_ACEOF
11924#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11925_ACEOF
11926
11927fi
11928done
11929
11930
11931
11932{ echo "$as_me:$LINENO: checking tool compatibility" >&5
11933echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11934
11935ICC=no
11936IXX=no
11937case $CC in
11938 icc*|icpc*)
11939 ICC=yes
11940 IXX=yes
11941 ;;
11942 *)
11943 ;;
11944esac
11945
11946if test "$GCC" != "yes" && test "$ICC" != "yes"
11947then
11948 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11949echo "$as_me: error: gcc|icc required but not found" >&2;}
11950 { (exit 1); exit 1; }; }
11951fi
11952
11953if test "$GXX" != "yes" && test "$IXX" != "yes"
11954then
11955 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11956echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11957 { (exit 1); exit 1; }; }
11958fi
11959
11960if test "$GCC" = "yes"
11961then
11962 cat >conftest.$ac_ext <<_ACEOF
11963#if !defined(__GNUC__) || __GNUC__ < 3
11964#error Unsupported GCC version
11965#endif
11966
11967_ACEOF
11968rm -f conftest.$ac_objext
11969if { (ac_try="$ac_compile"
11970case "(($ac_try" in
11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11973esac
11974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11975 (eval "$ac_compile") 2>conftest.er1
11976 ac_status=$?
11977 grep -v '^ *+' conftest.er1 >conftest.err
11978 rm -f conftest.er1
11979 cat conftest.err >&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } &&
11982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11983 { (case "(($ac_try" in
11984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11985 *) ac_try_echo=$ac_try;;
11986esac
11987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11988 (eval "$ac_try") 2>&5
11989 ac_status=$?
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); }; } &&
11992 { ac_try='test -s conftest.$ac_objext'
11993 { (case "(($ac_try" in
11994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995 *) ac_try_echo=$ac_try;;
11996esac
11997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998 (eval "$ac_try") 2>&5
11999 ac_status=$?
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; }; then
12002 :
12003else
12004 echo "$as_me: failed program was:" >&5
12005sed 's/^/| /' conftest.$ac_ext >&5
12006
12007 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12008echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12009 { (exit 1); exit 1; }; }
12010fi
12011
12012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12013fi
12014
12015if test -z "$llvm_cv_gnu_make_command"
12016then
12017 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12018echo "$as_me: error: GNU Make required but not found" >&2;}
12019 { (exit 1); exit 1; }; }
12020fi
12021
12022{ echo "$as_me:$LINENO: result: ok" >&5
12023echo "${ECHO_T}ok" >&6; }
12024
12025{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12026echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012027NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
Daniel Dunbarbf79f912011-10-18 23:10:58 +000012028
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012029NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
Daniel Dunbarbf79f912011-10-18 23:10:58 +000012030
Rafael Espindola9993a3a2012-02-28 23:32:06 +000012031COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12032
12033{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12034echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
Daniel Dunbarbf79f912011-10-18 23:10:58 +000012035
12036
12037
12038{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12039echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12040if test "${ac_cv_lib_m_sin+set}" = set; then
12041 echo $ECHO_N "(cached) $ECHO_C" >&6
12042else
12043 ac_check_lib_save_LIBS=$LIBS
12044LIBS="-lm $LIBS"
12045cat >conftest.$ac_ext <<_ACEOF
12046/* confdefs.h. */
12047_ACEOF
12048cat confdefs.h >>conftest.$ac_ext
12049cat >>conftest.$ac_ext <<_ACEOF
12050/* end confdefs.h. */
12051
12052/* Override any GCC internal prototype to avoid an error.
12053 Use char because int might match the return type of a GCC
12054 builtin and then its argument prototype would still apply. */
12055#ifdef __cplusplus
12056extern "C"
12057#endif
12058char sin ();
12059int
12060main ()
12061{
12062return sin ();
12063 ;
12064 return 0;
12065}
12066_ACEOF
12067rm -f conftest.$ac_objext conftest$ac_exeext
12068if { (ac_try="$ac_link"
12069case "(($ac_try" in
12070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071 *) ac_try_echo=$ac_try;;
12072esac
12073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074 (eval "$ac_link") 2>conftest.er1
12075 ac_status=$?
12076 grep -v '^ *+' conftest.er1 >conftest.err
12077 rm -f conftest.er1
12078 cat conftest.err >&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } &&
12081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12082 { (case "(($ac_try" in
12083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084 *) ac_try_echo=$ac_try;;
12085esac
12086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12087 (eval "$ac_try") 2>&5
12088 ac_status=$?
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); }; } &&
12091 { ac_try='test -s conftest$ac_exeext'
12092 { (case "(($ac_try" in
12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12095esac
12096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12097 (eval "$ac_try") 2>&5
12098 ac_status=$?
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); }; }; then
12101 ac_cv_lib_m_sin=yes
12102else
12103 echo "$as_me: failed program was:" >&5
12104sed 's/^/| /' conftest.$ac_ext >&5
12105
12106 ac_cv_lib_m_sin=no
12107fi
12108
12109rm -f core conftest.err conftest.$ac_objext \
12110 conftest$ac_exeext conftest.$ac_ext
12111LIBS=$ac_check_lib_save_LIBS
12112fi
12113{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12114echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12115if test $ac_cv_lib_m_sin = yes; then
12116 cat >>confdefs.h <<_ACEOF
12117#define HAVE_LIBM 1
12118_ACEOF
12119
12120 LIBS="-lm $LIBS"
12121
12122fi
12123
12124if test "$llvm_cv_os_type" = "MingW" ; then
12125
12126{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12127echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12128if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12129 echo $ECHO_N "(cached) $ECHO_C" >&6
12130else
12131 ac_check_lib_save_LIBS=$LIBS
12132LIBS="-limagehlp $LIBS"
12133cat >conftest.$ac_ext <<_ACEOF
12134/* confdefs.h. */
12135_ACEOF
12136cat confdefs.h >>conftest.$ac_ext
12137cat >>conftest.$ac_ext <<_ACEOF
12138/* end confdefs.h. */
12139
12140
12141int
12142main ()
12143{
12144return main ();
12145 ;
12146 return 0;
12147}
12148_ACEOF
12149rm -f conftest.$ac_objext conftest$ac_exeext
12150if { (ac_try="$ac_link"
12151case "(($ac_try" in
12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12154esac
12155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156 (eval "$ac_link") 2>conftest.er1
12157 ac_status=$?
12158 grep -v '^ *+' conftest.er1 >conftest.err
12159 rm -f conftest.er1
12160 cat conftest.err >&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } &&
12163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12164 { (case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12167esac
12168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169 (eval "$ac_try") 2>&5
12170 ac_status=$?
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; } &&
12173 { ac_try='test -s conftest$ac_exeext'
12174 { (case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12177esac
12178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_try") 2>&5
12180 ac_status=$?
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; }; then
12183 ac_cv_lib_imagehlp_main=yes
12184else
12185 echo "$as_me: failed program was:" >&5
12186sed 's/^/| /' conftest.$ac_ext >&5
12187
12188 ac_cv_lib_imagehlp_main=no
12189fi
12190
12191rm -f core conftest.err conftest.$ac_objext \
12192 conftest$ac_exeext conftest.$ac_ext
12193LIBS=$ac_check_lib_save_LIBS
12194fi
12195{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12196echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12197if test $ac_cv_lib_imagehlp_main = yes; then
12198 cat >>confdefs.h <<_ACEOF
12199#define HAVE_LIBIMAGEHLP 1
12200_ACEOF
12201
12202 LIBS="-limagehlp $LIBS"
12203
12204fi
12205
12206
12207{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12208echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12209if test "${ac_cv_lib_psapi_main+set}" = set; then
12210 echo $ECHO_N "(cached) $ECHO_C" >&6
12211else
12212 ac_check_lib_save_LIBS=$LIBS
12213LIBS="-lpsapi $LIBS"
12214cat >conftest.$ac_ext <<_ACEOF
12215/* confdefs.h. */
12216_ACEOF
12217cat confdefs.h >>conftest.$ac_ext
12218cat >>conftest.$ac_ext <<_ACEOF
12219/* end confdefs.h. */
12220
12221
12222int
12223main ()
12224{
12225return main ();
12226 ;
12227 return 0;
12228}
12229_ACEOF
12230rm -f conftest.$ac_objext conftest$ac_exeext
12231if { (ac_try="$ac_link"
12232case "(($ac_try" in
12233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12234 *) ac_try_echo=$ac_try;;
12235esac
12236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12237 (eval "$ac_link") 2>conftest.er1
12238 ac_status=$?
12239 grep -v '^ *+' conftest.er1 >conftest.err
12240 rm -f conftest.er1
12241 cat conftest.err >&5
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); } &&
12244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12245 { (case "(($ac_try" in
12246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247 *) ac_try_echo=$ac_try;;
12248esac
12249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250 (eval "$ac_try") 2>&5
12251 ac_status=$?
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); }; } &&
12254 { ac_try='test -s conftest$ac_exeext'
12255 { (case "(($ac_try" in
12256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12257 *) ac_try_echo=$ac_try;;
12258esac
12259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12260 (eval "$ac_try") 2>&5
12261 ac_status=$?
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; }; then
12264 ac_cv_lib_psapi_main=yes
12265else
12266 echo "$as_me: failed program was:" >&5
12267sed 's/^/| /' conftest.$ac_ext >&5
12268
12269 ac_cv_lib_psapi_main=no
12270fi
12271
12272rm -f core conftest.err conftest.$ac_objext \
12273 conftest$ac_exeext conftest.$ac_ext
12274LIBS=$ac_check_lib_save_LIBS
12275fi
12276{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12277echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12278if test $ac_cv_lib_psapi_main = yes; then
12279 cat >>confdefs.h <<_ACEOF
12280#define HAVE_LIBPSAPI 1
12281_ACEOF
12282
12283 LIBS="-lpsapi $LIBS"
12284
12285fi
12286
12287fi
12288
12289{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12290echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12291if test "${ac_cv_search_dlopen+set}" = set; then
12292 echo $ECHO_N "(cached) $ECHO_C" >&6
12293else
12294 ac_func_search_save_LIBS=$LIBS
12295cat >conftest.$ac_ext <<_ACEOF
12296/* confdefs.h. */
12297_ACEOF
12298cat confdefs.h >>conftest.$ac_ext
12299cat >>conftest.$ac_ext <<_ACEOF
12300/* end confdefs.h. */
12301
12302/* Override any GCC internal prototype to avoid an error.
12303 Use char because int might match the return type of a GCC
12304 builtin and then its argument prototype would still apply. */
12305#ifdef __cplusplus
12306extern "C"
12307#endif
12308char dlopen ();
12309int
12310main ()
12311{
12312return dlopen ();
12313 ;
12314 return 0;
12315}
12316_ACEOF
12317for ac_lib in '' dl; do
12318 if test -z "$ac_lib"; then
12319 ac_res="none required"
12320 else
12321 ac_res=-l$ac_lib
12322 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12323 fi
12324 rm -f conftest.$ac_objext conftest$ac_exeext
12325if { (ac_try="$ac_link"
12326case "(($ac_try" in
12327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12328 *) ac_try_echo=$ac_try;;
12329esac
12330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12331 (eval "$ac_link") 2>conftest.er1
12332 ac_status=$?
12333 grep -v '^ *+' conftest.er1 >conftest.err
12334 rm -f conftest.er1
12335 cat conftest.err >&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } &&
12338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12339 { (case "(($ac_try" in
12340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12341 *) ac_try_echo=$ac_try;;
12342esac
12343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12344 (eval "$ac_try") 2>&5
12345 ac_status=$?
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; } &&
12348 { ac_try='test -s conftest$ac_exeext'
12349 { (case "(($ac_try" in
12350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351 *) ac_try_echo=$ac_try;;
12352esac
12353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12354 (eval "$ac_try") 2>&5
12355 ac_status=$?
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; }; then
12358 ac_cv_search_dlopen=$ac_res
12359else
12360 echo "$as_me: failed program was:" >&5
12361sed 's/^/| /' conftest.$ac_ext >&5
12362
12363
12364fi
12365
12366rm -f core conftest.err conftest.$ac_objext \
12367 conftest$ac_exeext
12368 if test "${ac_cv_search_dlopen+set}" = set; then
12369 break
12370fi
12371done
12372if test "${ac_cv_search_dlopen+set}" = set; then
12373 :
12374else
12375 ac_cv_search_dlopen=no
12376fi
12377rm conftest.$ac_ext
12378LIBS=$ac_func_search_save_LIBS
12379fi
12380{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12381echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12382ac_res=$ac_cv_search_dlopen
12383if test "$ac_res" != no; then
12384 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12385
12386cat >>confdefs.h <<\_ACEOF
12387#define HAVE_DLOPEN 1
12388_ACEOF
12389
12390else
12391 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12392echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12393fi
12394
12395
12396if test "$llvm_cv_enable_libffi" = "yes" ; then
12397 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12398echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12399if test "${ac_cv_search_ffi_call+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12401else
12402 ac_func_search_save_LIBS=$LIBS
12403cat >conftest.$ac_ext <<_ACEOF
12404/* confdefs.h. */
12405_ACEOF
12406cat confdefs.h >>conftest.$ac_ext
12407cat >>conftest.$ac_ext <<_ACEOF
12408/* end confdefs.h. */
12409
12410/* Override any GCC internal prototype to avoid an error.
12411 Use char because int might match the return type of a GCC
12412 builtin and then its argument prototype would still apply. */
12413#ifdef __cplusplus
12414extern "C"
12415#endif
12416char ffi_call ();
12417int
12418main ()
12419{
12420return ffi_call ();
12421 ;
12422 return 0;
12423}
12424_ACEOF
12425for ac_lib in '' ffi; do
12426 if test -z "$ac_lib"; then
12427 ac_res="none required"
12428 else
12429 ac_res=-l$ac_lib
12430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12431 fi
12432 rm -f conftest.$ac_objext conftest$ac_exeext
12433if { (ac_try="$ac_link"
12434case "(($ac_try" in
12435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436 *) ac_try_echo=$ac_try;;
12437esac
12438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12439 (eval "$ac_link") 2>conftest.er1
12440 ac_status=$?
12441 grep -v '^ *+' conftest.er1 >conftest.err
12442 rm -f conftest.er1
12443 cat conftest.err >&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); } &&
12446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12447 { (case "(($ac_try" in
12448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449 *) ac_try_echo=$ac_try;;
12450esac
12451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12452 (eval "$ac_try") 2>&5
12453 ac_status=$?
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; } &&
12456 { ac_try='test -s conftest$ac_exeext'
12457 { (case "(($ac_try" in
12458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12459 *) ac_try_echo=$ac_try;;
12460esac
12461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12462 (eval "$ac_try") 2>&5
12463 ac_status=$?
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); }; }; then
12466 ac_cv_search_ffi_call=$ac_res
12467else
12468 echo "$as_me: failed program was:" >&5
12469sed 's/^/| /' conftest.$ac_ext >&5
12470
12471
12472fi
12473
12474rm -f core conftest.err conftest.$ac_objext \
12475 conftest$ac_exeext
12476 if test "${ac_cv_search_ffi_call+set}" = set; then
12477 break
12478fi
12479done
12480if test "${ac_cv_search_ffi_call+set}" = set; then
12481 :
12482else
12483 ac_cv_search_ffi_call=no
12484fi
12485rm conftest.$ac_ext
12486LIBS=$ac_func_search_save_LIBS
12487fi
12488{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12489echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12490ac_res=$ac_cv_search_ffi_call
12491if test "$ac_res" != no; then
12492 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12493
12494cat >>confdefs.h <<\_ACEOF
12495#define HAVE_FFI_CALL 1
12496_ACEOF
12497
12498else
12499 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12500echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12501 { (exit 1); exit 1; }; }
12502fi
12503
12504fi
12505
12506{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12507echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12508if test "${ac_cv_search_mallinfo+set}" = set; then
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12510else
12511 ac_func_search_save_LIBS=$LIBS
12512cat >conftest.$ac_ext <<_ACEOF
12513/* confdefs.h. */
12514_ACEOF
12515cat confdefs.h >>conftest.$ac_ext
12516cat >>conftest.$ac_ext <<_ACEOF
12517/* end confdefs.h. */
12518
12519/* Override any GCC internal prototype to avoid an error.
12520 Use char because int might match the return type of a GCC
12521 builtin and then its argument prototype would still apply. */
12522#ifdef __cplusplus
12523extern "C"
12524#endif
12525char mallinfo ();
12526int
12527main ()
12528{
12529return mallinfo ();
12530 ;
12531 return 0;
12532}
12533_ACEOF
12534for ac_lib in '' malloc; do
12535 if test -z "$ac_lib"; then
12536 ac_res="none required"
12537 else
12538 ac_res=-l$ac_lib
12539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12540 fi
12541 rm -f conftest.$ac_objext conftest$ac_exeext
12542if { (ac_try="$ac_link"
12543case "(($ac_try" in
12544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545 *) ac_try_echo=$ac_try;;
12546esac
12547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12548 (eval "$ac_link") 2>conftest.er1
12549 ac_status=$?
12550 grep -v '^ *+' conftest.er1 >conftest.err
12551 rm -f conftest.er1
12552 cat conftest.err >&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } &&
12555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12556 { (case "(($ac_try" in
12557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12558 *) ac_try_echo=$ac_try;;
12559esac
12560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12561 (eval "$ac_try") 2>&5
12562 ac_status=$?
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; } &&
12565 { ac_try='test -s conftest$ac_exeext'
12566 { (case "(($ac_try" in
12567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568 *) ac_try_echo=$ac_try;;
12569esac
12570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12571 (eval "$ac_try") 2>&5
12572 ac_status=$?
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; }; then
12575 ac_cv_search_mallinfo=$ac_res
12576else
12577 echo "$as_me: failed program was:" >&5
12578sed 's/^/| /' conftest.$ac_ext >&5
12579
12580
12581fi
12582
12583rm -f core conftest.err conftest.$ac_objext \
12584 conftest$ac_exeext
12585 if test "${ac_cv_search_mallinfo+set}" = set; then
12586 break
12587fi
12588done
12589if test "${ac_cv_search_mallinfo+set}" = set; then
12590 :
12591else
12592 ac_cv_search_mallinfo=no
12593fi
12594rm conftest.$ac_ext
12595LIBS=$ac_func_search_save_LIBS
12596fi
12597{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12598echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12599ac_res=$ac_cv_search_mallinfo
12600if test "$ac_res" != no; then
12601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12602
12603cat >>confdefs.h <<\_ACEOF
12604#define HAVE_MALLINFO 1
12605_ACEOF
12606
12607fi
12608
12609
12610if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12611
12612{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12613echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12614if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12615 echo $ECHO_N "(cached) $ECHO_C" >&6
12616else
12617 ac_check_lib_save_LIBS=$LIBS
12618LIBS="-lpthread $LIBS"
12619cat >conftest.$ac_ext <<_ACEOF
12620/* confdefs.h. */
12621_ACEOF
12622cat confdefs.h >>conftest.$ac_ext
12623cat >>conftest.$ac_ext <<_ACEOF
12624/* end confdefs.h. */
12625
12626/* Override any GCC internal prototype to avoid an error.
12627 Use char because int might match the return type of a GCC
12628 builtin and then its argument prototype would still apply. */
12629#ifdef __cplusplus
12630extern "C"
12631#endif
12632char pthread_mutex_init ();
12633int
12634main ()
12635{
12636return pthread_mutex_init ();
12637 ;
12638 return 0;
12639}
12640_ACEOF
12641rm -f conftest.$ac_objext conftest$ac_exeext
12642if { (ac_try="$ac_link"
12643case "(($ac_try" in
12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12646esac
12647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648 (eval "$ac_link") 2>conftest.er1
12649 ac_status=$?
12650 grep -v '^ *+' conftest.er1 >conftest.err
12651 rm -f conftest.er1
12652 cat conftest.err >&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } &&
12655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12656 { (case "(($ac_try" in
12657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658 *) ac_try_echo=$ac_try;;
12659esac
12660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12661 (eval "$ac_try") 2>&5
12662 ac_status=$?
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); }; } &&
12665 { ac_try='test -s conftest$ac_exeext'
12666 { (case "(($ac_try" in
12667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12668 *) ac_try_echo=$ac_try;;
12669esac
12670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12671 (eval "$ac_try") 2>&5
12672 ac_status=$?
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; }; then
12675 ac_cv_lib_pthread_pthread_mutex_init=yes
12676else
12677 echo "$as_me: failed program was:" >&5
12678sed 's/^/| /' conftest.$ac_ext >&5
12679
12680 ac_cv_lib_pthread_pthread_mutex_init=no
12681fi
12682
12683rm -f core conftest.err conftest.$ac_objext \
12684 conftest$ac_exeext conftest.$ac_ext
12685LIBS=$ac_check_lib_save_LIBS
12686fi
12687{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12688echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12689if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12690 cat >>confdefs.h <<_ACEOF
12691#define HAVE_LIBPTHREAD 1
12692_ACEOF
12693
12694 LIBS="-lpthread $LIBS"
12695
12696fi
12697
12698 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12699echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12700if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
12702else
12703 ac_func_search_save_LIBS=$LIBS
12704cat >conftest.$ac_ext <<_ACEOF
12705/* confdefs.h. */
12706_ACEOF
12707cat confdefs.h >>conftest.$ac_ext
12708cat >>conftest.$ac_ext <<_ACEOF
12709/* end confdefs.h. */
12710
12711/* Override any GCC internal prototype to avoid an error.
12712 Use char because int might match the return type of a GCC
12713 builtin and then its argument prototype would still apply. */
12714#ifdef __cplusplus
12715extern "C"
12716#endif
12717char pthread_mutex_lock ();
12718int
12719main ()
12720{
12721return pthread_mutex_lock ();
12722 ;
12723 return 0;
12724}
12725_ACEOF
12726for ac_lib in '' pthread; do
12727 if test -z "$ac_lib"; then
12728 ac_res="none required"
12729 else
12730 ac_res=-l$ac_lib
12731 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12732 fi
12733 rm -f conftest.$ac_objext conftest$ac_exeext
12734if { (ac_try="$ac_link"
12735case "(($ac_try" in
12736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737 *) ac_try_echo=$ac_try;;
12738esac
12739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740 (eval "$ac_link") 2>conftest.er1
12741 ac_status=$?
12742 grep -v '^ *+' conftest.er1 >conftest.err
12743 rm -f conftest.er1
12744 cat conftest.err >&5
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); } &&
12747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12748 { (case "(($ac_try" in
12749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750 *) ac_try_echo=$ac_try;;
12751esac
12752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12753 (eval "$ac_try") 2>&5
12754 ac_status=$?
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; } &&
12757 { ac_try='test -s conftest$ac_exeext'
12758 { (case "(($ac_try" in
12759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760 *) ac_try_echo=$ac_try;;
12761esac
12762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12763 (eval "$ac_try") 2>&5
12764 ac_status=$?
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; }; then
12767 ac_cv_search_pthread_mutex_lock=$ac_res
12768else
12769 echo "$as_me: failed program was:" >&5
12770sed 's/^/| /' conftest.$ac_ext >&5
12771
12772
12773fi
12774
12775rm -f core conftest.err conftest.$ac_objext \
12776 conftest$ac_exeext
12777 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12778 break
12779fi
12780done
12781if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12782 :
12783else
12784 ac_cv_search_pthread_mutex_lock=no
12785fi
12786rm conftest.$ac_ext
12787LIBS=$ac_func_search_save_LIBS
12788fi
12789{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12790echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12791ac_res=$ac_cv_search_pthread_mutex_lock
12792if test "$ac_res" != no; then
12793 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12794
12795cat >>confdefs.h <<\_ACEOF
12796#define HAVE_PTHREAD_MUTEX_LOCK 1
12797_ACEOF
12798
12799fi
12800
12801 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12802echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12803if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12804 echo $ECHO_N "(cached) $ECHO_C" >&6
12805else
12806 ac_func_search_save_LIBS=$LIBS
12807cat >conftest.$ac_ext <<_ACEOF
12808/* confdefs.h. */
12809_ACEOF
12810cat confdefs.h >>conftest.$ac_ext
12811cat >>conftest.$ac_ext <<_ACEOF
12812/* end confdefs.h. */
12813
12814/* Override any GCC internal prototype to avoid an error.
12815 Use char because int might match the return type of a GCC
12816 builtin and then its argument prototype would still apply. */
12817#ifdef __cplusplus
12818extern "C"
12819#endif
12820char pthread_rwlock_init ();
12821int
12822main ()
12823{
12824return pthread_rwlock_init ();
12825 ;
12826 return 0;
12827}
12828_ACEOF
12829for ac_lib in '' pthread; do
12830 if test -z "$ac_lib"; then
12831 ac_res="none required"
12832 else
12833 ac_res=-l$ac_lib
12834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12835 fi
12836 rm -f conftest.$ac_objext conftest$ac_exeext
12837if { (ac_try="$ac_link"
12838case "(($ac_try" in
12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12841esac
12842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12843 (eval "$ac_link") 2>conftest.er1
12844 ac_status=$?
12845 grep -v '^ *+' conftest.er1 >conftest.err
12846 rm -f conftest.er1
12847 cat conftest.err >&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); } &&
12850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12851 { (case "(($ac_try" in
12852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12853 *) ac_try_echo=$ac_try;;
12854esac
12855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12856 (eval "$ac_try") 2>&5
12857 ac_status=$?
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; } &&
12860 { ac_try='test -s conftest$ac_exeext'
12861 { (case "(($ac_try" in
12862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12863 *) ac_try_echo=$ac_try;;
12864esac
12865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866 (eval "$ac_try") 2>&5
12867 ac_status=$?
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; }; then
12870 ac_cv_search_pthread_rwlock_init=$ac_res
12871else
12872 echo "$as_me: failed program was:" >&5
12873sed 's/^/| /' conftest.$ac_ext >&5
12874
12875
12876fi
12877
12878rm -f core conftest.err conftest.$ac_objext \
12879 conftest$ac_exeext
12880 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12881 break
12882fi
12883done
12884if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12885 :
12886else
12887 ac_cv_search_pthread_rwlock_init=no
12888fi
12889rm conftest.$ac_ext
12890LIBS=$ac_func_search_save_LIBS
12891fi
12892{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12893echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12894ac_res=$ac_cv_search_pthread_rwlock_init
12895if test "$ac_res" != no; then
12896 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12897
12898cat >>confdefs.h <<\_ACEOF
12899#define HAVE_PTHREAD_RWLOCK_INIT 1
12900_ACEOF
12901
12902fi
12903
12904 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12905echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12906if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12907 echo $ECHO_N "(cached) $ECHO_C" >&6
12908else
12909 ac_func_search_save_LIBS=$LIBS
12910cat >conftest.$ac_ext <<_ACEOF
12911/* confdefs.h. */
12912_ACEOF
12913cat confdefs.h >>conftest.$ac_ext
12914cat >>conftest.$ac_ext <<_ACEOF
12915/* end confdefs.h. */
12916
12917/* Override any GCC internal prototype to avoid an error.
12918 Use char because int might match the return type of a GCC
12919 builtin and then its argument prototype would still apply. */
12920#ifdef __cplusplus
12921extern "C"
12922#endif
12923char pthread_getspecific ();
12924int
12925main ()
12926{
12927return pthread_getspecific ();
12928 ;
12929 return 0;
12930}
12931_ACEOF
12932for ac_lib in '' pthread; do
12933 if test -z "$ac_lib"; then
12934 ac_res="none required"
12935 else
12936 ac_res=-l$ac_lib
12937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12938 fi
12939 rm -f conftest.$ac_objext conftest$ac_exeext
12940if { (ac_try="$ac_link"
12941case "(($ac_try" in
12942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12943 *) ac_try_echo=$ac_try;;
12944esac
12945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12946 (eval "$ac_link") 2>conftest.er1
12947 ac_status=$?
12948 grep -v '^ *+' conftest.er1 >conftest.err
12949 rm -f conftest.er1
12950 cat conftest.err >&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); } &&
12953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12954 { (case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12957esac
12958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959 (eval "$ac_try") 2>&5
12960 ac_status=$?
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); }; } &&
12963 { ac_try='test -s conftest$ac_exeext'
12964 { (case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12967esac
12968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_try") 2>&5
12970 ac_status=$?
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; }; then
12973 ac_cv_search_pthread_getspecific=$ac_res
12974else
12975 echo "$as_me: failed program was:" >&5
12976sed 's/^/| /' conftest.$ac_ext >&5
12977
12978
12979fi
12980
12981rm -f core conftest.err conftest.$ac_objext \
12982 conftest$ac_exeext
12983 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12984 break
12985fi
12986done
12987if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12988 :
12989else
12990 ac_cv_search_pthread_getspecific=no
12991fi
12992rm conftest.$ac_ext
12993LIBS=$ac_func_search_save_LIBS
12994fi
12995{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12996echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12997ac_res=$ac_cv_search_pthread_getspecific
12998if test "$ac_res" != no; then
12999 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13000
13001cat >>confdefs.h <<\_ACEOF
13002#define HAVE_PTHREAD_GETSPECIFIC 1
13003_ACEOF
13004
13005fi
13006
13007fi
13008
13009
13010# Check whether --with-udis86 was given.
13011if test "${with_udis86+set}" = set; then
13012 withval=$with_udis86;
13013 USE_UDIS86=1
13014
13015 case "$withval" in
13016 /usr/lib|yes) ;;
13017 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13018 esac
13019
13020{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13021echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13022if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13023 echo $ECHO_N "(cached) $ECHO_C" >&6
13024else
13025 ac_check_lib_save_LIBS=$LIBS
13026LIBS="-ludis86 $LIBS"
13027cat >conftest.$ac_ext <<_ACEOF
13028/* confdefs.h. */
13029_ACEOF
13030cat confdefs.h >>conftest.$ac_ext
13031cat >>conftest.$ac_ext <<_ACEOF
13032/* end confdefs.h. */
13033
13034/* Override any GCC internal prototype to avoid an error.
13035 Use char because int might match the return type of a GCC
13036 builtin and then its argument prototype would still apply. */
13037#ifdef __cplusplus
13038extern "C"
13039#endif
13040char ud_init ();
13041int
13042main ()
13043{
13044return ud_init ();
13045 ;
13046 return 0;
13047}
13048_ACEOF
13049rm -f conftest.$ac_objext conftest$ac_exeext
13050if { (ac_try="$ac_link"
13051case "(($ac_try" in
13052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053 *) ac_try_echo=$ac_try;;
13054esac
13055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13056 (eval "$ac_link") 2>conftest.er1
13057 ac_status=$?
13058 grep -v '^ *+' conftest.er1 >conftest.err
13059 rm -f conftest.er1
13060 cat conftest.err >&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); } &&
13063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13064 { (case "(($ac_try" in
13065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066 *) ac_try_echo=$ac_try;;
13067esac
13068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069 (eval "$ac_try") 2>&5
13070 ac_status=$?
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; } &&
13073 { ac_try='test -s conftest$ac_exeext'
13074 { (case "(($ac_try" in
13075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076 *) ac_try_echo=$ac_try;;
13077esac
13078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079 (eval "$ac_try") 2>&5
13080 ac_status=$?
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; }; then
13083 ac_cv_lib_udis86_ud_init=yes
13084else
13085 echo "$as_me: failed program was:" >&5
13086sed 's/^/| /' conftest.$ac_ext >&5
13087
13088 ac_cv_lib_udis86_ud_init=no
13089fi
13090
13091rm -f core conftest.err conftest.$ac_objext \
13092 conftest$ac_exeext conftest.$ac_ext
13093LIBS=$ac_check_lib_save_LIBS
13094fi
13095{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13096echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13097if test $ac_cv_lib_udis86_ud_init = yes; then
13098 cat >>confdefs.h <<_ACEOF
13099#define HAVE_LIBUDIS86 1
13100_ACEOF
13101
13102 LIBS="-ludis86 $LIBS"
13103
13104else
13105
13106 echo "Error! You need to have libudis86 around."
13107 exit -1
13108
13109fi
13110
13111
13112else
13113 USE_UDIS86=0
13114
13115fi
13116
13117
13118cat >>confdefs.h <<_ACEOF
13119#define USE_UDIS86 $USE_UDIS86
13120_ACEOF
13121
13122
13123
13124# Check whether --with-oprofile was given.
13125if test "${with_oprofile+set}" = set; then
13126 withval=$with_oprofile;
13127 USE_OPROFILE=1
13128
13129 case "$withval" in
13130 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13131 no) llvm_cv_oppath=
13132 USE_OPROFILE=0
13133 ;;
13134 *) llvm_cv_oppath="${withval}/lib/oprofile"
13135 CPPFLAGS="-I${withval}/include";;
13136 esac
13137 if test -n "$llvm_cv_oppath" ; then
13138 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13139 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13140echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13141if test "${ac_cv_search_bfd_init+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13143else
13144 ac_func_search_save_LIBS=$LIBS
13145cat >conftest.$ac_ext <<_ACEOF
13146/* confdefs.h. */
13147_ACEOF
13148cat confdefs.h >>conftest.$ac_ext
13149cat >>conftest.$ac_ext <<_ACEOF
13150/* end confdefs.h. */
13151
13152/* Override any GCC internal prototype to avoid an error.
13153 Use char because int might match the return type of a GCC
13154 builtin and then its argument prototype would still apply. */
13155#ifdef __cplusplus
13156extern "C"
13157#endif
13158char bfd_init ();
13159int
13160main ()
13161{
13162return bfd_init ();
13163 ;
13164 return 0;
13165}
13166_ACEOF
13167for ac_lib in '' bfd; do
13168 if test -z "$ac_lib"; then
13169 ac_res="none required"
13170 else
13171 ac_res=-l$ac_lib
13172 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13173 fi
13174 rm -f conftest.$ac_objext conftest$ac_exeext
13175if { (ac_try="$ac_link"
13176case "(($ac_try" in
13177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178 *) ac_try_echo=$ac_try;;
13179esac
13180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13181 (eval "$ac_link") 2>conftest.er1
13182 ac_status=$?
13183 grep -v '^ *+' conftest.er1 >conftest.err
13184 rm -f conftest.er1
13185 cat conftest.err >&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } &&
13188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13189 { (case "(($ac_try" in
13190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191 *) ac_try_echo=$ac_try;;
13192esac
13193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13194 (eval "$ac_try") 2>&5
13195 ac_status=$?
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; } &&
13198 { ac_try='test -s conftest$ac_exeext'
13199 { (case "(($ac_try" in
13200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201 *) ac_try_echo=$ac_try;;
13202esac
13203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204 (eval "$ac_try") 2>&5
13205 ac_status=$?
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; }; then
13208 ac_cv_search_bfd_init=$ac_res
13209else
13210 echo "$as_me: failed program was:" >&5
13211sed 's/^/| /' conftest.$ac_ext >&5
13212
13213
13214fi
13215
13216rm -f core conftest.err conftest.$ac_objext \
13217 conftest$ac_exeext
13218 if test "${ac_cv_search_bfd_init+set}" = set; then
13219 break
13220fi
13221done
13222if test "${ac_cv_search_bfd_init+set}" = set; then
13223 :
13224else
13225 ac_cv_search_bfd_init=no
13226fi
13227rm conftest.$ac_ext
13228LIBS=$ac_func_search_save_LIBS
13229fi
13230{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13231echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13232ac_res=$ac_cv_search_bfd_init
13233if test "$ac_res" != no; then
13234 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13235
13236fi
13237
13238 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13239echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13240if test "${ac_cv_search_op_open_agent+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13242else
13243 ac_func_search_save_LIBS=$LIBS
13244cat >conftest.$ac_ext <<_ACEOF
13245/* confdefs.h. */
13246_ACEOF
13247cat confdefs.h >>conftest.$ac_ext
13248cat >>conftest.$ac_ext <<_ACEOF
13249/* end confdefs.h. */
13250
13251/* Override any GCC internal prototype to avoid an error.
13252 Use char because int might match the return type of a GCC
13253 builtin and then its argument prototype would still apply. */
13254#ifdef __cplusplus
13255extern "C"
13256#endif
13257char op_open_agent ();
13258int
13259main ()
13260{
13261return op_open_agent ();
13262 ;
13263 return 0;
13264}
13265_ACEOF
13266for ac_lib in '' opagent; do
13267 if test -z "$ac_lib"; then
13268 ac_res="none required"
13269 else
13270 ac_res=-l$ac_lib
13271 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13272 fi
13273 rm -f conftest.$ac_objext conftest$ac_exeext
13274if { (ac_try="$ac_link"
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_link") 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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13288 { (case "(($ac_try" in
13289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13290 *) ac_try_echo=$ac_try;;
13291esac
13292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13293 (eval "$ac_try") 2>&5
13294 ac_status=$?
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); }; } &&
13297 { ac_try='test -s conftest$ac_exeext'
13298 { (case "(($ac_try" in
13299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13300 *) ac_try_echo=$ac_try;;
13301esac
13302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13303 (eval "$ac_try") 2>&5
13304 ac_status=$?
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 ac_cv_search_op_open_agent=$ac_res
13308else
13309 echo "$as_me: failed program was:" >&5
13310sed 's/^/| /' conftest.$ac_ext >&5
13311
13312
13313fi
13314
13315rm -f core conftest.err conftest.$ac_objext \
13316 conftest$ac_exeext
13317 if test "${ac_cv_search_op_open_agent+set}" = set; then
13318 break
13319fi
13320done
13321if test "${ac_cv_search_op_open_agent+set}" = set; then
13322 :
13323else
13324 ac_cv_search_op_open_agent=no
13325fi
13326rm conftest.$ac_ext
13327LIBS=$ac_func_search_save_LIBS
13328fi
13329{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13330echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13331ac_res=$ac_cv_search_op_open_agent
13332if test "$ac_res" != no; then
13333 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13334
13335else
13336
13337 echo "Error! You need to have libopagent around."
13338 exit -1
13339
13340fi
13341
13342 if test "${ac_cv_header_opagent_h+set}" = set; then
13343 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13344echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13345if test "${ac_cv_header_opagent_h+set}" = set; then
13346 echo $ECHO_N "(cached) $ECHO_C" >&6
13347fi
13348{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13349echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13350else
13351 # Is the header compilable?
13352{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13353echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13354cat >conftest.$ac_ext <<_ACEOF
13355/* confdefs.h. */
13356_ACEOF
13357cat confdefs.h >>conftest.$ac_ext
13358cat >>conftest.$ac_ext <<_ACEOF
13359/* end confdefs.h. */
13360$ac_includes_default
13361#include <opagent.h>
13362_ACEOF
13363rm -f conftest.$ac_objext
13364if { (ac_try="$ac_compile"
13365case "(($ac_try" in
13366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367 *) ac_try_echo=$ac_try;;
13368esac
13369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370 (eval "$ac_compile") 2>conftest.er1
13371 ac_status=$?
13372 grep -v '^ *+' conftest.er1 >conftest.err
13373 rm -f conftest.er1
13374 cat conftest.err >&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } &&
13377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13378 { (case "(($ac_try" in
13379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13380 *) ac_try_echo=$ac_try;;
13381esac
13382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13383 (eval "$ac_try") 2>&5
13384 ac_status=$?
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; } &&
13387 { ac_try='test -s conftest.$ac_objext'
13388 { (case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13391esac
13392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_try") 2>&5
13394 ac_status=$?
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; }; then
13397 ac_header_compiler=yes
13398else
13399 echo "$as_me: failed program was:" >&5
13400sed 's/^/| /' conftest.$ac_ext >&5
13401
13402 ac_header_compiler=no
13403fi
13404
13405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13406{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13407echo "${ECHO_T}$ac_header_compiler" >&6; }
13408
13409# Is the header present?
13410{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13411echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13412cat >conftest.$ac_ext <<_ACEOF
13413/* confdefs.h. */
13414_ACEOF
13415cat confdefs.h >>conftest.$ac_ext
13416cat >>conftest.$ac_ext <<_ACEOF
13417/* end confdefs.h. */
13418#include <opagent.h>
13419_ACEOF
13420if { (ac_try="$ac_cpp conftest.$ac_ext"
13421case "(($ac_try" in
13422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423 *) ac_try_echo=$ac_try;;
13424esac
13425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13427 ac_status=$?
13428 grep -v '^ *+' conftest.er1 >conftest.err
13429 rm -f conftest.er1
13430 cat conftest.err >&5
13431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); } >/dev/null; then
13433 if test -s conftest.err; then
13434 ac_cpp_err=$ac_c_preproc_warn_flag
13435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13436 else
13437 ac_cpp_err=
13438 fi
13439else
13440 ac_cpp_err=yes
13441fi
13442if test -z "$ac_cpp_err"; then
13443 ac_header_preproc=yes
13444else
13445 echo "$as_me: failed program was:" >&5
13446sed 's/^/| /' conftest.$ac_ext >&5
13447
13448 ac_header_preproc=no
13449fi
13450
13451rm -f conftest.err conftest.$ac_ext
13452{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13453echo "${ECHO_T}$ac_header_preproc" >&6; }
13454
13455# So? What about this header?
13456case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13457 yes:no: )
13458 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13459echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13460 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13461echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13462 ac_header_preproc=yes
13463 ;;
13464 no:yes:* )
13465 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13466echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13467 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13468echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13469 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13470echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13471 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13472echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13473 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13474echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13475 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13476echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13477 ( cat <<\_ASBOX
13478## ------------------------------ ##
13479## Report this to bugs@yourdomain ##
13480## ------------------------------ ##
13481_ASBOX
13482 ) | sed "s/^/$as_me: WARNING: /" >&2
13483 ;;
13484esac
13485{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13486echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13487if test "${ac_cv_header_opagent_h+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13489else
13490 ac_cv_header_opagent_h=$ac_header_preproc
13491fi
13492{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13493echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13494
13495fi
13496if test $ac_cv_header_opagent_h = yes; then
13497 :
13498else
13499
13500 echo "Error! You need to have opagent.h around."
13501 exit -1
13502
13503fi
13504
13505
13506 fi
13507
13508else
13509
13510 USE_OPROFILE=0
13511
13512
13513fi
13514
13515
13516cat >>confdefs.h <<_ACEOF
13517#define USE_OPROFILE $USE_OPROFILE
13518_ACEOF
13519
13520
13521
13522
13523
13524
13525
13526
13527ac_header_dirent=no
13528for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13529 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13530{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13531echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13532if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13533 echo $ECHO_N "(cached) $ECHO_C" >&6
13534else
13535 cat >conftest.$ac_ext <<_ACEOF
13536/* confdefs.h. */
13537_ACEOF
13538cat confdefs.h >>conftest.$ac_ext
13539cat >>conftest.$ac_ext <<_ACEOF
13540/* end confdefs.h. */
13541#include <sys/types.h>
13542#include <$ac_hdr>
13543
13544int
13545main ()
13546{
13547if ((DIR *) 0)
13548return 0;
13549 ;
13550 return 0;
13551}
13552_ACEOF
13553rm -f conftest.$ac_objext
13554if { (ac_try="$ac_compile"
13555case "(($ac_try" in
13556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557 *) ac_try_echo=$ac_try;;
13558esac
13559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560 (eval "$ac_compile") 2>conftest.er1
13561 ac_status=$?
13562 grep -v '^ *+' conftest.er1 >conftest.err
13563 rm -f conftest.er1
13564 cat conftest.err >&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } &&
13567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13568 { (case "(($ac_try" in
13569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570 *) ac_try_echo=$ac_try;;
13571esac
13572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13573 (eval "$ac_try") 2>&5
13574 ac_status=$?
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }; } &&
13577 { ac_try='test -s conftest.$ac_objext'
13578 { (case "(($ac_try" in
13579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580 *) ac_try_echo=$ac_try;;
13581esac
13582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583 (eval "$ac_try") 2>&5
13584 ac_status=$?
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; }; then
13587 eval "$as_ac_Header=yes"
13588else
13589 echo "$as_me: failed program was:" >&5
13590sed 's/^/| /' conftest.$ac_ext >&5
13591
13592 eval "$as_ac_Header=no"
13593fi
13594
13595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13596fi
13597ac_res=`eval echo '${'$as_ac_Header'}'`
13598 { echo "$as_me:$LINENO: result: $ac_res" >&5
13599echo "${ECHO_T}$ac_res" >&6; }
13600if test `eval echo '${'$as_ac_Header'}'` = yes; then
13601 cat >>confdefs.h <<_ACEOF
13602#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13603_ACEOF
13604
13605ac_header_dirent=$ac_hdr; break
13606fi
13607
13608done
13609# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13610if test $ac_header_dirent = dirent.h; then
13611 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13612echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13613if test "${ac_cv_search_opendir+set}" = set; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13615else
13616 ac_func_search_save_LIBS=$LIBS
13617cat >conftest.$ac_ext <<_ACEOF
13618/* confdefs.h. */
13619_ACEOF
13620cat confdefs.h >>conftest.$ac_ext
13621cat >>conftest.$ac_ext <<_ACEOF
13622/* end confdefs.h. */
13623
13624/* Override any GCC internal prototype to avoid an error.
13625 Use char because int might match the return type of a GCC
13626 builtin and then its argument prototype would still apply. */
13627#ifdef __cplusplus
13628extern "C"
13629#endif
13630char opendir ();
13631int
13632main ()
13633{
13634return opendir ();
13635 ;
13636 return 0;
13637}
13638_ACEOF
13639for ac_lib in '' dir; do
13640 if test -z "$ac_lib"; then
13641 ac_res="none required"
13642 else
13643 ac_res=-l$ac_lib
13644 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13645 fi
13646 rm -f conftest.$ac_objext conftest$ac_exeext
13647if { (ac_try="$ac_link"
13648case "(($ac_try" in
13649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650 *) ac_try_echo=$ac_try;;
13651esac
13652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653 (eval "$ac_link") 2>conftest.er1
13654 ac_status=$?
13655 grep -v '^ *+' conftest.er1 >conftest.err
13656 rm -f conftest.er1
13657 cat conftest.err >&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); } &&
13660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13661 { (case "(($ac_try" in
13662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13663 *) ac_try_echo=$ac_try;;
13664esac
13665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13666 (eval "$ac_try") 2>&5
13667 ac_status=$?
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); }; } &&
13670 { ac_try='test -s conftest$ac_exeext'
13671 { (case "(($ac_try" in
13672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13673 *) ac_try_echo=$ac_try;;
13674esac
13675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13676 (eval "$ac_try") 2>&5
13677 ac_status=$?
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; }; then
13680 ac_cv_search_opendir=$ac_res
13681else
13682 echo "$as_me: failed program was:" >&5
13683sed 's/^/| /' conftest.$ac_ext >&5
13684
13685
13686fi
13687
13688rm -f core conftest.err conftest.$ac_objext \
13689 conftest$ac_exeext
13690 if test "${ac_cv_search_opendir+set}" = set; then
13691 break
13692fi
13693done
13694if test "${ac_cv_search_opendir+set}" = set; then
13695 :
13696else
13697 ac_cv_search_opendir=no
13698fi
13699rm conftest.$ac_ext
13700LIBS=$ac_func_search_save_LIBS
13701fi
13702{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13703echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13704ac_res=$ac_cv_search_opendir
13705if test "$ac_res" != no; then
13706 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13707
13708fi
13709
13710else
13711 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13712echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13713if test "${ac_cv_search_opendir+set}" = set; then
13714 echo $ECHO_N "(cached) $ECHO_C" >&6
13715else
13716 ac_func_search_save_LIBS=$LIBS
13717cat >conftest.$ac_ext <<_ACEOF
13718/* confdefs.h. */
13719_ACEOF
13720cat confdefs.h >>conftest.$ac_ext
13721cat >>conftest.$ac_ext <<_ACEOF
13722/* end confdefs.h. */
13723
13724/* Override any GCC internal prototype to avoid an error.
13725 Use char because int might match the return type of a GCC
13726 builtin and then its argument prototype would still apply. */
13727#ifdef __cplusplus
13728extern "C"
13729#endif
13730char opendir ();
13731int
13732main ()
13733{
13734return opendir ();
13735 ;
13736 return 0;
13737}
13738_ACEOF
13739for ac_lib in '' x; do
13740 if test -z "$ac_lib"; then
13741 ac_res="none required"
13742 else
13743 ac_res=-l$ac_lib
13744 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13745 fi
13746 rm -f conftest.$ac_objext conftest$ac_exeext
13747if { (ac_try="$ac_link"
13748case "(($ac_try" in
13749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750 *) ac_try_echo=$ac_try;;
13751esac
13752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753 (eval "$ac_link") 2>conftest.er1
13754 ac_status=$?
13755 grep -v '^ *+' conftest.er1 >conftest.err
13756 rm -f conftest.er1
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } &&
13760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13761 { (case "(($ac_try" in
13762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13764esac
13765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_try") 2>&5
13767 ac_status=$?
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; } &&
13770 { ac_try='test -s conftest$ac_exeext'
13771 { (case "(($ac_try" in
13772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13773 *) ac_try_echo=$ac_try;;
13774esac
13775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13776 (eval "$ac_try") 2>&5
13777 ac_status=$?
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; }; then
13780 ac_cv_search_opendir=$ac_res
13781else
13782 echo "$as_me: failed program was:" >&5
13783sed 's/^/| /' conftest.$ac_ext >&5
13784
13785
13786fi
13787
13788rm -f core conftest.err conftest.$ac_objext \
13789 conftest$ac_exeext
13790 if test "${ac_cv_search_opendir+set}" = set; then
13791 break
13792fi
13793done
13794if test "${ac_cv_search_opendir+set}" = set; then
13795 :
13796else
13797 ac_cv_search_opendir=no
13798fi
13799rm conftest.$ac_ext
13800LIBS=$ac_func_search_save_LIBS
13801fi
13802{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13803echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13804ac_res=$ac_cv_search_opendir
13805if test "$ac_res" != no; then
13806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13807
13808fi
13809
13810fi
13811
13812{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13813echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13814if test "${ac_cv_header_mmap_anon+set}" = set; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13816else
13817 ac_ext=c
13818ac_cpp='$CPP $CPPFLAGS'
13819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13821ac_compiler_gnu=$ac_cv_c_compiler_gnu
13822
13823 cat >conftest.$ac_ext <<_ACEOF
13824/* confdefs.h. */
13825_ACEOF
13826cat confdefs.h >>conftest.$ac_ext
13827cat >>conftest.$ac_ext <<_ACEOF
13828/* end confdefs.h. */
13829#include <sys/mman.h>
13830#include <unistd.h>
13831#include <fcntl.h>
13832int
13833main ()
13834{
13835mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13836 ;
13837 return 0;
13838}
13839_ACEOF
13840rm -f conftest.$ac_objext
13841if { (ac_try="$ac_compile"
13842case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13845esac
13846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_compile") 2>conftest.er1
13848 ac_status=$?
13849 grep -v '^ *+' conftest.er1 >conftest.err
13850 rm -f conftest.er1
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } &&
13854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13855 { (case "(($ac_try" in
13856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857 *) ac_try_echo=$ac_try;;
13858esac
13859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860 (eval "$ac_try") 2>&5
13861 ac_status=$?
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; } &&
13864 { ac_try='test -s conftest.$ac_objext'
13865 { (case "(($ac_try" in
13866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13867 *) ac_try_echo=$ac_try;;
13868esac
13869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13870 (eval "$ac_try") 2>&5
13871 ac_status=$?
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; }; then
13874 ac_cv_header_mmap_anon=yes
13875else
13876 echo "$as_me: failed program was:" >&5
13877sed 's/^/| /' conftest.$ac_ext >&5
13878
13879 ac_cv_header_mmap_anon=no
13880fi
13881
13882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13883 ac_ext=c
13884ac_cpp='$CPP $CPPFLAGS'
13885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13887ac_compiler_gnu=$ac_cv_c_compiler_gnu
13888
13889
13890fi
13891{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
13892echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
13893if test "$ac_cv_header_mmap_anon" = yes; then
13894
13895cat >>confdefs.h <<\_ACEOF
13896#define HAVE_MMAP_ANONYMOUS 1
13897_ACEOF
13898
13899fi
13900
13901{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13902echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
13903if test "${ac_cv_header_stat_broken+set}" = set; then
13904 echo $ECHO_N "(cached) $ECHO_C" >&6
13905else
13906 cat >conftest.$ac_ext <<_ACEOF
13907/* confdefs.h. */
13908_ACEOF
13909cat confdefs.h >>conftest.$ac_ext
13910cat >>conftest.$ac_ext <<_ACEOF
13911/* end confdefs.h. */
13912#include <sys/types.h>
13913#include <sys/stat.h>
13914
13915#if defined S_ISBLK && defined S_IFDIR
13916# if S_ISBLK (S_IFDIR)
13917You lose.
13918# endif
13919#endif
13920
13921#if defined S_ISBLK && defined S_IFCHR
13922# if S_ISBLK (S_IFCHR)
13923You lose.
13924# endif
13925#endif
13926
13927#if defined S_ISLNK && defined S_IFREG
13928# if S_ISLNK (S_IFREG)
13929You lose.
13930# endif
13931#endif
13932
13933#if defined S_ISSOCK && defined S_IFREG
13934# if S_ISSOCK (S_IFREG)
13935You lose.
13936# endif
13937#endif
13938
13939_ACEOF
13940if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13941 $EGREP "You lose" >/dev/null 2>&1; then
13942 ac_cv_header_stat_broken=yes
13943else
13944 ac_cv_header_stat_broken=no
13945fi
13946rm -f conftest*
13947
13948fi
13949{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13950echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
13951if test $ac_cv_header_stat_broken = yes; then
13952
13953cat >>confdefs.h <<\_ACEOF
13954#define STAT_MACROS_BROKEN 1
13955_ACEOF
13956
13957fi
13958
13959{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13960echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
13961if test "${ac_cv_header_sys_wait_h+set}" = set; then
13962 echo $ECHO_N "(cached) $ECHO_C" >&6
13963else
13964 cat >conftest.$ac_ext <<_ACEOF
13965/* confdefs.h. */
13966_ACEOF
13967cat confdefs.h >>conftest.$ac_ext
13968cat >>conftest.$ac_ext <<_ACEOF
13969/* end confdefs.h. */
13970#include <sys/types.h>
13971#include <sys/wait.h>
13972#ifndef WEXITSTATUS
13973# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13974#endif
13975#ifndef WIFEXITED
13976# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13977#endif
13978
13979int
13980main ()
13981{
13982 int s;
13983 wait (&s);
13984 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13985 ;
13986 return 0;
13987}
13988_ACEOF
13989rm -f conftest.$ac_objext
13990if { (ac_try="$ac_compile"
13991case "(($ac_try" in
13992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993 *) ac_try_echo=$ac_try;;
13994esac
13995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996 (eval "$ac_compile") 2>conftest.er1
13997 ac_status=$?
13998 grep -v '^ *+' conftest.er1 >conftest.err
13999 rm -f conftest.er1
14000 cat conftest.err >&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } &&
14003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14004 { (case "(($ac_try" in
14005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006 *) ac_try_echo=$ac_try;;
14007esac
14008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009 (eval "$ac_try") 2>&5
14010 ac_status=$?
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; } &&
14013 { ac_try='test -s conftest.$ac_objext'
14014 { (case "(($ac_try" in
14015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14016 *) ac_try_echo=$ac_try;;
14017esac
14018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14019 (eval "$ac_try") 2>&5
14020 ac_status=$?
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); }; }; then
14023 ac_cv_header_sys_wait_h=yes
14024else
14025 echo "$as_me: failed program was:" >&5
14026sed 's/^/| /' conftest.$ac_ext >&5
14027
14028 ac_cv_header_sys_wait_h=no
14029fi
14030
14031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14032fi
14033{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14034echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14035if test $ac_cv_header_sys_wait_h = yes; then
14036
14037cat >>confdefs.h <<\_ACEOF
14038#define HAVE_SYS_WAIT_H 1
14039_ACEOF
14040
14041fi
14042
14043{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14044echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14045if test "${ac_cv_header_time+set}" = set; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14047else
14048 cat >conftest.$ac_ext <<_ACEOF
14049/* confdefs.h. */
14050_ACEOF
14051cat confdefs.h >>conftest.$ac_ext
14052cat >>conftest.$ac_ext <<_ACEOF
14053/* end confdefs.h. */
14054#include <sys/types.h>
14055#include <sys/time.h>
14056#include <time.h>
14057
14058int
14059main ()
14060{
14061if ((struct tm *) 0)
14062return 0;
14063 ;
14064 return 0;
14065}
14066_ACEOF
14067rm -f conftest.$ac_objext
14068if { (ac_try="$ac_compile"
14069case "(($ac_try" in
14070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14071 *) ac_try_echo=$ac_try;;
14072esac
14073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14074 (eval "$ac_compile") 2>conftest.er1
14075 ac_status=$?
14076 grep -v '^ *+' conftest.er1 >conftest.err
14077 rm -f conftest.er1
14078 cat conftest.err >&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); } &&
14081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14082 { (case "(($ac_try" in
14083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14084 *) ac_try_echo=$ac_try;;
14085esac
14086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14087 (eval "$ac_try") 2>&5
14088 ac_status=$?
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); }; } &&
14091 { ac_try='test -s conftest.$ac_objext'
14092 { (case "(($ac_try" in
14093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14094 *) ac_try_echo=$ac_try;;
14095esac
14096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097 (eval "$ac_try") 2>&5
14098 ac_status=$?
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); }; }; then
14101 ac_cv_header_time=yes
14102else
14103 echo "$as_me: failed program was:" >&5
14104sed 's/^/| /' conftest.$ac_ext >&5
14105
14106 ac_cv_header_time=no
14107fi
14108
14109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14110fi
14111{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14112echo "${ECHO_T}$ac_cv_header_time" >&6; }
14113if test $ac_cv_header_time = yes; then
14114
14115cat >>confdefs.h <<\_ACEOF
14116#define TIME_WITH_SYS_TIME 1
14117_ACEOF
14118
14119fi
14120
14121
14122
14123
14124
14125
14126
14127
14128for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14129do
14130as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14131if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14134if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14136fi
14137ac_res=`eval echo '${'$as_ac_Header'}'`
14138 { echo "$as_me:$LINENO: result: $ac_res" >&5
14139echo "${ECHO_T}$ac_res" >&6; }
14140else
14141 # Is the header compilable?
14142{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14143echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14144cat >conftest.$ac_ext <<_ACEOF
14145/* confdefs.h. */
14146_ACEOF
14147cat confdefs.h >>conftest.$ac_ext
14148cat >>conftest.$ac_ext <<_ACEOF
14149/* end confdefs.h. */
14150$ac_includes_default
14151#include <$ac_header>
14152_ACEOF
14153rm -f conftest.$ac_objext
14154if { (ac_try="$ac_compile"
14155case "(($ac_try" in
14156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14157 *) ac_try_echo=$ac_try;;
14158esac
14159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14160 (eval "$ac_compile") 2>conftest.er1
14161 ac_status=$?
14162 grep -v '^ *+' conftest.er1 >conftest.err
14163 rm -f conftest.er1
14164 cat conftest.err >&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } &&
14167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14168 { (case "(($ac_try" in
14169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14170 *) ac_try_echo=$ac_try;;
14171esac
14172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14173 (eval "$ac_try") 2>&5
14174 ac_status=$?
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; } &&
14177 { ac_try='test -s conftest.$ac_objext'
14178 { (case "(($ac_try" in
14179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180 *) ac_try_echo=$ac_try;;
14181esac
14182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183 (eval "$ac_try") 2>&5
14184 ac_status=$?
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; }; then
14187 ac_header_compiler=yes
14188else
14189 echo "$as_me: failed program was:" >&5
14190sed 's/^/| /' conftest.$ac_ext >&5
14191
14192 ac_header_compiler=no
14193fi
14194
14195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14196{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14197echo "${ECHO_T}$ac_header_compiler" >&6; }
14198
14199# Is the header present?
14200{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14201echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14202cat >conftest.$ac_ext <<_ACEOF
14203/* confdefs.h. */
14204_ACEOF
14205cat confdefs.h >>conftest.$ac_ext
14206cat >>conftest.$ac_ext <<_ACEOF
14207/* end confdefs.h. */
14208#include <$ac_header>
14209_ACEOF
14210if { (ac_try="$ac_cpp conftest.$ac_ext"
14211case "(($ac_try" in
14212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14213 *) ac_try_echo=$ac_try;;
14214esac
14215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14217 ac_status=$?
14218 grep -v '^ *+' conftest.er1 >conftest.err
14219 rm -f conftest.er1
14220 cat conftest.err >&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); } >/dev/null; then
14223 if test -s conftest.err; then
14224 ac_cpp_err=$ac_c_preproc_warn_flag
14225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14226 else
14227 ac_cpp_err=
14228 fi
14229else
14230 ac_cpp_err=yes
14231fi
14232if test -z "$ac_cpp_err"; then
14233 ac_header_preproc=yes
14234else
14235 echo "$as_me: failed program was:" >&5
14236sed 's/^/| /' conftest.$ac_ext >&5
14237
14238 ac_header_preproc=no
14239fi
14240
14241rm -f conftest.err conftest.$ac_ext
14242{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14243echo "${ECHO_T}$ac_header_preproc" >&6; }
14244
14245# So? What about this header?
14246case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14247 yes:no: )
14248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14249echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14251echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14252 ac_header_preproc=yes
14253 ;;
14254 no:yes:* )
14255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14256echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14258echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14260echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14262echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14264echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14266echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14267 ( cat <<\_ASBOX
14268## ------------------------------ ##
14269## Report this to bugs@yourdomain ##
14270## ------------------------------ ##
14271_ASBOX
14272 ) | sed "s/^/$as_me: WARNING: /" >&2
14273 ;;
14274esac
14275{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14278 echo $ECHO_N "(cached) $ECHO_C" >&6
14279else
14280 eval "$as_ac_Header=\$ac_header_preproc"
14281fi
14282ac_res=`eval echo '${'$as_ac_Header'}'`
14283 { echo "$as_me:$LINENO: result: $ac_res" >&5
14284echo "${ECHO_T}$ac_res" >&6; }
14285
14286fi
14287if test `eval echo '${'$as_ac_Header'}'` = yes; then
14288 cat >>confdefs.h <<_ACEOF
14289#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14290_ACEOF
14291
14292fi
14293
14294done
14295
14296
14297
14298
14299
14300
14301
14302for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14303do
14304as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14306 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14309 echo $ECHO_N "(cached) $ECHO_C" >&6
14310fi
14311ac_res=`eval echo '${'$as_ac_Header'}'`
14312 { echo "$as_me:$LINENO: result: $ac_res" >&5
14313echo "${ECHO_T}$ac_res" >&6; }
14314else
14315 # Is the header compilable?
14316{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14317echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14318cat >conftest.$ac_ext <<_ACEOF
14319/* confdefs.h. */
14320_ACEOF
14321cat confdefs.h >>conftest.$ac_ext
14322cat >>conftest.$ac_ext <<_ACEOF
14323/* end confdefs.h. */
14324$ac_includes_default
14325#include <$ac_header>
14326_ACEOF
14327rm -f conftest.$ac_objext
14328if { (ac_try="$ac_compile"
14329case "(($ac_try" in
14330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14331 *) ac_try_echo=$ac_try;;
14332esac
14333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14334 (eval "$ac_compile") 2>conftest.er1
14335 ac_status=$?
14336 grep -v '^ *+' conftest.er1 >conftest.err
14337 rm -f conftest.er1
14338 cat conftest.err >&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); } &&
14341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14342 { (case "(($ac_try" in
14343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14344 *) ac_try_echo=$ac_try;;
14345esac
14346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14347 (eval "$ac_try") 2>&5
14348 ac_status=$?
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); }; } &&
14351 { ac_try='test -s conftest.$ac_objext'
14352 { (case "(($ac_try" in
14353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354 *) ac_try_echo=$ac_try;;
14355esac
14356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357 (eval "$ac_try") 2>&5
14358 ac_status=$?
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; }; then
14361 ac_header_compiler=yes
14362else
14363 echo "$as_me: failed program was:" >&5
14364sed 's/^/| /' conftest.$ac_ext >&5
14365
14366 ac_header_compiler=no
14367fi
14368
14369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14370{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14371echo "${ECHO_T}$ac_header_compiler" >&6; }
14372
14373# Is the header present?
14374{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14375echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14376cat >conftest.$ac_ext <<_ACEOF
14377/* confdefs.h. */
14378_ACEOF
14379cat confdefs.h >>conftest.$ac_ext
14380cat >>conftest.$ac_ext <<_ACEOF
14381/* end confdefs.h. */
14382#include <$ac_header>
14383_ACEOF
14384if { (ac_try="$ac_cpp conftest.$ac_ext"
14385case "(($ac_try" in
14386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387 *) ac_try_echo=$ac_try;;
14388esac
14389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14391 ac_status=$?
14392 grep -v '^ *+' conftest.er1 >conftest.err
14393 rm -f conftest.er1
14394 cat conftest.err >&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); } >/dev/null; then
14397 if test -s conftest.err; then
14398 ac_cpp_err=$ac_c_preproc_warn_flag
14399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14400 else
14401 ac_cpp_err=
14402 fi
14403else
14404 ac_cpp_err=yes
14405fi
14406if test -z "$ac_cpp_err"; then
14407 ac_header_preproc=yes
14408else
14409 echo "$as_me: failed program was:" >&5
14410sed 's/^/| /' conftest.$ac_ext >&5
14411
14412 ac_header_preproc=no
14413fi
14414
14415rm -f conftest.err conftest.$ac_ext
14416{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14417echo "${ECHO_T}$ac_header_preproc" >&6; }
14418
14419# So? What about this header?
14420case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14421 yes:no: )
14422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14423echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14425echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14426 ac_header_preproc=yes
14427 ;;
14428 no:yes:* )
14429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14430echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14432echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14434echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14436echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14438echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14440echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14441 ( cat <<\_ASBOX
14442## ------------------------------ ##
14443## Report this to bugs@yourdomain ##
14444## ------------------------------ ##
14445_ASBOX
14446 ) | sed "s/^/$as_me: WARNING: /" >&2
14447 ;;
14448esac
14449{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14450echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14451if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14452 echo $ECHO_N "(cached) $ECHO_C" >&6
14453else
14454 eval "$as_ac_Header=\$ac_header_preproc"
14455fi
14456ac_res=`eval echo '${'$as_ac_Header'}'`
14457 { echo "$as_me:$LINENO: result: $ac_res" >&5
14458echo "${ECHO_T}$ac_res" >&6; }
14459
14460fi
14461if test `eval echo '${'$as_ac_Header'}'` = yes; then
14462 cat >>confdefs.h <<_ACEOF
14463#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14464_ACEOF
14465
14466fi
14467
14468done
14469
14470
14471
14472for ac_header in utime.h windows.h
14473do
14474as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14477echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14478if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
14480fi
14481ac_res=`eval echo '${'$as_ac_Header'}'`
14482 { echo "$as_me:$LINENO: result: $ac_res" >&5
14483echo "${ECHO_T}$ac_res" >&6; }
14484else
14485 # Is the header compilable?
14486{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14487echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14488cat >conftest.$ac_ext <<_ACEOF
14489/* confdefs.h. */
14490_ACEOF
14491cat confdefs.h >>conftest.$ac_ext
14492cat >>conftest.$ac_ext <<_ACEOF
14493/* end confdefs.h. */
14494$ac_includes_default
14495#include <$ac_header>
14496_ACEOF
14497rm -f conftest.$ac_objext
14498if { (ac_try="$ac_compile"
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_compile") 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); } &&
14511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14512 { (case "(($ac_try" in
14513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14514 *) ac_try_echo=$ac_try;;
14515esac
14516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14517 (eval "$ac_try") 2>&5
14518 ac_status=$?
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; } &&
14521 { ac_try='test -s conftest.$ac_objext'
14522 { (case "(($ac_try" in
14523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524 *) ac_try_echo=$ac_try;;
14525esac
14526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527 (eval "$ac_try") 2>&5
14528 ac_status=$?
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; }; then
14531 ac_header_compiler=yes
14532else
14533 echo "$as_me: failed program was:" >&5
14534sed 's/^/| /' conftest.$ac_ext >&5
14535
14536 ac_header_compiler=no
14537fi
14538
14539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14540{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14541echo "${ECHO_T}$ac_header_compiler" >&6; }
14542
14543# Is the header present?
14544{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14545echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14546cat >conftest.$ac_ext <<_ACEOF
14547/* confdefs.h. */
14548_ACEOF
14549cat confdefs.h >>conftest.$ac_ext
14550cat >>conftest.$ac_ext <<_ACEOF
14551/* end confdefs.h. */
14552#include <$ac_header>
14553_ACEOF
14554if { (ac_try="$ac_cpp conftest.$ac_ext"
14555case "(($ac_try" in
14556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557 *) ac_try_echo=$ac_try;;
14558esac
14559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14561 ac_status=$?
14562 grep -v '^ *+' conftest.er1 >conftest.err
14563 rm -f conftest.er1
14564 cat conftest.err >&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } >/dev/null; then
14567 if test -s conftest.err; then
14568 ac_cpp_err=$ac_c_preproc_warn_flag
14569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14570 else
14571 ac_cpp_err=
14572 fi
14573else
14574 ac_cpp_err=yes
14575fi
14576if test -z "$ac_cpp_err"; then
14577 ac_header_preproc=yes
14578else
14579 echo "$as_me: failed program was:" >&5
14580sed 's/^/| /' conftest.$ac_ext >&5
14581
14582 ac_header_preproc=no
14583fi
14584
14585rm -f conftest.err conftest.$ac_ext
14586{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14587echo "${ECHO_T}$ac_header_preproc" >&6; }
14588
14589# So? What about this header?
14590case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14591 yes:no: )
14592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14593echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14595echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14596 ac_header_preproc=yes
14597 ;;
14598 no:yes:* )
14599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14600echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14602echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14604echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14606echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14608echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14610echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14611 ( cat <<\_ASBOX
14612## ------------------------------ ##
14613## Report this to bugs@yourdomain ##
14614## ------------------------------ ##
14615_ASBOX
14616 ) | sed "s/^/$as_me: WARNING: /" >&2
14617 ;;
14618esac
14619{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14620echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14621if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14622 echo $ECHO_N "(cached) $ECHO_C" >&6
14623else
14624 eval "$as_ac_Header=\$ac_header_preproc"
14625fi
14626ac_res=`eval echo '${'$as_ac_Header'}'`
14627 { echo "$as_me:$LINENO: result: $ac_res" >&5
14628echo "${ECHO_T}$ac_res" >&6; }
14629
14630fi
14631if test `eval echo '${'$as_ac_Header'}'` = yes; then
14632 cat >>confdefs.h <<_ACEOF
14633#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14634_ACEOF
14635
14636fi
14637
14638done
14639
14640
14641
14642
14643
14644
14645for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14646do
14647as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14651if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14652 echo $ECHO_N "(cached) $ECHO_C" >&6
14653fi
14654ac_res=`eval echo '${'$as_ac_Header'}'`
14655 { echo "$as_me:$LINENO: result: $ac_res" >&5
14656echo "${ECHO_T}$ac_res" >&6; }
14657else
14658 # Is the header compilable?
14659{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14660echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14661cat >conftest.$ac_ext <<_ACEOF
14662/* confdefs.h. */
14663_ACEOF
14664cat confdefs.h >>conftest.$ac_ext
14665cat >>conftest.$ac_ext <<_ACEOF
14666/* end confdefs.h. */
14667$ac_includes_default
14668#include <$ac_header>
14669_ACEOF
14670rm -f conftest.$ac_objext
14671if { (ac_try="$ac_compile"
14672case "(($ac_try" in
14673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674 *) ac_try_echo=$ac_try;;
14675esac
14676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14677 (eval "$ac_compile") 2>conftest.er1
14678 ac_status=$?
14679 grep -v '^ *+' conftest.er1 >conftest.err
14680 rm -f conftest.er1
14681 cat conftest.err >&5
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); } &&
14684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14685 { (case "(($ac_try" in
14686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687 *) ac_try_echo=$ac_try;;
14688esac
14689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690 (eval "$ac_try") 2>&5
14691 ac_status=$?
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); }; } &&
14694 { ac_try='test -s conftest.$ac_objext'
14695 { (case "(($ac_try" in
14696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697 *) ac_try_echo=$ac_try;;
14698esac
14699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700 (eval "$ac_try") 2>&5
14701 ac_status=$?
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; }; then
14704 ac_header_compiler=yes
14705else
14706 echo "$as_me: failed program was:" >&5
14707sed 's/^/| /' conftest.$ac_ext >&5
14708
14709 ac_header_compiler=no
14710fi
14711
14712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14713{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14714echo "${ECHO_T}$ac_header_compiler" >&6; }
14715
14716# Is the header present?
14717{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14718echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14719cat >conftest.$ac_ext <<_ACEOF
14720/* confdefs.h. */
14721_ACEOF
14722cat confdefs.h >>conftest.$ac_ext
14723cat >>conftest.$ac_ext <<_ACEOF
14724/* end confdefs.h. */
14725#include <$ac_header>
14726_ACEOF
14727if { (ac_try="$ac_cpp conftest.$ac_ext"
14728case "(($ac_try" in
14729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730 *) ac_try_echo=$ac_try;;
14731esac
14732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14734 ac_status=$?
14735 grep -v '^ *+' conftest.er1 >conftest.err
14736 rm -f conftest.er1
14737 cat conftest.err >&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); } >/dev/null; then
14740 if test -s conftest.err; then
14741 ac_cpp_err=$ac_c_preproc_warn_flag
14742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14743 else
14744 ac_cpp_err=
14745 fi
14746else
14747 ac_cpp_err=yes
14748fi
14749if test -z "$ac_cpp_err"; then
14750 ac_header_preproc=yes
14751else
14752 echo "$as_me: failed program was:" >&5
14753sed 's/^/| /' conftest.$ac_ext >&5
14754
14755 ac_header_preproc=no
14756fi
14757
14758rm -f conftest.err conftest.$ac_ext
14759{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14760echo "${ECHO_T}$ac_header_preproc" >&6; }
14761
14762# So? What about this header?
14763case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14764 yes:no: )
14765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14766echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14768echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14769 ac_header_preproc=yes
14770 ;;
14771 no:yes:* )
14772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14773echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14775echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14777echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14779echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14781echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14783echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14784 ( cat <<\_ASBOX
14785## ------------------------------ ##
14786## Report this to bugs@yourdomain ##
14787## ------------------------------ ##
14788_ASBOX
14789 ) | sed "s/^/$as_me: WARNING: /" >&2
14790 ;;
14791esac
14792{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14794if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14795 echo $ECHO_N "(cached) $ECHO_C" >&6
14796else
14797 eval "$as_ac_Header=\$ac_header_preproc"
14798fi
14799ac_res=`eval echo '${'$as_ac_Header'}'`
14800 { echo "$as_me:$LINENO: result: $ac_res" >&5
14801echo "${ECHO_T}$ac_res" >&6; }
14802
14803fi
14804if test `eval echo '${'$as_ac_Header'}'` = yes; then
14805 cat >>confdefs.h <<_ACEOF
14806#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14807_ACEOF
14808
14809fi
14810
14811done
14812
14813
14814
14815
14816
14817for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14818do
14819as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14820if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14823if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14824 echo $ECHO_N "(cached) $ECHO_C" >&6
14825fi
14826ac_res=`eval echo '${'$as_ac_Header'}'`
14827 { echo "$as_me:$LINENO: result: $ac_res" >&5
14828echo "${ECHO_T}$ac_res" >&6; }
14829else
14830 # Is the header compilable?
14831{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14832echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14833cat >conftest.$ac_ext <<_ACEOF
14834/* confdefs.h. */
14835_ACEOF
14836cat confdefs.h >>conftest.$ac_ext
14837cat >>conftest.$ac_ext <<_ACEOF
14838/* end confdefs.h. */
14839$ac_includes_default
14840#include <$ac_header>
14841_ACEOF
14842rm -f conftest.$ac_objext
14843if { (ac_try="$ac_compile"
14844case "(($ac_try" in
14845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846 *) ac_try_echo=$ac_try;;
14847esac
14848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849 (eval "$ac_compile") 2>conftest.er1
14850 ac_status=$?
14851 grep -v '^ *+' conftest.er1 >conftest.err
14852 rm -f conftest.er1
14853 cat conftest.err >&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); } &&
14856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14857 { (case "(($ac_try" in
14858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14859 *) ac_try_echo=$ac_try;;
14860esac
14861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14862 (eval "$ac_try") 2>&5
14863 ac_status=$?
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; } &&
14866 { ac_try='test -s conftest.$ac_objext'
14867 { (case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14870esac
14871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872 (eval "$ac_try") 2>&5
14873 ac_status=$?
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; }; then
14876 ac_header_compiler=yes
14877else
14878 echo "$as_me: failed program was:" >&5
14879sed 's/^/| /' conftest.$ac_ext >&5
14880
14881 ac_header_compiler=no
14882fi
14883
14884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14885{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14886echo "${ECHO_T}$ac_header_compiler" >&6; }
14887
14888# Is the header present?
14889{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14890echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14891cat >conftest.$ac_ext <<_ACEOF
14892/* confdefs.h. */
14893_ACEOF
14894cat confdefs.h >>conftest.$ac_ext
14895cat >>conftest.$ac_ext <<_ACEOF
14896/* end confdefs.h. */
14897#include <$ac_header>
14898_ACEOF
14899if { (ac_try="$ac_cpp conftest.$ac_ext"
14900case "(($ac_try" in
14901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14902 *) ac_try_echo=$ac_try;;
14903esac
14904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14906 ac_status=$?
14907 grep -v '^ *+' conftest.er1 >conftest.err
14908 rm -f conftest.er1
14909 cat conftest.err >&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); } >/dev/null; then
14912 if test -s conftest.err; then
14913 ac_cpp_err=$ac_c_preproc_warn_flag
14914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14915 else
14916 ac_cpp_err=
14917 fi
14918else
14919 ac_cpp_err=yes
14920fi
14921if test -z "$ac_cpp_err"; then
14922 ac_header_preproc=yes
14923else
14924 echo "$as_me: failed program was:" >&5
14925sed 's/^/| /' conftest.$ac_ext >&5
14926
14927 ac_header_preproc=no
14928fi
14929
14930rm -f conftest.err conftest.$ac_ext
14931{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14932echo "${ECHO_T}$ac_header_preproc" >&6; }
14933
14934# So? What about this header?
14935case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14936 yes:no: )
14937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14938echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14940echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14941 ac_header_preproc=yes
14942 ;;
14943 no:yes:* )
14944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14945echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14947echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14949echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14951echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14953echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14955echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14956 ( cat <<\_ASBOX
14957## ------------------------------ ##
14958## Report this to bugs@yourdomain ##
14959## ------------------------------ ##
14960_ASBOX
14961 ) | sed "s/^/$as_me: WARNING: /" >&2
14962 ;;
14963esac
14964{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14967 echo $ECHO_N "(cached) $ECHO_C" >&6
14968else
14969 eval "$as_ac_Header=\$ac_header_preproc"
14970fi
14971ac_res=`eval echo '${'$as_ac_Header'}'`
14972 { echo "$as_me:$LINENO: result: $ac_res" >&5
14973echo "${ECHO_T}$ac_res" >&6; }
14974
14975fi
14976if test `eval echo '${'$as_ac_Header'}'` = yes; then
14977 cat >>confdefs.h <<_ACEOF
14978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14979_ACEOF
14980
14981fi
14982
14983done
14984
14985
14986for ac_header in valgrind/valgrind.h
14987do
14988as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14991echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14993 echo $ECHO_N "(cached) $ECHO_C" >&6
14994fi
14995ac_res=`eval echo '${'$as_ac_Header'}'`
14996 { echo "$as_me:$LINENO: result: $ac_res" >&5
14997echo "${ECHO_T}$ac_res" >&6; }
14998else
14999 # Is the header compilable?
15000{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15001echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15002cat >conftest.$ac_ext <<_ACEOF
15003/* confdefs.h. */
15004_ACEOF
15005cat confdefs.h >>conftest.$ac_ext
15006cat >>conftest.$ac_ext <<_ACEOF
15007/* end confdefs.h. */
15008$ac_includes_default
15009#include <$ac_header>
15010_ACEOF
15011rm -f conftest.$ac_objext
15012if { (ac_try="$ac_compile"
15013case "(($ac_try" in
15014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15015 *) ac_try_echo=$ac_try;;
15016esac
15017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15018 (eval "$ac_compile") 2>conftest.er1
15019 ac_status=$?
15020 grep -v '^ *+' conftest.er1 >conftest.err
15021 rm -f conftest.er1
15022 cat conftest.err >&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } &&
15025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15026 { (case "(($ac_try" in
15027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028 *) ac_try_echo=$ac_try;;
15029esac
15030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15031 (eval "$ac_try") 2>&5
15032 ac_status=$?
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); }; } &&
15035 { ac_try='test -s conftest.$ac_objext'
15036 { (case "(($ac_try" in
15037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15038 *) ac_try_echo=$ac_try;;
15039esac
15040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15041 (eval "$ac_try") 2>&5
15042 ac_status=$?
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); }; }; then
15045 ac_header_compiler=yes
15046else
15047 echo "$as_me: failed program was:" >&5
15048sed 's/^/| /' conftest.$ac_ext >&5
15049
15050 ac_header_compiler=no
15051fi
15052
15053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15054{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15055echo "${ECHO_T}$ac_header_compiler" >&6; }
15056
15057# Is the header present?
15058{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15059echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15060cat >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#include <$ac_header>
15067_ACEOF
15068if { (ac_try="$ac_cpp conftest.$ac_ext"
15069case "(($ac_try" in
15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15072esac
15073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15075 ac_status=$?
15076 grep -v '^ *+' conftest.er1 >conftest.err
15077 rm -f conftest.er1
15078 cat conftest.err >&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } >/dev/null; then
15081 if test -s conftest.err; then
15082 ac_cpp_err=$ac_c_preproc_warn_flag
15083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15084 else
15085 ac_cpp_err=
15086 fi
15087else
15088 ac_cpp_err=yes
15089fi
15090if test -z "$ac_cpp_err"; then
15091 ac_header_preproc=yes
15092else
15093 echo "$as_me: failed program was:" >&5
15094sed 's/^/| /' conftest.$ac_ext >&5
15095
15096 ac_header_preproc=no
15097fi
15098
15099rm -f conftest.err conftest.$ac_ext
15100{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15101echo "${ECHO_T}$ac_header_preproc" >&6; }
15102
15103# So? What about this header?
15104case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15105 yes:no: )
15106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15107echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15109echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15110 ac_header_preproc=yes
15111 ;;
15112 no:yes:* )
15113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15114echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15116echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15117 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15118echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15119 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15120echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15122echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15123 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15124echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15125 ( cat <<\_ASBOX
15126## ------------------------------ ##
15127## Report this to bugs@yourdomain ##
15128## ------------------------------ ##
15129_ASBOX
15130 ) | sed "s/^/$as_me: WARNING: /" >&2
15131 ;;
15132esac
15133{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15136 echo $ECHO_N "(cached) $ECHO_C" >&6
15137else
15138 eval "$as_ac_Header=\$ac_header_preproc"
15139fi
15140ac_res=`eval echo '${'$as_ac_Header'}'`
15141 { echo "$as_me:$LINENO: result: $ac_res" >&5
15142echo "${ECHO_T}$ac_res" >&6; }
15143
15144fi
15145if test `eval echo '${'$as_ac_Header'}'` = yes; then
15146 cat >>confdefs.h <<_ACEOF
15147#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15148_ACEOF
15149
15150fi
15151
15152done
15153
15154
15155for ac_header in fenv.h
15156do
15157as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15158if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15163fi
15164ac_res=`eval echo '${'$as_ac_Header'}'`
15165 { echo "$as_me:$LINENO: result: $ac_res" >&5
15166echo "${ECHO_T}$ac_res" >&6; }
15167else
15168 # Is the header compilable?
15169{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15170echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15171cat >conftest.$ac_ext <<_ACEOF
15172/* confdefs.h. */
15173_ACEOF
15174cat confdefs.h >>conftest.$ac_ext
15175cat >>conftest.$ac_ext <<_ACEOF
15176/* end confdefs.h. */
15177$ac_includes_default
15178#include <$ac_header>
15179_ACEOF
15180rm -f conftest.$ac_objext
15181if { (ac_try="$ac_compile"
15182case "(($ac_try" in
15183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15184 *) ac_try_echo=$ac_try;;
15185esac
15186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15187 (eval "$ac_compile") 2>conftest.er1
15188 ac_status=$?
15189 grep -v '^ *+' conftest.er1 >conftest.err
15190 rm -f conftest.er1
15191 cat conftest.err >&5
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); } &&
15194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15195 { (case "(($ac_try" in
15196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197 *) ac_try_echo=$ac_try;;
15198esac
15199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15200 (eval "$ac_try") 2>&5
15201 ac_status=$?
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); }; } &&
15204 { ac_try='test -s conftest.$ac_objext'
15205 { (case "(($ac_try" in
15206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15207 *) ac_try_echo=$ac_try;;
15208esac
15209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15210 (eval "$ac_try") 2>&5
15211 ac_status=$?
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); }; }; then
15214 ac_header_compiler=yes
15215else
15216 echo "$as_me: failed program was:" >&5
15217sed 's/^/| /' conftest.$ac_ext >&5
15218
15219 ac_header_compiler=no
15220fi
15221
15222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15223{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15224echo "${ECHO_T}$ac_header_compiler" >&6; }
15225
15226# Is the header present?
15227{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15228echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15229cat >conftest.$ac_ext <<_ACEOF
15230/* confdefs.h. */
15231_ACEOF
15232cat confdefs.h >>conftest.$ac_ext
15233cat >>conftest.$ac_ext <<_ACEOF
15234/* end confdefs.h. */
15235#include <$ac_header>
15236_ACEOF
15237if { (ac_try="$ac_cpp conftest.$ac_ext"
15238case "(($ac_try" in
15239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15240 *) ac_try_echo=$ac_try;;
15241esac
15242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15244 ac_status=$?
15245 grep -v '^ *+' conftest.er1 >conftest.err
15246 rm -f conftest.er1
15247 cat conftest.err >&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); } >/dev/null; then
15250 if test -s conftest.err; then
15251 ac_cpp_err=$ac_c_preproc_warn_flag
15252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15253 else
15254 ac_cpp_err=
15255 fi
15256else
15257 ac_cpp_err=yes
15258fi
15259if test -z "$ac_cpp_err"; then
15260 ac_header_preproc=yes
15261else
15262 echo "$as_me: failed program was:" >&5
15263sed 's/^/| /' conftest.$ac_ext >&5
15264
15265 ac_header_preproc=no
15266fi
15267
15268rm -f conftest.err conftest.$ac_ext
15269{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15270echo "${ECHO_T}$ac_header_preproc" >&6; }
15271
15272# So? What about this header?
15273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15274 yes:no: )
15275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15276echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15278echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15279 ac_header_preproc=yes
15280 ;;
15281 no:yes:* )
15282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15283echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15285echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15287echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15289echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15291echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15293echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15294 ( cat <<\_ASBOX
15295## ------------------------------ ##
15296## Report this to bugs@yourdomain ##
15297## ------------------------------ ##
15298_ASBOX
15299 ) | sed "s/^/$as_me: WARNING: /" >&2
15300 ;;
15301esac
15302{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15305 echo $ECHO_N "(cached) $ECHO_C" >&6
15306else
15307 eval "$as_ac_Header=\$ac_header_preproc"
15308fi
15309ac_res=`eval echo '${'$as_ac_Header'}'`
15310 { echo "$as_me:$LINENO: result: $ac_res" >&5
15311echo "${ECHO_T}$ac_res" >&6; }
15312
15313fi
15314if test `eval echo '${'$as_ac_Header'}'` = yes; then
15315 cat >>confdefs.h <<_ACEOF
15316#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15317_ACEOF
15318
15319fi
15320
15321done
15322
15323if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15324
15325for ac_header in pthread.h
15326do
15327as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15328if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15331if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15332 echo $ECHO_N "(cached) $ECHO_C" >&6
15333fi
15334ac_res=`eval echo '${'$as_ac_Header'}'`
15335 { echo "$as_me:$LINENO: result: $ac_res" >&5
15336echo "${ECHO_T}$ac_res" >&6; }
15337else
15338 # Is the header compilable?
15339{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15340echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15341cat >conftest.$ac_ext <<_ACEOF
15342/* confdefs.h. */
15343_ACEOF
15344cat confdefs.h >>conftest.$ac_ext
15345cat >>conftest.$ac_ext <<_ACEOF
15346/* end confdefs.h. */
15347$ac_includes_default
15348#include <$ac_header>
15349_ACEOF
15350rm -f conftest.$ac_objext
15351if { (ac_try="$ac_compile"
15352case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15355esac
15356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_compile") 2>conftest.er1
15358 ac_status=$?
15359 grep -v '^ *+' conftest.er1 >conftest.err
15360 rm -f conftest.er1
15361 cat conftest.err >&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); } &&
15364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15365 { (case "(($ac_try" in
15366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367 *) ac_try_echo=$ac_try;;
15368esac
15369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370 (eval "$ac_try") 2>&5
15371 ac_status=$?
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); }; } &&
15374 { ac_try='test -s conftest.$ac_objext'
15375 { (case "(($ac_try" in
15376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377 *) ac_try_echo=$ac_try;;
15378esac
15379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380 (eval "$ac_try") 2>&5
15381 ac_status=$?
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15384 ac_header_compiler=yes
15385else
15386 echo "$as_me: failed program was:" >&5
15387sed 's/^/| /' conftest.$ac_ext >&5
15388
15389 ac_header_compiler=no
15390fi
15391
15392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15393{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15394echo "${ECHO_T}$ac_header_compiler" >&6; }
15395
15396# Is the header present?
15397{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15398echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15399cat >conftest.$ac_ext <<_ACEOF
15400/* confdefs.h. */
15401_ACEOF
15402cat confdefs.h >>conftest.$ac_ext
15403cat >>conftest.$ac_ext <<_ACEOF
15404/* end confdefs.h. */
15405#include <$ac_header>
15406_ACEOF
15407if { (ac_try="$ac_cpp conftest.$ac_ext"
15408case "(($ac_try" in
15409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15410 *) ac_try_echo=$ac_try;;
15411esac
15412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15414 ac_status=$?
15415 grep -v '^ *+' conftest.er1 >conftest.err
15416 rm -f conftest.er1
15417 cat conftest.err >&5
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } >/dev/null; then
15420 if test -s conftest.err; then
15421 ac_cpp_err=$ac_c_preproc_warn_flag
15422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15423 else
15424 ac_cpp_err=
15425 fi
15426else
15427 ac_cpp_err=yes
15428fi
15429if test -z "$ac_cpp_err"; then
15430 ac_header_preproc=yes
15431else
15432 echo "$as_me: failed program was:" >&5
15433sed 's/^/| /' conftest.$ac_ext >&5
15434
15435 ac_header_preproc=no
15436fi
15437
15438rm -f conftest.err conftest.$ac_ext
15439{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15440echo "${ECHO_T}$ac_header_preproc" >&6; }
15441
15442# So? What about this header?
15443case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15444 yes:no: )
15445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15446echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15448echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15449 ac_header_preproc=yes
15450 ;;
15451 no:yes:* )
15452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15453echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15455echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15457echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15459echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15461echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15463echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15464 ( cat <<\_ASBOX
15465## ------------------------------ ##
15466## Report this to bugs@yourdomain ##
15467## ------------------------------ ##
15468_ASBOX
15469 ) | sed "s/^/$as_me: WARNING: /" >&2
15470 ;;
15471esac
15472{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15473echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15474if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15475 echo $ECHO_N "(cached) $ECHO_C" >&6
15476else
15477 eval "$as_ac_Header=\$ac_header_preproc"
15478fi
15479ac_res=`eval echo '${'$as_ac_Header'}'`
15480 { echo "$as_me:$LINENO: result: $ac_res" >&5
15481echo "${ECHO_T}$ac_res" >&6; }
15482
15483fi
15484if test `eval echo '${'$as_ac_Header'}'` = yes; then
15485 cat >>confdefs.h <<_ACEOF
15486#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15487_ACEOF
15488 HAVE_PTHREAD=1
15489
15490else
15491 HAVE_PTHREAD=0
15492
15493fi
15494
15495done
15496
15497else
15498 HAVE_PTHREAD=0
15499
15500fi
15501
15502if test "$llvm_cv_enable_libffi" = "yes" ; then
15503
15504
15505for ac_header in ffi.h ffi/ffi.h
15506do
15507as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15508if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15512 echo $ECHO_N "(cached) $ECHO_C" >&6
15513fi
15514ac_res=`eval echo '${'$as_ac_Header'}'`
15515 { echo "$as_me:$LINENO: result: $ac_res" >&5
15516echo "${ECHO_T}$ac_res" >&6; }
15517else
15518 # Is the header compilable?
15519{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15520echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15521cat >conftest.$ac_ext <<_ACEOF
15522/* confdefs.h. */
15523_ACEOF
15524cat confdefs.h >>conftest.$ac_ext
15525cat >>conftest.$ac_ext <<_ACEOF
15526/* end confdefs.h. */
15527$ac_includes_default
15528#include <$ac_header>
15529_ACEOF
15530rm -f conftest.$ac_objext
15531if { (ac_try="$ac_compile"
15532case "(($ac_try" in
15533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15534 *) ac_try_echo=$ac_try;;
15535esac
15536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15537 (eval "$ac_compile") 2>conftest.er1
15538 ac_status=$?
15539 grep -v '^ *+' conftest.er1 >conftest.err
15540 rm -f conftest.er1
15541 cat conftest.err >&5
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); } &&
15544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15545 { (case "(($ac_try" in
15546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547 *) ac_try_echo=$ac_try;;
15548esac
15549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550 (eval "$ac_try") 2>&5
15551 ac_status=$?
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); }; } &&
15554 { ac_try='test -s conftest.$ac_objext'
15555 { (case "(($ac_try" in
15556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557 *) ac_try_echo=$ac_try;;
15558esac
15559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560 (eval "$ac_try") 2>&5
15561 ac_status=$?
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); }; }; then
15564 ac_header_compiler=yes
15565else
15566 echo "$as_me: failed program was:" >&5
15567sed 's/^/| /' conftest.$ac_ext >&5
15568
15569 ac_header_compiler=no
15570fi
15571
15572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15573{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15574echo "${ECHO_T}$ac_header_compiler" >&6; }
15575
15576# Is the header present?
15577{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15578echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15579cat >conftest.$ac_ext <<_ACEOF
15580/* confdefs.h. */
15581_ACEOF
15582cat confdefs.h >>conftest.$ac_ext
15583cat >>conftest.$ac_ext <<_ACEOF
15584/* end confdefs.h. */
15585#include <$ac_header>
15586_ACEOF
15587if { (ac_try="$ac_cpp conftest.$ac_ext"
15588case "(($ac_try" in
15589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590 *) ac_try_echo=$ac_try;;
15591esac
15592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15594 ac_status=$?
15595 grep -v '^ *+' conftest.er1 >conftest.err
15596 rm -f conftest.er1
15597 cat conftest.err >&5
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); } >/dev/null; then
15600 if test -s conftest.err; then
15601 ac_cpp_err=$ac_c_preproc_warn_flag
15602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15603 else
15604 ac_cpp_err=
15605 fi
15606else
15607 ac_cpp_err=yes
15608fi
15609if test -z "$ac_cpp_err"; then
15610 ac_header_preproc=yes
15611else
15612 echo "$as_me: failed program was:" >&5
15613sed 's/^/| /' conftest.$ac_ext >&5
15614
15615 ac_header_preproc=no
15616fi
15617
15618rm -f conftest.err conftest.$ac_ext
15619{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15620echo "${ECHO_T}$ac_header_preproc" >&6; }
15621
15622# So? What about this header?
15623case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15624 yes:no: )
15625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15626echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15628echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15629 ac_header_preproc=yes
15630 ;;
15631 no:yes:* )
15632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15633echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15635echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15637echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15639echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15641echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15643echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15644 ( cat <<\_ASBOX
15645## ------------------------------ ##
15646## Report this to bugs@yourdomain ##
15647## ------------------------------ ##
15648_ASBOX
15649 ) | sed "s/^/$as_me: WARNING: /" >&2
15650 ;;
15651esac
15652{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15653echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15654if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15655 echo $ECHO_N "(cached) $ECHO_C" >&6
15656else
15657 eval "$as_ac_Header=\$ac_header_preproc"
15658fi
15659ac_res=`eval echo '${'$as_ac_Header'}'`
15660 { echo "$as_me:$LINENO: result: $ac_res" >&5
15661echo "${ECHO_T}$ac_res" >&6; }
15662
15663fi
15664if test `eval echo '${'$as_ac_Header'}'` = yes; then
15665 cat >>confdefs.h <<_ACEOF
15666#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15667_ACEOF
15668
15669fi
15670
15671done
15672
15673fi
15674
15675
15676for ac_header in CrashReporterClient.h
15677do
15678as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15679if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15683 echo $ECHO_N "(cached) $ECHO_C" >&6
15684fi
15685ac_res=`eval echo '${'$as_ac_Header'}'`
15686 { echo "$as_me:$LINENO: result: $ac_res" >&5
15687echo "${ECHO_T}$ac_res" >&6; }
15688else
15689 # Is the header compilable?
15690{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15691echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15692cat >conftest.$ac_ext <<_ACEOF
15693/* confdefs.h. */
15694_ACEOF
15695cat confdefs.h >>conftest.$ac_ext
15696cat >>conftest.$ac_ext <<_ACEOF
15697/* end confdefs.h. */
15698$ac_includes_default
15699#include <$ac_header>
15700_ACEOF
15701rm -f conftest.$ac_objext
15702if { (ac_try="$ac_compile"
15703case "(($ac_try" in
15704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705 *) ac_try_echo=$ac_try;;
15706esac
15707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708 (eval "$ac_compile") 2>conftest.er1
15709 ac_status=$?
15710 grep -v '^ *+' conftest.er1 >conftest.err
15711 rm -f conftest.er1
15712 cat conftest.err >&5
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); } &&
15715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15716 { (case "(($ac_try" in
15717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718 *) ac_try_echo=$ac_try;;
15719esac
15720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15721 (eval "$ac_try") 2>&5
15722 ac_status=$?
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); }; } &&
15725 { ac_try='test -s conftest.$ac_objext'
15726 { (case "(($ac_try" in
15727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15728 *) ac_try_echo=$ac_try;;
15729esac
15730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15731 (eval "$ac_try") 2>&5
15732 ac_status=$?
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); }; }; then
15735 ac_header_compiler=yes
15736else
15737 echo "$as_me: failed program was:" >&5
15738sed 's/^/| /' conftest.$ac_ext >&5
15739
15740 ac_header_compiler=no
15741fi
15742
15743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15744{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15745echo "${ECHO_T}$ac_header_compiler" >&6; }
15746
15747# Is the header present?
15748{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15749echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15750cat >conftest.$ac_ext <<_ACEOF
15751/* confdefs.h. */
15752_ACEOF
15753cat confdefs.h >>conftest.$ac_ext
15754cat >>conftest.$ac_ext <<_ACEOF
15755/* end confdefs.h. */
15756#include <$ac_header>
15757_ACEOF
15758if { (ac_try="$ac_cpp conftest.$ac_ext"
15759case "(($ac_try" in
15760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15761 *) ac_try_echo=$ac_try;;
15762esac
15763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15765 ac_status=$?
15766 grep -v '^ *+' conftest.er1 >conftest.err
15767 rm -f conftest.er1
15768 cat conftest.err >&5
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); } >/dev/null; then
15771 if test -s conftest.err; then
15772 ac_cpp_err=$ac_c_preproc_warn_flag
15773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15774 else
15775 ac_cpp_err=
15776 fi
15777else
15778 ac_cpp_err=yes
15779fi
15780if test -z "$ac_cpp_err"; then
15781 ac_header_preproc=yes
15782else
15783 echo "$as_me: failed program was:" >&5
15784sed 's/^/| /' conftest.$ac_ext >&5
15785
15786 ac_header_preproc=no
15787fi
15788
15789rm -f conftest.err conftest.$ac_ext
15790{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15791echo "${ECHO_T}$ac_header_preproc" >&6; }
15792
15793# So? What about this header?
15794case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15795 yes:no: )
15796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15797echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15799echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15800 ac_header_preproc=yes
15801 ;;
15802 no:yes:* )
15803 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15804echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15805 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15806echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15807 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15808echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15809 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15810echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15812echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15813 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15814echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15815 ( cat <<\_ASBOX
15816## ------------------------------ ##
15817## Report this to bugs@yourdomain ##
15818## ------------------------------ ##
15819_ASBOX
15820 ) | sed "s/^/$as_me: WARNING: /" >&2
15821 ;;
15822esac
15823{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15824echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15825if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15826 echo $ECHO_N "(cached) $ECHO_C" >&6
15827else
15828 eval "$as_ac_Header=\$ac_header_preproc"
15829fi
15830ac_res=`eval echo '${'$as_ac_Header'}'`
15831 { echo "$as_me:$LINENO: result: $ac_res" >&5
15832echo "${ECHO_T}$ac_res" >&6; }
15833
15834fi
15835if test `eval echo '${'$as_ac_Header'}'` = yes; then
15836 cat >>confdefs.h <<_ACEOF
15837#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15838_ACEOF
15839
15840fi
15841
15842done
15843
15844
15845{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15846echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15847cat >conftest.$ac_ext <<_ACEOF
15848/* confdefs.h. */
15849_ACEOF
15850cat confdefs.h >>conftest.$ac_ext
15851cat >>conftest.$ac_ext <<_ACEOF
15852/* end confdefs.h. */
15853extern const char *__crashreporter_info__;
15854 int main() {
15855 __crashreporter_info__ = "test";
15856 return 0;
15857 }
15858
15859_ACEOF
15860rm -f conftest.$ac_objext conftest$ac_exeext
15861if { (ac_try="$ac_link"
15862case "(($ac_try" in
15863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864 *) ac_try_echo=$ac_try;;
15865esac
15866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15867 (eval "$ac_link") 2>conftest.er1
15868 ac_status=$?
15869 grep -v '^ *+' conftest.er1 >conftest.err
15870 rm -f conftest.er1
15871 cat conftest.err >&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); } &&
15874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15875 { (case "(($ac_try" in
15876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15877 *) ac_try_echo=$ac_try;;
15878esac
15879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15880 (eval "$ac_try") 2>&5
15881 ac_status=$?
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); }; } &&
15884 { ac_try='test -s conftest$ac_exeext'
15885 { (case "(($ac_try" in
15886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15887 *) ac_try_echo=$ac_try;;
15888esac
15889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15890 (eval "$ac_try") 2>&5
15891 ac_status=$?
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); }; }; then
15894 { echo "$as_me:$LINENO: result: yes" >&5
15895echo "${ECHO_T}yes" >&6; }
15896
15897cat >>confdefs.h <<\_ACEOF
15898#define HAVE_CRASHREPORTER_INFO 1
15899_ACEOF
15900
15901else
15902 echo "$as_me: failed program was:" >&5
15903sed 's/^/| /' conftest.$ac_ext >&5
15904
15905 { echo "$as_me:$LINENO: result: no" >&5
15906echo "${ECHO_T}no" >&6; }
15907
15908cat >>confdefs.h <<\_ACEOF
15909#define HAVE_CRASHREPORTER_INFO 0
15910_ACEOF
15911
15912fi
15913
15914rm -f core conftest.err conftest.$ac_objext \
15915 conftest$ac_exeext conftest.$ac_ext
15916
15917
15918
15919
15920 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
15921echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
15922if test "${ac_cv_huge_val_sanity+set}" = set; then
15923 echo $ECHO_N "(cached) $ECHO_C" >&6
15924else
15925
15926 ac_ext=cpp
15927ac_cpp='$CXXCPP $CPPFLAGS'
15928ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15929ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15930ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15931
15932 ac_save_CXXFLAGS=$CXXFLAGS
15933 CXXFLAGS=-pedantic
15934 if test "$cross_compiling" = yes; then
15935 ac_cv_huge_val_sanity=yes
15936else
15937 cat >conftest.$ac_ext <<_ACEOF
15938/* confdefs.h. */
15939_ACEOF
15940cat confdefs.h >>conftest.$ac_ext
15941cat >>conftest.$ac_ext <<_ACEOF
15942/* end confdefs.h. */
15943#include <math.h>
15944int
15945main ()
15946{
15947double x = HUGE_VAL; return x != x;
15948 ;
15949 return 0;
15950}
15951_ACEOF
15952rm -f conftest$ac_exeext
15953if { (ac_try="$ac_link"
15954case "(($ac_try" in
15955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956 *) ac_try_echo=$ac_try;;
15957esac
15958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15959 (eval "$ac_link") 2>&5
15960 ac_status=$?
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15963 { (case "(($ac_try" in
15964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15965 *) ac_try_echo=$ac_try;;
15966esac
15967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15968 (eval "$ac_try") 2>&5
15969 ac_status=$?
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; }; then
15972 ac_cv_huge_val_sanity=yes
15973else
15974 echo "$as_me: program exited with status $ac_status" >&5
15975echo "$as_me: failed program was:" >&5
15976sed 's/^/| /' conftest.$ac_ext >&5
15977
15978( exit $ac_status )
15979ac_cv_huge_val_sanity=no
15980fi
15981rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15982fi
15983
15984
15985 CXXFLAGS=$ac_save_CXXFLAGS
15986 ac_ext=c
15987ac_cpp='$CPP $CPPFLAGS'
15988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15990ac_compiler_gnu=$ac_cv_c_compiler_gnu
15991
15992
15993fi
15994{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
15995echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
15996 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
15997
15998
15999{ echo "$as_me:$LINENO: checking for pid_t" >&5
16000echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16001if test "${ac_cv_type_pid_t+set}" = set; then
16002 echo $ECHO_N "(cached) $ECHO_C" >&6
16003else
16004 cat >conftest.$ac_ext <<_ACEOF
16005/* confdefs.h. */
16006_ACEOF
16007cat confdefs.h >>conftest.$ac_ext
16008cat >>conftest.$ac_ext <<_ACEOF
16009/* end confdefs.h. */
16010$ac_includes_default
16011typedef pid_t ac__type_new_;
16012int
16013main ()
16014{
16015if ((ac__type_new_ *) 0)
16016 return 0;
16017if (sizeof (ac__type_new_))
16018 return 0;
16019 ;
16020 return 0;
16021}
16022_ACEOF
16023rm -f conftest.$ac_objext
16024if { (ac_try="$ac_compile"
16025case "(($ac_try" in
16026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16027 *) ac_try_echo=$ac_try;;
16028esac
16029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16030 (eval "$ac_compile") 2>conftest.er1
16031 ac_status=$?
16032 grep -v '^ *+' conftest.er1 >conftest.err
16033 rm -f conftest.er1
16034 cat conftest.err >&5
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); } &&
16037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16038 { (case "(($ac_try" in
16039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16040 *) ac_try_echo=$ac_try;;
16041esac
16042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16043 (eval "$ac_try") 2>&5
16044 ac_status=$?
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; } &&
16047 { ac_try='test -s conftest.$ac_objext'
16048 { (case "(($ac_try" in
16049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050 *) ac_try_echo=$ac_try;;
16051esac
16052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053 (eval "$ac_try") 2>&5
16054 ac_status=$?
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; }; then
16057 ac_cv_type_pid_t=yes
16058else
16059 echo "$as_me: failed program was:" >&5
16060sed 's/^/| /' conftest.$ac_ext >&5
16061
16062 ac_cv_type_pid_t=no
16063fi
16064
16065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16066fi
16067{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16068echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16069if test $ac_cv_type_pid_t = yes; then
16070 :
16071else
16072
16073cat >>confdefs.h <<_ACEOF
16074#define pid_t int
16075_ACEOF
16076
16077fi
16078
16079{ echo "$as_me:$LINENO: checking for size_t" >&5
16080echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16081if test "${ac_cv_type_size_t+set}" = set; then
16082 echo $ECHO_N "(cached) $ECHO_C" >&6
16083else
16084 cat >conftest.$ac_ext <<_ACEOF
16085/* confdefs.h. */
16086_ACEOF
16087cat confdefs.h >>conftest.$ac_ext
16088cat >>conftest.$ac_ext <<_ACEOF
16089/* end confdefs.h. */
16090$ac_includes_default
16091typedef size_t ac__type_new_;
16092int
16093main ()
16094{
16095if ((ac__type_new_ *) 0)
16096 return 0;
16097if (sizeof (ac__type_new_))
16098 return 0;
16099 ;
16100 return 0;
16101}
16102_ACEOF
16103rm -f conftest.$ac_objext
16104if { (ac_try="$ac_compile"
16105case "(($ac_try" in
16106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16107 *) ac_try_echo=$ac_try;;
16108esac
16109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16110 (eval "$ac_compile") 2>conftest.er1
16111 ac_status=$?
16112 grep -v '^ *+' conftest.er1 >conftest.err
16113 rm -f conftest.er1
16114 cat conftest.err >&5
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); } &&
16117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16118 { (case "(($ac_try" in
16119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16120 *) ac_try_echo=$ac_try;;
16121esac
16122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16123 (eval "$ac_try") 2>&5
16124 ac_status=$?
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); }; } &&
16127 { ac_try='test -s conftest.$ac_objext'
16128 { (case "(($ac_try" in
16129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16130 *) ac_try_echo=$ac_try;;
16131esac
16132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16133 (eval "$ac_try") 2>&5
16134 ac_status=$?
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); }; }; then
16137 ac_cv_type_size_t=yes
16138else
16139 echo "$as_me: failed program was:" >&5
16140sed 's/^/| /' conftest.$ac_ext >&5
16141
16142 ac_cv_type_size_t=no
16143fi
16144
16145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16146fi
16147{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16148echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16149if test $ac_cv_type_size_t = yes; then
16150 :
16151else
16152
16153cat >>confdefs.h <<_ACEOF
16154#define size_t unsigned int
16155_ACEOF
16156
16157fi
16158
16159
16160cat >>confdefs.h <<_ACEOF
16161#define RETSIGTYPE void
16162_ACEOF
16163
16164{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16165echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16166if test "${ac_cv_struct_tm+set}" = set; then
16167 echo $ECHO_N "(cached) $ECHO_C" >&6
16168else
16169 cat >conftest.$ac_ext <<_ACEOF
16170/* confdefs.h. */
16171_ACEOF
16172cat confdefs.h >>conftest.$ac_ext
16173cat >>conftest.$ac_ext <<_ACEOF
16174/* end confdefs.h. */
16175#include <sys/types.h>
16176#include <time.h>
16177
16178int
16179main ()
16180{
16181struct tm *tp; tp->tm_sec;
16182 ;
16183 return 0;
16184}
16185_ACEOF
16186rm -f conftest.$ac_objext
16187if { (ac_try="$ac_compile"
16188case "(($ac_try" in
16189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16190 *) ac_try_echo=$ac_try;;
16191esac
16192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16193 (eval "$ac_compile") 2>conftest.er1
16194 ac_status=$?
16195 grep -v '^ *+' conftest.er1 >conftest.err
16196 rm -f conftest.er1
16197 cat conftest.err >&5
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); } &&
16200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16201 { (case "(($ac_try" in
16202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203 *) ac_try_echo=$ac_try;;
16204esac
16205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206 (eval "$ac_try") 2>&5
16207 ac_status=$?
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; } &&
16210 { ac_try='test -s conftest.$ac_objext'
16211 { (case "(($ac_try" in
16212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213 *) ac_try_echo=$ac_try;;
16214esac
16215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16216 (eval "$ac_try") 2>&5
16217 ac_status=$?
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; }; then
16220 ac_cv_struct_tm=time.h
16221else
16222 echo "$as_me: failed program was:" >&5
16223sed 's/^/| /' conftest.$ac_ext >&5
16224
16225 ac_cv_struct_tm=sys/time.h
16226fi
16227
16228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16229fi
16230{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16231echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16232if test $ac_cv_struct_tm = sys/time.h; then
16233
16234cat >>confdefs.h <<\_ACEOF
16235#define TM_IN_SYS_TIME 1
16236_ACEOF
16237
16238fi
16239
16240{ echo "$as_me:$LINENO: checking for int64_t" >&5
16241echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16242if test "${ac_cv_type_int64_t+set}" = set; then
16243 echo $ECHO_N "(cached) $ECHO_C" >&6
16244else
16245 cat >conftest.$ac_ext <<_ACEOF
16246/* confdefs.h. */
16247_ACEOF
16248cat confdefs.h >>conftest.$ac_ext
16249cat >>conftest.$ac_ext <<_ACEOF
16250/* end confdefs.h. */
16251$ac_includes_default
16252typedef int64_t ac__type_new_;
16253int
16254main ()
16255{
16256if ((ac__type_new_ *) 0)
16257 return 0;
16258if (sizeof (ac__type_new_))
16259 return 0;
16260 ;
16261 return 0;
16262}
16263_ACEOF
16264rm -f conftest.$ac_objext
16265if { (ac_try="$ac_compile"
16266case "(($ac_try" in
16267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268 *) ac_try_echo=$ac_try;;
16269esac
16270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271 (eval "$ac_compile") 2>conftest.er1
16272 ac_status=$?
16273 grep -v '^ *+' conftest.er1 >conftest.err
16274 rm -f conftest.er1
16275 cat conftest.err >&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } &&
16278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16279 { (case "(($ac_try" in
16280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281 *) ac_try_echo=$ac_try;;
16282esac
16283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16284 (eval "$ac_try") 2>&5
16285 ac_status=$?
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; } &&
16288 { ac_try='test -s conftest.$ac_objext'
16289 { (case "(($ac_try" in
16290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16291 *) ac_try_echo=$ac_try;;
16292esac
16293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16294 (eval "$ac_try") 2>&5
16295 ac_status=$?
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); }; }; then
16298 ac_cv_type_int64_t=yes
16299else
16300 echo "$as_me: failed program was:" >&5
16301sed 's/^/| /' conftest.$ac_ext >&5
16302
16303 ac_cv_type_int64_t=no
16304fi
16305
16306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16307fi
16308{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16309echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16310if test $ac_cv_type_int64_t = yes; then
16311
16312cat >>confdefs.h <<_ACEOF
16313#define HAVE_INT64_T 1
16314_ACEOF
16315
16316
16317else
16318 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16319echo "$as_me: error: Type int64_t required but not found" >&2;}
16320 { (exit 1); exit 1; }; }
16321fi
16322
16323{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16324echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16325if test "${ac_cv_type_uint64_t+set}" = set; then
16326 echo $ECHO_N "(cached) $ECHO_C" >&6
16327else
16328 cat >conftest.$ac_ext <<_ACEOF
16329/* confdefs.h. */
16330_ACEOF
16331cat confdefs.h >>conftest.$ac_ext
16332cat >>conftest.$ac_ext <<_ACEOF
16333/* end confdefs.h. */
16334$ac_includes_default
16335typedef uint64_t ac__type_new_;
16336int
16337main ()
16338{
16339if ((ac__type_new_ *) 0)
16340 return 0;
16341if (sizeof (ac__type_new_))
16342 return 0;
16343 ;
16344 return 0;
16345}
16346_ACEOF
16347rm -f conftest.$ac_objext
16348if { (ac_try="$ac_compile"
16349case "(($ac_try" in
16350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16351 *) ac_try_echo=$ac_try;;
16352esac
16353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16354 (eval "$ac_compile") 2>conftest.er1
16355 ac_status=$?
16356 grep -v '^ *+' conftest.er1 >conftest.err
16357 rm -f conftest.er1
16358 cat conftest.err >&5
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); } &&
16361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16362 { (case "(($ac_try" in
16363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16364 *) ac_try_echo=$ac_try;;
16365esac
16366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16367 (eval "$ac_try") 2>&5
16368 ac_status=$?
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); }; } &&
16371 { ac_try='test -s conftest.$ac_objext'
16372 { (case "(($ac_try" in
16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374 *) ac_try_echo=$ac_try;;
16375esac
16376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377 (eval "$ac_try") 2>&5
16378 ac_status=$?
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; }; then
16381 ac_cv_type_uint64_t=yes
16382else
16383 echo "$as_me: failed program was:" >&5
16384sed 's/^/| /' conftest.$ac_ext >&5
16385
16386 ac_cv_type_uint64_t=no
16387fi
16388
16389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16390fi
16391{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16392echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16393if test $ac_cv_type_uint64_t = yes; then
16394
16395cat >>confdefs.h <<_ACEOF
16396#define HAVE_UINT64_T 1
16397_ACEOF
16398
16399
16400else
16401 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16402echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16403if test "${ac_cv_type_u_int64_t+set}" = set; then
16404 echo $ECHO_N "(cached) $ECHO_C" >&6
16405else
16406 cat >conftest.$ac_ext <<_ACEOF
16407/* confdefs.h. */
16408_ACEOF
16409cat confdefs.h >>conftest.$ac_ext
16410cat >>conftest.$ac_ext <<_ACEOF
16411/* end confdefs.h. */
16412$ac_includes_default
16413typedef u_int64_t ac__type_new_;
16414int
16415main ()
16416{
16417if ((ac__type_new_ *) 0)
16418 return 0;
16419if (sizeof (ac__type_new_))
16420 return 0;
16421 ;
16422 return 0;
16423}
16424_ACEOF
16425rm -f conftest.$ac_objext
16426if { (ac_try="$ac_compile"
16427case "(($ac_try" in
16428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429 *) ac_try_echo=$ac_try;;
16430esac
16431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16432 (eval "$ac_compile") 2>conftest.er1
16433 ac_status=$?
16434 grep -v '^ *+' conftest.er1 >conftest.err
16435 rm -f conftest.er1
16436 cat conftest.err >&5
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); } &&
16439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16440 { (case "(($ac_try" in
16441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16442 *) ac_try_echo=$ac_try;;
16443esac
16444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16445 (eval "$ac_try") 2>&5
16446 ac_status=$?
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); }; } &&
16449 { ac_try='test -s conftest.$ac_objext'
16450 { (case "(($ac_try" in
16451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452 *) ac_try_echo=$ac_try;;
16453esac
16454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16455 (eval "$ac_try") 2>&5
16456 ac_status=$?
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; }; then
16459 ac_cv_type_u_int64_t=yes
16460else
16461 echo "$as_me: failed program was:" >&5
16462sed 's/^/| /' conftest.$ac_ext >&5
16463
16464 ac_cv_type_u_int64_t=no
16465fi
16466
16467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16468fi
16469{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16470echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16471if test $ac_cv_type_u_int64_t = yes; then
16472
16473cat >>confdefs.h <<_ACEOF
16474#define HAVE_U_INT64_T 1
16475_ACEOF
16476
16477
16478else
16479 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16480echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16481 { (exit 1); exit 1; }; }
16482fi
16483
16484fi
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16496do
16497as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16498{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16499echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16500if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16501 echo $ECHO_N "(cached) $ECHO_C" >&6
16502else
16503 cat >conftest.$ac_ext <<_ACEOF
16504/* confdefs.h. */
16505_ACEOF
16506cat confdefs.h >>conftest.$ac_ext
16507cat >>conftest.$ac_ext <<_ACEOF
16508/* end confdefs.h. */
16509/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16511#define $ac_func innocuous_$ac_func
16512
16513/* System header to define __stub macros and hopefully few prototypes,
16514 which can conflict with char $ac_func (); below.
16515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16516 <limits.h> exists even on freestanding compilers. */
16517
16518#ifdef __STDC__
16519# include <limits.h>
16520#else
16521# include <assert.h>
16522#endif
16523
16524#undef $ac_func
16525
16526/* Override any GCC internal prototype to avoid an error.
16527 Use char because int might match the return type of a GCC
16528 builtin and then its argument prototype would still apply. */
16529#ifdef __cplusplus
16530extern "C"
16531#endif
16532char $ac_func ();
16533/* The GNU C library defines this for functions which it implements
16534 to always fail with ENOSYS. Some functions are actually named
16535 something starting with __ and the normal name is an alias. */
16536#if defined __stub_$ac_func || defined __stub___$ac_func
16537choke me
16538#endif
16539
16540int
16541main ()
16542{
16543return $ac_func ();
16544 ;
16545 return 0;
16546}
16547_ACEOF
16548rm -f conftest.$ac_objext conftest$ac_exeext
16549if { (ac_try="$ac_link"
16550case "(($ac_try" in
16551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16552 *) ac_try_echo=$ac_try;;
16553esac
16554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16555 (eval "$ac_link") 2>conftest.er1
16556 ac_status=$?
16557 grep -v '^ *+' conftest.er1 >conftest.err
16558 rm -f conftest.er1
16559 cat conftest.err >&5
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); } &&
16562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16563 { (case "(($ac_try" in
16564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565 *) ac_try_echo=$ac_try;;
16566esac
16567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16568 (eval "$ac_try") 2>&5
16569 ac_status=$?
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; } &&
16572 { ac_try='test -s conftest$ac_exeext'
16573 { (case "(($ac_try" in
16574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16576esac
16577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578 (eval "$ac_try") 2>&5
16579 ac_status=$?
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); }; }; then
16582 eval "$as_ac_var=yes"
16583else
16584 echo "$as_me: failed program was:" >&5
16585sed 's/^/| /' conftest.$ac_ext >&5
16586
16587 eval "$as_ac_var=no"
16588fi
16589
16590rm -f core conftest.err conftest.$ac_objext \
16591 conftest$ac_exeext conftest.$ac_ext
16592fi
16593ac_res=`eval echo '${'$as_ac_var'}'`
16594 { echo "$as_me:$LINENO: result: $ac_res" >&5
16595echo "${ECHO_T}$ac_res" >&6; }
16596if test `eval echo '${'$as_ac_var'}'` = yes; then
16597 cat >>confdefs.h <<_ACEOF
16598#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16599_ACEOF
16600
16601fi
16602done
16603
16604
16605
16606
16607
16608for ac_func in powf fmodf strtof round
16609do
16610as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16611{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16612echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16613if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16614 echo $ECHO_N "(cached) $ECHO_C" >&6
16615else
16616 cat >conftest.$ac_ext <<_ACEOF
16617/* confdefs.h. */
16618_ACEOF
16619cat confdefs.h >>conftest.$ac_ext
16620cat >>conftest.$ac_ext <<_ACEOF
16621/* end confdefs.h. */
16622/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16624#define $ac_func innocuous_$ac_func
16625
16626/* System header to define __stub macros and hopefully few prototypes,
16627 which can conflict with char $ac_func (); below.
16628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16629 <limits.h> exists even on freestanding compilers. */
16630
16631#ifdef __STDC__
16632# include <limits.h>
16633#else
16634# include <assert.h>
16635#endif
16636
16637#undef $ac_func
16638
16639/* Override any GCC internal prototype to avoid an error.
16640 Use char because int might match the return type of a GCC
16641 builtin and then its argument prototype would still apply. */
16642#ifdef __cplusplus
16643extern "C"
16644#endif
16645char $ac_func ();
16646/* The GNU C library defines this for functions which it implements
16647 to always fail with ENOSYS. Some functions are actually named
16648 something starting with __ and the normal name is an alias. */
16649#if defined __stub_$ac_func || defined __stub___$ac_func
16650choke me
16651#endif
16652
16653int
16654main ()
16655{
16656return $ac_func ();
16657 ;
16658 return 0;
16659}
16660_ACEOF
16661rm -f conftest.$ac_objext conftest$ac_exeext
16662if { (ac_try="$ac_link"
16663case "(($ac_try" in
16664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665 *) ac_try_echo=$ac_try;;
16666esac
16667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668 (eval "$ac_link") 2>conftest.er1
16669 ac_status=$?
16670 grep -v '^ *+' conftest.er1 >conftest.err
16671 rm -f conftest.er1
16672 cat conftest.err >&5
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); } &&
16675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16676 { (case "(($ac_try" in
16677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678 *) ac_try_echo=$ac_try;;
16679esac
16680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681 (eval "$ac_try") 2>&5
16682 ac_status=$?
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; } &&
16685 { ac_try='test -s conftest$ac_exeext'
16686 { (case "(($ac_try" in
16687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16688 *) ac_try_echo=$ac_try;;
16689esac
16690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16691 (eval "$ac_try") 2>&5
16692 ac_status=$?
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; }; then
16695 eval "$as_ac_var=yes"
16696else
16697 echo "$as_me: failed program was:" >&5
16698sed 's/^/| /' conftest.$ac_ext >&5
16699
16700 eval "$as_ac_var=no"
16701fi
16702
16703rm -f core conftest.err conftest.$ac_objext \
16704 conftest$ac_exeext conftest.$ac_ext
16705fi
16706ac_res=`eval echo '${'$as_ac_var'}'`
16707 { echo "$as_me:$LINENO: result: $ac_res" >&5
16708echo "${ECHO_T}$ac_res" >&6; }
16709if test `eval echo '${'$as_ac_var'}'` = yes; then
16710 cat >>confdefs.h <<_ACEOF
16711#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16712_ACEOF
16713
16714fi
16715done
16716
16717
16718
16719
16720
16721
16722for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16723do
16724as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16725{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16726echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16727if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16728 echo $ECHO_N "(cached) $ECHO_C" >&6
16729else
16730 cat >conftest.$ac_ext <<_ACEOF
16731/* confdefs.h. */
16732_ACEOF
16733cat confdefs.h >>conftest.$ac_ext
16734cat >>conftest.$ac_ext <<_ACEOF
16735/* end confdefs.h. */
16736/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16738#define $ac_func innocuous_$ac_func
16739
16740/* System header to define __stub macros and hopefully few prototypes,
16741 which can conflict with char $ac_func (); below.
16742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16743 <limits.h> exists even on freestanding compilers. */
16744
16745#ifdef __STDC__
16746# include <limits.h>
16747#else
16748# include <assert.h>
16749#endif
16750
16751#undef $ac_func
16752
16753/* Override any GCC internal prototype to avoid an error.
16754 Use char because int might match the return type of a GCC
16755 builtin and then its argument prototype would still apply. */
16756#ifdef __cplusplus
16757extern "C"
16758#endif
16759char $ac_func ();
16760/* The GNU C library defines this for functions which it implements
16761 to always fail with ENOSYS. Some functions are actually named
16762 something starting with __ and the normal name is an alias. */
16763#if defined __stub_$ac_func || defined __stub___$ac_func
16764choke me
16765#endif
16766
16767int
16768main ()
16769{
16770return $ac_func ();
16771 ;
16772 return 0;
16773}
16774_ACEOF
16775rm -f conftest.$ac_objext conftest$ac_exeext
16776if { (ac_try="$ac_link"
16777case "(($ac_try" in
16778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16779 *) ac_try_echo=$ac_try;;
16780esac
16781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16782 (eval "$ac_link") 2>conftest.er1
16783 ac_status=$?
16784 grep -v '^ *+' conftest.er1 >conftest.err
16785 rm -f conftest.er1
16786 cat conftest.err >&5
16787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788 (exit $ac_status); } &&
16789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16790 { (case "(($ac_try" in
16791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16792 *) ac_try_echo=$ac_try;;
16793esac
16794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16795 (eval "$ac_try") 2>&5
16796 ac_status=$?
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); }; } &&
16799 { ac_try='test -s conftest$ac_exeext'
16800 { (case "(($ac_try" in
16801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802 *) ac_try_echo=$ac_try;;
16803esac
16804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805 (eval "$ac_try") 2>&5
16806 ac_status=$?
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; }; then
16809 eval "$as_ac_var=yes"
16810else
16811 echo "$as_me: failed program was:" >&5
16812sed 's/^/| /' conftest.$ac_ext >&5
16813
16814 eval "$as_ac_var=no"
16815fi
16816
16817rm -f core conftest.err conftest.$ac_objext \
16818 conftest$ac_exeext conftest.$ac_ext
16819fi
16820ac_res=`eval echo '${'$as_ac_var'}'`
16821 { echo "$as_me:$LINENO: result: $ac_res" >&5
16822echo "${ECHO_T}$ac_res" >&6; }
16823if test `eval echo '${'$as_ac_var'}'` = yes; then
16824 cat >>confdefs.h <<_ACEOF
16825#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16826_ACEOF
16827
16828fi
16829done
16830
16831
16832
16833
16834for ac_func in isatty mkdtemp mkstemp
16835do
16836as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16837{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16838echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16839if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16840 echo $ECHO_N "(cached) $ECHO_C" >&6
16841else
16842 cat >conftest.$ac_ext <<_ACEOF
16843/* confdefs.h. */
16844_ACEOF
16845cat confdefs.h >>conftest.$ac_ext
16846cat >>conftest.$ac_ext <<_ACEOF
16847/* end confdefs.h. */
16848/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16850#define $ac_func innocuous_$ac_func
16851
16852/* System header to define __stub macros and hopefully few prototypes,
16853 which can conflict with char $ac_func (); below.
16854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16855 <limits.h> exists even on freestanding compilers. */
16856
16857#ifdef __STDC__
16858# include <limits.h>
16859#else
16860# include <assert.h>
16861#endif
16862
16863#undef $ac_func
16864
16865/* Override any GCC internal prototype to avoid an error.
16866 Use char because int might match the return type of a GCC
16867 builtin and then its argument prototype would still apply. */
16868#ifdef __cplusplus
16869extern "C"
16870#endif
16871char $ac_func ();
16872/* The GNU C library defines this for functions which it implements
16873 to always fail with ENOSYS. Some functions are actually named
16874 something starting with __ and the normal name is an alias. */
16875#if defined __stub_$ac_func || defined __stub___$ac_func
16876choke me
16877#endif
16878
16879int
16880main ()
16881{
16882return $ac_func ();
16883 ;
16884 return 0;
16885}
16886_ACEOF
16887rm -f conftest.$ac_objext conftest$ac_exeext
16888if { (ac_try="$ac_link"
16889case "(($ac_try" in
16890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891 *) ac_try_echo=$ac_try;;
16892esac
16893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16894 (eval "$ac_link") 2>conftest.er1
16895 ac_status=$?
16896 grep -v '^ *+' conftest.er1 >conftest.err
16897 rm -f conftest.er1
16898 cat conftest.err >&5
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); } &&
16901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16902 { (case "(($ac_try" in
16903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904 *) ac_try_echo=$ac_try;;
16905esac
16906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907 (eval "$ac_try") 2>&5
16908 ac_status=$?
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); }; } &&
16911 { ac_try='test -s conftest$ac_exeext'
16912 { (case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16915esac
16916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_try") 2>&5
16918 ac_status=$?
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; }; then
16921 eval "$as_ac_var=yes"
16922else
16923 echo "$as_me: failed program was:" >&5
16924sed 's/^/| /' conftest.$ac_ext >&5
16925
16926 eval "$as_ac_var=no"
16927fi
16928
16929rm -f core conftest.err conftest.$ac_objext \
16930 conftest$ac_exeext conftest.$ac_ext
16931fi
16932ac_res=`eval echo '${'$as_ac_var'}'`
16933 { echo "$as_me:$LINENO: result: $ac_res" >&5
16934echo "${ECHO_T}$ac_res" >&6; }
16935if test `eval echo '${'$as_ac_var'}'` = yes; then
16936 cat >>confdefs.h <<_ACEOF
16937#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16938_ACEOF
16939
16940fi
16941done
16942
16943
16944
16945
16946
16947
16948
16949for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
16950do
16951as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16952{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16953echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16954if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16955 echo $ECHO_N "(cached) $ECHO_C" >&6
16956else
16957 cat >conftest.$ac_ext <<_ACEOF
16958/* confdefs.h. */
16959_ACEOF
16960cat confdefs.h >>conftest.$ac_ext
16961cat >>conftest.$ac_ext <<_ACEOF
16962/* end confdefs.h. */
16963/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16965#define $ac_func innocuous_$ac_func
16966
16967/* System header to define __stub macros and hopefully few prototypes,
16968 which can conflict with char $ac_func (); below.
16969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16970 <limits.h> exists even on freestanding compilers. */
16971
16972#ifdef __STDC__
16973# include <limits.h>
16974#else
16975# include <assert.h>
16976#endif
16977
16978#undef $ac_func
16979
16980/* Override any GCC internal prototype to avoid an error.
16981 Use char because int might match the return type of a GCC
16982 builtin and then its argument prototype would still apply. */
16983#ifdef __cplusplus
16984extern "C"
16985#endif
16986char $ac_func ();
16987/* The GNU C library defines this for functions which it implements
16988 to always fail with ENOSYS. Some functions are actually named
16989 something starting with __ and the normal name is an alias. */
16990#if defined __stub_$ac_func || defined __stub___$ac_func
16991choke me
16992#endif
16993
16994int
16995main ()
16996{
16997return $ac_func ();
16998 ;
16999 return 0;
17000}
17001_ACEOF
17002rm -f conftest.$ac_objext conftest$ac_exeext
17003if { (ac_try="$ac_link"
17004case "(($ac_try" in
17005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006 *) ac_try_echo=$ac_try;;
17007esac
17008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17009 (eval "$ac_link") 2>conftest.er1
17010 ac_status=$?
17011 grep -v '^ *+' conftest.er1 >conftest.err
17012 rm -f conftest.er1
17013 cat conftest.err >&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); } &&
17016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17017 { (case "(($ac_try" in
17018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019 *) ac_try_echo=$ac_try;;
17020esac
17021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17022 (eval "$ac_try") 2>&5
17023 ac_status=$?
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; } &&
17026 { ac_try='test -s conftest$ac_exeext'
17027 { (case "(($ac_try" in
17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029 *) ac_try_echo=$ac_try;;
17030esac
17031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032 (eval "$ac_try") 2>&5
17033 ac_status=$?
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; }; then
17036 eval "$as_ac_var=yes"
17037else
17038 echo "$as_me: failed program was:" >&5
17039sed 's/^/| /' conftest.$ac_ext >&5
17040
17041 eval "$as_ac_var=no"
17042fi
17043
17044rm -f core conftest.err conftest.$ac_objext \
17045 conftest$ac_exeext conftest.$ac_ext
17046fi
17047ac_res=`eval echo '${'$as_ac_var'}'`
17048 { echo "$as_me:$LINENO: result: $ac_res" >&5
17049echo "${ECHO_T}$ac_res" >&6; }
17050if test `eval echo '${'$as_ac_var'}'` = yes; then
17051 cat >>confdefs.h <<_ACEOF
17052#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17053_ACEOF
17054
17055fi
17056done
17057
17058
17059
17060
17061for ac_func in strerror strerror_r setenv
17062do
17063as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17064{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17065echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17066if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17067 echo $ECHO_N "(cached) $ECHO_C" >&6
17068else
17069 cat >conftest.$ac_ext <<_ACEOF
17070/* confdefs.h. */
17071_ACEOF
17072cat confdefs.h >>conftest.$ac_ext
17073cat >>conftest.$ac_ext <<_ACEOF
17074/* end confdefs.h. */
17075/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17077#define $ac_func innocuous_$ac_func
17078
17079/* System header to define __stub macros and hopefully few prototypes,
17080 which can conflict with char $ac_func (); below.
17081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17082 <limits.h> exists even on freestanding compilers. */
17083
17084#ifdef __STDC__
17085# include <limits.h>
17086#else
17087# include <assert.h>
17088#endif
17089
17090#undef $ac_func
17091
17092/* Override any GCC internal prototype to avoid an error.
17093 Use char because int might match the return type of a GCC
17094 builtin and then its argument prototype would still apply. */
17095#ifdef __cplusplus
17096extern "C"
17097#endif
17098char $ac_func ();
17099/* The GNU C library defines this for functions which it implements
17100 to always fail with ENOSYS. Some functions are actually named
17101 something starting with __ and the normal name is an alias. */
17102#if defined __stub_$ac_func || defined __stub___$ac_func
17103choke me
17104#endif
17105
17106int
17107main ()
17108{
17109return $ac_func ();
17110 ;
17111 return 0;
17112}
17113_ACEOF
17114rm -f conftest.$ac_objext conftest$ac_exeext
17115if { (ac_try="$ac_link"
17116case "(($ac_try" in
17117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17118 *) ac_try_echo=$ac_try;;
17119esac
17120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17121 (eval "$ac_link") 2>conftest.er1
17122 ac_status=$?
17123 grep -v '^ *+' conftest.er1 >conftest.err
17124 rm -f conftest.er1
17125 cat conftest.err >&5
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); } &&
17128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17129 { (case "(($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_try") 2>&5
17135 ac_status=$?
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); }; } &&
17138 { ac_try='test -s conftest$ac_exeext'
17139 { (case "(($ac_try" in
17140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17141 *) ac_try_echo=$ac_try;;
17142esac
17143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17144 (eval "$ac_try") 2>&5
17145 ac_status=$?
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); }; }; then
17148 eval "$as_ac_var=yes"
17149else
17150 echo "$as_me: failed program was:" >&5
17151sed 's/^/| /' conftest.$ac_ext >&5
17152
17153 eval "$as_ac_var=no"
17154fi
17155
17156rm -f core conftest.err conftest.$ac_objext \
17157 conftest$ac_exeext conftest.$ac_ext
17158fi
17159ac_res=`eval echo '${'$as_ac_var'}'`
17160 { echo "$as_me:$LINENO: result: $ac_res" >&5
17161echo "${ECHO_T}$ac_res" >&6; }
17162if test `eval echo '${'$as_ac_var'}'` = yes; then
17163 cat >>confdefs.h <<_ACEOF
17164#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17165_ACEOF
17166
17167fi
17168done
17169
17170
17171
17172
17173
17174for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17175do
17176as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17177{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17178echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17179if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17180 echo $ECHO_N "(cached) $ECHO_C" >&6
17181else
17182 cat >conftest.$ac_ext <<_ACEOF
17183/* confdefs.h. */
17184_ACEOF
17185cat confdefs.h >>conftest.$ac_ext
17186cat >>conftest.$ac_ext <<_ACEOF
17187/* end confdefs.h. */
17188/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17190#define $ac_func innocuous_$ac_func
17191
17192/* System header to define __stub macros and hopefully few prototypes,
17193 which can conflict with char $ac_func (); below.
17194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17195 <limits.h> exists even on freestanding compilers. */
17196
17197#ifdef __STDC__
17198# include <limits.h>
17199#else
17200# include <assert.h>
17201#endif
17202
17203#undef $ac_func
17204
17205/* Override any GCC internal prototype to avoid an error.
17206 Use char because int might match the return type of a GCC
17207 builtin and then its argument prototype would still apply. */
17208#ifdef __cplusplus
17209extern "C"
17210#endif
17211char $ac_func ();
17212/* The GNU C library defines this for functions which it implements
17213 to always fail with ENOSYS. Some functions are actually named
17214 something starting with __ and the normal name is an alias. */
17215#if defined __stub_$ac_func || defined __stub___$ac_func
17216choke me
17217#endif
17218
17219int
17220main ()
17221{
17222return $ac_func ();
17223 ;
17224 return 0;
17225}
17226_ACEOF
17227rm -f conftest.$ac_objext conftest$ac_exeext
17228if { (ac_try="$ac_link"
17229case "(($ac_try" in
17230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231 *) ac_try_echo=$ac_try;;
17232esac
17233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234 (eval "$ac_link") 2>conftest.er1
17235 ac_status=$?
17236 grep -v '^ *+' conftest.er1 >conftest.err
17237 rm -f conftest.er1
17238 cat conftest.err >&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); } &&
17241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17242 { (case "(($ac_try" in
17243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244 *) ac_try_echo=$ac_try;;
17245esac
17246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247 (eval "$ac_try") 2>&5
17248 ac_status=$?
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; } &&
17251 { ac_try='test -s conftest$ac_exeext'
17252 { (case "(($ac_try" in
17253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254 *) ac_try_echo=$ac_try;;
17255esac
17256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257 (eval "$ac_try") 2>&5
17258 ac_status=$?
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; }; then
17261 eval "$as_ac_var=yes"
17262else
17263 echo "$as_me: failed program was:" >&5
17264sed 's/^/| /' conftest.$ac_ext >&5
17265
17266 eval "$as_ac_var=no"
17267fi
17268
17269rm -f core conftest.err conftest.$ac_objext \
17270 conftest$ac_exeext conftest.$ac_ext
17271fi
17272ac_res=`eval echo '${'$as_ac_var'}'`
17273 { echo "$as_me:$LINENO: result: $ac_res" >&5
17274echo "${ECHO_T}$ac_res" >&6; }
17275if test `eval echo '${'$as_ac_var'}'` = yes; then
17276 cat >>confdefs.h <<_ACEOF
17277#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17278_ACEOF
17279
17280fi
17281done
17282
17283
17284
17285
17286
17287
17288for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17289do
17290as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17291{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17292echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17293if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17294 echo $ECHO_N "(cached) $ECHO_C" >&6
17295else
17296 cat >conftest.$ac_ext <<_ACEOF
17297/* confdefs.h. */
17298_ACEOF
17299cat confdefs.h >>conftest.$ac_ext
17300cat >>conftest.$ac_ext <<_ACEOF
17301/* end confdefs.h. */
17302/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17304#define $ac_func innocuous_$ac_func
17305
17306/* System header to define __stub macros and hopefully few prototypes,
17307 which can conflict with char $ac_func (); below.
17308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17309 <limits.h> exists even on freestanding compilers. */
17310
17311#ifdef __STDC__
17312# include <limits.h>
17313#else
17314# include <assert.h>
17315#endif
17316
17317#undef $ac_func
17318
17319/* Override any GCC internal prototype to avoid an error.
17320 Use char because int might match the return type of a GCC
17321 builtin and then its argument prototype would still apply. */
17322#ifdef __cplusplus
17323extern "C"
17324#endif
17325char $ac_func ();
17326/* The GNU C library defines this for functions which it implements
17327 to always fail with ENOSYS. Some functions are actually named
17328 something starting with __ and the normal name is an alias. */
17329#if defined __stub_$ac_func || defined __stub___$ac_func
17330choke me
17331#endif
17332
17333int
17334main ()
17335{
17336return $ac_func ();
17337 ;
17338 return 0;
17339}
17340_ACEOF
17341rm -f conftest.$ac_objext conftest$ac_exeext
17342if { (ac_try="$ac_link"
17343case "(($ac_try" in
17344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345 *) ac_try_echo=$ac_try;;
17346esac
17347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17348 (eval "$ac_link") 2>conftest.er1
17349 ac_status=$?
17350 grep -v '^ *+' conftest.er1 >conftest.err
17351 rm -f conftest.er1
17352 cat conftest.err >&5
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); } &&
17355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17356 { (case "(($ac_try" in
17357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17358 *) ac_try_echo=$ac_try;;
17359esac
17360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17361 (eval "$ac_try") 2>&5
17362 ac_status=$?
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); }; } &&
17365 { ac_try='test -s conftest$ac_exeext'
17366 { (case "(($ac_try" in
17367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368 *) ac_try_echo=$ac_try;;
17369esac
17370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371 (eval "$ac_try") 2>&5
17372 ac_status=$?
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; }; then
17375 eval "$as_ac_var=yes"
17376else
17377 echo "$as_me: failed program was:" >&5
17378sed 's/^/| /' conftest.$ac_ext >&5
17379
17380 eval "$as_ac_var=no"
17381fi
17382
17383rm -f core conftest.err conftest.$ac_objext \
17384 conftest$ac_exeext conftest.$ac_ext
17385fi
17386ac_res=`eval echo '${'$as_ac_var'}'`
17387 { echo "$as_me:$LINENO: result: $ac_res" >&5
17388echo "${ECHO_T}$ac_res" >&6; }
17389if test `eval echo '${'$as_ac_var'}'` = yes; then
17390 cat >>confdefs.h <<_ACEOF
17391#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17392_ACEOF
17393
17394fi
17395done
17396
17397{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17398echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17399if test "${llvm_cv_c_printf_a+set}" = set; then
17400 echo $ECHO_N "(cached) $ECHO_C" >&6
17401else
17402 ac_ext=c
17403ac_cpp='$CPP $CPPFLAGS'
17404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17406ac_compiler_gnu=$ac_cv_c_compiler_gnu
17407
17408 if test "$cross_compiling" = yes; then
17409 llvmac_cv_c_printf_a=no
17410else
17411 cat >conftest.$ac_ext <<_ACEOF
17412
17413 /* confdefs.h. */
17414_ACEOF
17415cat confdefs.h >>conftest.$ac_ext
17416cat >>conftest.$ac_ext <<_ACEOF
17417/* end confdefs.h. */
17418
17419#include <stdio.h>
17420#include <stdlib.h>
17421
17422int
17423main ()
17424{
17425
17426volatile double A, B;
17427char Buffer[100];
17428A = 1;
17429A /= 10.0;
17430sprintf(Buffer, "%a", A);
17431B = atof(Buffer);
17432if (A != B)
17433 return (1);
17434if (A != 0x1.999999999999ap-4)
17435 return (1);
17436return (0);
17437 ;
17438 return 0;
17439}
17440_ACEOF
17441rm -f conftest$ac_exeext
17442if { (ac_try="$ac_link"
17443case "(($ac_try" in
17444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445 *) ac_try_echo=$ac_try;;
17446esac
17447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448 (eval "$ac_link") 2>&5
17449 ac_status=$?
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17452 { (case "(($ac_try" in
17453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17454 *) ac_try_echo=$ac_try;;
17455esac
17456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17457 (eval "$ac_try") 2>&5
17458 ac_status=$?
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); }; }; then
17461 llvm_cv_c_printf_a=yes
17462else
17463 echo "$as_me: program exited with status $ac_status" >&5
17464echo "$as_me: failed program was:" >&5
17465sed 's/^/| /' conftest.$ac_ext >&5
17466
17467( exit $ac_status )
17468llvmac_cv_c_printf_a=no
17469fi
17470rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17471fi
17472
17473
17474 ac_ext=c
17475ac_cpp='$CPP $CPPFLAGS'
17476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17478ac_compiler_gnu=$ac_cv_c_compiler_gnu
17479
17480fi
17481{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17482echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17483 if test "$llvm_cv_c_printf_a" = "yes"; then
17484
17485cat >>confdefs.h <<\_ACEOF
17486#define HAVE_PRINTF_A 1
17487_ACEOF
17488
17489 fi
17490
17491
17492{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17493echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17494if test "${ac_cv_func_rand48+set}" = set; then
17495 echo $ECHO_N "(cached) $ECHO_C" >&6
17496else
17497 ac_ext=cpp
17498ac_cpp='$CXXCPP $CPPFLAGS'
17499ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17500ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17501ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17502
17503 cat >conftest.$ac_ext <<_ACEOF
17504/* confdefs.h. */
17505_ACEOF
17506cat confdefs.h >>conftest.$ac_ext
17507cat >>conftest.$ac_ext <<_ACEOF
17508/* end confdefs.h. */
17509#include <stdlib.h>
17510int
17511main ()
17512{
17513srand48(0);lrand48();drand48();
17514 ;
17515 return 0;
17516}
17517_ACEOF
17518rm -f conftest.$ac_objext
17519if { (ac_try="$ac_compile"
17520case "(($ac_try" in
17521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522 *) ac_try_echo=$ac_try;;
17523esac
17524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525 (eval "$ac_compile") 2>conftest.er1
17526 ac_status=$?
17527 grep -v '^ *+' conftest.er1 >conftest.err
17528 rm -f conftest.er1
17529 cat conftest.err >&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } &&
17532 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17533 { (case "(($ac_try" in
17534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535 *) ac_try_echo=$ac_try;;
17536esac
17537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538 (eval "$ac_try") 2>&5
17539 ac_status=$?
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; } &&
17542 { ac_try='test -s conftest.$ac_objext'
17543 { (case "(($ac_try" in
17544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545 *) ac_try_echo=$ac_try;;
17546esac
17547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17548 (eval "$ac_try") 2>&5
17549 ac_status=$?
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); }; }; then
17552 ac_cv_func_rand48=yes
17553else
17554 echo "$as_me: failed program was:" >&5
17555sed 's/^/| /' conftest.$ac_ext >&5
17556
17557 ac_cv_func_rand48=no
17558fi
17559
17560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17561 ac_ext=c
17562ac_cpp='$CPP $CPPFLAGS'
17563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17565ac_compiler_gnu=$ac_cv_c_compiler_gnu
17566
17567fi
17568{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17569echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17570
17571if test "$ac_cv_func_rand48" = "yes" ; then
17572
17573cat >>confdefs.h <<\_ACEOF
17574#define HAVE_RAND48 1
17575_ACEOF
17576
17577fi
17578
17579
17580{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17581echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17582if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17583 echo $ECHO_N "(cached) $ECHO_C" >&6
17584else
17585 cat >conftest.$ac_ext <<_ACEOF
17586/* confdefs.h. */
17587_ACEOF
17588cat confdefs.h >>conftest.$ac_ext
17589cat >>conftest.$ac_ext <<_ACEOF
17590/* end confdefs.h. */
17591$ac_includes_default
17592int
17593main ()
17594{
17595#ifndef strerror_s
17596 char *p = (char *) strerror_s;
17597 return !p;
17598#endif
17599
17600 ;
17601 return 0;
17602}
17603_ACEOF
17604rm -f conftest.$ac_objext
17605if { (ac_try="$ac_compile"
17606case "(($ac_try" in
17607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608 *) ac_try_echo=$ac_try;;
17609esac
17610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611 (eval "$ac_compile") 2>conftest.er1
17612 ac_status=$?
17613 grep -v '^ *+' conftest.er1 >conftest.err
17614 rm -f conftest.er1
17615 cat conftest.err >&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } &&
17618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17619 { (case "(($ac_try" in
17620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621 *) ac_try_echo=$ac_try;;
17622esac
17623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17624 (eval "$ac_try") 2>&5
17625 ac_status=$?
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; } &&
17628 { ac_try='test -s conftest.$ac_objext'
17629 { (case "(($ac_try" in
17630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17631 *) ac_try_echo=$ac_try;;
17632esac
17633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17634 (eval "$ac_try") 2>&5
17635 ac_status=$?
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; }; then
17638 ac_cv_have_decl_strerror_s=yes
17639else
17640 echo "$as_me: failed program was:" >&5
17641sed 's/^/| /' conftest.$ac_ext >&5
17642
17643 ac_cv_have_decl_strerror_s=no
17644fi
17645
17646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17647fi
17648{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17649echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17650if test $ac_cv_have_decl_strerror_s = yes; then
17651
17652cat >>confdefs.h <<_ACEOF
17653#define HAVE_DECL_STRERROR_S 1
17654_ACEOF
17655
17656
17657else
17658 cat >>confdefs.h <<_ACEOF
17659#define HAVE_DECL_STRERROR_S 0
17660_ACEOF
17661
17662
17663fi
17664
17665
17666
17667if test "$llvm_cv_os_type" = "MingW" ; then
17668 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17669echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17670if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17671 echo $ECHO_N "(cached) $ECHO_C" >&6
17672else
17673 ac_check_lib_save_LIBS=$LIBS
17674LIBS="-lgcc $LIBS"
17675cat >conftest.$ac_ext <<_ACEOF
17676/* confdefs.h. */
17677_ACEOF
17678cat confdefs.h >>conftest.$ac_ext
17679cat >>conftest.$ac_ext <<_ACEOF
17680/* end confdefs.h. */
17681
17682/* Override any GCC internal prototype to avoid an error.
17683 Use char because int might match the return type of a GCC
17684 builtin and then its argument prototype would still apply. */
17685#ifdef __cplusplus
17686extern "C"
17687#endif
17688char _alloca ();
17689int
17690main ()
17691{
17692return _alloca ();
17693 ;
17694 return 0;
17695}
17696_ACEOF
17697rm -f conftest.$ac_objext conftest$ac_exeext
17698if { (ac_try="$ac_link"
17699case "(($ac_try" in
17700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17701 *) ac_try_echo=$ac_try;;
17702esac
17703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17704 (eval "$ac_link") 2>conftest.er1
17705 ac_status=$?
17706 grep -v '^ *+' conftest.er1 >conftest.err
17707 rm -f conftest.er1
17708 cat conftest.err >&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); } &&
17711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17712 { (case "(($ac_try" in
17713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17714 *) ac_try_echo=$ac_try;;
17715esac
17716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17717 (eval "$ac_try") 2>&5
17718 ac_status=$?
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; } &&
17721 { ac_try='test -s conftest$ac_exeext'
17722 { (case "(($ac_try" in
17723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724 *) ac_try_echo=$ac_try;;
17725esac
17726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727 (eval "$ac_try") 2>&5
17728 ac_status=$?
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; }; then
17731 ac_cv_lib_gcc__alloca=yes
17732else
17733 echo "$as_me: failed program was:" >&5
17734sed 's/^/| /' conftest.$ac_ext >&5
17735
17736 ac_cv_lib_gcc__alloca=no
17737fi
17738
17739rm -f core conftest.err conftest.$ac_objext \
17740 conftest$ac_exeext conftest.$ac_ext
17741LIBS=$ac_check_lib_save_LIBS
17742fi
17743{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17744echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17745if test $ac_cv_lib_gcc__alloca = yes; then
17746
17747cat >>confdefs.h <<\_ACEOF
17748#define HAVE__ALLOCA 1
17749_ACEOF
17750
17751fi
17752
17753 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17754echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17755if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17756 echo $ECHO_N "(cached) $ECHO_C" >&6
17757else
17758 ac_check_lib_save_LIBS=$LIBS
17759LIBS="-lgcc $LIBS"
17760cat >conftest.$ac_ext <<_ACEOF
17761/* confdefs.h. */
17762_ACEOF
17763cat confdefs.h >>conftest.$ac_ext
17764cat >>conftest.$ac_ext <<_ACEOF
17765/* end confdefs.h. */
17766
17767/* Override any GCC internal prototype to avoid an error.
17768 Use char because int might match the return type of a GCC
17769 builtin and then its argument prototype would still apply. */
17770#ifdef __cplusplus
17771extern "C"
17772#endif
17773char __alloca ();
17774int
17775main ()
17776{
17777return __alloca ();
17778 ;
17779 return 0;
17780}
17781_ACEOF
17782rm -f conftest.$ac_objext conftest$ac_exeext
17783if { (ac_try="$ac_link"
17784case "(($ac_try" in
17785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17786 *) ac_try_echo=$ac_try;;
17787esac
17788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17789 (eval "$ac_link") 2>conftest.er1
17790 ac_status=$?
17791 grep -v '^ *+' conftest.er1 >conftest.err
17792 rm -f conftest.er1
17793 cat conftest.err >&5
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); } &&
17796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17797 { (case "(($ac_try" in
17798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17799 *) ac_try_echo=$ac_try;;
17800esac
17801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17802 (eval "$ac_try") 2>&5
17803 ac_status=$?
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; } &&
17806 { ac_try='test -s conftest$ac_exeext'
17807 { (case "(($ac_try" in
17808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17809 *) ac_try_echo=$ac_try;;
17810esac
17811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17812 (eval "$ac_try") 2>&5
17813 ac_status=$?
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; }; then
17816 ac_cv_lib_gcc___alloca=yes
17817else
17818 echo "$as_me: failed program was:" >&5
17819sed 's/^/| /' conftest.$ac_ext >&5
17820
17821 ac_cv_lib_gcc___alloca=no
17822fi
17823
17824rm -f core conftest.err conftest.$ac_objext \
17825 conftest$ac_exeext conftest.$ac_ext
17826LIBS=$ac_check_lib_save_LIBS
17827fi
17828{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17829echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17830if test $ac_cv_lib_gcc___alloca = yes; then
17831
17832cat >>confdefs.h <<\_ACEOF
17833#define HAVE___ALLOCA 1
17834_ACEOF
17835
17836fi
17837
17838 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17839echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17840if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17841 echo $ECHO_N "(cached) $ECHO_C" >&6
17842else
17843 ac_check_lib_save_LIBS=$LIBS
17844LIBS="-lgcc $LIBS"
17845cat >conftest.$ac_ext <<_ACEOF
17846/* confdefs.h. */
17847_ACEOF
17848cat confdefs.h >>conftest.$ac_ext
17849cat >>conftest.$ac_ext <<_ACEOF
17850/* end confdefs.h. */
17851
17852/* Override any GCC internal prototype to avoid an error.
17853 Use char because int might match the return type of a GCC
17854 builtin and then its argument prototype would still apply. */
17855#ifdef __cplusplus
17856extern "C"
17857#endif
17858char __chkstk ();
17859int
17860main ()
17861{
17862return __chkstk ();
17863 ;
17864 return 0;
17865}
17866_ACEOF
17867rm -f conftest.$ac_objext conftest$ac_exeext
17868if { (ac_try="$ac_link"
17869case "(($ac_try" in
17870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17871 *) ac_try_echo=$ac_try;;
17872esac
17873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17874 (eval "$ac_link") 2>conftest.er1
17875 ac_status=$?
17876 grep -v '^ *+' conftest.er1 >conftest.err
17877 rm -f conftest.er1
17878 cat conftest.err >&5
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); } &&
17881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17882 { (case "(($ac_try" in
17883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17884 *) ac_try_echo=$ac_try;;
17885esac
17886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17887 (eval "$ac_try") 2>&5
17888 ac_status=$?
17889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); }; } &&
17891 { ac_try='test -s conftest$ac_exeext'
17892 { (case "(($ac_try" in
17893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894 *) ac_try_echo=$ac_try;;
17895esac
17896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17897 (eval "$ac_try") 2>&5
17898 ac_status=$?
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); }; }; then
17901 ac_cv_lib_gcc___chkstk=yes
17902else
17903 echo "$as_me: failed program was:" >&5
17904sed 's/^/| /' conftest.$ac_ext >&5
17905
17906 ac_cv_lib_gcc___chkstk=no
17907fi
17908
17909rm -f core conftest.err conftest.$ac_objext \
17910 conftest$ac_exeext conftest.$ac_ext
17911LIBS=$ac_check_lib_save_LIBS
17912fi
17913{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
17914echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
17915if test $ac_cv_lib_gcc___chkstk = yes; then
17916
17917cat >>confdefs.h <<\_ACEOF
17918#define HAVE___CHKSTK 1
17919_ACEOF
17920
17921fi
17922
17923 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
17924echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
17925if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
17926 echo $ECHO_N "(cached) $ECHO_C" >&6
17927else
17928 ac_check_lib_save_LIBS=$LIBS
17929LIBS="-lgcc $LIBS"
17930cat >conftest.$ac_ext <<_ACEOF
17931/* confdefs.h. */
17932_ACEOF
17933cat confdefs.h >>conftest.$ac_ext
17934cat >>conftest.$ac_ext <<_ACEOF
17935/* end confdefs.h. */
17936
17937/* Override any GCC internal prototype to avoid an error.
17938 Use char because int might match the return type of a GCC
17939 builtin and then its argument prototype would still apply. */
17940#ifdef __cplusplus
17941extern "C"
17942#endif
17943char ___chkstk ();
17944int
17945main ()
17946{
17947return ___chkstk ();
17948 ;
17949 return 0;
17950}
17951_ACEOF
17952rm -f conftest.$ac_objext conftest$ac_exeext
17953if { (ac_try="$ac_link"
17954case "(($ac_try" in
17955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17956 *) ac_try_echo=$ac_try;;
17957esac
17958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17959 (eval "$ac_link") 2>conftest.er1
17960 ac_status=$?
17961 grep -v '^ *+' conftest.er1 >conftest.err
17962 rm -f conftest.er1
17963 cat conftest.err >&5
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); } &&
17966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17967 { (case "(($ac_try" in
17968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17969 *) ac_try_echo=$ac_try;;
17970esac
17971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17972 (eval "$ac_try") 2>&5
17973 ac_status=$?
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); }; } &&
17976 { ac_try='test -s conftest$ac_exeext'
17977 { (case "(($ac_try" in
17978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17979 *) ac_try_echo=$ac_try;;
17980esac
17981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17982 (eval "$ac_try") 2>&5
17983 ac_status=$?
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); }; }; then
17986 ac_cv_lib_gcc____chkstk=yes
17987else
17988 echo "$as_me: failed program was:" >&5
17989sed 's/^/| /' conftest.$ac_ext >&5
17990
17991 ac_cv_lib_gcc____chkstk=no
17992fi
17993
17994rm -f core conftest.err conftest.$ac_objext \
17995 conftest$ac_exeext conftest.$ac_ext
17996LIBS=$ac_check_lib_save_LIBS
17997fi
17998{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
17999echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18000if test $ac_cv_lib_gcc____chkstk = yes; then
18001
18002cat >>confdefs.h <<\_ACEOF
18003#define HAVE____CHKSTK 1
18004_ACEOF
18005
18006fi
18007
18008
18009 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18010echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18011if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18013else
18014 ac_check_lib_save_LIBS=$LIBS
18015LIBS="-lgcc $LIBS"
18016cat >conftest.$ac_ext <<_ACEOF
18017/* confdefs.h. */
18018_ACEOF
18019cat confdefs.h >>conftest.$ac_ext
18020cat >>conftest.$ac_ext <<_ACEOF
18021/* end confdefs.h. */
18022
18023/* Override any GCC internal prototype to avoid an error.
18024 Use char because int might match the return type of a GCC
18025 builtin and then its argument prototype would still apply. */
18026#ifdef __cplusplus
18027extern "C"
18028#endif
18029char __ashldi3 ();
18030int
18031main ()
18032{
18033return __ashldi3 ();
18034 ;
18035 return 0;
18036}
18037_ACEOF
18038rm -f conftest.$ac_objext conftest$ac_exeext
18039if { (ac_try="$ac_link"
18040case "(($ac_try" in
18041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18042 *) ac_try_echo=$ac_try;;
18043esac
18044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18045 (eval "$ac_link") 2>conftest.er1
18046 ac_status=$?
18047 grep -v '^ *+' conftest.er1 >conftest.err
18048 rm -f conftest.er1
18049 cat conftest.err >&5
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); } &&
18052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18053 { (case "(($ac_try" in
18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055 *) ac_try_echo=$ac_try;;
18056esac
18057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_try") 2>&5
18059 ac_status=$?
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); }; } &&
18062 { ac_try='test -s conftest$ac_exeext'
18063 { (case "(($ac_try" in
18064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18065 *) ac_try_echo=$ac_try;;
18066esac
18067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18068 (eval "$ac_try") 2>&5
18069 ac_status=$?
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); }; }; then
18072 ac_cv_lib_gcc___ashldi3=yes
18073else
18074 echo "$as_me: failed program was:" >&5
18075sed 's/^/| /' conftest.$ac_ext >&5
18076
18077 ac_cv_lib_gcc___ashldi3=no
18078fi
18079
18080rm -f core conftest.err conftest.$ac_objext \
18081 conftest$ac_exeext conftest.$ac_ext
18082LIBS=$ac_check_lib_save_LIBS
18083fi
18084{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18085echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18086if test $ac_cv_lib_gcc___ashldi3 = yes; then
18087
18088cat >>confdefs.h <<\_ACEOF
18089#define HAVE___ASHLDI3 1
18090_ACEOF
18091
18092fi
18093
18094 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18095echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18096if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18097 echo $ECHO_N "(cached) $ECHO_C" >&6
18098else
18099 ac_check_lib_save_LIBS=$LIBS
18100LIBS="-lgcc $LIBS"
18101cat >conftest.$ac_ext <<_ACEOF
18102/* confdefs.h. */
18103_ACEOF
18104cat confdefs.h >>conftest.$ac_ext
18105cat >>conftest.$ac_ext <<_ACEOF
18106/* end confdefs.h. */
18107
18108/* Override any GCC internal prototype to avoid an error.
18109 Use char because int might match the return type of a GCC
18110 builtin and then its argument prototype would still apply. */
18111#ifdef __cplusplus
18112extern "C"
18113#endif
18114char __ashrdi3 ();
18115int
18116main ()
18117{
18118return __ashrdi3 ();
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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18138 { (case "(($ac_try" in
18139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18140 *) ac_try_echo=$ac_try;;
18141esac
18142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18143 (eval "$ac_try") 2>&5
18144 ac_status=$?
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); }; } &&
18147 { ac_try='test -s conftest$ac_exeext'
18148 { (case "(($ac_try" in
18149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18150 *) ac_try_echo=$ac_try;;
18151esac
18152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18153 (eval "$ac_try") 2>&5
18154 ac_status=$?
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); }; }; then
18157 ac_cv_lib_gcc___ashrdi3=yes
18158else
18159 echo "$as_me: failed program was:" >&5
18160sed 's/^/| /' conftest.$ac_ext >&5
18161
18162 ac_cv_lib_gcc___ashrdi3=no
18163fi
18164
18165rm -f core conftest.err conftest.$ac_objext \
18166 conftest$ac_exeext conftest.$ac_ext
18167LIBS=$ac_check_lib_save_LIBS
18168fi
18169{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18170echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18171if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18172
18173cat >>confdefs.h <<\_ACEOF
18174#define HAVE___ASHRDI3 1
18175_ACEOF
18176
18177fi
18178
18179 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18180echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18181if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18182 echo $ECHO_N "(cached) $ECHO_C" >&6
18183else
18184 ac_check_lib_save_LIBS=$LIBS
18185LIBS="-lgcc $LIBS"
18186cat >conftest.$ac_ext <<_ACEOF
18187/* confdefs.h. */
18188_ACEOF
18189cat confdefs.h >>conftest.$ac_ext
18190cat >>conftest.$ac_ext <<_ACEOF
18191/* end confdefs.h. */
18192
18193/* Override any GCC internal prototype to avoid an error.
18194 Use char because int might match the return type of a GCC
18195 builtin and then its argument prototype would still apply. */
18196#ifdef __cplusplus
18197extern "C"
18198#endif
18199char __divdi3 ();
18200int
18201main ()
18202{
18203return __divdi3 ();
18204 ;
18205 return 0;
18206}
18207_ACEOF
18208rm -f conftest.$ac_objext conftest$ac_exeext
18209if { (ac_try="$ac_link"
18210case "(($ac_try" in
18211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18212 *) ac_try_echo=$ac_try;;
18213esac
18214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18215 (eval "$ac_link") 2>conftest.er1
18216 ac_status=$?
18217 grep -v '^ *+' conftest.er1 >conftest.err
18218 rm -f conftest.er1
18219 cat conftest.err >&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); } &&
18222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18223 { (case "(($ac_try" in
18224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18225 *) ac_try_echo=$ac_try;;
18226esac
18227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18228 (eval "$ac_try") 2>&5
18229 ac_status=$?
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); }; } &&
18232 { ac_try='test -s conftest$ac_exeext'
18233 { (case "(($ac_try" in
18234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18235 *) ac_try_echo=$ac_try;;
18236esac
18237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18238 (eval "$ac_try") 2>&5
18239 ac_status=$?
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); }; }; then
18242 ac_cv_lib_gcc___divdi3=yes
18243else
18244 echo "$as_me: failed program was:" >&5
18245sed 's/^/| /' conftest.$ac_ext >&5
18246
18247 ac_cv_lib_gcc___divdi3=no
18248fi
18249
18250rm -f core conftest.err conftest.$ac_objext \
18251 conftest$ac_exeext conftest.$ac_ext
18252LIBS=$ac_check_lib_save_LIBS
18253fi
18254{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18255echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18256if test $ac_cv_lib_gcc___divdi3 = yes; then
18257
18258cat >>confdefs.h <<\_ACEOF
18259#define HAVE___DIVDI3 1
18260_ACEOF
18261
18262fi
18263
18264 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18265echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18266if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18267 echo $ECHO_N "(cached) $ECHO_C" >&6
18268else
18269 ac_check_lib_save_LIBS=$LIBS
18270LIBS="-lgcc $LIBS"
18271cat >conftest.$ac_ext <<_ACEOF
18272/* confdefs.h. */
18273_ACEOF
18274cat confdefs.h >>conftest.$ac_ext
18275cat >>conftest.$ac_ext <<_ACEOF
18276/* end confdefs.h. */
18277
18278/* Override any GCC internal prototype to avoid an error.
18279 Use char because int might match the return type of a GCC
18280 builtin and then its argument prototype would still apply. */
18281#ifdef __cplusplus
18282extern "C"
18283#endif
18284char __fixdfdi ();
18285int
18286main ()
18287{
18288return __fixdfdi ();
18289 ;
18290 return 0;
18291}
18292_ACEOF
18293rm -f conftest.$ac_objext conftest$ac_exeext
18294if { (ac_try="$ac_link"
18295case "(($ac_try" in
18296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18297 *) ac_try_echo=$ac_try;;
18298esac
18299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18300 (eval "$ac_link") 2>conftest.er1
18301 ac_status=$?
18302 grep -v '^ *+' conftest.er1 >conftest.err
18303 rm -f conftest.er1
18304 cat conftest.err >&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); } &&
18307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18308 { (case "(($ac_try" in
18309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18310 *) ac_try_echo=$ac_try;;
18311esac
18312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18313 (eval "$ac_try") 2>&5
18314 ac_status=$?
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); }; } &&
18317 { ac_try='test -s conftest$ac_exeext'
18318 { (case "(($ac_try" in
18319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320 *) ac_try_echo=$ac_try;;
18321esac
18322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18323 (eval "$ac_try") 2>&5
18324 ac_status=$?
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); }; }; then
18327 ac_cv_lib_gcc___fixdfdi=yes
18328else
18329 echo "$as_me: failed program was:" >&5
18330sed 's/^/| /' conftest.$ac_ext >&5
18331
18332 ac_cv_lib_gcc___fixdfdi=no
18333fi
18334
18335rm -f core conftest.err conftest.$ac_objext \
18336 conftest$ac_exeext conftest.$ac_ext
18337LIBS=$ac_check_lib_save_LIBS
18338fi
18339{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18340echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18341if test $ac_cv_lib_gcc___fixdfdi = yes; then
18342
18343cat >>confdefs.h <<\_ACEOF
18344#define HAVE___FIXDFDI 1
18345_ACEOF
18346
18347fi
18348
18349 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18350echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18351if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18352 echo $ECHO_N "(cached) $ECHO_C" >&6
18353else
18354 ac_check_lib_save_LIBS=$LIBS
18355LIBS="-lgcc $LIBS"
18356cat >conftest.$ac_ext <<_ACEOF
18357/* confdefs.h. */
18358_ACEOF
18359cat confdefs.h >>conftest.$ac_ext
18360cat >>conftest.$ac_ext <<_ACEOF
18361/* end confdefs.h. */
18362
18363/* Override any GCC internal prototype to avoid an error.
18364 Use char because int might match the return type of a GCC
18365 builtin and then its argument prototype would still apply. */
18366#ifdef __cplusplus
18367extern "C"
18368#endif
18369char __fixsfdi ();
18370int
18371main ()
18372{
18373return __fixsfdi ();
18374 ;
18375 return 0;
18376}
18377_ACEOF
18378rm -f conftest.$ac_objext conftest$ac_exeext
18379if { (ac_try="$ac_link"
18380case "(($ac_try" in
18381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18382 *) ac_try_echo=$ac_try;;
18383esac
18384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18385 (eval "$ac_link") 2>conftest.er1
18386 ac_status=$?
18387 grep -v '^ *+' conftest.er1 >conftest.err
18388 rm -f conftest.er1
18389 cat conftest.err >&5
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); } &&
18392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18393 { (case "(($ac_try" in
18394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18395 *) ac_try_echo=$ac_try;;
18396esac
18397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18398 (eval "$ac_try") 2>&5
18399 ac_status=$?
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); }; } &&
18402 { ac_try='test -s conftest$ac_exeext'
18403 { (case "(($ac_try" in
18404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18405 *) ac_try_echo=$ac_try;;
18406esac
18407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18408 (eval "$ac_try") 2>&5
18409 ac_status=$?
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); }; }; then
18412 ac_cv_lib_gcc___fixsfdi=yes
18413else
18414 echo "$as_me: failed program was:" >&5
18415sed 's/^/| /' conftest.$ac_ext >&5
18416
18417 ac_cv_lib_gcc___fixsfdi=no
18418fi
18419
18420rm -f core conftest.err conftest.$ac_objext \
18421 conftest$ac_exeext conftest.$ac_ext
18422LIBS=$ac_check_lib_save_LIBS
18423fi
18424{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18425echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18426if test $ac_cv_lib_gcc___fixsfdi = yes; then
18427
18428cat >>confdefs.h <<\_ACEOF
18429#define HAVE___FIXSFDI 1
18430_ACEOF
18431
18432fi
18433
18434 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18435echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18436if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18437 echo $ECHO_N "(cached) $ECHO_C" >&6
18438else
18439 ac_check_lib_save_LIBS=$LIBS
18440LIBS="-lgcc $LIBS"
18441cat >conftest.$ac_ext <<_ACEOF
18442/* confdefs.h. */
18443_ACEOF
18444cat confdefs.h >>conftest.$ac_ext
18445cat >>conftest.$ac_ext <<_ACEOF
18446/* end confdefs.h. */
18447
18448/* Override any GCC internal prototype to avoid an error.
18449 Use char because int might match the return type of a GCC
18450 builtin and then its argument prototype would still apply. */
18451#ifdef __cplusplus
18452extern "C"
18453#endif
18454char __floatdidf ();
18455int
18456main ()
18457{
18458return __floatdidf ();
18459 ;
18460 return 0;
18461}
18462_ACEOF
18463rm -f conftest.$ac_objext conftest$ac_exeext
18464if { (ac_try="$ac_link"
18465case "(($ac_try" in
18466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467 *) ac_try_echo=$ac_try;;
18468esac
18469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470 (eval "$ac_link") 2>conftest.er1
18471 ac_status=$?
18472 grep -v '^ *+' conftest.er1 >conftest.err
18473 rm -f conftest.er1
18474 cat conftest.err >&5
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); } &&
18477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18478 { (case "(($ac_try" in
18479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18480 *) ac_try_echo=$ac_try;;
18481esac
18482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18483 (eval "$ac_try") 2>&5
18484 ac_status=$?
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; } &&
18487 { ac_try='test -s conftest$ac_exeext'
18488 { (case "(($ac_try" in
18489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18490 *) ac_try_echo=$ac_try;;
18491esac
18492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18493 (eval "$ac_try") 2>&5
18494 ac_status=$?
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); }; }; then
18497 ac_cv_lib_gcc___floatdidf=yes
18498else
18499 echo "$as_me: failed program was:" >&5
18500sed 's/^/| /' conftest.$ac_ext >&5
18501
18502 ac_cv_lib_gcc___floatdidf=no
18503fi
18504
18505rm -f core conftest.err conftest.$ac_objext \
18506 conftest$ac_exeext conftest.$ac_ext
18507LIBS=$ac_check_lib_save_LIBS
18508fi
18509{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18510echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18511if test $ac_cv_lib_gcc___floatdidf = yes; then
18512
18513cat >>confdefs.h <<\_ACEOF
18514#define HAVE___FLOATDIDF 1
18515_ACEOF
18516
18517fi
18518
18519 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18520echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18521if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18522 echo $ECHO_N "(cached) $ECHO_C" >&6
18523else
18524 ac_check_lib_save_LIBS=$LIBS
18525LIBS="-lgcc $LIBS"
18526cat >conftest.$ac_ext <<_ACEOF
18527/* confdefs.h. */
18528_ACEOF
18529cat confdefs.h >>conftest.$ac_ext
18530cat >>conftest.$ac_ext <<_ACEOF
18531/* end confdefs.h. */
18532
18533/* Override any GCC internal prototype to avoid an error.
18534 Use char because int might match the return type of a GCC
18535 builtin and then its argument prototype would still apply. */
18536#ifdef __cplusplus
18537extern "C"
18538#endif
18539char __lshrdi3 ();
18540int
18541main ()
18542{
18543return __lshrdi3 ();
18544 ;
18545 return 0;
18546}
18547_ACEOF
18548rm -f conftest.$ac_objext conftest$ac_exeext
18549if { (ac_try="$ac_link"
18550case "(($ac_try" in
18551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552 *) ac_try_echo=$ac_try;;
18553esac
18554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555 (eval "$ac_link") 2>conftest.er1
18556 ac_status=$?
18557 grep -v '^ *+' conftest.er1 >conftest.err
18558 rm -f conftest.er1
18559 cat conftest.err >&5
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); } &&
18562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18563 { (case "(($ac_try" in
18564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18565 *) ac_try_echo=$ac_try;;
18566esac
18567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18568 (eval "$ac_try") 2>&5
18569 ac_status=$?
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; } &&
18572 { ac_try='test -s conftest$ac_exeext'
18573 { (case "(($ac_try" in
18574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575 *) ac_try_echo=$ac_try;;
18576esac
18577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578 (eval "$ac_try") 2>&5
18579 ac_status=$?
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; }; then
18582 ac_cv_lib_gcc___lshrdi3=yes
18583else
18584 echo "$as_me: failed program was:" >&5
18585sed 's/^/| /' conftest.$ac_ext >&5
18586
18587 ac_cv_lib_gcc___lshrdi3=no
18588fi
18589
18590rm -f core conftest.err conftest.$ac_objext \
18591 conftest$ac_exeext conftest.$ac_ext
18592LIBS=$ac_check_lib_save_LIBS
18593fi
18594{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18595echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18596if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18597
18598cat >>confdefs.h <<\_ACEOF
18599#define HAVE___LSHRDI3 1
18600_ACEOF
18601
18602fi
18603
18604 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18605echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18606if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18607 echo $ECHO_N "(cached) $ECHO_C" >&6
18608else
18609 ac_check_lib_save_LIBS=$LIBS
18610LIBS="-lgcc $LIBS"
18611cat >conftest.$ac_ext <<_ACEOF
18612/* confdefs.h. */
18613_ACEOF
18614cat confdefs.h >>conftest.$ac_ext
18615cat >>conftest.$ac_ext <<_ACEOF
18616/* end confdefs.h. */
18617
18618/* Override any GCC internal prototype to avoid an error.
18619 Use char because int might match the return type of a GCC
18620 builtin and then its argument prototype would still apply. */
18621#ifdef __cplusplus
18622extern "C"
18623#endif
18624char __moddi3 ();
18625int
18626main ()
18627{
18628return __moddi3 ();
18629 ;
18630 return 0;
18631}
18632_ACEOF
18633rm -f conftest.$ac_objext conftest$ac_exeext
18634if { (ac_try="$ac_link"
18635case "(($ac_try" in
18636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637 *) ac_try_echo=$ac_try;;
18638esac
18639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18640 (eval "$ac_link") 2>conftest.er1
18641 ac_status=$?
18642 grep -v '^ *+' conftest.er1 >conftest.err
18643 rm -f conftest.er1
18644 cat conftest.err >&5
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); } &&
18647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18648 { (case "(($ac_try" in
18649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650 *) ac_try_echo=$ac_try;;
18651esac
18652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653 (eval "$ac_try") 2>&5
18654 ac_status=$?
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; } &&
18657 { ac_try='test -s conftest$ac_exeext'
18658 { (case "(($ac_try" in
18659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660 *) ac_try_echo=$ac_try;;
18661esac
18662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18663 (eval "$ac_try") 2>&5
18664 ac_status=$?
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; }; then
18667 ac_cv_lib_gcc___moddi3=yes
18668else
18669 echo "$as_me: failed program was:" >&5
18670sed 's/^/| /' conftest.$ac_ext >&5
18671
18672 ac_cv_lib_gcc___moddi3=no
18673fi
18674
18675rm -f core conftest.err conftest.$ac_objext \
18676 conftest$ac_exeext conftest.$ac_ext
18677LIBS=$ac_check_lib_save_LIBS
18678fi
18679{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18680echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18681if test $ac_cv_lib_gcc___moddi3 = yes; then
18682
18683cat >>confdefs.h <<\_ACEOF
18684#define HAVE___MODDI3 1
18685_ACEOF
18686
18687fi
18688
18689 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18690echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18691if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18692 echo $ECHO_N "(cached) $ECHO_C" >&6
18693else
18694 ac_check_lib_save_LIBS=$LIBS
18695LIBS="-lgcc $LIBS"
18696cat >conftest.$ac_ext <<_ACEOF
18697/* confdefs.h. */
18698_ACEOF
18699cat confdefs.h >>conftest.$ac_ext
18700cat >>conftest.$ac_ext <<_ACEOF
18701/* end confdefs.h. */
18702
18703/* Override any GCC internal prototype to avoid an error.
18704 Use char because int might match the return type of a GCC
18705 builtin and then its argument prototype would still apply. */
18706#ifdef __cplusplus
18707extern "C"
18708#endif
18709char __udivdi3 ();
18710int
18711main ()
18712{
18713return __udivdi3 ();
18714 ;
18715 return 0;
18716}
18717_ACEOF
18718rm -f conftest.$ac_objext conftest$ac_exeext
18719if { (ac_try="$ac_link"
18720case "(($ac_try" in
18721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722 *) ac_try_echo=$ac_try;;
18723esac
18724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725 (eval "$ac_link") 2>conftest.er1
18726 ac_status=$?
18727 grep -v '^ *+' conftest.er1 >conftest.err
18728 rm -f conftest.er1
18729 cat conftest.err >&5
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); } &&
18732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18733 { (case "(($ac_try" in
18734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18735 *) ac_try_echo=$ac_try;;
18736esac
18737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18738 (eval "$ac_try") 2>&5
18739 ac_status=$?
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); }; } &&
18742 { ac_try='test -s conftest$ac_exeext'
18743 { (case "(($ac_try" in
18744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745 *) ac_try_echo=$ac_try;;
18746esac
18747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18748 (eval "$ac_try") 2>&5
18749 ac_status=$?
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); }; }; then
18752 ac_cv_lib_gcc___udivdi3=yes
18753else
18754 echo "$as_me: failed program was:" >&5
18755sed 's/^/| /' conftest.$ac_ext >&5
18756
18757 ac_cv_lib_gcc___udivdi3=no
18758fi
18759
18760rm -f core conftest.err conftest.$ac_objext \
18761 conftest$ac_exeext conftest.$ac_ext
18762LIBS=$ac_check_lib_save_LIBS
18763fi
18764{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18765echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18766if test $ac_cv_lib_gcc___udivdi3 = yes; then
18767
18768cat >>confdefs.h <<\_ACEOF
18769#define HAVE___UDIVDI3 1
18770_ACEOF
18771
18772fi
18773
18774 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18775echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18776if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18777 echo $ECHO_N "(cached) $ECHO_C" >&6
18778else
18779 ac_check_lib_save_LIBS=$LIBS
18780LIBS="-lgcc $LIBS"
18781cat >conftest.$ac_ext <<_ACEOF
18782/* confdefs.h. */
18783_ACEOF
18784cat confdefs.h >>conftest.$ac_ext
18785cat >>conftest.$ac_ext <<_ACEOF
18786/* end confdefs.h. */
18787
18788/* Override any GCC internal prototype to avoid an error.
18789 Use char because int might match the return type of a GCC
18790 builtin and then its argument prototype would still apply. */
18791#ifdef __cplusplus
18792extern "C"
18793#endif
18794char __umoddi3 ();
18795int
18796main ()
18797{
18798return __umoddi3 ();
18799 ;
18800 return 0;
18801}
18802_ACEOF
18803rm -f conftest.$ac_objext conftest$ac_exeext
18804if { (ac_try="$ac_link"
18805case "(($ac_try" in
18806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807 *) ac_try_echo=$ac_try;;
18808esac
18809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810 (eval "$ac_link") 2>conftest.er1
18811 ac_status=$?
18812 grep -v '^ *+' conftest.er1 >conftest.err
18813 rm -f conftest.er1
18814 cat conftest.err >&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); } &&
18817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18818 { (case "(($ac_try" in
18819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18820 *) ac_try_echo=$ac_try;;
18821esac
18822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18823 (eval "$ac_try") 2>&5
18824 ac_status=$?
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); }; } &&
18827 { ac_try='test -s conftest$ac_exeext'
18828 { (case "(($ac_try" in
18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830 *) ac_try_echo=$ac_try;;
18831esac
18832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833 (eval "$ac_try") 2>&5
18834 ac_status=$?
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); }; }; then
18837 ac_cv_lib_gcc___umoddi3=yes
18838else
18839 echo "$as_me: failed program was:" >&5
18840sed 's/^/| /' conftest.$ac_ext >&5
18841
18842 ac_cv_lib_gcc___umoddi3=no
18843fi
18844
18845rm -f core conftest.err conftest.$ac_objext \
18846 conftest$ac_exeext conftest.$ac_ext
18847LIBS=$ac_check_lib_save_LIBS
18848fi
18849{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18850echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18851if test $ac_cv_lib_gcc___umoddi3 = yes; then
18852
18853cat >>confdefs.h <<\_ACEOF
18854#define HAVE___UMODDI3 1
18855_ACEOF
18856
18857fi
18858
18859
18860 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18861echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18862if test "${ac_cv_lib_gcc___main+set}" = set; then
18863 echo $ECHO_N "(cached) $ECHO_C" >&6
18864else
18865 ac_check_lib_save_LIBS=$LIBS
18866LIBS="-lgcc $LIBS"
18867cat >conftest.$ac_ext <<_ACEOF
18868/* confdefs.h. */
18869_ACEOF
18870cat confdefs.h >>conftest.$ac_ext
18871cat >>conftest.$ac_ext <<_ACEOF
18872/* end confdefs.h. */
18873
18874/* Override any GCC internal prototype to avoid an error.
18875 Use char because int might match the return type of a GCC
18876 builtin and then its argument prototype would still apply. */
18877#ifdef __cplusplus
18878extern "C"
18879#endif
18880char __main ();
18881int
18882main ()
18883{
18884return __main ();
18885 ;
18886 return 0;
18887}
18888_ACEOF
18889rm -f conftest.$ac_objext conftest$ac_exeext
18890if { (ac_try="$ac_link"
18891case "(($ac_try" in
18892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893 *) ac_try_echo=$ac_try;;
18894esac
18895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18896 (eval "$ac_link") 2>conftest.er1
18897 ac_status=$?
18898 grep -v '^ *+' conftest.er1 >conftest.err
18899 rm -f conftest.er1
18900 cat conftest.err >&5
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); } &&
18903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18904 { (case "(($ac_try" in
18905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906 *) ac_try_echo=$ac_try;;
18907esac
18908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18909 (eval "$ac_try") 2>&5
18910 ac_status=$?
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); }; } &&
18913 { ac_try='test -s conftest$ac_exeext'
18914 { (case "(($ac_try" in
18915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18916 *) ac_try_echo=$ac_try;;
18917esac
18918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18919 (eval "$ac_try") 2>&5
18920 ac_status=$?
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; }; then
18923 ac_cv_lib_gcc___main=yes
18924else
18925 echo "$as_me: failed program was:" >&5
18926sed 's/^/| /' conftest.$ac_ext >&5
18927
18928 ac_cv_lib_gcc___main=no
18929fi
18930
18931rm -f core conftest.err conftest.$ac_objext \
18932 conftest$ac_exeext conftest.$ac_ext
18933LIBS=$ac_check_lib_save_LIBS
18934fi
18935{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
18936echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
18937if test $ac_cv_lib_gcc___main = yes; then
18938
18939cat >>confdefs.h <<\_ACEOF
18940#define HAVE___MAIN 1
18941_ACEOF
18942
18943fi
18944
18945 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
18946echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
18947if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
18948 echo $ECHO_N "(cached) $ECHO_C" >&6
18949else
18950 ac_check_lib_save_LIBS=$LIBS
18951LIBS="-lgcc $LIBS"
18952cat >conftest.$ac_ext <<_ACEOF
18953/* confdefs.h. */
18954_ACEOF
18955cat confdefs.h >>conftest.$ac_ext
18956cat >>conftest.$ac_ext <<_ACEOF
18957/* end confdefs.h. */
18958
18959/* Override any GCC internal prototype to avoid an error.
18960 Use char because int might match the return type of a GCC
18961 builtin and then its argument prototype would still apply. */
18962#ifdef __cplusplus
18963extern "C"
18964#endif
18965char __cmpdi2 ();
18966int
18967main ()
18968{
18969return __cmpdi2 ();
18970 ;
18971 return 0;
18972}
18973_ACEOF
18974rm -f conftest.$ac_objext conftest$ac_exeext
18975if { (ac_try="$ac_link"
18976case "(($ac_try" in
18977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978 *) ac_try_echo=$ac_try;;
18979esac
18980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18981 (eval "$ac_link") 2>conftest.er1
18982 ac_status=$?
18983 grep -v '^ *+' conftest.er1 >conftest.err
18984 rm -f conftest.er1
18985 cat conftest.err >&5
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); } &&
18988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18989 { (case "(($ac_try" in
18990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18991 *) ac_try_echo=$ac_try;;
18992esac
18993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18994 (eval "$ac_try") 2>&5
18995 ac_status=$?
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); }; } &&
18998 { ac_try='test -s conftest$ac_exeext'
18999 { (case "(($ac_try" in
19000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19001 *) ac_try_echo=$ac_try;;
19002esac
19003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19004 (eval "$ac_try") 2>&5
19005 ac_status=$?
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); }; }; then
19008 ac_cv_lib_gcc___cmpdi2=yes
19009else
19010 echo "$as_me: failed program was:" >&5
19011sed 's/^/| /' conftest.$ac_ext >&5
19012
19013 ac_cv_lib_gcc___cmpdi2=no
19014fi
19015
19016rm -f core conftest.err conftest.$ac_objext \
19017 conftest$ac_exeext conftest.$ac_ext
19018LIBS=$ac_check_lib_save_LIBS
19019fi
19020{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19021echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19022if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19023
19024cat >>confdefs.h <<\_ACEOF
19025#define HAVE___CMPDI2 1
19026_ACEOF
19027
19028fi
19029
19030fi
19031
19032if test "$llvm_cv_os_type" = "MingW" ; then
19033 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19034echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19035 cat >conftest.$ac_ext <<_ACEOF
19036#include <windows.h>
19037#include <imagehlp.h>
19038extern void foo(PENUMLOADED_MODULES_CALLBACK);
19039extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19040_ACEOF
19041rm -f conftest.$ac_objext
19042if { (ac_try="$ac_compile"
19043case "(($ac_try" in
19044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045 *) ac_try_echo=$ac_try;;
19046esac
19047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048 (eval "$ac_compile") 2>conftest.er1
19049 ac_status=$?
19050 grep -v '^ *+' conftest.er1 >conftest.err
19051 rm -f conftest.er1
19052 cat conftest.err >&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } &&
19055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19056 { (case "(($ac_try" in
19057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058 *) ac_try_echo=$ac_try;;
19059esac
19060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061 (eval "$ac_try") 2>&5
19062 ac_status=$?
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); }; } &&
19065 { ac_try='test -s conftest.$ac_objext'
19066 { (case "(($ac_try" in
19067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19068 *) ac_try_echo=$ac_try;;
19069esac
19070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19071 (eval "$ac_try") 2>&5
19072 ac_status=$?
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); }; }; then
19075
19076 { echo "$as_me:$LINENO: result: yes" >&5
19077echo "${ECHO_T}yes" >&6; }
19078 llvm_cv_win32_elmcb_pcstr="PCSTR"
19079
19080else
19081 echo "$as_me: failed program was:" >&5
19082sed 's/^/| /' conftest.$ac_ext >&5
19083
19084
19085 { echo "$as_me:$LINENO: result: no" >&5
19086echo "${ECHO_T}no" >&6; }
19087 llvm_cv_win32_elmcb_pcstr="PSTR"
19088
19089fi
19090
19091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19092
19093cat >>confdefs.h <<_ACEOF
19094#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19095_ACEOF
19096
19097fi
19098
19099
19100{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19101echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19102if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19103 echo $ECHO_N "(cached) $ECHO_C" >&6
19104else
19105 ac_ext=cpp
19106ac_cpp='$CXXCPP $CPPFLAGS'
19107ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19108ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19109ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19110
19111 cat >conftest.$ac_ext <<_ACEOF
19112/* confdefs.h. */
19113_ACEOF
19114cat confdefs.h >>conftest.$ac_ext
19115cat >>conftest.$ac_ext <<_ACEOF
19116/* end confdefs.h. */
19117#include <math.h>
19118int
19119main ()
19120{
19121float f; isnan(f);
19122 ;
19123 return 0;
19124}
19125_ACEOF
19126rm -f conftest.$ac_objext
19127if { (ac_try="$ac_compile"
19128case "(($ac_try" in
19129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130 *) ac_try_echo=$ac_try;;
19131esac
19132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133 (eval "$ac_compile") 2>conftest.er1
19134 ac_status=$?
19135 grep -v '^ *+' conftest.er1 >conftest.err
19136 rm -f conftest.er1
19137 cat conftest.err >&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } &&
19140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19141 { (case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19144esac
19145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146 (eval "$ac_try") 2>&5
19147 ac_status=$?
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; } &&
19150 { ac_try='test -s conftest.$ac_objext'
19151 { (case "(($ac_try" in
19152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153 *) ac_try_echo=$ac_try;;
19154esac
19155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19156 (eval "$ac_try") 2>&5
19157 ac_status=$?
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; }; then
19160 ac_cv_func_isnan_in_math_h=yes
19161else
19162 echo "$as_me: failed program was:" >&5
19163sed 's/^/| /' conftest.$ac_ext >&5
19164
19165 ac_cv_func_isnan_in_math_h=no
19166fi
19167
19168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19169 ac_ext=c
19170ac_cpp='$CPP $CPPFLAGS'
19171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19173ac_compiler_gnu=$ac_cv_c_compiler_gnu
19174
19175fi
19176{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19177echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19178
19179
19180if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19181
19182cat >>confdefs.h <<\_ACEOF
19183#define HAVE_ISNAN_IN_MATH_H 1
19184_ACEOF
19185
19186fi
19187
19188{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19189echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19190if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19191 echo $ECHO_N "(cached) $ECHO_C" >&6
19192else
19193 ac_ext=cpp
19194ac_cpp='$CXXCPP $CPPFLAGS'
19195ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19196ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19197ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19198
19199 cat >conftest.$ac_ext <<_ACEOF
19200/* confdefs.h. */
19201_ACEOF
19202cat confdefs.h >>conftest.$ac_ext
19203cat >>conftest.$ac_ext <<_ACEOF
19204/* end confdefs.h. */
19205#include <cmath>
19206int
19207main ()
19208{
19209float f; isnan(f);
19210 ;
19211 return 0;
19212}
19213_ACEOF
19214rm -f conftest.$ac_objext
19215if { (ac_try="$ac_compile"
19216case "(($ac_try" in
19217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218 *) ac_try_echo=$ac_try;;
19219esac
19220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19221 (eval "$ac_compile") 2>conftest.er1
19222 ac_status=$?
19223 grep -v '^ *+' conftest.er1 >conftest.err
19224 rm -f conftest.er1
19225 cat conftest.err >&5
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); } &&
19228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19229 { (case "(($ac_try" in
19230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231 *) ac_try_echo=$ac_try;;
19232esac
19233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234 (eval "$ac_try") 2>&5
19235 ac_status=$?
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; } &&
19238 { ac_try='test -s conftest.$ac_objext'
19239 { (case "(($ac_try" in
19240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19241 *) ac_try_echo=$ac_try;;
19242esac
19243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19244 (eval "$ac_try") 2>&5
19245 ac_status=$?
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); }; }; then
19248 ac_cv_func_isnan_in_cmath=yes
19249else
19250 echo "$as_me: failed program was:" >&5
19251sed 's/^/| /' conftest.$ac_ext >&5
19252
19253 ac_cv_func_isnan_in_cmath=no
19254fi
19255
19256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19257 ac_ext=c
19258ac_cpp='$CPP $CPPFLAGS'
19259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19261ac_compiler_gnu=$ac_cv_c_compiler_gnu
19262
19263fi
19264{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19265echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19266
19267if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19268
19269cat >>confdefs.h <<\_ACEOF
19270#define HAVE_ISNAN_IN_CMATH 1
19271_ACEOF
19272
19273fi
19274
19275{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19276echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19277if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19278 echo $ECHO_N "(cached) $ECHO_C" >&6
19279else
19280 ac_ext=cpp
19281ac_cpp='$CXXCPP $CPPFLAGS'
19282ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19283ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19284ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19285
19286 cat >conftest.$ac_ext <<_ACEOF
19287/* confdefs.h. */
19288_ACEOF
19289cat confdefs.h >>conftest.$ac_ext
19290cat >>conftest.$ac_ext <<_ACEOF
19291/* end confdefs.h. */
19292#include <cmath>
19293int
19294main ()
19295{
19296float f; std::isnan(f);
19297 ;
19298 return 0;
19299}
19300_ACEOF
19301rm -f conftest.$ac_objext
19302if { (ac_try="$ac_compile"
19303case "(($ac_try" in
19304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305 *) ac_try_echo=$ac_try;;
19306esac
19307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308 (eval "$ac_compile") 2>conftest.er1
19309 ac_status=$?
19310 grep -v '^ *+' conftest.er1 >conftest.err
19311 rm -f conftest.er1
19312 cat conftest.err >&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } &&
19315 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19316 { (case "(($ac_try" in
19317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318 *) ac_try_echo=$ac_try;;
19319esac
19320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19321 (eval "$ac_try") 2>&5
19322 ac_status=$?
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; } &&
19325 { ac_try='test -s conftest.$ac_objext'
19326 { (case "(($ac_try" in
19327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19328 *) ac_try_echo=$ac_try;;
19329esac
19330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19331 (eval "$ac_try") 2>&5
19332 ac_status=$?
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); }; }; then
19335 ac_cv_func_std_isnan_in_cmath=yes
19336else
19337 echo "$as_me: failed program was:" >&5
19338sed 's/^/| /' conftest.$ac_ext >&5
19339
19340 ac_cv_func_std_isnan_in_cmath=no
19341fi
19342
19343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19344 ac_ext=c
19345ac_cpp='$CPP $CPPFLAGS'
19346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19348ac_compiler_gnu=$ac_cv_c_compiler_gnu
19349
19350fi
19351{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19352echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19353
19354if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19355
19356cat >>confdefs.h <<\_ACEOF
19357#define HAVE_STD_ISNAN_IN_CMATH 1
19358_ACEOF
19359
19360fi
19361
19362
19363{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19364echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19365if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19366 echo $ECHO_N "(cached) $ECHO_C" >&6
19367else
19368 ac_ext=cpp
19369ac_cpp='$CXXCPP $CPPFLAGS'
19370ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19371ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19372ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19373
19374 cat >conftest.$ac_ext <<_ACEOF
19375/* confdefs.h. */
19376_ACEOF
19377cat confdefs.h >>conftest.$ac_ext
19378cat >>conftest.$ac_ext <<_ACEOF
19379/* end confdefs.h. */
19380#include <math.h>
19381int
19382main ()
19383{
19384float f; isinf(f);
19385 ;
19386 return 0;
19387}
19388_ACEOF
19389rm -f conftest.$ac_objext
19390if { (ac_try="$ac_compile"
19391case "(($ac_try" in
19392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19393 *) ac_try_echo=$ac_try;;
19394esac
19395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19396 (eval "$ac_compile") 2>conftest.er1
19397 ac_status=$?
19398 grep -v '^ *+' conftest.er1 >conftest.err
19399 rm -f conftest.er1
19400 cat conftest.err >&5
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); } &&
19403 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19404 { (case "(($ac_try" in
19405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19406 *) ac_try_echo=$ac_try;;
19407esac
19408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19409 (eval "$ac_try") 2>&5
19410 ac_status=$?
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); }; } &&
19413 { ac_try='test -s conftest.$ac_objext'
19414 { (case "(($ac_try" in
19415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19416 *) ac_try_echo=$ac_try;;
19417esac
19418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19419 (eval "$ac_try") 2>&5
19420 ac_status=$?
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); }; }; then
19423 ac_cv_func_isinf_in_math_h=yes
19424else
19425 echo "$as_me: failed program was:" >&5
19426sed 's/^/| /' conftest.$ac_ext >&5
19427
19428 ac_cv_func_isinf_in_math_h=no
19429fi
19430
19431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19432 ac_ext=c
19433ac_cpp='$CPP $CPPFLAGS'
19434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19436ac_compiler_gnu=$ac_cv_c_compiler_gnu
19437
19438fi
19439{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19440echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19441
19442if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19443
19444cat >>confdefs.h <<\_ACEOF
19445#define HAVE_ISINF_IN_MATH_H 1
19446_ACEOF
19447
19448fi
19449
19450{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19451echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19452if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19453 echo $ECHO_N "(cached) $ECHO_C" >&6
19454else
19455 ac_ext=cpp
19456ac_cpp='$CXXCPP $CPPFLAGS'
19457ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19458ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19459ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19460
19461 cat >conftest.$ac_ext <<_ACEOF
19462/* confdefs.h. */
19463_ACEOF
19464cat confdefs.h >>conftest.$ac_ext
19465cat >>conftest.$ac_ext <<_ACEOF
19466/* end confdefs.h. */
19467#include <cmath>
19468int
19469main ()
19470{
19471float f; isinf(f);
19472 ;
19473 return 0;
19474}
19475_ACEOF
19476rm -f conftest.$ac_objext
19477if { (ac_try="$ac_compile"
19478case "(($ac_try" in
19479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19480 *) ac_try_echo=$ac_try;;
19481esac
19482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19483 (eval "$ac_compile") 2>conftest.er1
19484 ac_status=$?
19485 grep -v '^ *+' conftest.er1 >conftest.err
19486 rm -f conftest.er1
19487 cat conftest.err >&5
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); } &&
19490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19491 { (case "(($ac_try" in
19492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19493 *) ac_try_echo=$ac_try;;
19494esac
19495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19496 (eval "$ac_try") 2>&5
19497 ac_status=$?
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; } &&
19500 { ac_try='test -s conftest.$ac_objext'
19501 { (case "(($ac_try" in
19502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503 *) ac_try_echo=$ac_try;;
19504esac
19505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506 (eval "$ac_try") 2>&5
19507 ac_status=$?
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; }; then
19510 ac_cv_func_isinf_in_cmath=yes
19511else
19512 echo "$as_me: failed program was:" >&5
19513sed 's/^/| /' conftest.$ac_ext >&5
19514
19515 ac_cv_func_isinf_in_cmath=no
19516fi
19517
19518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19519 ac_ext=c
19520ac_cpp='$CPP $CPPFLAGS'
19521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19523ac_compiler_gnu=$ac_cv_c_compiler_gnu
19524
19525fi
19526{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19527echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19528
19529if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19530
19531cat >>confdefs.h <<\_ACEOF
19532#define HAVE_ISINF_IN_CMATH 1
19533_ACEOF
19534
19535fi
19536
19537{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19538echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19539if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19540 echo $ECHO_N "(cached) $ECHO_C" >&6
19541else
19542 ac_ext=cpp
19543ac_cpp='$CXXCPP $CPPFLAGS'
19544ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19545ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19546ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19547
19548 cat >conftest.$ac_ext <<_ACEOF
19549/* confdefs.h. */
19550_ACEOF
19551cat confdefs.h >>conftest.$ac_ext
19552cat >>conftest.$ac_ext <<_ACEOF
19553/* end confdefs.h. */
19554#include <cmath>
19555int
19556main ()
19557{
19558float f; std::isinf(f)}
19559 ;
19560 return 0;
19561}
19562_ACEOF
19563rm -f conftest.$ac_objext
19564if { (ac_try="$ac_compile"
19565case "(($ac_try" in
19566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19567 *) ac_try_echo=$ac_try;;
19568esac
19569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19570 (eval "$ac_compile") 2>conftest.er1
19571 ac_status=$?
19572 grep -v '^ *+' conftest.er1 >conftest.err
19573 rm -f conftest.er1
19574 cat conftest.err >&5
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); } &&
19577 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19578 { (case "(($ac_try" in
19579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19580 *) ac_try_echo=$ac_try;;
19581esac
19582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19583 (eval "$ac_try") 2>&5
19584 ac_status=$?
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); }; } &&
19587 { ac_try='test -s conftest.$ac_objext'
19588 { (case "(($ac_try" in
19589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590 *) ac_try_echo=$ac_try;;
19591esac
19592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593 (eval "$ac_try") 2>&5
19594 ac_status=$?
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); }; }; then
19597 ac_cv_func_std_isinf_in_cmath=yes
19598else
19599 echo "$as_me: failed program was:" >&5
19600sed 's/^/| /' conftest.$ac_ext >&5
19601
19602 ac_cv_func_std_isinf_in_cmath=no
19603fi
19604
19605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19606 ac_ext=c
19607ac_cpp='$CPP $CPPFLAGS'
19608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19610ac_compiler_gnu=$ac_cv_c_compiler_gnu
19611
19612fi
19613{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19614echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19615
19616if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19617
19618cat >>confdefs.h <<\_ACEOF
19619#define HAVE_STD_ISINF_IN_CMATH 1
19620_ACEOF
19621
19622fi
19623
19624{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19625echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19626if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19627 echo $ECHO_N "(cached) $ECHO_C" >&6
19628else
19629 ac_ext=cpp
19630ac_cpp='$CXXCPP $CPPFLAGS'
19631ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19632ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19633ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19634
19635 cat >conftest.$ac_ext <<_ACEOF
19636/* confdefs.h. */
19637_ACEOF
19638cat confdefs.h >>conftest.$ac_ext
19639cat >>conftest.$ac_ext <<_ACEOF
19640/* end confdefs.h. */
19641#include <ieeefp.h>
19642int
19643main ()
19644{
19645float f; finite(f);
19646 ;
19647 return 0;
19648}
19649_ACEOF
19650rm -f conftest.$ac_objext
19651if { (ac_try="$ac_compile"
19652case "(($ac_try" in
19653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19654 *) ac_try_echo=$ac_try;;
19655esac
19656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19657 (eval "$ac_compile") 2>conftest.er1
19658 ac_status=$?
19659 grep -v '^ *+' conftest.er1 >conftest.err
19660 rm -f conftest.er1
19661 cat conftest.err >&5
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); } &&
19664 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19665 { (case "(($ac_try" in
19666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19667 *) ac_try_echo=$ac_try;;
19668esac
19669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19670 (eval "$ac_try") 2>&5
19671 ac_status=$?
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; } &&
19674 { ac_try='test -s conftest.$ac_objext'
19675 { (case "(($ac_try" in
19676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19677 *) ac_try_echo=$ac_try;;
19678esac
19679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19680 (eval "$ac_try") 2>&5
19681 ac_status=$?
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); }; }; then
19684 ac_cv_func_finite_in_ieeefp_h=yes
19685else
19686 echo "$as_me: failed program was:" >&5
19687sed 's/^/| /' conftest.$ac_ext >&5
19688
19689 ac_cv_func_finite_in_ieeefp_h=no
19690fi
19691
19692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19693 ac_ext=c
19694ac_cpp='$CPP $CPPFLAGS'
19695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19697ac_compiler_gnu=$ac_cv_c_compiler_gnu
19698
19699fi
19700{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19701echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19702
19703if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19704
19705cat >>confdefs.h <<\_ACEOF
19706#define HAVE_FINITE_IN_IEEEFP_H 1
19707_ACEOF
19708
19709fi
19710
19711
19712
19713if test "$llvm_cv_platform_type" = "Unix" ; then
19714
19715
19716for ac_header in stdlib.h unistd.h
19717do
19718as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19719if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19720 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19722if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19723 echo $ECHO_N "(cached) $ECHO_C" >&6
19724fi
19725ac_res=`eval echo '${'$as_ac_Header'}'`
19726 { echo "$as_me:$LINENO: result: $ac_res" >&5
19727echo "${ECHO_T}$ac_res" >&6; }
19728else
19729 # Is the header compilable?
19730{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19731echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19732cat >conftest.$ac_ext <<_ACEOF
19733/* confdefs.h. */
19734_ACEOF
19735cat confdefs.h >>conftest.$ac_ext
19736cat >>conftest.$ac_ext <<_ACEOF
19737/* end confdefs.h. */
19738$ac_includes_default
19739#include <$ac_header>
19740_ACEOF
19741rm -f conftest.$ac_objext
19742if { (ac_try="$ac_compile"
19743case "(($ac_try" in
19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19746esac
19747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19748 (eval "$ac_compile") 2>conftest.er1
19749 ac_status=$?
19750 grep -v '^ *+' conftest.er1 >conftest.err
19751 rm -f conftest.er1
19752 cat conftest.err >&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); } &&
19755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19756 { (case "(($ac_try" in
19757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19758 *) ac_try_echo=$ac_try;;
19759esac
19760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19761 (eval "$ac_try") 2>&5
19762 ac_status=$?
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); }; } &&
19765 { ac_try='test -s conftest.$ac_objext'
19766 { (case "(($ac_try" in
19767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19768 *) ac_try_echo=$ac_try;;
19769esac
19770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19771 (eval "$ac_try") 2>&5
19772 ac_status=$?
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; }; then
19775 ac_header_compiler=yes
19776else
19777 echo "$as_me: failed program was:" >&5
19778sed 's/^/| /' conftest.$ac_ext >&5
19779
19780 ac_header_compiler=no
19781fi
19782
19783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19784{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19785echo "${ECHO_T}$ac_header_compiler" >&6; }
19786
19787# Is the header present?
19788{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19789echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19790cat >conftest.$ac_ext <<_ACEOF
19791/* confdefs.h. */
19792_ACEOF
19793cat confdefs.h >>conftest.$ac_ext
19794cat >>conftest.$ac_ext <<_ACEOF
19795/* end confdefs.h. */
19796#include <$ac_header>
19797_ACEOF
19798if { (ac_try="$ac_cpp conftest.$ac_ext"
19799case "(($ac_try" in
19800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801 *) ac_try_echo=$ac_try;;
19802esac
19803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19805 ac_status=$?
19806 grep -v '^ *+' conftest.er1 >conftest.err
19807 rm -f conftest.er1
19808 cat conftest.err >&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } >/dev/null; then
19811 if test -s conftest.err; then
19812 ac_cpp_err=$ac_c_preproc_warn_flag
19813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19814 else
19815 ac_cpp_err=
19816 fi
19817else
19818 ac_cpp_err=yes
19819fi
19820if test -z "$ac_cpp_err"; then
19821 ac_header_preproc=yes
19822else
19823 echo "$as_me: failed program was:" >&5
19824sed 's/^/| /' conftest.$ac_ext >&5
19825
19826 ac_header_preproc=no
19827fi
19828
19829rm -f conftest.err conftest.$ac_ext
19830{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19831echo "${ECHO_T}$ac_header_preproc" >&6; }
19832
19833# So? What about this header?
19834case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19835 yes:no: )
19836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19837echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19839echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19840 ac_header_preproc=yes
19841 ;;
19842 no:yes:* )
19843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19844echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19846echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19847 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19848echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19849 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19850echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19852echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19853 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19854echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19855 ( cat <<\_ASBOX
19856## ------------------------------ ##
19857## Report this to bugs@yourdomain ##
19858## ------------------------------ ##
19859_ASBOX
19860 ) | sed "s/^/$as_me: WARNING: /" >&2
19861 ;;
19862esac
19863{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19864echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19865if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19866 echo $ECHO_N "(cached) $ECHO_C" >&6
19867else
19868 eval "$as_ac_Header=\$ac_header_preproc"
19869fi
19870ac_res=`eval echo '${'$as_ac_Header'}'`
19871 { echo "$as_me:$LINENO: result: $ac_res" >&5
19872echo "${ECHO_T}$ac_res" >&6; }
19873
19874fi
19875if test `eval echo '${'$as_ac_Header'}'` = yes; then
19876 cat >>confdefs.h <<_ACEOF
19877#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19878_ACEOF
19879
19880fi
19881
19882done
19883
19884
19885for ac_func in getpagesize
19886do
19887as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19888{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19889echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19890if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19891 echo $ECHO_N "(cached) $ECHO_C" >&6
19892else
19893 cat >conftest.$ac_ext <<_ACEOF
19894/* confdefs.h. */
19895_ACEOF
19896cat confdefs.h >>conftest.$ac_ext
19897cat >>conftest.$ac_ext <<_ACEOF
19898/* end confdefs.h. */
19899/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19901#define $ac_func innocuous_$ac_func
19902
19903/* System header to define __stub macros and hopefully few prototypes,
19904 which can conflict with char $ac_func (); below.
19905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19906 <limits.h> exists even on freestanding compilers. */
19907
19908#ifdef __STDC__
19909# include <limits.h>
19910#else
19911# include <assert.h>
19912#endif
19913
19914#undef $ac_func
19915
19916/* Override any GCC internal prototype to avoid an error.
19917 Use char because int might match the return type of a GCC
19918 builtin and then its argument prototype would still apply. */
19919#ifdef __cplusplus
19920extern "C"
19921#endif
19922char $ac_func ();
19923/* The GNU C library defines this for functions which it implements
19924 to always fail with ENOSYS. Some functions are actually named
19925 something starting with __ and the normal name is an alias. */
19926#if defined __stub_$ac_func || defined __stub___$ac_func
19927choke me
19928#endif
19929
19930int
19931main ()
19932{
19933return $ac_func ();
19934 ;
19935 return 0;
19936}
19937_ACEOF
19938rm -f conftest.$ac_objext conftest$ac_exeext
19939if { (ac_try="$ac_link"
19940case "(($ac_try" in
19941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19942 *) ac_try_echo=$ac_try;;
19943esac
19944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19945 (eval "$ac_link") 2>conftest.er1
19946 ac_status=$?
19947 grep -v '^ *+' conftest.er1 >conftest.err
19948 rm -f conftest.er1
19949 cat conftest.err >&5
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); } &&
19952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19953 { (case "(($ac_try" in
19954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19955 *) ac_try_echo=$ac_try;;
19956esac
19957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19958 (eval "$ac_try") 2>&5
19959 ac_status=$?
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); }; } &&
19962 { ac_try='test -s conftest$ac_exeext'
19963 { (case "(($ac_try" in
19964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19965 *) ac_try_echo=$ac_try;;
19966esac
19967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19968 (eval "$ac_try") 2>&5
19969 ac_status=$?
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); }; }; then
19972 eval "$as_ac_var=yes"
19973else
19974 echo "$as_me: failed program was:" >&5
19975sed 's/^/| /' conftest.$ac_ext >&5
19976
19977 eval "$as_ac_var=no"
19978fi
19979
19980rm -f core conftest.err conftest.$ac_objext \
19981 conftest$ac_exeext conftest.$ac_ext
19982fi
19983ac_res=`eval echo '${'$as_ac_var'}'`
19984 { echo "$as_me:$LINENO: result: $ac_res" >&5
19985echo "${ECHO_T}$ac_res" >&6; }
19986if test `eval echo '${'$as_ac_var'}'` = yes; then
19987 cat >>confdefs.h <<_ACEOF
19988#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19989_ACEOF
19990
19991fi
19992done
19993
19994{ echo "$as_me:$LINENO: checking for working mmap" >&5
19995echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19996if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19997 echo $ECHO_N "(cached) $ECHO_C" >&6
19998else
19999 if test "$cross_compiling" = yes; then
20000 ac_cv_func_mmap_fixed_mapped=no
20001else
20002 cat >conftest.$ac_ext <<_ACEOF
20003/* confdefs.h. */
20004_ACEOF
20005cat confdefs.h >>conftest.$ac_ext
20006cat >>conftest.$ac_ext <<_ACEOF
20007/* end confdefs.h. */
20008$ac_includes_default
20009/* malloc might have been renamed as rpl_malloc. */
20010#undef malloc
20011
20012/* Thanks to Mike Haertel and Jim Avera for this test.
20013 Here is a matrix of mmap possibilities:
20014 mmap private not fixed
20015 mmap private fixed at somewhere currently unmapped
20016 mmap private fixed at somewhere already mapped
20017 mmap shared not fixed
20018 mmap shared fixed at somewhere currently unmapped
20019 mmap shared fixed at somewhere already mapped
20020 For private mappings, we should verify that changes cannot be read()
20021 back from the file, nor mmap's back from the file at a different
20022 address. (There have been systems where private was not correctly
20023 implemented like the infamous i386 svr4.0, and systems where the
20024 VM page cache was not coherent with the file system buffer cache
20025 like early versions of FreeBSD and possibly contemporary NetBSD.)
20026 For shared mappings, we should conversely verify that changes get
20027 propagated back to all the places they're supposed to be.
20028
20029 Grep wants private fixed already mapped.
20030 The main things grep needs to know about mmap are:
20031 * does it exist and is it safe to write into the mmap'd area
20032 * how to use it (BSD variants) */
20033
20034#include <fcntl.h>
20035#include <sys/mman.h>
20036
20037#if !STDC_HEADERS && !HAVE_STDLIB_H
20038char *malloc ();
20039#endif
20040
20041/* This mess was copied from the GNU getpagesize.h. */
20042#if !HAVE_GETPAGESIZE
20043/* Assume that all systems that can run configure have sys/param.h. */
20044# if !HAVE_SYS_PARAM_H
20045# define HAVE_SYS_PARAM_H 1
20046# endif
20047
20048# ifdef _SC_PAGESIZE
20049# define getpagesize() sysconf(_SC_PAGESIZE)
20050# else /* no _SC_PAGESIZE */
20051# if HAVE_SYS_PARAM_H
20052# include <sys/param.h>
20053# ifdef EXEC_PAGESIZE
20054# define getpagesize() EXEC_PAGESIZE
20055# else /* no EXEC_PAGESIZE */
20056# ifdef NBPG
20057# define getpagesize() NBPG * CLSIZE
20058# ifndef CLSIZE
20059# define CLSIZE 1
20060# endif /* no CLSIZE */
20061# else /* no NBPG */
20062# ifdef NBPC
20063# define getpagesize() NBPC
20064# else /* no NBPC */
20065# ifdef PAGESIZE
20066# define getpagesize() PAGESIZE
20067# endif /* PAGESIZE */
20068# endif /* no NBPC */
20069# endif /* no NBPG */
20070# endif /* no EXEC_PAGESIZE */
20071# else /* no HAVE_SYS_PARAM_H */
20072# define getpagesize() 8192 /* punt totally */
20073# endif /* no HAVE_SYS_PARAM_H */
20074# endif /* no _SC_PAGESIZE */
20075
20076#endif /* no HAVE_GETPAGESIZE */
20077
20078int
20079main ()
20080{
20081 char *data, *data2, *data3;
20082 int i, pagesize;
20083 int fd;
20084
20085 pagesize = getpagesize ();
20086
20087 /* First, make a file with some known garbage in it. */
20088 data = (char *) malloc (pagesize);
20089 if (!data)
20090 return 1;
20091 for (i = 0; i < pagesize; ++i)
20092 *(data + i) = rand ();
20093 umask (0);
20094 fd = creat ("conftest.mmap", 0600);
20095 if (fd < 0)
20096 return 1;
20097 if (write (fd, data, pagesize) != pagesize)
20098 return 1;
20099 close (fd);
20100
20101 /* Next, try to mmap the file at a fixed address which already has
20102 something else allocated at it. If we can, also make sure that
20103 we see the same garbage. */
20104 fd = open ("conftest.mmap", O_RDWR);
20105 if (fd < 0)
20106 return 1;
20107 data2 = (char *) malloc (2 * pagesize);
20108 if (!data2)
20109 return 1;
20110 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20111 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20112 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20113 return 1;
20114 for (i = 0; i < pagesize; ++i)
20115 if (*(data + i) != *(data2 + i))
20116 return 1;
20117
20118 /* Finally, make sure that changes to the mapped area do not
20119 percolate back to the file as seen by read(). (This is a bug on
20120 some variants of i386 svr4.0.) */
20121 for (i = 0; i < pagesize; ++i)
20122 *(data2 + i) = *(data2 + i) + 1;
20123 data3 = (char *) malloc (pagesize);
20124 if (!data3)
20125 return 1;
20126 if (read (fd, data3, pagesize) != pagesize)
20127 return 1;
20128 for (i = 0; i < pagesize; ++i)
20129 if (*(data + i) != *(data3 + i))
20130 return 1;
20131 close (fd);
20132 return 0;
20133}
20134_ACEOF
20135rm -f conftest$ac_exeext
20136if { (ac_try="$ac_link"
20137case "(($ac_try" in
20138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139 *) ac_try_echo=$ac_try;;
20140esac
20141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20142 (eval "$ac_link") 2>&5
20143 ac_status=$?
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20146 { (case "(($ac_try" in
20147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148 *) ac_try_echo=$ac_try;;
20149esac
20150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151 (eval "$ac_try") 2>&5
20152 ac_status=$?
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); }; }; then
20155 ac_cv_func_mmap_fixed_mapped=yes
20156else
20157 echo "$as_me: program exited with status $ac_status" >&5
20158echo "$as_me: failed program was:" >&5
20159sed 's/^/| /' conftest.$ac_ext >&5
20160
20161( exit $ac_status )
20162ac_cv_func_mmap_fixed_mapped=no
20163fi
20164rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20165fi
20166
20167
20168fi
20169{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20170echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20171if test $ac_cv_func_mmap_fixed_mapped = yes; then
20172
20173cat >>confdefs.h <<\_ACEOF
20174#define HAVE_MMAP 1
20175_ACEOF
20176
20177fi
20178rm -f conftest.mmap
20179
20180 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20181echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20182if test "${ac_cv_func_mmap_file+set}" = set; then
20183 echo $ECHO_N "(cached) $ECHO_C" >&6
20184else
20185 ac_ext=c
20186ac_cpp='$CPP $CPPFLAGS'
20187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20189ac_compiler_gnu=$ac_cv_c_compiler_gnu
20190
20191 if test "$cross_compiling" = yes; then
20192 ac_cv_func_mmap_file=no
20193else
20194 cat >conftest.$ac_ext <<_ACEOF
20195
20196 /* confdefs.h. */
20197_ACEOF
20198cat confdefs.h >>conftest.$ac_ext
20199cat >>conftest.$ac_ext <<_ACEOF
20200/* end confdefs.h. */
20201
20202#include <sys/types.h>
20203#include <sys/mman.h>
20204#include <fcntl.h>
20205
20206int
20207main ()
20208{
20209
20210 int fd;
20211 fd = creat ("foo",0777);
20212 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20213 unlink ("foo");
20214 return (fd != (int) MAP_FAILED);
20215 ;
20216 return 0;
20217}
20218_ACEOF
20219rm -f conftest$ac_exeext
20220if { (ac_try="$ac_link"
20221case "(($ac_try" in
20222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20224esac
20225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226 (eval "$ac_link") 2>&5
20227 ac_status=$?
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20230 { (case "(($ac_try" in
20231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232 *) ac_try_echo=$ac_try;;
20233esac
20234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235 (eval "$ac_try") 2>&5
20236 ac_status=$?
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); }; }; then
20239 ac_cv_func_mmap_file=yes
20240else
20241 echo "$as_me: program exited with status $ac_status" >&5
20242echo "$as_me: failed program was:" >&5
20243sed 's/^/| /' conftest.$ac_ext >&5
20244
20245( exit $ac_status )
20246ac_cv_func_mmap_file=no
20247fi
20248rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20249fi
20250
20251
20252 ac_ext=c
20253ac_cpp='$CPP $CPPFLAGS'
20254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20256ac_compiler_gnu=$ac_cv_c_compiler_gnu
20257
20258
20259fi
20260{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20261echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20262if test "$ac_cv_func_mmap_file" = yes; then
20263
20264cat >>confdefs.h <<\_ACEOF
20265#define HAVE_MMAP_FILE
20266_ACEOF
20267
20268 MMAP_FILE=yes
20269
20270fi
20271
20272 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20273echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20274if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20275 echo $ECHO_N "(cached) $ECHO_C" >&6
20276else
20277 if test "$llvm_cv_os_type" = "Interix" ; then
20278 ac_cv_need_dev_zero_for_mmap=yes
20279 else
20280 ac_cv_need_dev_zero_for_mmap=no
20281 fi
20282
20283fi
20284{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20285echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20286if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20287
20288cat >>confdefs.h <<\_ACEOF
20289#define NEED_DEV_ZERO_FOR_MMAP 1
20290_ACEOF
20291
20292fi
20293
20294 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20295 then
20296 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20297echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20298 fi
20299 if test "$ac_cv_func_mmap_file" = "no"
20300 then
20301 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20302echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20303 fi
20304fi
20305
20306{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20307echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20308ac_ext=cpp
20309ac_cpp='$CXXCPP $CPPFLAGS'
20310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20313
20314cat >conftest.$ac_ext <<_ACEOF
20315/* confdefs.h. */
20316_ACEOF
20317cat confdefs.h >>conftest.$ac_ext
20318cat >>conftest.$ac_ext <<_ACEOF
20319/* end confdefs.h. */
20320int main() {
20321 volatile unsigned long val = 1;
20322 __sync_synchronize();
20323 __sync_val_compare_and_swap(&val, 1, 0);
20324 __sync_add_and_fetch(&val, 1);
20325 __sync_sub_and_fetch(&val, 1);
20326 return 0;
20327 }
20328
20329_ACEOF
20330rm -f conftest.$ac_objext conftest$ac_exeext
20331if { (ac_try="$ac_link"
20332case "(($ac_try" in
20333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20334 *) ac_try_echo=$ac_try;;
20335esac
20336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20337 (eval "$ac_link") 2>conftest.er1
20338 ac_status=$?
20339 grep -v '^ *+' conftest.er1 >conftest.err
20340 rm -f conftest.er1
20341 cat conftest.err >&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); } &&
20344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20345 { (case "(($ac_try" in
20346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20347 *) ac_try_echo=$ac_try;;
20348esac
20349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20350 (eval "$ac_try") 2>&5
20351 ac_status=$?
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); }; } &&
20354 { ac_try='test -s conftest$ac_exeext'
20355 { (case "(($ac_try" in
20356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20357 *) ac_try_echo=$ac_try;;
20358esac
20359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20360 (eval "$ac_try") 2>&5
20361 ac_status=$?
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; }; then
20364 ac_ext=c
20365ac_cpp='$CPP $CPPFLAGS'
20366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20368ac_compiler_gnu=$ac_cv_c_compiler_gnu
20369
20370 { echo "$as_me:$LINENO: result: yes" >&5
20371echo "${ECHO_T}yes" >&6; }
20372
20373cat >>confdefs.h <<\_ACEOF
20374#define LLVM_HAS_ATOMICS 1
20375_ACEOF
20376
20377else
20378 echo "$as_me: failed program was:" >&5
20379sed 's/^/| /' conftest.$ac_ext >&5
20380
20381 { echo "$as_me:$LINENO: result: no" >&5
20382echo "${ECHO_T}no" >&6; }
20383
20384cat >>confdefs.h <<\_ACEOF
20385#define LLVM_HAS_ATOMICS 0
20386_ACEOF
20387
20388 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20389echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20390fi
20391
20392rm -f core conftest.err conftest.$ac_objext \
20393 conftest$ac_exeext conftest.$ac_ext
20394
20395
20396if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20397 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20398echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20399if test "${llvm_cv_linux_mixed+set}" = set; then
20400 echo $ECHO_N "(cached) $ECHO_C" >&6
20401else
20402 ac_ext=c
20403ac_cpp='$CPP $CPPFLAGS'
20404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20406ac_compiler_gnu=$ac_cv_c_compiler_gnu
20407
20408 cat >conftest.$ac_ext <<_ACEOF
20409/* confdefs.h. */
20410_ACEOF
20411cat confdefs.h >>conftest.$ac_ext
20412cat >>conftest.$ac_ext <<_ACEOF
20413/* end confdefs.h. */
20414#ifndef __x86_64__
20415 error: Not x86-64 even if uname says so!
20416 #endif
20417
20418int
20419main ()
20420{
20421
20422 ;
20423 return 0;
20424}
20425_ACEOF
20426rm -f conftest.$ac_objext
20427if { (ac_try="$ac_compile"
20428case "(($ac_try" in
20429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20430 *) ac_try_echo=$ac_try;;
20431esac
20432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20433 (eval "$ac_compile") 2>conftest.er1
20434 ac_status=$?
20435 grep -v '^ *+' conftest.er1 >conftest.err
20436 rm -f conftest.er1
20437 cat conftest.err >&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); } &&
20440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20441 { (case "(($ac_try" in
20442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443 *) ac_try_echo=$ac_try;;
20444esac
20445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20446 (eval "$ac_try") 2>&5
20447 ac_status=$?
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; } &&
20450 { ac_try='test -s conftest.$ac_objext'
20451 { (case "(($ac_try" in
20452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20453 *) ac_try_echo=$ac_try;;
20454esac
20455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20456 (eval "$ac_try") 2>&5
20457 ac_status=$?
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); }; }; then
20460 llvm_cv_linux_mixed=no
20461else
20462 echo "$as_me: failed program was:" >&5
20463sed 's/^/| /' conftest.$ac_ext >&5
20464
20465 llvm_cv_linux_mixed=yes
20466fi
20467
20468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20469 ac_ext=c
20470ac_cpp='$CPP $CPPFLAGS'
20471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20473ac_compiler_gnu=$ac_cv_c_compiler_gnu
20474
20475
20476fi
20477{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20478echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20479
20480 if test "$llvm_cv_linux_mixed" = "yes"; then
20481 llvm_cv_target_arch="x86"
20482 ARCH="x86"
20483 fi
20484fi
20485
20486
20487for ac_func in __dso_handle
20488do
20489as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20490{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20491echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20492if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20493 echo $ECHO_N "(cached) $ECHO_C" >&6
20494else
20495 cat >conftest.$ac_ext <<_ACEOF
20496/* confdefs.h. */
20497_ACEOF
20498cat confdefs.h >>conftest.$ac_ext
20499cat >>conftest.$ac_ext <<_ACEOF
20500/* end confdefs.h. */
20501/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20503#define $ac_func innocuous_$ac_func
20504
20505/* System header to define __stub macros and hopefully few prototypes,
20506 which can conflict with char $ac_func (); below.
20507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20508 <limits.h> exists even on freestanding compilers. */
20509
20510#ifdef __STDC__
20511# include <limits.h>
20512#else
20513# include <assert.h>
20514#endif
20515
20516#undef $ac_func
20517
20518/* Override any GCC internal prototype to avoid an error.
20519 Use char because int might match the return type of a GCC
20520 builtin and then its argument prototype would still apply. */
20521#ifdef __cplusplus
20522extern "C"
20523#endif
20524char $ac_func ();
20525/* The GNU C library defines this for functions which it implements
20526 to always fail with ENOSYS. Some functions are actually named
20527 something starting with __ and the normal name is an alias. */
20528#if defined __stub_$ac_func || defined __stub___$ac_func
20529choke me
20530#endif
20531
20532int
20533main ()
20534{
20535return $ac_func ();
20536 ;
20537 return 0;
20538}
20539_ACEOF
20540rm -f conftest.$ac_objext conftest$ac_exeext
20541if { (ac_try="$ac_link"
20542case "(($ac_try" in
20543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20544 *) ac_try_echo=$ac_try;;
20545esac
20546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20547 (eval "$ac_link") 2>conftest.er1
20548 ac_status=$?
20549 grep -v '^ *+' conftest.er1 >conftest.err
20550 rm -f conftest.er1
20551 cat conftest.err >&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); } &&
20554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20555 { (case "(($ac_try" in
20556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20557 *) ac_try_echo=$ac_try;;
20558esac
20559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20560 (eval "$ac_try") 2>&5
20561 ac_status=$?
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); }; } &&
20564 { ac_try='test -s conftest$ac_exeext'
20565 { (case "(($ac_try" in
20566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20567 *) ac_try_echo=$ac_try;;
20568esac
20569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20570 (eval "$ac_try") 2>&5
20571 ac_status=$?
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); }; }; then
20574 eval "$as_ac_var=yes"
20575else
20576 echo "$as_me: failed program was:" >&5
20577sed 's/^/| /' conftest.$ac_ext >&5
20578
20579 eval "$as_ac_var=no"
20580fi
20581
20582rm -f core conftest.err conftest.$ac_objext \
20583 conftest$ac_exeext conftest.$ac_ext
20584fi
20585ac_res=`eval echo '${'$as_ac_var'}'`
20586 { echo "$as_me:$LINENO: result: $ac_res" >&5
20587echo "${ECHO_T}$ac_res" >&6; }
20588if test `eval echo '${'$as_ac_var'}'` = yes; then
20589 cat >>confdefs.h <<_ACEOF
20590#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20591_ACEOF
20592
20593fi
20594done
20595
20596
20597SHLIBEXT=$libltdl_cv_shlibext
20598
20599
20600SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20601
20602
20603# Translate the various configuration directories and other basic
20604# information into substitutions that will end up in Makefile.config.in
20605# that these configured values can be used by the makefiles
20606if test "${prefix}" = "NONE" ; then
20607 prefix="/usr/local"
20608fi
20609eval LLVM_PREFIX="${prefix}";
20610eval LLVM_BINDIR="${prefix}/bin";
20611eval LLVM_LIBDIR="${prefix}/lib";
20612eval LLVM_DATADIR="${prefix}/share/llvm";
20613eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20614eval LLVM_ETCDIR="${prefix}/etc/llvm";
20615eval LLVM_INCLUDEDIR="${prefix}/include";
20616eval LLVM_INFODIR="${prefix}/info";
20617eval LLVM_MANDIR="${prefix}/man";
20618LLVM_CONFIGTIME=`date`
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630# Place the various directores into the config.h file as #defines so that we
20631# can know about the installation paths within LLVM.
20632
20633cat >>confdefs.h <<_ACEOF
20634#define LLVM_PREFIX "$LLVM_PREFIX"
20635_ACEOF
20636
20637
20638cat >>confdefs.h <<_ACEOF
20639#define LLVM_BINDIR "$LLVM_BINDIR"
20640_ACEOF
20641
20642
20643cat >>confdefs.h <<_ACEOF
20644#define LLVM_LIBDIR "$LLVM_LIBDIR"
20645_ACEOF
20646
20647
20648cat >>confdefs.h <<_ACEOF
20649#define LLVM_DATADIR "$LLVM_DATADIR"
20650_ACEOF
20651
20652
20653cat >>confdefs.h <<_ACEOF
20654#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20655_ACEOF
20656
20657
20658cat >>confdefs.h <<_ACEOF
20659#define LLVM_ETCDIR "$LLVM_ETCDIR"
20660_ACEOF
20661
20662
20663cat >>confdefs.h <<_ACEOF
20664#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20665_ACEOF
20666
20667
20668cat >>confdefs.h <<_ACEOF
20669#define LLVM_INFODIR "$LLVM_INFODIR"
20670_ACEOF
20671
20672
20673cat >>confdefs.h <<_ACEOF
20674#define LLVM_MANDIR "$LLVM_MANDIR"
20675_ACEOF
20676
20677
20678cat >>confdefs.h <<_ACEOF
20679#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20680_ACEOF
20681
20682
20683cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020684#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020685_ACEOF
20686
20687
20688# Determine which bindings to build.
20689if test "$BINDINGS_TO_BUILD" = auto ; then
20690 BINDINGS_TO_BUILD=""
20691 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20692 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20693 fi
20694fi
20695BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20696
20697
20698# This isn't really configurey, but it avoids having to repeat the list in
20699# other files.
20700ALL_BINDINGS=ocaml
20701
20702
20703# Do any work necessary to ensure that bindings have what they need.
20704binding_prereqs_failed=0
20705for a_binding in $BINDINGS_TO_BUILD ; do
20706 case "$a_binding" in
20707 ocaml)
20708 if test "x$OCAMLC" = x ; then
20709 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20710echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20711 binding_prereqs_failed=1
20712 fi
20713 if test "x$OCAMLDEP" = x ; then
20714 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20715echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20716 binding_prereqs_failed=1
20717 fi
20718 if test "x$OCAMLOPT" = x ; then
20719 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20720echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20721 fi
20722 if test "x$with_ocaml_libdir" != xauto ; then
20723 OCAML_LIBDIR=$with_ocaml_libdir
20724
20725 else
20726 ocaml_stdlib="`"$OCAMLC" -where`"
20727 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20728 then
20729 # ocaml stdlib is beneath our prefix; use stdlib
20730 OCAML_LIBDIR=$ocaml_stdlib
20731
20732 else
20733 # ocaml stdlib is outside our prefix; use libdir/ocaml
20734 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20735
20736 fi
20737 fi
20738 ;;
20739 esac
20740done
20741if test "$binding_prereqs_failed" = 1 ; then
20742 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20743echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20744 { (exit 1); exit 1; }; }
20745fi
20746
20747{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20748echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20749if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20750 echo $ECHO_N "(cached) $ECHO_C" >&6
20751else
20752 ac_ext=cpp
20753ac_cpp='$CXXCPP $CPPFLAGS'
20754ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20755ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20756ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20757
20758 oldcxxflags="$CXXFLAGS"
20759 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20760 cat >conftest.$ac_ext <<_ACEOF
20761/* confdefs.h. */
20762_ACEOF
20763cat confdefs.h >>conftest.$ac_ext
20764cat >>conftest.$ac_ext <<_ACEOF
20765/* end confdefs.h. */
20766
20767int
20768main ()
20769{
20770
20771 ;
20772 return 0;
20773}
20774_ACEOF
20775rm -f conftest.$ac_objext
20776if { (ac_try="$ac_compile"
20777case "(($ac_try" in
20778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20779 *) ac_try_echo=$ac_try;;
20780esac
20781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20782 (eval "$ac_compile") 2>conftest.er1
20783 ac_status=$?
20784 grep -v '^ *+' conftest.er1 >conftest.err
20785 rm -f conftest.er1
20786 cat conftest.err >&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } &&
20789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20790 { (case "(($ac_try" in
20791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792 *) ac_try_echo=$ac_try;;
20793esac
20794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20795 (eval "$ac_try") 2>&5
20796 ac_status=$?
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); }; } &&
20799 { ac_try='test -s conftest.$ac_objext'
20800 { (case "(($ac_try" in
20801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802 *) ac_try_echo=$ac_try;;
20803esac
20804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20805 (eval "$ac_try") 2>&5
20806 ac_status=$?
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); }; }; then
20809 llvm_cv_cxx_visibility_inlines_hidden=yes
20810else
20811 echo "$as_me: failed program was:" >&5
20812sed 's/^/| /' conftest.$ac_ext >&5
20813
20814 llvm_cv_cxx_visibility_inlines_hidden=no
20815fi
20816
20817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20818 CXXFLAGS="$oldcxxflags"
20819 ac_ext=c
20820ac_cpp='$CPP $CPPFLAGS'
20821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20823ac_compiler_gnu=$ac_cv_c_compiler_gnu
20824
20825
20826fi
20827{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20828echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20829if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20830 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20831
20832else
20833 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20834
20835fi
20836
20837
20838if test "$llvm_cv_link_use_r" = "yes" ; then
20839 RPATH="-Wl,-R"
20840else
20841 RPATH="-Wl,-rpath"
20842fi
20843
20844
20845if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20846 RDYNAMIC="-Wl,-export-dynamic"
20847else
20848 RDYNAMIC=""
20849fi
20850
20851
20852
Reid Spencer421ec052005-02-24 18:53:47 +000020853
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020854ac_config_files="$ac_config_files Makefile.common"
John Criswell451f67f2003-10-16 01:45:35 +000020855
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020856ac_config_files="$ac_config_files Makefile.llvm.config"
20857
John Criswell451f67f2003-10-16 01:45:35 +000020858
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020859ac_config_commands="$ac_config_commands Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020860
20861
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020862ac_config_commands="$ac_config_commands lib/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020863
20864
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020865ac_config_commands="$ac_config_commands lib/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020866
20867
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020868ac_config_commands="$ac_config_commands tools/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020869
20870
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020871ac_config_commands="$ac_config_commands tools/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020872
20873
20874
John Criswell451f67f2003-10-16 01:45:35 +000020875cat >confcache <<\_ACEOF
20876# This file is a shell script that caches the results of configure
20877# tests run on this system so they can be shared between configure
20878# scripts and configure runs, see configure's option --config-cache.
20879# It is not useful on other systems. If it contains results you don't
20880# want to keep, you may remove or edit it.
20881#
20882# config.status only pays attention to the cache file if you give it
20883# the --recheck option to rerun configure.
20884#
20885# `ac_cv_env_foo' variables (set or unset) will be overridden when
20886# loading this file, other *unset* `ac_cv_foo' will be assigned the
20887# following values.
20888
20889_ACEOF
20890
20891# The following way of writing the cache mishandles newlines in values,
20892# but we know of no workaround that is simple, portable, and efficient.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020893# So, we kill variables containing newlines.
John Criswell451f67f2003-10-16 01:45:35 +000020894# Ultrix sh set writes to stderr and can't be redirected directly,
20895# and sets the high bit in the cache file unless we assign to the vars.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020896(
20897 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20898 eval ac_val=\$$ac_var
20899 case $ac_val in #(
20900 *${as_nl}*)
20901 case $ac_var in #(
20902 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20903echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20904 esac
20905 case $ac_var in #(
20906 _ | IFS | as_nl) ;; #(
20907 *) $as_unset $ac_var ;;
20908 esac ;;
20909 esac
20910 done
20911
John Criswell451f67f2003-10-16 01:45:35 +000020912 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020913 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20914 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +000020915 # `set' does not quote correctly, so add quotes (double-quote
20916 # substitution turns \\\\ into \\, and sed turns \\ into \).
20917 sed -n \
Reid Spencer9964cd82005-01-01 09:26:55 +000020918 "s/'/'\\\\''/g;
20919 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020920 ;; #(
John Criswell451f67f2003-10-16 01:45:35 +000020921 *)
20922 # `set' quotes correctly as required by POSIX, so do not add quotes.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020923 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell451f67f2003-10-16 01:45:35 +000020924 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020925 esac |
20926 sort
20927) |
John Criswell451f67f2003-10-16 01:45:35 +000020928 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020929 /^ac_cv_env_/b end
John Criswell451f67f2003-10-16 01:45:35 +000020930 t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020931 :clear
John Criswell451f67f2003-10-16 01:45:35 +000020932 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20933 t end
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020934 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20935 :end' >>confcache
20936if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20937 if test -w "$cache_file"; then
20938 test "x$cache_file" != "x/dev/null" &&
20939 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20940echo "$as_me: updating cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000020941 cat confcache >$cache_file
20942 else
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020943 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20944echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000020945 fi
20946fi
20947rm -f confcache
20948
20949test "x$prefix" = xNONE && prefix=$ac_default_prefix
20950# Let make expand exec_prefix.
20951test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20952
John Criswell451f67f2003-10-16 01:45:35 +000020953# Transform confdefs.h into DEFS.
20954# Protect against shell expansion while executing Makefile rules.
20955# Protect against Makefile macro expansion.
20956#
20957# If the first sed substitution is executed (which looks for macros that
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020958# take arguments), then branch to the quote section. Otherwise,
John Criswell451f67f2003-10-16 01:45:35 +000020959# look for a macro that doesn't take arguments.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020960ac_script='
John Criswell451f67f2003-10-16 01:45:35 +000020961t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020962:clear
20963s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000020964t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020965s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000020966t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020967b any
20968:quote
20969s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20970s/\[/\\&/g
20971s/\]/\\&/g
20972s/\$/$$/g
20973H
20974:any
20975${
20976 g
20977 s/^\n//
20978 s/\n/ /g
20979 p
20980}
20981'
20982DEFS=`sed -n "$ac_script" confdefs.h`
John Criswell451f67f2003-10-16 01:45:35 +000020983
20984
20985ac_libobjs=
20986ac_ltlibobjs=
20987for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20988 # 1. Remove the extension, and $U if already installed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020989 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20990 ac_i=`echo "$ac_i" | sed "$ac_script"`
20991 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20992 # will be set to the directory where LIBOBJS objects are built.
20993 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20994 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell451f67f2003-10-16 01:45:35 +000020995done
20996LIBOBJS=$ac_libobjs
20997
20998LTLIBOBJS=$ac_ltlibobjs
20999
21000
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021001if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21002 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21003Usually this means the macro was only invoked conditionally." >&5
21004echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21005Usually this means the macro was only invoked conditionally." >&2;}
21006 { (exit 1); exit 1; }; }
21007fi
21008if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21009 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21010Usually this means the macro was only invoked conditionally." >&5
21011echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21012Usually this means the macro was only invoked conditionally." >&2;}
21013 { (exit 1); exit 1; }; }
21014fi
John Criswell451f67f2003-10-16 01:45:35 +000021015
21016: ${CONFIG_STATUS=./config.status}
21017ac_clean_files_save=$ac_clean_files
21018ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21019{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21020echo "$as_me: creating $CONFIG_STATUS" >&6;}
21021cat >$CONFIG_STATUS <<_ACEOF
21022#! $SHELL
21023# Generated by $as_me.
21024# Run this file to recreate the current configuration.
21025# Compiler output produced by configure, useful for debugging
21026# configure, is in config.log if it exists.
21027
21028debug=false
21029ac_cs_recheck=false
21030ac_cs_silent=false
21031SHELL=\${CONFIG_SHELL-$SHELL}
21032_ACEOF
21033
21034cat >>$CONFIG_STATUS <<\_ACEOF
21035## --------------------- ##
21036## M4sh Initialization. ##
21037## --------------------- ##
21038
Dan Gohman324f6082009-03-25 00:52:11 +000021039# Be Bourne compatible
John Criswell451f67f2003-10-16 01:45:35 +000021040if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21041 emulate sh
21042 NULLCMD=:
21043 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21044 # is contrary to our usage. Disable this feature.
21045 alias -g '${1+"$@"}'='"$@"'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021046 setopt NO_GLOB_SUBST
21047else
21048 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohman324f6082009-03-25 00:52:11 +000021049fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021050BIN_SH=xpg4; export BIN_SH # for Tru64
Dan Gohman324f6082009-03-25 00:52:11 +000021051DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmand02a2812009-03-24 23:47:11 +000021052
John Criswell451f67f2003-10-16 01:45:35 +000021053
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021054# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +000021055# Avoid depending upon Character Ranges.
21056as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21057as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21058as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21059as_cr_digits='0123456789'
21060as_cr_alnum=$as_cr_Letters$as_cr_digits
21061
21062# The user is always right.
21063if test "${PATH_SEPARATOR+set}" != set; then
21064 echo "#! /bin/sh" >conf$$.sh
21065 echo "exit 0" >>conf$$.sh
21066 chmod +x conf$$.sh
21067 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21068 PATH_SEPARATOR=';'
21069 else
21070 PATH_SEPARATOR=:
21071 fi
21072 rm -f conf$$.sh
21073fi
21074
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021075# Support unset when possible.
21076if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21077 as_unset=unset
21078else
21079 as_unset=false
21080fi
John Criswell451f67f2003-10-16 01:45:35 +000021081
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021082
21083# IFS
21084# We need space, tab and new line, in precisely that order. Quoting is
21085# there to prevent editors from complaining about space-tab.
21086# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21087# splitting by setting IFS to empty value.)
21088as_nl='
21089'
21090IFS=" "" $as_nl"
21091
21092# Find who we are. Look in the path if we contain no directory separator.
21093case $0 in
21094 *[\\/]* ) as_myself=$0 ;;
21095 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +000021096for as_dir in $PATH
21097do
21098 IFS=$as_save_IFS
21099 test -z "$as_dir" && as_dir=.
21100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21101done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021102IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +000021103
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021104 ;;
21105esac
21106# We did not find ourselves, most probably we were run as `sh COMMAND'
21107# in which case we are not to be found in the path.
21108if test "x$as_myself" = x; then
21109 as_myself=$0
21110fi
21111if test ! -f "$as_myself"; then
21112 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21113 { (exit 1); exit 1; }
21114fi
21115
21116# Work around bugs in pre-3.0 UWIN ksh.
21117for as_var in ENV MAIL MAILPATH
21118do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21119done
21120PS1='$ '
21121PS2='> '
21122PS4='+ '
21123
21124# NLS nuisances.
21125for as_var in \
21126 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21127 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21128 LC_TELEPHONE LC_TIME
Dan Gohman324f6082009-03-25 00:52:11 +000021129do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021130 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21131 eval $as_var=C; export $as_var
21132 else
21133 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21134 fi
21135done
21136
21137# Required to use basename.
21138if expr a : '\(a\)' >/dev/null 2>&1 &&
21139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21140 as_expr=expr
21141else
21142 as_expr=false
21143fi
21144
21145if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21146 as_basename=basename
21147else
21148 as_basename=false
21149fi
21150
21151
21152# Name of the executable.
21153as_me=`$as_basename -- "$0" ||
21154$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21155 X"$0" : 'X\(//\)$' \| \
21156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21157echo X/"$0" |
21158 sed '/^.*\/\([^/][^/]*\)\/*$/{
21159 s//\1/
21160 q
21161 }
21162 /^X\/\(\/\/\)$/{
21163 s//\1/
21164 q
21165 }
21166 /^X\/\(\/\).*/{
21167 s//\1/
21168 q
21169 }
21170 s/.*/./; q'`
21171
21172# CDPATH.
21173$as_unset CDPATH
21174
21175
21176
John Criswell451f67f2003-10-16 01:45:35 +000021177 as_lineno_1=$LINENO
21178 as_lineno_2=$LINENO
John Criswell451f67f2003-10-16 01:45:35 +000021179 test "x$as_lineno_1" != "x$as_lineno_2" &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021180 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +000021181
21182 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21183 # uniformly replaced by the line number. The first 'sed' inserts a
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021184 # line-number line after each line using $LINENO; the second 'sed'
21185 # does the real work. The second script uses 'N' to pair each
21186 # line-number line with the line containing $LINENO, and appends
21187 # trailing '-' during substitution so that $LINENO is not a special
21188 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +000021189 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021190 # scripts with optimization help from Paolo Bonzini. Blame Lee
21191 # E. McMahon (1931-1989) for sed's syntax. :-)
21192 sed -n '
21193 p
21194 /[$]LINENO/=
21195 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +000021196 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021197 s/[$]LINENO.*/&-/
21198 t lineno
21199 b
21200 :lineno
John Criswell451f67f2003-10-16 01:45:35 +000021201 N
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021202 :loop
21203 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +000021204 t loop
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021205 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +000021206 ' >$as_me.lineno &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021207 chmod +x "$as_me.lineno" ||
21208 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell451f67f2003-10-16 01:45:35 +000021209 { (exit 1); exit 1; }; }
21210
21211 # Don't try to exec as it changes $[0], causing all sort of problems
21212 # (the dirname of $[0] is not the place where we might find the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021213 # original and so on. Autoconf is especially sensitive to this).
21214 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +000021215 # Exit status is that of the last command.
21216 exit
21217}
21218
21219
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021220if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21221 as_dirname=dirname
21222else
21223 as_dirname=false
21224fi
21225
21226ECHO_C= ECHO_N= ECHO_T=
21227case `echo -n x` in
21228-n*)
21229 case `echo 'x\c'` in
21230 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21231 *) ECHO_C='\c';;
21232 esac;;
21233*)
21234 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +000021235esac
21236
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021237if expr a : '\(a\)' >/dev/null 2>&1 &&
21238 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +000021239 as_expr=expr
21240else
21241 as_expr=false
21242fi
21243
21244rm -f conf$$ conf$$.exe conf$$.file
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021245if test -d conf$$.dir; then
21246 rm -f conf$$.dir/conf$$.file
21247else
21248 rm -f conf$$.dir
21249 mkdir conf$$.dir
21250fi
John Criswell451f67f2003-10-16 01:45:35 +000021251echo >conf$$.file
21252if ln -s conf$$.file conf$$ 2>/dev/null; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021253 as_ln_s='ln -s'
21254 # ... but there are two gotchas:
21255 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21256 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21257 # In both cases, we have to default to `cp -p'.
21258 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +000021259 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +000021260elif ln conf$$.file conf$$ 2>/dev/null; then
21261 as_ln_s=ln
21262else
21263 as_ln_s='cp -p'
21264fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021265rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21266rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +000021267
21268if mkdir -p . 2>/dev/null; then
21269 as_mkdir_p=:
21270else
Reid Spencer9964cd82005-01-01 09:26:55 +000021271 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +000021272 as_mkdir_p=false
21273fi
21274
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021275# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21276# systems may use methods other than mode bits to determine executability.
21277cat >conf$$.file <<_ASEOF
21278#! /bin/sh
21279exit 0
21280_ASEOF
21281chmod +x conf$$.file
21282if test -x conf$$.file >/dev/null 2>&1; then
21283 as_executable_p="test -x"
21284else
21285 as_executable_p=:
21286fi
21287rm -f conf$$.file
John Criswell451f67f2003-10-16 01:45:35 +000021288
21289# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021290as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021291
21292# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021293as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021294
21295
John Criswell451f67f2003-10-16 01:45:35 +000021296exec 6>&1
21297
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021298# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell451f67f2003-10-16 01:45:35 +000021299# report actual input values of CONFIG_FILES etc. instead of their
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021300# values after options handling.
21301ac_log="
John Criswell451f67f2003-10-16 01:45:35 +000021302This file was extended by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021303generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +000021304
21305 CONFIG_FILES = $CONFIG_FILES
21306 CONFIG_HEADERS = $CONFIG_HEADERS
21307 CONFIG_LINKS = $CONFIG_LINKS
21308 CONFIG_COMMANDS = $CONFIG_COMMANDS
21309 $ $0 $@
21310
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021311on `(hostname || uname -n) 2>/dev/null | sed 1q`
21312"
21313
John Criswell451f67f2003-10-16 01:45:35 +000021314_ACEOF
21315
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021316cat >>$CONFIG_STATUS <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021317# Files that config.status was made for.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021318config_files="$ac_config_files"
21319config_commands="$ac_config_commands"
John Criswell451f67f2003-10-16 01:45:35 +000021320
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021321_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021322
21323cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021324ac_cs_usage="\
21325\`$as_me' instantiates files from templates according to the
21326current configuration.
21327
21328Usage: $0 [OPTIONS] [FILE]...
21329
21330 -h, --help print this help, then exit
Dan Gohman324f6082009-03-25 00:52:11 +000021331 -V, --version print version number, then exit
John Criswell451f67f2003-10-16 01:45:35 +000021332 -q, --quiet do not print progress messages
21333 -d, --debug don't remove temporary files
21334 --recheck update $as_me by reconfiguring in the same conditions
21335 --file=FILE[:TEMPLATE]
Reid Spencer9964cd82005-01-01 09:26:55 +000021336 instantiate the configuration file FILE
John Criswell451f67f2003-10-16 01:45:35 +000021337
21338Configuration files:
21339$config_files
21340
21341Configuration commands:
21342$config_commands
21343
21344Report bugs to <bug-autoconf@gnu.org>."
Dan Gohman324f6082009-03-25 00:52:11 +000021345
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021346_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021347cat >>$CONFIG_STATUS <<_ACEOF
21348ac_cs_version="\\
21349[SAMPLE] config.status [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021350configured by $0, generated by GNU Autoconf 2.60,
21351 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell451f67f2003-10-16 01:45:35 +000021352
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021353Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +000021354This config.status script is free software; the Free Software Foundation
21355gives unlimited permission to copy, distribute and modify it."
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021356
21357ac_pwd='$ac_pwd'
21358srcdir='$srcdir'
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021359INSTALL='$INSTALL'
John Criswell451f67f2003-10-16 01:45:35 +000021360_ACEOF
21361
21362cat >>$CONFIG_STATUS <<\_ACEOF
21363# If no file are specified by the user, then we need to provide default
21364# value. By we need to know if files were specified by the user.
21365ac_need_defaults=:
21366while test $# != 0
21367do
21368 case $1 in
21369 --*=*)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021370 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21371 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell451f67f2003-10-16 01:45:35 +000021372 ac_shift=:
21373 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021374 *)
John Criswell451f67f2003-10-16 01:45:35 +000021375 ac_option=$1
21376 ac_optarg=$2
21377 ac_shift=shift
21378 ;;
John Criswell451f67f2003-10-16 01:45:35 +000021379 esac
21380
21381 case $ac_option in
21382 # Handling of the options.
John Criswell451f67f2003-10-16 01:45:35 +000021383 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21384 ac_cs_recheck=: ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021385 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21386 echo "$ac_cs_version"; exit ;;
21387 --debug | --debu | --deb | --de | --d | -d )
John Criswell451f67f2003-10-16 01:45:35 +000021388 debug=: ;;
21389 --file | --fil | --fi | --f )
21390 $ac_shift
21391 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21392 ac_need_defaults=false;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021393 --he | --h | --help | --hel | -h )
21394 echo "$ac_cs_usage"; exit ;;
John Criswell451f67f2003-10-16 01:45:35 +000021395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21396 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21397 ac_cs_silent=: ;;
21398
21399 # This is an error.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021400 -*) { echo "$as_me: error: unrecognized option: $1
21401Try \`$0 --help' for more information." >&2
John Criswell451f67f2003-10-16 01:45:35 +000021402 { (exit 1); exit 1; }; } ;;
21403
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021404 *) ac_config_targets="$ac_config_targets $1"
21405 ac_need_defaults=false ;;
John Criswell451f67f2003-10-16 01:45:35 +000021406
21407 esac
21408 shift
21409done
21410
21411ac_configure_extra_args=
21412
21413if $ac_cs_silent; then
21414 exec 6>/dev/null
21415 ac_configure_extra_args="$ac_configure_extra_args --silent"
21416fi
21417
21418_ACEOF
21419cat >>$CONFIG_STATUS <<_ACEOF
21420if \$ac_cs_recheck; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021421 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21422 CONFIG_SHELL=$SHELL
21423 export CONFIG_SHELL
21424 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell451f67f2003-10-16 01:45:35 +000021425fi
21426
21427_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021428cat >>$CONFIG_STATUS <<\_ACEOF
21429exec 5>>config.log
21430{
21431 echo
21432 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21433## Running $as_me. ##
21434_ASBOX
21435 echo "$ac_log"
21436} >&5
John Criswell451f67f2003-10-16 01:45:35 +000021437
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021438_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021439cat >>$CONFIG_STATUS <<_ACEOF
21440#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021441# INIT-COMMANDS
John Criswell451f67f2003-10-16 01:45:35 +000021442#
Reid Spencer421ec052005-02-24 18:53:47 +000021443llvm_src="${LLVM_SRC}"
John Criswell451f67f2003-10-16 01:45:35 +000021444
21445_ACEOF
21446
Dan Gohman324f6082009-03-25 00:52:11 +000021447cat >>$CONFIG_STATUS <<\_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021448
21449# Handling of arguments.
John Criswell451f67f2003-10-16 01:45:35 +000021450for ac_config_target in $ac_config_targets
21451do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021452 case $ac_config_target in
21453 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21454 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021455 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021456 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21457 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21458 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21459 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21460 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21461
John Criswell451f67f2003-10-16 01:45:35 +000021462 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21463echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21464 { (exit 1); exit 1; }; };;
21465 esac
21466done
21467
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021468
John Criswell451f67f2003-10-16 01:45:35 +000021469# If the user did not use the arguments to specify the items to instantiate,
21470# then the envvar interface is used. Set only those that are not.
21471# We use the long form for the default assignment because of an extremely
21472# bizarre bug on SunOS 4.1.3.
21473if $ac_need_defaults; then
21474 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21475 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21476fi
21477
21478# Have a temporary directory for convenience. Make it in the build tree
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021479# simply because there is no reason against having it here, and in addition,
John Criswell451f67f2003-10-16 01:45:35 +000021480# creating and moving files from /tmp can sometimes cause problems.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021481# Hook for its removal unless debugging.
21482# Note that there is a small window in which the directory will not be cleaned:
21483# after its creation but before its name has been assigned to `$tmp'.
John Criswell451f67f2003-10-16 01:45:35 +000021484$debug ||
21485{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021486 tmp=
21487 trap 'exit_status=$?
21488 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21489' 0
John Criswell451f67f2003-10-16 01:45:35 +000021490 trap '{ (exit 1); exit 1; }' 1 2 13 15
21491}
John Criswell451f67f2003-10-16 01:45:35 +000021492# Create a (secure) tmp directory for tmp files.
21493
21494{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021495 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell451f67f2003-10-16 01:45:35 +000021496 test -n "$tmp" && test -d "$tmp"
21497} ||
21498{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021499 tmp=./conf$$-$RANDOM
21500 (umask 077 && mkdir "$tmp")
John Criswell451f67f2003-10-16 01:45:35 +000021501} ||
21502{
21503 echo "$me: cannot create a temporary directory in ." >&2
21504 { (exit 1); exit 1; }
21505}
21506
John Criswell451f67f2003-10-16 01:45:35 +000021507#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021508# Set up the sed scripts for CONFIG_FILES section.
John Criswell451f67f2003-10-16 01:45:35 +000021509#
21510
21511# No need to generate the scripts if there are no CONFIG_FILES.
21512# This happens for instance when ./config.status config.h
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021513if test -n "$CONFIG_FILES"; then
John Criswell451f67f2003-10-16 01:45:35 +000021514
21515_ACEOF
21516
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021517
21518
21519ac_delim='%!_!# '
21520for ac_last_try in false false false false false :; do
21521 cat >conf$$subs.sed <<_ACEOF
21522SHELL!$SHELL$ac_delim
21523PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21524PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21525PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21526PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21527PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21528PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21529exec_prefix!$exec_prefix$ac_delim
21530prefix!$prefix$ac_delim
21531program_transform_name!$program_transform_name$ac_delim
21532bindir!$bindir$ac_delim
21533sbindir!$sbindir$ac_delim
21534libexecdir!$libexecdir$ac_delim
21535datarootdir!$datarootdir$ac_delim
21536datadir!$datadir$ac_delim
21537sysconfdir!$sysconfdir$ac_delim
21538sharedstatedir!$sharedstatedir$ac_delim
21539localstatedir!$localstatedir$ac_delim
21540includedir!$includedir$ac_delim
21541oldincludedir!$oldincludedir$ac_delim
21542docdir!$docdir$ac_delim
21543infodir!$infodir$ac_delim
21544htmldir!$htmldir$ac_delim
21545dvidir!$dvidir$ac_delim
21546pdfdir!$pdfdir$ac_delim
21547psdir!$psdir$ac_delim
21548libdir!$libdir$ac_delim
21549localedir!$localedir$ac_delim
21550mandir!$mandir$ac_delim
21551DEFS!$DEFS$ac_delim
21552ECHO_C!$ECHO_C$ac_delim
21553ECHO_N!$ECHO_N$ac_delim
21554ECHO_T!$ECHO_T$ac_delim
21555LIBS!$LIBS$ac_delim
21556build_alias!$build_alias$ac_delim
21557host_alias!$host_alias$ac_delim
21558target_alias!$target_alias$ac_delim
21559LLVM_SRC!$LLVM_SRC$ac_delim
21560LLVM_OBJ!$LLVM_OBJ$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021561LLVM_VERSION!$LLVM_VERSION$ac_delim
21562CC!$CC$ac_delim
21563CFLAGS!$CFLAGS$ac_delim
21564LDFLAGS!$LDFLAGS$ac_delim
21565CPPFLAGS!$CPPFLAGS$ac_delim
21566ac_ct_CC!$ac_ct_CC$ac_delim
21567EXEEXT!$EXEEXT$ac_delim
21568OBJEXT!$OBJEXT$ac_delim
21569CXX!$CXX$ac_delim
21570CXXFLAGS!$CXXFLAGS$ac_delim
21571ac_ct_CXX!$ac_ct_CXX$ac_delim
21572CPP!$CPP$ac_delim
21573ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21574LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21575subdirs!$subdirs$ac_delim
21576build!$build$ac_delim
21577build_cpu!$build_cpu$ac_delim
21578build_vendor!$build_vendor$ac_delim
21579build_os!$build_os$ac_delim
21580host!$host$ac_delim
21581host_cpu!$host_cpu$ac_delim
21582host_vendor!$host_vendor$ac_delim
21583host_os!$host_os$ac_delim
21584target!$target$ac_delim
21585target_cpu!$target_cpu$ac_delim
21586target_vendor!$target_vendor$ac_delim
21587target_os!$target_os$ac_delim
21588OS!$OS$ac_delim
21589HOST_OS!$HOST_OS$ac_delim
21590TARGET_OS!$TARGET_OS$ac_delim
21591LINKALL!$LINKALL$ac_delim
21592NOLINKALL!$NOLINKALL$ac_delim
21593LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21594LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21595ARCH!$ARCH$ac_delim
21596ENDIAN!$ENDIAN$ac_delim
21597GREP!$GREP$ac_delim
21598EGREP!$EGREP$ac_delim
21599LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21600BUILD_CC!$BUILD_CC$ac_delim
21601BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21602BUILD_CXX!$BUILD_CXX$ac_delim
21603CVSBUILD!$CVSBUILD$ac_delim
21604ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21605ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21606DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21607ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21608EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21609DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21610DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21611JIT!$JIT$ac_delim
21612TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21613ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21614ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21615ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21616ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21617ENABLE_PIC!$ENABLE_PIC$ac_delim
21618ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021619_ACEOF
21620
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021621 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021622 break
21623 elif $ac_last_try; then
21624 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21625echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21626 { (exit 1); exit 1; }; }
21627 else
21628 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell451f67f2003-10-16 01:45:35 +000021629 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021630done
21631
21632ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21633if test -n "$ac_eof"; then
21634 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21635 ac_eof=`expr $ac_eof + 1`
21636fi
21637
21638cat >>$CONFIG_STATUS <<_ACEOF
21639cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021640/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21641_ACEOF
21642sed '
21643s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21644s/^/s,@/; s/!/@,|#_!!_#|/
21645:n
21646t n
21647s/'"$ac_delim"'$/,g/; t
21648s/$/\\/; p
21649N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21650' >>$CONFIG_STATUS <conf$$subs.sed
21651rm -f conf$$subs.sed
21652cat >>$CONFIG_STATUS <<_ACEOF
21653CEOF$ac_eof
21654_ACEOF
21655
21656
21657ac_delim='%!_!# '
21658for ac_last_try in false false false false false :; do
21659 cat >conf$$subs.sed <<_ACEOF
21660ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21661ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21662TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21663LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21664LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21665LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21666LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021667OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21668EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21669EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21670BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21671NM!$NM$ac_delim
21672ifGNUmake!$ifGNUmake$ac_delim
21673LN_S!$LN_S$ac_delim
21674CMP!$CMP$ac_delim
21675CP!$CP$ac_delim
21676DATE!$DATE$ac_delim
21677FIND!$FIND$ac_delim
21678MKDIR!$MKDIR$ac_delim
21679MV!$MV$ac_delim
21680RANLIB!$RANLIB$ac_delim
21681AR!$AR$ac_delim
21682RM!$RM$ac_delim
21683SED!$SED$ac_delim
21684TAR!$TAR$ac_delim
21685BINPWD!$BINPWD$ac_delim
21686GRAPHVIZ!$GRAPHVIZ$ac_delim
21687DOT!$DOT$ac_delim
21688FDP!$FDP$ac_delim
21689NEATO!$NEATO$ac_delim
21690TWOPI!$TWOPI$ac_delim
21691CIRCO!$CIRCO$ac_delim
21692GV!$GV$ac_delim
21693DOTTY!$DOTTY$ac_delim
21694XDOT_PY!$XDOT_PY$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021695INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21696INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21697INSTALL_DATA!$INSTALL_DATA$ac_delim
21698BZIP2!$BZIP2$ac_delim
21699CAT!$CAT$ac_delim
21700DOXYGEN!$DOXYGEN$ac_delim
21701GROFF!$GROFF$ac_delim
21702GZIPBIN!$GZIPBIN$ac_delim
21703POD2HTML!$POD2HTML$ac_delim
21704POD2MAN!$POD2MAN$ac_delim
21705PDFROFF!$PDFROFF$ac_delim
21706RUNTEST!$RUNTEST$ac_delim
21707TCLSH!$TCLSH$ac_delim
21708ZIP!$ZIP$ac_delim
21709OCAMLC!$OCAMLC$ac_delim
21710OCAMLOPT!$OCAMLOPT$ac_delim
21711OCAMLDEP!$OCAMLDEP$ac_delim
21712OCAMLDOC!$OCAMLDOC$ac_delim
21713GAS!$GAS$ac_delim
21714HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21715INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21716INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21717CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21718CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21719LIBADD_DL!$LIBADD_DL$ac_delim
21720NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21721NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
Rafael Espindola9993a3a2012-02-28 23:32:06 +000021722COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021723USE_UDIS86!$USE_UDIS86$ac_delim
21724USE_OPROFILE!$USE_OPROFILE$ac_delim
21725HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21726HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21727MMAP_FILE!$MMAP_FILE$ac_delim
21728SHLIBEXT!$SHLIBEXT$ac_delim
21729SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21730LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21731LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21732LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21733LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21734LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21735LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21736LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21737LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21738LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21739LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21740BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21741ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21742OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21743ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21744RPATH!$RPATH$ac_delim
21745RDYNAMIC!$RDYNAMIC$ac_delim
21746LIBOBJS!$LIBOBJS$ac_delim
21747LTLIBOBJS!$LTLIBOBJS$ac_delim
21748_ACEOF
21749
Eric Christophera443e5b2012-03-23 05:50:46 +000021750 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021751 break
21752 elif $ac_last_try; then
21753 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21754echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21755 { (exit 1); exit 1; }; }
21756 else
21757 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21758 fi
21759done
21760
21761ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21762if test -n "$ac_eof"; then
21763 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21764 ac_eof=`expr $ac_eof + 1`
21765fi
21766
21767cat >>$CONFIG_STATUS <<_ACEOF
21768cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021769/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21770_ACEOF
21771sed '
21772s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21773s/^/s,@/; s/!/@,|#_!!_#|/
21774:n
21775t n
21776s/'"$ac_delim"'$/,g/; t
21777s/$/\\/; p
21778N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21779' >>$CONFIG_STATUS <conf$$subs.sed
21780rm -f conf$$subs.sed
21781cat >>$CONFIG_STATUS <<_ACEOF
21782:end
21783s/|#_!!_#|//g
21784CEOF$ac_eof
21785_ACEOF
21786
21787
21788# VPATH may cause trouble with some makes, so we remove $(srcdir),
21789# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21790# trailing colons and then remove the whole line if VPATH becomes empty
21791# (actually we leave an empty line to preserve line numbers).
21792if test "x$srcdir" = x.; then
21793 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21794s/:*\$(srcdir):*/:/
21795s/:*\${srcdir}:*/:/
21796s/:*@srcdir@:*/:/
21797s/^\([^=]*=[ ]*\):*/\1/
21798s/:*$//
21799s/^[^=]*=[ ]*$//
21800}'
21801fi
21802
21803cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021804fi # test -n "$CONFIG_FILES"
21805
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021806
21807for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21808do
21809 case $ac_tag in
21810 :[FHLC]) ac_mode=$ac_tag; continue;;
21811 esac
21812 case $ac_mode$ac_tag in
21813 :[FHL]*:*);;
21814 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21815echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21816 { (exit 1); exit 1; }; };;
21817 :[FH]-) ac_tag=-:-;;
21818 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21819 esac
21820 ac_save_IFS=$IFS
21821 IFS=:
21822 set x $ac_tag
21823 IFS=$ac_save_IFS
21824 shift
21825 ac_file=$1
21826 shift
21827
21828 case $ac_mode in
21829 :L) ac_source=$1;;
21830 :[FH])
21831 ac_file_inputs=
21832 for ac_f
21833 do
21834 case $ac_f in
21835 -) ac_f="$tmp/stdin";;
21836 *) # Look for the file first in the build tree, then in the source tree
21837 # (if the path is not absolute). The absolute path cannot be DOS-style,
21838 # because $ac_f cannot contain `:'.
21839 test -f "$ac_f" ||
21840 case $ac_f in
21841 [\\/$]*) false;;
21842 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21843 esac ||
21844 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21845echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21846 { (exit 1); exit 1; }; };;
21847 esac
21848 ac_file_inputs="$ac_file_inputs $ac_f"
21849 done
21850
21851 # Let's still pretend it is `configure' which instantiates (i.e., don't
21852 # use $as_me), people would be surprised to read:
21853 # /* config.h. Generated by config.status. */
21854 configure_input="Generated from "`IFS=:
21855 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21856 if test x"$ac_file" != x-; then
21857 configure_input="$ac_file. $configure_input"
21858 { echo "$as_me:$LINENO: creating $ac_file" >&5
21859echo "$as_me: creating $ac_file" >&6;}
21860 fi
21861
21862 case $ac_tag in
21863 *:-:* | *:-) cat >"$tmp/stdin";;
21864 esac
21865 ;;
John Criswell451f67f2003-10-16 01:45:35 +000021866 esac
21867
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021868 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell451f67f2003-10-16 01:45:35 +000021869$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000021870 X"$ac_file" : 'X\(//\)[^/]' \| \
21871 X"$ac_file" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021872 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000021873echo X"$ac_file" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21875 s//\1/
21876 q
21877 }
21878 /^X\(\/\/\)[^/].*/{
21879 s//\1/
21880 q
21881 }
21882 /^X\(\/\/\)$/{
21883 s//\1/
21884 q
21885 }
21886 /^X\(\/\).*/{
21887 s//\1/
21888 q
21889 }
21890 s/.*/./; q'`
21891 { as_dir="$ac_dir"
21892 case $as_dir in #(
21893 -*) as_dir=./$as_dir;;
21894 esac
21895 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell451f67f2003-10-16 01:45:35 +000021896 as_dirs=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021897 while :; do
21898 case $as_dir in #(
21899 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21900 *) as_qdir=$as_dir;;
21901 esac
21902 as_dirs="'$as_qdir' $as_dirs"
21903 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell451f67f2003-10-16 01:45:35 +000021904$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000021905 X"$as_dir" : 'X\(//\)[^/]' \| \
21906 X"$as_dir" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021907 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000021908echo X"$as_dir" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21910 s//\1/
21911 q
21912 }
21913 /^X\(\/\/\)[^/].*/{
21914 s//\1/
21915 q
21916 }
21917 /^X\(\/\/\)$/{
21918 s//\1/
21919 q
21920 }
21921 /^X\(\/\).*/{
21922 s//\1/
21923 q
21924 }
21925 s/.*/./; q'`
21926 test -d "$as_dir" && break
John Criswell451f67f2003-10-16 01:45:35 +000021927 done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021928 test -z "$as_dirs" || eval "mkdir $as_dirs"
21929 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21930echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000021931 { (exit 1); exit 1; }; }; }
John Criswell451f67f2003-10-16 01:45:35 +000021932 ac_builddir=.
21933
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021934case "$ac_dir" in
21935.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21936*)
John Criswell451f67f2003-10-16 01:45:35 +000021937 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021938 # A ".." for each directory in $ac_dir_suffix.
21939 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21940 case $ac_top_builddir_sub in
21941 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21942 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21943 esac ;;
21944esac
21945ac_abs_top_builddir=$ac_pwd
21946ac_abs_builddir=$ac_pwd$ac_dir_suffix
21947# for backward compatibility:
21948ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +000021949
21950case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021951 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +000021952 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021953 ac_top_srcdir=$ac_top_builddir_sub
21954 ac_abs_top_srcdir=$ac_pwd ;;
21955 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +000021956 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021957 ac_top_srcdir=$srcdir
21958 ac_abs_top_srcdir=$srcdir ;;
21959 *) # Relative name.
21960 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21961 ac_top_srcdir=$ac_top_build_prefix$srcdir
21962 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +000021963esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021964ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Dan Gohmand02a2812009-03-24 23:47:11 +000021965
Dan Gohman324f6082009-03-25 00:52:11 +000021966
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021967 case $ac_mode in
21968 :F)
21969 #
21970 # CONFIG_FILE
21971 #
Dan Gohman324f6082009-03-25 00:52:11 +000021972
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021973 case $INSTALL in
21974 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21975 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21976 esac
Dan Gohman324f6082009-03-25 00:52:11 +000021977_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021978
21979cat >>$CONFIG_STATUS <<\_ACEOF
21980# If the template does not know about datarootdir, expand it.
21981# FIXME: This hack should be removed a few years after 2.60.
21982ac_datarootdir_hack=; ac_datarootdir_seen=
21983
21984case `sed -n '/datarootdir/ {
21985 p
21986 q
21987}
21988/@datadir@/p
21989/@docdir@/p
21990/@infodir@/p
21991/@localedir@/p
21992/@mandir@/p
21993' $ac_file_inputs` in
21994*datarootdir*) ac_datarootdir_seen=yes;;
21995*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21996 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21997echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21998_ACEOF
21999cat >>$CONFIG_STATUS <<_ACEOF
22000 ac_datarootdir_hack='
22001 s&@datadir@&$datadir&g
22002 s&@docdir@&$docdir&g
22003 s&@infodir@&$infodir&g
22004 s&@localedir@&$localedir&g
22005 s&@mandir@&$mandir&g
22006 s&\\\${datarootdir}&$datarootdir&g' ;;
22007esac
22008_ACEOF
22009
22010# Neutralize VPATH when `$srcdir' = `.'.
22011# Shell code in configure.ac might set extrasub.
22012# FIXME: do we really want to maintain this feature?
John Criswell451f67f2003-10-16 01:45:35 +000022013cat >>$CONFIG_STATUS <<_ACEOF
22014 sed "$ac_vpsub
22015$extrasub
22016_ACEOF
22017cat >>$CONFIG_STATUS <<\_ACEOF
22018:t
22019/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022020s&@configure_input@&$configure_input&;t t
22021s&@top_builddir@&$ac_top_builddir_sub&;t t
22022s&@srcdir@&$ac_srcdir&;t t
22023s&@abs_srcdir@&$ac_abs_srcdir&;t t
22024s&@top_srcdir@&$ac_top_srcdir&;t t
22025s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22026s&@builddir@&$ac_builddir&;t t
22027s&@abs_builddir@&$ac_abs_builddir&;t t
22028s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022029s&@INSTALL@&$ac_INSTALL&;t t
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022030$ac_datarootdir_hack
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022031" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell451f67f2003-10-16 01:45:35 +000022032
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022033test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22034 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22035 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22036 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22037which seems to be undefined. Please make sure it is defined." >&5
22038echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22039which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000022040
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022041 rm -f "$tmp/stdin"
22042 case $ac_file in
22043 -) cat "$tmp/out"; rm -f "$tmp/out";;
22044 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022045 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022046 ;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022047
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022048
22049 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22050echo "$as_me: executing $ac_file commands" >&6;}
22051 ;;
22052 esac
22053
22054
22055 case $ac_file$ac_mode in
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022056 "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22057 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22058 "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22059 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22060 "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22061 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22062 "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22063 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22064 "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22065 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022066
22067 esac
22068done # for ac_tag
22069
John Criswell451f67f2003-10-16 01:45:35 +000022070
22071{ (exit 0); exit 0; }
22072_ACEOF
22073chmod +x $CONFIG_STATUS
22074ac_clean_files=$ac_clean_files_save
22075
22076
22077# configure is writing to config.log, and then calls config.status.
22078# config.status does its own redirection, appending to config.log.
22079# Unfortunately, on DOS this fails, as config.log is still kept open
22080# by configure, so config.status won't be able to write to it; its
22081# output is simply discarded. So we exec the FD to /dev/null,
22082# effectively closing config.log, so it can be properly (re)opened and
22083# appended to by config.status. When coming back to configure, we
22084# need to make the FD available again.
22085if test "$no_create" != yes; then
22086 ac_cs_success=:
22087 ac_config_status_args=
22088 test "$silent" = yes &&
22089 ac_config_status_args="$ac_config_status_args --quiet"
22090 exec 5>/dev/null
22091 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22092 exec 5>>config.log
22093 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22094 # would make configure fail if this is the last instruction.
22095 $ac_cs_success || { (exit 1); exit 1; }
22096fi
22097
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022098#
22099# CONFIG_SUBDIRS section.
22100#
22101if test "$no_recursion" != yes; then
22102
22103 # Remove --cache-file and --srcdir arguments so they do not pile up.
22104 ac_sub_configure_args=
22105 ac_prev=
22106 eval "set x $ac_configure_args"
22107 shift
22108 for ac_arg
22109 do
22110 if test -n "$ac_prev"; then
22111 ac_prev=
22112 continue
22113 fi
22114 case $ac_arg in
22115 -cache-file | --cache-file | --cache-fil | --cache-fi \
22116 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22117 ac_prev=cache_file ;;
22118 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22119 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22120 | --c=*)
22121 ;;
22122 --config-cache | -C)
22123 ;;
22124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22125 ac_prev=srcdir ;;
22126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22127 ;;
22128 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22129 ac_prev=prefix ;;
22130 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22131 ;;
22132 *)
22133 case $ac_arg in
22134 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22135 esac
22136 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22137 esac
22138 done
22139
22140 # Always prepend --prefix to ensure using the same prefix
22141 # in subdir configurations.
22142 ac_arg="--prefix=$prefix"
22143 case $ac_arg in
22144 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22145 esac
22146 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22147
22148 ac_popdir=`pwd`
22149 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22150
22151 # Do not complain, so a configure script can configure whichever
22152 # parts of a large source tree are present.
22153 test -d "$srcdir/$ac_dir" || continue
22154
22155 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22156 echo "$as_me:$LINENO: $ac_msg" >&5
22157 echo "$ac_msg" >&6
22158 { as_dir="$ac_dir"
22159 case $as_dir in #(
22160 -*) as_dir=./$as_dir;;
22161 esac
22162 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22163 as_dirs=
22164 while :; do
22165 case $as_dir in #(
22166 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22167 *) as_qdir=$as_dir;;
22168 esac
22169 as_dirs="'$as_qdir' $as_dirs"
22170 as_dir=`$as_dirname -- "$as_dir" ||
22171$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22172 X"$as_dir" : 'X\(//\)[^/]' \| \
22173 X"$as_dir" : 'X\(//\)$' \| \
22174 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22175echo X"$as_dir" |
22176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22177 s//\1/
22178 q
22179 }
22180 /^X\(\/\/\)[^/].*/{
22181 s//\1/
22182 q
22183 }
22184 /^X\(\/\/\)$/{
22185 s//\1/
22186 q
22187 }
22188 /^X\(\/\).*/{
22189 s//\1/
22190 q
22191 }
22192 s/.*/./; q'`
22193 test -d "$as_dir" && break
22194 done
22195 test -z "$as_dirs" || eval "mkdir $as_dirs"
22196 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22197echo "$as_me: error: cannot create directory $as_dir" >&2;}
22198 { (exit 1); exit 1; }; }; }
22199 ac_builddir=.
22200
22201case "$ac_dir" in
22202.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22203*)
22204 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22205 # A ".." for each directory in $ac_dir_suffix.
22206 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22207 case $ac_top_builddir_sub in
22208 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22209 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22210 esac ;;
22211esac
22212ac_abs_top_builddir=$ac_pwd
22213ac_abs_builddir=$ac_pwd$ac_dir_suffix
22214# for backward compatibility:
22215ac_top_builddir=$ac_top_build_prefix
22216
22217case $srcdir in
22218 .) # We are building in place.
22219 ac_srcdir=.
22220 ac_top_srcdir=$ac_top_builddir_sub
22221 ac_abs_top_srcdir=$ac_pwd ;;
22222 [\\/]* | ?:[\\/]* ) # Absolute name.
22223 ac_srcdir=$srcdir$ac_dir_suffix;
22224 ac_top_srcdir=$srcdir
22225 ac_abs_top_srcdir=$srcdir ;;
22226 *) # Relative name.
22227 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22228 ac_top_srcdir=$ac_top_build_prefix$srcdir
22229 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22230esac
22231ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22232
22233
22234 cd "$ac_dir"
22235
22236 # Check for guested configure; otherwise get Cygnus style configure.
22237 if test -f "$ac_srcdir/configure.gnu"; then
22238 ac_sub_configure=$ac_srcdir/configure.gnu
22239 elif test -f "$ac_srcdir/configure"; then
22240 ac_sub_configure=$ac_srcdir/configure
22241 elif test -f "$ac_srcdir/configure.in"; then
22242 # This should be Cygnus configure.
22243 ac_sub_configure=$ac_aux_dir/configure
22244 else
22245 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22246echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22247 ac_sub_configure=
22248 fi
22249
22250 # The recursion is here.
22251 if test -n "$ac_sub_configure"; then
22252 # Make the cache file name correct relative to the subdirectory.
22253 case $cache_file in
22254 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22255 *) # Relative name.
22256 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22257 esac
22258
22259 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22260echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22261 # The eval makes quoting arguments work.
22262 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22263 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22264 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22265echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22266 { (exit 1); exit 1; }; }
22267 fi
22268
22269 cd "$ac_popdir"
22270 done
22271fi
22272