blob: db8b9acc64a321f496fa513aa1e144bf407c6165 [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
707ENABLE_CBE_PRINTF_A
708OPTIMIZE_OPTION
709EXTRA_OPTIONS
710EXTRA_LD_OPTIONS
711BINUTILS_INCDIR
712NM
713ifGNUmake
714LN_S
715CMP
716CP
717DATE
718FIND
719MKDIR
720MV
721RANLIB
722AR
723RM
724SED
725TAR
726BINPWD
727GRAPHVIZ
728DOT
729FDP
730NEATO
731TWOPI
732CIRCO
733GV
734DOTTY
735XDOT_PY
736PERL
737HAVE_PERL
738INSTALL_PROGRAM
739INSTALL_SCRIPT
740INSTALL_DATA
741BZIP2
742CAT
743DOXYGEN
744GROFF
745GZIPBIN
746POD2HTML
747POD2MAN
748PDFROFF
749RUNTEST
750TCLSH
751ZIP
752OCAMLC
753OCAMLOPT
754OCAMLDEP
755OCAMLDOC
756GAS
757HAVE_LINK_VERSION_SCRIPT
758INSTALL_LTDL_TRUE
759INSTALL_LTDL_FALSE
760CONVENIENCE_LTDL_TRUE
761CONVENIENCE_LTDL_FALSE
762LIBADD_DL
763NO_VARIADIC_MACROS
764NO_MISSING_FIELD_INITIALIZERS
765USE_UDIS86
766USE_OPROFILE
767HAVE_PTHREAD
768HUGE_VAL_SANITY
769MMAP_FILE
770SHLIBEXT
771SHLIBPATH_VAR
772LLVM_PREFIX
773LLVM_BINDIR
774LLVM_LIBDIR
775LLVM_DATADIR
776LLVM_DOCSDIR
777LLVM_ETCDIR
778LLVM_INCLUDEDIR
779LLVM_INFODIR
780LLVM_MANDIR
781LLVM_CONFIGTIME
782BINDINGS_TO_BUILD
783ALL_BINDINGS
784OCAML_LIBDIR
785ENABLE_VISIBILITY_INLINES_HIDDEN
786RPATH
787RDYNAMIC
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000788LIBOBJS
789LTLIBOBJS'
John Criswell451f67f2003-10-16 01:45:35 +0000790ac_subst_files=''
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000791 ac_precious_vars='build_alias
792host_alias
Daniel Dunbarbf79f912011-10-18 23:10:58 +0000793target_alias
794CC
795CFLAGS
796LDFLAGS
797CPPFLAGS
798CXX
799CXXFLAGS
800CCC
801CPP'
802ac_subdirs_all='tools/polly'
John Criswell451f67f2003-10-16 01:45:35 +0000803
804# Initialize some variables set by options.
805ac_init_help=
806ac_init_version=false
807# The variables have the same names as the options, with
808# dashes changed to underlines.
809cache_file=/dev/null
810exec_prefix=NONE
811no_create=
812no_recursion=
813prefix=NONE
814program_prefix=NONE
815program_suffix=NONE
816program_transform_name=s,x,x,
817silent=
818site=
819srcdir=
820verbose=
821x_includes=NONE
822x_libraries=NONE
823
824# Installation directory options.
825# These are left unexpanded so users can "make install exec_prefix=/foo"
826# and all the variables that are supposed to be based on exec_prefix
827# by default will actually change.
828# Use braces instead of parens because sh, perl, etc. also accept them.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000829# (The list follows the same order as the GNU Coding Standards.)
John Criswell451f67f2003-10-16 01:45:35 +0000830bindir='${exec_prefix}/bin'
831sbindir='${exec_prefix}/sbin'
832libexecdir='${exec_prefix}/libexec'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000833datarootdir='${prefix}/share'
834datadir='${datarootdir}'
John Criswell451f67f2003-10-16 01:45:35 +0000835sysconfdir='${prefix}/etc'
836sharedstatedir='${prefix}/com'
837localstatedir='${prefix}/var'
John Criswell451f67f2003-10-16 01:45:35 +0000838includedir='${prefix}/include'
839oldincludedir='/usr/include'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000840docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841infodir='${datarootdir}/info'
842htmldir='${docdir}'
843dvidir='${docdir}'
844pdfdir='${docdir}'
845psdir='${docdir}'
846libdir='${exec_prefix}/lib'
847localedir='${datarootdir}/locale'
848mandir='${datarootdir}/man'
John Criswell451f67f2003-10-16 01:45:35 +0000849
850ac_prev=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000851ac_dashdash=
John Criswell451f67f2003-10-16 01:45:35 +0000852for ac_option
853do
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000856 eval $ac_prev=\$ac_option
John Criswell451f67f2003-10-16 01:45:35 +0000857 ac_prev=
858 continue
859 fi
860
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000861 case $ac_option in
862 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863 *) ac_optarg=yes ;;
864 esac
John Criswell451f67f2003-10-16 01:45:35 +0000865
866 # Accept the important Cygnus configure options, so we can diagnose typos.
867
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000868 case $ac_dashdash$ac_option in
869 --)
870 ac_dashdash=yes ;;
John Criswell451f67f2003-10-16 01:45:35 +0000871
872 -bindir | --bindir | --bindi | --bind | --bin | --bi)
873 ac_prev=bindir ;;
874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875 bindir=$ac_optarg ;;
876
877 -build | --build | --buil | --bui | --bu)
878 ac_prev=build_alias ;;
879 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880 build_alias=$ac_optarg ;;
881
882 -cache-file | --cache-file | --cache-fil | --cache-fi \
883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884 ac_prev=cache_file ;;
885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887 cache_file=$ac_optarg ;;
888
889 --config-cache | -C)
890 cache_file=config.cache ;;
891
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000892 -datadir | --datadir | --datadi | --datad)
John Criswell451f67f2003-10-16 01:45:35 +0000893 ac_prev=datadir ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000894 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell451f67f2003-10-16 01:45:35 +0000895 datadir=$ac_optarg ;;
896
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898 | --dataroo | --dataro | --datar)
899 ac_prev=datarootdir ;;
900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902 datarootdir=$ac_optarg ;;
903
John Criswell451f67f2003-10-16 01:45:35 +0000904 -disable-* | --disable-*)
905 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000907 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000908 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
909 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000910 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000911 eval enable_$ac_feature=no ;;
912
913 -docdir | --docdir | --docdi | --doc | --do)
914 ac_prev=docdir ;;
915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916 docdir=$ac_optarg ;;
917
918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919 ac_prev=dvidir ;;
920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921 dvidir=$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000922
923 -enable-* | --enable-*)
924 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +0000926 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +0000927 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +0000929 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000930 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +0000931
932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934 | --exec | --exe | --ex)
935 ac_prev=exec_prefix ;;
936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938 | --exec=* | --exe=* | --ex=*)
939 exec_prefix=$ac_optarg ;;
940
941 -gas | --gas | --ga | --g)
942 # Obsolete; use --with-gas.
943 with_gas=yes ;;
944
945 -help | --help | --hel | --he | -h)
946 ac_init_help=long ;;
947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948 ac_init_help=recursive ;;
949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950 ac_init_help=short ;;
951
952 -host | --host | --hos | --ho)
953 ac_prev=host_alias ;;
954 -host=* | --host=* | --hos=* | --ho=*)
955 host_alias=$ac_optarg ;;
956
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958 ac_prev=htmldir ;;
959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960 | --ht=*)
961 htmldir=$ac_optarg ;;
962
John Criswell451f67f2003-10-16 01:45:35 +0000963 -includedir | --includedir | --includedi | --included | --include \
964 | --includ | --inclu | --incl | --inc)
965 ac_prev=includedir ;;
966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967 | --includ=* | --inclu=* | --incl=* | --inc=*)
968 includedir=$ac_optarg ;;
969
970 -infodir | --infodir | --infodi | --infod | --info | --inf)
971 ac_prev=infodir ;;
972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973 infodir=$ac_optarg ;;
974
975 -libdir | --libdir | --libdi | --libd)
976 ac_prev=libdir ;;
977 -libdir=* | --libdir=* | --libdi=* | --libd=*)
978 libdir=$ac_optarg ;;
979
980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981 | --libexe | --libex | --libe)
982 ac_prev=libexecdir ;;
983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984 | --libexe=* | --libex=* | --libe=*)
985 libexecdir=$ac_optarg ;;
986
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000987 -localedir | --localedir | --localedi | --localed | --locale)
988 ac_prev=localedir ;;
989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990 localedir=$ac_optarg ;;
991
John Criswell451f67f2003-10-16 01:45:35 +0000992 -localstatedir | --localstatedir | --localstatedi | --localstated \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000993 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell451f67f2003-10-16 01:45:35 +0000994 ac_prev=localstatedir ;;
995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +0000996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell451f67f2003-10-16 01:45:35 +0000997 localstatedir=$ac_optarg ;;
998
999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000 ac_prev=mandir ;;
1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002 mandir=$ac_optarg ;;
1003
1004 -nfp | --nfp | --nf)
1005 # Obsolete; use --without-fp.
1006 with_fp=no ;;
1007
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009 | --no-cr | --no-c | -n)
1010 no_create=yes ;;
1011
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 no_recursion=yes ;;
1015
1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018 | --oldin | --oldi | --old | --ol | --o)
1019 ac_prev=oldincludedir ;;
1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023 oldincludedir=$ac_optarg ;;
1024
1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026 ac_prev=prefix ;;
1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028 prefix=$ac_optarg ;;
1029
1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031 | --program-pre | --program-pr | --program-p)
1032 ac_prev=program_prefix ;;
1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035 program_prefix=$ac_optarg ;;
1036
1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038 | --program-suf | --program-su | --program-s)
1039 ac_prev=program_suffix ;;
1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042 program_suffix=$ac_optarg ;;
1043
1044 -program-transform-name | --program-transform-name \
1045 | --program-transform-nam | --program-transform-na \
1046 | --program-transform-n | --program-transform- \
1047 | --program-transform | --program-transfor \
1048 | --program-transfo | --program-transf \
1049 | --program-trans | --program-tran \
1050 | --progr-tra | --program-tr | --program-t)
1051 ac_prev=program_transform_name ;;
1052 -program-transform-name=* | --program-transform-name=* \
1053 | --program-transform-nam=* | --program-transform-na=* \
1054 | --program-transform-n=* | --program-transform-=* \
1055 | --program-transform=* | --program-transfor=* \
1056 | --program-transfo=* | --program-transf=* \
1057 | --program-trans=* | --program-tran=* \
1058 | --progr-tra=* | --program-tr=* | --program-t=*)
1059 program_transform_name=$ac_optarg ;;
1060
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062 ac_prev=pdfdir ;;
1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064 pdfdir=$ac_optarg ;;
1065
1066 -psdir | --psdir | --psdi | --psd | --ps)
1067 ac_prev=psdir ;;
1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069 psdir=$ac_optarg ;;
1070
John Criswell451f67f2003-10-16 01:45:35 +00001071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1073 silent=yes ;;
1074
1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076 ac_prev=sbindir ;;
1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078 | --sbi=* | --sb=*)
1079 sbindir=$ac_optarg ;;
1080
1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083 | --sharedst | --shareds | --shared | --share | --shar \
1084 | --sha | --sh)
1085 ac_prev=sharedstatedir ;;
1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089 | --sha=* | --sh=*)
1090 sharedstatedir=$ac_optarg ;;
1091
1092 -site | --site | --sit)
1093 ac_prev=site ;;
1094 -site=* | --site=* | --sit=*)
1095 site=$ac_optarg ;;
1096
1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098 ac_prev=srcdir ;;
1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100 srcdir=$ac_optarg ;;
1101
1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103 | --syscon | --sysco | --sysc | --sys | --sy)
1104 ac_prev=sysconfdir ;;
1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107 sysconfdir=$ac_optarg ;;
1108
1109 -target | --target | --targe | --targ | --tar | --ta | --t)
1110 ac_prev=target_alias ;;
1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112 target_alias=$ac_optarg ;;
1113
1114 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115 verbose=yes ;;
1116
1117 -version | --version | --versio | --versi | --vers | -V)
1118 ac_init_version=: ;;
1119
1120 -with-* | --with-*)
1121 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +00001123 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +00001124 { echo "$as_me: error: invalid package name: $ac_package" >&2
1125 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +00001126 ac_package=`echo $ac_package| sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001127 eval with_$ac_package=\$ac_optarg ;;
John Criswell451f67f2003-10-16 01:45:35 +00001128
1129 -without-* | --without-*)
1130 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
Dan Gohman324f6082009-03-25 00:52:11 +00001132 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell451f67f2003-10-16 01:45:35 +00001133 { echo "$as_me: error: invalid package name: $ac_package" >&2
1134 { (exit 1); exit 1; }; }
Dan Gohman324f6082009-03-25 00:52:11 +00001135 ac_package=`echo $ac_package | sed 's/-/_/g'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001136 eval with_$ac_package=no ;;
John Criswell451f67f2003-10-16 01:45:35 +00001137
1138 --x)
1139 # Obsolete; use --with-x.
1140 with_x=yes ;;
1141
1142 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143 | --x-incl | --x-inc | --x-in | --x-i)
1144 ac_prev=x_includes ;;
1145 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147 x_includes=$ac_optarg ;;
1148
1149 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151 ac_prev=x_libraries ;;
1152 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154 x_libraries=$ac_optarg ;;
1155
1156 -*) { echo "$as_me: error: unrecognized option: $ac_option
1157Try \`$0 --help' for more information." >&2
1158 { (exit 1); exit 1; }; }
1159 ;;
1160
1161 *=*)
1162 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1165 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1166 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001167 eval $ac_envvar=\$ac_optarg
John Criswell451f67f2003-10-16 01:45:35 +00001168 export $ac_envvar ;;
1169
1170 *)
1171 # FIXME: should be removed in autoconf 3.0.
1172 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1176 ;;
1177
1178 esac
1179done
1180
1181if test -n "$ac_prev"; then
1182 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183 { echo "$as_me: error: missing argument to $ac_option" >&2
1184 { (exit 1); exit 1; }; }
1185fi
1186
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001187# Be sure to have absolute directory names.
1188for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189 datadir sysconfdir sharedstatedir localstatedir includedir \
1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191 libdir localedir mandir
John Criswell451f67f2003-10-16 01:45:35 +00001192do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001193 eval ac_val=\$$ac_var
John Criswell451f67f2003-10-16 01:45:35 +00001194 case $ac_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001195 [\\/$]* | ?:[\\/]* ) continue;;
1196 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell451f67f2003-10-16 01:45:35 +00001197 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001198 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1199 { (exit 1); exit 1; }; }
John Criswell451f67f2003-10-16 01:45:35 +00001200done
1201
1202# There might be people who depend on the old broken behavior: `$host'
1203# used to hold the argument of --host etc.
1204# FIXME: To remove some day.
1205build=$build_alias
1206host=$host_alias
1207target=$target_alias
1208
1209# FIXME: To remove some day.
1210if test "x$host_alias" != x; then
1211 if test "x$build_alias" = x; then
1212 cross_compiling=maybe
1213 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1214 If a cross compiler is detected then cross compile mode will be used." >&2
1215 elif test "x$build_alias" != "x$host_alias"; then
1216 cross_compiling=yes
1217 fi
1218fi
1219
1220ac_tool_prefix=
1221test -n "$host_alias" && ac_tool_prefix=$host_alias-
1222
1223test "$silent" = yes && exec 6>/dev/null
1224
1225
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001226ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227ac_ls_di=`ls -di .` &&
1228ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229 { echo "$as_me: error: Working directory cannot be determined" >&2
1230 { (exit 1); exit 1; }; }
1231test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232 { echo "$as_me: error: pwd does not report name of working directory" >&2
1233 { (exit 1); exit 1; }; }
1234
1235
John Criswell451f67f2003-10-16 01:45:35 +00001236# Find the source files, if location was not specified.
1237if test -z "$srcdir"; then
1238 ac_srcdir_defaulted=yes
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001239 # Try the directory containing this script, then the parent directory.
1240 ac_confdir=`$as_dirname -- "$0" ||
John Criswell451f67f2003-10-16 01:45:35 +00001241$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +00001242 X"$0" : 'X\(//\)[^/]' \| \
1243 X"$0" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001244 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +00001245echo X"$0" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247 s//\1/
1248 q
1249 }
1250 /^X\(\/\/\)[^/].*/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\/\)$/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\).*/{
1259 s//\1/
1260 q
1261 }
1262 s/.*/./; q'`
John Criswell451f67f2003-10-16 01:45:35 +00001263 srcdir=$ac_confdir
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001264 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell451f67f2003-10-16 01:45:35 +00001265 srcdir=..
1266 fi
1267else
1268 ac_srcdir_defaulted=no
1269fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001270if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell451f67f2003-10-16 01:45:35 +00001273 { (exit 1); exit 1; }; }
Dan Gohmand02a2812009-03-24 23:47:11 +00001274fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001275ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1276ac_abs_confdir=`(
1277 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Dan Gohman324f6082009-03-25 00:52:11 +00001278 { (exit 1); exit 1; }; }
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001279 pwd)`
1280# When building in place, set srcdir=.
1281if test "$ac_abs_confdir" = "$ac_pwd"; then
1282 srcdir=.
1283fi
1284# Remove unnecessary trailing slashes from srcdir.
1285# Double slashes in file names in object file debugging info
1286# mess up M-x gdb in Emacs.
1287case $srcdir in
1288*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289esac
1290for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295done
John Criswell451f67f2003-10-16 01:45:35 +00001296
1297#
1298# Report the --help message.
1299#
1300if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1303 cat <<_ACEOF
1304\`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems.
1305
1306Usage: $0 [OPTION]... [VAR=VALUE]...
1307
1308To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309VAR=VALUE. See below for descriptions of some of the useful variables.
1310
1311Defaults for the options are specified in brackets.
1312
1313Configuration:
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1323
John Criswell451f67f2003-10-16 01:45:35 +00001324Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001326 [$ac_default_prefix]
John Criswell451f67f2003-10-16 01:45:35 +00001327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer9964cd82005-01-01 09:26:55 +00001328 [PREFIX]
John Criswell451f67f2003-10-16 01:45:35 +00001329
1330By default, \`make install' will install all the files in
1331\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333for instance \`--prefix=\$HOME'.
1334
1335For better control, use the options below.
1336
1337Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell451f67f2003-10-16 01:45:35 +00001341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--]
1353 --htmldir=DIR html documentation [DOCDIR]
1354 --dvidir=DIR dvi documentation [DOCDIR]
1355 --pdfdir=DIR pdf documentation [DOCDIR]
1356 --psdir=DIR ps documentation [DOCDIR]
John Criswell451f67f2003-10-16 01:45:35 +00001357_ACEOF
1358
1359 cat <<\_ACEOF
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001360
1361System types:
1362 --build=BUILD configure for building on BUILD [guessed]
1363 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1364 --target=TARGET configure for building compilers for TARGET [HOST]
John Criswell451f67f2003-10-16 01:45:35 +00001365_ACEOF
1366fi
1367
1368if test -n "$ac_init_help"; then
1369 case $ac_init_help in
1370 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";;
1371 esac
1372 cat <<\_ACEOF
1373
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001374Optional Features:
1375 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1376 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1377 --enable-polly Use polly if available (default is YES)
1378 --enable-optimized Compile with optimizations enabled (default is NO)
1379 --enable-profiling Compile with profiling enabled (default is NO)
1380 --enable-assertions Compile with assertion checks enabled (default is
1381 YES)
1382 --enable-expensive-checks
1383 Compile with expensive debug checks enabled (default
1384 is NO)
1385 --enable-debug-runtime Build runtime libs with debug symbols (default is
1386 NO)
1387 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1388 optimization is on and YES if it's off)
1389 --enable-jit Enable Just In Time Compiling (default is YES)
1390 --enable-docs Build documents (default is YES)
1391 --enable-doxygen Build doxygen documentation (default is NO)
1392 --enable-threads Use threads if available (default is YES)
1393 --enable-pthreads Use pthreads if available (default is YES)
1394 --enable-pic Build LLVM with Position Independent Code (default
1395 is YES)
1396 --enable-shared Build a shared library and link tools against it
1397 (default is NO)
1398 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1399 Win32 DLL (default is YES)
1400 --enable-timestamps Enable embedding timestamp information in build
1401 (default is YES)
1402 --enable-targets Build specific host targets: all or
1403 target1,target2,... Valid targets are: host, x86,
1404 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1405 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1406 (default=all)
1407 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1408 %a (default is YES)
1409 --enable-bindings Build specific language bindings:
1410 all,auto,none,{binding-name} (default=auto)
1411 --enable-libffi Check for the presence of libffi (default is NO)
1412 --enable-ltdl-install install libltdl
1413
John Criswell451f67f2003-10-16 01:45:35 +00001414Optional Packages:
1415 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1416 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1417 --with-llvmsrc Location of LLVM Source Code
1418 --with-llvmobj Location of LLVM Object Code
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001419 --with-optimize-option Select the compiler options to use for optimized
1420 builds
1421 --with-extra-options Specify additional options to compile LLVM with
1422 --with-extra-ld-options Specify additional options to link LLVM with
1423 --with-ocaml-libdir Specify install location for ocaml bindings (default
1424 is stdlib)
1425 --with-clang-resource-dir
1426 Relative directory from the Clang binary for
1427 resource files
1428 --with-c-include-dirs Colon separated list of directories clang will
1429 search for headers
1430 --with-cxx-include-root Directory with the libstdc++ headers.
1431 --with-cxx-include-arch Architecture of the libstdc++ headers.
1432 --with-cxx-include-32bit-dir
1433 32 bit multilib dir.
1434 --with-cxx-include-64bit-dir
1435 64 bit multilib directory.
1436 --with-binutils-include Specify path to binutils/include/ containing
1437 plugin-api.h file for gold plugin.
1438 --with-bug-report-url Specify the URL where bug reports should be
1439 submitted (default=http://llvm.org/bugs/)
1440 --with-tclinclude directory where tcl headers are
1441 --with-udis86=<path> Use udis86 external x86 disassembler library
1442 --with-oprofile=<prefix>
1443 Tell OProfile >= 0.9.4 how to symbolize JIT output
1444
1445Some influential environment variables:
1446 CC C compiler command
1447 CFLAGS C compiler flags
1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1449 nonstandard directory <lib dir>
1450 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1451 you have headers in a nonstandard directory <include dir>
1452 CXX C++ compiler command
1453 CXXFLAGS C++ compiler flags
1454 CPP C preprocessor
1455
1456Use these variables to override the choices made by `configure' or to help
1457it to find libraries and programs with nonstandard names/locations.
John Criswell451f67f2003-10-16 01:45:35 +00001458
1459Report bugs to <bugs@yourdomain>.
1460_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001461ac_status=$?
John Criswell451f67f2003-10-16 01:45:35 +00001462fi
1463
1464if test "$ac_init_help" = "recursive"; then
1465 # If there are subdirs, report their specific --help.
John Criswell451f67f2003-10-16 01:45:35 +00001466 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001467 test -d "$ac_dir" || continue
John Criswell451f67f2003-10-16 01:45:35 +00001468 ac_builddir=.
1469
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001470case "$ac_dir" in
1471.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472*)
John Criswell451f67f2003-10-16 01:45:35 +00001473 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001474 # A ".." for each directory in $ac_dir_suffix.
1475 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1476 case $ac_top_builddir_sub in
1477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1479 esac ;;
1480esac
1481ac_abs_top_builddir=$ac_pwd
1482ac_abs_builddir=$ac_pwd$ac_dir_suffix
1483# for backward compatibility:
1484ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +00001485
1486case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001487 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +00001488 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001489 ac_top_srcdir=$ac_top_builddir_sub
1490 ac_abs_top_srcdir=$ac_pwd ;;
1491 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +00001492 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001493 ac_top_srcdir=$srcdir
1494 ac_abs_top_srcdir=$srcdir ;;
1495 *) # Relative name.
1496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1497 ac_top_srcdir=$ac_top_build_prefix$srcdir
1498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +00001499esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001500ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer9964cd82005-01-01 09:26:55 +00001501
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001502 cd "$ac_dir" || { ac_status=$?; continue; }
1503 # Check for guested configure.
1504 if test -f "$ac_srcdir/configure.gnu"; then
1505 echo &&
1506 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1507 elif test -f "$ac_srcdir/configure"; then
1508 echo &&
1509 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell451f67f2003-10-16 01:45:35 +00001510 else
1511 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001512 fi || ac_status=$?
1513 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell451f67f2003-10-16 01:45:35 +00001514 done
1515fi
1516
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001517test -n "$ac_init_help" && exit $ac_status
John Criswell451f67f2003-10-16 01:45:35 +00001518if $ac_init_version; then
1519 cat <<\_ACEOF
1520[SAMPLE] configure [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001521generated by GNU Autoconf 2.60
John Criswell451f67f2003-10-16 01:45:35 +00001522
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001523Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15242002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00001525This configure script is free software; the Free Software Foundation
1526gives unlimited permission to copy, distribute and modify it.
1527_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001528 exit
John Criswell451f67f2003-10-16 01:45:35 +00001529fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001530cat >config.log <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00001531This file contains any messages produced by compilers while
1532running configure, to aid debugging if configure makes a mistake.
1533
1534It was created by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001535generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +00001536
1537 $ $0 $@
1538
1539_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001540exec 5>>config.log
John Criswell451f67f2003-10-16 01:45:35 +00001541{
1542cat <<_ASUNAME
1543## --------- ##
1544## Platform. ##
1545## --------- ##
1546
1547hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1548uname -m = `(uname -m) 2>/dev/null || echo unknown`
1549uname -r = `(uname -r) 2>/dev/null || echo unknown`
1550uname -s = `(uname -s) 2>/dev/null || echo unknown`
1551uname -v = `(uname -v) 2>/dev/null || echo unknown`
1552
1553/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1554/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1555
1556/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1557/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1558/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001559/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell451f67f2003-10-16 01:45:35 +00001560/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1561/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1562/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1563
1564_ASUNAME
1565
1566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567for as_dir in $PATH
1568do
1569 IFS=$as_save_IFS
1570 test -z "$as_dir" && as_dir=.
1571 echo "PATH: $as_dir"
1572done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001573IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +00001574
1575} >&5
1576
1577cat >&5 <<_ACEOF
1578
1579
1580## ----------- ##
1581## Core tests. ##
1582## ----------- ##
1583
1584_ACEOF
1585
1586
1587# Keep a trace of the command line.
1588# Strip out --no-create and --no-recursion so they do not pile up.
1589# Strip out --silent because we don't want to record it for future runs.
1590# Also quote any args containing shell meta-characters.
1591# Make two passes to allow for proper duplicate-argument suppression.
1592ac_configure_args=
1593ac_configure_args0=
1594ac_configure_args1=
John Criswell451f67f2003-10-16 01:45:35 +00001595ac_must_keep_next=false
1596for ac_pass in 1 2
1597do
1598 for ac_arg
1599 do
1600 case $ac_arg in
1601 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1602 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1603 | -silent | --silent | --silen | --sile | --sil)
1604 continue ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001605 *\'*)
John Criswell451f67f2003-10-16 01:45:35 +00001606 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1607 esac
1608 case $ac_pass in
1609 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1610 2)
1611 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1612 if test $ac_must_keep_next = true; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001613 ac_must_keep_next=false # Got value, back to normal.
John Criswell451f67f2003-10-16 01:45:35 +00001614 else
Reid Spencer9964cd82005-01-01 09:26:55 +00001615 case $ac_arg in
1616 *=* | --config-cache | -C | -disable-* | --disable-* \
1617 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1618 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1619 | -with-* | --with-* | -without-* | --without-* | --x)
1620 case "$ac_configure_args0 " in
1621 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1622 esac
1623 ;;
1624 -* ) ac_must_keep_next=true ;;
1625 esac
John Criswell451f67f2003-10-16 01:45:35 +00001626 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001627 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell451f67f2003-10-16 01:45:35 +00001628 ;;
1629 esac
1630 done
1631done
1632$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1633$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1634
1635# When interrupted or exit'd, cleanup temporary files, and complete
1636# config.log. We remove comments because anyway the quotes in there
1637# would cause problems or look ugly.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001638# WARNING: Use '\'' to represent an apostrophe within the trap.
1639# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell451f67f2003-10-16 01:45:35 +00001640trap 'exit_status=$?
1641 # Save into config.log some information that might help in debugging.
1642 {
1643 echo
1644
1645 cat <<\_ASBOX
1646## ---------------- ##
1647## Cache variables. ##
1648## ---------------- ##
1649_ASBOX
1650 echo
1651 # The following way of writing the cache mishandles newlines in values,
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001652(
1653 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1654 eval ac_val=\$$ac_var
1655 case $ac_val in #(
1656 *${as_nl}*)
1657 case $ac_var in #(
1658 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1659echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1660 esac
1661 case $ac_var in #(
1662 _ | IFS | as_nl) ;; #(
1663 *) $as_unset $ac_var ;;
1664 esac ;;
1665 esac
1666 done
John Criswell451f67f2003-10-16 01:45:35 +00001667 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001668 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1669 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +00001670 sed -n \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001671 "s/'\''/'\''\\\\'\'''\''/g;
1672 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1673 ;; #(
Dan Gohman324f6082009-03-25 00:52:11 +00001674 *)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001675 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Dan Gohman324f6082009-03-25 00:52:11 +00001676 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001677 esac |
1678 sort
1679)
John Criswell451f67f2003-10-16 01:45:35 +00001680 echo
1681
1682 cat <<\_ASBOX
1683## ----------------- ##
1684## Output variables. ##
1685## ----------------- ##
1686_ASBOX
1687 echo
1688 for ac_var in $ac_subst_vars
1689 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001690 eval ac_val=\$$ac_var
1691 case $ac_val in
1692 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1693 esac
1694 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001695 done | sort
1696 echo
1697
1698 if test -n "$ac_subst_files"; then
1699 cat <<\_ASBOX
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001700## ------------------- ##
1701## File substitutions. ##
1702## ------------------- ##
John Criswell451f67f2003-10-16 01:45:35 +00001703_ASBOX
1704 echo
1705 for ac_var in $ac_subst_files
1706 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001707 eval ac_val=\$$ac_var
1708 case $ac_val in
1709 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1710 esac
1711 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001712 done | sort
1713 echo
1714 fi
1715
1716 if test -s confdefs.h; then
1717 cat <<\_ASBOX
1718## ----------- ##
1719## confdefs.h. ##
1720## ----------- ##
1721_ASBOX
1722 echo
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001723 cat confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001724 echo
1725 fi
1726 test "$ac_signal" != 0 &&
1727 echo "$as_me: caught signal $ac_signal"
1728 echo "$as_me: exit $exit_status"
1729 } >&5
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001730 rm -f core *.core core.conftest.* &&
1731 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell451f67f2003-10-16 01:45:35 +00001732 exit $exit_status
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001733' 0
John Criswell451f67f2003-10-16 01:45:35 +00001734for ac_signal in 1 2 13 15; do
1735 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1736done
1737ac_signal=0
1738
1739# confdefs.h avoids OS command line length limits that DEFS can exceed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001740rm -f -r conftest* confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001741
1742# Predefined preprocessor variables.
1743
1744cat >>confdefs.h <<_ACEOF
1745#define PACKAGE_NAME "$PACKAGE_NAME"
1746_ACEOF
1747
1748
1749cat >>confdefs.h <<_ACEOF
1750#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1751_ACEOF
1752
1753
1754cat >>confdefs.h <<_ACEOF
1755#define PACKAGE_VERSION "$PACKAGE_VERSION"
1756_ACEOF
1757
1758
1759cat >>confdefs.h <<_ACEOF
1760#define PACKAGE_STRING "$PACKAGE_STRING"
1761_ACEOF
1762
1763
1764cat >>confdefs.h <<_ACEOF
1765#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1766_ACEOF
1767
1768
1769# Let the site file select an alternate cache file if it wants to.
1770# Prefer explicitly selected file to automatically selected ones.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001771if test -n "$CONFIG_SITE"; then
1772 set x "$CONFIG_SITE"
1773elif test "x$prefix" != xNONE; then
1774 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1775else
1776 set x "$ac_default_prefix/share/config.site" \
1777 "$ac_default_prefix/etc/config.site"
John Criswell451f67f2003-10-16 01:45:35 +00001778fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001779shift
1780for ac_site_file
1781do
John Criswell451f67f2003-10-16 01:45:35 +00001782 if test -r "$ac_site_file"; then
1783 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1784echo "$as_me: loading site script $ac_site_file" >&6;}
1785 sed 's/^/| /' "$ac_site_file" >&5
1786 . "$ac_site_file"
1787 fi
1788done
1789
1790if test -r "$cache_file"; then
1791 # Some versions of bash will fail to source /dev/null (special
1792 # files actually), so we avoid doing that.
1793 if test -f "$cache_file"; then
1794 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1795echo "$as_me: loading cache $cache_file" >&6;}
1796 case $cache_file in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001797 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1798 *) . "./$cache_file";;
John Criswell451f67f2003-10-16 01:45:35 +00001799 esac
1800 fi
1801else
1802 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1803echo "$as_me: creating cache $cache_file" >&6;}
1804 >$cache_file
1805fi
1806
1807# Check that the precious variables saved in the cache have kept the same
1808# value.
1809ac_cache_corrupted=false
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001810for ac_var in $ac_precious_vars; do
John Criswell451f67f2003-10-16 01:45:35 +00001811 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1812 eval ac_new_set=\$ac_env_${ac_var}_set
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001813 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1814 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell451f67f2003-10-16 01:45:35 +00001815 case $ac_old_set,$ac_new_set in
1816 set,)
1817 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1818echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1819 ac_cache_corrupted=: ;;
1820 ,set)
1821 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1822echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1823 ac_cache_corrupted=: ;;
1824 ,);;
1825 *)
1826 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001827 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001828echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001829 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001830echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001831 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001832echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001833 ac_cache_corrupted=:
John Criswell451f67f2003-10-16 01:45:35 +00001834 fi;;
1835 esac
1836 # Pass precious variables to config.status.
1837 if test "$ac_new_set" = set; then
1838 case $ac_new_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001839 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell451f67f2003-10-16 01:45:35 +00001840 *) ac_arg=$ac_var=$ac_new_val ;;
1841 esac
1842 case " $ac_configure_args " in
1843 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1844 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1845 esac
1846 fi
1847done
1848if $ac_cache_corrupted; then
1849 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1850echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1851 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1852echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1853 { (exit 1); exit 1; }; }
1854fi
1855
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
John Criswell451f67f2003-10-16 01:45:35 +00001880ac_ext=c
1881ac_cpp='$CPP $CPPFLAGS'
1882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1884ac_compiler_gnu=$ac_cv_c_compiler_gnu
1885
1886
1887
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001888LLVM_SRC_ROOT="../.."
1889LLVM_OBJ_ROOT="../.."
1890
1891LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1892LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
Dan Gohman324f6082009-03-25 00:52:11 +00001893
1894
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001895# Check whether --with-llvmsrc was given.
1896if test "${with_llvmsrc+set}" = set; then
1897 withval=$with_llvmsrc; llvm_src="$withval"
1898else
1899 llvm_src="$LLVM_ABS_SRC_ROOT"
1900fi
1901
1902 LLVM_SRC=$llvm_src
Dan Gohman324f6082009-03-25 00:52:11 +00001903
1904
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001905# Check whether --with-llvmobj was given.
1906if test "${with_llvmobj+set}" = set; then
1907 withval=$with_llvmobj; llvm_obj="$withval"
1908else
1909 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1910fi
Dan Gohman324f6082009-03-25 00:52:11 +00001911
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001912 LLVM_OBJ=$llvm_obj
Dan Gohman324f6082009-03-25 00:52:11 +00001913
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001914 ac_config_commands="$ac_config_commands setup"
Dan Gohman324f6082009-03-25 00:52:11 +00001915
1916
1917
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001918{ echo "$as_me:$LINENO: checking llvm-config" >&5
1919echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1920llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1921if ! test -f "$llvm_config_path" ; then
1922 llvm_config_path="no"
1923fi
1924{ echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1925echo "${ECHO_T}$llvm_config_path" >&6; }
1926
1927{ echo "$as_me:$LINENO: checking LLVM package version" >&5
1928echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1929if test "$llvm_config_path" != no ; then
1930 llvm_package_version=`$llvm_config_path --version`
1931else
1932 llvm_package_version="unknown";
1933fi
1934{ echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1935echo "${ECHO_T}$llvm_package_version" >&6; }
1936LLVM_VERSION=$llvm_package_version
1937
1938
1939
1940
John Criswell451f67f2003-10-16 01:45:35 +00001941ac_aux_dir=
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001942for ac_dir in autoconf "$srcdir"/autoconf; do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001943 if test -f "$ac_dir/install-sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001944 ac_aux_dir=$ac_dir
1945 ac_install_sh="$ac_aux_dir/install-sh -c"
1946 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001947 elif test -f "$ac_dir/install.sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001948 ac_aux_dir=$ac_dir
1949 ac_install_sh="$ac_aux_dir/install.sh -c"
1950 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001951 elif test -f "$ac_dir/shtool"; then
John Criswell451f67f2003-10-16 01:45:35 +00001952 ac_aux_dir=$ac_dir
1953 ac_install_sh="$ac_aux_dir/shtool install -c"
1954 break
1955 fi
1956done
1957if test -z "$ac_aux_dir"; then
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001958 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1959echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +00001960 { (exit 1); exit 1; }; }
1961fi
John Criswell451f67f2003-10-16 01:45:35 +00001962
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001963# These three variables are undocumented and unsupported,
1964# and are intended to be withdrawn in a future Autoconf release.
1965# They can cause serious problems if a builder's source tree is in a directory
1966# whose full name contains unusual characters.
1967ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1968ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1969ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Reid Spencer421ec052005-02-24 18:53:47 +00001970
1971
1972
1973
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001974ac_ext=c
1975ac_cpp='$CPP $CPPFLAGS'
1976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1978ac_compiler_gnu=$ac_cv_c_compiler_gnu
1979if test -n "$ac_tool_prefix"; then
1980 for ac_prog in clang llvm-gcc gcc
1981 do
1982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1983set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1986if test "${ac_cv_prog_CC+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1988else
1989 if test -n "$CC"; then
1990 ac_cv_prog_CC="$CC" # Let the user override the test.
1991else
1992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993for as_dir in $PATH
1994do
1995 IFS=$as_save_IFS
1996 test -z "$as_dir" && as_dir=.
1997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1999 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001 break 2
2002 fi
2003done
2004done
2005IFS=$as_save_IFS
2006
2007fi
2008fi
2009CC=$ac_cv_prog_CC
2010if test -n "$CC"; then
2011 { echo "$as_me:$LINENO: result: $CC" >&5
2012echo "${ECHO_T}$CC" >&6; }
2013else
2014 { echo "$as_me:$LINENO: result: no" >&5
2015echo "${ECHO_T}no" >&6; }
2016fi
2017
2018
2019 test -n "$CC" && break
2020 done
2021fi
2022if test -z "$CC"; then
2023 ac_ct_CC=$CC
2024 for ac_prog in clang llvm-gcc gcc
2025do
2026 # Extract the first word of "$ac_prog", so it can be a program name with args.
2027set dummy $ac_prog; ac_word=$2
2028{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2030if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032else
2033 if test -n "$ac_ct_CC"; then
2034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2035else
2036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037for as_dir in $PATH
2038do
2039 IFS=$as_save_IFS
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2043 ac_cv_prog_ac_ct_CC="$ac_prog"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 break 2
2046 fi
2047done
2048done
2049IFS=$as_save_IFS
2050
2051fi
2052fi
2053ac_ct_CC=$ac_cv_prog_ac_ct_CC
2054if test -n "$ac_ct_CC"; then
2055 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2056echo "${ECHO_T}$ac_ct_CC" >&6; }
2057else
2058 { echo "$as_me:$LINENO: result: no" >&5
2059echo "${ECHO_T}no" >&6; }
2060fi
2061
2062
2063 test -n "$ac_ct_CC" && break
2064done
2065
2066 if test "x$ac_ct_CC" = x; then
2067 CC=""
2068 else
2069 case $cross_compiling:$ac_tool_warned in
2070yes:)
2071{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2072whose name does not start with the host triplet. If you think this
2073configuration is useful to you, please write to autoconf@gnu.org." >&5
2074echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2075whose name does not start with the host triplet. If you think this
2076configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2077ac_tool_warned=yes ;;
2078esac
2079 CC=$ac_ct_CC
2080 fi
2081fi
2082
2083
2084test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2085See \`config.log' for more details." >&5
2086echo "$as_me: error: no acceptable C compiler found in \$PATH
2087See \`config.log' for more details." >&2;}
2088 { (exit 1); exit 1; }; }
2089
2090# Provide some information about the compiler.
2091echo "$as_me:$LINENO: checking for C compiler version" >&5
2092ac_compiler=`set X $ac_compile; echo $2`
2093{ (ac_try="$ac_compiler --version >&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 --version >&5") 2>&5
2100 ac_status=$?
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
2103{ (ac_try="$ac_compiler -v >&5"
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{ (ac_try="$ac_compiler -V >&5"
2114case "(($ac_try" in
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2117esac
2118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119 (eval "$ac_compiler -V >&5") 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }
2123
2124cat >conftest.$ac_ext <<_ACEOF
2125/* confdefs.h. */
2126_ACEOF
2127cat confdefs.h >>conftest.$ac_ext
2128cat >>conftest.$ac_ext <<_ACEOF
2129/* end confdefs.h. */
2130
2131int
2132main ()
2133{
2134
2135 ;
2136 return 0;
2137}
2138_ACEOF
2139ac_clean_files_save=$ac_clean_files
2140ac_clean_files="$ac_clean_files a.out a.exe b.out"
2141# Try to create an executable without -o first, disregard a.out.
2142# It will help us diagnose broken compilers, and finding out an intuition
2143# of exeext.
2144{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2145echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2146ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2147#
2148# List of possible output files, starting from the most likely.
2149# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2150# only as a last resort. b.out is created by i960 compilers.
2151ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2152#
2153# The IRIX 6 linker writes into existing files which may not be
2154# executable, retaining their permissions. Remove them first so a
2155# subsequent execution test works.
2156ac_rmfiles=
2157for ac_file in $ac_files
2158do
2159 case $ac_file in
2160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2161 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2162 esac
2163done
2164rm -f $ac_rmfiles
2165
2166if { (ac_try="$ac_link_default"
2167case "(($ac_try" in
2168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2169 *) ac_try_echo=$ac_try;;
2170esac
2171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2172 (eval "$ac_link_default") 2>&5
2173 ac_status=$?
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; then
2176 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2177# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2178# in a Makefile. We should not override ac_cv_exeext if it was cached,
2179# so that the user can short-circuit this test for compilers unknown to
2180# Autoconf.
2181for ac_file in $ac_files
2182do
2183 test -f "$ac_file" || continue
2184 case $ac_file in
2185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2186 ;;
2187 [ab].out )
2188 # We found the default executable, but exeext='' is most
2189 # certainly right.
2190 break;;
2191 *.* )
2192 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2193 then :; else
2194 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2195 fi
2196 # We set ac_cv_exeext here because the later test for it is not
2197 # safe: cross compilers may not add the suffix if given an `-o'
2198 # argument, so we may need to know it at that point already.
2199 # Even if this section looks crufty: it has the advantage of
2200 # actually working.
2201 break;;
2202 * )
2203 break;;
2204 esac
2205done
2206test "$ac_cv_exeext" = no && ac_cv_exeext=
2207
2208else
2209 echo "$as_me: failed program was:" >&5
2210sed 's/^/| /' conftest.$ac_ext >&5
2211
2212{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2213See \`config.log' for more details." >&5
2214echo "$as_me: error: C compiler cannot create executables
2215See \`config.log' for more details." >&2;}
2216 { (exit 77); exit 77; }; }
2217fi
2218
2219ac_exeext=$ac_cv_exeext
2220{ echo "$as_me:$LINENO: result: $ac_file" >&5
2221echo "${ECHO_T}$ac_file" >&6; }
2222
2223# Check that the compiler produces executables we can run. If not, either
2224# the compiler is broken, or we cross compile.
2225{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2226echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2227# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2228# If not cross compiling, check that we can run a simple program.
2229if test "$cross_compiling" != yes; then
2230 if { ac_try='./$ac_file'
2231 { (case "(($ac_try" in
2232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233 *) ac_try_echo=$ac_try;;
2234esac
2235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2236 (eval "$ac_try") 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
2240 cross_compiling=no
2241 else
2242 if test "$cross_compiling" = maybe; then
2243 cross_compiling=yes
2244 else
2245 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2246If you meant to cross compile, use \`--host'.
2247See \`config.log' for more details." >&5
2248echo "$as_me: error: cannot run C compiled programs.
2249If you meant to cross compile, use \`--host'.
2250See \`config.log' for more details." >&2;}
2251 { (exit 1); exit 1; }; }
2252 fi
2253 fi
2254fi
2255{ echo "$as_me:$LINENO: result: yes" >&5
2256echo "${ECHO_T}yes" >&6; }
2257
2258rm -f a.out a.exe conftest$ac_cv_exeext b.out
2259ac_clean_files=$ac_clean_files_save
2260# Check that the compiler produces executables we can run. If not, either
2261# the compiler is broken, or we cross compile.
2262{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2263echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2264{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2265echo "${ECHO_T}$cross_compiling" >&6; }
2266
2267{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2268echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2269if { (ac_try="$ac_link"
2270case "(($ac_try" in
2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272 *) ac_try_echo=$ac_try;;
2273esac
2274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2275 (eval "$ac_link") 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; then
2279 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2280# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2281# work properly (i.e., refer to `conftest.exe'), while it won't with
2282# `rm'.
2283for ac_file in conftest.exe conftest conftest.*; do
2284 test -f "$ac_file" || continue
2285 case $ac_file in
2286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2287 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2288 break;;
2289 * ) break;;
2290 esac
2291done
2292else
2293 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2294See \`config.log' for more details." >&5
2295echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2296See \`config.log' for more details." >&2;}
2297 { (exit 1); exit 1; }; }
2298fi
2299
2300rm -f conftest$ac_cv_exeext
2301{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2302echo "${ECHO_T}$ac_cv_exeext" >&6; }
2303
2304rm -f conftest.$ac_ext
2305EXEEXT=$ac_cv_exeext
2306ac_exeext=$EXEEXT
2307{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2308echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2309if test "${ac_cv_objext+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2311else
2312 cat >conftest.$ac_ext <<_ACEOF
2313/* confdefs.h. */
2314_ACEOF
2315cat confdefs.h >>conftest.$ac_ext
2316cat >>conftest.$ac_ext <<_ACEOF
2317/* end confdefs.h. */
2318
2319int
2320main ()
2321{
2322
2323 ;
2324 return 0;
2325}
2326_ACEOF
2327rm -f conftest.o conftest.obj
2328if { (ac_try="$ac_compile"
2329case "(($ac_try" in
2330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331 *) ac_try_echo=$ac_try;;
2332esac
2333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2334 (eval "$ac_compile") 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; then
2338 for ac_file in conftest.o conftest.obj conftest.*; do
2339 test -f "$ac_file" || continue;
2340 case $ac_file in
2341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2342 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2343 break;;
2344 esac
2345done
2346else
2347 echo "$as_me: failed program was:" >&5
2348sed 's/^/| /' conftest.$ac_ext >&5
2349
2350{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2351See \`config.log' for more details." >&5
2352echo "$as_me: error: cannot compute suffix of object files: cannot compile
2353See \`config.log' for more details." >&2;}
2354 { (exit 1); exit 1; }; }
2355fi
2356
2357rm -f conftest.$ac_cv_objext conftest.$ac_ext
2358fi
2359{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2360echo "${ECHO_T}$ac_cv_objext" >&6; }
2361OBJEXT=$ac_cv_objext
2362ac_objext=$OBJEXT
2363{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2364echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2365if test "${ac_cv_c_compiler_gnu+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367else
2368 cat >conftest.$ac_ext <<_ACEOF
2369/* confdefs.h. */
2370_ACEOF
2371cat confdefs.h >>conftest.$ac_ext
2372cat >>conftest.$ac_ext <<_ACEOF
2373/* end confdefs.h. */
2374
2375int
2376main ()
2377{
2378#ifndef __GNUC__
2379 choke me
2380#endif
2381
2382 ;
2383 return 0;
2384}
2385_ACEOF
2386rm -f conftest.$ac_objext
2387if { (ac_try="$ac_compile"
2388case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2391esac
2392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_compile") 2>conftest.er1
2394 ac_status=$?
2395 grep -v '^ *+' conftest.er1 >conftest.err
2396 rm -f conftest.er1
2397 cat conftest.err >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
2400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2401 { (case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
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); }; } &&
2410 { ac_try='test -s conftest.$ac_objext'
2411 { (case "(($ac_try" in
2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413 *) ac_try_echo=$ac_try;;
2414esac
2415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416 (eval "$ac_try") 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2420 ac_compiler_gnu=yes
2421else
2422 echo "$as_me: failed program was:" >&5
2423sed 's/^/| /' conftest.$ac_ext >&5
2424
2425 ac_compiler_gnu=no
2426fi
2427
2428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2429ac_cv_c_compiler_gnu=$ac_compiler_gnu
2430
2431fi
2432{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2433echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2434GCC=`test $ac_compiler_gnu = yes && echo yes`
2435ac_test_CFLAGS=${CFLAGS+set}
2436ac_save_CFLAGS=$CFLAGS
2437{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2438echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2439if test "${ac_cv_prog_cc_g+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2441else
2442 ac_save_c_werror_flag=$ac_c_werror_flag
2443 ac_c_werror_flag=yes
2444 ac_cv_prog_cc_g=no
2445 CFLAGS="-g"
2446 cat >conftest.$ac_ext <<_ACEOF
2447/* confdefs.h. */
2448_ACEOF
2449cat confdefs.h >>conftest.$ac_ext
2450cat >>conftest.$ac_ext <<_ACEOF
2451/* end confdefs.h. */
2452
2453int
2454main ()
2455{
2456
2457 ;
2458 return 0;
2459}
2460_ACEOF
2461rm -f conftest.$ac_objext
2462if { (ac_try="$ac_compile"
2463case "(($ac_try" in
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2466esac
2467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_compile") 2>conftest.er1
2469 ac_status=$?
2470 grep -v '^ *+' conftest.er1 >conftest.err
2471 rm -f conftest.er1
2472 cat conftest.err >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); } &&
2475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2476 { (case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
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); }; } &&
2485 { ac_try='test -s conftest.$ac_objext'
2486 { (case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2489esac
2490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_try") 2>&5
2492 ac_status=$?
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; }; then
2495 ac_cv_prog_cc_g=yes
2496else
2497 echo "$as_me: failed program was:" >&5
2498sed 's/^/| /' conftest.$ac_ext >&5
2499
2500 CFLAGS=""
2501 cat >conftest.$ac_ext <<_ACEOF
2502/* confdefs.h. */
2503_ACEOF
2504cat confdefs.h >>conftest.$ac_ext
2505cat >>conftest.$ac_ext <<_ACEOF
2506/* end confdefs.h. */
2507
2508int
2509main ()
2510{
2511
2512 ;
2513 return 0;
2514}
2515_ACEOF
2516rm -f conftest.$ac_objext
2517if { (ac_try="$ac_compile"
2518case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2521esac
2522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_compile") 2>conftest.er1
2524 ac_status=$?
2525 grep -v '^ *+' conftest.er1 >conftest.err
2526 rm -f conftest.er1
2527 cat conftest.err >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2531 { (case "(($ac_try" in
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
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); }; } &&
2540 { ac_try='test -s conftest.$ac_objext'
2541 { (case "(($ac_try" in
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2544esac
2545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546 (eval "$ac_try") 2>&5
2547 ac_status=$?
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; }; then
2550 :
2551else
2552 echo "$as_me: failed program was:" >&5
2553sed 's/^/| /' conftest.$ac_ext >&5
2554
2555 ac_c_werror_flag=$ac_save_c_werror_flag
2556 CFLAGS="-g"
2557 cat >conftest.$ac_ext <<_ACEOF
2558/* confdefs.h. */
2559_ACEOF
2560cat confdefs.h >>conftest.$ac_ext
2561cat >>conftest.$ac_ext <<_ACEOF
2562/* end confdefs.h. */
2563
2564int
2565main ()
2566{
2567
2568 ;
2569 return 0;
2570}
2571_ACEOF
2572rm -f conftest.$ac_objext
2573if { (ac_try="$ac_compile"
2574case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2577esac
2578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_compile") 2>conftest.er1
2580 ac_status=$?
2581 grep -v '^ *+' conftest.er1 >conftest.err
2582 rm -f conftest.er1
2583 cat conftest.err >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } &&
2586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2587 { (case "(($ac_try" in
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
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); }; } &&
2596 { ac_try='test -s conftest.$ac_objext'
2597 { (case "(($ac_try" in
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2600esac
2601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602 (eval "$ac_try") 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2606 ac_cv_prog_cc_g=yes
2607else
2608 echo "$as_me: failed program was:" >&5
2609sed 's/^/| /' conftest.$ac_ext >&5
2610
2611
2612fi
2613
2614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615fi
2616
2617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618fi
2619
2620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621 ac_c_werror_flag=$ac_save_c_werror_flag
2622fi
2623{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2624echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2625if test "$ac_test_CFLAGS" = set; then
2626 CFLAGS=$ac_save_CFLAGS
2627elif test $ac_cv_prog_cc_g = yes; then
2628 if test "$GCC" = yes; then
2629 CFLAGS="-g -O2"
2630 else
2631 CFLAGS="-g"
2632 fi
2633else
2634 if test "$GCC" = yes; then
2635 CFLAGS="-O2"
2636 else
2637 CFLAGS=
2638 fi
2639fi
2640{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2641echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2642if test "${ac_cv_prog_cc_c89+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2644else
2645 ac_cv_prog_cc_c89=no
2646ac_save_CC=$CC
2647cat >conftest.$ac_ext <<_ACEOF
2648/* confdefs.h. */
2649_ACEOF
2650cat confdefs.h >>conftest.$ac_ext
2651cat >>conftest.$ac_ext <<_ACEOF
2652/* end confdefs.h. */
2653#include <stdarg.h>
2654#include <stdio.h>
2655#include <sys/types.h>
2656#include <sys/stat.h>
2657/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2658struct buf { int x; };
2659FILE * (*rcsopen) (struct buf *, struct stat *, int);
2660static char *e (p, i)
2661 char **p;
2662 int i;
2663{
2664 return p[i];
2665}
2666static char *f (char * (*g) (char **, int), char **p, ...)
2667{
2668 char *s;
2669 va_list v;
2670 va_start (v,p);
2671 s = g (p, va_arg (v,int));
2672 va_end (v);
2673 return s;
2674}
2675
2676/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2677 function prototypes and stuff, but not '\xHH' hex character constants.
2678 These don't provoke an error unfortunately, instead are silently treated
2679 as 'x'. The following induces an error, until -std is added to get
2680 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2681 array size at least. It's necessary to write '\x00'==0 to get something
2682 that's true only with -std. */
2683int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2684
2685/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2686 inside strings and character constants. */
2687#define FOO(x) 'x'
2688int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2689
2690int test (int i, double x);
2691struct s1 {int (*f) (int a);};
2692struct s2 {int (*f) (double a);};
2693int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2694int argc;
2695char **argv;
2696int
2697main ()
2698{
2699return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2700 ;
2701 return 0;
2702}
2703_ACEOF
2704for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2705 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2706do
2707 CC="$ac_save_CC $ac_arg"
2708 rm -f conftest.$ac_objext
2709if { (ac_try="$ac_compile"
2710case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713esac
2714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_compile") 2>conftest.er1
2716 ac_status=$?
2717 grep -v '^ *+' conftest.er1 >conftest.err
2718 rm -f conftest.er1
2719 cat conftest.err >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } &&
2722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2723 { (case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
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); }; } &&
2732 { ac_try='test -s conftest.$ac_objext'
2733 { (case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736esac
2737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_try") 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2742 ac_cv_prog_cc_c89=$ac_arg
2743else
2744 echo "$as_me: failed program was:" >&5
2745sed 's/^/| /' conftest.$ac_ext >&5
2746
2747
2748fi
2749
2750rm -f core conftest.err conftest.$ac_objext
2751 test "x$ac_cv_prog_cc_c89" != "xno" && break
2752done
2753rm -f conftest.$ac_ext
2754CC=$ac_save_CC
2755
2756fi
2757# AC_CACHE_VAL
2758case "x$ac_cv_prog_cc_c89" in
2759 x)
2760 { echo "$as_me:$LINENO: result: none needed" >&5
2761echo "${ECHO_T}none needed" >&6; } ;;
2762 xno)
2763 { echo "$as_me:$LINENO: result: unsupported" >&5
2764echo "${ECHO_T}unsupported" >&6; } ;;
2765 *)
2766 CC="$CC $ac_cv_prog_cc_c89"
2767 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2768echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2769esac
2770
2771
2772ac_ext=c
2773ac_cpp='$CPP $CPPFLAGS'
2774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776ac_compiler_gnu=$ac_cv_c_compiler_gnu
2777
2778ac_ext=cpp
2779ac_cpp='$CXXCPP $CPPFLAGS'
2780ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2783if test -z "$CXX"; then
2784 if test -n "$CCC"; then
2785 CXX=$CCC
2786 else
2787 if test -n "$ac_tool_prefix"; then
2788 for ac_prog in clang++ llvm-g++ g++
2789 do
2790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2791set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2792{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2794if test "${ac_cv_prog_CXX+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2796else
2797 if test -n "$CXX"; then
2798 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2799else
2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801for as_dir in $PATH
2802do
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2807 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 break 2
2810 fi
2811done
2812done
2813IFS=$as_save_IFS
2814
2815fi
2816fi
2817CXX=$ac_cv_prog_CXX
2818if test -n "$CXX"; then
2819 { echo "$as_me:$LINENO: result: $CXX" >&5
2820echo "${ECHO_T}$CXX" >&6; }
2821else
2822 { echo "$as_me:$LINENO: result: no" >&5
2823echo "${ECHO_T}no" >&6; }
2824fi
2825
2826
2827 test -n "$CXX" && break
2828 done
2829fi
2830if test -z "$CXX"; then
2831 ac_ct_CXX=$CXX
2832 for ac_prog in clang++ llvm-g++ g++
2833do
2834 # Extract the first word of "$ac_prog", so it can be a program name with args.
2835set dummy $ac_prog; ac_word=$2
2836{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2838if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2840else
2841 if test -n "$ac_ct_CXX"; then
2842 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2843else
2844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845for as_dir in $PATH
2846do
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2851 ac_cv_prog_ac_ct_CXX="$ac_prog"
2852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 break 2
2854 fi
2855done
2856done
2857IFS=$as_save_IFS
2858
2859fi
2860fi
2861ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2862if test -n "$ac_ct_CXX"; then
2863 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2864echo "${ECHO_T}$ac_ct_CXX" >&6; }
2865else
2866 { echo "$as_me:$LINENO: result: no" >&5
2867echo "${ECHO_T}no" >&6; }
2868fi
2869
2870
2871 test -n "$ac_ct_CXX" && break
2872done
2873
2874 if test "x$ac_ct_CXX" = x; then
2875 CXX="g++"
2876 else
2877 case $cross_compiling:$ac_tool_warned in
2878yes:)
2879{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2880whose name does not start with the host triplet. If you think this
2881configuration is useful to you, please write to autoconf@gnu.org." >&5
2882echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2883whose name does not start with the host triplet. If you think this
2884configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2885ac_tool_warned=yes ;;
2886esac
2887 CXX=$ac_ct_CXX
2888 fi
2889fi
2890
2891 fi
2892fi
2893# Provide some information about the compiler.
2894echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2895ac_compiler=`set X $ac_compile; echo $2`
2896{ (ac_try="$ac_compiler --version >&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 --version >&5") 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2906{ (ac_try="$ac_compiler -v >&5"
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{ (ac_try="$ac_compiler -V >&5"
2917case "(($ac_try" in
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2920esac
2921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_compiler -V >&5") 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }
2926
2927{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2928echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2929if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2931else
2932 cat >conftest.$ac_ext <<_ACEOF
2933/* confdefs.h. */
2934_ACEOF
2935cat confdefs.h >>conftest.$ac_ext
2936cat >>conftest.$ac_ext <<_ACEOF
2937/* end confdefs.h. */
2938
2939int
2940main ()
2941{
2942#ifndef __GNUC__
2943 choke me
2944#endif
2945
2946 ;
2947 return 0;
2948}
2949_ACEOF
2950rm -f conftest.$ac_objext
2951if { (ac_try="$ac_compile"
2952case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955esac
2956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_compile") 2>conftest.er1
2958 ac_status=$?
2959 grep -v '^ *+' conftest.er1 >conftest.err
2960 rm -f conftest.er1
2961 cat conftest.err >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } &&
2964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2965 { (case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
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); }; } &&
2974 { ac_try='test -s conftest.$ac_objext'
2975 { (case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978esac
2979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_try") 2>&5
2981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; }; then
2984 ac_compiler_gnu=yes
2985else
2986 echo "$as_me: failed program was:" >&5
2987sed 's/^/| /' conftest.$ac_ext >&5
2988
2989 ac_compiler_gnu=no
2990fi
2991
2992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2994
2995fi
2996{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2997echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2998GXX=`test $ac_compiler_gnu = yes && echo yes`
2999ac_test_CXXFLAGS=${CXXFLAGS+set}
3000ac_save_CXXFLAGS=$CXXFLAGS
3001{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3002echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3003if test "${ac_cv_prog_cxx_g+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3005else
3006 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3007 ac_cxx_werror_flag=yes
3008 ac_cv_prog_cxx_g=no
3009 CXXFLAGS="-g"
3010 cat >conftest.$ac_ext <<_ACEOF
3011/* confdefs.h. */
3012_ACEOF
3013cat confdefs.h >>conftest.$ac_ext
3014cat >>conftest.$ac_ext <<_ACEOF
3015/* end confdefs.h. */
3016
3017int
3018main ()
3019{
3020
3021 ;
3022 return 0;
3023}
3024_ACEOF
3025rm -f conftest.$ac_objext
3026if { (ac_try="$ac_compile"
3027case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030esac
3031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_compile") 2>conftest.er1
3033 ac_status=$?
3034 grep -v '^ *+' conftest.er1 >conftest.err
3035 rm -f conftest.er1
3036 cat conftest.err >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } &&
3039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3040 { (case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
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); }; } &&
3049 { ac_try='test -s conftest.$ac_objext'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3053esac
3054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_try") 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3059 ac_cv_prog_cxx_g=yes
3060else
3061 echo "$as_me: failed program was:" >&5
3062sed 's/^/| /' conftest.$ac_ext >&5
3063
3064 CXXFLAGS=""
3065 cat >conftest.$ac_ext <<_ACEOF
3066/* confdefs.h. */
3067_ACEOF
3068cat confdefs.h >>conftest.$ac_ext
3069cat >>conftest.$ac_ext <<_ACEOF
3070/* end confdefs.h. */
3071
3072int
3073main ()
3074{
3075
3076 ;
3077 return 0;
3078}
3079_ACEOF
3080rm -f conftest.$ac_objext
3081if { (ac_try="$ac_compile"
3082case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085esac
3086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_compile") 2>conftest.er1
3088 ac_status=$?
3089 grep -v '^ *+' conftest.er1 >conftest.err
3090 rm -f conftest.er1
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } &&
3094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
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); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108esac
3109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_try") 2>&5
3111 ac_status=$?
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; }; then
3114 :
3115else
3116 echo "$as_me: failed program was:" >&5
3117sed 's/^/| /' conftest.$ac_ext >&5
3118
3119 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3120 CXXFLAGS="-g"
3121 cat >conftest.$ac_ext <<_ACEOF
3122/* confdefs.h. */
3123_ACEOF
3124cat confdefs.h >>conftest.$ac_ext
3125cat >>conftest.$ac_ext <<_ACEOF
3126/* end confdefs.h. */
3127
3128int
3129main ()
3130{
3131
3132 ;
3133 return 0;
3134}
3135_ACEOF
3136rm -f conftest.$ac_objext
3137if { (ac_try="$ac_compile"
3138case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_compile") 2>conftest.er1
3144 ac_status=$?
3145 grep -v '^ *+' conftest.er1 >conftest.err
3146 rm -f conftest.er1
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } &&
3150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3151 { (case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
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); }; } &&
3160 { ac_try='test -s conftest.$ac_objext'
3161 { (case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164esac
3165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_try") 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3170 ac_cv_prog_cxx_g=yes
3171else
3172 echo "$as_me: failed program was:" >&5
3173sed 's/^/| /' conftest.$ac_ext >&5
3174
3175
3176fi
3177
3178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179fi
3180
3181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182fi
3183
3184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3186fi
3187{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3188echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3189if test "$ac_test_CXXFLAGS" = set; then
3190 CXXFLAGS=$ac_save_CXXFLAGS
3191elif test $ac_cv_prog_cxx_g = yes; then
3192 if test "$GXX" = yes; then
3193 CXXFLAGS="-g -O2"
3194 else
3195 CXXFLAGS="-g"
3196 fi
3197else
3198 if test "$GXX" = yes; then
3199 CXXFLAGS="-O2"
3200 else
3201 CXXFLAGS=
3202 fi
3203fi
3204ac_ext=c
3205ac_cpp='$CPP $CPPFLAGS'
3206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209
3210ac_ext=c
3211ac_cpp='$CPP $CPPFLAGS'
3212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3216echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3217# On Suns, sometimes $CPP names a directory.
3218if test -n "$CPP" && test -d "$CPP"; then
3219 CPP=
3220fi
3221if test -z "$CPP"; then
3222 if test "${ac_cv_prog_CPP+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3224else
3225 # Double quotes because CPP needs to be expanded
3226 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3227 do
3228 ac_preproc_ok=false
3229for ac_c_preproc_warn_flag in '' yes
3230do
3231 # Use a header file that comes with gcc, so configuring glibc
3232 # with a fresh cross-compiler works.
3233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3234 # <limits.h> exists even on freestanding compilers.
3235 # On the NeXT, cc -E runs the code through the compiler's parser,
3236 # not just through cpp. "Syntax error" is here to catch this case.
3237 cat >conftest.$ac_ext <<_ACEOF
3238/* confdefs.h. */
3239_ACEOF
3240cat confdefs.h >>conftest.$ac_ext
3241cat >>conftest.$ac_ext <<_ACEOF
3242/* end confdefs.h. */
3243#ifdef __STDC__
3244# include <limits.h>
3245#else
3246# include <assert.h>
3247#endif
3248 Syntax error
3249_ACEOF
3250if { (ac_try="$ac_cpp conftest.$ac_ext"
3251case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254esac
3255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3257 ac_status=$?
3258 grep -v '^ *+' conftest.er1 >conftest.err
3259 rm -f conftest.er1
3260 cat conftest.err >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } >/dev/null; then
3263 if test -s conftest.err; then
3264 ac_cpp_err=$ac_c_preproc_warn_flag
3265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3266 else
3267 ac_cpp_err=
3268 fi
3269else
3270 ac_cpp_err=yes
3271fi
3272if test -z "$ac_cpp_err"; then
3273 :
3274else
3275 echo "$as_me: failed program was:" >&5
3276sed 's/^/| /' conftest.$ac_ext >&5
3277
3278 # Broken: fails on valid input.
3279continue
3280fi
3281
3282rm -f conftest.err conftest.$ac_ext
3283
3284 # OK, works on sane cases. Now check whether nonexistent headers
3285 # can be detected and how.
3286 cat >conftest.$ac_ext <<_ACEOF
3287/* confdefs.h. */
3288_ACEOF
3289cat confdefs.h >>conftest.$ac_ext
3290cat >>conftest.$ac_ext <<_ACEOF
3291/* end confdefs.h. */
3292#include <ac_nonexistent.h>
3293_ACEOF
3294if { (ac_try="$ac_cpp conftest.$ac_ext"
3295case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298esac
3299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3301 ac_status=$?
3302 grep -v '^ *+' conftest.er1 >conftest.err
3303 rm -f conftest.er1
3304 cat conftest.err >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } >/dev/null; then
3307 if test -s conftest.err; then
3308 ac_cpp_err=$ac_c_preproc_warn_flag
3309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3310 else
3311 ac_cpp_err=
3312 fi
3313else
3314 ac_cpp_err=yes
3315fi
3316if test -z "$ac_cpp_err"; then
3317 # Broken: success on invalid input.
3318continue
3319else
3320 echo "$as_me: failed program was:" >&5
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
3323 # Passes both tests.
3324ac_preproc_ok=:
3325break
3326fi
3327
3328rm -f conftest.err conftest.$ac_ext
3329
3330done
3331# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3332rm -f conftest.err conftest.$ac_ext
3333if $ac_preproc_ok; then
3334 break
3335fi
3336
3337 done
3338 ac_cv_prog_CPP=$CPP
3339
3340fi
3341 CPP=$ac_cv_prog_CPP
3342else
3343 ac_cv_prog_CPP=$CPP
3344fi
3345{ echo "$as_me:$LINENO: result: $CPP" >&5
3346echo "${ECHO_T}$CPP" >&6; }
3347ac_preproc_ok=false
3348for ac_c_preproc_warn_flag in '' yes
3349do
3350 # Use a header file that comes with gcc, so configuring glibc
3351 # with a fresh cross-compiler works.
3352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3353 # <limits.h> exists even on freestanding compilers.
3354 # On the NeXT, cc -E runs the code through the compiler's parser,
3355 # not just through cpp. "Syntax error" is here to catch this case.
3356 cat >conftest.$ac_ext <<_ACEOF
3357/* confdefs.h. */
3358_ACEOF
3359cat confdefs.h >>conftest.$ac_ext
3360cat >>conftest.$ac_ext <<_ACEOF
3361/* end confdefs.h. */
3362#ifdef __STDC__
3363# include <limits.h>
3364#else
3365# include <assert.h>
3366#endif
3367 Syntax error
3368_ACEOF
3369if { (ac_try="$ac_cpp conftest.$ac_ext"
3370case "(($ac_try" in
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3373esac
3374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3376 ac_status=$?
3377 grep -v '^ *+' conftest.er1 >conftest.err
3378 rm -f conftest.er1
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } >/dev/null; then
3382 if test -s conftest.err; then
3383 ac_cpp_err=$ac_c_preproc_warn_flag
3384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3385 else
3386 ac_cpp_err=
3387 fi
3388else
3389 ac_cpp_err=yes
3390fi
3391if test -z "$ac_cpp_err"; then
3392 :
3393else
3394 echo "$as_me: failed program was:" >&5
3395sed 's/^/| /' conftest.$ac_ext >&5
3396
3397 # Broken: fails on valid input.
3398continue
3399fi
3400
3401rm -f conftest.err conftest.$ac_ext
3402
3403 # OK, works on sane cases. Now check whether nonexistent headers
3404 # can be detected and how.
3405 cat >conftest.$ac_ext <<_ACEOF
3406/* confdefs.h. */
3407_ACEOF
3408cat confdefs.h >>conftest.$ac_ext
3409cat >>conftest.$ac_ext <<_ACEOF
3410/* end confdefs.h. */
3411#include <ac_nonexistent.h>
3412_ACEOF
3413if { (ac_try="$ac_cpp conftest.$ac_ext"
3414case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3417esac
3418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3420 ac_status=$?
3421 grep -v '^ *+' conftest.er1 >conftest.err
3422 rm -f conftest.er1
3423 cat conftest.err >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } >/dev/null; then
3426 if test -s conftest.err; then
3427 ac_cpp_err=$ac_c_preproc_warn_flag
3428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3429 else
3430 ac_cpp_err=
3431 fi
3432else
3433 ac_cpp_err=yes
3434fi
3435if test -z "$ac_cpp_err"; then
3436 # Broken: success on invalid input.
3437continue
3438else
3439 echo "$as_me: failed program was:" >&5
3440sed 's/^/| /' conftest.$ac_ext >&5
3441
3442 # Passes both tests.
3443ac_preproc_ok=:
3444break
3445fi
3446
3447rm -f conftest.err conftest.$ac_ext
3448
3449done
3450# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451rm -f conftest.err conftest.$ac_ext
3452if $ac_preproc_ok; then
3453 :
3454else
3455 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3456See \`config.log' for more details." >&5
3457echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3458See \`config.log' for more details." >&2;}
3459 { (exit 1); exit 1; }; }
3460fi
3461
3462ac_ext=c
3463ac_cpp='$CPP $CPPFLAGS'
3464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467
3468
3469
3470
3471# Check whether --enable-polly was given.
3472if test "${enable_polly+set}" = set; then
3473 enableval=$enable_polly;
3474else
3475 enableval=default
3476fi
3477
3478case "$enableval" in
3479 yes) ENABLE_POLLY=1
3480 ;;
3481 no) ENABLE_POLLY=0
3482 ;;
3483 default) ENABLE_POLLY=1
3484 ;;
3485 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3486echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3487 { (exit 1); exit 1; }; } ;;
3488esac
3489
3490
3491if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3492 LLVM_HAS_POLLY=1
3493
3494 subdirs="$subdirs tools/polly"
3495
3496fi
3497
3498
3499# Make sure we can run config.sub.
3500$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3501 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3502echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3503 { (exit 1); exit 1; }; }
3504
3505{ echo "$as_me:$LINENO: checking build system type" >&5
3506echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3507if test "${ac_cv_build+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3509else
3510 ac_build_alias=$build_alias
3511test "x$ac_build_alias" = x &&
3512 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3513test "x$ac_build_alias" = x &&
3514 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3515echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3516 { (exit 1); exit 1; }; }
3517ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3518 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3519echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3520 { (exit 1); exit 1; }; }
3521
3522fi
3523{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3524echo "${ECHO_T}$ac_cv_build" >&6; }
3525case $ac_cv_build in
3526*-*-*) ;;
3527*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3528echo "$as_me: error: invalid value of canonical build" >&2;}
3529 { (exit 1); exit 1; }; };;
3530esac
3531build=$ac_cv_build
3532ac_save_IFS=$IFS; IFS='-'
3533set x $ac_cv_build
3534shift
3535build_cpu=$1
3536build_vendor=$2
3537shift; shift
3538# Remember, the first character of IFS is used to create $*,
3539# except with old shells:
3540build_os=$*
3541IFS=$ac_save_IFS
3542case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3543
3544
3545{ echo "$as_me:$LINENO: checking host system type" >&5
3546echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3547if test "${ac_cv_host+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549else
3550 if test "x$host_alias" = x; then
3551 ac_cv_host=$ac_cv_build
3552else
3553 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3554 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3555echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3556 { (exit 1); exit 1; }; }
3557fi
3558
3559fi
3560{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3561echo "${ECHO_T}$ac_cv_host" >&6; }
3562case $ac_cv_host in
3563*-*-*) ;;
3564*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3565echo "$as_me: error: invalid value of canonical host" >&2;}
3566 { (exit 1); exit 1; }; };;
3567esac
3568host=$ac_cv_host
3569ac_save_IFS=$IFS; IFS='-'
3570set x $ac_cv_host
3571shift
3572host_cpu=$1
3573host_vendor=$2
3574shift; shift
3575# Remember, the first character of IFS is used to create $*,
3576# except with old shells:
3577host_os=$*
3578IFS=$ac_save_IFS
3579case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3580
3581
3582{ echo "$as_me:$LINENO: checking target system type" >&5
3583echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3584if test "${ac_cv_target+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3586else
3587 if test "x$target_alias" = x; then
3588 ac_cv_target=$ac_cv_host
3589else
3590 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3591 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3592echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3593 { (exit 1); exit 1; }; }
3594fi
3595
3596fi
3597{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3598echo "${ECHO_T}$ac_cv_target" >&6; }
3599case $ac_cv_target in
3600*-*-*) ;;
3601*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3602echo "$as_me: error: invalid value of canonical target" >&2;}
3603 { (exit 1); exit 1; }; };;
3604esac
3605target=$ac_cv_target
3606ac_save_IFS=$IFS; IFS='-'
3607set x $ac_cv_target
3608shift
3609target_cpu=$1
3610target_vendor=$2
3611shift; shift
3612# Remember, the first character of IFS is used to create $*,
3613# except with old shells:
3614target_os=$*
3615IFS=$ac_save_IFS
3616case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3617
3618
3619# The aliases save the names the user supplied, while $host etc.
3620# will get canonicalized.
3621test -n "$target_alias" &&
3622 test "$program_prefix$program_suffix$program_transform_name" = \
3623 NONENONEs,x,x, &&
3624 program_prefix=${target_alias}-
3625
3626{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3627echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3628if test "${llvm_cv_os_type+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3630else
3631 case $host in
3632 *-*-aix*)
3633 llvm_cv_link_all_option="-Wl,--whole-archive"
3634 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3635 llvm_cv_os_type="AIX"
3636 llvm_cv_platform_type="Unix" ;;
3637 *-*-irix*)
3638 llvm_cv_link_all_option="-Wl,--whole-archive"
3639 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3640 llvm_cv_os_type="IRIX"
3641 llvm_cv_platform_type="Unix" ;;
3642 *-*-cygwin*)
3643 llvm_cv_link_all_option="-Wl,--whole-archive"
3644 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3645 llvm_cv_os_type="Cygwin"
3646 llvm_cv_platform_type="Unix" ;;
3647 *-*-darwin*)
3648 llvm_cv_link_all_option="-Wl,-all_load"
3649 llvm_cv_no_link_all_option="-Wl,-noall_load"
3650 llvm_cv_os_type="Darwin"
3651 llvm_cv_platform_type="Unix" ;;
3652 *-*-minix*)
3653 llvm_cv_link_all_option="-Wl,-all_load"
3654 llvm_cv_no_link_all_option="-Wl,-noall_load"
3655 llvm_cv_os_type="Minix"
3656 llvm_cv_platform_type="Unix" ;;
3657 *-*-freebsd*)
3658 llvm_cv_link_all_option="-Wl,--whole-archive"
3659 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3660 llvm_cv_os_type="FreeBSD"
3661 llvm_cv_platform_type="Unix" ;;
3662 *-*-openbsd*)
3663 llvm_cv_link_all_option="-Wl,--whole-archive"
3664 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3665 llvm_cv_os_type="OpenBSD"
3666 llvm_cv_platform_type="Unix" ;;
3667 *-*-netbsd*)
3668 llvm_cv_link_all_option="-Wl,--whole-archive"
3669 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3670 llvm_cv_os_type="NetBSD"
3671 llvm_cv_platform_type="Unix" ;;
3672 *-*-dragonfly*)
3673 llvm_cv_link_all_option="-Wl,--whole-archive"
3674 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3675 llvm_cv_os_type="DragonFly"
3676 llvm_cv_platform_type="Unix" ;;
3677 *-*-hpux*)
3678 llvm_cv_link_all_option="-Wl,--whole-archive"
3679 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680 llvm_cv_os_type="HP-UX"
3681 llvm_cv_platform_type="Unix" ;;
3682 *-*-interix*)
3683 llvm_cv_link_all_option="-Wl,--whole-archive"
3684 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3685 llvm_cv_os_type="Interix"
3686 llvm_cv_platform_type="Unix" ;;
3687 *-*-linux*)
3688 llvm_cv_link_all_option="-Wl,--whole-archive"
3689 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3690 llvm_cv_os_type="Linux"
3691 llvm_cv_platform_type="Unix" ;;
3692 *-*-solaris*)
3693 llvm_cv_link_all_option="-Wl,-z,allextract"
3694 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3695 llvm_cv_os_type="SunOS"
3696 llvm_cv_platform_type="Unix" ;;
3697 *-*-auroraux*)
3698 llvm_cv_link_all_option="-Wl,-z,allextract"
3699 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3700 llvm_cv_os_type="AuroraUX"
3701 llvm_cv_platform_type="Unix" ;;
3702 *-*-win32*)
3703 llvm_cv_link_all_option="-Wl,--whole-archive"
3704 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705 llvm_cv_os_type="Win32"
3706 llvm_cv_platform_type="Win32" ;;
3707 *-*-mingw*)
3708 llvm_cv_link_all_option="-Wl,--whole-archive"
3709 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710 llvm_cv_os_type="MingW"
3711 llvm_cv_platform_type="Win32" ;;
3712 *-*-haiku*)
3713 llvm_cv_link_all_option="-Wl,--whole-archive"
3714 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715 llvm_cv_os_type="Haiku"
3716 llvm_cv_platform_type="Unix" ;;
3717 *-unknown-eabi*)
3718 llvm_cv_link_all_option="-Wl,--whole-archive"
3719 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720 llvm_cv_os_type="Freestanding"
3721 llvm_cv_platform_type="Unix" ;;
3722 *-unknown-elf*)
3723 llvm_cv_link_all_option="-Wl,--whole-archive"
3724 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725 llvm_cv_os_type="Freestanding"
3726 llvm_cv_platform_type="Unix" ;;
3727 *)
3728 llvm_cv_link_all_option=""
3729 llvm_cv_no_link_all_option=""
3730 llvm_cv_os_type="Unknown"
3731 llvm_cv_platform_type="Unknown" ;;
3732esac
3733fi
3734{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3735echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3736
3737{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3738echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3739if test "${llvm_cv_target_os_type+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741else
3742 case $target in
3743 *-*-aix*)
3744 llvm_cv_target_os_type="AIX" ;;
3745 *-*-irix*)
3746 llvm_cv_target_os_type="IRIX" ;;
3747 *-*-cygwin*)
3748 llvm_cv_target_os_type="Cygwin" ;;
3749 *-*-darwin*)
3750 llvm_cv_target_os_type="Darwin" ;;
3751 *-*-minix*)
3752 llvm_cv_target_os_type="Minix" ;;
3753 *-*-freebsd*)
3754 llvm_cv_target_os_type="FreeBSD" ;;
3755 *-*-openbsd*)
3756 llvm_cv_target_os_type="OpenBSD" ;;
3757 *-*-netbsd*)
3758 llvm_cv_target_os_type="NetBSD" ;;
3759 *-*-dragonfly*)
3760 llvm_cv_target_os_type="DragonFly" ;;
3761 *-*-hpux*)
3762 llvm_cv_target_os_type="HP-UX" ;;
3763 *-*-interix*)
3764 llvm_cv_target_os_type="Interix" ;;
3765 *-*-linux*)
3766 llvm_cv_target_os_type="Linux" ;;
3767 *-*-solaris*)
3768 llvm_cv_target_os_type="SunOS" ;;
3769 *-*-auroraux*)
3770 llvm_cv_target_os_type="AuroraUX" ;;
3771 *-*-win32*)
3772 llvm_cv_target_os_type="Win32" ;;
3773 *-*-mingw*)
3774 llvm_cv_target_os_type="MingW" ;;
3775 *-*-haiku*)
3776 llvm_cv_target_os_type="Haiku" ;;
3777 *-*-rtems*)
3778 llvm_cv_target_os_type="RTEMS" ;;
3779 *-*-nacl*)
3780 llvm_cv_target_os_type="NativeClient" ;;
3781 *-unknown-eabi*)
3782 llvm_cv_target_os_type="Freestanding" ;;
3783 *)
3784 llvm_cv_target_os_type="Unknown" ;;
3785esac
3786fi
3787{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3788echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3789
3790if test "$llvm_cv_os_type" = "Unknown" ; then
3791 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3792echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3793 { (exit 1); exit 1; }; }
3794fi
3795
3796OS=$llvm_cv_os_type
3797
3798HOST_OS=$llvm_cv_os_type
3799
3800TARGET_OS=$llvm_cv_target_os_type
3801
3802
3803LINKALL=$llvm_cv_link_all_option
3804
3805NOLINKALL=$llvm_cv_no_link_all_option
3806
3807
3808case $llvm_cv_platform_type in
3809 Unix)
3810
3811cat >>confdefs.h <<\_ACEOF
3812#define LLVM_ON_UNIX 1
3813_ACEOF
3814
3815 LLVM_ON_UNIX=1
3816
3817 LLVM_ON_WIN32=0
3818
3819 ;;
3820 Win32)
3821
3822cat >>confdefs.h <<\_ACEOF
3823#define LLVM_ON_WIN32 1
3824_ACEOF
3825
3826 LLVM_ON_UNIX=0
3827
3828 LLVM_ON_WIN32=1
3829
3830 ;;
3831esac
3832
3833{ echo "$as_me:$LINENO: checking target architecture" >&5
3834echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3835if test "${llvm_cv_target_arch+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3837else
3838 case $target in
3839 i?86-*) llvm_cv_target_arch="x86" ;;
3840 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3841 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3842 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3843 alpha*-*) llvm_cv_target_arch="Alpha" ;;
3844 arm*-*) llvm_cv_target_arch="ARM" ;;
3845 mips-*) llvm_cv_target_arch="Mips" ;;
3846 xcore-*) llvm_cv_target_arch="XCore" ;;
3847 msp430-*) llvm_cv_target_arch="MSP430" ;;
3848 s390x-*) llvm_cv_target_arch="SystemZ" ;;
3849 bfin-*) llvm_cv_target_arch="Blackfin" ;;
3850 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3851 ptx-*) llvm_cv_target_arch="PTX" ;;
3852 *) llvm_cv_target_arch="Unknown" ;;
3853esac
3854fi
3855{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3856echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3857
3858if test "$llvm_cv_target_arch" = "Unknown" ; then
3859 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3860echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3861fi
3862
3863# Determine the LLVM native architecture for the target
3864case "$llvm_cv_target_arch" in
3865 x86) LLVM_NATIVE_ARCH="X86" ;;
3866 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3867 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3868esac
3869
3870ARCH=$llvm_cv_target_arch
3871
3872
3873
3874
3875{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3876echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3877if test "${ac_cv_path_GREP+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3879else
3880 # Extract the first word of "grep ggrep" to use in msg output
3881if test -z "$GREP"; then
3882set dummy grep ggrep; ac_prog_name=$2
3883if test "${ac_cv_path_GREP+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3885else
3886 ac_path_GREP_found=false
3887# Loop through the user's path and test for each of PROGNAME-LIST
3888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3890do
3891 IFS=$as_save_IFS
3892 test -z "$as_dir" && as_dir=.
3893 for ac_prog in grep ggrep; do
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3896 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3897 # Check for GNU ac_path_GREP and select it if it is found.
3898 # Check for GNU $ac_path_GREP
3899case `"$ac_path_GREP" --version 2>&1` in
3900*GNU*)
3901 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3902*)
3903 ac_count=0
3904 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3905 while :
3906 do
3907 cat "conftest.in" "conftest.in" >"conftest.tmp"
3908 mv "conftest.tmp" "conftest.in"
3909 cp "conftest.in" "conftest.nl"
3910 echo 'GREP' >> "conftest.nl"
3911 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3913 ac_count=`expr $ac_count + 1`
3914 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3915 # Best one so far, save it but keep looking for a better one
3916 ac_cv_path_GREP="$ac_path_GREP"
3917 ac_path_GREP_max=$ac_count
3918 fi
3919 # 10*(2^10) chars as input seems more than enough
3920 test $ac_count -gt 10 && break
3921 done
3922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3923esac
3924
3925
3926 $ac_path_GREP_found && break 3
3927 done
3928done
3929
3930done
3931IFS=$as_save_IFS
3932
3933
3934fi
3935
3936GREP="$ac_cv_path_GREP"
3937if test -z "$GREP"; then
3938 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3939echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3940 { (exit 1); exit 1; }; }
3941fi
3942
3943else
3944 ac_cv_path_GREP=$GREP
3945fi
3946
3947
3948fi
3949{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3950echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3951 GREP="$ac_cv_path_GREP"
3952
3953
3954{ echo "$as_me:$LINENO: checking for egrep" >&5
3955echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3956if test "${ac_cv_path_EGREP+set}" = set; then
3957 echo $ECHO_N "(cached) $ECHO_C" >&6
3958else
3959 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3960 then ac_cv_path_EGREP="$GREP -E"
3961 else
3962 # Extract the first word of "egrep" to use in msg output
3963if test -z "$EGREP"; then
3964set dummy egrep; ac_prog_name=$2
3965if test "${ac_cv_path_EGREP+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3967else
3968 ac_path_EGREP_found=false
3969# Loop through the user's path and test for each of PROGNAME-LIST
3970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3972do
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 for ac_prog in egrep; do
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3978 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3979 # Check for GNU ac_path_EGREP and select it if it is found.
3980 # Check for GNU $ac_path_EGREP
3981case `"$ac_path_EGREP" --version 2>&1` in
3982*GNU*)
3983 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3984*)
3985 ac_count=0
3986 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3987 while :
3988 do
3989 cat "conftest.in" "conftest.in" >"conftest.tmp"
3990 mv "conftest.tmp" "conftest.in"
3991 cp "conftest.in" "conftest.nl"
3992 echo 'EGREP' >> "conftest.nl"
3993 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3994 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3995 ac_count=`expr $ac_count + 1`
3996 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3997 # Best one so far, save it but keep looking for a better one
3998 ac_cv_path_EGREP="$ac_path_EGREP"
3999 ac_path_EGREP_max=$ac_count
4000 fi
4001 # 10*(2^10) chars as input seems more than enough
4002 test $ac_count -gt 10 && break
4003 done
4004 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4005esac
4006
4007
4008 $ac_path_EGREP_found && break 3
4009 done
4010done
4011
4012done
4013IFS=$as_save_IFS
4014
4015
4016fi
4017
4018EGREP="$ac_cv_path_EGREP"
4019if test -z "$EGREP"; then
4020 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4021echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4022 { (exit 1); exit 1; }; }
4023fi
4024
4025else
4026 ac_cv_path_EGREP=$EGREP
4027fi
4028
4029
4030 fi
4031fi
4032{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4033echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4034 EGREP="$ac_cv_path_EGREP"
4035
4036
4037{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4038echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4039if test "${ac_cv_header_stdc+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4041else
4042 cat >conftest.$ac_ext <<_ACEOF
4043/* confdefs.h. */
4044_ACEOF
4045cat confdefs.h >>conftest.$ac_ext
4046cat >>conftest.$ac_ext <<_ACEOF
4047/* end confdefs.h. */
4048#include <stdlib.h>
4049#include <stdarg.h>
4050#include <string.h>
4051#include <float.h>
4052
4053int
4054main ()
4055{
4056
4057 ;
4058 return 0;
4059}
4060_ACEOF
4061rm -f conftest.$ac_objext
4062if { (ac_try="$ac_compile"
4063case "(($ac_try" in
4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4066esac
4067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4068 (eval "$ac_compile") 2>conftest.er1
4069 ac_status=$?
4070 grep -v '^ *+' conftest.er1 >conftest.err
4071 rm -f conftest.er1
4072 cat conftest.err >&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } &&
4075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4076 { (case "(($ac_try" in
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4079esac
4080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4081 (eval "$ac_try") 2>&5
4082 ac_status=$?
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; } &&
4085 { ac_try='test -s conftest.$ac_objext'
4086 { (case "(($ac_try" in
4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4089esac
4090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4091 (eval "$ac_try") 2>&5
4092 ac_status=$?
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; }; then
4095 ac_cv_header_stdc=yes
4096else
4097 echo "$as_me: failed program was:" >&5
4098sed 's/^/| /' conftest.$ac_ext >&5
4099
4100 ac_cv_header_stdc=no
4101fi
4102
4103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104
4105if test $ac_cv_header_stdc = yes; then
4106 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4107 cat >conftest.$ac_ext <<_ACEOF
4108/* confdefs.h. */
4109_ACEOF
4110cat confdefs.h >>conftest.$ac_ext
4111cat >>conftest.$ac_ext <<_ACEOF
4112/* end confdefs.h. */
4113#include <string.h>
4114
4115_ACEOF
4116if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4117 $EGREP "memchr" >/dev/null 2>&1; then
4118 :
4119else
4120 ac_cv_header_stdc=no
4121fi
4122rm -f conftest*
4123
4124fi
4125
4126if test $ac_cv_header_stdc = yes; then
4127 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4128 cat >conftest.$ac_ext <<_ACEOF
4129/* confdefs.h. */
4130_ACEOF
4131cat confdefs.h >>conftest.$ac_ext
4132cat >>conftest.$ac_ext <<_ACEOF
4133/* end confdefs.h. */
4134#include <stdlib.h>
4135
4136_ACEOF
4137if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4138 $EGREP "free" >/dev/null 2>&1; then
4139 :
4140else
4141 ac_cv_header_stdc=no
4142fi
4143rm -f conftest*
4144
4145fi
4146
4147if test $ac_cv_header_stdc = yes; then
4148 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4149 if test "$cross_compiling" = yes; then
4150 :
4151else
4152 cat >conftest.$ac_ext <<_ACEOF
4153/* confdefs.h. */
4154_ACEOF
4155cat confdefs.h >>conftest.$ac_ext
4156cat >>conftest.$ac_ext <<_ACEOF
4157/* end confdefs.h. */
4158#include <ctype.h>
4159#include <stdlib.h>
4160#if ((' ' & 0x0FF) == 0x020)
4161# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4162# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4163#else
4164# define ISLOWER(c) \
4165 (('a' <= (c) && (c) <= 'i') \
4166 || ('j' <= (c) && (c) <= 'r') \
4167 || ('s' <= (c) && (c) <= 'z'))
4168# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4169#endif
4170
4171#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4172int
4173main ()
4174{
4175 int i;
4176 for (i = 0; i < 256; i++)
4177 if (XOR (islower (i), ISLOWER (i))
4178 || toupper (i) != TOUPPER (i))
4179 return 2;
4180 return 0;
4181}
4182_ACEOF
4183rm -f conftest$ac_exeext
4184if { (ac_try="$ac_link"
4185case "(($ac_try" in
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4188esac
4189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190 (eval "$ac_link") 2>&5
4191 ac_status=$?
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4194 { (case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4197esac
4198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199 (eval "$ac_try") 2>&5
4200 ac_status=$?
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; }; then
4203 :
4204else
4205 echo "$as_me: program exited with status $ac_status" >&5
4206echo "$as_me: failed program was:" >&5
4207sed 's/^/| /' conftest.$ac_ext >&5
4208
4209( exit $ac_status )
4210ac_cv_header_stdc=no
4211fi
4212rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4213fi
4214
4215
4216fi
4217fi
4218{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4219echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4220if test $ac_cv_header_stdc = yes; then
4221
4222cat >>confdefs.h <<\_ACEOF
4223#define STDC_HEADERS 1
4224_ACEOF
4225
4226fi
4227
4228# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4239 inttypes.h stdint.h unistd.h
4240do
4241as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4242{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4244if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4246else
4247 cat >conftest.$ac_ext <<_ACEOF
4248/* confdefs.h. */
4249_ACEOF
4250cat confdefs.h >>conftest.$ac_ext
4251cat >>conftest.$ac_ext <<_ACEOF
4252/* end confdefs.h. */
4253$ac_includes_default
4254
4255#include <$ac_header>
4256_ACEOF
4257rm -f conftest.$ac_objext
4258if { (ac_try="$ac_compile"
4259case "(($ac_try" in
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4262esac
4263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264 (eval "$ac_compile") 2>conftest.er1
4265 ac_status=$?
4266 grep -v '^ *+' conftest.er1 >conftest.err
4267 rm -f conftest.er1
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } &&
4271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4272 { (case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4275esac
4276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_try") 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; } &&
4281 { ac_try='test -s conftest.$ac_objext'
4282 { (case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285esac
4286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287 (eval "$ac_try") 2>&5
4288 ac_status=$?
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; }; then
4291 eval "$as_ac_Header=yes"
4292else
4293 echo "$as_me: failed program was:" >&5
4294sed 's/^/| /' conftest.$ac_ext >&5
4295
4296 eval "$as_ac_Header=no"
4297fi
4298
4299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300fi
4301ac_res=`eval echo '${'$as_ac_Header'}'`
4302 { echo "$as_me:$LINENO: result: $ac_res" >&5
4303echo "${ECHO_T}$ac_res" >&6; }
4304if test `eval echo '${'$as_ac_Header'}'` = yes; then
4305 cat >>confdefs.h <<_ACEOF
4306#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4307_ACEOF
4308
4309fi
4310
4311done
4312
4313
4314{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4315echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4316if test "${ac_cv_c_bigendian+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4318else
4319 # See if sys/param.h defines the BYTE_ORDER macro.
4320cat >conftest.$ac_ext <<_ACEOF
4321/* confdefs.h. */
4322_ACEOF
4323cat confdefs.h >>conftest.$ac_ext
4324cat >>conftest.$ac_ext <<_ACEOF
4325/* end confdefs.h. */
4326#include <sys/types.h>
4327#include <sys/param.h>
4328
4329int
4330main ()
4331{
4332#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4333 bogus endian macros
4334#endif
4335
4336 ;
4337 return 0;
4338}
4339_ACEOF
4340rm -f conftest.$ac_objext
4341if { (ac_try="$ac_compile"
4342case "(($ac_try" in
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4345esac
4346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347 (eval "$ac_compile") 2>conftest.er1
4348 ac_status=$?
4349 grep -v '^ *+' conftest.er1 >conftest.err
4350 rm -f conftest.er1
4351 cat conftest.err >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } &&
4354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4355 { (case "(($ac_try" in
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4358esac
4359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360 (eval "$ac_try") 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; } &&
4364 { ac_try='test -s conftest.$ac_objext'
4365 { (case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4368esac
4369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370 (eval "$ac_try") 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; }; then
4374 # It does; now see whether it defined to BIG_ENDIAN or not.
4375cat >conftest.$ac_ext <<_ACEOF
4376/* confdefs.h. */
4377_ACEOF
4378cat confdefs.h >>conftest.$ac_ext
4379cat >>conftest.$ac_ext <<_ACEOF
4380/* end confdefs.h. */
4381#include <sys/types.h>
4382#include <sys/param.h>
4383
4384int
4385main ()
4386{
4387#if BYTE_ORDER != BIG_ENDIAN
4388 not big endian
4389#endif
4390
4391 ;
4392 return 0;
4393}
4394_ACEOF
4395rm -f conftest.$ac_objext
4396if { (ac_try="$ac_compile"
4397case "(($ac_try" in
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4400esac
4401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402 (eval "$ac_compile") 2>conftest.er1
4403 ac_status=$?
4404 grep -v '^ *+' conftest.er1 >conftest.err
4405 rm -f conftest.er1
4406 cat conftest.err >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } &&
4409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4410 { (case "(($ac_try" in
4411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412 *) ac_try_echo=$ac_try;;
4413esac
4414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4415 (eval "$ac_try") 2>&5
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; } &&
4419 { ac_try='test -s conftest.$ac_objext'
4420 { (case "(($ac_try" in
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4423esac
4424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4425 (eval "$ac_try") 2>&5
4426 ac_status=$?
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; }; then
4429 ac_cv_c_bigendian=yes
4430else
4431 echo "$as_me: failed program was:" >&5
4432sed 's/^/| /' conftest.$ac_ext >&5
4433
4434 ac_cv_c_bigendian=no
4435fi
4436
4437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438else
4439 echo "$as_me: failed program was:" >&5
4440sed 's/^/| /' conftest.$ac_ext >&5
4441
4442 # It does not; compile a test program.
4443if test "$cross_compiling" = yes; then
4444 # try to guess the endianness by grepping values into an object file
4445 ac_cv_c_bigendian=unknown
4446 cat >conftest.$ac_ext <<_ACEOF
4447/* confdefs.h. */
4448_ACEOF
4449cat confdefs.h >>conftest.$ac_ext
4450cat >>conftest.$ac_ext <<_ACEOF
4451/* end confdefs.h. */
4452short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4453short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4454void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4455short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4456short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4457void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4458int
4459main ()
4460{
4461 _ascii (); _ebcdic ();
4462 ;
4463 return 0;
4464}
4465_ACEOF
4466rm -f conftest.$ac_objext
4467if { (ac_try="$ac_compile"
4468case "(($ac_try" in
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4471esac
4472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473 (eval "$ac_compile") 2>conftest.er1
4474 ac_status=$?
4475 grep -v '^ *+' conftest.er1 >conftest.err
4476 rm -f conftest.er1
4477 cat conftest.err >&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } &&
4480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4481 { (case "(($ac_try" in
4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4484esac
4485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4486 (eval "$ac_try") 2>&5
4487 ac_status=$?
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; } &&
4490 { ac_try='test -s conftest.$ac_objext'
4491 { (case "(($ac_try" in
4492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493 *) ac_try_echo=$ac_try;;
4494esac
4495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4496 (eval "$ac_try") 2>&5
4497 ac_status=$?
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); }; }; then
4500 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4501 ac_cv_c_bigendian=yes
4502fi
4503if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4504 if test "$ac_cv_c_bigendian" = unknown; then
4505 ac_cv_c_bigendian=no
4506 else
4507 # finding both strings is unlikely to happen, but who knows?
4508 ac_cv_c_bigendian=unknown
4509 fi
4510fi
4511else
4512 echo "$as_me: failed program was:" >&5
4513sed 's/^/| /' conftest.$ac_ext >&5
4514
4515
4516fi
4517
4518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4519else
4520 cat >conftest.$ac_ext <<_ACEOF
4521/* confdefs.h. */
4522_ACEOF
4523cat confdefs.h >>conftest.$ac_ext
4524cat >>conftest.$ac_ext <<_ACEOF
4525/* end confdefs.h. */
4526$ac_includes_default
4527int
4528main ()
4529{
4530
4531 /* Are we little or big endian? From Harbison&Steele. */
4532 union
4533 {
4534 long int l;
4535 char c[sizeof (long int)];
4536 } u;
4537 u.l = 1;
4538 return u.c[sizeof (long int) - 1] == 1;
4539
4540 ;
4541 return 0;
4542}
4543_ACEOF
4544rm -f conftest$ac_exeext
4545if { (ac_try="$ac_link"
4546case "(($ac_try" in
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4549esac
4550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4551 (eval "$ac_link") 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4555 { (case "(($ac_try" in
4556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557 *) ac_try_echo=$ac_try;;
4558esac
4559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4560 (eval "$ac_try") 2>&5
4561 ac_status=$?
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; }; then
4564 ac_cv_c_bigendian=no
4565else
4566 echo "$as_me: program exited with status $ac_status" >&5
4567echo "$as_me: failed program was:" >&5
4568sed 's/^/| /' conftest.$ac_ext >&5
4569
4570( exit $ac_status )
4571ac_cv_c_bigendian=yes
4572fi
4573rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4574fi
4575
4576
4577fi
4578
4579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580fi
4581{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4582echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4583case $ac_cv_c_bigendian in
4584 yes)
4585 ENDIAN=big
4586 ;;
4587 no)
4588 ENDIAN=little
4589 ;;
4590 *)
4591 { { echo "$as_me:$LINENO: error: unknown endianness
4592presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4593echo "$as_me: error: unknown endianness
4594presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4595 { (exit 1); exit 1; }; } ;;
4596esac
4597
4598
4599if test "$cross_compiling" = yes; then
4600 LLVM_CROSS_COMPILING=1
4601
4602
4603{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4604echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4605if test "${ac_cv_build_exeext+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4607else
4608 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4609 ac_cv_build_exeext=.exe
4610else
4611 ac_build_prefix=${build_alias}-
4612
4613 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4614set dummy ${ac_build_prefix}gcc; ac_word=$2
4615{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4617if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4619else
4620 if test -n "$BUILD_CC"; then
4621 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4622else
4623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624for as_dir in $PATH
4625do
4626 IFS=$as_save_IFS
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 break 2
4633 fi
4634done
4635done
4636IFS=$as_save_IFS
4637
4638fi
4639fi
4640BUILD_CC=$ac_cv_prog_BUILD_CC
4641if test -n "$BUILD_CC"; then
4642 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4643echo "${ECHO_T}$BUILD_CC" >&6; }
4644else
4645 { echo "$as_me:$LINENO: result: no" >&5
4646echo "${ECHO_T}no" >&6; }
4647fi
4648
4649
4650 if test -z "$BUILD_CC"; then
4651 # Extract the first word of "gcc", so it can be a program name with args.
4652set dummy gcc; ac_word=$2
4653{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4655if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4657else
4658 if test -n "$BUILD_CC"; then
4659 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4660else
4661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662for as_dir in $PATH
4663do
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_prog_BUILD_CC="gcc"
4669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
4671 fi
4672done
4673done
4674IFS=$as_save_IFS
4675
4676fi
4677fi
4678BUILD_CC=$ac_cv_prog_BUILD_CC
4679if test -n "$BUILD_CC"; then
4680 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4681echo "${ECHO_T}$BUILD_CC" >&6; }
4682else
4683 { echo "$as_me:$LINENO: result: no" >&5
4684echo "${ECHO_T}no" >&6; }
4685fi
4686
4687
4688 if test -z "$BUILD_CC"; then
4689 # Extract the first word of "cc", so it can be a program name with args.
4690set dummy cc; ac_word=$2
4691{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4693if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4695else
4696 if test -n "$BUILD_CC"; then
4697 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4698else
4699 ac_prog_rejected=no
4700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701for as_dir in $PATH
4702do
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4707 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4708 ac_prog_rejected=yes
4709 continue
4710 fi
4711 ac_cv_prog_BUILD_CC="cc"
4712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 break 2
4714 fi
4715done
4716done
4717IFS=$as_save_IFS
4718
4719if test $ac_prog_rejected = yes; then
4720 # We found a bogon in the path, so make sure we never use it.
4721 set dummy $ac_cv_prog_BUILD_CC
4722 shift
4723 if test $# != 0; then
4724 # We chose a different compiler from the bogus one.
4725 # However, it has the same basename, so the bogon will be chosen
4726 # first if we set BUILD_CC to just the basename; use the full file name.
4727 shift
4728 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4729 fi
4730fi
4731fi
4732fi
4733BUILD_CC=$ac_cv_prog_BUILD_CC
4734if test -n "$BUILD_CC"; then
4735 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4736echo "${ECHO_T}$BUILD_CC" >&6; }
4737else
4738 { echo "$as_me:$LINENO: result: no" >&5
4739echo "${ECHO_T}no" >&6; }
4740fi
4741
4742
4743 fi
4744 fi
4745 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4746echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4747 { (exit 1); exit 1; }; }
4748 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4749 rm -f conftest*
4750 echo 'int main () { return 0; }' > conftest.$ac_ext
4751 ac_cv_build_exeext=
4752 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4753 (eval $ac_build_link) 2>&5
4754 ac_status=$?
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; then
4757 for file in conftest.*; do
4758 case $file in
4759 *.c | *.o | *.obj | *.dSYM) ;;
4760 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4761 esac
4762 done
4763 else
4764 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4765echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4766 { (exit 1); exit 1; }; }
4767 fi
4768 rm -f conftest*
4769 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4770fi
4771fi
4772
4773BUILD_EXEEXT=""
4774test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4775{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4776echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4777ac_build_exeext=$BUILD_EXEEXT
4778
4779 ac_build_prefix=${build_alias}-
4780 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4781set dummy ${ac_build_prefix}g++; ac_word=$2
4782{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4784if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4786else
4787 if test -n "$BUILD_CXX"; then
4788 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4789else
4790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791for as_dir in $PATH
4792do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4800 fi
4801done
4802done
4803IFS=$as_save_IFS
4804
4805fi
4806fi
4807BUILD_CXX=$ac_cv_prog_BUILD_CXX
4808if test -n "$BUILD_CXX"; then
4809 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4810echo "${ECHO_T}$BUILD_CXX" >&6; }
4811else
4812 { echo "$as_me:$LINENO: result: no" >&5
4813echo "${ECHO_T}no" >&6; }
4814fi
4815
4816
4817 if test -z "$BUILD_CXX"; then
4818 # Extract the first word of "g++", so it can be a program name with args.
4819set dummy g++; ac_word=$2
4820{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4822if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4824else
4825 if test -n "$BUILD_CXX"; then
4826 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4827else
4828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829for as_dir in $PATH
4830do
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 ac_cv_prog_BUILD_CXX="g++"
4836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 break 2
4838 fi
4839done
4840done
4841IFS=$as_save_IFS
4842
4843fi
4844fi
4845BUILD_CXX=$ac_cv_prog_BUILD_CXX
4846if test -n "$BUILD_CXX"; then
4847 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4848echo "${ECHO_T}$BUILD_CXX" >&6; }
4849else
4850 { echo "$as_me:$LINENO: result: no" >&5
4851echo "${ECHO_T}no" >&6; }
4852fi
4853
4854
4855 if test -z "$BUILD_CXX"; then
4856 # Extract the first word of "c++", so it can be a program name with args.
4857set dummy c++; ac_word=$2
4858{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4860if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4862else
4863 if test -n "$BUILD_CXX"; then
4864 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4865else
4866 ac_prog_rejected=no
4867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868for as_dir in $PATH
4869do
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4874 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4875 ac_prog_rejected=yes
4876 continue
4877 fi
4878 ac_cv_prog_BUILD_CXX="c++"
4879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 break 2
4881 fi
4882done
4883done
4884IFS=$as_save_IFS
4885
4886if test $ac_prog_rejected = yes; then
4887 # We found a bogon in the path, so make sure we never use it.
4888 set dummy $ac_cv_prog_BUILD_CXX
4889 shift
4890 if test $# != 0; then
4891 # We chose a different compiler from the bogus one.
4892 # However, it has the same basename, so the bogon will be chosen
4893 # first if we set BUILD_CXX to just the basename; use the full file name.
4894 shift
4895 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4896 fi
4897fi
4898fi
4899fi
4900BUILD_CXX=$ac_cv_prog_BUILD_CXX
4901if test -n "$BUILD_CXX"; then
4902 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4903echo "${ECHO_T}$BUILD_CXX" >&6; }
4904else
4905 { echo "$as_me:$LINENO: result: no" >&5
4906echo "${ECHO_T}no" >&6; }
4907fi
4908
4909
4910 fi
4911 fi
4912else
4913 LLVM_CROSS_COMPILING=0
4914
4915fi
4916
4917if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4918 cvsbuild="yes"
4919 optimize="no"
4920 CVSBUILD=CVSBUILD=1
4921
4922else
4923 cvsbuild="no"
4924 optimize="yes"
4925fi
4926
4927
4928# Check whether --enable-optimized was given.
4929if test "${enable_optimized+set}" = set; then
4930 enableval=$enable_optimized;
4931else
4932 enableval=$optimize
4933fi
4934
4935if test ${enableval} = "no" ; then
4936 ENABLE_OPTIMIZED=
4937
4938else
4939 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4940
4941fi
4942
4943# Check whether --enable-profiling was given.
4944if test "${enable_profiling+set}" = set; then
4945 enableval=$enable_profiling;
4946else
4947 enableval="no"
4948fi
4949
4950if test ${enableval} = "no" ; then
4951 ENABLE_PROFILING=
4952
4953else
4954 ENABLE_PROFILING=ENABLE_PROFILING=1
4955
4956fi
4957
4958# Check whether --enable-assertions was given.
4959if test "${enable_assertions+set}" = set; then
4960 enableval=$enable_assertions;
4961else
4962 enableval="yes"
4963fi
4964
4965if test ${enableval} = "yes" ; then
4966 DISABLE_ASSERTIONS=
4967
4968else
4969 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4970
4971fi
4972
4973# Check whether --enable-expensive-checks was given.
4974if test "${enable_expensive_checks+set}" = set; then
4975 enableval=$enable_expensive_checks;
4976else
4977 enableval="no"
4978fi
4979
4980if test ${enableval} = "yes" ; then
4981 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4982
4983 EXPENSIVE_CHECKS=yes
4984
4985else
4986 ENABLE_EXPENSIVE_CHECKS=
4987
4988 EXPENSIVE_CHECKS=no
4989
4990fi
4991
4992# Check whether --enable-debug-runtime was given.
4993if test "${enable_debug_runtime+set}" = set; then
4994 enableval=$enable_debug_runtime;
4995else
4996 enableval=no
4997fi
4998
4999if test ${enableval} = "no" ; then
5000 DEBUG_RUNTIME=
5001
5002else
5003 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5004
5005fi
5006
5007# Check whether --enable-debug-symbols was given.
5008if test "${enable_debug_symbols+set}" = set; then
5009 enableval=$enable_debug_symbols;
5010else
5011 enableval=no
5012fi
5013
5014if test ${enableval} = "no" ; then
5015 DEBUG_SYMBOLS=
5016
5017else
5018 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5019
5020fi
5021
5022# Check whether --enable-jit was given.
5023if test "${enable_jit+set}" = set; then
5024 enableval=$enable_jit;
5025else
5026 enableval=default
5027fi
5028
5029if test ${enableval} = "no"
5030then
5031 JIT=
5032
5033else
5034 case "$llvm_cv_target_arch" in
5035 x86) TARGET_HAS_JIT=1
5036 ;;
5037 Sparc) TARGET_HAS_JIT=0
5038 ;;
5039 PowerPC) TARGET_HAS_JIT=1
5040 ;;
5041 x86_64) TARGET_HAS_JIT=1
5042 ;;
5043 Alpha) TARGET_HAS_JIT=0
5044 ;;
5045 ARM) TARGET_HAS_JIT=1
5046 ;;
5047 Mips) TARGET_HAS_JIT=1
5048 ;;
5049 XCore) TARGET_HAS_JIT=0
5050 ;;
5051 MSP430) TARGET_HAS_JIT=0
5052 ;;
5053 SystemZ) TARGET_HAS_JIT=0
5054 ;;
5055 Blackfin) TARGET_HAS_JIT=0
5056 ;;
5057 MBlaze) TARGET_HAS_JIT=0
5058 ;;
5059 PTX) TARGET_HAS_JIT=0
5060 ;;
5061 *) TARGET_HAS_JIT=0
5062 ;;
5063 esac
5064fi
5065
5066# Check whether --enable-docs was given.
5067if test "${enable_docs+set}" = set; then
5068 enableval=$enable_docs;
5069else
5070 enableval=default
5071fi
5072
5073case "$enableval" in
5074 yes) ENABLE_DOCS=1
5075 ;;
5076 no) ENABLE_DOCS=0
5077 ;;
5078 default) ENABLE_DOCS=1
5079 ;;
5080 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5081echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5082 { (exit 1); exit 1; }; } ;;
5083esac
5084
5085# Check whether --enable-doxygen was given.
5086if test "${enable_doxygen+set}" = set; then
5087 enableval=$enable_doxygen;
5088else
5089 enableval=default
5090fi
5091
5092case "$enableval" in
5093 yes) ENABLE_DOXYGEN=1
5094 ;;
5095 no) ENABLE_DOXYGEN=0
5096 ;;
5097 default) ENABLE_DOXYGEN=0
5098 ;;
5099 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5100echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5101 { (exit 1); exit 1; }; } ;;
5102esac
5103
5104# Check whether --enable-threads was given.
5105if test "${enable_threads+set}" = set; then
5106 enableval=$enable_threads;
5107else
5108 enableval=default
5109fi
5110
5111case "$enableval" in
5112 yes) ENABLE_THREADS=1
5113 ;;
5114 no) ENABLE_THREADS=0
5115 ;;
5116 default) ENABLE_THREADS=1
5117 ;;
5118 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5119echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5120 { (exit 1); exit 1; }; } ;;
5121esac
5122
5123cat >>confdefs.h <<_ACEOF
5124#define ENABLE_THREADS $ENABLE_THREADS
5125_ACEOF
5126
5127
5128# Check whether --enable-pthreads was given.
5129if test "${enable_pthreads+set}" = set; then
5130 enableval=$enable_pthreads;
5131else
5132 enableval=default
5133fi
5134
5135case "$enableval" in
5136 yes) ENABLE_PTHREADS=1
5137 ;;
5138 no) ENABLE_PTHREADS=0
5139 ;;
5140 default) ENABLE_PTHREADS=1
5141 ;;
5142 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5143echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5144 { (exit 1); exit 1; }; } ;;
5145esac
5146
5147# Check whether --enable-pic was given.
5148if test "${enable_pic+set}" = set; then
5149 enableval=$enable_pic;
5150else
5151 enableval=default
5152fi
5153
5154case "$enableval" in
5155 yes) ENABLE_PIC=1
5156 ;;
5157 no) ENABLE_PIC=0
5158 ;;
5159 default) ENABLE_PIC=1
5160 ;;
5161 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5162echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5163 { (exit 1); exit 1; }; } ;;
5164esac
5165
5166cat >>confdefs.h <<_ACEOF
5167#define ENABLE_PIC $ENABLE_PIC
5168_ACEOF
5169
5170
5171# Check whether --enable-shared was given.
5172if test "${enable_shared+set}" = set; then
5173 enableval=$enable_shared;
5174else
5175 enableval=default
5176fi
5177
5178case "$enableval" in
5179 yes) ENABLE_SHARED=1
5180 ;;
5181 no) ENABLE_SHARED=0
5182 ;;
5183 default) ENABLE_SHARED=0
5184 ;;
5185 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5186echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5187 { (exit 1); exit 1; }; } ;;
5188esac
5189
5190# Check whether --enable-embed-stdcxx was given.
5191if test "${enable_embed_stdcxx+set}" = set; then
5192 enableval=$enable_embed_stdcxx;
5193else
5194 enableval=default
5195fi
5196
5197case "$enableval" in
5198 yes) ENABLE_EMBED_STDCXX=1
5199 ;;
5200 no) ENABLE_EMBED_STDCXX=0
5201 ;;
5202 default) ENABLE_EMBED_STDCXX=1
5203 ;;
5204 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5205echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5206 { (exit 1); exit 1; }; } ;;
5207esac
5208
5209# Check whether --enable-timestamps was given.
5210if test "${enable_timestamps+set}" = set; then
5211 enableval=$enable_timestamps;
5212else
5213 enableval=default
5214fi
5215
5216case "$enableval" in
5217 yes) ENABLE_TIMESTAMPS=1
5218 ;;
5219 no) ENABLE_TIMESTAMPS=0
5220 ;;
5221 default) ENABLE_TIMESTAMPS=1
5222 ;;
5223 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5224echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5225 { (exit 1); exit 1; }; } ;;
5226esac
5227
5228cat >>confdefs.h <<_ACEOF
5229#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5230_ACEOF
5231
5232
5233TARGETS_TO_BUILD=""
5234# Check whether --enable-targets was given.
5235if test "${enable_targets+set}" = set; then
5236 enableval=$enable_targets;
5237else
5238 enableval=all
5239fi
5240
5241if test "$enableval" = host-only ; then
5242 enableval=host
5243fi
5244case "$enableval" in
5245 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5246 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5247 case "$a_target" in
5248 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5249 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5250 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5251 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5252 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5253 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5254 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5255 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5256 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5257 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5258 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5259 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5260 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5261 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5262 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5263 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5264 host) case "$llvm_cv_target_arch" in
5265 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5266 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5267 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5268 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5269 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5270 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5271 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5272 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5273 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5274 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5275 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5276 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5277 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5278 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5279 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5280echo "$as_me: error: Can not set target to build" >&2;}
5281 { (exit 1); exit 1; }; } ;;
5282 esac ;;
5283 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5284echo "$as_me: error: Unrecognized target $a_target" >&2;}
5285 { (exit 1); exit 1; }; } ;;
5286 esac
5287 done
5288 ;;
5289esac
5290TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5291
5292
5293# Determine whether we are building LLVM support for the native architecture.
5294# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5295for a_target in $TARGETS_TO_BUILD; do
5296 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5297
5298cat >>confdefs.h <<_ACEOF
5299#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5300_ACEOF
5301
5302 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5303 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5304 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5305 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5306 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5307 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5308 fi
5309
5310cat >>confdefs.h <<_ACEOF
5311#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5312_ACEOF
5313
5314
5315cat >>confdefs.h <<_ACEOF
5316#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5317_ACEOF
5318
5319
5320cat >>confdefs.h <<_ACEOF
5321#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5322_ACEOF
5323
5324
5325cat >>confdefs.h <<_ACEOF
5326#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5327_ACEOF
5328
5329 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5330
5331cat >>confdefs.h <<_ACEOF
5332#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5333_ACEOF
5334
5335 fi
5336 fi
5337done
5338
5339# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5340# target feature def files.
5341LLVM_ENUM_TARGETS=""
5342LLVM_ENUM_ASM_PRINTERS=""
5343LLVM_ENUM_ASM_PARSERS=""
5344LLVM_ENUM_DISASSEMBLERS=""
5345for target_to_build in $TARGETS_TO_BUILD; do
5346 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5347 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5348 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5349 fi
5350 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5351 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5352 fi
5353 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5354 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5355 fi
5356done
5357
5358
5359
5360
5361
5362# Check whether --enable-cbe-printf-a was given.
5363if test "${enable_cbe_printf_a+set}" = set; then
5364 enableval=$enable_cbe_printf_a;
5365else
5366 enableval=default
5367fi
5368
5369case "$enableval" in
5370 yes) ENABLE_CBE_PRINTF_A=1
5371 ;;
5372 no) ENABLE_CBE_PRINTF_A=0
5373 ;;
5374 default) ENABLE_CBE_PRINTF_A=1
5375 ;;
5376 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5377echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5378 { (exit 1); exit 1; }; } ;;
5379esac
5380
5381cat >>confdefs.h <<_ACEOF
5382#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5383_ACEOF
5384
5385
5386
5387# Check whether --with-optimize-option was given.
5388if test "${with_optimize_option+set}" = set; then
5389 withval=$with_optimize_option;
5390else
5391 withval=default
5392fi
5393
5394{ echo "$as_me:$LINENO: checking optimization flags" >&5
5395echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5396case "$withval" in
5397 default)
5398 case "$llvm_cv_os_type" in
5399 FreeBSD) optimize_option=-O2 ;;
5400 MingW) optimize_option=-O2 ;;
5401 *) optimize_option=-O3 ;;
5402 esac ;;
5403 *) optimize_option="$withval" ;;
5404esac
5405OPTIMIZE_OPTION=$optimize_option
5406
5407{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5408echo "${ECHO_T}$optimize_option" >&6; }
5409
5410
5411# Check whether --with-extra-options was given.
5412if test "${with_extra_options+set}" = set; then
5413 withval=$with_extra_options;
5414else
5415 withval=default
5416fi
5417
5418case "$withval" in
5419 default) EXTRA_OPTIONS= ;;
5420 *) EXTRA_OPTIONS=$withval ;;
5421esac
5422EXTRA_OPTIONS=$EXTRA_OPTIONS
5423
5424
5425
5426# Check whether --with-extra-ld-options was given.
5427if test "${with_extra_ld_options+set}" = set; then
5428 withval=$with_extra_ld_options;
5429else
5430 withval=default
5431fi
5432
5433case "$withval" in
5434 default) EXTRA_LD_OPTIONS= ;;
5435 *) EXTRA_LD_OPTIONS=$withval ;;
5436esac
5437EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5438
5439
5440# Check whether --enable-bindings was given.
5441if test "${enable_bindings+set}" = set; then
5442 enableval=$enable_bindings;
5443else
5444 enableval=default
5445fi
5446
5447BINDINGS_TO_BUILD=""
5448case "$enableval" in
5449 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5450 all ) BINDINGS_TO_BUILD="ocaml" ;;
5451 none | no) BINDINGS_TO_BUILD="" ;;
5452 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5453 case "$a_binding" in
5454 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5455 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5456echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5457 { (exit 1); exit 1; }; } ;;
5458 esac
5459 done
5460 ;;
5461esac
5462
5463
5464# Check whether --with-ocaml-libdir was given.
5465if test "${with_ocaml_libdir+set}" = set; then
5466 withval=$with_ocaml_libdir;
5467else
5468 withval=auto
5469fi
5470
5471case "$withval" in
5472 auto) with_ocaml_libdir="$withval" ;;
5473 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5474 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5475echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5476 { (exit 1); exit 1; }; } ;;
5477esac
5478
5479
5480# Check whether --with-clang-resource-dir was given.
5481if test "${with_clang_resource_dir+set}" = set; then
5482 withval=$with_clang_resource_dir;
5483else
5484 withval=""
5485fi
5486
5487
5488cat >>confdefs.h <<_ACEOF
5489#define CLANG_RESOURCE_DIR "$withval"
5490_ACEOF
5491
5492
5493
5494# Check whether --with-c-include-dirs was given.
5495if test "${with_c_include_dirs+set}" = set; then
5496 withval=$with_c_include_dirs;
5497else
5498 withval=""
5499fi
5500
5501
5502cat >>confdefs.h <<_ACEOF
5503#define C_INCLUDE_DIRS "$withval"
5504_ACEOF
5505
5506
5507
5508# Check whether --with-cxx-include-root was given.
5509if test "${with_cxx_include_root+set}" = set; then
5510 withval=$with_cxx_include_root;
5511else
5512 withval=""
5513fi
5514
5515
5516cat >>confdefs.h <<_ACEOF
5517#define CXX_INCLUDE_ROOT "$withval"
5518_ACEOF
5519
5520
5521
5522# Check whether --with-cxx-include-arch was given.
5523if test "${with_cxx_include_arch+set}" = set; then
5524 withval=$with_cxx_include_arch;
5525else
5526 withval=""
5527fi
5528
5529
5530cat >>confdefs.h <<_ACEOF
5531#define CXX_INCLUDE_ARCH "$withval"
5532_ACEOF
5533
5534
5535
5536# Check whether --with-cxx-include-32bit-dir was given.
5537if test "${with_cxx_include_32bit_dir+set}" = set; then
5538 withval=$with_cxx_include_32bit_dir;
5539else
5540 withval=""
5541fi
5542
5543
5544cat >>confdefs.h <<_ACEOF
5545#define CXX_INCLUDE_32BIT_DIR "$withval"
5546_ACEOF
5547
5548
5549
5550# Check whether --with-cxx-include-64bit-dir was given.
5551if test "${with_cxx_include_64bit_dir+set}" = set; then
5552 withval=$with_cxx_include_64bit_dir;
5553else
5554 withval=""
5555fi
5556
5557
5558cat >>confdefs.h <<_ACEOF
5559#define CXX_INCLUDE_64BIT_DIR "$withval"
5560_ACEOF
5561
5562
5563
5564# Check whether --with-binutils-include was given.
5565if test "${with_binutils_include+set}" = set; then
5566 withval=$with_binutils_include;
5567else
5568 withval=default
5569fi
5570
5571case "$withval" in
5572 default) WITH_BINUTILS_INCDIR=default ;;
5573 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5574 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5575echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5576 { (exit 1); exit 1; }; } ;;
5577esac
5578if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5579 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5580
5581 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5582 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5583 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5584echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5585 { (exit 1); exit 1; }; };
5586 fi
5587fi
5588
5589
5590# Check whether --with-bug-report-url was given.
5591if test "${with_bug_report_url+set}" = set; then
5592 withval=$with_bug_report_url;
5593else
5594 withval="http://llvm.org/bugs/"
5595fi
5596
5597
5598cat >>confdefs.h <<_ACEOF
5599#define BUG_REPORT_URL "$withval"
5600_ACEOF
5601
5602
5603# Check whether --enable-libffi was given.
5604if test "${enable_libffi+set}" = set; then
5605 enableval=$enable_libffi; case "$enableval" in
5606 yes) llvm_cv_enable_libffi="yes" ;;
5607 no) llvm_cv_enable_libffi="no" ;;
5608 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5609echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5610 { (exit 1); exit 1; }; } ;;
5611 esac
5612else
5613 llvm_cv_enable_libffi=no
5614fi
5615
5616
5617
5618{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5619echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5620if test "${lt_cv_path_NM+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5622else
5623 if test -n "$NM"; then
5624 # Let the user override the test.
5625 lt_cv_path_NM="$NM"
5626else
5627 lt_nm_to_check="${ac_tool_prefix}nm"
5628 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5629 lt_nm_to_check="$lt_nm_to_check nm"
5630 fi
5631 for lt_tmp_nm in $lt_nm_to_check; do
5632 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5633 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5634 IFS="$lt_save_ifs"
5635 test -z "$ac_dir" && ac_dir=.
5636 tmp_nm="$ac_dir/$lt_tmp_nm"
5637 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5638 # Check to see if the nm accepts a BSD-compat flag.
5639 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5640 # nm: unknown option "B" ignored
5641 # Tru64's nm complains that /dev/null is an invalid object file
5642 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5643 */dev/null* | *'Invalid file or object type'*)
5644 lt_cv_path_NM="$tmp_nm -B"
5645 break
5646 ;;
5647 *)
5648 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5649 */dev/null*)
5650 lt_cv_path_NM="$tmp_nm -p"
5651 break
5652 ;;
5653 *)
5654 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5655 continue # so that we can try to find one that supports BSD flags
5656 ;;
5657 esac
5658 ;;
5659 esac
5660 fi
5661 done
5662 IFS="$lt_save_ifs"
5663 done
5664 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5665fi
5666fi
5667{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5668echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5669NM="$lt_cv_path_NM"
5670
5671
5672
5673{ echo "$as_me:$LINENO: checking for GNU make" >&5
5674echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5675if test "${llvm_cv_gnu_make_command+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5677else
5678 llvm_cv_gnu_make_command=''
5679 for a in "$MAKE" make gmake gnumake ; do
5680 if test -z "$a" ; then continue ; fi ;
5681 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5682 then
5683 llvm_cv_gnu_make_command=$a ;
5684 break;
5685 fi
5686 done
5687fi
5688{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5689echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5690 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5691 ifGNUmake='' ;
5692 else
5693 ifGNUmake='#' ;
5694 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5695echo "${ECHO_T}\"Not found\"" >&6; };
5696 fi
5697
5698
5699{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5700echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5701LN_S=$as_ln_s
5702if test "$LN_S" = "ln -s"; then
5703 { echo "$as_me:$LINENO: result: yes" >&5
5704echo "${ECHO_T}yes" >&6; }
5705else
5706 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5707echo "${ECHO_T}no, using $LN_S" >&6; }
5708fi
5709
5710# Extract the first word of "cmp", so it can be a program name with args.
5711set dummy cmp; ac_word=$2
5712{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5714if test "${ac_cv_path_CMP+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5716else
5717 case $CMP in
5718 [\\/]* | ?:[\\/]*)
5719 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5720 ;;
5721 *)
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723for as_dir in $PATH
5724do
5725 IFS=$as_save_IFS
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5729 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 break 2
5732 fi
5733done
5734done
5735IFS=$as_save_IFS
5736
5737 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5738 ;;
5739esac
5740fi
5741CMP=$ac_cv_path_CMP
5742if test -n "$CMP"; then
5743 { echo "$as_me:$LINENO: result: $CMP" >&5
5744echo "${ECHO_T}$CMP" >&6; }
5745else
5746 { echo "$as_me:$LINENO: result: no" >&5
5747echo "${ECHO_T}no" >&6; }
5748fi
5749
5750
5751# Extract the first word of "cp", so it can be a program name with args.
5752set dummy cp; ac_word=$2
5753{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5755if test "${ac_cv_path_CP+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5757else
5758 case $CP in
5759 [\\/]* | ?:[\\/]*)
5760 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5761 ;;
5762 *)
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764for as_dir in $PATH
5765do
5766 IFS=$as_save_IFS
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5770 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 break 2
5773 fi
5774done
5775done
5776IFS=$as_save_IFS
5777
5778 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5779 ;;
5780esac
5781fi
5782CP=$ac_cv_path_CP
5783if test -n "$CP"; then
5784 { echo "$as_me:$LINENO: result: $CP" >&5
5785echo "${ECHO_T}$CP" >&6; }
5786else
5787 { echo "$as_me:$LINENO: result: no" >&5
5788echo "${ECHO_T}no" >&6; }
5789fi
5790
5791
5792# Extract the first word of "date", so it can be a program name with args.
5793set dummy date; ac_word=$2
5794{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5796if test "${ac_cv_path_DATE+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5798else
5799 case $DATE in
5800 [\\/]* | ?:[\\/]*)
5801 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5802 ;;
5803 *)
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805for as_dir in $PATH
5806do
5807 IFS=$as_save_IFS
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5811 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 break 2
5814 fi
5815done
5816done
5817IFS=$as_save_IFS
5818
5819 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5820 ;;
5821esac
5822fi
5823DATE=$ac_cv_path_DATE
5824if test -n "$DATE"; then
5825 { echo "$as_me:$LINENO: result: $DATE" >&5
5826echo "${ECHO_T}$DATE" >&6; }
5827else
5828 { echo "$as_me:$LINENO: result: no" >&5
5829echo "${ECHO_T}no" >&6; }
5830fi
5831
5832
5833# Extract the first word of "find", so it can be a program name with args.
5834set dummy find; ac_word=$2
5835{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5837if test "${ac_cv_path_FIND+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5839else
5840 case $FIND in
5841 [\\/]* | ?:[\\/]*)
5842 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5843 ;;
5844 *)
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846for as_dir in $PATH
5847do
5848 IFS=$as_save_IFS
5849 test -z "$as_dir" && as_dir=.
5850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5852 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 break 2
5855 fi
5856done
5857done
5858IFS=$as_save_IFS
5859
5860 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5861 ;;
5862esac
5863fi
5864FIND=$ac_cv_path_FIND
5865if test -n "$FIND"; then
5866 { echo "$as_me:$LINENO: result: $FIND" >&5
5867echo "${ECHO_T}$FIND" >&6; }
5868else
5869 { echo "$as_me:$LINENO: result: no" >&5
5870echo "${ECHO_T}no" >&6; }
5871fi
5872
5873
5874# Extract the first word of "grep", so it can be a program name with args.
5875set dummy grep; ac_word=$2
5876{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5878if test "${ac_cv_path_GREP+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5880else
5881 case $GREP in
5882 [\\/]* | ?:[\\/]*)
5883 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5884 ;;
5885 *)
5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887for as_dir in $PATH
5888do
5889 IFS=$as_save_IFS
5890 test -z "$as_dir" && as_dir=.
5891 for ac_exec_ext in '' $ac_executable_extensions; do
5892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5893 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5895 break 2
5896 fi
5897done
5898done
5899IFS=$as_save_IFS
5900
5901 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5902 ;;
5903esac
5904fi
5905GREP=$ac_cv_path_GREP
5906if test -n "$GREP"; then
5907 { echo "$as_me:$LINENO: result: $GREP" >&5
5908echo "${ECHO_T}$GREP" >&6; }
5909else
5910 { echo "$as_me:$LINENO: result: no" >&5
5911echo "${ECHO_T}no" >&6; }
5912fi
5913
5914
5915# Extract the first word of "mkdir", so it can be a program name with args.
5916set dummy mkdir; ac_word=$2
5917{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5919if test "${ac_cv_path_MKDIR+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5921else
5922 case $MKDIR in
5923 [\\/]* | ?:[\\/]*)
5924 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5925 ;;
5926 *)
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928for as_dir in $PATH
5929do
5930 IFS=$as_save_IFS
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5934 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 break 2
5937 fi
5938done
5939done
5940IFS=$as_save_IFS
5941
5942 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5943 ;;
5944esac
5945fi
5946MKDIR=$ac_cv_path_MKDIR
5947if test -n "$MKDIR"; then
5948 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5949echo "${ECHO_T}$MKDIR" >&6; }
5950else
5951 { echo "$as_me:$LINENO: result: no" >&5
5952echo "${ECHO_T}no" >&6; }
5953fi
5954
5955
5956# Extract the first word of "mv", so it can be a program name with args.
5957set dummy mv; ac_word=$2
5958{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5960if test "${ac_cv_path_MV+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5962else
5963 case $MV in
5964 [\\/]* | ?:[\\/]*)
5965 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5966 ;;
5967 *)
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969for as_dir in $PATH
5970do
5971 IFS=$as_save_IFS
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5975 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 break 2
5978 fi
5979done
5980done
5981IFS=$as_save_IFS
5982
5983 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5984 ;;
5985esac
5986fi
5987MV=$ac_cv_path_MV
5988if test -n "$MV"; then
5989 { echo "$as_me:$LINENO: result: $MV" >&5
5990echo "${ECHO_T}$MV" >&6; }
5991else
5992 { echo "$as_me:$LINENO: result: no" >&5
5993echo "${ECHO_T}no" >&6; }
5994fi
5995
5996
5997if test -n "$ac_tool_prefix"; then
5998 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5999set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6000{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6002if test "${ac_cv_prog_RANLIB+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6004else
6005 if test -n "$RANLIB"; then
6006 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6007else
6008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009for as_dir in $PATH
6010do
6011 IFS=$as_save_IFS
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
6014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6015 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6017 break 2
6018 fi
6019done
6020done
6021IFS=$as_save_IFS
6022
6023fi
6024fi
6025RANLIB=$ac_cv_prog_RANLIB
6026if test -n "$RANLIB"; then
6027 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6028echo "${ECHO_T}$RANLIB" >&6; }
6029else
6030 { echo "$as_me:$LINENO: result: no" >&5
6031echo "${ECHO_T}no" >&6; }
6032fi
6033
6034
6035fi
6036if test -z "$ac_cv_prog_RANLIB"; then
6037 ac_ct_RANLIB=$RANLIB
6038 # Extract the first word of "ranlib", so it can be a program name with args.
6039set dummy ranlib; ac_word=$2
6040{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6042if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6044else
6045 if test -n "$ac_ct_RANLIB"; then
6046 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6047else
6048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049for as_dir in $PATH
6050do
6051 IFS=$as_save_IFS
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6055 ac_cv_prog_ac_ct_RANLIB="ranlib"
6056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6057 break 2
6058 fi
6059done
6060done
6061IFS=$as_save_IFS
6062
6063fi
6064fi
6065ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6066if test -n "$ac_ct_RANLIB"; then
6067 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6068echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6069else
6070 { echo "$as_me:$LINENO: result: no" >&5
6071echo "${ECHO_T}no" >&6; }
6072fi
6073
6074 if test "x$ac_ct_RANLIB" = x; then
6075 RANLIB=":"
6076 else
6077 case $cross_compiling:$ac_tool_warned in
6078yes:)
6079{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6080whose name does not start with the host triplet. If you think this
6081configuration is useful to you, please write to autoconf@gnu.org." >&5
6082echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6083whose name does not start with the host triplet. If you think this
6084configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6085ac_tool_warned=yes ;;
6086esac
6087 RANLIB=$ac_ct_RANLIB
6088 fi
6089else
6090 RANLIB="$ac_cv_prog_RANLIB"
6091fi
6092
6093if test -n "$ac_tool_prefix"; then
6094 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6095set dummy ${ac_tool_prefix}ar; ac_word=$2
6096{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6098if test "${ac_cv_prog_AR+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6100else
6101 if test -n "$AR"; then
6102 ac_cv_prog_AR="$AR" # Let the user override the test.
6103else
6104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105for as_dir in $PATH
6106do
6107 IFS=$as_save_IFS
6108 test -z "$as_dir" && as_dir=.
6109 for ac_exec_ext in '' $ac_executable_extensions; do
6110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6111 ac_cv_prog_AR="${ac_tool_prefix}ar"
6112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6113 break 2
6114 fi
6115done
6116done
6117IFS=$as_save_IFS
6118
6119fi
6120fi
6121AR=$ac_cv_prog_AR
6122if test -n "$AR"; then
6123 { echo "$as_me:$LINENO: result: $AR" >&5
6124echo "${ECHO_T}$AR" >&6; }
6125else
6126 { echo "$as_me:$LINENO: result: no" >&5
6127echo "${ECHO_T}no" >&6; }
6128fi
6129
6130
6131fi
6132if test -z "$ac_cv_prog_AR"; then
6133 ac_ct_AR=$AR
6134 # Extract the first word of "ar", so it can be a program name with args.
6135set dummy ar; ac_word=$2
6136{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6140else
6141 if test -n "$ac_ct_AR"; then
6142 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6143else
6144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145for as_dir in $PATH
6146do
6147 IFS=$as_save_IFS
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6151 ac_cv_prog_ac_ct_AR="ar"
6152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6153 break 2
6154 fi
6155done
6156done
6157IFS=$as_save_IFS
6158
6159fi
6160fi
6161ac_ct_AR=$ac_cv_prog_ac_ct_AR
6162if test -n "$ac_ct_AR"; then
6163 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6164echo "${ECHO_T}$ac_ct_AR" >&6; }
6165else
6166 { echo "$as_me:$LINENO: result: no" >&5
6167echo "${ECHO_T}no" >&6; }
6168fi
6169
6170 if test "x$ac_ct_AR" = x; then
6171 AR="false"
6172 else
6173 case $cross_compiling:$ac_tool_warned in
6174yes:)
6175{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6176whose name does not start with the host triplet. If you think this
6177configuration is useful to you, please write to autoconf@gnu.org." >&5
6178echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6179whose name does not start with the host triplet. If you think this
6180configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6181ac_tool_warned=yes ;;
6182esac
6183 AR=$ac_ct_AR
6184 fi
6185else
6186 AR="$ac_cv_prog_AR"
6187fi
6188
6189# Extract the first word of "rm", so it can be a program name with args.
6190set dummy rm; ac_word=$2
6191{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6193if test "${ac_cv_path_RM+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6195else
6196 case $RM in
6197 [\\/]* | ?:[\\/]*)
6198 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6199 ;;
6200 *)
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202for as_dir in $PATH
6203do
6204 IFS=$as_save_IFS
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6208 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 break 2
6211 fi
6212done
6213done
6214IFS=$as_save_IFS
6215
6216 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6217 ;;
6218esac
6219fi
6220RM=$ac_cv_path_RM
6221if test -n "$RM"; then
6222 { echo "$as_me:$LINENO: result: $RM" >&5
6223echo "${ECHO_T}$RM" >&6; }
6224else
6225 { echo "$as_me:$LINENO: result: no" >&5
6226echo "${ECHO_T}no" >&6; }
6227fi
6228
6229
6230# Extract the first word of "sed", so it can be a program name with args.
6231set dummy sed; ac_word=$2
6232{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6234if test "${ac_cv_path_SED+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6236else
6237 case $SED in
6238 [\\/]* | ?:[\\/]*)
6239 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6240 ;;
6241 *)
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243for as_dir in $PATH
6244do
6245 IFS=$as_save_IFS
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6249 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 break 2
6252 fi
6253done
6254done
6255IFS=$as_save_IFS
6256
6257 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6258 ;;
6259esac
6260fi
6261SED=$ac_cv_path_SED
6262if test -n "$SED"; then
6263 { echo "$as_me:$LINENO: result: $SED" >&5
6264echo "${ECHO_T}$SED" >&6; }
6265else
6266 { echo "$as_me:$LINENO: result: no" >&5
6267echo "${ECHO_T}no" >&6; }
6268fi
6269
6270
6271# Extract the first word of "tar", so it can be a program name with args.
6272set dummy tar; ac_word=$2
6273{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275if test "${ac_cv_path_TAR+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6277else
6278 case $TAR in
6279 [\\/]* | ?:[\\/]*)
6280 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6281 ;;
6282 *)
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284for as_dir in $PATH
6285do
6286 IFS=$as_save_IFS
6287 test -z "$as_dir" && as_dir=.
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6290 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292 break 2
6293 fi
6294done
6295done
6296IFS=$as_save_IFS
6297
6298 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6299 ;;
6300esac
6301fi
6302TAR=$ac_cv_path_TAR
6303if test -n "$TAR"; then
6304 { echo "$as_me:$LINENO: result: $TAR" >&5
6305echo "${ECHO_T}$TAR" >&6; }
6306else
6307 { echo "$as_me:$LINENO: result: no" >&5
6308echo "${ECHO_T}no" >&6; }
6309fi
6310
6311
6312# Extract the first word of "pwd", so it can be a program name with args.
6313set dummy pwd; ac_word=$2
6314{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6316if test "${ac_cv_path_BINPWD+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6318else
6319 case $BINPWD in
6320 [\\/]* | ?:[\\/]*)
6321 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6322 ;;
6323 *)
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325for as_dir in $PATH
6326do
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6331 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 break 2
6334 fi
6335done
6336done
6337IFS=$as_save_IFS
6338
6339 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6340 ;;
6341esac
6342fi
6343BINPWD=$ac_cv_path_BINPWD
6344if test -n "$BINPWD"; then
6345 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6346echo "${ECHO_T}$BINPWD" >&6; }
6347else
6348 { echo "$as_me:$LINENO: result: no" >&5
6349echo "${ECHO_T}no" >&6; }
6350fi
6351
6352
6353
6354# Extract the first word of "Graphviz", so it can be a program name with args.
6355set dummy Graphviz; ac_word=$2
6356{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6358if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6360else
6361 case $GRAPHVIZ in
6362 [\\/]* | ?:[\\/]*)
6363 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6364 ;;
6365 *)
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367for as_dir in $PATH
6368do
6369 IFS=$as_save_IFS
6370 test -z "$as_dir" && as_dir=.
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6373 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 break 2
6376 fi
6377done
6378done
6379IFS=$as_save_IFS
6380
6381 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6382 ;;
6383esac
6384fi
6385GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6386if test -n "$GRAPHVIZ"; then
6387 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6388echo "${ECHO_T}$GRAPHVIZ" >&6; }
6389else
6390 { echo "$as_me:$LINENO: result: no" >&5
6391echo "${ECHO_T}no" >&6; }
6392fi
6393
6394
6395if test "$GRAPHVIZ" != "echo Graphviz" ; then
6396
6397cat >>confdefs.h <<\_ACEOF
6398#define HAVE_GRAPHVIZ 1
6399_ACEOF
6400
6401 if test "$llvm_cv_os_type" = "MingW" ; then
6402 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6403 fi
6404
6405cat >>confdefs.h <<_ACEOF
6406#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6407_ACEOF
6408
6409fi
6410# Extract the first word of "dot", so it can be a program name with args.
6411set dummy dot; ac_word=$2
6412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6414if test "${ac_cv_path_DOT+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6416else
6417 case $DOT in
6418 [\\/]* | ?:[\\/]*)
6419 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6420 ;;
6421 *)
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423for as_dir in $PATH
6424do
6425 IFS=$as_save_IFS
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6429 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6431 break 2
6432 fi
6433done
6434done
6435IFS=$as_save_IFS
6436
6437 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6438 ;;
6439esac
6440fi
6441DOT=$ac_cv_path_DOT
6442if test -n "$DOT"; then
6443 { echo "$as_me:$LINENO: result: $DOT" >&5
6444echo "${ECHO_T}$DOT" >&6; }
6445else
6446 { echo "$as_me:$LINENO: result: no" >&5
6447echo "${ECHO_T}no" >&6; }
6448fi
6449
6450
6451if test "$DOT" != "echo dot" ; then
6452
6453cat >>confdefs.h <<\_ACEOF
6454#define HAVE_DOT 1
6455_ACEOF
6456
6457 if test "$llvm_cv_os_type" = "MingW" ; then
6458 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6459 fi
6460
6461cat >>confdefs.h <<_ACEOF
6462#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6463_ACEOF
6464
6465fi
6466# Extract the first word of "fdp", so it can be a program name with args.
6467set dummy fdp; ac_word=$2
6468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6470if test "${ac_cv_path_FDP+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6472else
6473 case $FDP in
6474 [\\/]* | ?:[\\/]*)
6475 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6476 ;;
6477 *)
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479for as_dir in $PATH
6480do
6481 IFS=$as_save_IFS
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6485 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 break 2
6488 fi
6489done
6490done
6491IFS=$as_save_IFS
6492
6493 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6494 ;;
6495esac
6496fi
6497FDP=$ac_cv_path_FDP
6498if test -n "$FDP"; then
6499 { echo "$as_me:$LINENO: result: $FDP" >&5
6500echo "${ECHO_T}$FDP" >&6; }
6501else
6502 { echo "$as_me:$LINENO: result: no" >&5
6503echo "${ECHO_T}no" >&6; }
6504fi
6505
6506
6507if test "$FDP" != "echo fdp" ; then
6508
6509cat >>confdefs.h <<\_ACEOF
6510#define HAVE_FDP 1
6511_ACEOF
6512
6513 if test "$llvm_cv_os_type" = "MingW" ; then
6514 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6515 fi
6516
6517cat >>confdefs.h <<_ACEOF
6518#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6519_ACEOF
6520
6521fi
6522# Extract the first word of "neato", so it can be a program name with args.
6523set dummy neato; ac_word=$2
6524{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6526if test "${ac_cv_path_NEATO+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6528else
6529 case $NEATO in
6530 [\\/]* | ?:[\\/]*)
6531 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6532 ;;
6533 *)
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535for as_dir in $PATH
6536do
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6541 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 break 2
6544 fi
6545done
6546done
6547IFS=$as_save_IFS
6548
6549 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6550 ;;
6551esac
6552fi
6553NEATO=$ac_cv_path_NEATO
6554if test -n "$NEATO"; then
6555 { echo "$as_me:$LINENO: result: $NEATO" >&5
6556echo "${ECHO_T}$NEATO" >&6; }
6557else
6558 { echo "$as_me:$LINENO: result: no" >&5
6559echo "${ECHO_T}no" >&6; }
6560fi
6561
6562
6563if test "$NEATO" != "echo neato" ; then
6564
6565cat >>confdefs.h <<\_ACEOF
6566#define HAVE_NEATO 1
6567_ACEOF
6568
6569 if test "$llvm_cv_os_type" = "MingW" ; then
6570 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6571 fi
6572
6573cat >>confdefs.h <<_ACEOF
6574#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6575_ACEOF
6576
6577fi
6578# Extract the first word of "twopi", so it can be a program name with args.
6579set dummy twopi; ac_word=$2
6580{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6582if test "${ac_cv_path_TWOPI+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6584else
6585 case $TWOPI in
6586 [\\/]* | ?:[\\/]*)
6587 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6588 ;;
6589 *)
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591for as_dir in $PATH
6592do
6593 IFS=$as_save_IFS
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6597 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 break 2
6600 fi
6601done
6602done
6603IFS=$as_save_IFS
6604
6605 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6606 ;;
6607esac
6608fi
6609TWOPI=$ac_cv_path_TWOPI
6610if test -n "$TWOPI"; then
6611 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6612echo "${ECHO_T}$TWOPI" >&6; }
6613else
6614 { echo "$as_me:$LINENO: result: no" >&5
6615echo "${ECHO_T}no" >&6; }
6616fi
6617
6618
6619if test "$TWOPI" != "echo twopi" ; then
6620
6621cat >>confdefs.h <<\_ACEOF
6622#define HAVE_TWOPI 1
6623_ACEOF
6624
6625 if test "$llvm_cv_os_type" = "MingW" ; then
6626 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6627 fi
6628
6629cat >>confdefs.h <<_ACEOF
6630#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6631_ACEOF
6632
6633fi
6634# Extract the first word of "circo", so it can be a program name with args.
6635set dummy circo; ac_word=$2
6636{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6638if test "${ac_cv_path_CIRCO+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6640else
6641 case $CIRCO in
6642 [\\/]* | ?:[\\/]*)
6643 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6644 ;;
6645 *)
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647for as_dir in $PATH
6648do
6649 IFS=$as_save_IFS
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6653 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 break 2
6656 fi
6657done
6658done
6659IFS=$as_save_IFS
6660
6661 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6662 ;;
6663esac
6664fi
6665CIRCO=$ac_cv_path_CIRCO
6666if test -n "$CIRCO"; then
6667 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6668echo "${ECHO_T}$CIRCO" >&6; }
6669else
6670 { echo "$as_me:$LINENO: result: no" >&5
6671echo "${ECHO_T}no" >&6; }
6672fi
6673
6674
6675if test "$CIRCO" != "echo circo" ; then
6676
6677cat >>confdefs.h <<\_ACEOF
6678#define HAVE_CIRCO 1
6679_ACEOF
6680
6681 if test "$llvm_cv_os_type" = "MingW" ; then
6682 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6683 fi
6684
6685cat >>confdefs.h <<_ACEOF
6686#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6687_ACEOF
6688
6689fi
6690for ac_prog in gv gsview32
6691do
6692 # Extract the first word of "$ac_prog", so it can be a program name with args.
6693set dummy $ac_prog; ac_word=$2
6694{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6696if test "${ac_cv_path_GV+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6698else
6699 case $GV in
6700 [\\/]* | ?:[\\/]*)
6701 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6702 ;;
6703 *)
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705for as_dir in $PATH
6706do
6707 IFS=$as_save_IFS
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
6710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6711 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 break 2
6714 fi
6715done
6716done
6717IFS=$as_save_IFS
6718
6719 ;;
6720esac
6721fi
6722GV=$ac_cv_path_GV
6723if test -n "$GV"; then
6724 { echo "$as_me:$LINENO: result: $GV" >&5
6725echo "${ECHO_T}$GV" >&6; }
6726else
6727 { echo "$as_me:$LINENO: result: no" >&5
6728echo "${ECHO_T}no" >&6; }
6729fi
6730
6731
6732 test -n "$GV" && break
6733done
6734test -n "$GV" || GV="echo gv"
6735
6736if test "$GV" != "echo gv" ; then
6737
6738cat >>confdefs.h <<\_ACEOF
6739#define HAVE_GV 1
6740_ACEOF
6741
6742 if test "$llvm_cv_os_type" = "MingW" ; then
6743 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6744 fi
6745
6746cat >>confdefs.h <<_ACEOF
6747#define LLVM_PATH_GV "$GV${EXEEXT}"
6748_ACEOF
6749
6750fi
6751# Extract the first word of "dotty", so it can be a program name with args.
6752set dummy dotty; ac_word=$2
6753{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755if test "${ac_cv_path_DOTTY+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757else
6758 case $DOTTY in
6759 [\\/]* | ?:[\\/]*)
6760 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6761 ;;
6762 *)
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764for as_dir in $PATH
6765do
6766 IFS=$as_save_IFS
6767 test -z "$as_dir" && as_dir=.
6768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6770 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 break 2
6773 fi
6774done
6775done
6776IFS=$as_save_IFS
6777
6778 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6779 ;;
6780esac
6781fi
6782DOTTY=$ac_cv_path_DOTTY
6783if test -n "$DOTTY"; then
6784 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6785echo "${ECHO_T}$DOTTY" >&6; }
6786else
6787 { echo "$as_me:$LINENO: result: no" >&5
6788echo "${ECHO_T}no" >&6; }
6789fi
6790
6791
6792if test "$DOTTY" != "echo dotty" ; then
6793
6794cat >>confdefs.h <<\_ACEOF
6795#define HAVE_DOTTY 1
6796_ACEOF
6797
6798 if test "$llvm_cv_os_type" = "MingW" ; then
6799 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6800 fi
6801
6802cat >>confdefs.h <<_ACEOF
6803#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6804_ACEOF
6805
6806fi
6807# Extract the first word of "xdot.py", so it can be a program name with args.
6808set dummy xdot.py; ac_word=$2
6809{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6811if test "${ac_cv_path_XDOT_PY+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6813else
6814 case $XDOT_PY in
6815 [\\/]* | ?:[\\/]*)
6816 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6817 ;;
6818 *)
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820for as_dir in $PATH
6821do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6829 fi
6830done
6831done
6832IFS=$as_save_IFS
6833
6834 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6835 ;;
6836esac
6837fi
6838XDOT_PY=$ac_cv_path_XDOT_PY
6839if test -n "$XDOT_PY"; then
6840 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6841echo "${ECHO_T}$XDOT_PY" >&6; }
6842else
6843 { echo "$as_me:$LINENO: result: no" >&5
6844echo "${ECHO_T}no" >&6; }
6845fi
6846
6847
6848if test "$XDOT_PY" != "echo xdot.py" ; then
6849
6850cat >>confdefs.h <<\_ACEOF
6851#define HAVE_XDOT_PY 1
6852_ACEOF
6853
6854 if test "$llvm_cv_os_type" = "MingW" ; then
6855 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6856 fi
6857
6858cat >>confdefs.h <<_ACEOF
6859#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6860_ACEOF
6861
6862fi
6863
6864
6865# Extract the first word of "perl", so it can be a program name with args.
6866set dummy perl; 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_PERL+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6871else
6872 case $PERL in
6873 [\\/]* | ?:[\\/]*)
6874 ac_cv_path_PERL="$PERL" # 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_PERL="$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 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6893 ;;
6894esac
6895fi
6896PERL=$ac_cv_path_PERL
6897if test -n "$PERL"; then
6898 { echo "$as_me:$LINENO: result: $PERL" >&5
6899echo "${ECHO_T}$PERL" >&6; }
6900else
6901 { echo "$as_me:$LINENO: result: no" >&5
6902echo "${ECHO_T}no" >&6; }
6903fi
6904
6905
6906if test "$PERL" != "none"; then
6907 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6908echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6909 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6910 { echo "$as_me:$LINENO: result: yes" >&5
6911echo "${ECHO_T}yes" >&6; }
6912 else
6913 PERL=none
6914 { echo "$as_me:$LINENO: result: not found" >&5
6915echo "${ECHO_T}not found" >&6; }
6916 fi
6917fi
6918
6919
6920if test x"$PERL" = xnone; then
6921 HAVE_PERL=0
6922
6923 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6924echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6925 { (exit 1); exit 1; }; }
6926else
6927 HAVE_PERL=1
6928
6929fi
6930
6931# Find a good install program. We prefer a C program (faster),
6932# so one script is as good as another. But avoid the broken or
6933# incompatible versions:
6934# SysV /etc/install, /usr/sbin/install
6935# SunOS /usr/etc/install
6936# IRIX /sbin/install
6937# AIX /bin/install
6938# AmigaOS /C/install, which installs bootblocks on floppy discs
6939# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6940# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6941# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6942# OS/2's system install, which has a completely different semantic
6943# ./install, which can be erroneously created by make from ./install.sh.
6944{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6945echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6946if test -z "$INSTALL"; then
6947if test "${ac_cv_path_install+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6949else
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951for as_dir in $PATH
6952do
6953 IFS=$as_save_IFS
6954 test -z "$as_dir" && as_dir=.
6955 # Account for people who put trailing slashes in PATH elements.
6956case $as_dir/ in
6957 ./ | .// | /cC/* | \
6958 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6959 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6960 /usr/ucb/* ) ;;
6961 *)
6962 # OSF1 and SCO ODT 3.0 have their own names for install.
6963 # Don't use installbsd from OSF since it installs stuff as root
6964 # by default.
6965 for ac_prog in ginstall scoinst install; do
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6968 if test $ac_prog = install &&
6969 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6970 # AIX install. It has an incompatible calling convention.
6971 :
6972 elif test $ac_prog = install &&
6973 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6974 # program-specific install script used by HP pwplus--don't use.
6975 :
6976 else
6977 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6978 break 3
6979 fi
6980 fi
6981 done
6982 done
6983 ;;
6984esac
6985done
6986IFS=$as_save_IFS
6987
6988
6989fi
6990 if test "${ac_cv_path_install+set}" = set; then
6991 INSTALL=$ac_cv_path_install
6992 else
6993 # As a last resort, use the slow shell script. Don't cache a
6994 # value for INSTALL within a source directory, because that will
6995 # break other packages using the cache if that directory is
6996 # removed, or if the value is a relative name.
6997 INSTALL=$ac_install_sh
6998 fi
6999fi
7000{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7001echo "${ECHO_T}$INSTALL" >&6; }
7002
7003# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7004# It thinks the first close brace ends the variable substitution.
7005test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7006
7007test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7008
7009test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7010
7011case "$INSTALL" in
7012 [\\/$]* | ?:[\\/]* ) ;;
7013 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7014esac
7015
7016# Extract the first word of "bzip2", so it can be a program name with args.
7017set dummy bzip2; ac_word=$2
7018{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7020if test "${ac_cv_path_BZIP2+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7022else
7023 case $BZIP2 in
7024 [\\/]* | ?:[\\/]*)
7025 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7026 ;;
7027 *)
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029for as_dir in $PATH
7030do
7031 IFS=$as_save_IFS
7032 test -z "$as_dir" && as_dir=.
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7035 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7037 break 2
7038 fi
7039done
7040done
7041IFS=$as_save_IFS
7042
7043 ;;
7044esac
7045fi
7046BZIP2=$ac_cv_path_BZIP2
7047if test -n "$BZIP2"; then
7048 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7049echo "${ECHO_T}$BZIP2" >&6; }
7050else
7051 { echo "$as_me:$LINENO: result: no" >&5
7052echo "${ECHO_T}no" >&6; }
7053fi
7054
7055
7056# Extract the first word of "cat", so it can be a program name with args.
7057set dummy cat; ac_word=$2
7058{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7060if test "${ac_cv_path_CAT+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7062else
7063 case $CAT in
7064 [\\/]* | ?:[\\/]*)
7065 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7066 ;;
7067 *)
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069for as_dir in $PATH
7070do
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
7073 for ac_exec_ext in '' $ac_executable_extensions; do
7074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7075 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 break 2
7078 fi
7079done
7080done
7081IFS=$as_save_IFS
7082
7083 ;;
7084esac
7085fi
7086CAT=$ac_cv_path_CAT
7087if test -n "$CAT"; then
7088 { echo "$as_me:$LINENO: result: $CAT" >&5
7089echo "${ECHO_T}$CAT" >&6; }
7090else
7091 { echo "$as_me:$LINENO: result: no" >&5
7092echo "${ECHO_T}no" >&6; }
7093fi
7094
7095
7096# Extract the first word of "doxygen", so it can be a program name with args.
7097set dummy doxygen; ac_word=$2
7098{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7100if test "${ac_cv_path_DOXYGEN+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7102else
7103 case $DOXYGEN in
7104 [\\/]* | ?:[\\/]*)
7105 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7106 ;;
7107 *)
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109for as_dir in $PATH
7110do
7111 IFS=$as_save_IFS
7112 test -z "$as_dir" && as_dir=.
7113 for ac_exec_ext in '' $ac_executable_extensions; do
7114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7115 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117 break 2
7118 fi
7119done
7120done
7121IFS=$as_save_IFS
7122
7123 ;;
7124esac
7125fi
7126DOXYGEN=$ac_cv_path_DOXYGEN
7127if test -n "$DOXYGEN"; then
7128 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7129echo "${ECHO_T}$DOXYGEN" >&6; }
7130else
7131 { echo "$as_me:$LINENO: result: no" >&5
7132echo "${ECHO_T}no" >&6; }
7133fi
7134
7135
7136# Extract the first word of "groff", so it can be a program name with args.
7137set dummy groff; ac_word=$2
7138{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7140if test "${ac_cv_path_GROFF+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7142else
7143 case $GROFF in
7144 [\\/]* | ?:[\\/]*)
7145 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7146 ;;
7147 *)
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149for as_dir in $PATH
7150do
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7155 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 break 2
7158 fi
7159done
7160done
7161IFS=$as_save_IFS
7162
7163 ;;
7164esac
7165fi
7166GROFF=$ac_cv_path_GROFF
7167if test -n "$GROFF"; then
7168 { echo "$as_me:$LINENO: result: $GROFF" >&5
7169echo "${ECHO_T}$GROFF" >&6; }
7170else
7171 { echo "$as_me:$LINENO: result: no" >&5
7172echo "${ECHO_T}no" >&6; }
7173fi
7174
7175
7176# Extract the first word of "gzip", so it can be a program name with args.
7177set dummy gzip; ac_word=$2
7178{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7180if test "${ac_cv_path_GZIPBIN+set}" = set; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
7182else
7183 case $GZIPBIN in
7184 [\\/]* | ?:[\\/]*)
7185 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7186 ;;
7187 *)
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189for as_dir in $PATH
7190do
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7195 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 break 2
7198 fi
7199done
7200done
7201IFS=$as_save_IFS
7202
7203 ;;
7204esac
7205fi
7206GZIPBIN=$ac_cv_path_GZIPBIN
7207if test -n "$GZIPBIN"; then
7208 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7209echo "${ECHO_T}$GZIPBIN" >&6; }
7210else
7211 { echo "$as_me:$LINENO: result: no" >&5
7212echo "${ECHO_T}no" >&6; }
7213fi
7214
7215
7216# Extract the first word of "pod2html", so it can be a program name with args.
7217set dummy pod2html; ac_word=$2
7218{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7220if test "${ac_cv_path_POD2HTML+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7222else
7223 case $POD2HTML in
7224 [\\/]* | ?:[\\/]*)
7225 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7226 ;;
7227 *)
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229for as_dir in $PATH
7230do
7231 IFS=$as_save_IFS
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7235 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 break 2
7238 fi
7239done
7240done
7241IFS=$as_save_IFS
7242
7243 ;;
7244esac
7245fi
7246POD2HTML=$ac_cv_path_POD2HTML
7247if test -n "$POD2HTML"; then
7248 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7249echo "${ECHO_T}$POD2HTML" >&6; }
7250else
7251 { echo "$as_me:$LINENO: result: no" >&5
7252echo "${ECHO_T}no" >&6; }
7253fi
7254
7255
7256# Extract the first word of "pod2man", so it can be a program name with args.
7257set dummy pod2man; ac_word=$2
7258{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7260if test "${ac_cv_path_POD2MAN+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
7262else
7263 case $POD2MAN in
7264 [\\/]* | ?:[\\/]*)
7265 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7266 ;;
7267 *)
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269for as_dir in $PATH
7270do
7271 IFS=$as_save_IFS
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7275 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7277 break 2
7278 fi
7279done
7280done
7281IFS=$as_save_IFS
7282
7283 ;;
7284esac
7285fi
7286POD2MAN=$ac_cv_path_POD2MAN
7287if test -n "$POD2MAN"; then
7288 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7289echo "${ECHO_T}$POD2MAN" >&6; }
7290else
7291 { echo "$as_me:$LINENO: result: no" >&5
7292echo "${ECHO_T}no" >&6; }
7293fi
7294
7295
7296# Extract the first word of "pdfroff", so it can be a program name with args.
7297set dummy pdfroff; ac_word=$2
7298{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7300if test "${ac_cv_path_PDFROFF+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7302else
7303 case $PDFROFF in
7304 [\\/]* | ?:[\\/]*)
7305 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7306 ;;
7307 *)
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309for as_dir in $PATH
7310do
7311 IFS=$as_save_IFS
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7315 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 break 2
7318 fi
7319done
7320done
7321IFS=$as_save_IFS
7322
7323 ;;
7324esac
7325fi
7326PDFROFF=$ac_cv_path_PDFROFF
7327if test -n "$PDFROFF"; then
7328 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7329echo "${ECHO_T}$PDFROFF" >&6; }
7330else
7331 { echo "$as_me:$LINENO: result: no" >&5
7332echo "${ECHO_T}no" >&6; }
7333fi
7334
7335
7336# Extract the first word of "runtest", so it can be a program name with args.
7337set dummy runtest; ac_word=$2
7338{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7340if test "${ac_cv_path_RUNTEST+set}" = set; then
7341 echo $ECHO_N "(cached) $ECHO_C" >&6
7342else
7343 case $RUNTEST in
7344 [\\/]* | ?:[\\/]*)
7345 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7346 ;;
7347 *)
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349for as_dir in $PATH
7350do
7351 IFS=$as_save_IFS
7352 test -z "$as_dir" && as_dir=.
7353 for ac_exec_ext in '' $ac_executable_extensions; do
7354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7355 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7357 break 2
7358 fi
7359done
7360done
7361IFS=$as_save_IFS
7362
7363 ;;
7364esac
7365fi
7366RUNTEST=$ac_cv_path_RUNTEST
7367if test -n "$RUNTEST"; then
7368 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7369echo "${ECHO_T}$RUNTEST" >&6; }
7370else
7371 { echo "$as_me:$LINENO: result: no" >&5
7372echo "${ECHO_T}no" >&6; }
7373fi
7374
7375
7376
7377no_itcl=true
7378{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7379echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7380
7381# Check whether --with-tclinclude was given.
7382if test "${with_tclinclude+set}" = set; then
7383 withval=$with_tclinclude; with_tclinclude=${withval}
7384else
7385 with_tclinclude=''
7386fi
7387
7388if test "${ac_cv_path_tclsh+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7390else
7391
7392if test x"${with_tclinclude}" != x ; then
7393 if test -f ${with_tclinclude}/tclsh ; then
7394 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7395 elif test -f ${with_tclinclude}/src/tclsh ; then
7396 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7397 else
7398 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7399echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7400 { (exit 1); exit 1; }; }
7401 fi
7402fi
7403fi
7404
7405
7406if test x"${ac_cv_path_tclsh}" = x ; then
7407 { echo "$as_me:$LINENO: result: none" >&5
7408echo "${ECHO_T}none" >&6; }
7409 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
7410do
7411 # Extract the first word of "$ac_prog", so it can be a program name with args.
7412set dummy $ac_prog; ac_word=$2
7413{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7415if test "${ac_cv_path_TCLSH+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7417else
7418 case $TCLSH in
7419 [\\/]* | ?:[\\/]*)
7420 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7421 ;;
7422 *)
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424for as_dir in $PATH
7425do
7426 IFS=$as_save_IFS
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7430 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 break 2
7433 fi
7434done
7435done
7436IFS=$as_save_IFS
7437
7438 ;;
7439esac
7440fi
7441TCLSH=$ac_cv_path_TCLSH
7442if test -n "$TCLSH"; then
7443 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7444echo "${ECHO_T}$TCLSH" >&6; }
7445else
7446 { echo "$as_me:$LINENO: result: no" >&5
7447echo "${ECHO_T}no" >&6; }
7448fi
7449
7450
7451 test -n "$TCLSH" && break
7452done
7453
7454 if test x"${TCLSH}" = x ; then
7455 ac_cv_path_tclsh='';
7456 else
7457 ac_cv_path_tclsh="${TCLSH}";
7458 fi
7459else
7460 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7461echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7462 TCLSH="${ac_cv_path_tclsh}"
7463
7464fi
7465
7466# Extract the first word of "zip", so it can be a program name with args.
7467set dummy zip; ac_word=$2
7468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7470if test "${ac_cv_path_ZIP+set}" = set; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
7472else
7473 case $ZIP in
7474 [\\/]* | ?:[\\/]*)
7475 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7476 ;;
7477 *)
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479for as_dir in $PATH
7480do
7481 IFS=$as_save_IFS
7482 test -z "$as_dir" && as_dir=.
7483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7485 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 break 2
7488 fi
7489done
7490done
7491IFS=$as_save_IFS
7492
7493 ;;
7494esac
7495fi
7496ZIP=$ac_cv_path_ZIP
7497if test -n "$ZIP"; then
7498 { echo "$as_me:$LINENO: result: $ZIP" >&5
7499echo "${ECHO_T}$ZIP" >&6; }
7500else
7501 { echo "$as_me:$LINENO: result: no" >&5
7502echo "${ECHO_T}no" >&6; }
7503fi
7504
7505
7506for ac_prog in ocamlc
7507do
7508 # Extract the first word of "$ac_prog", so it can be a program name with args.
7509set dummy $ac_prog; ac_word=$2
7510{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7512if test "${ac_cv_path_OCAMLC+set}" = set; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7514else
7515 case $OCAMLC in
7516 [\\/]* | ?:[\\/]*)
7517 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7518 ;;
7519 *)
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521for as_dir in $PATH
7522do
7523 IFS=$as_save_IFS
7524 test -z "$as_dir" && as_dir=.
7525 for ac_exec_ext in '' $ac_executable_extensions; do
7526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7527 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7529 break 2
7530 fi
7531done
7532done
7533IFS=$as_save_IFS
7534
7535 ;;
7536esac
7537fi
7538OCAMLC=$ac_cv_path_OCAMLC
7539if test -n "$OCAMLC"; then
7540 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7541echo "${ECHO_T}$OCAMLC" >&6; }
7542else
7543 { echo "$as_me:$LINENO: result: no" >&5
7544echo "${ECHO_T}no" >&6; }
7545fi
7546
7547
7548 test -n "$OCAMLC" && break
7549done
7550
7551for ac_prog in ocamlopt
7552do
7553 # Extract the first word of "$ac_prog", so it can be a program name with args.
7554set dummy $ac_prog; ac_word=$2
7555{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7557if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7559else
7560 case $OCAMLOPT in
7561 [\\/]* | ?:[\\/]*)
7562 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7563 ;;
7564 *)
7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566for as_dir in $PATH
7567do
7568 IFS=$as_save_IFS
7569 test -z "$as_dir" && as_dir=.
7570 for ac_exec_ext in '' $ac_executable_extensions; do
7571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7572 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 break 2
7575 fi
7576done
7577done
7578IFS=$as_save_IFS
7579
7580 ;;
7581esac
7582fi
7583OCAMLOPT=$ac_cv_path_OCAMLOPT
7584if test -n "$OCAMLOPT"; then
7585 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7586echo "${ECHO_T}$OCAMLOPT" >&6; }
7587else
7588 { echo "$as_me:$LINENO: result: no" >&5
7589echo "${ECHO_T}no" >&6; }
7590fi
7591
7592
7593 test -n "$OCAMLOPT" && break
7594done
7595
7596for ac_prog in ocamldep
7597do
7598 # Extract the first word of "$ac_prog", so it can be a program name with args.
7599set dummy $ac_prog; ac_word=$2
7600{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7602if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7604else
7605 case $OCAMLDEP in
7606 [\\/]* | ?:[\\/]*)
7607 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7608 ;;
7609 *)
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611for as_dir in $PATH
7612do
7613 IFS=$as_save_IFS
7614 test -z "$as_dir" && as_dir=.
7615 for ac_exec_ext in '' $ac_executable_extensions; do
7616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7617 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 break 2
7620 fi
7621done
7622done
7623IFS=$as_save_IFS
7624
7625 ;;
7626esac
7627fi
7628OCAMLDEP=$ac_cv_path_OCAMLDEP
7629if test -n "$OCAMLDEP"; then
7630 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7631echo "${ECHO_T}$OCAMLDEP" >&6; }
7632else
7633 { echo "$as_me:$LINENO: result: no" >&5
7634echo "${ECHO_T}no" >&6; }
7635fi
7636
7637
7638 test -n "$OCAMLDEP" && break
7639done
7640
7641for ac_prog in ocamldoc
7642do
7643 # Extract the first word of "$ac_prog", so it can be a program name with args.
7644set dummy $ac_prog; ac_word=$2
7645{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7647if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7649else
7650 case $OCAMLDOC in
7651 [\\/]* | ?:[\\/]*)
7652 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7653 ;;
7654 *)
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656for as_dir in $PATH
7657do
7658 IFS=$as_save_IFS
7659 test -z "$as_dir" && as_dir=.
7660 for ac_exec_ext in '' $ac_executable_extensions; do
7661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7662 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7664 break 2
7665 fi
7666done
7667done
7668IFS=$as_save_IFS
7669
7670 ;;
7671esac
7672fi
7673OCAMLDOC=$ac_cv_path_OCAMLDOC
7674if test -n "$OCAMLDOC"; then
7675 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7676echo "${ECHO_T}$OCAMLDOC" >&6; }
7677else
7678 { echo "$as_me:$LINENO: result: no" >&5
7679echo "${ECHO_T}no" >&6; }
7680fi
7681
7682
7683 test -n "$OCAMLDOC" && break
7684done
7685
7686for ac_prog in gas as
7687do
7688 # Extract the first word of "$ac_prog", so it can be a program name with args.
7689set dummy $ac_prog; ac_word=$2
7690{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7692if test "${ac_cv_path_GAS+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7694else
7695 case $GAS in
7696 [\\/]* | ?:[\\/]*)
7697 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7698 ;;
7699 *)
7700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701for as_dir in $PATH
7702do
7703 IFS=$as_save_IFS
7704 test -z "$as_dir" && as_dir=.
7705 for ac_exec_ext in '' $ac_executable_extensions; do
7706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7707 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7709 break 2
7710 fi
7711done
7712done
7713IFS=$as_save_IFS
7714
7715 ;;
7716esac
7717fi
7718GAS=$ac_cv_path_GAS
7719if test -n "$GAS"; then
7720 { echo "$as_me:$LINENO: result: $GAS" >&5
7721echo "${ECHO_T}$GAS" >&6; }
7722else
7723 { echo "$as_me:$LINENO: result: no" >&5
7724echo "${ECHO_T}no" >&6; }
7725fi
7726
7727
7728 test -n "$GAS" && break
7729done
7730
7731
7732{ echo "$as_me:$LINENO: checking for linker version" >&5
7733echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7734if test "${llvm_cv_link_version+set}" = set; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
7736else
7737
7738 version_string="$(ld -v 2>&1 | head -1)"
7739
7740 # Check for ld64.
7741 if (echo "$version_string" | grep -q "ld64"); then
7742 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7743 else
7744 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7745 fi
7746
7747fi
7748{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7749echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7750
7751cat >>confdefs.h <<_ACEOF
7752#define HOST_LINK_VERSION "$llvm_cv_link_version"
7753_ACEOF
7754
7755
7756
7757{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7758echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7759if test "${llvm_cv_link_use_r+set}" = set; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7761else
7762 ac_ext=c
7763ac_cpp='$CPP $CPPFLAGS'
7764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7766ac_compiler_gnu=$ac_cv_c_compiler_gnu
7767
7768 oldcflags="$CFLAGS"
7769 CFLAGS="$CFLAGS -Wl,-R."
7770 cat >conftest.$ac_ext <<_ACEOF
7771/* confdefs.h. */
7772_ACEOF
7773cat confdefs.h >>conftest.$ac_ext
7774cat >>conftest.$ac_ext <<_ACEOF
7775/* end confdefs.h. */
7776
7777int
7778main ()
7779{
7780
7781 ;
7782 return 0;
7783}
7784_ACEOF
7785rm -f conftest.$ac_objext conftest$ac_exeext
7786if { (ac_try="$ac_link"
7787case "(($ac_try" in
7788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7789 *) ac_try_echo=$ac_try;;
7790esac
7791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7792 (eval "$ac_link") 2>conftest.er1
7793 ac_status=$?
7794 grep -v '^ *+' conftest.er1 >conftest.err
7795 rm -f conftest.er1
7796 cat conftest.err >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); } &&
7799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7800 { (case "(($ac_try" in
7801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802 *) ac_try_echo=$ac_try;;
7803esac
7804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7805 (eval "$ac_try") 2>&5
7806 ac_status=$?
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); }; } &&
7809 { ac_try='test -s conftest$ac_exeext'
7810 { (case "(($ac_try" in
7811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7812 *) ac_try_echo=$ac_try;;
7813esac
7814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7815 (eval "$ac_try") 2>&5
7816 ac_status=$?
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); }; }; then
7819 llvm_cv_link_use_r=yes
7820else
7821 echo "$as_me: failed program was:" >&5
7822sed 's/^/| /' conftest.$ac_ext >&5
7823
7824 llvm_cv_link_use_r=no
7825fi
7826
7827rm -f core conftest.err conftest.$ac_objext \
7828 conftest$ac_exeext conftest.$ac_ext
7829 CFLAGS="$oldcflags"
7830 ac_ext=c
7831ac_cpp='$CPP $CPPFLAGS'
7832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7834ac_compiler_gnu=$ac_cv_c_compiler_gnu
7835
7836
7837fi
7838{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7839echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7840if test "$llvm_cv_link_use_r" = yes ; then
7841
7842cat >>confdefs.h <<\_ACEOF
7843#define HAVE_LINK_R 1
7844_ACEOF
7845
7846 fi
7847
7848
7849{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7850echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7851if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
7853else
7854 ac_ext=c
7855ac_cpp='$CPP $CPPFLAGS'
7856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7858ac_compiler_gnu=$ac_cv_c_compiler_gnu
7859
7860 oldcflags="$CFLAGS"
7861 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7862 cat >conftest.$ac_ext <<_ACEOF
7863/* confdefs.h. */
7864_ACEOF
7865cat confdefs.h >>conftest.$ac_ext
7866cat >>conftest.$ac_ext <<_ACEOF
7867/* end confdefs.h. */
7868
7869int
7870main ()
7871{
7872
7873 ;
7874 return 0;
7875}
7876_ACEOF
7877rm -f conftest.$ac_objext conftest$ac_exeext
7878if { (ac_try="$ac_link"
7879case "(($ac_try" in
7880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7881 *) ac_try_echo=$ac_try;;
7882esac
7883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7884 (eval "$ac_link") 2>conftest.er1
7885 ac_status=$?
7886 grep -v '^ *+' conftest.er1 >conftest.err
7887 rm -f conftest.er1
7888 cat conftest.err >&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); } &&
7891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7892 { (case "(($ac_try" in
7893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7894 *) ac_try_echo=$ac_try;;
7895esac
7896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7897 (eval "$ac_try") 2>&5
7898 ac_status=$?
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; } &&
7901 { ac_try='test -s conftest$ac_exeext'
7902 { (case "(($ac_try" in
7903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7904 *) ac_try_echo=$ac_try;;
7905esac
7906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7907 (eval "$ac_try") 2>&5
7908 ac_status=$?
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); }; }; then
7911 llvm_cv_link_use_export_dynamic=yes
7912else
7913 echo "$as_me: failed program was:" >&5
7914sed 's/^/| /' conftest.$ac_ext >&5
7915
7916 llvm_cv_link_use_export_dynamic=no
7917fi
7918
7919rm -f core conftest.err conftest.$ac_objext \
7920 conftest$ac_exeext conftest.$ac_ext
7921 CFLAGS="$oldcflags"
7922 ac_ext=c
7923ac_cpp='$CPP $CPPFLAGS'
7924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7926ac_compiler_gnu=$ac_cv_c_compiler_gnu
7927
7928
7929fi
7930{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7931echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7932if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7933
7934cat >>confdefs.h <<\_ACEOF
7935#define HAVE_LINK_EXPORT_DYNAMIC 1
7936_ACEOF
7937
7938 fi
7939
7940
7941{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7942echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7943if test "${llvm_cv_link_use_version_script+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945else
7946 ac_ext=c
7947ac_cpp='$CPP $CPPFLAGS'
7948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7950ac_compiler_gnu=$ac_cv_c_compiler_gnu
7951
7952 oldcflags="$CFLAGS"
7953
7954 # The following code is from the autoconf manual,
7955 # "11.13: Limitations of Usual Tools".
7956 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7957 # Use mktemp if possible; otherwise fall back on mkdir,
7958 # with $RANDOM to make collisions less likely.
7959 : ${TMPDIR=/tmp}
7960 {
7961 tmp=`
7962 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7963 ` &&
7964 test -n "$tmp" && test -d "$tmp"
7965 } || {
7966 tmp=$TMPDIR/foo$$-$RANDOM
7967 (umask 077 && mkdir "$tmp")
7968 } || exit $?
7969
7970 echo "{" > "$tmp/export.map"
7971 echo " global: main;" >> "$tmp/export.map"
7972 echo " local: *;" >> "$tmp/export.map"
7973 echo "};" >> "$tmp/export.map"
7974
7975 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7976 cat >conftest.$ac_ext <<_ACEOF
7977/* confdefs.h. */
7978_ACEOF
7979cat confdefs.h >>conftest.$ac_ext
7980cat >>conftest.$ac_ext <<_ACEOF
7981/* end confdefs.h. */
7982
7983int
7984main ()
7985{
7986
7987 ;
7988 return 0;
7989}
7990_ACEOF
7991rm -f conftest.$ac_objext conftest$ac_exeext
7992if { (ac_try="$ac_link"
7993case "(($ac_try" in
7994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7995 *) ac_try_echo=$ac_try;;
7996esac
7997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7998 (eval "$ac_link") 2>conftest.er1
7999 ac_status=$?
8000 grep -v '^ *+' conftest.er1 >conftest.err
8001 rm -f conftest.er1
8002 cat conftest.err >&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); } &&
8005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8006 { (case "(($ac_try" in
8007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8008 *) ac_try_echo=$ac_try;;
8009esac
8010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8011 (eval "$ac_try") 2>&5
8012 ac_status=$?
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); }; } &&
8015 { ac_try='test -s conftest$ac_exeext'
8016 { (case "(($ac_try" in
8017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018 *) ac_try_echo=$ac_try;;
8019esac
8020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021 (eval "$ac_try") 2>&5
8022 ac_status=$?
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); }; }; then
8025 llvm_cv_link_use_version_script=yes
8026else
8027 echo "$as_me: failed program was:" >&5
8028sed 's/^/| /' conftest.$ac_ext >&5
8029
8030 llvm_cv_link_use_version_script=no
8031fi
8032
8033rm -f core conftest.err conftest.$ac_objext \
8034 conftest$ac_exeext conftest.$ac_ext
8035 rm "$tmp/export.map"
8036 rmdir "$tmp"
8037 CFLAGS="$oldcflags"
8038 ac_ext=c
8039ac_cpp='$CPP $CPPFLAGS'
8040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8042ac_compiler_gnu=$ac_cv_c_compiler_gnu
8043
8044
8045fi
8046{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8047echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8048if test "$llvm_cv_link_use_version_script" = yes ; then
8049 HAVE_LINK_VERSION_SCRIPT=1
8050
8051 fi
8052
8053
8054
8055
8056{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8057echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8058if test "${ac_cv_c_const+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8060else
8061 cat >conftest.$ac_ext <<_ACEOF
8062/* confdefs.h. */
8063_ACEOF
8064cat confdefs.h >>conftest.$ac_ext
8065cat >>conftest.$ac_ext <<_ACEOF
8066/* end confdefs.h. */
8067
8068int
8069main ()
8070{
8071/* FIXME: Include the comments suggested by Paul. */
8072#ifndef __cplusplus
8073 /* Ultrix mips cc rejects this. */
8074 typedef int charset[2];
8075 const charset x;
8076 /* SunOS 4.1.1 cc rejects this. */
8077 char const *const *ccp;
8078 char **p;
8079 /* NEC SVR4.0.2 mips cc rejects this. */
8080 struct point {int x, y;};
8081 static struct point const zero = {0,0};
8082 /* AIX XL C 1.02.0.0 rejects this.
8083 It does not let you subtract one const X* pointer from another in
8084 an arm of an if-expression whose if-part is not a constant
8085 expression */
8086 const char *g = "string";
8087 ccp = &g + (g ? g-g : 0);
8088 /* HPUX 7.0 cc rejects these. */
8089 ++ccp;
8090 p = (char**) ccp;
8091 ccp = (char const *const *) p;
8092 { /* SCO 3.2v4 cc rejects this. */
8093 char *t;
8094 char const *s = 0 ? (char *) 0 : (char const *) 0;
8095
8096 *t++ = 0;
8097 if (s) return 0;
8098 }
8099 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8100 int x[] = {25, 17};
8101 const int *foo = &x[0];
8102 ++foo;
8103 }
8104 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8105 typedef const int *iptr;
8106 iptr p = 0;
8107 ++p;
8108 }
8109 { /* AIX XL C 1.02.0.0 rejects this saying
8110 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8111 struct s { int j; const int *ap[3]; };
8112 struct s *b; b->j = 5;
8113 }
8114 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8115 const int foo = 10;
8116 if (!foo) return 0;
8117 }
8118 return !x[0] && !zero.x;
8119#endif
8120
8121 ;
8122 return 0;
8123}
8124_ACEOF
8125rm -f conftest.$ac_objext
8126if { (ac_try="$ac_compile"
8127case "(($ac_try" in
8128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8129 *) ac_try_echo=$ac_try;;
8130esac
8131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8132 (eval "$ac_compile") 2>conftest.er1
8133 ac_status=$?
8134 grep -v '^ *+' conftest.er1 >conftest.err
8135 rm -f conftest.er1
8136 cat conftest.err >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } &&
8139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8140 { (case "(($ac_try" in
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8143esac
8144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_try") 2>&5
8146 ac_status=$?
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; } &&
8149 { ac_try='test -s conftest.$ac_objext'
8150 { (case "(($ac_try" in
8151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8152 *) ac_try_echo=$ac_try;;
8153esac
8154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8155 (eval "$ac_try") 2>&5
8156 ac_status=$?
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); }; }; then
8159 ac_cv_c_const=yes
8160else
8161 echo "$as_me: failed program was:" >&5
8162sed 's/^/| /' conftest.$ac_ext >&5
8163
8164 ac_cv_c_const=no
8165fi
8166
8167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8168fi
8169{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8170echo "${ECHO_T}$ac_cv_c_const" >&6; }
8171if test $ac_cv_c_const = no; then
8172
8173cat >>confdefs.h <<\_ACEOF
8174#define const
8175_ACEOF
8176
8177fi
8178
8179
8180
8181
8182
8183
8184ac_header_dirent=no
8185for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8186 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8187{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8188echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8189if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8191else
8192 cat >conftest.$ac_ext <<_ACEOF
8193/* confdefs.h. */
8194_ACEOF
8195cat confdefs.h >>conftest.$ac_ext
8196cat >>conftest.$ac_ext <<_ACEOF
8197/* end confdefs.h. */
8198#include <sys/types.h>
8199#include <$ac_hdr>
8200
8201int
8202main ()
8203{
8204if ((DIR *) 0)
8205return 0;
8206 ;
8207 return 0;
8208}
8209_ACEOF
8210rm -f conftest.$ac_objext
8211if { (ac_try="$ac_compile"
8212case "(($ac_try" in
8213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8214 *) ac_try_echo=$ac_try;;
8215esac
8216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8217 (eval "$ac_compile") 2>conftest.er1
8218 ac_status=$?
8219 grep -v '^ *+' conftest.er1 >conftest.err
8220 rm -f conftest.er1
8221 cat conftest.err >&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } &&
8224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8225 { (case "(($ac_try" in
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8228esac
8229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_try") 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; } &&
8234 { ac_try='test -s conftest.$ac_objext'
8235 { (case "(($ac_try" in
8236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237 *) ac_try_echo=$ac_try;;
8238esac
8239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240 (eval "$ac_try") 2>&5
8241 ac_status=$?
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); }; }; then
8244 eval "$as_ac_Header=yes"
8245else
8246 echo "$as_me: failed program was:" >&5
8247sed 's/^/| /' conftest.$ac_ext >&5
8248
8249 eval "$as_ac_Header=no"
8250fi
8251
8252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8253fi
8254ac_res=`eval echo '${'$as_ac_Header'}'`
8255 { echo "$as_me:$LINENO: result: $ac_res" >&5
8256echo "${ECHO_T}$ac_res" >&6; }
8257if test `eval echo '${'$as_ac_Header'}'` = yes; then
8258 cat >>confdefs.h <<_ACEOF
8259#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8260_ACEOF
8261
8262ac_header_dirent=$ac_hdr; break
8263fi
8264
8265done
8266# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8267if test $ac_header_dirent = dirent.h; then
8268 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8269echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8270if test "${ac_cv_search_opendir+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8272else
8273 ac_func_search_save_LIBS=$LIBS
8274cat >conftest.$ac_ext <<_ACEOF
8275/* confdefs.h. */
8276_ACEOF
8277cat confdefs.h >>conftest.$ac_ext
8278cat >>conftest.$ac_ext <<_ACEOF
8279/* end confdefs.h. */
8280
8281/* Override any GCC internal prototype to avoid an error.
8282 Use char because int might match the return type of a GCC
8283 builtin and then its argument prototype would still apply. */
8284#ifdef __cplusplus
8285extern "C"
8286#endif
8287char opendir ();
8288int
8289main ()
8290{
8291return opendir ();
8292 ;
8293 return 0;
8294}
8295_ACEOF
8296for ac_lib in '' dir; do
8297 if test -z "$ac_lib"; then
8298 ac_res="none required"
8299 else
8300 ac_res=-l$ac_lib
8301 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8302 fi
8303 rm -f conftest.$ac_objext conftest$ac_exeext
8304if { (ac_try="$ac_link"
8305case "(($ac_try" in
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8308esac
8309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310 (eval "$ac_link") 2>conftest.er1
8311 ac_status=$?
8312 grep -v '^ *+' conftest.er1 >conftest.err
8313 rm -f conftest.er1
8314 cat conftest.err >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } &&
8317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8318 { (case "(($ac_try" in
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8321esac
8322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_try") 2>&5
8324 ac_status=$?
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); }; } &&
8327 { ac_try='test -s conftest$ac_exeext'
8328 { (case "(($ac_try" in
8329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330 *) ac_try_echo=$ac_try;;
8331esac
8332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333 (eval "$ac_try") 2>&5
8334 ac_status=$?
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); }; }; then
8337 ac_cv_search_opendir=$ac_res
8338else
8339 echo "$as_me: failed program was:" >&5
8340sed 's/^/| /' conftest.$ac_ext >&5
8341
8342
8343fi
8344
8345rm -f core conftest.err conftest.$ac_objext \
8346 conftest$ac_exeext
8347 if test "${ac_cv_search_opendir+set}" = set; then
8348 break
8349fi
8350done
8351if test "${ac_cv_search_opendir+set}" = set; then
8352 :
8353else
8354 ac_cv_search_opendir=no
8355fi
8356rm conftest.$ac_ext
8357LIBS=$ac_func_search_save_LIBS
8358fi
8359{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8360echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8361ac_res=$ac_cv_search_opendir
8362if test "$ac_res" != no; then
8363 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8364
8365fi
8366
8367else
8368 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8369echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8370if test "${ac_cv_search_opendir+set}" = set; then
8371 echo $ECHO_N "(cached) $ECHO_C" >&6
8372else
8373 ac_func_search_save_LIBS=$LIBS
8374cat >conftest.$ac_ext <<_ACEOF
8375/* confdefs.h. */
8376_ACEOF
8377cat confdefs.h >>conftest.$ac_ext
8378cat >>conftest.$ac_ext <<_ACEOF
8379/* end confdefs.h. */
8380
8381/* Override any GCC internal prototype to avoid an error.
8382 Use char because int might match the return type of a GCC
8383 builtin and then its argument prototype would still apply. */
8384#ifdef __cplusplus
8385extern "C"
8386#endif
8387char opendir ();
8388int
8389main ()
8390{
8391return opendir ();
8392 ;
8393 return 0;
8394}
8395_ACEOF
8396for ac_lib in '' x; do
8397 if test -z "$ac_lib"; then
8398 ac_res="none required"
8399 else
8400 ac_res=-l$ac_lib
8401 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8402 fi
8403 rm -f conftest.$ac_objext conftest$ac_exeext
8404if { (ac_try="$ac_link"
8405case "(($ac_try" in
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8408esac
8409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_link") 2>conftest.er1
8411 ac_status=$?
8412 grep -v '^ *+' conftest.er1 >conftest.err
8413 rm -f conftest.er1
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } &&
8417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8418 { (case "(($ac_try" in
8419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8420 *) ac_try_echo=$ac_try;;
8421esac
8422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8423 (eval "$ac_try") 2>&5
8424 ac_status=$?
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); }; } &&
8427 { ac_try='test -s conftest$ac_exeext'
8428 { (case "(($ac_try" in
8429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430 *) ac_try_echo=$ac_try;;
8431esac
8432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8433 (eval "$ac_try") 2>&5
8434 ac_status=$?
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; }; then
8437 ac_cv_search_opendir=$ac_res
8438else
8439 echo "$as_me: failed program was:" >&5
8440sed 's/^/| /' conftest.$ac_ext >&5
8441
8442
8443fi
8444
8445rm -f core conftest.err conftest.$ac_objext \
8446 conftest$ac_exeext
8447 if test "${ac_cv_search_opendir+set}" = set; then
8448 break
8449fi
8450done
8451if test "${ac_cv_search_opendir+set}" = set; then
8452 :
8453else
8454 ac_cv_search_opendir=no
8455fi
8456rm conftest.$ac_ext
8457LIBS=$ac_func_search_save_LIBS
8458fi
8459{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8460echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8461ac_res=$ac_cv_search_opendir
8462if test "$ac_res" != no; then
8463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8464
8465fi
8466
8467fi
8468
8469
8470for ac_header in dlfcn.h
8471do
8472as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8473if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8476if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8478fi
8479ac_res=`eval echo '${'$as_ac_Header'}'`
8480 { echo "$as_me:$LINENO: result: $ac_res" >&5
8481echo "${ECHO_T}$ac_res" >&6; }
8482else
8483 # Is the header compilable?
8484{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8485echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8486cat >conftest.$ac_ext <<_ACEOF
8487/* confdefs.h. */
8488_ACEOF
8489cat confdefs.h >>conftest.$ac_ext
8490cat >>conftest.$ac_ext <<_ACEOF
8491/* end confdefs.h. */
8492$ac_includes_default
8493#include <$ac_header>
8494_ACEOF
8495rm -f conftest.$ac_objext
8496if { (ac_try="$ac_compile"
8497case "(($ac_try" in
8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8500esac
8501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502 (eval "$ac_compile") 2>conftest.er1
8503 ac_status=$?
8504 grep -v '^ *+' conftest.er1 >conftest.err
8505 rm -f conftest.er1
8506 cat conftest.err >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } &&
8509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8510 { (case "(($ac_try" in
8511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8512 *) ac_try_echo=$ac_try;;
8513esac
8514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515 (eval "$ac_try") 2>&5
8516 ac_status=$?
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }; } &&
8519 { ac_try='test -s conftest.$ac_objext'
8520 { (case "(($ac_try" in
8521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8522 *) ac_try_echo=$ac_try;;
8523esac
8524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8525 (eval "$ac_try") 2>&5
8526 ac_status=$?
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; }; then
8529 ac_header_compiler=yes
8530else
8531 echo "$as_me: failed program was:" >&5
8532sed 's/^/| /' conftest.$ac_ext >&5
8533
8534 ac_header_compiler=no
8535fi
8536
8537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8538{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8539echo "${ECHO_T}$ac_header_compiler" >&6; }
8540
8541# Is the header present?
8542{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8543echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8544cat >conftest.$ac_ext <<_ACEOF
8545/* confdefs.h. */
8546_ACEOF
8547cat confdefs.h >>conftest.$ac_ext
8548cat >>conftest.$ac_ext <<_ACEOF
8549/* end confdefs.h. */
8550#include <$ac_header>
8551_ACEOF
8552if { (ac_try="$ac_cpp conftest.$ac_ext"
8553case "(($ac_try" in
8554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555 *) ac_try_echo=$ac_try;;
8556esac
8557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8559 ac_status=$?
8560 grep -v '^ *+' conftest.er1 >conftest.err
8561 rm -f conftest.er1
8562 cat conftest.err >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } >/dev/null; then
8565 if test -s conftest.err; then
8566 ac_cpp_err=$ac_c_preproc_warn_flag
8567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8568 else
8569 ac_cpp_err=
8570 fi
8571else
8572 ac_cpp_err=yes
8573fi
8574if test -z "$ac_cpp_err"; then
8575 ac_header_preproc=yes
8576else
8577 echo "$as_me: failed program was:" >&5
8578sed 's/^/| /' conftest.$ac_ext >&5
8579
8580 ac_header_preproc=no
8581fi
8582
8583rm -f conftest.err conftest.$ac_ext
8584{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8585echo "${ECHO_T}$ac_header_preproc" >&6; }
8586
8587# So? What about this header?
8588case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8589 yes:no: )
8590 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8591echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8593echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8594 ac_header_preproc=yes
8595 ;;
8596 no:yes:* )
8597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8598echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8600echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8601 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8602echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8603 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8604echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8606echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8607 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8608echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8609 ( cat <<\_ASBOX
8610## ------------------------------ ##
8611## Report this to bugs@yourdomain ##
8612## ------------------------------ ##
8613_ASBOX
8614 ) | sed "s/^/$as_me: WARNING: /" >&2
8615 ;;
8616esac
8617{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8619if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8621else
8622 eval "$as_ac_Header=\$ac_header_preproc"
8623fi
8624ac_res=`eval echo '${'$as_ac_Header'}'`
8625 { echo "$as_me:$LINENO: result: $ac_res" >&5
8626echo "${ECHO_T}$ac_res" >&6; }
8627
8628fi
8629if test `eval echo '${'$as_ac_Header'}'` = yes; then
8630 cat >>confdefs.h <<_ACEOF
8631#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8632_ACEOF
8633
8634fi
8635
8636done
8637
8638# Check whether --enable-ltdl-install was given.
8639if test "${enable_ltdl_install+set}" = set; then
8640 enableval=$enable_ltdl_install;
8641fi
8642
8643
8644
8645
8646if test x"${enable_ltdl_install-no}" != xno; then
8647 INSTALL_LTDL_TRUE=
8648 INSTALL_LTDL_FALSE='#'
8649else
8650 INSTALL_LTDL_TRUE='#'
8651 INSTALL_LTDL_FALSE=
8652fi
8653
8654
8655
8656if test x"${enable_ltdl_convenience-no}" != xno; then
8657 CONVENIENCE_LTDL_TRUE=
8658 CONVENIENCE_LTDL_FALSE='#'
8659else
8660 CONVENIENCE_LTDL_TRUE='#'
8661 CONVENIENCE_LTDL_FALSE=
8662fi
8663
8664
8665{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8666echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8667library_names_spec=
8668libname_spec='lib$name'
8669soname_spec=
8670shrext_cmds=".so"
8671postinstall_cmds=
8672postuninstall_cmds=
8673finish_cmds=
8674finish_eval=
8675shlibpath_var=
8676shlibpath_overrides_runpath=unknown
8677version_type=none
8678dynamic_linker="$host_os ld.so"
8679sys_lib_dlsearch_path_spec="/lib /usr/lib"
8680if test "$GCC" = yes; then
8681 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8682 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8683 # if the path contains ";" then we assume it to be the separator
8684 # otherwise default to the standard path separator (i.e. ":") - it is
8685 # assumed that no part of a normal pathname contains ";" but that should
8686 # okay in the real world where ";" in dirpaths is itself problematic.
8687 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8688 else
8689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8690 fi
8691else
8692 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8693fi
8694need_lib_prefix=unknown
8695hardcode_into_libs=no
8696
8697# when you set need_version to no, make sure it does not cause -set_version
8698# flags to be left without arguments
8699need_version=unknown
8700
8701case $host_os in
8702aix3*)
8703 version_type=linux
8704 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8705 shlibpath_var=LIBPATH
8706
8707 # AIX 3 has no versioning support, so we append a major version to the name.
8708 soname_spec='${libname}${release}${shared_ext}$major'
8709 ;;
8710
8711aix4* | aix5*)
8712 version_type=linux
8713 need_lib_prefix=no
8714 need_version=no
8715 hardcode_into_libs=yes
8716 if test "$host_cpu" = ia64; then
8717 # AIX 5 supports IA64
8718 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8719 shlibpath_var=LD_LIBRARY_PATH
8720 else
8721 # With GCC up to 2.95.x, collect2 would create an import file
8722 # for dependence libraries. The import file would start with
8723 # the line `#! .'. This would cause the generated library to
8724 # depend on `.', always an invalid library. This was fixed in
8725 # development snapshots of GCC prior to 3.0.
8726 case $host_os in
8727 aix4 | aix4.[01] | aix4.[01].*)
8728 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8729 echo ' yes '
8730 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8731 :
8732 else
8733 can_build_shared=no
8734 fi
8735 ;;
8736 esac
8737 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8738 # soname into executable. Probably we can add versioning support to
8739 # collect2, so additional links can be useful in future.
8740 if test "$aix_use_runtimelinking" = yes; then
8741 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8742 # instead of lib<name>.a to let people know that these are not
8743 # typical AIX shared libraries.
8744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8745 else
8746 # We preserve .a as extension for shared libraries through AIX4.2
8747 # and later when we are not doing run time linking.
8748 library_names_spec='${libname}${release}.a $libname.a'
8749 soname_spec='${libname}${release}${shared_ext}$major'
8750 fi
8751 shlibpath_var=LIBPATH
8752 fi
8753 ;;
8754
8755amigaos*)
8756 library_names_spec='$libname.ixlibrary $libname.a'
8757 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8758 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'
8759 ;;
8760
8761beos*)
8762 library_names_spec='${libname}${shared_ext}'
8763 dynamic_linker="$host_os ld.so"
8764 shlibpath_var=LIBRARY_PATH
8765 ;;
8766
8767bsdi[45]*)
8768 version_type=linux
8769 need_version=no
8770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8771 soname_spec='${libname}${release}${shared_ext}$major'
8772 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8773 shlibpath_var=LD_LIBRARY_PATH
8774 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8775 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8776 # the default ld.so.conf also contains /usr/contrib/lib and
8777 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8778 # libtool to hard-code these into programs
8779 ;;
8780
8781cygwin* | mingw* | pw32*)
8782 version_type=windows
8783 shrext_cmds=".dll"
8784 need_version=no
8785 need_lib_prefix=no
8786
8787 case $GCC,$host_os in
8788 yes,cygwin* | yes,mingw* | yes,pw32*)
8789 library_names_spec='$libname.dll.a'
8790 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8791 postinstall_cmds='base_file=`basename \${file}`~
8792 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8793 dldir=$destdir/`dirname \$dlpath`~
8794 test -d \$dldir || mkdir -p \$dldir~
8795 $install_prog $dir/$dlname \$dldir/$dlname~
8796 chmod a+x \$dldir/$dlname'
8797 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8798 dlpath=$dir/\$dldll~
8799 $rm \$dlpath'
8800 shlibpath_overrides_runpath=yes
8801
8802 case $host_os in
8803 cygwin*)
8804 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8805 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8806 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8807 ;;
8808 mingw*)
8809 # MinGW DLLs use traditional 'lib' prefix
8810 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8811 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8812 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8813 # It is most probably a Windows format PATH printed by
8814 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8815 # path with ; separators, and with drive letters. We can handle the
8816 # drive letters (cygwin fileutils understands them), so leave them,
8817 # especially as we might pass files found there to a mingw objdump,
8818 # which wouldn't understand a cygwinified path. Ahh.
8819 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8820 else
8821 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8822 fi
8823 ;;
8824 pw32*)
8825 # pw32 DLLs use 'pw' prefix rather than 'lib'
8826 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8827 ;;
8828 esac
8829 ;;
8830
8831 *)
8832 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8833 ;;
8834 esac
8835 dynamic_linker='Win32 ld.exe'
8836 # FIXME: first we should search . and the directory the executable is in
8837 shlibpath_var=PATH
8838 ;;
8839
8840darwin* | rhapsody*)
8841 dynamic_linker="$host_os dyld"
8842 version_type=darwin
8843 need_lib_prefix=no
8844 need_version=no
8845 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8846 soname_spec='${libname}${release}${major}$shared_ext'
8847 shlibpath_overrides_runpath=yes
8848 shlibpath_var=DYLD_LIBRARY_PATH
8849 shrext_cmds='.dylib'
8850 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8851 if test "$GCC" = yes; then
8852 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"`
8853 else
8854 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8855 fi
8856 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8857 ;;
8858
8859dgux*)
8860 version_type=linux
8861 need_lib_prefix=no
8862 need_version=no
8863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8864 soname_spec='${libname}${release}${shared_ext}$major'
8865 shlibpath_var=LD_LIBRARY_PATH
8866 ;;
8867
8868freebsd1*)
8869 dynamic_linker=no
8870 ;;
8871
8872kfreebsd*-gnu)
8873 version_type=linux
8874 need_lib_prefix=no
8875 need_version=no
8876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8877 soname_spec='${libname}${release}${shared_ext}$major'
8878 shlibpath_var=LD_LIBRARY_PATH
8879 shlibpath_overrides_runpath=no
8880 hardcode_into_libs=yes
8881 dynamic_linker='GNU ld.so'
8882 ;;
8883
8884freebsd* | dragonfly*)
8885 # DragonFly does not have aout. When/if they implement a new
8886 # versioning mechanism, adjust this.
8887 if test -x /usr/bin/objformat; then
8888 objformat=`/usr/bin/objformat`
8889 else
8890 case $host_os in
8891 freebsd[123]*) objformat=aout ;;
8892 *) objformat=elf ;;
8893 esac
8894 fi
8895 version_type=freebsd-$objformat
8896 case $version_type in
8897 freebsd-elf*)
8898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8899 need_version=no
8900 need_lib_prefix=no
8901 ;;
8902 freebsd-*)
8903 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8904 need_version=yes
8905 ;;
8906 esac
8907 shlibpath_var=LD_LIBRARY_PATH
8908 case $host_os in
8909 freebsd2*)
8910 shlibpath_overrides_runpath=yes
8911 ;;
8912 freebsd3.[01]* | freebsdelf3.[01]*)
8913 shlibpath_overrides_runpath=yes
8914 hardcode_into_libs=yes
8915 ;;
8916 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8917 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8918 shlibpath_overrides_runpath=no
8919 hardcode_into_libs=yes
8920 ;;
8921 freebsd*) # from 4.6 on
8922 shlibpath_overrides_runpath=yes
8923 hardcode_into_libs=yes
8924 ;;
8925 esac
8926 ;;
8927
8928gnu*)
8929 version_type=linux
8930 need_lib_prefix=no
8931 need_version=no
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8933 soname_spec='${libname}${release}${shared_ext}$major'
8934 shlibpath_var=LD_LIBRARY_PATH
8935 hardcode_into_libs=yes
8936 ;;
8937
8938hpux9* | hpux10* | hpux11*)
8939 # Give a soname corresponding to the major version so that dld.sl refuses to
8940 # link against other versions.
8941 version_type=sunos
8942 need_lib_prefix=no
8943 need_version=no
8944 case $host_cpu in
8945 ia64*)
8946 shrext_cmds='.so'
8947 hardcode_into_libs=yes
8948 dynamic_linker="$host_os dld.so"
8949 shlibpath_var=LD_LIBRARY_PATH
8950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8952 soname_spec='${libname}${release}${shared_ext}$major'
8953 if test "X$HPUX_IA64_MODE" = X32; then
8954 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8955 else
8956 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8957 fi
8958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8959 ;;
8960 hppa*64*)
8961 shrext_cmds='.sl'
8962 hardcode_into_libs=yes
8963 dynamic_linker="$host_os dld.sl"
8964 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8965 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967 soname_spec='${libname}${release}${shared_ext}$major'
8968 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8970 ;;
8971 *)
8972 shrext_cmds='.sl'
8973 dynamic_linker="$host_os dld.sl"
8974 shlibpath_var=SHLIB_PATH
8975 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8977 soname_spec='${libname}${release}${shared_ext}$major'
8978 ;;
8979 esac
8980 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8981 postinstall_cmds='chmod 555 $lib'
8982 ;;
8983
8984interix3*)
8985 version_type=linux
8986 need_lib_prefix=no
8987 need_version=no
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8991 shlibpath_var=LD_LIBRARY_PATH
8992 shlibpath_overrides_runpath=no
8993 hardcode_into_libs=yes
8994 ;;
8995
8996irix5* | irix6* | nonstopux*)
8997 case $host_os in
8998 nonstopux*) version_type=nonstopux ;;
8999 *)
9000 if test "$lt_cv_prog_gnu_ld" = yes; then
9001 version_type=linux
9002 else
9003 version_type=irix
9004 fi ;;
9005 esac
9006 need_lib_prefix=no
9007 need_version=no
9008 soname_spec='${libname}${release}${shared_ext}$major'
9009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9010 case $host_os in
9011 irix5* | nonstopux*)
9012 libsuff= shlibsuff=
9013 ;;
9014 *)
9015 case $LD in # libtool.m4 will add one of these switches to LD
9016 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9017 libsuff= shlibsuff= libmagic=32-bit;;
9018 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9019 libsuff=32 shlibsuff=N32 libmagic=N32;;
9020 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9021 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9022 *) libsuff= shlibsuff= libmagic=never-match;;
9023 esac
9024 ;;
9025 esac
9026 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9027 shlibpath_overrides_runpath=no
9028 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9029 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9030 hardcode_into_libs=yes
9031 ;;
9032
9033# No shared lib support for Linux oldld, aout, or coff.
9034linux*oldld* | linux*aout* | linux*coff*)
9035 dynamic_linker=no
9036 ;;
9037
9038# This must be Linux ELF.
9039linux*)
9040 version_type=linux
9041 need_lib_prefix=no
9042 need_version=no
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9044 soname_spec='${libname}${release}${shared_ext}$major'
9045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9046 shlibpath_var=LD_LIBRARY_PATH
9047 shlibpath_overrides_runpath=no
9048 # This implies no fast_install, which is unacceptable.
9049 # Some rework will be needed to allow for fast_install
9050 # before this can be enabled.
9051 hardcode_into_libs=yes
9052
9053 # Append ld.so.conf contents to the search path
9054 if test -f /etc/ld.so.conf; then
9055 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' ' '`
9056 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9057 fi
9058
9059 # We used to test for /lib/ld.so.1 and disable shared libraries on
9060 # powerpc, because MkLinux only supported shared libraries with the
9061 # GNU dynamic linker. Since this was broken with cross compilers,
9062 # most powerpc-linux boxes support dynamic linking these days and
9063 # people can always --disable-shared, the test was removed, and we
9064 # assume the GNU/Linux dynamic linker is in use.
9065 dynamic_linker='GNU/Linux ld.so'
9066 ;;
9067
9068knetbsd*-gnu)
9069 version_type=linux
9070 need_lib_prefix=no
9071 need_version=no
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9073 soname_spec='${libname}${release}${shared_ext}$major'
9074 shlibpath_var=LD_LIBRARY_PATH
9075 shlibpath_overrides_runpath=no
9076 hardcode_into_libs=yes
9077 dynamic_linker='GNU ld.so'
9078 ;;
9079
9080netbsd*)
9081 version_type=sunos
9082 need_lib_prefix=no
9083 need_version=no
9084 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9087 dynamic_linker='NetBSD (a.out) ld.so'
9088 else
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9090 soname_spec='${libname}${release}${shared_ext}$major'
9091 dynamic_linker='NetBSD ld.elf_so'
9092 fi
9093 shlibpath_var=LD_LIBRARY_PATH
9094 shlibpath_overrides_runpath=yes
9095 hardcode_into_libs=yes
9096 ;;
9097
9098newsos6)
9099 version_type=linux
9100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9101 shlibpath_var=LD_LIBRARY_PATH
9102 shlibpath_overrides_runpath=yes
9103 ;;
9104
9105nto-qnx*)
9106 version_type=linux
9107 need_lib_prefix=no
9108 need_version=no
9109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9110 soname_spec='${libname}${release}${shared_ext}$major'
9111 shlibpath_var=LD_LIBRARY_PATH
9112 shlibpath_overrides_runpath=yes
9113 ;;
9114
9115openbsd*)
9116 version_type=sunos
9117 sys_lib_dlsearch_path_spec="/usr/lib"
9118 need_lib_prefix=no
9119 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9120 case $host_os in
9121 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9122 *) need_version=no ;;
9123 esac
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9126 shlibpath_var=LD_LIBRARY_PATH
9127 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9128 case $host_os in
9129 openbsd2.[89] | openbsd2.[89].*)
9130 shlibpath_overrides_runpath=no
9131 ;;
9132 *)
9133 shlibpath_overrides_runpath=yes
9134 ;;
9135 esac
9136 else
9137 shlibpath_overrides_runpath=yes
9138 fi
9139 ;;
9140
9141os2*)
9142 libname_spec='$name'
9143 shrext_cmds=".dll"
9144 need_lib_prefix=no
9145 library_names_spec='$libname${shared_ext} $libname.a'
9146 dynamic_linker='OS/2 ld.exe'
9147 shlibpath_var=LIBPATH
9148 ;;
9149
9150osf3* | osf4* | osf5*)
9151 version_type=osf
9152 need_lib_prefix=no
9153 need_version=no
9154 soname_spec='${libname}${release}${shared_ext}$major'
9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9156 shlibpath_var=LD_LIBRARY_PATH
9157 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9158 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9159 ;;
9160
9161solaris*)
9162 version_type=linux
9163 need_lib_prefix=no
9164 need_version=no
9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9166 soname_spec='${libname}${release}${shared_ext}$major'
9167 shlibpath_var=LD_LIBRARY_PATH
9168 shlibpath_overrides_runpath=yes
9169 hardcode_into_libs=yes
9170 # ldd complains unless libraries are executable
9171 postinstall_cmds='chmod +x $lib'
9172 ;;
9173
9174sunos4*)
9175 version_type=sunos
9176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9177 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9178 shlibpath_var=LD_LIBRARY_PATH
9179 shlibpath_overrides_runpath=yes
9180 if test "$with_gnu_ld" = yes; then
9181 need_lib_prefix=no
9182 fi
9183 need_version=yes
9184 ;;
9185
9186sysv4 | sysv4.3*)
9187 version_type=linux
9188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9189 soname_spec='${libname}${release}${shared_ext}$major'
9190 shlibpath_var=LD_LIBRARY_PATH
9191 case $host_vendor in
9192 sni)
9193 shlibpath_overrides_runpath=no
9194 need_lib_prefix=no
9195 export_dynamic_flag_spec='${wl}-Blargedynsym'
9196 runpath_var=LD_RUN_PATH
9197 ;;
9198 siemens)
9199 need_lib_prefix=no
9200 ;;
9201 motorola)
9202 need_lib_prefix=no
9203 need_version=no
9204 shlibpath_overrides_runpath=no
9205 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9206 ;;
9207 esac
9208 ;;
9209
9210sysv4*MP*)
9211 if test -d /usr/nec ;then
9212 version_type=linux
9213 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9214 soname_spec='$libname${shared_ext}.$major'
9215 shlibpath_var=LD_LIBRARY_PATH
9216 fi
9217 ;;
9218
9219sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9220 version_type=freebsd-elf
9221 need_lib_prefix=no
9222 need_version=no
9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9224 soname_spec='${libname}${release}${shared_ext}$major'
9225 shlibpath_var=LD_LIBRARY_PATH
9226 hardcode_into_libs=yes
9227 if test "$with_gnu_ld" = yes; then
9228 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9229 shlibpath_overrides_runpath=no
9230 else
9231 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9232 shlibpath_overrides_runpath=yes
9233 case $host_os in
9234 sco3.2v5*)
9235 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9236 ;;
9237 esac
9238 fi
9239 sys_lib_dlsearch_path_spec='/usr/lib'
9240 ;;
9241
9242uts4*)
9243 version_type=linux
9244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9245 soname_spec='${libname}${release}${shared_ext}$major'
9246 shlibpath_var=LD_LIBRARY_PATH
9247 ;;
9248
9249*)
9250 dynamic_linker=no
9251 ;;
9252esac
9253{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9254echo "${ECHO_T}$dynamic_linker" >&6; }
9255test "$dynamic_linker" = no && can_build_shared=no
9256
9257variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9258if test "$GCC" = yes; then
9259 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9260fi
9261
9262
9263{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9264echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9265if test "${libltdl_cv_shlibext+set}" = set; then
9266 echo $ECHO_N "(cached) $ECHO_C" >&6
9267else
9268
9269module=yes
9270eval libltdl_cv_shlibext=$shrext_cmds
9271
9272fi
9273{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9274echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9275if test -n "$libltdl_cv_shlibext"; then
9276
9277cat >>confdefs.h <<_ACEOF
9278#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9279_ACEOF
9280
9281fi
9282
9283
9284{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9285echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9286if test "${libltdl_cv_shlibpath_var+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9288else
9289 libltdl_cv_shlibpath_var="$shlibpath_var"
9290fi
9291{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9292echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9293if test -n "$libltdl_cv_shlibpath_var"; then
9294
9295cat >>confdefs.h <<_ACEOF
9296#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9297_ACEOF
9298
9299fi
9300
9301
9302{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9303echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9304if test "${libltdl_cv_sys_search_path+set}" = set; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
9306else
9307 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9308fi
9309{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9310echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9311if test -n "$libltdl_cv_sys_search_path"; then
9312 sys_search_path=
9313 for dir in $libltdl_cv_sys_search_path; do
9314 if test -z "$sys_search_path"; then
9315 sys_search_path="$dir"
9316 else
9317 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9318 fi
9319 done
9320
9321cat >>confdefs.h <<_ACEOF
9322#define LTDL_SYSSEARCHPATH "$sys_search_path"
9323_ACEOF
9324
9325fi
9326
9327{ echo "$as_me:$LINENO: checking for objdir" >&5
9328echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9329if test "${libltdl_cv_objdir+set}" = set; then
9330 echo $ECHO_N "(cached) $ECHO_C" >&6
9331else
9332 libltdl_cv_objdir="$objdir"
9333 if test -n "$objdir"; then
9334 :
9335 else
9336 rm -f .libs 2>/dev/null
9337 mkdir .libs 2>/dev/null
9338 if test -d .libs; then
9339 libltdl_cv_objdir=.libs
9340 else
9341 # MS-DOS does not allow filenames that begin with a dot.
9342 libltdl_cv_objdir=_libs
9343 fi
9344 rmdir .libs 2>/dev/null
9345 fi
9346
9347fi
9348{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9349echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9350
9351cat >>confdefs.h <<_ACEOF
9352#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9353_ACEOF
9354
9355
9356
9357
9358
9359
9360# Check for command to grab the raw symbol name followed by C symbol from nm.
9361{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9362echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9363if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9364 echo $ECHO_N "(cached) $ECHO_C" >&6
9365else
9366
9367# These are sane defaults that work on at least a few old systems.
9368# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9369
9370# Character class describing NM global symbol codes.
9371symcode='[BCDEGRST]'
9372
9373# Regexp to match symbols that can be accessed directly from C.
9374sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9375
9376# Transform an extracted symbol line into a proper C declaration
9377lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9378
9379# Transform an extracted symbol line into symbol name and symbol address
9380lt_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'"
9381
9382# Define system-specific variables.
9383case $host_os in
9384aix*)
9385 symcode='[BCDT]'
9386 ;;
9387cygwin* | mingw* | pw32*)
9388 symcode='[ABCDGISTW]'
9389 ;;
9390hpux*) # Its linker distinguishes data from code symbols
9391 if test "$host_cpu" = ia64; then
9392 symcode='[ABCDEGRST]'
9393 fi
9394 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9395 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'"
9396 ;;
9397linux*)
9398 if test "$host_cpu" = ia64; then
9399 symcode='[ABCDGIRSTW]'
9400 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9401 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'"
9402 fi
9403 ;;
9404irix* | nonstopux*)
9405 symcode='[BCDEGRST]'
9406 ;;
9407osf*)
9408 symcode='[BCDEGQRST]'
9409 ;;
9410solaris*)
9411 symcode='[BDRT]'
9412 ;;
9413sco3.2v5*)
9414 symcode='[DT]'
9415 ;;
9416sysv4.2uw2*)
9417 symcode='[DT]'
9418 ;;
9419sysv5* | sco5v6* | unixware* | OpenUNIX*)
9420 symcode='[ABDT]'
9421 ;;
9422sysv4)
9423 symcode='[DFNSTU]'
9424 ;;
9425esac
9426
9427# Handle CRLF in mingw tool chain
9428opt_cr=
9429case $build_os in
9430mingw*)
9431 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9432 ;;
9433esac
9434
9435# If we're using GNU nm, then use its standard symbol codes.
9436case `$NM -V 2>&1` in
9437*GNU* | *'with BFD'*)
9438 symcode='[ABCDGIRSTW]' ;;
9439esac
9440
9441# Try without a prefix undercore, then with it.
9442for ac_symprfx in "" "_"; do
9443
9444 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9445 symxfrm="\\1 $ac_symprfx\\2 \\2"
9446
9447 # Write the raw and C identifiers.
9448 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9449
9450 # Check to see that the pipe works correctly.
9451 pipe_works=no
9452
9453 rm -f conftest*
9454 cat > conftest.$ac_ext <<EOF
9455#ifdef __cplusplus
9456extern "C" {
9457#endif
9458char nm_test_var;
9459void nm_test_func(){}
9460#ifdef __cplusplus
9461}
9462#endif
9463int main(){nm_test_var='a';nm_test_func();return(0);}
9464EOF
9465
9466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9467 (eval $ac_compile) 2>&5
9468 ac_status=$?
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; then
9471 # Now try to grab the symbols.
9472 nlist=conftest.nm
9473 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9474 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9475 ac_status=$?
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); } && test -s "$nlist"; then
9478 # Try sorting and uniquifying the output.
9479 if sort "$nlist" | uniq > "$nlist"T; then
9480 mv -f "$nlist"T "$nlist"
9481 else
9482 rm -f "$nlist"T
9483 fi
9484
9485 # Make sure that we snagged all the symbols we need.
9486 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9487 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9488 cat <<EOF > conftest.$ac_ext
9489#ifdef __cplusplus
9490extern "C" {
9491#endif
9492
9493EOF
9494 # Now generate the symbol file.
9495 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9496
9497 cat <<EOF >> conftest.$ac_ext
9498#if defined (__STDC__) && __STDC__
9499# define lt_ptr_t void *
9500#else
9501# define lt_ptr_t char *
9502# define const
9503#endif
9504
9505/* The mapping between symbol names and symbols. */
9506const struct {
9507 const char *name;
9508 lt_ptr_t address;
9509}
9510lt_preloaded_symbols[] =
9511{
9512EOF
9513 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9514 cat <<\EOF >> conftest.$ac_ext
9515 {0, (lt_ptr_t) 0}
9516};
9517
9518#ifdef __cplusplus
9519}
9520#endif
9521EOF
9522 # Now try linking the two files.
9523 mv conftest.$ac_objext conftstm.$ac_objext
9524 lt_save_LIBS="$LIBS"
9525 lt_save_CFLAGS="$CFLAGS"
9526 LIBS="conftstm.$ac_objext"
9527 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9529 (eval $ac_link) 2>&5
9530 ac_status=$?
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9533 pipe_works=yes
9534 fi
9535 LIBS="$lt_save_LIBS"
9536 CFLAGS="$lt_save_CFLAGS"
9537 else
9538 echo "cannot find nm_test_func in $nlist" >&5
9539 fi
9540 else
9541 echo "cannot find nm_test_var in $nlist" >&5
9542 fi
9543 else
9544 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9545 fi
9546 else
9547 echo "$progname: failed program was:" >&5
9548 cat conftest.$ac_ext >&5
9549 fi
9550 rm -f conftest* conftst*
9551
9552 # Do not use the global_symbol_pipe unless it works.
9553 if test "$pipe_works" = yes; then
9554 break
9555 else
9556 lt_cv_sys_global_symbol_pipe=
9557 fi
9558done
9559
9560fi
9561
9562if test -z "$lt_cv_sys_global_symbol_pipe"; then
9563 lt_cv_sys_global_symbol_to_cdecl=
9564fi
9565if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9566 { echo "$as_me:$LINENO: result: failed" >&5
9567echo "${ECHO_T}failed" >&6; }
9568else
9569 { echo "$as_me:$LINENO: result: ok" >&5
9570echo "${ECHO_T}ok" >&6; }
9571fi
9572
9573
9574{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9575echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9576if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9578else
9579 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9580 libltdl_cv_preloaded_symbols=yes
9581 else
9582 libltdl_cv_preloaded_symbols=no
9583 fi
9584
9585fi
9586{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9587echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9588if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9589
9590cat >>confdefs.h <<\_ACEOF
9591#define HAVE_PRELOADED_SYMBOLS 1
9592_ACEOF
9593
9594fi
9595
9596LIBADD_DL=
9597
9598ac_ext=c
9599ac_cpp='$CPP $CPPFLAGS'
9600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9602ac_compiler_gnu=$ac_cv_c_compiler_gnu
9603
9604
9605{ echo "$as_me:$LINENO: checking for shl_load" >&5
9606echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9607if test "${ac_cv_func_shl_load+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9609else
9610 cat >conftest.$ac_ext <<_ACEOF
9611/* confdefs.h. */
9612_ACEOF
9613cat confdefs.h >>conftest.$ac_ext
9614cat >>conftest.$ac_ext <<_ACEOF
9615/* end confdefs.h. */
9616/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9618#define shl_load innocuous_shl_load
9619
9620/* System header to define __stub macros and hopefully few prototypes,
9621 which can conflict with char shl_load (); below.
9622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9623 <limits.h> exists even on freestanding compilers. */
9624
9625#ifdef __STDC__
9626# include <limits.h>
9627#else
9628# include <assert.h>
9629#endif
9630
9631#undef shl_load
9632
9633/* Override any GCC internal prototype to avoid an error.
9634 Use char because int might match the return type of a GCC
9635 builtin and then its argument prototype would still apply. */
9636#ifdef __cplusplus
9637extern "C"
9638#endif
9639char shl_load ();
9640/* The GNU C library defines this for functions which it implements
9641 to always fail with ENOSYS. Some functions are actually named
9642 something starting with __ and the normal name is an alias. */
9643#if defined __stub_shl_load || defined __stub___shl_load
9644choke me
9645#endif
9646
9647int
9648main ()
9649{
9650return shl_load ();
9651 ;
9652 return 0;
9653}
9654_ACEOF
9655rm -f conftest.$ac_objext conftest$ac_exeext
9656if { (ac_try="$ac_link"
9657case "(($ac_try" in
9658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659 *) ac_try_echo=$ac_try;;
9660esac
9661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9662 (eval "$ac_link") 2>conftest.er1
9663 ac_status=$?
9664 grep -v '^ *+' conftest.er1 >conftest.err
9665 rm -f conftest.er1
9666 cat conftest.err >&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } &&
9669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9670 { (case "(($ac_try" in
9671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9672 *) ac_try_echo=$ac_try;;
9673esac
9674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9675 (eval "$ac_try") 2>&5
9676 ac_status=$?
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; } &&
9679 { ac_try='test -s conftest$ac_exeext'
9680 { (case "(($ac_try" in
9681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9682 *) ac_try_echo=$ac_try;;
9683esac
9684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9685 (eval "$ac_try") 2>&5
9686 ac_status=$?
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; }; then
9689 ac_cv_func_shl_load=yes
9690else
9691 echo "$as_me: failed program was:" >&5
9692sed 's/^/| /' conftest.$ac_ext >&5
9693
9694 ac_cv_func_shl_load=no
9695fi
9696
9697rm -f core conftest.err conftest.$ac_objext \
9698 conftest$ac_exeext conftest.$ac_ext
9699fi
9700{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9701echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9702if test $ac_cv_func_shl_load = yes; then
9703
9704cat >>confdefs.h <<\_ACEOF
9705#define HAVE_SHL_LOAD 1
9706_ACEOF
9707
9708else
9709 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9710echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9711if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9713else
9714 ac_check_lib_save_LIBS=$LIBS
9715LIBS="-ldld $LIBS"
9716cat >conftest.$ac_ext <<_ACEOF
9717/* confdefs.h. */
9718_ACEOF
9719cat confdefs.h >>conftest.$ac_ext
9720cat >>conftest.$ac_ext <<_ACEOF
9721/* end confdefs.h. */
9722
9723/* Override any GCC internal prototype to avoid an error.
9724 Use char because int might match the return type of a GCC
9725 builtin and then its argument prototype would still apply. */
9726#ifdef __cplusplus
9727extern "C"
9728#endif
9729char shl_load ();
9730int
9731main ()
9732{
9733return shl_load ();
9734 ;
9735 return 0;
9736}
9737_ACEOF
9738rm -f conftest.$ac_objext conftest$ac_exeext
9739if { (ac_try="$ac_link"
9740case "(($ac_try" in
9741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9742 *) ac_try_echo=$ac_try;;
9743esac
9744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9745 (eval "$ac_link") 2>conftest.er1
9746 ac_status=$?
9747 grep -v '^ *+' conftest.er1 >conftest.err
9748 rm -f conftest.er1
9749 cat conftest.err >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } &&
9752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9753 { (case "(($ac_try" in
9754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9755 *) ac_try_echo=$ac_try;;
9756esac
9757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9758 (eval "$ac_try") 2>&5
9759 ac_status=$?
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); }; } &&
9762 { ac_try='test -s conftest$ac_exeext'
9763 { (case "(($ac_try" in
9764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9766esac
9767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768 (eval "$ac_try") 2>&5
9769 ac_status=$?
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; }; then
9772 ac_cv_lib_dld_shl_load=yes
9773else
9774 echo "$as_me: failed program was:" >&5
9775sed 's/^/| /' conftest.$ac_ext >&5
9776
9777 ac_cv_lib_dld_shl_load=no
9778fi
9779
9780rm -f core conftest.err conftest.$ac_objext \
9781 conftest$ac_exeext conftest.$ac_ext
9782LIBS=$ac_check_lib_save_LIBS
9783fi
9784{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9785echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9786if test $ac_cv_lib_dld_shl_load = yes; then
9787
9788cat >>confdefs.h <<\_ACEOF
9789#define HAVE_SHL_LOAD 1
9790_ACEOF
9791
9792 LIBADD_DL="$LIBADD_DL -ldld"
9793else
9794 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9795echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9796if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9797 echo $ECHO_N "(cached) $ECHO_C" >&6
9798else
9799 ac_check_lib_save_LIBS=$LIBS
9800LIBS="-ldl $LIBS"
9801cat >conftest.$ac_ext <<_ACEOF
9802/* confdefs.h. */
9803_ACEOF
9804cat confdefs.h >>conftest.$ac_ext
9805cat >>conftest.$ac_ext <<_ACEOF
9806/* end confdefs.h. */
9807
9808/* Override any GCC internal prototype to avoid an error.
9809 Use char because int might match the return type of a GCC
9810 builtin and then its argument prototype would still apply. */
9811#ifdef __cplusplus
9812extern "C"
9813#endif
9814char dlopen ();
9815int
9816main ()
9817{
9818return dlopen ();
9819 ;
9820 return 0;
9821}
9822_ACEOF
9823rm -f conftest.$ac_objext conftest$ac_exeext
9824if { (ac_try="$ac_link"
9825case "(($ac_try" in
9826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9827 *) ac_try_echo=$ac_try;;
9828esac
9829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9830 (eval "$ac_link") 2>conftest.er1
9831 ac_status=$?
9832 grep -v '^ *+' conftest.er1 >conftest.err
9833 rm -f conftest.er1
9834 cat conftest.err >&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); } &&
9837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9838 { (case "(($ac_try" in
9839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9840 *) ac_try_echo=$ac_try;;
9841esac
9842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9843 (eval "$ac_try") 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; } &&
9847 { ac_try='test -s conftest$ac_exeext'
9848 { (case "(($ac_try" in
9849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850 *) ac_try_echo=$ac_try;;
9851esac
9852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9853 (eval "$ac_try") 2>&5
9854 ac_status=$?
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; }; then
9857 ac_cv_lib_dl_dlopen=yes
9858else
9859 echo "$as_me: failed program was:" >&5
9860sed 's/^/| /' conftest.$ac_ext >&5
9861
9862 ac_cv_lib_dl_dlopen=no
9863fi
9864
9865rm -f core conftest.err conftest.$ac_objext \
9866 conftest$ac_exeext conftest.$ac_ext
9867LIBS=$ac_check_lib_save_LIBS
9868fi
9869{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9870echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9871if test $ac_cv_lib_dl_dlopen = yes; then
9872
9873cat >>confdefs.h <<\_ACEOF
9874#define HAVE_LIBDL 1
9875_ACEOF
9876
9877 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9878else
9879 cat >conftest.$ac_ext <<_ACEOF
9880/* confdefs.h. */
9881_ACEOF
9882cat confdefs.h >>conftest.$ac_ext
9883cat >>conftest.$ac_ext <<_ACEOF
9884/* end confdefs.h. */
9885#if HAVE_DLFCN_H
9886# include <dlfcn.h>
9887#endif
9888
9889int
9890main ()
9891{
9892dlopen(0, 0);
9893 ;
9894 return 0;
9895}
9896_ACEOF
9897rm -f conftest.$ac_objext conftest$ac_exeext
9898if { (ac_try="$ac_link"
9899case "(($ac_try" in
9900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9901 *) ac_try_echo=$ac_try;;
9902esac
9903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904 (eval "$ac_link") 2>conftest.er1
9905 ac_status=$?
9906 grep -v '^ *+' conftest.er1 >conftest.err
9907 rm -f conftest.er1
9908 cat conftest.err >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } &&
9911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9912 { (case "(($ac_try" in
9913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914 *) ac_try_echo=$ac_try;;
9915esac
9916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917 (eval "$ac_try") 2>&5
9918 ac_status=$?
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; } &&
9921 { ac_try='test -s conftest$ac_exeext'
9922 { (case "(($ac_try" in
9923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924 *) ac_try_echo=$ac_try;;
9925esac
9926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9927 (eval "$ac_try") 2>&5
9928 ac_status=$?
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; }; then
9931
9932cat >>confdefs.h <<\_ACEOF
9933#define HAVE_LIBDL 1
9934_ACEOF
9935 libltdl_cv_func_dlopen="yes"
9936else
9937 echo "$as_me: failed program was:" >&5
9938sed 's/^/| /' conftest.$ac_ext >&5
9939
9940 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9941echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9942if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
9944else
9945 ac_check_lib_save_LIBS=$LIBS
9946LIBS="-lsvld $LIBS"
9947cat >conftest.$ac_ext <<_ACEOF
9948/* confdefs.h. */
9949_ACEOF
9950cat confdefs.h >>conftest.$ac_ext
9951cat >>conftest.$ac_ext <<_ACEOF
9952/* end confdefs.h. */
9953
9954/* Override any GCC internal prototype to avoid an error.
9955 Use char because int might match the return type of a GCC
9956 builtin and then its argument prototype would still apply. */
9957#ifdef __cplusplus
9958extern "C"
9959#endif
9960char dlopen ();
9961int
9962main ()
9963{
9964return dlopen ();
9965 ;
9966 return 0;
9967}
9968_ACEOF
9969rm -f conftest.$ac_objext conftest$ac_exeext
9970if { (ac_try="$ac_link"
9971case "(($ac_try" in
9972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973 *) ac_try_echo=$ac_try;;
9974esac
9975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976 (eval "$ac_link") 2>conftest.er1
9977 ac_status=$?
9978 grep -v '^ *+' conftest.er1 >conftest.err
9979 rm -f conftest.er1
9980 cat conftest.err >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } &&
9983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9984 { (case "(($ac_try" in
9985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986 *) ac_try_echo=$ac_try;;
9987esac
9988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989 (eval "$ac_try") 2>&5
9990 ac_status=$?
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); }; } &&
9993 { ac_try='test -s conftest$ac_exeext'
9994 { (case "(($ac_try" in
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9997esac
9998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999 (eval "$ac_try") 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; }; then
10003 ac_cv_lib_svld_dlopen=yes
10004else
10005 echo "$as_me: failed program was:" >&5
10006sed 's/^/| /' conftest.$ac_ext >&5
10007
10008 ac_cv_lib_svld_dlopen=no
10009fi
10010
10011rm -f core conftest.err conftest.$ac_objext \
10012 conftest$ac_exeext conftest.$ac_ext
10013LIBS=$ac_check_lib_save_LIBS
10014fi
10015{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10016echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10017if test $ac_cv_lib_svld_dlopen = yes; then
10018
10019cat >>confdefs.h <<\_ACEOF
10020#define HAVE_LIBDL 1
10021_ACEOF
10022
10023 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10024else
10025 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10026echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10027if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10028 echo $ECHO_N "(cached) $ECHO_C" >&6
10029else
10030 ac_check_lib_save_LIBS=$LIBS
10031LIBS="-ldld $LIBS"
10032cat >conftest.$ac_ext <<_ACEOF
10033/* confdefs.h. */
10034_ACEOF
10035cat confdefs.h >>conftest.$ac_ext
10036cat >>conftest.$ac_ext <<_ACEOF
10037/* end confdefs.h. */
10038
10039/* Override any GCC internal prototype to avoid an error.
10040 Use char because int might match the return type of a GCC
10041 builtin and then its argument prototype would still apply. */
10042#ifdef __cplusplus
10043extern "C"
10044#endif
10045char dld_link ();
10046int
10047main ()
10048{
10049return dld_link ();
10050 ;
10051 return 0;
10052}
10053_ACEOF
10054rm -f conftest.$ac_objext conftest$ac_exeext
10055if { (ac_try="$ac_link"
10056case "(($ac_try" in
10057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10058 *) ac_try_echo=$ac_try;;
10059esac
10060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10061 (eval "$ac_link") 2>conftest.er1
10062 ac_status=$?
10063 grep -v '^ *+' conftest.er1 >conftest.err
10064 rm -f conftest.er1
10065 cat conftest.err >&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); } &&
10068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10069 { (case "(($ac_try" in
10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10072esac
10073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074 (eval "$ac_try") 2>&5
10075 ac_status=$?
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); }; } &&
10078 { ac_try='test -s conftest$ac_exeext'
10079 { (case "(($ac_try" in
10080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10081 *) ac_try_echo=$ac_try;;
10082esac
10083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084 (eval "$ac_try") 2>&5
10085 ac_status=$?
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; }; then
10088 ac_cv_lib_dld_dld_link=yes
10089else
10090 echo "$as_me: failed program was:" >&5
10091sed 's/^/| /' conftest.$ac_ext >&5
10092
10093 ac_cv_lib_dld_dld_link=no
10094fi
10095
10096rm -f core conftest.err conftest.$ac_objext \
10097 conftest$ac_exeext conftest.$ac_ext
10098LIBS=$ac_check_lib_save_LIBS
10099fi
10100{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10101echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10102if test $ac_cv_lib_dld_dld_link = yes; then
10103
10104cat >>confdefs.h <<\_ACEOF
10105#define HAVE_DLD 1
10106_ACEOF
10107
10108 LIBADD_DL="$LIBADD_DL -ldld"
10109else
10110 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10111echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10112if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10114else
10115 cat >conftest.$ac_ext <<_ACEOF
10116/* confdefs.h. */
10117_ACEOF
10118cat confdefs.h >>conftest.$ac_ext
10119cat >>conftest.$ac_ext <<_ACEOF
10120/* end confdefs.h. */
10121/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10123#define _dyld_func_lookup innocuous__dyld_func_lookup
10124
10125/* System header to define __stub macros and hopefully few prototypes,
10126 which can conflict with char _dyld_func_lookup (); below.
10127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10128 <limits.h> exists even on freestanding compilers. */
10129
10130#ifdef __STDC__
10131# include <limits.h>
10132#else
10133# include <assert.h>
10134#endif
10135
10136#undef _dyld_func_lookup
10137
10138/* Override any GCC internal prototype to avoid an error.
10139 Use char because int might match the return type of a GCC
10140 builtin and then its argument prototype would still apply. */
10141#ifdef __cplusplus
10142extern "C"
10143#endif
10144char _dyld_func_lookup ();
10145/* The GNU C library defines this for functions which it implements
10146 to always fail with ENOSYS. Some functions are actually named
10147 something starting with __ and the normal name is an alias. */
10148#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10149choke me
10150#endif
10151
10152int
10153main ()
10154{
10155return _dyld_func_lookup ();
10156 ;
10157 return 0;
10158}
10159_ACEOF
10160rm -f conftest.$ac_objext conftest$ac_exeext
10161if { (ac_try="$ac_link"
10162case "(($ac_try" in
10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10165esac
10166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167 (eval "$ac_link") 2>conftest.er1
10168 ac_status=$?
10169 grep -v '^ *+' conftest.er1 >conftest.err
10170 rm -f conftest.er1
10171 cat conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } &&
10174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10175 { (case "(($ac_try" in
10176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177 *) ac_try_echo=$ac_try;;
10178esac
10179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180 (eval "$ac_try") 2>&5
10181 ac_status=$?
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; } &&
10184 { ac_try='test -s conftest$ac_exeext'
10185 { (case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10188esac
10189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_try") 2>&5
10191 ac_status=$?
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; }; then
10194 ac_cv_func__dyld_func_lookup=yes
10195else
10196 echo "$as_me: failed program was:" >&5
10197sed 's/^/| /' conftest.$ac_ext >&5
10198
10199 ac_cv_func__dyld_func_lookup=no
10200fi
10201
10202rm -f core conftest.err conftest.$ac_objext \
10203 conftest$ac_exeext conftest.$ac_ext
10204fi
10205{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10206echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10207if test $ac_cv_func__dyld_func_lookup = yes; then
10208
10209cat >>confdefs.h <<\_ACEOF
10210#define HAVE_DYLD 1
10211_ACEOF
10212
10213fi
10214
10215
10216fi
10217
10218
10219fi
10220
10221
10222fi
10223
10224rm -f core conftest.err conftest.$ac_objext \
10225 conftest$ac_exeext conftest.$ac_ext
10226
10227fi
10228
10229
10230fi
10231
10232
10233fi
10234
10235
10236if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10237then
10238 lt_save_LIBS="$LIBS"
10239 LIBS="$LIBS $LIBADD_DL"
10240
10241for ac_func in dlerror
10242do
10243as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10244{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10245echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10246if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10248else
10249 cat >conftest.$ac_ext <<_ACEOF
10250/* confdefs.h. */
10251_ACEOF
10252cat confdefs.h >>conftest.$ac_ext
10253cat >>conftest.$ac_ext <<_ACEOF
10254/* end confdefs.h. */
10255/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10257#define $ac_func innocuous_$ac_func
10258
10259/* System header to define __stub macros and hopefully few prototypes,
10260 which can conflict with char $ac_func (); below.
10261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10262 <limits.h> exists even on freestanding compilers. */
10263
10264#ifdef __STDC__
10265# include <limits.h>
10266#else
10267# include <assert.h>
10268#endif
10269
10270#undef $ac_func
10271
10272/* Override any GCC internal prototype to avoid an error.
10273 Use char because int might match the return type of a GCC
10274 builtin and then its argument prototype would still apply. */
10275#ifdef __cplusplus
10276extern "C"
10277#endif
10278char $ac_func ();
10279/* The GNU C library defines this for functions which it implements
10280 to always fail with ENOSYS. Some functions are actually named
10281 something starting with __ and the normal name is an alias. */
10282#if defined __stub_$ac_func || defined __stub___$ac_func
10283choke me
10284#endif
10285
10286int
10287main ()
10288{
10289return $ac_func ();
10290 ;
10291 return 0;
10292}
10293_ACEOF
10294rm -f conftest.$ac_objext conftest$ac_exeext
10295if { (ac_try="$ac_link"
10296case "(($ac_try" in
10297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298 *) ac_try_echo=$ac_try;;
10299esac
10300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10301 (eval "$ac_link") 2>conftest.er1
10302 ac_status=$?
10303 grep -v '^ *+' conftest.er1 >conftest.err
10304 rm -f conftest.er1
10305 cat conftest.err >&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); } &&
10308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10309 { (case "(($ac_try" in
10310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10311 *) ac_try_echo=$ac_try;;
10312esac
10313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10314 (eval "$ac_try") 2>&5
10315 ac_status=$?
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; } &&
10318 { ac_try='test -s conftest$ac_exeext'
10319 { (case "(($ac_try" in
10320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321 *) ac_try_echo=$ac_try;;
10322esac
10323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10324 (eval "$ac_try") 2>&5
10325 ac_status=$?
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); }; }; then
10328 eval "$as_ac_var=yes"
10329else
10330 echo "$as_me: failed program was:" >&5
10331sed 's/^/| /' conftest.$ac_ext >&5
10332
10333 eval "$as_ac_var=no"
10334fi
10335
10336rm -f core conftest.err conftest.$ac_objext \
10337 conftest$ac_exeext conftest.$ac_ext
10338fi
10339ac_res=`eval echo '${'$as_ac_var'}'`
10340 { echo "$as_me:$LINENO: result: $ac_res" >&5
10341echo "${ECHO_T}$ac_res" >&6; }
10342if test `eval echo '${'$as_ac_var'}'` = yes; then
10343 cat >>confdefs.h <<_ACEOF
10344#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10345_ACEOF
10346
10347fi
10348done
10349
10350 LIBS="$lt_save_LIBS"
10351fi
10352ac_ext=c
10353ac_cpp='$CPP $CPPFLAGS'
10354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10356ac_compiler_gnu=$ac_cv_c_compiler_gnu
10357
10358
10359
10360{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10361echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10362if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10363 echo $ECHO_N "(cached) $ECHO_C" >&6
10364else
10365 ac_cv_sys_symbol_underscore=no
10366 cat > conftest.$ac_ext <<EOF
10367void nm_test_func(){}
10368int main(){nm_test_func;return 0;}
10369EOF
10370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10371 (eval $ac_compile) 2>&5
10372 ac_status=$?
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); }; then
10375 # Now try to grab the symbols.
10376 ac_nlist=conftest.nm
10377 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10378 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10379 ac_status=$?
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); } && test -s "$ac_nlist"; then
10382 # See whether the symbols have a leading underscore.
10383 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10384 ac_cv_sys_symbol_underscore=yes
10385 else
10386 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10387 :
10388 else
10389 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10390 fi
10391 fi
10392 else
10393 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10394 fi
10395 else
10396 echo "configure: failed program was:" >&5
10397 cat conftest.c >&5
10398 fi
10399 rm -rf conftest*
10400
10401fi
10402{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10403echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10404
10405
10406if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10407 if test x"$libltdl_cv_func_dlopen" = xyes ||
10408 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10409 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10410echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10411if test "${libltdl_cv_need_uscore+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10413else
10414 libltdl_cv_need_uscore=unknown
10415 save_LIBS="$LIBS"
10416 LIBS="$LIBS $LIBADD_DL"
10417 if test "$cross_compiling" = yes; then :
10418 libltdl_cv_need_uscore=cross
10419else
10420 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10421 lt_status=$lt_dlunknown
10422 cat > conftest.$ac_ext <<EOF
10423#line 10423 "configure"
10424#include "confdefs.h"
10425
10426#if HAVE_DLFCN_H
10427#include <dlfcn.h>
10428#endif
10429
10430#include <stdio.h>
10431
10432#ifdef RTLD_GLOBAL
10433# define LT_DLGLOBAL RTLD_GLOBAL
10434#else
10435# ifdef DL_GLOBAL
10436# define LT_DLGLOBAL DL_GLOBAL
10437# else
10438# define LT_DLGLOBAL 0
10439# endif
10440#endif
10441
10442/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10443 find out it does not work in some platform. */
10444#ifndef LT_DLLAZY_OR_NOW
10445# ifdef RTLD_LAZY
10446# define LT_DLLAZY_OR_NOW RTLD_LAZY
10447# else
10448# ifdef DL_LAZY
10449# define LT_DLLAZY_OR_NOW DL_LAZY
10450# else
10451# ifdef RTLD_NOW
10452# define LT_DLLAZY_OR_NOW RTLD_NOW
10453# else
10454# ifdef DL_NOW
10455# define LT_DLLAZY_OR_NOW DL_NOW
10456# else
10457# define LT_DLLAZY_OR_NOW 0
10458# endif
10459# endif
10460# endif
10461# endif
10462#endif
10463
10464#ifdef __cplusplus
10465extern "C" void exit (int);
10466#endif
10467
10468void fnord() { int i=42;}
10469int main ()
10470{
10471 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10472 int status = $lt_dlunknown;
10473
10474 if (self)
10475 {
10476 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10477 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10478 /* dlclose (self); */
10479 }
10480 else
10481 puts (dlerror ());
10482
10483 exit (status);
10484}
10485EOF
10486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10487 (eval $ac_link) 2>&5
10488 ac_status=$?
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10491 (./conftest; exit; ) >&5 2>/dev/null
10492 lt_status=$?
10493 case x$lt_status in
10494 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10495 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10496 x$lt_dlunknown|x*) ;;
10497 esac
10498 else :
10499 # compilation failed
10500
10501 fi
10502fi
10503rm -fr conftest*
10504
10505 LIBS="$save_LIBS"
10506
10507fi
10508{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10509echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10510 fi
10511fi
10512
10513if test x"$libltdl_cv_need_uscore" = xyes; then
10514
10515cat >>confdefs.h <<\_ACEOF
10516#define NEED_USCORE 1
10517_ACEOF
10518
10519fi
10520
10521
10522{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10523echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10524if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10526else
10527 # PORTME does your system automatically load deplibs for dlopen?
10528 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10529 # For now, we just catch OSes we know something about -- in the
10530 # future, we'll try test this programmatically.
10531 libltdl_cv_sys_dlopen_deplibs=unknown
10532 case "$host_os" in
10533 aix3*|aix4.1.*|aix4.2.*)
10534 # Unknown whether this is true for these versions of AIX, but
10535 # we want this `case' here to explicitly catch those versions.
10536 libltdl_cv_sys_dlopen_deplibs=unknown
10537 ;;
10538 aix[45]*)
10539 libltdl_cv_sys_dlopen_deplibs=yes
10540 ;;
10541 darwin*)
10542 # Assuming the user has installed a libdl from somewhere, this is true
10543 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10544 libltdl_cv_sys_dlopen_deplibs=yes
10545 ;;
10546 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10547 # GNU and its variants, using gnu ld.so (Glibc)
10548 libltdl_cv_sys_dlopen_deplibs=yes
10549 ;;
10550 hpux10*|hpux11*)
10551 libltdl_cv_sys_dlopen_deplibs=yes
10552 ;;
10553 interix*)
10554 libltdl_cv_sys_dlopen_deplibs=yes
10555 ;;
10556 irix[12345]*|irix6.[01]*)
10557 # Catch all versions of IRIX before 6.2, and indicate that we don't
10558 # know how it worked for any of those versions.
10559 libltdl_cv_sys_dlopen_deplibs=unknown
10560 ;;
10561 irix*)
10562 # The case above catches anything before 6.2, and it's known that
10563 # at 6.2 and later dlopen does load deplibs.
10564 libltdl_cv_sys_dlopen_deplibs=yes
10565 ;;
10566 netbsd*)
10567 libltdl_cv_sys_dlopen_deplibs=yes
10568 ;;
10569 openbsd*)
10570 libltdl_cv_sys_dlopen_deplibs=yes
10571 ;;
10572 osf[1234]*)
10573 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10574 # it did *not* use an RPATH in a shared library to find objects the
10575 # library depends on, so we explicitly say `no'.
10576 libltdl_cv_sys_dlopen_deplibs=no
10577 ;;
10578 osf5.0|osf5.0a|osf5.1)
10579 # dlopen *does* load deplibs and with the right loader patch applied
10580 # it even uses RPATH in a shared library to search for shared objects
10581 # that the library depends on, but there's no easy way to know if that
10582 # patch is installed. Since this is the case, all we can really
10583 # say is unknown -- it depends on the patch being installed. If
10584 # it is, this changes to `yes'. Without it, it would be `no'.
10585 libltdl_cv_sys_dlopen_deplibs=unknown
10586 ;;
10587 osf*)
10588 # the two cases above should catch all versions of osf <= 5.1. Read
10589 # the comments above for what we know about them.
10590 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10591 # is used to find them so we can finally say `yes'.
10592 libltdl_cv_sys_dlopen_deplibs=yes
10593 ;;
10594 solaris*)
10595 libltdl_cv_sys_dlopen_deplibs=yes
10596 ;;
10597 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10598 libltdl_cv_sys_dlopen_deplibs=yes
10599 ;;
10600 esac
10601
10602fi
10603{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10604echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10605if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10606
10607cat >>confdefs.h <<\_ACEOF
10608#define LTDL_DLOPEN_DEPLIBS 1
10609_ACEOF
10610
10611fi
10612
10613
10614for ac_header in argz.h
10615do
10616as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10617if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10618 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10620if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10622fi
10623ac_res=`eval echo '${'$as_ac_Header'}'`
10624 { echo "$as_me:$LINENO: result: $ac_res" >&5
10625echo "${ECHO_T}$ac_res" >&6; }
10626else
10627 # Is the header compilable?
10628{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10629echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10630cat >conftest.$ac_ext <<_ACEOF
10631/* confdefs.h. */
10632_ACEOF
10633cat confdefs.h >>conftest.$ac_ext
10634cat >>conftest.$ac_ext <<_ACEOF
10635/* end confdefs.h. */
10636$ac_includes_default
10637#include <$ac_header>
10638_ACEOF
10639rm -f conftest.$ac_objext
10640if { (ac_try="$ac_compile"
10641case "(($ac_try" in
10642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10643 *) ac_try_echo=$ac_try;;
10644esac
10645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10646 (eval "$ac_compile") 2>conftest.er1
10647 ac_status=$?
10648 grep -v '^ *+' conftest.er1 >conftest.err
10649 rm -f conftest.er1
10650 cat conftest.err >&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } &&
10653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10654 { (case "(($ac_try" in
10655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10656 *) ac_try_echo=$ac_try;;
10657esac
10658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10659 (eval "$ac_try") 2>&5
10660 ac_status=$?
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; } &&
10663 { ac_try='test -s conftest.$ac_objext'
10664 { (case "(($ac_try" in
10665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666 *) ac_try_echo=$ac_try;;
10667esac
10668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10669 (eval "$ac_try") 2>&5
10670 ac_status=$?
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; }; then
10673 ac_header_compiler=yes
10674else
10675 echo "$as_me: failed program was:" >&5
10676sed 's/^/| /' conftest.$ac_ext >&5
10677
10678 ac_header_compiler=no
10679fi
10680
10681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10682{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10683echo "${ECHO_T}$ac_header_compiler" >&6; }
10684
10685# Is the header present?
10686{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10687echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10688cat >conftest.$ac_ext <<_ACEOF
10689/* confdefs.h. */
10690_ACEOF
10691cat confdefs.h >>conftest.$ac_ext
10692cat >>conftest.$ac_ext <<_ACEOF
10693/* end confdefs.h. */
10694#include <$ac_header>
10695_ACEOF
10696if { (ac_try="$ac_cpp conftest.$ac_ext"
10697case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10700esac
10701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10703 ac_status=$?
10704 grep -v '^ *+' conftest.er1 >conftest.err
10705 rm -f conftest.er1
10706 cat conftest.err >&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } >/dev/null; then
10709 if test -s conftest.err; then
10710 ac_cpp_err=$ac_c_preproc_warn_flag
10711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10712 else
10713 ac_cpp_err=
10714 fi
10715else
10716 ac_cpp_err=yes
10717fi
10718if test -z "$ac_cpp_err"; then
10719 ac_header_preproc=yes
10720else
10721 echo "$as_me: failed program was:" >&5
10722sed 's/^/| /' conftest.$ac_ext >&5
10723
10724 ac_header_preproc=no
10725fi
10726
10727rm -f conftest.err conftest.$ac_ext
10728{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10729echo "${ECHO_T}$ac_header_preproc" >&6; }
10730
10731# So? What about this header?
10732case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10733 yes:no: )
10734 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10735echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10737echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10738 ac_header_preproc=yes
10739 ;;
10740 no:yes:* )
10741 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10742echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10743 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10744echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10745 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10746echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10747 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10748echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10750echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10751 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10752echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10753 ( cat <<\_ASBOX
10754## ------------------------------ ##
10755## Report this to bugs@yourdomain ##
10756## ------------------------------ ##
10757_ASBOX
10758 ) | sed "s/^/$as_me: WARNING: /" >&2
10759 ;;
10760esac
10761{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
10765else
10766 eval "$as_ac_Header=\$ac_header_preproc"
10767fi
10768ac_res=`eval echo '${'$as_ac_Header'}'`
10769 { echo "$as_me:$LINENO: result: $ac_res" >&5
10770echo "${ECHO_T}$ac_res" >&6; }
10771
10772fi
10773if test `eval echo '${'$as_ac_Header'}'` = yes; then
10774 cat >>confdefs.h <<_ACEOF
10775#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10776_ACEOF
10777
10778fi
10779
10780done
10781
10782
10783{ echo "$as_me:$LINENO: checking for error_t" >&5
10784echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10785if test "${ac_cv_type_error_t+set}" = set; then
10786 echo $ECHO_N "(cached) $ECHO_C" >&6
10787else
10788 cat >conftest.$ac_ext <<_ACEOF
10789/* confdefs.h. */
10790_ACEOF
10791cat confdefs.h >>conftest.$ac_ext
10792cat >>conftest.$ac_ext <<_ACEOF
10793/* end confdefs.h. */
10794#if HAVE_ARGZ_H
10795# include <argz.h>
10796#endif
10797
10798typedef error_t ac__type_new_;
10799int
10800main ()
10801{
10802if ((ac__type_new_ *) 0)
10803 return 0;
10804if (sizeof (ac__type_new_))
10805 return 0;
10806 ;
10807 return 0;
10808}
10809_ACEOF
10810rm -f conftest.$ac_objext
10811if { (ac_try="$ac_compile"
10812case "(($ac_try" in
10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 *) ac_try_echo=$ac_try;;
10815esac
10816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817 (eval "$ac_compile") 2>conftest.er1
10818 ac_status=$?
10819 grep -v '^ *+' conftest.er1 >conftest.err
10820 rm -f conftest.er1
10821 cat conftest.err >&5
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); } &&
10824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10825 { (case "(($ac_try" in
10826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827 *) ac_try_echo=$ac_try;;
10828esac
10829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830 (eval "$ac_try") 2>&5
10831 ac_status=$?
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); }; } &&
10834 { ac_try='test -s conftest.$ac_objext'
10835 { (case "(($ac_try" in
10836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10837 *) ac_try_echo=$ac_try;;
10838esac
10839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10840 (eval "$ac_try") 2>&5
10841 ac_status=$?
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); }; }; then
10844 ac_cv_type_error_t=yes
10845else
10846 echo "$as_me: failed program was:" >&5
10847sed 's/^/| /' conftest.$ac_ext >&5
10848
10849 ac_cv_type_error_t=no
10850fi
10851
10852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10853fi
10854{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10855echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10856if test $ac_cv_type_error_t = yes; then
10857
10858cat >>confdefs.h <<_ACEOF
10859#define HAVE_ERROR_T 1
10860_ACEOF
10861
10862
10863else
10864
10865cat >>confdefs.h <<\_ACEOF
10866#define error_t int
10867_ACEOF
10868
10869fi
10870
10871
10872
10873
10874
10875
10876
10877for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10878do
10879as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10880{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10881echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10882if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10884else
10885 cat >conftest.$ac_ext <<_ACEOF
10886/* confdefs.h. */
10887_ACEOF
10888cat confdefs.h >>conftest.$ac_ext
10889cat >>conftest.$ac_ext <<_ACEOF
10890/* end confdefs.h. */
10891/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10893#define $ac_func innocuous_$ac_func
10894
10895/* System header to define __stub macros and hopefully few prototypes,
10896 which can conflict with char $ac_func (); below.
10897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10898 <limits.h> exists even on freestanding compilers. */
10899
10900#ifdef __STDC__
10901# include <limits.h>
10902#else
10903# include <assert.h>
10904#endif
10905
10906#undef $ac_func
10907
10908/* Override any GCC internal prototype to avoid an error.
10909 Use char because int might match the return type of a GCC
10910 builtin and then its argument prototype would still apply. */
10911#ifdef __cplusplus
10912extern "C"
10913#endif
10914char $ac_func ();
10915/* The GNU C library defines this for functions which it implements
10916 to always fail with ENOSYS. Some functions are actually named
10917 something starting with __ and the normal name is an alias. */
10918#if defined __stub_$ac_func || defined __stub___$ac_func
10919choke me
10920#endif
10921
10922int
10923main ()
10924{
10925return $ac_func ();
10926 ;
10927 return 0;
10928}
10929_ACEOF
10930rm -f conftest.$ac_objext conftest$ac_exeext
10931if { (ac_try="$ac_link"
10932case "(($ac_try" in
10933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934 *) ac_try_echo=$ac_try;;
10935esac
10936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10937 (eval "$ac_link") 2>conftest.er1
10938 ac_status=$?
10939 grep -v '^ *+' conftest.er1 >conftest.err
10940 rm -f conftest.er1
10941 cat conftest.err >&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10945 { (case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10948esac
10949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_try") 2>&5
10951 ac_status=$?
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; } &&
10954 { ac_try='test -s conftest$ac_exeext'
10955 { (case "(($ac_try" in
10956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10957 *) ac_try_echo=$ac_try;;
10958esac
10959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10960 (eval "$ac_try") 2>&5
10961 ac_status=$?
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; }; then
10964 eval "$as_ac_var=yes"
10965else
10966 echo "$as_me: failed program was:" >&5
10967sed 's/^/| /' conftest.$ac_ext >&5
10968
10969 eval "$as_ac_var=no"
10970fi
10971
10972rm -f core conftest.err conftest.$ac_objext \
10973 conftest$ac_exeext conftest.$ac_ext
10974fi
10975ac_res=`eval echo '${'$as_ac_var'}'`
10976 { echo "$as_me:$LINENO: result: $ac_res" >&5
10977echo "${ECHO_T}$ac_res" >&6; }
10978if test `eval echo '${'$as_ac_var'}'` = yes; then
10979 cat >>confdefs.h <<_ACEOF
10980#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10981_ACEOF
10982
10983fi
10984done
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11014 stdio.h unistd.h
11015do
11016as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11017if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
11022fi
11023ac_res=`eval echo '${'$as_ac_Header'}'`
11024 { echo "$as_me:$LINENO: result: $ac_res" >&5
11025echo "${ECHO_T}$ac_res" >&6; }
11026else
11027 # Is the header compilable?
11028{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11029echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11030cat >conftest.$ac_ext <<_ACEOF
11031/* confdefs.h. */
11032_ACEOF
11033cat confdefs.h >>conftest.$ac_ext
11034cat >>conftest.$ac_ext <<_ACEOF
11035/* end confdefs.h. */
11036$ac_includes_default
11037#include <$ac_header>
11038_ACEOF
11039rm -f conftest.$ac_objext
11040if { (ac_try="$ac_compile"
11041case "(($ac_try" in
11042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043 *) ac_try_echo=$ac_try;;
11044esac
11045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11046 (eval "$ac_compile") 2>conftest.er1
11047 ac_status=$?
11048 grep -v '^ *+' conftest.er1 >conftest.err
11049 rm -f conftest.er1
11050 cat conftest.err >&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); } &&
11053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11054 { (case "(($ac_try" in
11055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056 *) ac_try_echo=$ac_try;;
11057esac
11058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059 (eval "$ac_try") 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; } &&
11063 { ac_try='test -s conftest.$ac_objext'
11064 { (case "(($ac_try" in
11065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11066 *) ac_try_echo=$ac_try;;
11067esac
11068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11069 (eval "$ac_try") 2>&5
11070 ac_status=$?
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); }; }; then
11073 ac_header_compiler=yes
11074else
11075 echo "$as_me: failed program was:" >&5
11076sed 's/^/| /' conftest.$ac_ext >&5
11077
11078 ac_header_compiler=no
11079fi
11080
11081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11082{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11083echo "${ECHO_T}$ac_header_compiler" >&6; }
11084
11085# Is the header present?
11086{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11087echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11088cat >conftest.$ac_ext <<_ACEOF
11089/* confdefs.h. */
11090_ACEOF
11091cat confdefs.h >>conftest.$ac_ext
11092cat >>conftest.$ac_ext <<_ACEOF
11093/* end confdefs.h. */
11094#include <$ac_header>
11095_ACEOF
11096if { (ac_try="$ac_cpp conftest.$ac_ext"
11097case "(($ac_try" in
11098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099 *) ac_try_echo=$ac_try;;
11100esac
11101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11103 ac_status=$?
11104 grep -v '^ *+' conftest.er1 >conftest.err
11105 rm -f conftest.er1
11106 cat conftest.err >&5
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } >/dev/null; then
11109 if test -s conftest.err; then
11110 ac_cpp_err=$ac_c_preproc_warn_flag
11111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11112 else
11113 ac_cpp_err=
11114 fi
11115else
11116 ac_cpp_err=yes
11117fi
11118if test -z "$ac_cpp_err"; then
11119 ac_header_preproc=yes
11120else
11121 echo "$as_me: failed program was:" >&5
11122sed 's/^/| /' conftest.$ac_ext >&5
11123
11124 ac_header_preproc=no
11125fi
11126
11127rm -f conftest.err conftest.$ac_ext
11128{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11129echo "${ECHO_T}$ac_header_preproc" >&6; }
11130
11131# So? What about this header?
11132case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11133 yes:no: )
11134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11135echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11137echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11138 ac_header_preproc=yes
11139 ;;
11140 no:yes:* )
11141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11142echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11144echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11146echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11148echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11150echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11152echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11153 ( cat <<\_ASBOX
11154## ------------------------------ ##
11155## Report this to bugs@yourdomain ##
11156## ------------------------------ ##
11157_ASBOX
11158 ) | sed "s/^/$as_me: WARNING: /" >&2
11159 ;;
11160esac
11161{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11164 echo $ECHO_N "(cached) $ECHO_C" >&6
11165else
11166 eval "$as_ac_Header=\$ac_header_preproc"
11167fi
11168ac_res=`eval echo '${'$as_ac_Header'}'`
11169 { echo "$as_me:$LINENO: result: $ac_res" >&5
11170echo "${ECHO_T}$ac_res" >&6; }
11171
11172fi
11173if test `eval echo '${'$as_ac_Header'}'` = yes; then
11174 cat >>confdefs.h <<_ACEOF
11175#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11176_ACEOF
11177
11178fi
11179
11180done
11181
11182
11183
11184
11185
11186for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11187do
11188as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11189if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11192if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11194fi
11195ac_res=`eval echo '${'$as_ac_Header'}'`
11196 { echo "$as_me:$LINENO: result: $ac_res" >&5
11197echo "${ECHO_T}$ac_res" >&6; }
11198else
11199 # Is the header compilable?
11200{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11201echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11202cat >conftest.$ac_ext <<_ACEOF
11203/* confdefs.h. */
11204_ACEOF
11205cat confdefs.h >>conftest.$ac_ext
11206cat >>conftest.$ac_ext <<_ACEOF
11207/* end confdefs.h. */
11208$ac_includes_default
11209#include <$ac_header>
11210_ACEOF
11211rm -f conftest.$ac_objext
11212if { (ac_try="$ac_compile"
11213case "(($ac_try" in
11214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11215 *) ac_try_echo=$ac_try;;
11216esac
11217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11218 (eval "$ac_compile") 2>conftest.er1
11219 ac_status=$?
11220 grep -v '^ *+' conftest.er1 >conftest.err
11221 rm -f conftest.er1
11222 cat conftest.err >&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } &&
11225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11226 { (case "(($ac_try" in
11227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11228 *) ac_try_echo=$ac_try;;
11229esac
11230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11231 (eval "$ac_try") 2>&5
11232 ac_status=$?
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; } &&
11235 { ac_try='test -s conftest.$ac_objext'
11236 { (case "(($ac_try" in
11237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11238 *) ac_try_echo=$ac_try;;
11239esac
11240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11241 (eval "$ac_try") 2>&5
11242 ac_status=$?
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; }; then
11245 ac_header_compiler=yes
11246else
11247 echo "$as_me: failed program was:" >&5
11248sed 's/^/| /' conftest.$ac_ext >&5
11249
11250 ac_header_compiler=no
11251fi
11252
11253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11254{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11255echo "${ECHO_T}$ac_header_compiler" >&6; }
11256
11257# Is the header present?
11258{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11259echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11260cat >conftest.$ac_ext <<_ACEOF
11261/* confdefs.h. */
11262_ACEOF
11263cat confdefs.h >>conftest.$ac_ext
11264cat >>conftest.$ac_ext <<_ACEOF
11265/* end confdefs.h. */
11266#include <$ac_header>
11267_ACEOF
11268if { (ac_try="$ac_cpp conftest.$ac_ext"
11269case "(($ac_try" in
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271 *) ac_try_echo=$ac_try;;
11272esac
11273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11275 ac_status=$?
11276 grep -v '^ *+' conftest.er1 >conftest.err
11277 rm -f conftest.er1
11278 cat conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } >/dev/null; then
11281 if test -s conftest.err; then
11282 ac_cpp_err=$ac_c_preproc_warn_flag
11283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11284 else
11285 ac_cpp_err=
11286 fi
11287else
11288 ac_cpp_err=yes
11289fi
11290if test -z "$ac_cpp_err"; then
11291 ac_header_preproc=yes
11292else
11293 echo "$as_me: failed program was:" >&5
11294sed 's/^/| /' conftest.$ac_ext >&5
11295
11296 ac_header_preproc=no
11297fi
11298
11299rm -f conftest.err conftest.$ac_ext
11300{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11301echo "${ECHO_T}$ac_header_preproc" >&6; }
11302
11303# So? What about this header?
11304case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11305 yes:no: )
11306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11307echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11309echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11310 ac_header_preproc=yes
11311 ;;
11312 no:yes:* )
11313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11314echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11316echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11318echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11320echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11322echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11324echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11325 ( cat <<\_ASBOX
11326## ------------------------------ ##
11327## Report this to bugs@yourdomain ##
11328## ------------------------------ ##
11329_ASBOX
11330 ) | sed "s/^/$as_me: WARNING: /" >&2
11331 ;;
11332esac
11333{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11336 echo $ECHO_N "(cached) $ECHO_C" >&6
11337else
11338 eval "$as_ac_Header=\$ac_header_preproc"
11339fi
11340ac_res=`eval echo '${'$as_ac_Header'}'`
11341 { echo "$as_me:$LINENO: result: $ac_res" >&5
11342echo "${ECHO_T}$ac_res" >&6; }
11343
11344fi
11345if test `eval echo '${'$as_ac_Header'}'` = yes; then
11346 cat >>confdefs.h <<_ACEOF
11347#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11348_ACEOF
11349
11350fi
11351
11352done
11353
11354
11355
11356for ac_header in string.h strings.h
11357do
11358as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11359if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11361echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11362if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11363 echo $ECHO_N "(cached) $ECHO_C" >&6
11364fi
11365ac_res=`eval echo '${'$as_ac_Header'}'`
11366 { echo "$as_me:$LINENO: result: $ac_res" >&5
11367echo "${ECHO_T}$ac_res" >&6; }
11368else
11369 # Is the header compilable?
11370{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11371echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11372cat >conftest.$ac_ext <<_ACEOF
11373/* confdefs.h. */
11374_ACEOF
11375cat confdefs.h >>conftest.$ac_ext
11376cat >>conftest.$ac_ext <<_ACEOF
11377/* end confdefs.h. */
11378$ac_includes_default
11379#include <$ac_header>
11380_ACEOF
11381rm -f conftest.$ac_objext
11382if { (ac_try="$ac_compile"
11383case "(($ac_try" in
11384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11385 *) ac_try_echo=$ac_try;;
11386esac
11387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11388 (eval "$ac_compile") 2>conftest.er1
11389 ac_status=$?
11390 grep -v '^ *+' conftest.er1 >conftest.err
11391 rm -f conftest.er1
11392 cat conftest.err >&5
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); } &&
11395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11396 { (case "(($ac_try" in
11397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398 *) ac_try_echo=$ac_try;;
11399esac
11400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401 (eval "$ac_try") 2>&5
11402 ac_status=$?
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; } &&
11405 { ac_try='test -s conftest.$ac_objext'
11406 { (case "(($ac_try" in
11407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408 *) ac_try_echo=$ac_try;;
11409esac
11410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411 (eval "$ac_try") 2>&5
11412 ac_status=$?
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; }; then
11415 ac_header_compiler=yes
11416else
11417 echo "$as_me: failed program was:" >&5
11418sed 's/^/| /' conftest.$ac_ext >&5
11419
11420 ac_header_compiler=no
11421fi
11422
11423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11424{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11425echo "${ECHO_T}$ac_header_compiler" >&6; }
11426
11427# Is the header present?
11428{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11429echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11430cat >conftest.$ac_ext <<_ACEOF
11431/* confdefs.h. */
11432_ACEOF
11433cat confdefs.h >>conftest.$ac_ext
11434cat >>conftest.$ac_ext <<_ACEOF
11435/* end confdefs.h. */
11436#include <$ac_header>
11437_ACEOF
11438if { (ac_try="$ac_cpp conftest.$ac_ext"
11439case "(($ac_try" in
11440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441 *) ac_try_echo=$ac_try;;
11442esac
11443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11445 ac_status=$?
11446 grep -v '^ *+' conftest.er1 >conftest.err
11447 rm -f conftest.er1
11448 cat conftest.err >&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); } >/dev/null; then
11451 if test -s conftest.err; then
11452 ac_cpp_err=$ac_c_preproc_warn_flag
11453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11454 else
11455 ac_cpp_err=
11456 fi
11457else
11458 ac_cpp_err=yes
11459fi
11460if test -z "$ac_cpp_err"; then
11461 ac_header_preproc=yes
11462else
11463 echo "$as_me: failed program was:" >&5
11464sed 's/^/| /' conftest.$ac_ext >&5
11465
11466 ac_header_preproc=no
11467fi
11468
11469rm -f conftest.err conftest.$ac_ext
11470{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11471echo "${ECHO_T}$ac_header_preproc" >&6; }
11472
11473# So? What about this header?
11474case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11475 yes:no: )
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11477echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11479echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11480 ac_header_preproc=yes
11481 ;;
11482 no:yes:* )
11483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11484echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11486echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11488echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11490echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11492echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11494echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11495 ( cat <<\_ASBOX
11496## ------------------------------ ##
11497## Report this to bugs@yourdomain ##
11498## ------------------------------ ##
11499_ASBOX
11500 ) | sed "s/^/$as_me: WARNING: /" >&2
11501 ;;
11502esac
11503{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11504echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11505if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11506 echo $ECHO_N "(cached) $ECHO_C" >&6
11507else
11508 eval "$as_ac_Header=\$ac_header_preproc"
11509fi
11510ac_res=`eval echo '${'$as_ac_Header'}'`
11511 { echo "$as_me:$LINENO: result: $ac_res" >&5
11512echo "${ECHO_T}$ac_res" >&6; }
11513
11514fi
11515if test `eval echo '${'$as_ac_Header'}'` = yes; then
11516 cat >>confdefs.h <<_ACEOF
11517#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11518_ACEOF
11519 break
11520fi
11521
11522done
11523
11524
11525
11526
11527for ac_func in strchr index
11528do
11529as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11530{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11531echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11532if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11533 echo $ECHO_N "(cached) $ECHO_C" >&6
11534else
11535 cat >conftest.$ac_ext <<_ACEOF
11536/* confdefs.h. */
11537_ACEOF
11538cat confdefs.h >>conftest.$ac_ext
11539cat >>conftest.$ac_ext <<_ACEOF
11540/* end confdefs.h. */
11541/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11543#define $ac_func innocuous_$ac_func
11544
11545/* System header to define __stub macros and hopefully few prototypes,
11546 which can conflict with char $ac_func (); below.
11547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11548 <limits.h> exists even on freestanding compilers. */
11549
11550#ifdef __STDC__
11551# include <limits.h>
11552#else
11553# include <assert.h>
11554#endif
11555
11556#undef $ac_func
11557
11558/* Override any GCC internal prototype to avoid an error.
11559 Use char because int might match the return type of a GCC
11560 builtin and then its argument prototype would still apply. */
11561#ifdef __cplusplus
11562extern "C"
11563#endif
11564char $ac_func ();
11565/* The GNU C library defines this for functions which it implements
11566 to always fail with ENOSYS. Some functions are actually named
11567 something starting with __ and the normal name is an alias. */
11568#if defined __stub_$ac_func || defined __stub___$ac_func
11569choke me
11570#endif
11571
11572int
11573main ()
11574{
11575return $ac_func ();
11576 ;
11577 return 0;
11578}
11579_ACEOF
11580rm -f conftest.$ac_objext conftest$ac_exeext
11581if { (ac_try="$ac_link"
11582case "(($ac_try" in
11583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11584 *) ac_try_echo=$ac_try;;
11585esac
11586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11587 (eval "$ac_link") 2>conftest.er1
11588 ac_status=$?
11589 grep -v '^ *+' conftest.er1 >conftest.err
11590 rm -f conftest.er1
11591 cat conftest.err >&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); } &&
11594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11595 { (case "(($ac_try" in
11596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597 *) ac_try_echo=$ac_try;;
11598esac
11599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11600 (eval "$ac_try") 2>&5
11601 ac_status=$?
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; } &&
11604 { ac_try='test -s conftest$ac_exeext'
11605 { (case "(($ac_try" in
11606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607 *) ac_try_echo=$ac_try;;
11608esac
11609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11610 (eval "$ac_try") 2>&5
11611 ac_status=$?
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; }; then
11614 eval "$as_ac_var=yes"
11615else
11616 echo "$as_me: failed program was:" >&5
11617sed 's/^/| /' conftest.$ac_ext >&5
11618
11619 eval "$as_ac_var=no"
11620fi
11621
11622rm -f core conftest.err conftest.$ac_objext \
11623 conftest$ac_exeext conftest.$ac_ext
11624fi
11625ac_res=`eval echo '${'$as_ac_var'}'`
11626 { echo "$as_me:$LINENO: result: $ac_res" >&5
11627echo "${ECHO_T}$ac_res" >&6; }
11628if test `eval echo '${'$as_ac_var'}'` = yes; then
11629 cat >>confdefs.h <<_ACEOF
11630#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11631_ACEOF
11632 break
11633fi
11634done
11635
11636
11637
11638for ac_func in strrchr rindex
11639do
11640as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11641{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11642echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11643if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11644 echo $ECHO_N "(cached) $ECHO_C" >&6
11645else
11646 cat >conftest.$ac_ext <<_ACEOF
11647/* confdefs.h. */
11648_ACEOF
11649cat confdefs.h >>conftest.$ac_ext
11650cat >>conftest.$ac_ext <<_ACEOF
11651/* end confdefs.h. */
11652/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11654#define $ac_func innocuous_$ac_func
11655
11656/* System header to define __stub macros and hopefully few prototypes,
11657 which can conflict with char $ac_func (); below.
11658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11659 <limits.h> exists even on freestanding compilers. */
11660
11661#ifdef __STDC__
11662# include <limits.h>
11663#else
11664# include <assert.h>
11665#endif
11666
11667#undef $ac_func
11668
11669/* Override any GCC internal prototype to avoid an error.
11670 Use char because int might match the return type of a GCC
11671 builtin and then its argument prototype would still apply. */
11672#ifdef __cplusplus
11673extern "C"
11674#endif
11675char $ac_func ();
11676/* The GNU C library defines this for functions which it implements
11677 to always fail with ENOSYS. Some functions are actually named
11678 something starting with __ and the normal name is an alias. */
11679#if defined __stub_$ac_func || defined __stub___$ac_func
11680choke me
11681#endif
11682
11683int
11684main ()
11685{
11686return $ac_func ();
11687 ;
11688 return 0;
11689}
11690_ACEOF
11691rm -f conftest.$ac_objext conftest$ac_exeext
11692if { (ac_try="$ac_link"
11693case "(($ac_try" in
11694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11695 *) ac_try_echo=$ac_try;;
11696esac
11697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11698 (eval "$ac_link") 2>conftest.er1
11699 ac_status=$?
11700 grep -v '^ *+' conftest.er1 >conftest.err
11701 rm -f conftest.er1
11702 cat conftest.err >&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } &&
11705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11706 { (case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11709esac
11710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711 (eval "$ac_try") 2>&5
11712 ac_status=$?
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); }; } &&
11715 { ac_try='test -s conftest$ac_exeext'
11716 { (case "(($ac_try" in
11717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11718 *) ac_try_echo=$ac_try;;
11719esac
11720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11721 (eval "$ac_try") 2>&5
11722 ac_status=$?
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; }; then
11725 eval "$as_ac_var=yes"
11726else
11727 echo "$as_me: failed program was:" >&5
11728sed 's/^/| /' conftest.$ac_ext >&5
11729
11730 eval "$as_ac_var=no"
11731fi
11732
11733rm -f core conftest.err conftest.$ac_objext \
11734 conftest$ac_exeext conftest.$ac_ext
11735fi
11736ac_res=`eval echo '${'$as_ac_var'}'`
11737 { echo "$as_me:$LINENO: result: $ac_res" >&5
11738echo "${ECHO_T}$ac_res" >&6; }
11739if test `eval echo '${'$as_ac_var'}'` = yes; then
11740 cat >>confdefs.h <<_ACEOF
11741#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11742_ACEOF
11743 break
11744fi
11745done
11746
11747
11748
11749for ac_func in memcpy bcopy
11750do
11751as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11752{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11753echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11754if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
11756else
11757 cat >conftest.$ac_ext <<_ACEOF
11758/* confdefs.h. */
11759_ACEOF
11760cat confdefs.h >>conftest.$ac_ext
11761cat >>conftest.$ac_ext <<_ACEOF
11762/* end confdefs.h. */
11763/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11765#define $ac_func innocuous_$ac_func
11766
11767/* System header to define __stub macros and hopefully few prototypes,
11768 which can conflict with char $ac_func (); below.
11769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11770 <limits.h> exists even on freestanding compilers. */
11771
11772#ifdef __STDC__
11773# include <limits.h>
11774#else
11775# include <assert.h>
11776#endif
11777
11778#undef $ac_func
11779
11780/* Override any GCC internal prototype to avoid an error.
11781 Use char because int might match the return type of a GCC
11782 builtin and then its argument prototype would still apply. */
11783#ifdef __cplusplus
11784extern "C"
11785#endif
11786char $ac_func ();
11787/* The GNU C library defines this for functions which it implements
11788 to always fail with ENOSYS. Some functions are actually named
11789 something starting with __ and the normal name is an alias. */
11790#if defined __stub_$ac_func || defined __stub___$ac_func
11791choke me
11792#endif
11793
11794int
11795main ()
11796{
11797return $ac_func ();
11798 ;
11799 return 0;
11800}
11801_ACEOF
11802rm -f conftest.$ac_objext conftest$ac_exeext
11803if { (ac_try="$ac_link"
11804case "(($ac_try" in
11805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806 *) ac_try_echo=$ac_try;;
11807esac
11808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11809 (eval "$ac_link") 2>conftest.er1
11810 ac_status=$?
11811 grep -v '^ *+' conftest.er1 >conftest.err
11812 rm -f conftest.er1
11813 cat conftest.err >&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } &&
11816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11817 { (case "(($ac_try" in
11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819 *) ac_try_echo=$ac_try;;
11820esac
11821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_try") 2>&5
11823 ac_status=$?
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; } &&
11826 { ac_try='test -s conftest$ac_exeext'
11827 { (case "(($ac_try" in
11828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11829 *) ac_try_echo=$ac_try;;
11830esac
11831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11832 (eval "$ac_try") 2>&5
11833 ac_status=$?
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); }; }; then
11836 eval "$as_ac_var=yes"
11837else
11838 echo "$as_me: failed program was:" >&5
11839sed 's/^/| /' conftest.$ac_ext >&5
11840
11841 eval "$as_ac_var=no"
11842fi
11843
11844rm -f core conftest.err conftest.$ac_objext \
11845 conftest$ac_exeext conftest.$ac_ext
11846fi
11847ac_res=`eval echo '${'$as_ac_var'}'`
11848 { echo "$as_me:$LINENO: result: $ac_res" >&5
11849echo "${ECHO_T}$ac_res" >&6; }
11850if test `eval echo '${'$as_ac_var'}'` = yes; then
11851 cat >>confdefs.h <<_ACEOF
11852#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11853_ACEOF
11854 break
11855fi
11856done
11857
11858
11859
11860for ac_func in memmove strcmp
11861do
11862as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11863{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11864echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11865if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11866 echo $ECHO_N "(cached) $ECHO_C" >&6
11867else
11868 cat >conftest.$ac_ext <<_ACEOF
11869/* confdefs.h. */
11870_ACEOF
11871cat confdefs.h >>conftest.$ac_ext
11872cat >>conftest.$ac_ext <<_ACEOF
11873/* end confdefs.h. */
11874/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11876#define $ac_func innocuous_$ac_func
11877
11878/* System header to define __stub macros and hopefully few prototypes,
11879 which can conflict with char $ac_func (); below.
11880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11881 <limits.h> exists even on freestanding compilers. */
11882
11883#ifdef __STDC__
11884# include <limits.h>
11885#else
11886# include <assert.h>
11887#endif
11888
11889#undef $ac_func
11890
11891/* Override any GCC internal prototype to avoid an error.
11892 Use char because int might match the return type of a GCC
11893 builtin and then its argument prototype would still apply. */
11894#ifdef __cplusplus
11895extern "C"
11896#endif
11897char $ac_func ();
11898/* The GNU C library defines this for functions which it implements
11899 to always fail with ENOSYS. Some functions are actually named
11900 something starting with __ and the normal name is an alias. */
11901#if defined __stub_$ac_func || defined __stub___$ac_func
11902choke me
11903#endif
11904
11905int
11906main ()
11907{
11908return $ac_func ();
11909 ;
11910 return 0;
11911}
11912_ACEOF
11913rm -f conftest.$ac_objext conftest$ac_exeext
11914if { (ac_try="$ac_link"
11915case "(($ac_try" in
11916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11917 *) ac_try_echo=$ac_try;;
11918esac
11919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11920 (eval "$ac_link") 2>conftest.er1
11921 ac_status=$?
11922 grep -v '^ *+' conftest.er1 >conftest.err
11923 rm -f conftest.er1
11924 cat conftest.err >&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } &&
11927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11928 { (case "(($ac_try" in
11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11931esac
11932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11933 (eval "$ac_try") 2>&5
11934 ac_status=$?
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); }; } &&
11937 { ac_try='test -s conftest$ac_exeext'
11938 { (case "(($ac_try" in
11939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11940 *) ac_try_echo=$ac_try;;
11941esac
11942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11943 (eval "$ac_try") 2>&5
11944 ac_status=$?
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; }; then
11947 eval "$as_ac_var=yes"
11948else
11949 echo "$as_me: failed program was:" >&5
11950sed 's/^/| /' conftest.$ac_ext >&5
11951
11952 eval "$as_ac_var=no"
11953fi
11954
11955rm -f core conftest.err conftest.$ac_objext \
11956 conftest$ac_exeext conftest.$ac_ext
11957fi
11958ac_res=`eval echo '${'$as_ac_var'}'`
11959 { echo "$as_me:$LINENO: result: $ac_res" >&5
11960echo "${ECHO_T}$ac_res" >&6; }
11961if test `eval echo '${'$as_ac_var'}'` = yes; then
11962 cat >>confdefs.h <<_ACEOF
11963#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11964_ACEOF
11965
11966fi
11967done
11968
11969
11970
11971
11972for ac_func in closedir opendir readdir
11973do
11974as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11975{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11976echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11977if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11979else
11980 cat >conftest.$ac_ext <<_ACEOF
11981/* confdefs.h. */
11982_ACEOF
11983cat confdefs.h >>conftest.$ac_ext
11984cat >>conftest.$ac_ext <<_ACEOF
11985/* end confdefs.h. */
11986/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11988#define $ac_func innocuous_$ac_func
11989
11990/* System header to define __stub macros and hopefully few prototypes,
11991 which can conflict with char $ac_func (); below.
11992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11993 <limits.h> exists even on freestanding compilers. */
11994
11995#ifdef __STDC__
11996# include <limits.h>
11997#else
11998# include <assert.h>
11999#endif
12000
12001#undef $ac_func
12002
12003/* Override any GCC internal prototype to avoid an error.
12004 Use char because int might match the return type of a GCC
12005 builtin and then its argument prototype would still apply. */
12006#ifdef __cplusplus
12007extern "C"
12008#endif
12009char $ac_func ();
12010/* The GNU C library defines this for functions which it implements
12011 to always fail with ENOSYS. Some functions are actually named
12012 something starting with __ and the normal name is an alias. */
12013#if defined __stub_$ac_func || defined __stub___$ac_func
12014choke me
12015#endif
12016
12017int
12018main ()
12019{
12020return $ac_func ();
12021 ;
12022 return 0;
12023}
12024_ACEOF
12025rm -f conftest.$ac_objext conftest$ac_exeext
12026if { (ac_try="$ac_link"
12027case "(($ac_try" in
12028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12030esac
12031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032 (eval "$ac_link") 2>conftest.er1
12033 ac_status=$?
12034 grep -v '^ *+' conftest.er1 >conftest.err
12035 rm -f conftest.er1
12036 cat conftest.err >&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); } &&
12039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12040 { (case "(($ac_try" in
12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12043esac
12044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_try") 2>&5
12046 ac_status=$?
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; } &&
12049 { ac_try='test -s conftest$ac_exeext'
12050 { (case "(($ac_try" in
12051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052 *) ac_try_echo=$ac_try;;
12053esac
12054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12055 (eval "$ac_try") 2>&5
12056 ac_status=$?
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; }; then
12059 eval "$as_ac_var=yes"
12060else
12061 echo "$as_me: failed program was:" >&5
12062sed 's/^/| /' conftest.$ac_ext >&5
12063
12064 eval "$as_ac_var=no"
12065fi
12066
12067rm -f core conftest.err conftest.$ac_objext \
12068 conftest$ac_exeext conftest.$ac_ext
12069fi
12070ac_res=`eval echo '${'$as_ac_var'}'`
12071 { echo "$as_me:$LINENO: result: $ac_res" >&5
12072echo "${ECHO_T}$ac_res" >&6; }
12073if test `eval echo '${'$as_ac_var'}'` = yes; then
12074 cat >>confdefs.h <<_ACEOF
12075#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12076_ACEOF
12077
12078fi
12079done
12080
12081
12082
12083{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12084echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12085
12086ICC=no
12087IXX=no
12088case $CC in
12089 icc*|icpc*)
12090 ICC=yes
12091 IXX=yes
12092 ;;
12093 *)
12094 ;;
12095esac
12096
12097if test "$GCC" != "yes" && test "$ICC" != "yes"
12098then
12099 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12100echo "$as_me: error: gcc|icc required but not found" >&2;}
12101 { (exit 1); exit 1; }; }
12102fi
12103
12104if test "$GXX" != "yes" && test "$IXX" != "yes"
12105then
12106 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12107echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12108 { (exit 1); exit 1; }; }
12109fi
12110
12111if test "$GCC" = "yes"
12112then
12113 cat >conftest.$ac_ext <<_ACEOF
12114#if !defined(__GNUC__) || __GNUC__ < 3
12115#error Unsupported GCC version
12116#endif
12117
12118_ACEOF
12119rm -f conftest.$ac_objext
12120if { (ac_try="$ac_compile"
12121case "(($ac_try" in
12122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123 *) ac_try_echo=$ac_try;;
12124esac
12125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126 (eval "$ac_compile") 2>conftest.er1
12127 ac_status=$?
12128 grep -v '^ *+' conftest.er1 >conftest.err
12129 rm -f conftest.er1
12130 cat conftest.err >&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } &&
12133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12134 { (case "(($ac_try" in
12135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12136 *) ac_try_echo=$ac_try;;
12137esac
12138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12139 (eval "$ac_try") 2>&5
12140 ac_status=$?
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); }; } &&
12143 { ac_try='test -s conftest.$ac_objext'
12144 { (case "(($ac_try" in
12145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12146 *) ac_try_echo=$ac_try;;
12147esac
12148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12149 (eval "$ac_try") 2>&5
12150 ac_status=$?
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); }; }; then
12153 :
12154else
12155 echo "$as_me: failed program was:" >&5
12156sed 's/^/| /' conftest.$ac_ext >&5
12157
12158 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12159echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12160 { (exit 1); exit 1; }; }
12161fi
12162
12163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12164fi
12165
12166if test -z "$llvm_cv_gnu_make_command"
12167then
12168 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12169echo "$as_me: error: GNU Make required but not found" >&2;}
12170 { (exit 1); exit 1; }; }
12171fi
12172
12173{ echo "$as_me:$LINENO: result: ok" >&5
12174echo "${ECHO_T}ok" >&6; }
12175
12176{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12177echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12178NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12179
12180NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12181
12182{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12183echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12184
12185
12186
12187{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12188echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12189if test "${ac_cv_lib_m_sin+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12191else
12192 ac_check_lib_save_LIBS=$LIBS
12193LIBS="-lm $LIBS"
12194cat >conftest.$ac_ext <<_ACEOF
12195/* confdefs.h. */
12196_ACEOF
12197cat confdefs.h >>conftest.$ac_ext
12198cat >>conftest.$ac_ext <<_ACEOF
12199/* end confdefs.h. */
12200
12201/* Override any GCC internal prototype to avoid an error.
12202 Use char because int might match the return type of a GCC
12203 builtin and then its argument prototype would still apply. */
12204#ifdef __cplusplus
12205extern "C"
12206#endif
12207char sin ();
12208int
12209main ()
12210{
12211return sin ();
12212 ;
12213 return 0;
12214}
12215_ACEOF
12216rm -f conftest.$ac_objext conftest$ac_exeext
12217if { (ac_try="$ac_link"
12218case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12221esac
12222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223 (eval "$ac_link") 2>conftest.er1
12224 ac_status=$?
12225 grep -v '^ *+' conftest.er1 >conftest.err
12226 rm -f conftest.er1
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } &&
12230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12231 { (case "(($ac_try" in
12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233 *) ac_try_echo=$ac_try;;
12234esac
12235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236 (eval "$ac_try") 2>&5
12237 ac_status=$?
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }; } &&
12240 { ac_try='test -s conftest$ac_exeext'
12241 { (case "(($ac_try" in
12242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12243 *) ac_try_echo=$ac_try;;
12244esac
12245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12246 (eval "$ac_try") 2>&5
12247 ac_status=$?
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); }; }; then
12250 ac_cv_lib_m_sin=yes
12251else
12252 echo "$as_me: failed program was:" >&5
12253sed 's/^/| /' conftest.$ac_ext >&5
12254
12255 ac_cv_lib_m_sin=no
12256fi
12257
12258rm -f core conftest.err conftest.$ac_objext \
12259 conftest$ac_exeext conftest.$ac_ext
12260LIBS=$ac_check_lib_save_LIBS
12261fi
12262{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12263echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12264if test $ac_cv_lib_m_sin = yes; then
12265 cat >>confdefs.h <<_ACEOF
12266#define HAVE_LIBM 1
12267_ACEOF
12268
12269 LIBS="-lm $LIBS"
12270
12271fi
12272
12273if test "$llvm_cv_os_type" = "MingW" ; then
12274
12275{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12276echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12277if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12278 echo $ECHO_N "(cached) $ECHO_C" >&6
12279else
12280 ac_check_lib_save_LIBS=$LIBS
12281LIBS="-limagehlp $LIBS"
12282cat >conftest.$ac_ext <<_ACEOF
12283/* confdefs.h. */
12284_ACEOF
12285cat confdefs.h >>conftest.$ac_ext
12286cat >>conftest.$ac_ext <<_ACEOF
12287/* end confdefs.h. */
12288
12289
12290int
12291main ()
12292{
12293return main ();
12294 ;
12295 return 0;
12296}
12297_ACEOF
12298rm -f conftest.$ac_objext conftest$ac_exeext
12299if { (ac_try="$ac_link"
12300case "(($ac_try" in
12301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302 *) ac_try_echo=$ac_try;;
12303esac
12304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305 (eval "$ac_link") 2>conftest.er1
12306 ac_status=$?
12307 grep -v '^ *+' conftest.er1 >conftest.err
12308 rm -f conftest.er1
12309 cat conftest.err >&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } &&
12312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12313 { (case "(($ac_try" in
12314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12315 *) ac_try_echo=$ac_try;;
12316esac
12317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12318 (eval "$ac_try") 2>&5
12319 ac_status=$?
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); }; } &&
12322 { ac_try='test -s conftest$ac_exeext'
12323 { (case "(($ac_try" in
12324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12325 *) ac_try_echo=$ac_try;;
12326esac
12327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12328 (eval "$ac_try") 2>&5
12329 ac_status=$?
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }; }; then
12332 ac_cv_lib_imagehlp_main=yes
12333else
12334 echo "$as_me: failed program was:" >&5
12335sed 's/^/| /' conftest.$ac_ext >&5
12336
12337 ac_cv_lib_imagehlp_main=no
12338fi
12339
12340rm -f core conftest.err conftest.$ac_objext \
12341 conftest$ac_exeext conftest.$ac_ext
12342LIBS=$ac_check_lib_save_LIBS
12343fi
12344{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12345echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12346if test $ac_cv_lib_imagehlp_main = yes; then
12347 cat >>confdefs.h <<_ACEOF
12348#define HAVE_LIBIMAGEHLP 1
12349_ACEOF
12350
12351 LIBS="-limagehlp $LIBS"
12352
12353fi
12354
12355
12356{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12357echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12358if test "${ac_cv_lib_psapi_main+set}" = set; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12360else
12361 ac_check_lib_save_LIBS=$LIBS
12362LIBS="-lpsapi $LIBS"
12363cat >conftest.$ac_ext <<_ACEOF
12364/* confdefs.h. */
12365_ACEOF
12366cat confdefs.h >>conftest.$ac_ext
12367cat >>conftest.$ac_ext <<_ACEOF
12368/* end confdefs.h. */
12369
12370
12371int
12372main ()
12373{
12374return main ();
12375 ;
12376 return 0;
12377}
12378_ACEOF
12379rm -f conftest.$ac_objext conftest$ac_exeext
12380if { (ac_try="$ac_link"
12381case "(($ac_try" in
12382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383 *) ac_try_echo=$ac_try;;
12384esac
12385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12386 (eval "$ac_link") 2>conftest.er1
12387 ac_status=$?
12388 grep -v '^ *+' conftest.er1 >conftest.err
12389 rm -f conftest.er1
12390 cat conftest.err >&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } &&
12393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12394 { (case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12397esac
12398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_try") 2>&5
12400 ac_status=$?
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; } &&
12403 { ac_try='test -s conftest$ac_exeext'
12404 { (case "(($ac_try" in
12405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12406 *) ac_try_echo=$ac_try;;
12407esac
12408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12409 (eval "$ac_try") 2>&5
12410 ac_status=$?
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }; }; then
12413 ac_cv_lib_psapi_main=yes
12414else
12415 echo "$as_me: failed program was:" >&5
12416sed 's/^/| /' conftest.$ac_ext >&5
12417
12418 ac_cv_lib_psapi_main=no
12419fi
12420
12421rm -f core conftest.err conftest.$ac_objext \
12422 conftest$ac_exeext conftest.$ac_ext
12423LIBS=$ac_check_lib_save_LIBS
12424fi
12425{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12426echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12427if test $ac_cv_lib_psapi_main = yes; then
12428 cat >>confdefs.h <<_ACEOF
12429#define HAVE_LIBPSAPI 1
12430_ACEOF
12431
12432 LIBS="-lpsapi $LIBS"
12433
12434fi
12435
12436fi
12437
12438{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12439echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12440if test "${ac_cv_search_dlopen+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12442else
12443 ac_func_search_save_LIBS=$LIBS
12444cat >conftest.$ac_ext <<_ACEOF
12445/* confdefs.h. */
12446_ACEOF
12447cat confdefs.h >>conftest.$ac_ext
12448cat >>conftest.$ac_ext <<_ACEOF
12449/* end confdefs.h. */
12450
12451/* Override any GCC internal prototype to avoid an error.
12452 Use char because int might match the return type of a GCC
12453 builtin and then its argument prototype would still apply. */
12454#ifdef __cplusplus
12455extern "C"
12456#endif
12457char dlopen ();
12458int
12459main ()
12460{
12461return dlopen ();
12462 ;
12463 return 0;
12464}
12465_ACEOF
12466for ac_lib in '' dl; do
12467 if test -z "$ac_lib"; then
12468 ac_res="none required"
12469 else
12470 ac_res=-l$ac_lib
12471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12472 fi
12473 rm -f conftest.$ac_objext conftest$ac_exeext
12474if { (ac_try="$ac_link"
12475case "(($ac_try" in
12476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477 *) ac_try_echo=$ac_try;;
12478esac
12479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480 (eval "$ac_link") 2>conftest.er1
12481 ac_status=$?
12482 grep -v '^ *+' conftest.er1 >conftest.err
12483 rm -f conftest.er1
12484 cat conftest.err >&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } &&
12487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12488 { (case "(($ac_try" in
12489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12490 *) ac_try_echo=$ac_try;;
12491esac
12492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12493 (eval "$ac_try") 2>&5
12494 ac_status=$?
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); }; } &&
12497 { ac_try='test -s conftest$ac_exeext'
12498 { (case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12501esac
12502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503 (eval "$ac_try") 2>&5
12504 ac_status=$?
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; }; then
12507 ac_cv_search_dlopen=$ac_res
12508else
12509 echo "$as_me: failed program was:" >&5
12510sed 's/^/| /' conftest.$ac_ext >&5
12511
12512
12513fi
12514
12515rm -f core conftest.err conftest.$ac_objext \
12516 conftest$ac_exeext
12517 if test "${ac_cv_search_dlopen+set}" = set; then
12518 break
12519fi
12520done
12521if test "${ac_cv_search_dlopen+set}" = set; then
12522 :
12523else
12524 ac_cv_search_dlopen=no
12525fi
12526rm conftest.$ac_ext
12527LIBS=$ac_func_search_save_LIBS
12528fi
12529{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12530echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12531ac_res=$ac_cv_search_dlopen
12532if test "$ac_res" != no; then
12533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12534
12535cat >>confdefs.h <<\_ACEOF
12536#define HAVE_DLOPEN 1
12537_ACEOF
12538
12539else
12540 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12541echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12542fi
12543
12544
12545if test "$llvm_cv_enable_libffi" = "yes" ; then
12546 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12547echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12548if test "${ac_cv_search_ffi_call+set}" = set; then
12549 echo $ECHO_N "(cached) $ECHO_C" >&6
12550else
12551 ac_func_search_save_LIBS=$LIBS
12552cat >conftest.$ac_ext <<_ACEOF
12553/* confdefs.h. */
12554_ACEOF
12555cat confdefs.h >>conftest.$ac_ext
12556cat >>conftest.$ac_ext <<_ACEOF
12557/* end confdefs.h. */
12558
12559/* Override any GCC internal prototype to avoid an error.
12560 Use char because int might match the return type of a GCC
12561 builtin and then its argument prototype would still apply. */
12562#ifdef __cplusplus
12563extern "C"
12564#endif
12565char ffi_call ();
12566int
12567main ()
12568{
12569return ffi_call ();
12570 ;
12571 return 0;
12572}
12573_ACEOF
12574for ac_lib in '' ffi; do
12575 if test -z "$ac_lib"; then
12576 ac_res="none required"
12577 else
12578 ac_res=-l$ac_lib
12579 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12580 fi
12581 rm -f conftest.$ac_objext conftest$ac_exeext
12582if { (ac_try="$ac_link"
12583case "(($ac_try" in
12584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12585 *) ac_try_echo=$ac_try;;
12586esac
12587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12588 (eval "$ac_link") 2>conftest.er1
12589 ac_status=$?
12590 grep -v '^ *+' conftest.er1 >conftest.err
12591 rm -f conftest.er1
12592 cat conftest.err >&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); } &&
12595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12596 { (case "(($ac_try" in
12597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598 *) ac_try_echo=$ac_try;;
12599esac
12600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12601 (eval "$ac_try") 2>&5
12602 ac_status=$?
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); }; } &&
12605 { ac_try='test -s conftest$ac_exeext'
12606 { (case "(($ac_try" in
12607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12608 *) ac_try_echo=$ac_try;;
12609esac
12610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12611 (eval "$ac_try") 2>&5
12612 ac_status=$?
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; }; then
12615 ac_cv_search_ffi_call=$ac_res
12616else
12617 echo "$as_me: failed program was:" >&5
12618sed 's/^/| /' conftest.$ac_ext >&5
12619
12620
12621fi
12622
12623rm -f core conftest.err conftest.$ac_objext \
12624 conftest$ac_exeext
12625 if test "${ac_cv_search_ffi_call+set}" = set; then
12626 break
12627fi
12628done
12629if test "${ac_cv_search_ffi_call+set}" = set; then
12630 :
12631else
12632 ac_cv_search_ffi_call=no
12633fi
12634rm conftest.$ac_ext
12635LIBS=$ac_func_search_save_LIBS
12636fi
12637{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12638echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12639ac_res=$ac_cv_search_ffi_call
12640if test "$ac_res" != no; then
12641 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12642
12643cat >>confdefs.h <<\_ACEOF
12644#define HAVE_FFI_CALL 1
12645_ACEOF
12646
12647else
12648 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12649echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12650 { (exit 1); exit 1; }; }
12651fi
12652
12653fi
12654
12655{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12656echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12657if test "${ac_cv_search_mallinfo+set}" = set; then
12658 echo $ECHO_N "(cached) $ECHO_C" >&6
12659else
12660 ac_func_search_save_LIBS=$LIBS
12661cat >conftest.$ac_ext <<_ACEOF
12662/* confdefs.h. */
12663_ACEOF
12664cat confdefs.h >>conftest.$ac_ext
12665cat >>conftest.$ac_ext <<_ACEOF
12666/* end confdefs.h. */
12667
12668/* Override any GCC internal prototype to avoid an error.
12669 Use char because int might match the return type of a GCC
12670 builtin and then its argument prototype would still apply. */
12671#ifdef __cplusplus
12672extern "C"
12673#endif
12674char mallinfo ();
12675int
12676main ()
12677{
12678return mallinfo ();
12679 ;
12680 return 0;
12681}
12682_ACEOF
12683for ac_lib in '' malloc; do
12684 if test -z "$ac_lib"; then
12685 ac_res="none required"
12686 else
12687 ac_res=-l$ac_lib
12688 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12689 fi
12690 rm -f conftest.$ac_objext conftest$ac_exeext
12691if { (ac_try="$ac_link"
12692case "(($ac_try" in
12693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12694 *) ac_try_echo=$ac_try;;
12695esac
12696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12697 (eval "$ac_link") 2>conftest.er1
12698 ac_status=$?
12699 grep -v '^ *+' conftest.er1 >conftest.err
12700 rm -f conftest.er1
12701 cat conftest.err >&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); } &&
12704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12705 { (case "(($ac_try" in
12706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707 *) ac_try_echo=$ac_try;;
12708esac
12709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710 (eval "$ac_try") 2>&5
12711 ac_status=$?
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; } &&
12714 { ac_try='test -s conftest$ac_exeext'
12715 { (case "(($ac_try" in
12716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12717 *) ac_try_echo=$ac_try;;
12718esac
12719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12720 (eval "$ac_try") 2>&5
12721 ac_status=$?
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); }; }; then
12724 ac_cv_search_mallinfo=$ac_res
12725else
12726 echo "$as_me: failed program was:" >&5
12727sed 's/^/| /' conftest.$ac_ext >&5
12728
12729
12730fi
12731
12732rm -f core conftest.err conftest.$ac_objext \
12733 conftest$ac_exeext
12734 if test "${ac_cv_search_mallinfo+set}" = set; then
12735 break
12736fi
12737done
12738if test "${ac_cv_search_mallinfo+set}" = set; then
12739 :
12740else
12741 ac_cv_search_mallinfo=no
12742fi
12743rm conftest.$ac_ext
12744LIBS=$ac_func_search_save_LIBS
12745fi
12746{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12747echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12748ac_res=$ac_cv_search_mallinfo
12749if test "$ac_res" != no; then
12750 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12751
12752cat >>confdefs.h <<\_ACEOF
12753#define HAVE_MALLINFO 1
12754_ACEOF
12755
12756fi
12757
12758
12759if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12760
12761{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12762echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12763if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12764 echo $ECHO_N "(cached) $ECHO_C" >&6
12765else
12766 ac_check_lib_save_LIBS=$LIBS
12767LIBS="-lpthread $LIBS"
12768cat >conftest.$ac_ext <<_ACEOF
12769/* confdefs.h. */
12770_ACEOF
12771cat confdefs.h >>conftest.$ac_ext
12772cat >>conftest.$ac_ext <<_ACEOF
12773/* end confdefs.h. */
12774
12775/* Override any GCC internal prototype to avoid an error.
12776 Use char because int might match the return type of a GCC
12777 builtin and then its argument prototype would still apply. */
12778#ifdef __cplusplus
12779extern "C"
12780#endif
12781char pthread_mutex_init ();
12782int
12783main ()
12784{
12785return pthread_mutex_init ();
12786 ;
12787 return 0;
12788}
12789_ACEOF
12790rm -f conftest.$ac_objext conftest$ac_exeext
12791if { (ac_try="$ac_link"
12792case "(($ac_try" in
12793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794 *) ac_try_echo=$ac_try;;
12795esac
12796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12797 (eval "$ac_link") 2>conftest.er1
12798 ac_status=$?
12799 grep -v '^ *+' conftest.er1 >conftest.err
12800 rm -f conftest.er1
12801 cat conftest.err >&5
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); } &&
12804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12805 { (case "(($ac_try" in
12806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807 *) ac_try_echo=$ac_try;;
12808esac
12809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810 (eval "$ac_try") 2>&5
12811 ac_status=$?
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; } &&
12814 { ac_try='test -s conftest$ac_exeext'
12815 { (case "(($ac_try" in
12816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12817 *) ac_try_echo=$ac_try;;
12818esac
12819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12820 (eval "$ac_try") 2>&5
12821 ac_status=$?
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }; }; then
12824 ac_cv_lib_pthread_pthread_mutex_init=yes
12825else
12826 echo "$as_me: failed program was:" >&5
12827sed 's/^/| /' conftest.$ac_ext >&5
12828
12829 ac_cv_lib_pthread_pthread_mutex_init=no
12830fi
12831
12832rm -f core conftest.err conftest.$ac_objext \
12833 conftest$ac_exeext conftest.$ac_ext
12834LIBS=$ac_check_lib_save_LIBS
12835fi
12836{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12837echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12838if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12839 cat >>confdefs.h <<_ACEOF
12840#define HAVE_LIBPTHREAD 1
12841_ACEOF
12842
12843 LIBS="-lpthread $LIBS"
12844
12845fi
12846
12847 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12848echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12849if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12850 echo $ECHO_N "(cached) $ECHO_C" >&6
12851else
12852 ac_func_search_save_LIBS=$LIBS
12853cat >conftest.$ac_ext <<_ACEOF
12854/* confdefs.h. */
12855_ACEOF
12856cat confdefs.h >>conftest.$ac_ext
12857cat >>conftest.$ac_ext <<_ACEOF
12858/* end confdefs.h. */
12859
12860/* Override any GCC internal prototype to avoid an error.
12861 Use char because int might match the return type of a GCC
12862 builtin and then its argument prototype would still apply. */
12863#ifdef __cplusplus
12864extern "C"
12865#endif
12866char pthread_mutex_lock ();
12867int
12868main ()
12869{
12870return pthread_mutex_lock ();
12871 ;
12872 return 0;
12873}
12874_ACEOF
12875for ac_lib in '' pthread; do
12876 if test -z "$ac_lib"; then
12877 ac_res="none required"
12878 else
12879 ac_res=-l$ac_lib
12880 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12881 fi
12882 rm -f conftest.$ac_objext conftest$ac_exeext
12883if { (ac_try="$ac_link"
12884case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12887esac
12888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889 (eval "$ac_link") 2>conftest.er1
12890 ac_status=$?
12891 grep -v '^ *+' conftest.er1 >conftest.err
12892 rm -f conftest.er1
12893 cat conftest.err >&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } &&
12896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12897 { (case "(($ac_try" in
12898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899 *) ac_try_echo=$ac_try;;
12900esac
12901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902 (eval "$ac_try") 2>&5
12903 ac_status=$?
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; } &&
12906 { ac_try='test -s conftest$ac_exeext'
12907 { (case "(($ac_try" in
12908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909 *) ac_try_echo=$ac_try;;
12910esac
12911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12912 (eval "$ac_try") 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; }; then
12916 ac_cv_search_pthread_mutex_lock=$ac_res
12917else
12918 echo "$as_me: failed program was:" >&5
12919sed 's/^/| /' conftest.$ac_ext >&5
12920
12921
12922fi
12923
12924rm -f core conftest.err conftest.$ac_objext \
12925 conftest$ac_exeext
12926 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12927 break
12928fi
12929done
12930if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12931 :
12932else
12933 ac_cv_search_pthread_mutex_lock=no
12934fi
12935rm conftest.$ac_ext
12936LIBS=$ac_func_search_save_LIBS
12937fi
12938{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12939echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12940ac_res=$ac_cv_search_pthread_mutex_lock
12941if test "$ac_res" != no; then
12942 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12943
12944cat >>confdefs.h <<\_ACEOF
12945#define HAVE_PTHREAD_MUTEX_LOCK 1
12946_ACEOF
12947
12948fi
12949
12950 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12951echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12952if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12954else
12955 ac_func_search_save_LIBS=$LIBS
12956cat >conftest.$ac_ext <<_ACEOF
12957/* confdefs.h. */
12958_ACEOF
12959cat confdefs.h >>conftest.$ac_ext
12960cat >>conftest.$ac_ext <<_ACEOF
12961/* end confdefs.h. */
12962
12963/* Override any GCC internal prototype to avoid an error.
12964 Use char because int might match the return type of a GCC
12965 builtin and then its argument prototype would still apply. */
12966#ifdef __cplusplus
12967extern "C"
12968#endif
12969char pthread_rwlock_init ();
12970int
12971main ()
12972{
12973return pthread_rwlock_init ();
12974 ;
12975 return 0;
12976}
12977_ACEOF
12978for ac_lib in '' pthread; do
12979 if test -z "$ac_lib"; then
12980 ac_res="none required"
12981 else
12982 ac_res=-l$ac_lib
12983 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12984 fi
12985 rm -f conftest.$ac_objext conftest$ac_exeext
12986if { (ac_try="$ac_link"
12987case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12990esac
12991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_link") 2>conftest.er1
12993 ac_status=$?
12994 grep -v '^ *+' conftest.er1 >conftest.err
12995 rm -f conftest.er1
12996 cat conftest.err >&5
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); } &&
12999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13000 { (case "(($ac_try" in
13001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002 *) ac_try_echo=$ac_try;;
13003esac
13004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13005 (eval "$ac_try") 2>&5
13006 ac_status=$?
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; } &&
13009 { ac_try='test -s conftest$ac_exeext'
13010 { (case "(($ac_try" in
13011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012 *) ac_try_echo=$ac_try;;
13013esac
13014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13015 (eval "$ac_try") 2>&5
13016 ac_status=$?
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; }; then
13019 ac_cv_search_pthread_rwlock_init=$ac_res
13020else
13021 echo "$as_me: failed program was:" >&5
13022sed 's/^/| /' conftest.$ac_ext >&5
13023
13024
13025fi
13026
13027rm -f core conftest.err conftest.$ac_objext \
13028 conftest$ac_exeext
13029 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13030 break
13031fi
13032done
13033if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13034 :
13035else
13036 ac_cv_search_pthread_rwlock_init=no
13037fi
13038rm conftest.$ac_ext
13039LIBS=$ac_func_search_save_LIBS
13040fi
13041{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13042echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13043ac_res=$ac_cv_search_pthread_rwlock_init
13044if test "$ac_res" != no; then
13045 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13046
13047cat >>confdefs.h <<\_ACEOF
13048#define HAVE_PTHREAD_RWLOCK_INIT 1
13049_ACEOF
13050
13051fi
13052
13053 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13054echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13055if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13056 echo $ECHO_N "(cached) $ECHO_C" >&6
13057else
13058 ac_func_search_save_LIBS=$LIBS
13059cat >conftest.$ac_ext <<_ACEOF
13060/* confdefs.h. */
13061_ACEOF
13062cat confdefs.h >>conftest.$ac_ext
13063cat >>conftest.$ac_ext <<_ACEOF
13064/* end confdefs.h. */
13065
13066/* Override any GCC internal prototype to avoid an error.
13067 Use char because int might match the return type of a GCC
13068 builtin and then its argument prototype would still apply. */
13069#ifdef __cplusplus
13070extern "C"
13071#endif
13072char pthread_getspecific ();
13073int
13074main ()
13075{
13076return pthread_getspecific ();
13077 ;
13078 return 0;
13079}
13080_ACEOF
13081for ac_lib in '' pthread; do
13082 if test -z "$ac_lib"; then
13083 ac_res="none required"
13084 else
13085 ac_res=-l$ac_lib
13086 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13087 fi
13088 rm -f conftest.$ac_objext conftest$ac_exeext
13089if { (ac_try="$ac_link"
13090case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13093esac
13094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095 (eval "$ac_link") 2>conftest.er1
13096 ac_status=$?
13097 grep -v '^ *+' conftest.er1 >conftest.err
13098 rm -f conftest.er1
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } &&
13102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13103 { (case "(($ac_try" in
13104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105 *) ac_try_echo=$ac_try;;
13106esac
13107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13108 (eval "$ac_try") 2>&5
13109 ac_status=$?
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }; } &&
13112 { ac_try='test -s conftest$ac_exeext'
13113 { (case "(($ac_try" in
13114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13115 *) ac_try_echo=$ac_try;;
13116esac
13117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13118 (eval "$ac_try") 2>&5
13119 ac_status=$?
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; }; then
13122 ac_cv_search_pthread_getspecific=$ac_res
13123else
13124 echo "$as_me: failed program was:" >&5
13125sed 's/^/| /' conftest.$ac_ext >&5
13126
13127
13128fi
13129
13130rm -f core conftest.err conftest.$ac_objext \
13131 conftest$ac_exeext
13132 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13133 break
13134fi
13135done
13136if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13137 :
13138else
13139 ac_cv_search_pthread_getspecific=no
13140fi
13141rm conftest.$ac_ext
13142LIBS=$ac_func_search_save_LIBS
13143fi
13144{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13145echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13146ac_res=$ac_cv_search_pthread_getspecific
13147if test "$ac_res" != no; then
13148 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13149
13150cat >>confdefs.h <<\_ACEOF
13151#define HAVE_PTHREAD_GETSPECIFIC 1
13152_ACEOF
13153
13154fi
13155
13156fi
13157
13158
13159# Check whether --with-udis86 was given.
13160if test "${with_udis86+set}" = set; then
13161 withval=$with_udis86;
13162 USE_UDIS86=1
13163
13164 case "$withval" in
13165 /usr/lib|yes) ;;
13166 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13167 esac
13168
13169{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13170echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13171if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13172 echo $ECHO_N "(cached) $ECHO_C" >&6
13173else
13174 ac_check_lib_save_LIBS=$LIBS
13175LIBS="-ludis86 $LIBS"
13176cat >conftest.$ac_ext <<_ACEOF
13177/* confdefs.h. */
13178_ACEOF
13179cat confdefs.h >>conftest.$ac_ext
13180cat >>conftest.$ac_ext <<_ACEOF
13181/* end confdefs.h. */
13182
13183/* Override any GCC internal prototype to avoid an error.
13184 Use char because int might match the return type of a GCC
13185 builtin and then its argument prototype would still apply. */
13186#ifdef __cplusplus
13187extern "C"
13188#endif
13189char ud_init ();
13190int
13191main ()
13192{
13193return ud_init ();
13194 ;
13195 return 0;
13196}
13197_ACEOF
13198rm -f conftest.$ac_objext conftest$ac_exeext
13199if { (ac_try="$ac_link"
13200case "(($ac_try" in
13201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13202 *) ac_try_echo=$ac_try;;
13203esac
13204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13205 (eval "$ac_link") 2>conftest.er1
13206 ac_status=$?
13207 grep -v '^ *+' conftest.er1 >conftest.err
13208 rm -f conftest.er1
13209 cat conftest.err >&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } &&
13212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13213 { (case "(($ac_try" in
13214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215 *) ac_try_echo=$ac_try;;
13216esac
13217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13218 (eval "$ac_try") 2>&5
13219 ac_status=$?
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; } &&
13222 { ac_try='test -s conftest$ac_exeext'
13223 { (case "(($ac_try" in
13224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225 *) ac_try_echo=$ac_try;;
13226esac
13227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13228 (eval "$ac_try") 2>&5
13229 ac_status=$?
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; }; then
13232 ac_cv_lib_udis86_ud_init=yes
13233else
13234 echo "$as_me: failed program was:" >&5
13235sed 's/^/| /' conftest.$ac_ext >&5
13236
13237 ac_cv_lib_udis86_ud_init=no
13238fi
13239
13240rm -f core conftest.err conftest.$ac_objext \
13241 conftest$ac_exeext conftest.$ac_ext
13242LIBS=$ac_check_lib_save_LIBS
13243fi
13244{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13245echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13246if test $ac_cv_lib_udis86_ud_init = yes; then
13247 cat >>confdefs.h <<_ACEOF
13248#define HAVE_LIBUDIS86 1
13249_ACEOF
13250
13251 LIBS="-ludis86 $LIBS"
13252
13253else
13254
13255 echo "Error! You need to have libudis86 around."
13256 exit -1
13257
13258fi
13259
13260
13261else
13262 USE_UDIS86=0
13263
13264fi
13265
13266
13267cat >>confdefs.h <<_ACEOF
13268#define USE_UDIS86 $USE_UDIS86
13269_ACEOF
13270
13271
13272
13273# Check whether --with-oprofile was given.
13274if test "${with_oprofile+set}" = set; then
13275 withval=$with_oprofile;
13276 USE_OPROFILE=1
13277
13278 case "$withval" in
13279 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13280 no) llvm_cv_oppath=
13281 USE_OPROFILE=0
13282 ;;
13283 *) llvm_cv_oppath="${withval}/lib/oprofile"
13284 CPPFLAGS="-I${withval}/include";;
13285 esac
13286 if test -n "$llvm_cv_oppath" ; then
13287 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13288 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13289echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13290if test "${ac_cv_search_bfd_init+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13292else
13293 ac_func_search_save_LIBS=$LIBS
13294cat >conftest.$ac_ext <<_ACEOF
13295/* confdefs.h. */
13296_ACEOF
13297cat confdefs.h >>conftest.$ac_ext
13298cat >>conftest.$ac_ext <<_ACEOF
13299/* end confdefs.h. */
13300
13301/* Override any GCC internal prototype to avoid an error.
13302 Use char because int might match the return type of a GCC
13303 builtin and then its argument prototype would still apply. */
13304#ifdef __cplusplus
13305extern "C"
13306#endif
13307char bfd_init ();
13308int
13309main ()
13310{
13311return bfd_init ();
13312 ;
13313 return 0;
13314}
13315_ACEOF
13316for ac_lib in '' bfd; do
13317 if test -z "$ac_lib"; then
13318 ac_res="none required"
13319 else
13320 ac_res=-l$ac_lib
13321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13322 fi
13323 rm -f conftest.$ac_objext conftest$ac_exeext
13324if { (ac_try="$ac_link"
13325case "(($ac_try" in
13326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327 *) ac_try_echo=$ac_try;;
13328esac
13329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330 (eval "$ac_link") 2>conftest.er1
13331 ac_status=$?
13332 grep -v '^ *+' conftest.er1 >conftest.err
13333 rm -f conftest.er1
13334 cat conftest.err >&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); } &&
13337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13338 { (case "(($ac_try" in
13339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13340 *) ac_try_echo=$ac_try;;
13341esac
13342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13343 (eval "$ac_try") 2>&5
13344 ac_status=$?
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); }; } &&
13347 { ac_try='test -s conftest$ac_exeext'
13348 { (case "(($ac_try" in
13349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350 *) ac_try_echo=$ac_try;;
13351esac
13352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353 (eval "$ac_try") 2>&5
13354 ac_status=$?
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; }; then
13357 ac_cv_search_bfd_init=$ac_res
13358else
13359 echo "$as_me: failed program was:" >&5
13360sed 's/^/| /' conftest.$ac_ext >&5
13361
13362
13363fi
13364
13365rm -f core conftest.err conftest.$ac_objext \
13366 conftest$ac_exeext
13367 if test "${ac_cv_search_bfd_init+set}" = set; then
13368 break
13369fi
13370done
13371if test "${ac_cv_search_bfd_init+set}" = set; then
13372 :
13373else
13374 ac_cv_search_bfd_init=no
13375fi
13376rm conftest.$ac_ext
13377LIBS=$ac_func_search_save_LIBS
13378fi
13379{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13380echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13381ac_res=$ac_cv_search_bfd_init
13382if test "$ac_res" != no; then
13383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13384
13385fi
13386
13387 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13388echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13389if test "${ac_cv_search_op_open_agent+set}" = set; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13391else
13392 ac_func_search_save_LIBS=$LIBS
13393cat >conftest.$ac_ext <<_ACEOF
13394/* confdefs.h. */
13395_ACEOF
13396cat confdefs.h >>conftest.$ac_ext
13397cat >>conftest.$ac_ext <<_ACEOF
13398/* end confdefs.h. */
13399
13400/* Override any GCC internal prototype to avoid an error.
13401 Use char because int might match the return type of a GCC
13402 builtin and then its argument prototype would still apply. */
13403#ifdef __cplusplus
13404extern "C"
13405#endif
13406char op_open_agent ();
13407int
13408main ()
13409{
13410return op_open_agent ();
13411 ;
13412 return 0;
13413}
13414_ACEOF
13415for ac_lib in '' opagent; do
13416 if test -z "$ac_lib"; then
13417 ac_res="none required"
13418 else
13419 ac_res=-l$ac_lib
13420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13421 fi
13422 rm -f conftest.$ac_objext conftest$ac_exeext
13423if { (ac_try="$ac_link"
13424case "(($ac_try" in
13425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426 *) ac_try_echo=$ac_try;;
13427esac
13428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13429 (eval "$ac_link") 2>conftest.er1
13430 ac_status=$?
13431 grep -v '^ *+' conftest.er1 >conftest.err
13432 rm -f conftest.er1
13433 cat conftest.err >&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); } &&
13436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13437 { (case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13440esac
13441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_try") 2>&5
13443 ac_status=$?
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; } &&
13446 { ac_try='test -s conftest$ac_exeext'
13447 { (case "(($ac_try" in
13448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449 *) ac_try_echo=$ac_try;;
13450esac
13451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452 (eval "$ac_try") 2>&5
13453 ac_status=$?
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; }; then
13456 ac_cv_search_op_open_agent=$ac_res
13457else
13458 echo "$as_me: failed program was:" >&5
13459sed 's/^/| /' conftest.$ac_ext >&5
13460
13461
13462fi
13463
13464rm -f core conftest.err conftest.$ac_objext \
13465 conftest$ac_exeext
13466 if test "${ac_cv_search_op_open_agent+set}" = set; then
13467 break
13468fi
13469done
13470if test "${ac_cv_search_op_open_agent+set}" = set; then
13471 :
13472else
13473 ac_cv_search_op_open_agent=no
13474fi
13475rm conftest.$ac_ext
13476LIBS=$ac_func_search_save_LIBS
13477fi
13478{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13479echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13480ac_res=$ac_cv_search_op_open_agent
13481if test "$ac_res" != no; then
13482 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13483
13484else
13485
13486 echo "Error! You need to have libopagent around."
13487 exit -1
13488
13489fi
13490
13491 if test "${ac_cv_header_opagent_h+set}" = set; then
13492 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13493echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13494if test "${ac_cv_header_opagent_h+set}" = set; then
13495 echo $ECHO_N "(cached) $ECHO_C" >&6
13496fi
13497{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13498echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13499else
13500 # Is the header compilable?
13501{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13502echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13503cat >conftest.$ac_ext <<_ACEOF
13504/* confdefs.h. */
13505_ACEOF
13506cat confdefs.h >>conftest.$ac_ext
13507cat >>conftest.$ac_ext <<_ACEOF
13508/* end confdefs.h. */
13509$ac_includes_default
13510#include <opagent.h>
13511_ACEOF
13512rm -f conftest.$ac_objext
13513if { (ac_try="$ac_compile"
13514case "(($ac_try" in
13515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516 *) ac_try_echo=$ac_try;;
13517esac
13518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519 (eval "$ac_compile") 2>conftest.er1
13520 ac_status=$?
13521 grep -v '^ *+' conftest.er1 >conftest.err
13522 rm -f conftest.er1
13523 cat conftest.err >&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } &&
13526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13527 { (case "(($ac_try" in
13528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529 *) ac_try_echo=$ac_try;;
13530esac
13531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13532 (eval "$ac_try") 2>&5
13533 ac_status=$?
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; } &&
13536 { ac_try='test -s conftest.$ac_objext'
13537 { (case "(($ac_try" in
13538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13539 *) ac_try_echo=$ac_try;;
13540esac
13541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13542 (eval "$ac_try") 2>&5
13543 ac_status=$?
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; }; then
13546 ac_header_compiler=yes
13547else
13548 echo "$as_me: failed program was:" >&5
13549sed 's/^/| /' conftest.$ac_ext >&5
13550
13551 ac_header_compiler=no
13552fi
13553
13554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13555{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13556echo "${ECHO_T}$ac_header_compiler" >&6; }
13557
13558# Is the header present?
13559{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13560echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13561cat >conftest.$ac_ext <<_ACEOF
13562/* confdefs.h. */
13563_ACEOF
13564cat confdefs.h >>conftest.$ac_ext
13565cat >>conftest.$ac_ext <<_ACEOF
13566/* end confdefs.h. */
13567#include <opagent.h>
13568_ACEOF
13569if { (ac_try="$ac_cpp conftest.$ac_ext"
13570case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13573esac
13574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13576 ac_status=$?
13577 grep -v '^ *+' conftest.er1 >conftest.err
13578 rm -f conftest.er1
13579 cat conftest.err >&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } >/dev/null; then
13582 if test -s conftest.err; then
13583 ac_cpp_err=$ac_c_preproc_warn_flag
13584 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13585 else
13586 ac_cpp_err=
13587 fi
13588else
13589 ac_cpp_err=yes
13590fi
13591if test -z "$ac_cpp_err"; then
13592 ac_header_preproc=yes
13593else
13594 echo "$as_me: failed program was:" >&5
13595sed 's/^/| /' conftest.$ac_ext >&5
13596
13597 ac_header_preproc=no
13598fi
13599
13600rm -f conftest.err conftest.$ac_ext
13601{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13602echo "${ECHO_T}$ac_header_preproc" >&6; }
13603
13604# So? What about this header?
13605case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13606 yes:no: )
13607 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13608echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13609 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13610echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13611 ac_header_preproc=yes
13612 ;;
13613 no:yes:* )
13614 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13615echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13616 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13617echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13618 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13619echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13620 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13621echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13622 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13623echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13624 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13625echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13626 ( cat <<\_ASBOX
13627## ------------------------------ ##
13628## Report this to bugs@yourdomain ##
13629## ------------------------------ ##
13630_ASBOX
13631 ) | sed "s/^/$as_me: WARNING: /" >&2
13632 ;;
13633esac
13634{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13635echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13636if test "${ac_cv_header_opagent_h+set}" = set; then
13637 echo $ECHO_N "(cached) $ECHO_C" >&6
13638else
13639 ac_cv_header_opagent_h=$ac_header_preproc
13640fi
13641{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13642echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13643
13644fi
13645if test $ac_cv_header_opagent_h = yes; then
13646 :
13647else
13648
13649 echo "Error! You need to have opagent.h around."
13650 exit -1
13651
13652fi
13653
13654
13655 fi
13656
13657else
13658
13659 USE_OPROFILE=0
13660
13661
13662fi
13663
13664
13665cat >>confdefs.h <<_ACEOF
13666#define USE_OPROFILE $USE_OPROFILE
13667_ACEOF
13668
13669
13670
13671
13672
13673
13674
13675
13676ac_header_dirent=no
13677for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13678 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13679{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13680echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13682 echo $ECHO_N "(cached) $ECHO_C" >&6
13683else
13684 cat >conftest.$ac_ext <<_ACEOF
13685/* confdefs.h. */
13686_ACEOF
13687cat confdefs.h >>conftest.$ac_ext
13688cat >>conftest.$ac_ext <<_ACEOF
13689/* end confdefs.h. */
13690#include <sys/types.h>
13691#include <$ac_hdr>
13692
13693int
13694main ()
13695{
13696if ((DIR *) 0)
13697return 0;
13698 ;
13699 return 0;
13700}
13701_ACEOF
13702rm -f conftest.$ac_objext
13703if { (ac_try="$ac_compile"
13704case "(($ac_try" in
13705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13707esac
13708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_compile") 2>conftest.er1
13710 ac_status=$?
13711 grep -v '^ *+' conftest.er1 >conftest.err
13712 rm -f conftest.er1
13713 cat conftest.err >&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); } &&
13716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13717 { (case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13720esac
13721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_try") 2>&5
13723 ac_status=$?
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; } &&
13726 { ac_try='test -s conftest.$ac_objext'
13727 { (case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13730esac
13731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_try") 2>&5
13733 ac_status=$?
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; }; then
13736 eval "$as_ac_Header=yes"
13737else
13738 echo "$as_me: failed program was:" >&5
13739sed 's/^/| /' conftest.$ac_ext >&5
13740
13741 eval "$as_ac_Header=no"
13742fi
13743
13744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13745fi
13746ac_res=`eval echo '${'$as_ac_Header'}'`
13747 { echo "$as_me:$LINENO: result: $ac_res" >&5
13748echo "${ECHO_T}$ac_res" >&6; }
13749if test `eval echo '${'$as_ac_Header'}'` = yes; then
13750 cat >>confdefs.h <<_ACEOF
13751#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13752_ACEOF
13753
13754ac_header_dirent=$ac_hdr; break
13755fi
13756
13757done
13758# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13759if test $ac_header_dirent = dirent.h; then
13760 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13761echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13762if test "${ac_cv_search_opendir+set}" = set; then
13763 echo $ECHO_N "(cached) $ECHO_C" >&6
13764else
13765 ac_func_search_save_LIBS=$LIBS
13766cat >conftest.$ac_ext <<_ACEOF
13767/* confdefs.h. */
13768_ACEOF
13769cat confdefs.h >>conftest.$ac_ext
13770cat >>conftest.$ac_ext <<_ACEOF
13771/* end confdefs.h. */
13772
13773/* Override any GCC internal prototype to avoid an error.
13774 Use char because int might match the return type of a GCC
13775 builtin and then its argument prototype would still apply. */
13776#ifdef __cplusplus
13777extern "C"
13778#endif
13779char opendir ();
13780int
13781main ()
13782{
13783return opendir ();
13784 ;
13785 return 0;
13786}
13787_ACEOF
13788for ac_lib in '' dir; do
13789 if test -z "$ac_lib"; then
13790 ac_res="none required"
13791 else
13792 ac_res=-l$ac_lib
13793 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13794 fi
13795 rm -f conftest.$ac_objext conftest$ac_exeext
13796if { (ac_try="$ac_link"
13797case "(($ac_try" in
13798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13799 *) ac_try_echo=$ac_try;;
13800esac
13801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13802 (eval "$ac_link") 2>conftest.er1
13803 ac_status=$?
13804 grep -v '^ *+' conftest.er1 >conftest.err
13805 rm -f conftest.er1
13806 cat conftest.err >&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); } &&
13809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13810 { (case "(($ac_try" in
13811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812 *) ac_try_echo=$ac_try;;
13813esac
13814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13815 (eval "$ac_try") 2>&5
13816 ac_status=$?
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; } &&
13819 { ac_try='test -s conftest$ac_exeext'
13820 { (case "(($ac_try" in
13821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822 *) ac_try_echo=$ac_try;;
13823esac
13824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825 (eval "$ac_try") 2>&5
13826 ac_status=$?
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }; }; then
13829 ac_cv_search_opendir=$ac_res
13830else
13831 echo "$as_me: failed program was:" >&5
13832sed 's/^/| /' conftest.$ac_ext >&5
13833
13834
13835fi
13836
13837rm -f core conftest.err conftest.$ac_objext \
13838 conftest$ac_exeext
13839 if test "${ac_cv_search_opendir+set}" = set; then
13840 break
13841fi
13842done
13843if test "${ac_cv_search_opendir+set}" = set; then
13844 :
13845else
13846 ac_cv_search_opendir=no
13847fi
13848rm conftest.$ac_ext
13849LIBS=$ac_func_search_save_LIBS
13850fi
13851{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13852echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13853ac_res=$ac_cv_search_opendir
13854if test "$ac_res" != no; then
13855 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13856
13857fi
13858
13859else
13860 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13861echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13862if test "${ac_cv_search_opendir+set}" = set; then
13863 echo $ECHO_N "(cached) $ECHO_C" >&6
13864else
13865 ac_func_search_save_LIBS=$LIBS
13866cat >conftest.$ac_ext <<_ACEOF
13867/* confdefs.h. */
13868_ACEOF
13869cat confdefs.h >>conftest.$ac_ext
13870cat >>conftest.$ac_ext <<_ACEOF
13871/* end confdefs.h. */
13872
13873/* Override any GCC internal prototype to avoid an error.
13874 Use char because int might match the return type of a GCC
13875 builtin and then its argument prototype would still apply. */
13876#ifdef __cplusplus
13877extern "C"
13878#endif
13879char opendir ();
13880int
13881main ()
13882{
13883return opendir ();
13884 ;
13885 return 0;
13886}
13887_ACEOF
13888for ac_lib in '' x; do
13889 if test -z "$ac_lib"; then
13890 ac_res="none required"
13891 else
13892 ac_res=-l$ac_lib
13893 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13894 fi
13895 rm -f conftest.$ac_objext conftest$ac_exeext
13896if { (ac_try="$ac_link"
13897case "(($ac_try" in
13898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13900esac
13901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13902 (eval "$ac_link") 2>conftest.er1
13903 ac_status=$?
13904 grep -v '^ *+' conftest.er1 >conftest.err
13905 rm -f conftest.er1
13906 cat conftest.err >&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); } &&
13909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13910 { (case "(($ac_try" in
13911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13912 *) ac_try_echo=$ac_try;;
13913esac
13914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13915 (eval "$ac_try") 2>&5
13916 ac_status=$?
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; } &&
13919 { ac_try='test -s conftest$ac_exeext'
13920 { (case "(($ac_try" in
13921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13922 *) ac_try_echo=$ac_try;;
13923esac
13924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13925 (eval "$ac_try") 2>&5
13926 ac_status=$?
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; }; then
13929 ac_cv_search_opendir=$ac_res
13930else
13931 echo "$as_me: failed program was:" >&5
13932sed 's/^/| /' conftest.$ac_ext >&5
13933
13934
13935fi
13936
13937rm -f core conftest.err conftest.$ac_objext \
13938 conftest$ac_exeext
13939 if test "${ac_cv_search_opendir+set}" = set; then
13940 break
13941fi
13942done
13943if test "${ac_cv_search_opendir+set}" = set; then
13944 :
13945else
13946 ac_cv_search_opendir=no
13947fi
13948rm conftest.$ac_ext
13949LIBS=$ac_func_search_save_LIBS
13950fi
13951{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13952echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13953ac_res=$ac_cv_search_opendir
13954if test "$ac_res" != no; then
13955 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13956
13957fi
13958
13959fi
13960
13961{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13962echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13963if test "${ac_cv_header_mmap_anon+set}" = set; then
13964 echo $ECHO_N "(cached) $ECHO_C" >&6
13965else
13966 ac_ext=c
13967ac_cpp='$CPP $CPPFLAGS'
13968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13970ac_compiler_gnu=$ac_cv_c_compiler_gnu
13971
13972 cat >conftest.$ac_ext <<_ACEOF
13973/* confdefs.h. */
13974_ACEOF
13975cat confdefs.h >>conftest.$ac_ext
13976cat >>conftest.$ac_ext <<_ACEOF
13977/* end confdefs.h. */
13978#include <sys/mman.h>
13979#include <unistd.h>
13980#include <fcntl.h>
13981int
13982main ()
13983{
13984mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
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_mmap_anon=yes
14024else
14025 echo "$as_me: failed program was:" >&5
14026sed 's/^/| /' conftest.$ac_ext >&5
14027
14028 ac_cv_header_mmap_anon=no
14029fi
14030
14031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14032 ac_ext=c
14033ac_cpp='$CPP $CPPFLAGS'
14034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14036ac_compiler_gnu=$ac_cv_c_compiler_gnu
14037
14038
14039fi
14040{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14041echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14042if test "$ac_cv_header_mmap_anon" = yes; then
14043
14044cat >>confdefs.h <<\_ACEOF
14045#define HAVE_MMAP_ANONYMOUS 1
14046_ACEOF
14047
14048fi
14049
14050{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14051echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14052if test "${ac_cv_header_stat_broken+set}" = set; then
14053 echo $ECHO_N "(cached) $ECHO_C" >&6
14054else
14055 cat >conftest.$ac_ext <<_ACEOF
14056/* confdefs.h. */
14057_ACEOF
14058cat confdefs.h >>conftest.$ac_ext
14059cat >>conftest.$ac_ext <<_ACEOF
14060/* end confdefs.h. */
14061#include <sys/types.h>
14062#include <sys/stat.h>
14063
14064#if defined S_ISBLK && defined S_IFDIR
14065# if S_ISBLK (S_IFDIR)
14066You lose.
14067# endif
14068#endif
14069
14070#if defined S_ISBLK && defined S_IFCHR
14071# if S_ISBLK (S_IFCHR)
14072You lose.
14073# endif
14074#endif
14075
14076#if defined S_ISLNK && defined S_IFREG
14077# if S_ISLNK (S_IFREG)
14078You lose.
14079# endif
14080#endif
14081
14082#if defined S_ISSOCK && defined S_IFREG
14083# if S_ISSOCK (S_IFREG)
14084You lose.
14085# endif
14086#endif
14087
14088_ACEOF
14089if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14090 $EGREP "You lose" >/dev/null 2>&1; then
14091 ac_cv_header_stat_broken=yes
14092else
14093 ac_cv_header_stat_broken=no
14094fi
14095rm -f conftest*
14096
14097fi
14098{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14099echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14100if test $ac_cv_header_stat_broken = yes; then
14101
14102cat >>confdefs.h <<\_ACEOF
14103#define STAT_MACROS_BROKEN 1
14104_ACEOF
14105
14106fi
14107
14108{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14109echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14110if test "${ac_cv_header_sys_wait_h+set}" = set; then
14111 echo $ECHO_N "(cached) $ECHO_C" >&6
14112else
14113 cat >conftest.$ac_ext <<_ACEOF
14114/* confdefs.h. */
14115_ACEOF
14116cat confdefs.h >>conftest.$ac_ext
14117cat >>conftest.$ac_ext <<_ACEOF
14118/* end confdefs.h. */
14119#include <sys/types.h>
14120#include <sys/wait.h>
14121#ifndef WEXITSTATUS
14122# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14123#endif
14124#ifndef WIFEXITED
14125# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14126#endif
14127
14128int
14129main ()
14130{
14131 int s;
14132 wait (&s);
14133 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14134 ;
14135 return 0;
14136}
14137_ACEOF
14138rm -f conftest.$ac_objext
14139if { (ac_try="$ac_compile"
14140case "(($ac_try" in
14141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14142 *) ac_try_echo=$ac_try;;
14143esac
14144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14145 (eval "$ac_compile") 2>conftest.er1
14146 ac_status=$?
14147 grep -v '^ *+' conftest.er1 >conftest.err
14148 rm -f conftest.er1
14149 cat conftest.err >&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); } &&
14152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14153 { (case "(($ac_try" in
14154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155 *) ac_try_echo=$ac_try;;
14156esac
14157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14158 (eval "$ac_try") 2>&5
14159 ac_status=$?
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); }; } &&
14162 { ac_try='test -s conftest.$ac_objext'
14163 { (case "(($ac_try" in
14164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165 *) ac_try_echo=$ac_try;;
14166esac
14167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14168 (eval "$ac_try") 2>&5
14169 ac_status=$?
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; }; then
14172 ac_cv_header_sys_wait_h=yes
14173else
14174 echo "$as_me: failed program was:" >&5
14175sed 's/^/| /' conftest.$ac_ext >&5
14176
14177 ac_cv_header_sys_wait_h=no
14178fi
14179
14180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14181fi
14182{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14183echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14184if test $ac_cv_header_sys_wait_h = yes; then
14185
14186cat >>confdefs.h <<\_ACEOF
14187#define HAVE_SYS_WAIT_H 1
14188_ACEOF
14189
14190fi
14191
14192{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14193echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14194if test "${ac_cv_header_time+set}" = set; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14196else
14197 cat >conftest.$ac_ext <<_ACEOF
14198/* confdefs.h. */
14199_ACEOF
14200cat confdefs.h >>conftest.$ac_ext
14201cat >>conftest.$ac_ext <<_ACEOF
14202/* end confdefs.h. */
14203#include <sys/types.h>
14204#include <sys/time.h>
14205#include <time.h>
14206
14207int
14208main ()
14209{
14210if ((struct tm *) 0)
14211return 0;
14212 ;
14213 return 0;
14214}
14215_ACEOF
14216rm -f conftest.$ac_objext
14217if { (ac_try="$ac_compile"
14218case "(($ac_try" in
14219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220 *) ac_try_echo=$ac_try;;
14221esac
14222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223 (eval "$ac_compile") 2>conftest.er1
14224 ac_status=$?
14225 grep -v '^ *+' conftest.er1 >conftest.err
14226 rm -f conftest.er1
14227 cat conftest.err >&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); } &&
14230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14231 { (case "(($ac_try" in
14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233 *) ac_try_echo=$ac_try;;
14234esac
14235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236 (eval "$ac_try") 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; } &&
14240 { ac_try='test -s conftest.$ac_objext'
14241 { (case "(($ac_try" in
14242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14243 *) ac_try_echo=$ac_try;;
14244esac
14245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14246 (eval "$ac_try") 2>&5
14247 ac_status=$?
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); }; }; then
14250 ac_cv_header_time=yes
14251else
14252 echo "$as_me: failed program was:" >&5
14253sed 's/^/| /' conftest.$ac_ext >&5
14254
14255 ac_cv_header_time=no
14256fi
14257
14258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14259fi
14260{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14261echo "${ECHO_T}$ac_cv_header_time" >&6; }
14262if test $ac_cv_header_time = yes; then
14263
14264cat >>confdefs.h <<\_ACEOF
14265#define TIME_WITH_SYS_TIME 1
14266_ACEOF
14267
14268fi
14269
14270
14271
14272
14273
14274
14275
14276
14277for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14278do
14279as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14283if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14284 echo $ECHO_N "(cached) $ECHO_C" >&6
14285fi
14286ac_res=`eval echo '${'$as_ac_Header'}'`
14287 { echo "$as_me:$LINENO: result: $ac_res" >&5
14288echo "${ECHO_T}$ac_res" >&6; }
14289else
14290 # Is the header compilable?
14291{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14292echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14293cat >conftest.$ac_ext <<_ACEOF
14294/* confdefs.h. */
14295_ACEOF
14296cat confdefs.h >>conftest.$ac_ext
14297cat >>conftest.$ac_ext <<_ACEOF
14298/* end confdefs.h. */
14299$ac_includes_default
14300#include <$ac_header>
14301_ACEOF
14302rm -f conftest.$ac_objext
14303if { (ac_try="$ac_compile"
14304case "(($ac_try" in
14305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306 *) ac_try_echo=$ac_try;;
14307esac
14308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309 (eval "$ac_compile") 2>conftest.er1
14310 ac_status=$?
14311 grep -v '^ *+' conftest.er1 >conftest.err
14312 rm -f conftest.er1
14313 cat conftest.err >&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } &&
14316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14317 { (case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14320esac
14321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_try") 2>&5
14323 ac_status=$?
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; } &&
14326 { ac_try='test -s conftest.$ac_objext'
14327 { (case "(($ac_try" in
14328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329 *) ac_try_echo=$ac_try;;
14330esac
14331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332 (eval "$ac_try") 2>&5
14333 ac_status=$?
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; }; then
14336 ac_header_compiler=yes
14337else
14338 echo "$as_me: failed program was:" >&5
14339sed 's/^/| /' conftest.$ac_ext >&5
14340
14341 ac_header_compiler=no
14342fi
14343
14344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14345{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14346echo "${ECHO_T}$ac_header_compiler" >&6; }
14347
14348# Is the header present?
14349{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14350echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14351cat >conftest.$ac_ext <<_ACEOF
14352/* confdefs.h. */
14353_ACEOF
14354cat confdefs.h >>conftest.$ac_ext
14355cat >>conftest.$ac_ext <<_ACEOF
14356/* end confdefs.h. */
14357#include <$ac_header>
14358_ACEOF
14359if { (ac_try="$ac_cpp conftest.$ac_ext"
14360case "(($ac_try" in
14361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14362 *) ac_try_echo=$ac_try;;
14363esac
14364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14366 ac_status=$?
14367 grep -v '^ *+' conftest.er1 >conftest.err
14368 rm -f conftest.er1
14369 cat conftest.err >&5
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); } >/dev/null; then
14372 if test -s conftest.err; then
14373 ac_cpp_err=$ac_c_preproc_warn_flag
14374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14375 else
14376 ac_cpp_err=
14377 fi
14378else
14379 ac_cpp_err=yes
14380fi
14381if test -z "$ac_cpp_err"; then
14382 ac_header_preproc=yes
14383else
14384 echo "$as_me: failed program was:" >&5
14385sed 's/^/| /' conftest.$ac_ext >&5
14386
14387 ac_header_preproc=no
14388fi
14389
14390rm -f conftest.err conftest.$ac_ext
14391{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14392echo "${ECHO_T}$ac_header_preproc" >&6; }
14393
14394# So? What about this header?
14395case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14396 yes:no: )
14397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14398echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14400echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14401 ac_header_preproc=yes
14402 ;;
14403 no:yes:* )
14404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14405echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14407echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14408 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14409echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14410 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14411echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14413echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14414 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14415echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14416 ( cat <<\_ASBOX
14417## ------------------------------ ##
14418## Report this to bugs@yourdomain ##
14419## ------------------------------ ##
14420_ASBOX
14421 ) | sed "s/^/$as_me: WARNING: /" >&2
14422 ;;
14423esac
14424{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14425echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14426if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14428else
14429 eval "$as_ac_Header=\$ac_header_preproc"
14430fi
14431ac_res=`eval echo '${'$as_ac_Header'}'`
14432 { echo "$as_me:$LINENO: result: $ac_res" >&5
14433echo "${ECHO_T}$ac_res" >&6; }
14434
14435fi
14436if test `eval echo '${'$as_ac_Header'}'` = yes; then
14437 cat >>confdefs.h <<_ACEOF
14438#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14439_ACEOF
14440
14441fi
14442
14443done
14444
14445
14446
14447
14448
14449
14450
14451for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14452do
14453as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14454if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14456echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14457if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14458 echo $ECHO_N "(cached) $ECHO_C" >&6
14459fi
14460ac_res=`eval echo '${'$as_ac_Header'}'`
14461 { echo "$as_me:$LINENO: result: $ac_res" >&5
14462echo "${ECHO_T}$ac_res" >&6; }
14463else
14464 # Is the header compilable?
14465{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14466echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14467cat >conftest.$ac_ext <<_ACEOF
14468/* confdefs.h. */
14469_ACEOF
14470cat confdefs.h >>conftest.$ac_ext
14471cat >>conftest.$ac_ext <<_ACEOF
14472/* end confdefs.h. */
14473$ac_includes_default
14474#include <$ac_header>
14475_ACEOF
14476rm -f conftest.$ac_objext
14477if { (ac_try="$ac_compile"
14478case "(($ac_try" in
14479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480 *) ac_try_echo=$ac_try;;
14481esac
14482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14483 (eval "$ac_compile") 2>conftest.er1
14484 ac_status=$?
14485 grep -v '^ *+' conftest.er1 >conftest.err
14486 rm -f conftest.er1
14487 cat conftest.err >&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); } &&
14490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14491 { (case "(($ac_try" in
14492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493 *) ac_try_echo=$ac_try;;
14494esac
14495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496 (eval "$ac_try") 2>&5
14497 ac_status=$?
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; } &&
14500 { ac_try='test -s conftest.$ac_objext'
14501 { (case "(($ac_try" in
14502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14503 *) ac_try_echo=$ac_try;;
14504esac
14505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14506 (eval "$ac_try") 2>&5
14507 ac_status=$?
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); }; }; then
14510 ac_header_compiler=yes
14511else
14512 echo "$as_me: failed program was:" >&5
14513sed 's/^/| /' conftest.$ac_ext >&5
14514
14515 ac_header_compiler=no
14516fi
14517
14518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14519{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14520echo "${ECHO_T}$ac_header_compiler" >&6; }
14521
14522# Is the header present?
14523{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14524echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14525cat >conftest.$ac_ext <<_ACEOF
14526/* confdefs.h. */
14527_ACEOF
14528cat confdefs.h >>conftest.$ac_ext
14529cat >>conftest.$ac_ext <<_ACEOF
14530/* end confdefs.h. */
14531#include <$ac_header>
14532_ACEOF
14533if { (ac_try="$ac_cpp conftest.$ac_ext"
14534case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14537esac
14538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14540 ac_status=$?
14541 grep -v '^ *+' conftest.er1 >conftest.err
14542 rm -f conftest.er1
14543 cat conftest.err >&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } >/dev/null; then
14546 if test -s conftest.err; then
14547 ac_cpp_err=$ac_c_preproc_warn_flag
14548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14549 else
14550 ac_cpp_err=
14551 fi
14552else
14553 ac_cpp_err=yes
14554fi
14555if test -z "$ac_cpp_err"; then
14556 ac_header_preproc=yes
14557else
14558 echo "$as_me: failed program was:" >&5
14559sed 's/^/| /' conftest.$ac_ext >&5
14560
14561 ac_header_preproc=no
14562fi
14563
14564rm -f conftest.err conftest.$ac_ext
14565{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14566echo "${ECHO_T}$ac_header_preproc" >&6; }
14567
14568# So? What about this header?
14569case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14570 yes:no: )
14571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14572echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14574echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14575 ac_header_preproc=yes
14576 ;;
14577 no:yes:* )
14578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14579echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14581echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14583echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14585echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14587echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14589echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14590 ( cat <<\_ASBOX
14591## ------------------------------ ##
14592## Report this to bugs@yourdomain ##
14593## ------------------------------ ##
14594_ASBOX
14595 ) | sed "s/^/$as_me: WARNING: /" >&2
14596 ;;
14597esac
14598{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14599echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14600if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14601 echo $ECHO_N "(cached) $ECHO_C" >&6
14602else
14603 eval "$as_ac_Header=\$ac_header_preproc"
14604fi
14605ac_res=`eval echo '${'$as_ac_Header'}'`
14606 { echo "$as_me:$LINENO: result: $ac_res" >&5
14607echo "${ECHO_T}$ac_res" >&6; }
14608
14609fi
14610if test `eval echo '${'$as_ac_Header'}'` = yes; then
14611 cat >>confdefs.h <<_ACEOF
14612#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14613_ACEOF
14614
14615fi
14616
14617done
14618
14619
14620
14621for ac_header in utime.h windows.h
14622do
14623as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14624if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14626echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14627if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14628 echo $ECHO_N "(cached) $ECHO_C" >&6
14629fi
14630ac_res=`eval echo '${'$as_ac_Header'}'`
14631 { echo "$as_me:$LINENO: result: $ac_res" >&5
14632echo "${ECHO_T}$ac_res" >&6; }
14633else
14634 # Is the header compilable?
14635{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14636echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14637cat >conftest.$ac_ext <<_ACEOF
14638/* confdefs.h. */
14639_ACEOF
14640cat confdefs.h >>conftest.$ac_ext
14641cat >>conftest.$ac_ext <<_ACEOF
14642/* end confdefs.h. */
14643$ac_includes_default
14644#include <$ac_header>
14645_ACEOF
14646rm -f conftest.$ac_objext
14647if { (ac_try="$ac_compile"
14648case "(($ac_try" in
14649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650 *) ac_try_echo=$ac_try;;
14651esac
14652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653 (eval "$ac_compile") 2>conftest.er1
14654 ac_status=$?
14655 grep -v '^ *+' conftest.er1 >conftest.err
14656 rm -f conftest.er1
14657 cat conftest.err >&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); } &&
14660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14661 { (case "(($ac_try" in
14662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14663 *) ac_try_echo=$ac_try;;
14664esac
14665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14666 (eval "$ac_try") 2>&5
14667 ac_status=$?
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); }; } &&
14670 { ac_try='test -s conftest.$ac_objext'
14671 { (case "(($ac_try" in
14672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14673 *) ac_try_echo=$ac_try;;
14674esac
14675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14676 (eval "$ac_try") 2>&5
14677 ac_status=$?
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; }; then
14680 ac_header_compiler=yes
14681else
14682 echo "$as_me: failed program was:" >&5
14683sed 's/^/| /' conftest.$ac_ext >&5
14684
14685 ac_header_compiler=no
14686fi
14687
14688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14689{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14690echo "${ECHO_T}$ac_header_compiler" >&6; }
14691
14692# Is the header present?
14693{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14694echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14695cat >conftest.$ac_ext <<_ACEOF
14696/* confdefs.h. */
14697_ACEOF
14698cat confdefs.h >>conftest.$ac_ext
14699cat >>conftest.$ac_ext <<_ACEOF
14700/* end confdefs.h. */
14701#include <$ac_header>
14702_ACEOF
14703if { (ac_try="$ac_cpp conftest.$ac_ext"
14704case "(($ac_try" in
14705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14706 *) ac_try_echo=$ac_try;;
14707esac
14708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14710 ac_status=$?
14711 grep -v '^ *+' conftest.er1 >conftest.err
14712 rm -f conftest.er1
14713 cat conftest.err >&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); } >/dev/null; then
14716 if test -s conftest.err; then
14717 ac_cpp_err=$ac_c_preproc_warn_flag
14718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14719 else
14720 ac_cpp_err=
14721 fi
14722else
14723 ac_cpp_err=yes
14724fi
14725if test -z "$ac_cpp_err"; then
14726 ac_header_preproc=yes
14727else
14728 echo "$as_me: failed program was:" >&5
14729sed 's/^/| /' conftest.$ac_ext >&5
14730
14731 ac_header_preproc=no
14732fi
14733
14734rm -f conftest.err conftest.$ac_ext
14735{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14736echo "${ECHO_T}$ac_header_preproc" >&6; }
14737
14738# So? What about this header?
14739case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14740 yes:no: )
14741 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14742echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14744echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14745 ac_header_preproc=yes
14746 ;;
14747 no:yes:* )
14748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14749echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14751echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14752 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14753echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14754 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14755echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14757echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14758 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14759echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14760 ( cat <<\_ASBOX
14761## ------------------------------ ##
14762## Report this to bugs@yourdomain ##
14763## ------------------------------ ##
14764_ASBOX
14765 ) | sed "s/^/$as_me: WARNING: /" >&2
14766 ;;
14767esac
14768{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14769echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14770if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14772else
14773 eval "$as_ac_Header=\$ac_header_preproc"
14774fi
14775ac_res=`eval echo '${'$as_ac_Header'}'`
14776 { echo "$as_me:$LINENO: result: $ac_res" >&5
14777echo "${ECHO_T}$ac_res" >&6; }
14778
14779fi
14780if test `eval echo '${'$as_ac_Header'}'` = yes; then
14781 cat >>confdefs.h <<_ACEOF
14782#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14783_ACEOF
14784
14785fi
14786
14787done
14788
14789
14790
14791
14792
14793
14794for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14795do
14796as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14797if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14798 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14799echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14800if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14801 echo $ECHO_N "(cached) $ECHO_C" >&6
14802fi
14803ac_res=`eval echo '${'$as_ac_Header'}'`
14804 { echo "$as_me:$LINENO: result: $ac_res" >&5
14805echo "${ECHO_T}$ac_res" >&6; }
14806else
14807 # Is the header compilable?
14808{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14809echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14810cat >conftest.$ac_ext <<_ACEOF
14811/* confdefs.h. */
14812_ACEOF
14813cat confdefs.h >>conftest.$ac_ext
14814cat >>conftest.$ac_ext <<_ACEOF
14815/* end confdefs.h. */
14816$ac_includes_default
14817#include <$ac_header>
14818_ACEOF
14819rm -f conftest.$ac_objext
14820if { (ac_try="$ac_compile"
14821case "(($ac_try" in
14822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14823 *) ac_try_echo=$ac_try;;
14824esac
14825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14826 (eval "$ac_compile") 2>conftest.er1
14827 ac_status=$?
14828 grep -v '^ *+' conftest.er1 >conftest.err
14829 rm -f conftest.er1
14830 cat conftest.err >&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); } &&
14833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14834 { (case "(($ac_try" in
14835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14836 *) ac_try_echo=$ac_try;;
14837esac
14838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14839 (eval "$ac_try") 2>&5
14840 ac_status=$?
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); }; } &&
14843 { ac_try='test -s conftest.$ac_objext'
14844 { (case "(($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_try") 2>&5
14850 ac_status=$?
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); }; }; then
14853 ac_header_compiler=yes
14854else
14855 echo "$as_me: failed program was:" >&5
14856sed 's/^/| /' conftest.$ac_ext >&5
14857
14858 ac_header_compiler=no
14859fi
14860
14861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14862{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14863echo "${ECHO_T}$ac_header_compiler" >&6; }
14864
14865# Is the header present?
14866{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14867echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14868cat >conftest.$ac_ext <<_ACEOF
14869/* confdefs.h. */
14870_ACEOF
14871cat confdefs.h >>conftest.$ac_ext
14872cat >>conftest.$ac_ext <<_ACEOF
14873/* end confdefs.h. */
14874#include <$ac_header>
14875_ACEOF
14876if { (ac_try="$ac_cpp conftest.$ac_ext"
14877case "(($ac_try" in
14878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14879 *) ac_try_echo=$ac_try;;
14880esac
14881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14883 ac_status=$?
14884 grep -v '^ *+' conftest.er1 >conftest.err
14885 rm -f conftest.er1
14886 cat conftest.err >&5
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); } >/dev/null; then
14889 if test -s conftest.err; then
14890 ac_cpp_err=$ac_c_preproc_warn_flag
14891 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14892 else
14893 ac_cpp_err=
14894 fi
14895else
14896 ac_cpp_err=yes
14897fi
14898if test -z "$ac_cpp_err"; then
14899 ac_header_preproc=yes
14900else
14901 echo "$as_me: failed program was:" >&5
14902sed 's/^/| /' conftest.$ac_ext >&5
14903
14904 ac_header_preproc=no
14905fi
14906
14907rm -f conftest.err conftest.$ac_ext
14908{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14909echo "${ECHO_T}$ac_header_preproc" >&6; }
14910
14911# So? What about this header?
14912case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14913 yes:no: )
14914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14915echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14917echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14918 ac_header_preproc=yes
14919 ;;
14920 no:yes:* )
14921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14922echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14924echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14925 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14926echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14927 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14928echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14930echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14931 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14932echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14933 ( cat <<\_ASBOX
14934## ------------------------------ ##
14935## Report this to bugs@yourdomain ##
14936## ------------------------------ ##
14937_ASBOX
14938 ) | sed "s/^/$as_me: WARNING: /" >&2
14939 ;;
14940esac
14941{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14943if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14944 echo $ECHO_N "(cached) $ECHO_C" >&6
14945else
14946 eval "$as_ac_Header=\$ac_header_preproc"
14947fi
14948ac_res=`eval echo '${'$as_ac_Header'}'`
14949 { echo "$as_me:$LINENO: result: $ac_res" >&5
14950echo "${ECHO_T}$ac_res" >&6; }
14951
14952fi
14953if test `eval echo '${'$as_ac_Header'}'` = yes; then
14954 cat >>confdefs.h <<_ACEOF
14955#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14956_ACEOF
14957
14958fi
14959
14960done
14961
14962
14963
14964
14965
14966for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14967do
14968as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14969if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14971echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14972if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14974fi
14975ac_res=`eval echo '${'$as_ac_Header'}'`
14976 { echo "$as_me:$LINENO: result: $ac_res" >&5
14977echo "${ECHO_T}$ac_res" >&6; }
14978else
14979 # Is the header compilable?
14980{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14981echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14982cat >conftest.$ac_ext <<_ACEOF
14983/* confdefs.h. */
14984_ACEOF
14985cat confdefs.h >>conftest.$ac_ext
14986cat >>conftest.$ac_ext <<_ACEOF
14987/* end confdefs.h. */
14988$ac_includes_default
14989#include <$ac_header>
14990_ACEOF
14991rm -f conftest.$ac_objext
14992if { (ac_try="$ac_compile"
14993case "(($ac_try" in
14994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14995 *) ac_try_echo=$ac_try;;
14996esac
14997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14998 (eval "$ac_compile") 2>conftest.er1
14999 ac_status=$?
15000 grep -v '^ *+' conftest.er1 >conftest.err
15001 rm -f conftest.er1
15002 cat conftest.err >&5
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); } &&
15005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15006 { (case "(($ac_try" in
15007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15008 *) ac_try_echo=$ac_try;;
15009esac
15010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15011 (eval "$ac_try") 2>&5
15012 ac_status=$?
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; } &&
15015 { ac_try='test -s conftest.$ac_objext'
15016 { (case "(($ac_try" in
15017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15018 *) ac_try_echo=$ac_try;;
15019esac
15020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15021 (eval "$ac_try") 2>&5
15022 ac_status=$?
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); }; }; then
15025 ac_header_compiler=yes
15026else
15027 echo "$as_me: failed program was:" >&5
15028sed 's/^/| /' conftest.$ac_ext >&5
15029
15030 ac_header_compiler=no
15031fi
15032
15033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15034{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15035echo "${ECHO_T}$ac_header_compiler" >&6; }
15036
15037# Is the header present?
15038{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15039echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15040cat >conftest.$ac_ext <<_ACEOF
15041/* confdefs.h. */
15042_ACEOF
15043cat confdefs.h >>conftest.$ac_ext
15044cat >>conftest.$ac_ext <<_ACEOF
15045/* end confdefs.h. */
15046#include <$ac_header>
15047_ACEOF
15048if { (ac_try="$ac_cpp conftest.$ac_ext"
15049case "(($ac_try" in
15050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051 *) ac_try_echo=$ac_try;;
15052esac
15053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15055 ac_status=$?
15056 grep -v '^ *+' conftest.er1 >conftest.err
15057 rm -f conftest.er1
15058 cat conftest.err >&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); } >/dev/null; then
15061 if test -s conftest.err; then
15062 ac_cpp_err=$ac_c_preproc_warn_flag
15063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15064 else
15065 ac_cpp_err=
15066 fi
15067else
15068 ac_cpp_err=yes
15069fi
15070if test -z "$ac_cpp_err"; then
15071 ac_header_preproc=yes
15072else
15073 echo "$as_me: failed program was:" >&5
15074sed 's/^/| /' conftest.$ac_ext >&5
15075
15076 ac_header_preproc=no
15077fi
15078
15079rm -f conftest.err conftest.$ac_ext
15080{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15081echo "${ECHO_T}$ac_header_preproc" >&6; }
15082
15083# So? What about this header?
15084case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15085 yes:no: )
15086 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15087echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15089echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15090 ac_header_preproc=yes
15091 ;;
15092 no:yes:* )
15093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15094echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15096echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15097 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15098echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15099 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15100echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15102echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15103 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15104echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15105 ( cat <<\_ASBOX
15106## ------------------------------ ##
15107## Report this to bugs@yourdomain ##
15108## ------------------------------ ##
15109_ASBOX
15110 ) | sed "s/^/$as_me: WARNING: /" >&2
15111 ;;
15112esac
15113{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15114echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15115if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15116 echo $ECHO_N "(cached) $ECHO_C" >&6
15117else
15118 eval "$as_ac_Header=\$ac_header_preproc"
15119fi
15120ac_res=`eval echo '${'$as_ac_Header'}'`
15121 { echo "$as_me:$LINENO: result: $ac_res" >&5
15122echo "${ECHO_T}$ac_res" >&6; }
15123
15124fi
15125if test `eval echo '${'$as_ac_Header'}'` = yes; then
15126 cat >>confdefs.h <<_ACEOF
15127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15128_ACEOF
15129
15130fi
15131
15132done
15133
15134
15135for ac_header in valgrind/valgrind.h
15136do
15137as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15138if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15139 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15140echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15141if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15142 echo $ECHO_N "(cached) $ECHO_C" >&6
15143fi
15144ac_res=`eval echo '${'$as_ac_Header'}'`
15145 { echo "$as_me:$LINENO: result: $ac_res" >&5
15146echo "${ECHO_T}$ac_res" >&6; }
15147else
15148 # Is the header compilable?
15149{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15150echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15151cat >conftest.$ac_ext <<_ACEOF
15152/* confdefs.h. */
15153_ACEOF
15154cat confdefs.h >>conftest.$ac_ext
15155cat >>conftest.$ac_ext <<_ACEOF
15156/* end confdefs.h. */
15157$ac_includes_default
15158#include <$ac_header>
15159_ACEOF
15160rm -f conftest.$ac_objext
15161if { (ac_try="$ac_compile"
15162case "(($ac_try" in
15163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164 *) ac_try_echo=$ac_try;;
15165esac
15166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15167 (eval "$ac_compile") 2>conftest.er1
15168 ac_status=$?
15169 grep -v '^ *+' conftest.er1 >conftest.err
15170 rm -f conftest.er1
15171 cat conftest.err >&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } &&
15174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15175 { (case "(($ac_try" in
15176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15177 *) ac_try_echo=$ac_try;;
15178esac
15179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15180 (eval "$ac_try") 2>&5
15181 ac_status=$?
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; } &&
15184 { ac_try='test -s conftest.$ac_objext'
15185 { (case "(($ac_try" in
15186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15187 *) ac_try_echo=$ac_try;;
15188esac
15189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15190 (eval "$ac_try") 2>&5
15191 ac_status=$?
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); }; }; then
15194 ac_header_compiler=yes
15195else
15196 echo "$as_me: failed program was:" >&5
15197sed 's/^/| /' conftest.$ac_ext >&5
15198
15199 ac_header_compiler=no
15200fi
15201
15202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15203{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15204echo "${ECHO_T}$ac_header_compiler" >&6; }
15205
15206# Is the header present?
15207{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15208echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15209cat >conftest.$ac_ext <<_ACEOF
15210/* confdefs.h. */
15211_ACEOF
15212cat confdefs.h >>conftest.$ac_ext
15213cat >>conftest.$ac_ext <<_ACEOF
15214/* end confdefs.h. */
15215#include <$ac_header>
15216_ACEOF
15217if { (ac_try="$ac_cpp conftest.$ac_ext"
15218case "(($ac_try" in
15219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220 *) ac_try_echo=$ac_try;;
15221esac
15222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15224 ac_status=$?
15225 grep -v '^ *+' conftest.er1 >conftest.err
15226 rm -f conftest.er1
15227 cat conftest.err >&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } >/dev/null; then
15230 if test -s conftest.err; then
15231 ac_cpp_err=$ac_c_preproc_warn_flag
15232 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15233 else
15234 ac_cpp_err=
15235 fi
15236else
15237 ac_cpp_err=yes
15238fi
15239if test -z "$ac_cpp_err"; then
15240 ac_header_preproc=yes
15241else
15242 echo "$as_me: failed program was:" >&5
15243sed 's/^/| /' conftest.$ac_ext >&5
15244
15245 ac_header_preproc=no
15246fi
15247
15248rm -f conftest.err conftest.$ac_ext
15249{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15250echo "${ECHO_T}$ac_header_preproc" >&6; }
15251
15252# So? What about this header?
15253case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15254 yes:no: )
15255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15256echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15258echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15259 ac_header_preproc=yes
15260 ;;
15261 no:yes:* )
15262 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15263echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15264 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15265echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15266 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15267echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15268 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15269echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15271echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15272 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15273echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15274 ( cat <<\_ASBOX
15275## ------------------------------ ##
15276## Report this to bugs@yourdomain ##
15277## ------------------------------ ##
15278_ASBOX
15279 ) | sed "s/^/$as_me: WARNING: /" >&2
15280 ;;
15281esac
15282{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15283echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15284if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15285 echo $ECHO_N "(cached) $ECHO_C" >&6
15286else
15287 eval "$as_ac_Header=\$ac_header_preproc"
15288fi
15289ac_res=`eval echo '${'$as_ac_Header'}'`
15290 { echo "$as_me:$LINENO: result: $ac_res" >&5
15291echo "${ECHO_T}$ac_res" >&6; }
15292
15293fi
15294if test `eval echo '${'$as_ac_Header'}'` = yes; then
15295 cat >>confdefs.h <<_ACEOF
15296#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15297_ACEOF
15298
15299fi
15300
15301done
15302
15303
15304for ac_header in fenv.h
15305do
15306as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15307if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15310if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15312fi
15313ac_res=`eval echo '${'$as_ac_Header'}'`
15314 { echo "$as_me:$LINENO: result: $ac_res" >&5
15315echo "${ECHO_T}$ac_res" >&6; }
15316else
15317 # Is the header compilable?
15318{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15319echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15320cat >conftest.$ac_ext <<_ACEOF
15321/* confdefs.h. */
15322_ACEOF
15323cat confdefs.h >>conftest.$ac_ext
15324cat >>conftest.$ac_ext <<_ACEOF
15325/* end confdefs.h. */
15326$ac_includes_default
15327#include <$ac_header>
15328_ACEOF
15329rm -f conftest.$ac_objext
15330if { (ac_try="$ac_compile"
15331case "(($ac_try" in
15332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333 *) ac_try_echo=$ac_try;;
15334esac
15335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15336 (eval "$ac_compile") 2>conftest.er1
15337 ac_status=$?
15338 grep -v '^ *+' conftest.er1 >conftest.err
15339 rm -f conftest.er1
15340 cat conftest.err >&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); } &&
15343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15344 { (case "(($ac_try" in
15345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15346 *) ac_try_echo=$ac_try;;
15347esac
15348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15349 (eval "$ac_try") 2>&5
15350 ac_status=$?
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); }; } &&
15353 { ac_try='test -s conftest.$ac_objext'
15354 { (case "(($ac_try" in
15355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15356 *) ac_try_echo=$ac_try;;
15357esac
15358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15359 (eval "$ac_try") 2>&5
15360 ac_status=$?
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); }; }; then
15363 ac_header_compiler=yes
15364else
15365 echo "$as_me: failed program was:" >&5
15366sed 's/^/| /' conftest.$ac_ext >&5
15367
15368 ac_header_compiler=no
15369fi
15370
15371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15372{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15373echo "${ECHO_T}$ac_header_compiler" >&6; }
15374
15375# Is the header present?
15376{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15377echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15378cat >conftest.$ac_ext <<_ACEOF
15379/* confdefs.h. */
15380_ACEOF
15381cat confdefs.h >>conftest.$ac_ext
15382cat >>conftest.$ac_ext <<_ACEOF
15383/* end confdefs.h. */
15384#include <$ac_header>
15385_ACEOF
15386if { (ac_try="$ac_cpp conftest.$ac_ext"
15387case "(($ac_try" in
15388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15389 *) ac_try_echo=$ac_try;;
15390esac
15391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15393 ac_status=$?
15394 grep -v '^ *+' conftest.er1 >conftest.err
15395 rm -f conftest.er1
15396 cat conftest.err >&5
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); } >/dev/null; then
15399 if test -s conftest.err; then
15400 ac_cpp_err=$ac_c_preproc_warn_flag
15401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15402 else
15403 ac_cpp_err=
15404 fi
15405else
15406 ac_cpp_err=yes
15407fi
15408if test -z "$ac_cpp_err"; then
15409 ac_header_preproc=yes
15410else
15411 echo "$as_me: failed program was:" >&5
15412sed 's/^/| /' conftest.$ac_ext >&5
15413
15414 ac_header_preproc=no
15415fi
15416
15417rm -f conftest.err conftest.$ac_ext
15418{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15419echo "${ECHO_T}$ac_header_preproc" >&6; }
15420
15421# So? What about this header?
15422case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15423 yes:no: )
15424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15425echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15427echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15428 ac_header_preproc=yes
15429 ;;
15430 no:yes:* )
15431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15432echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15434echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15436echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15438echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15440echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15442echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15443 ( cat <<\_ASBOX
15444## ------------------------------ ##
15445## Report this to bugs@yourdomain ##
15446## ------------------------------ ##
15447_ASBOX
15448 ) | sed "s/^/$as_me: WARNING: /" >&2
15449 ;;
15450esac
15451{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15452echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15453if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15454 echo $ECHO_N "(cached) $ECHO_C" >&6
15455else
15456 eval "$as_ac_Header=\$ac_header_preproc"
15457fi
15458ac_res=`eval echo '${'$as_ac_Header'}'`
15459 { echo "$as_me:$LINENO: result: $ac_res" >&5
15460echo "${ECHO_T}$ac_res" >&6; }
15461
15462fi
15463if test `eval echo '${'$as_ac_Header'}'` = yes; then
15464 cat >>confdefs.h <<_ACEOF
15465#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15466_ACEOF
15467
15468fi
15469
15470done
15471
15472if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15473
15474for ac_header in pthread.h
15475do
15476as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15477if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15480if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15481 echo $ECHO_N "(cached) $ECHO_C" >&6
15482fi
15483ac_res=`eval echo '${'$as_ac_Header'}'`
15484 { echo "$as_me:$LINENO: result: $ac_res" >&5
15485echo "${ECHO_T}$ac_res" >&6; }
15486else
15487 # Is the header compilable?
15488{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15489echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15490cat >conftest.$ac_ext <<_ACEOF
15491/* confdefs.h. */
15492_ACEOF
15493cat confdefs.h >>conftest.$ac_ext
15494cat >>conftest.$ac_ext <<_ACEOF
15495/* end confdefs.h. */
15496$ac_includes_default
15497#include <$ac_header>
15498_ACEOF
15499rm -f conftest.$ac_objext
15500if { (ac_try="$ac_compile"
15501case "(($ac_try" in
15502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503 *) ac_try_echo=$ac_try;;
15504esac
15505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15506 (eval "$ac_compile") 2>conftest.er1
15507 ac_status=$?
15508 grep -v '^ *+' conftest.er1 >conftest.err
15509 rm -f conftest.er1
15510 cat conftest.err >&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); } &&
15513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15514 { (case "(($ac_try" in
15515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516 *) ac_try_echo=$ac_try;;
15517esac
15518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15519 (eval "$ac_try") 2>&5
15520 ac_status=$?
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; } &&
15523 { ac_try='test -s conftest.$ac_objext'
15524 { (case "(($ac_try" in
15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526 *) ac_try_echo=$ac_try;;
15527esac
15528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529 (eval "$ac_try") 2>&5
15530 ac_status=$?
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; }; then
15533 ac_header_compiler=yes
15534else
15535 echo "$as_me: failed program was:" >&5
15536sed 's/^/| /' conftest.$ac_ext >&5
15537
15538 ac_header_compiler=no
15539fi
15540
15541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15542{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15543echo "${ECHO_T}$ac_header_compiler" >&6; }
15544
15545# Is the header present?
15546{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15547echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15548cat >conftest.$ac_ext <<_ACEOF
15549/* confdefs.h. */
15550_ACEOF
15551cat confdefs.h >>conftest.$ac_ext
15552cat >>conftest.$ac_ext <<_ACEOF
15553/* end confdefs.h. */
15554#include <$ac_header>
15555_ACEOF
15556if { (ac_try="$ac_cpp conftest.$ac_ext"
15557case "(($ac_try" in
15558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559 *) ac_try_echo=$ac_try;;
15560esac
15561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15563 ac_status=$?
15564 grep -v '^ *+' conftest.er1 >conftest.err
15565 rm -f conftest.er1
15566 cat conftest.err >&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); } >/dev/null; then
15569 if test -s conftest.err; then
15570 ac_cpp_err=$ac_c_preproc_warn_flag
15571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15572 else
15573 ac_cpp_err=
15574 fi
15575else
15576 ac_cpp_err=yes
15577fi
15578if test -z "$ac_cpp_err"; then
15579 ac_header_preproc=yes
15580else
15581 echo "$as_me: failed program was:" >&5
15582sed 's/^/| /' conftest.$ac_ext >&5
15583
15584 ac_header_preproc=no
15585fi
15586
15587rm -f conftest.err conftest.$ac_ext
15588{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15589echo "${ECHO_T}$ac_header_preproc" >&6; }
15590
15591# So? What about this header?
15592case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15593 yes:no: )
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15595echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15597echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15598 ac_header_preproc=yes
15599 ;;
15600 no:yes:* )
15601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15602echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15604echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15605 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15606echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15607 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15608echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15610echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15611 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15612echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15613 ( cat <<\_ASBOX
15614## ------------------------------ ##
15615## Report this to bugs@yourdomain ##
15616## ------------------------------ ##
15617_ASBOX
15618 ) | sed "s/^/$as_me: WARNING: /" >&2
15619 ;;
15620esac
15621{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15623if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15624 echo $ECHO_N "(cached) $ECHO_C" >&6
15625else
15626 eval "$as_ac_Header=\$ac_header_preproc"
15627fi
15628ac_res=`eval echo '${'$as_ac_Header'}'`
15629 { echo "$as_me:$LINENO: result: $ac_res" >&5
15630echo "${ECHO_T}$ac_res" >&6; }
15631
15632fi
15633if test `eval echo '${'$as_ac_Header'}'` = yes; then
15634 cat >>confdefs.h <<_ACEOF
15635#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15636_ACEOF
15637 HAVE_PTHREAD=1
15638
15639else
15640 HAVE_PTHREAD=0
15641
15642fi
15643
15644done
15645
15646else
15647 HAVE_PTHREAD=0
15648
15649fi
15650
15651if test "$llvm_cv_enable_libffi" = "yes" ; then
15652
15653
15654for ac_header in ffi.h ffi/ffi.h
15655do
15656as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15657if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15660if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15661 echo $ECHO_N "(cached) $ECHO_C" >&6
15662fi
15663ac_res=`eval echo '${'$as_ac_Header'}'`
15664 { echo "$as_me:$LINENO: result: $ac_res" >&5
15665echo "${ECHO_T}$ac_res" >&6; }
15666else
15667 # Is the header compilable?
15668{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15669echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15670cat >conftest.$ac_ext <<_ACEOF
15671/* confdefs.h. */
15672_ACEOF
15673cat confdefs.h >>conftest.$ac_ext
15674cat >>conftest.$ac_ext <<_ACEOF
15675/* end confdefs.h. */
15676$ac_includes_default
15677#include <$ac_header>
15678_ACEOF
15679rm -f conftest.$ac_objext
15680if { (ac_try="$ac_compile"
15681case "(($ac_try" in
15682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683 *) ac_try_echo=$ac_try;;
15684esac
15685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686 (eval "$ac_compile") 2>conftest.er1
15687 ac_status=$?
15688 grep -v '^ *+' conftest.er1 >conftest.err
15689 rm -f conftest.er1
15690 cat conftest.err >&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); } &&
15693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15694 { (case "(($ac_try" in
15695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696 *) ac_try_echo=$ac_try;;
15697esac
15698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699 (eval "$ac_try") 2>&5
15700 ac_status=$?
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; } &&
15703 { ac_try='test -s conftest.$ac_objext'
15704 { (case "(($ac_try" in
15705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15706 *) ac_try_echo=$ac_try;;
15707esac
15708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15709 (eval "$ac_try") 2>&5
15710 ac_status=$?
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); }; }; then
15713 ac_header_compiler=yes
15714else
15715 echo "$as_me: failed program was:" >&5
15716sed 's/^/| /' conftest.$ac_ext >&5
15717
15718 ac_header_compiler=no
15719fi
15720
15721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15722{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15723echo "${ECHO_T}$ac_header_compiler" >&6; }
15724
15725# Is the header present?
15726{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15727echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15728cat >conftest.$ac_ext <<_ACEOF
15729/* confdefs.h. */
15730_ACEOF
15731cat confdefs.h >>conftest.$ac_ext
15732cat >>conftest.$ac_ext <<_ACEOF
15733/* end confdefs.h. */
15734#include <$ac_header>
15735_ACEOF
15736if { (ac_try="$ac_cpp conftest.$ac_ext"
15737case "(($ac_try" in
15738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739 *) ac_try_echo=$ac_try;;
15740esac
15741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15743 ac_status=$?
15744 grep -v '^ *+' conftest.er1 >conftest.err
15745 rm -f conftest.er1
15746 cat conftest.err >&5
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } >/dev/null; then
15749 if test -s conftest.err; then
15750 ac_cpp_err=$ac_c_preproc_warn_flag
15751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15752 else
15753 ac_cpp_err=
15754 fi
15755else
15756 ac_cpp_err=yes
15757fi
15758if test -z "$ac_cpp_err"; then
15759 ac_header_preproc=yes
15760else
15761 echo "$as_me: failed program was:" >&5
15762sed 's/^/| /' conftest.$ac_ext >&5
15763
15764 ac_header_preproc=no
15765fi
15766
15767rm -f conftest.err conftest.$ac_ext
15768{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15769echo "${ECHO_T}$ac_header_preproc" >&6; }
15770
15771# So? What about this header?
15772case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15773 yes:no: )
15774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15775echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15777echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15778 ac_header_preproc=yes
15779 ;;
15780 no:yes:* )
15781 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15782echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15783 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15784echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15785 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15786echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15787 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15788echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15790echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15791 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15792echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15793 ( cat <<\_ASBOX
15794## ------------------------------ ##
15795## Report this to bugs@yourdomain ##
15796## ------------------------------ ##
15797_ASBOX
15798 ) | sed "s/^/$as_me: WARNING: /" >&2
15799 ;;
15800esac
15801{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15804 echo $ECHO_N "(cached) $ECHO_C" >&6
15805else
15806 eval "$as_ac_Header=\$ac_header_preproc"
15807fi
15808ac_res=`eval echo '${'$as_ac_Header'}'`
15809 { echo "$as_me:$LINENO: result: $ac_res" >&5
15810echo "${ECHO_T}$ac_res" >&6; }
15811
15812fi
15813if test `eval echo '${'$as_ac_Header'}'` = yes; then
15814 cat >>confdefs.h <<_ACEOF
15815#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15816_ACEOF
15817
15818fi
15819
15820done
15821
15822fi
15823
15824
15825for ac_header in CrashReporterClient.h
15826do
15827as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15828if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15830echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15831if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15832 echo $ECHO_N "(cached) $ECHO_C" >&6
15833fi
15834ac_res=`eval echo '${'$as_ac_Header'}'`
15835 { echo "$as_me:$LINENO: result: $ac_res" >&5
15836echo "${ECHO_T}$ac_res" >&6; }
15837else
15838 # Is the header compilable?
15839{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15840echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15841cat >conftest.$ac_ext <<_ACEOF
15842/* confdefs.h. */
15843_ACEOF
15844cat confdefs.h >>conftest.$ac_ext
15845cat >>conftest.$ac_ext <<_ACEOF
15846/* end confdefs.h. */
15847$ac_includes_default
15848#include <$ac_header>
15849_ACEOF
15850rm -f conftest.$ac_objext
15851if { (ac_try="$ac_compile"
15852case "(($ac_try" in
15853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15854 *) ac_try_echo=$ac_try;;
15855esac
15856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15857 (eval "$ac_compile") 2>conftest.er1
15858 ac_status=$?
15859 grep -v '^ *+' conftest.er1 >conftest.err
15860 rm -f conftest.er1
15861 cat conftest.err >&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); } &&
15864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15865 { (case "(($ac_try" in
15866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867 *) ac_try_echo=$ac_try;;
15868esac
15869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15870 (eval "$ac_try") 2>&5
15871 ac_status=$?
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); }; } &&
15874 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15884 ac_header_compiler=yes
15885else
15886 echo "$as_me: failed program was:" >&5
15887sed 's/^/| /' conftest.$ac_ext >&5
15888
15889 ac_header_compiler=no
15890fi
15891
15892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15893{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15894echo "${ECHO_T}$ac_header_compiler" >&6; }
15895
15896# Is the header present?
15897{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15898echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15899cat >conftest.$ac_ext <<_ACEOF
15900/* confdefs.h. */
15901_ACEOF
15902cat confdefs.h >>conftest.$ac_ext
15903cat >>conftest.$ac_ext <<_ACEOF
15904/* end confdefs.h. */
15905#include <$ac_header>
15906_ACEOF
15907if { (ac_try="$ac_cpp conftest.$ac_ext"
15908case "(($ac_try" in
15909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15910 *) ac_try_echo=$ac_try;;
15911esac
15912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15914 ac_status=$?
15915 grep -v '^ *+' conftest.er1 >conftest.err
15916 rm -f conftest.er1
15917 cat conftest.err >&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); } >/dev/null; then
15920 if test -s conftest.err; then
15921 ac_cpp_err=$ac_c_preproc_warn_flag
15922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15923 else
15924 ac_cpp_err=
15925 fi
15926else
15927 ac_cpp_err=yes
15928fi
15929if test -z "$ac_cpp_err"; then
15930 ac_header_preproc=yes
15931else
15932 echo "$as_me: failed program was:" >&5
15933sed 's/^/| /' conftest.$ac_ext >&5
15934
15935 ac_header_preproc=no
15936fi
15937
15938rm -f conftest.err conftest.$ac_ext
15939{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15940echo "${ECHO_T}$ac_header_preproc" >&6; }
15941
15942# So? What about this header?
15943case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15944 yes:no: )
15945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15946echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15948echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15949 ac_header_preproc=yes
15950 ;;
15951 no:yes:* )
15952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15953echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15955echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15957echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15959echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15961echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15963echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15964 ( cat <<\_ASBOX
15965## ------------------------------ ##
15966## Report this to bugs@yourdomain ##
15967## ------------------------------ ##
15968_ASBOX
15969 ) | sed "s/^/$as_me: WARNING: /" >&2
15970 ;;
15971esac
15972{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15975 echo $ECHO_N "(cached) $ECHO_C" >&6
15976else
15977 eval "$as_ac_Header=\$ac_header_preproc"
15978fi
15979ac_res=`eval echo '${'$as_ac_Header'}'`
15980 { echo "$as_me:$LINENO: result: $ac_res" >&5
15981echo "${ECHO_T}$ac_res" >&6; }
15982
15983fi
15984if test `eval echo '${'$as_ac_Header'}'` = yes; then
15985 cat >>confdefs.h <<_ACEOF
15986#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15987_ACEOF
15988
15989fi
15990
15991done
15992
15993
15994{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15995echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15996cat >conftest.$ac_ext <<_ACEOF
15997/* confdefs.h. */
15998_ACEOF
15999cat confdefs.h >>conftest.$ac_ext
16000cat >>conftest.$ac_ext <<_ACEOF
16001/* end confdefs.h. */
16002extern const char *__crashreporter_info__;
16003 int main() {
16004 __crashreporter_info__ = "test";
16005 return 0;
16006 }
16007
16008_ACEOF
16009rm -f conftest.$ac_objext conftest$ac_exeext
16010if { (ac_try="$ac_link"
16011case "(($ac_try" in
16012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16013 *) ac_try_echo=$ac_try;;
16014esac
16015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16016 (eval "$ac_link") 2>conftest.er1
16017 ac_status=$?
16018 grep -v '^ *+' conftest.er1 >conftest.err
16019 rm -f conftest.er1
16020 cat conftest.err >&5
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); } &&
16023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16024 { (case "(($ac_try" in
16025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16026 *) ac_try_echo=$ac_try;;
16027esac
16028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16029 (eval "$ac_try") 2>&5
16030 ac_status=$?
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; } &&
16033 { ac_try='test -s conftest$ac_exeext'
16034 { (case "(($ac_try" in
16035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16036 *) ac_try_echo=$ac_try;;
16037esac
16038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16039 (eval "$ac_try") 2>&5
16040 ac_status=$?
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }; }; then
16043 { echo "$as_me:$LINENO: result: yes" >&5
16044echo "${ECHO_T}yes" >&6; }
16045
16046cat >>confdefs.h <<\_ACEOF
16047#define HAVE_CRASHREPORTER_INFO 1
16048_ACEOF
16049
16050else
16051 echo "$as_me: failed program was:" >&5
16052sed 's/^/| /' conftest.$ac_ext >&5
16053
16054 { echo "$as_me:$LINENO: result: no" >&5
16055echo "${ECHO_T}no" >&6; }
16056
16057cat >>confdefs.h <<\_ACEOF
16058#define HAVE_CRASHREPORTER_INFO 0
16059_ACEOF
16060
16061fi
16062
16063rm -f core conftest.err conftest.$ac_objext \
16064 conftest$ac_exeext conftest.$ac_ext
16065
16066
16067
16068
16069 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16070echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16071if test "${ac_cv_huge_val_sanity+set}" = set; then
16072 echo $ECHO_N "(cached) $ECHO_C" >&6
16073else
16074
16075 ac_ext=cpp
16076ac_cpp='$CXXCPP $CPPFLAGS'
16077ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16078ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16079ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16080
16081 ac_save_CXXFLAGS=$CXXFLAGS
16082 CXXFLAGS=-pedantic
16083 if test "$cross_compiling" = yes; then
16084 ac_cv_huge_val_sanity=yes
16085else
16086 cat >conftest.$ac_ext <<_ACEOF
16087/* confdefs.h. */
16088_ACEOF
16089cat confdefs.h >>conftest.$ac_ext
16090cat >>conftest.$ac_ext <<_ACEOF
16091/* end confdefs.h. */
16092#include <math.h>
16093int
16094main ()
16095{
16096double x = HUGE_VAL; return x != x;
16097 ;
16098 return 0;
16099}
16100_ACEOF
16101rm -f conftest$ac_exeext
16102if { (ac_try="$ac_link"
16103case "(($ac_try" in
16104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16105 *) ac_try_echo=$ac_try;;
16106esac
16107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16108 (eval "$ac_link") 2>&5
16109 ac_status=$?
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16112 { (case "(($ac_try" in
16113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16114 *) ac_try_echo=$ac_try;;
16115esac
16116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16117 (eval "$ac_try") 2>&5
16118 ac_status=$?
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); }; }; then
16121 ac_cv_huge_val_sanity=yes
16122else
16123 echo "$as_me: program exited with status $ac_status" >&5
16124echo "$as_me: failed program was:" >&5
16125sed 's/^/| /' conftest.$ac_ext >&5
16126
16127( exit $ac_status )
16128ac_cv_huge_val_sanity=no
16129fi
16130rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16131fi
16132
16133
16134 CXXFLAGS=$ac_save_CXXFLAGS
16135 ac_ext=c
16136ac_cpp='$CPP $CPPFLAGS'
16137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16139ac_compiler_gnu=$ac_cv_c_compiler_gnu
16140
16141
16142fi
16143{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16144echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16145 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16146
16147
16148{ echo "$as_me:$LINENO: checking for pid_t" >&5
16149echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16150if test "${ac_cv_type_pid_t+set}" = set; then
16151 echo $ECHO_N "(cached) $ECHO_C" >&6
16152else
16153 cat >conftest.$ac_ext <<_ACEOF
16154/* confdefs.h. */
16155_ACEOF
16156cat confdefs.h >>conftest.$ac_ext
16157cat >>conftest.$ac_ext <<_ACEOF
16158/* end confdefs.h. */
16159$ac_includes_default
16160typedef pid_t ac__type_new_;
16161int
16162main ()
16163{
16164if ((ac__type_new_ *) 0)
16165 return 0;
16166if (sizeof (ac__type_new_))
16167 return 0;
16168 ;
16169 return 0;
16170}
16171_ACEOF
16172rm -f conftest.$ac_objext
16173if { (ac_try="$ac_compile"
16174case "(($ac_try" in
16175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16176 *) ac_try_echo=$ac_try;;
16177esac
16178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16179 (eval "$ac_compile") 2>conftest.er1
16180 ac_status=$?
16181 grep -v '^ *+' conftest.er1 >conftest.err
16182 rm -f conftest.er1
16183 cat conftest.err >&5
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); } &&
16186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16187 { (case "(($ac_try" in
16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16190esac
16191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192 (eval "$ac_try") 2>&5
16193 ac_status=$?
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; } &&
16196 { ac_try='test -s conftest.$ac_objext'
16197 { (case "(($ac_try" in
16198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199 *) ac_try_echo=$ac_try;;
16200esac
16201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16202 (eval "$ac_try") 2>&5
16203 ac_status=$?
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; }; then
16206 ac_cv_type_pid_t=yes
16207else
16208 echo "$as_me: failed program was:" >&5
16209sed 's/^/| /' conftest.$ac_ext >&5
16210
16211 ac_cv_type_pid_t=no
16212fi
16213
16214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16215fi
16216{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16217echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16218if test $ac_cv_type_pid_t = yes; then
16219 :
16220else
16221
16222cat >>confdefs.h <<_ACEOF
16223#define pid_t int
16224_ACEOF
16225
16226fi
16227
16228{ echo "$as_me:$LINENO: checking for size_t" >&5
16229echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16230if test "${ac_cv_type_size_t+set}" = set; then
16231 echo $ECHO_N "(cached) $ECHO_C" >&6
16232else
16233 cat >conftest.$ac_ext <<_ACEOF
16234/* confdefs.h. */
16235_ACEOF
16236cat confdefs.h >>conftest.$ac_ext
16237cat >>conftest.$ac_ext <<_ACEOF
16238/* end confdefs.h. */
16239$ac_includes_default
16240typedef size_t ac__type_new_;
16241int
16242main ()
16243{
16244if ((ac__type_new_ *) 0)
16245 return 0;
16246if (sizeof (ac__type_new_))
16247 return 0;
16248 ;
16249 return 0;
16250}
16251_ACEOF
16252rm -f conftest.$ac_objext
16253if { (ac_try="$ac_compile"
16254case "(($ac_try" in
16255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16256 *) ac_try_echo=$ac_try;;
16257esac
16258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16259 (eval "$ac_compile") 2>conftest.er1
16260 ac_status=$?
16261 grep -v '^ *+' conftest.er1 >conftest.err
16262 rm -f conftest.er1
16263 cat conftest.err >&5
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } &&
16266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16267 { (case "(($ac_try" in
16268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16269 *) ac_try_echo=$ac_try;;
16270esac
16271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16272 (eval "$ac_try") 2>&5
16273 ac_status=$?
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); }; } &&
16276 { ac_try='test -s conftest.$ac_objext'
16277 { (case "(($ac_try" in
16278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16279 *) ac_try_echo=$ac_try;;
16280esac
16281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16282 (eval "$ac_try") 2>&5
16283 ac_status=$?
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); }; }; then
16286 ac_cv_type_size_t=yes
16287else
16288 echo "$as_me: failed program was:" >&5
16289sed 's/^/| /' conftest.$ac_ext >&5
16290
16291 ac_cv_type_size_t=no
16292fi
16293
16294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16295fi
16296{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16297echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16298if test $ac_cv_type_size_t = yes; then
16299 :
16300else
16301
16302cat >>confdefs.h <<_ACEOF
16303#define size_t unsigned int
16304_ACEOF
16305
16306fi
16307
16308
16309cat >>confdefs.h <<_ACEOF
16310#define RETSIGTYPE void
16311_ACEOF
16312
16313{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16314echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16315if test "${ac_cv_struct_tm+set}" = set; then
16316 echo $ECHO_N "(cached) $ECHO_C" >&6
16317else
16318 cat >conftest.$ac_ext <<_ACEOF
16319/* confdefs.h. */
16320_ACEOF
16321cat confdefs.h >>conftest.$ac_ext
16322cat >>conftest.$ac_ext <<_ACEOF
16323/* end confdefs.h. */
16324#include <sys/types.h>
16325#include <time.h>
16326
16327int
16328main ()
16329{
16330struct tm *tp; tp->tm_sec;
16331 ;
16332 return 0;
16333}
16334_ACEOF
16335rm -f conftest.$ac_objext
16336if { (ac_try="$ac_compile"
16337case "(($ac_try" in
16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16340esac
16341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342 (eval "$ac_compile") 2>conftest.er1
16343 ac_status=$?
16344 grep -v '^ *+' conftest.er1 >conftest.err
16345 rm -f conftest.er1
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } &&
16349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16350 { (case "(($ac_try" in
16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352 *) ac_try_echo=$ac_try;;
16353esac
16354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355 (eval "$ac_try") 2>&5
16356 ac_status=$?
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); }; } &&
16359 { ac_try='test -s conftest.$ac_objext'
16360 { (case "(($ac_try" in
16361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362 *) ac_try_echo=$ac_try;;
16363esac
16364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365 (eval "$ac_try") 2>&5
16366 ac_status=$?
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; }; then
16369 ac_cv_struct_tm=time.h
16370else
16371 echo "$as_me: failed program was:" >&5
16372sed 's/^/| /' conftest.$ac_ext >&5
16373
16374 ac_cv_struct_tm=sys/time.h
16375fi
16376
16377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16378fi
16379{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16380echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16381if test $ac_cv_struct_tm = sys/time.h; then
16382
16383cat >>confdefs.h <<\_ACEOF
16384#define TM_IN_SYS_TIME 1
16385_ACEOF
16386
16387fi
16388
16389{ echo "$as_me:$LINENO: checking for int64_t" >&5
16390echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16391if test "${ac_cv_type_int64_t+set}" = set; then
16392 echo $ECHO_N "(cached) $ECHO_C" >&6
16393else
16394 cat >conftest.$ac_ext <<_ACEOF
16395/* confdefs.h. */
16396_ACEOF
16397cat confdefs.h >>conftest.$ac_ext
16398cat >>conftest.$ac_ext <<_ACEOF
16399/* end confdefs.h. */
16400$ac_includes_default
16401typedef int64_t ac__type_new_;
16402int
16403main ()
16404{
16405if ((ac__type_new_ *) 0)
16406 return 0;
16407if (sizeof (ac__type_new_))
16408 return 0;
16409 ;
16410 return 0;
16411}
16412_ACEOF
16413rm -f conftest.$ac_objext
16414if { (ac_try="$ac_compile"
16415case "(($ac_try" in
16416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417 *) ac_try_echo=$ac_try;;
16418esac
16419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16420 (eval "$ac_compile") 2>conftest.er1
16421 ac_status=$?
16422 grep -v '^ *+' conftest.er1 >conftest.err
16423 rm -f conftest.er1
16424 cat conftest.err >&5
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); } &&
16427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16428 { (case "(($ac_try" in
16429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16430 *) ac_try_echo=$ac_try;;
16431esac
16432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16433 (eval "$ac_try") 2>&5
16434 ac_status=$?
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); }; } &&
16437 { ac_try='test -s conftest.$ac_objext'
16438 { (case "(($ac_try" in
16439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440 *) ac_try_echo=$ac_try;;
16441esac
16442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16443 (eval "$ac_try") 2>&5
16444 ac_status=$?
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; }; then
16447 ac_cv_type_int64_t=yes
16448else
16449 echo "$as_me: failed program was:" >&5
16450sed 's/^/| /' conftest.$ac_ext >&5
16451
16452 ac_cv_type_int64_t=no
16453fi
16454
16455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16456fi
16457{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16458echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16459if test $ac_cv_type_int64_t = yes; then
16460
16461cat >>confdefs.h <<_ACEOF
16462#define HAVE_INT64_T 1
16463_ACEOF
16464
16465
16466else
16467 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16468echo "$as_me: error: Type int64_t required but not found" >&2;}
16469 { (exit 1); exit 1; }; }
16470fi
16471
16472{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16473echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16474if test "${ac_cv_type_uint64_t+set}" = set; then
16475 echo $ECHO_N "(cached) $ECHO_C" >&6
16476else
16477 cat >conftest.$ac_ext <<_ACEOF
16478/* confdefs.h. */
16479_ACEOF
16480cat confdefs.h >>conftest.$ac_ext
16481cat >>conftest.$ac_ext <<_ACEOF
16482/* end confdefs.h. */
16483$ac_includes_default
16484typedef uint64_t ac__type_new_;
16485int
16486main ()
16487{
16488if ((ac__type_new_ *) 0)
16489 return 0;
16490if (sizeof (ac__type_new_))
16491 return 0;
16492 ;
16493 return 0;
16494}
16495_ACEOF
16496rm -f conftest.$ac_objext
16497if { (ac_try="$ac_compile"
16498case "(($ac_try" in
16499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500 *) ac_try_echo=$ac_try;;
16501esac
16502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503 (eval "$ac_compile") 2>conftest.er1
16504 ac_status=$?
16505 grep -v '^ *+' conftest.er1 >conftest.err
16506 rm -f conftest.er1
16507 cat conftest.err >&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } &&
16510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16511 { (case "(($ac_try" in
16512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513 *) ac_try_echo=$ac_try;;
16514esac
16515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516 (eval "$ac_try") 2>&5
16517 ac_status=$?
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; } &&
16520 { ac_try='test -s conftest.$ac_objext'
16521 { (case "(($ac_try" in
16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523 *) ac_try_echo=$ac_try;;
16524esac
16525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526 (eval "$ac_try") 2>&5
16527 ac_status=$?
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); }; }; then
16530 ac_cv_type_uint64_t=yes
16531else
16532 echo "$as_me: failed program was:" >&5
16533sed 's/^/| /' conftest.$ac_ext >&5
16534
16535 ac_cv_type_uint64_t=no
16536fi
16537
16538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16539fi
16540{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16541echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16542if test $ac_cv_type_uint64_t = yes; then
16543
16544cat >>confdefs.h <<_ACEOF
16545#define HAVE_UINT64_T 1
16546_ACEOF
16547
16548
16549else
16550 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16551echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16552if test "${ac_cv_type_u_int64_t+set}" = set; then
16553 echo $ECHO_N "(cached) $ECHO_C" >&6
16554else
16555 cat >conftest.$ac_ext <<_ACEOF
16556/* confdefs.h. */
16557_ACEOF
16558cat confdefs.h >>conftest.$ac_ext
16559cat >>conftest.$ac_ext <<_ACEOF
16560/* end confdefs.h. */
16561$ac_includes_default
16562typedef u_int64_t ac__type_new_;
16563int
16564main ()
16565{
16566if ((ac__type_new_ *) 0)
16567 return 0;
16568if (sizeof (ac__type_new_))
16569 return 0;
16570 ;
16571 return 0;
16572}
16573_ACEOF
16574rm -f conftest.$ac_objext
16575if { (ac_try="$ac_compile"
16576case "(($ac_try" in
16577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578 *) ac_try_echo=$ac_try;;
16579esac
16580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581 (eval "$ac_compile") 2>conftest.er1
16582 ac_status=$?
16583 grep -v '^ *+' conftest.er1 >conftest.err
16584 rm -f conftest.er1
16585 cat conftest.err >&5
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); } &&
16588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16589 { (case "(($ac_try" in
16590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16591 *) ac_try_echo=$ac_try;;
16592esac
16593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16594 (eval "$ac_try") 2>&5
16595 ac_status=$?
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); }; } &&
16598 { ac_try='test -s conftest.$ac_objext'
16599 { (case "(($ac_try" in
16600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601 *) ac_try_echo=$ac_try;;
16602esac
16603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604 (eval "$ac_try") 2>&5
16605 ac_status=$?
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; }; then
16608 ac_cv_type_u_int64_t=yes
16609else
16610 echo "$as_me: failed program was:" >&5
16611sed 's/^/| /' conftest.$ac_ext >&5
16612
16613 ac_cv_type_u_int64_t=no
16614fi
16615
16616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16617fi
16618{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16619echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16620if test $ac_cv_type_u_int64_t = yes; then
16621
16622cat >>confdefs.h <<_ACEOF
16623#define HAVE_U_INT64_T 1
16624_ACEOF
16625
16626
16627else
16628 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16629echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16630 { (exit 1); exit 1; }; }
16631fi
16632
16633fi
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16645do
16646as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16647{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16648echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16649if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16650 echo $ECHO_N "(cached) $ECHO_C" >&6
16651else
16652 cat >conftest.$ac_ext <<_ACEOF
16653/* confdefs.h. */
16654_ACEOF
16655cat confdefs.h >>conftest.$ac_ext
16656cat >>conftest.$ac_ext <<_ACEOF
16657/* end confdefs.h. */
16658/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16660#define $ac_func innocuous_$ac_func
16661
16662/* System header to define __stub macros and hopefully few prototypes,
16663 which can conflict with char $ac_func (); below.
16664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16665 <limits.h> exists even on freestanding compilers. */
16666
16667#ifdef __STDC__
16668# include <limits.h>
16669#else
16670# include <assert.h>
16671#endif
16672
16673#undef $ac_func
16674
16675/* Override any GCC internal prototype to avoid an error.
16676 Use char because int might match the return type of a GCC
16677 builtin and then its argument prototype would still apply. */
16678#ifdef __cplusplus
16679extern "C"
16680#endif
16681char $ac_func ();
16682/* The GNU C library defines this for functions which it implements
16683 to always fail with ENOSYS. Some functions are actually named
16684 something starting with __ and the normal name is an alias. */
16685#if defined __stub_$ac_func || defined __stub___$ac_func
16686choke me
16687#endif
16688
16689int
16690main ()
16691{
16692return $ac_func ();
16693 ;
16694 return 0;
16695}
16696_ACEOF
16697rm -f conftest.$ac_objext conftest$ac_exeext
16698if { (ac_try="$ac_link"
16699case "(($ac_try" in
16700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16701 *) ac_try_echo=$ac_try;;
16702esac
16703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16704 (eval "$ac_link") 2>conftest.er1
16705 ac_status=$?
16706 grep -v '^ *+' conftest.er1 >conftest.err
16707 rm -f conftest.er1
16708 cat conftest.err >&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } &&
16711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16712 { (case "(($ac_try" in
16713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16714 *) ac_try_echo=$ac_try;;
16715esac
16716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16717 (eval "$ac_try") 2>&5
16718 ac_status=$?
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; } &&
16721 { ac_try='test -s conftest$ac_exeext'
16722 { (case "(($ac_try" in
16723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16724 *) ac_try_echo=$ac_try;;
16725esac
16726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16727 (eval "$ac_try") 2>&5
16728 ac_status=$?
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; }; then
16731 eval "$as_ac_var=yes"
16732else
16733 echo "$as_me: failed program was:" >&5
16734sed 's/^/| /' conftest.$ac_ext >&5
16735
16736 eval "$as_ac_var=no"
16737fi
16738
16739rm -f core conftest.err conftest.$ac_objext \
16740 conftest$ac_exeext conftest.$ac_ext
16741fi
16742ac_res=`eval echo '${'$as_ac_var'}'`
16743 { echo "$as_me:$LINENO: result: $ac_res" >&5
16744echo "${ECHO_T}$ac_res" >&6; }
16745if test `eval echo '${'$as_ac_var'}'` = yes; then
16746 cat >>confdefs.h <<_ACEOF
16747#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16748_ACEOF
16749
16750fi
16751done
16752
16753
16754
16755
16756
16757for ac_func in powf fmodf strtof round
16758do
16759as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16760{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16761echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16762if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16763 echo $ECHO_N "(cached) $ECHO_C" >&6
16764else
16765 cat >conftest.$ac_ext <<_ACEOF
16766/* confdefs.h. */
16767_ACEOF
16768cat confdefs.h >>conftest.$ac_ext
16769cat >>conftest.$ac_ext <<_ACEOF
16770/* end confdefs.h. */
16771/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16773#define $ac_func innocuous_$ac_func
16774
16775/* System header to define __stub macros and hopefully few prototypes,
16776 which can conflict with char $ac_func (); below.
16777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16778 <limits.h> exists even on freestanding compilers. */
16779
16780#ifdef __STDC__
16781# include <limits.h>
16782#else
16783# include <assert.h>
16784#endif
16785
16786#undef $ac_func
16787
16788/* Override any GCC internal prototype to avoid an error.
16789 Use char because int might match the return type of a GCC
16790 builtin and then its argument prototype would still apply. */
16791#ifdef __cplusplus
16792extern "C"
16793#endif
16794char $ac_func ();
16795/* The GNU C library defines this for functions which it implements
16796 to always fail with ENOSYS. Some functions are actually named
16797 something starting with __ and the normal name is an alias. */
16798#if defined __stub_$ac_func || defined __stub___$ac_func
16799choke me
16800#endif
16801
16802int
16803main ()
16804{
16805return $ac_func ();
16806 ;
16807 return 0;
16808}
16809_ACEOF
16810rm -f conftest.$ac_objext conftest$ac_exeext
16811if { (ac_try="$ac_link"
16812case "(($ac_try" in
16813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814 *) ac_try_echo=$ac_try;;
16815esac
16816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817 (eval "$ac_link") 2>conftest.er1
16818 ac_status=$?
16819 grep -v '^ *+' conftest.er1 >conftest.err
16820 rm -f conftest.er1
16821 cat conftest.err >&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } &&
16824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16825 { (case "(($ac_try" in
16826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827 *) ac_try_echo=$ac_try;;
16828esac
16829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830 (eval "$ac_try") 2>&5
16831 ac_status=$?
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; } &&
16834 { ac_try='test -s conftest$ac_exeext'
16835 { (case "(($ac_try" in
16836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837 *) ac_try_echo=$ac_try;;
16838esac
16839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840 (eval "$ac_try") 2>&5
16841 ac_status=$?
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); }; }; then
16844 eval "$as_ac_var=yes"
16845else
16846 echo "$as_me: failed program was:" >&5
16847sed 's/^/| /' conftest.$ac_ext >&5
16848
16849 eval "$as_ac_var=no"
16850fi
16851
16852rm -f core conftest.err conftest.$ac_objext \
16853 conftest$ac_exeext conftest.$ac_ext
16854fi
16855ac_res=`eval echo '${'$as_ac_var'}'`
16856 { echo "$as_me:$LINENO: result: $ac_res" >&5
16857echo "${ECHO_T}$ac_res" >&6; }
16858if test `eval echo '${'$as_ac_var'}'` = yes; then
16859 cat >>confdefs.h <<_ACEOF
16860#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16861_ACEOF
16862
16863fi
16864done
16865
16866
16867
16868
16869
16870
16871for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16872do
16873as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16874{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16875echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16876if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16877 echo $ECHO_N "(cached) $ECHO_C" >&6
16878else
16879 cat >conftest.$ac_ext <<_ACEOF
16880/* confdefs.h. */
16881_ACEOF
16882cat confdefs.h >>conftest.$ac_ext
16883cat >>conftest.$ac_ext <<_ACEOF
16884/* end confdefs.h. */
16885/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16887#define $ac_func innocuous_$ac_func
16888
16889/* System header to define __stub macros and hopefully few prototypes,
16890 which can conflict with char $ac_func (); below.
16891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16892 <limits.h> exists even on freestanding compilers. */
16893
16894#ifdef __STDC__
16895# include <limits.h>
16896#else
16897# include <assert.h>
16898#endif
16899
16900#undef $ac_func
16901
16902/* Override any GCC internal prototype to avoid an error.
16903 Use char because int might match the return type of a GCC
16904 builtin and then its argument prototype would still apply. */
16905#ifdef __cplusplus
16906extern "C"
16907#endif
16908char $ac_func ();
16909/* The GNU C library defines this for functions which it implements
16910 to always fail with ENOSYS. Some functions are actually named
16911 something starting with __ and the normal name is an alias. */
16912#if defined __stub_$ac_func || defined __stub___$ac_func
16913choke me
16914#endif
16915
16916int
16917main ()
16918{
16919return $ac_func ();
16920 ;
16921 return 0;
16922}
16923_ACEOF
16924rm -f conftest.$ac_objext conftest$ac_exeext
16925if { (ac_try="$ac_link"
16926case "(($ac_try" in
16927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16928 *) ac_try_echo=$ac_try;;
16929esac
16930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16931 (eval "$ac_link") 2>conftest.er1
16932 ac_status=$?
16933 grep -v '^ *+' conftest.er1 >conftest.err
16934 rm -f conftest.er1
16935 cat conftest.err >&5
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); } &&
16938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16939 { (case "(($ac_try" in
16940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16941 *) ac_try_echo=$ac_try;;
16942esac
16943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16944 (eval "$ac_try") 2>&5
16945 ac_status=$?
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; } &&
16948 { ac_try='test -s conftest$ac_exeext'
16949 { (case "(($ac_try" in
16950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16951 *) ac_try_echo=$ac_try;;
16952esac
16953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16954 (eval "$ac_try") 2>&5
16955 ac_status=$?
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); }; }; then
16958 eval "$as_ac_var=yes"
16959else
16960 echo "$as_me: failed program was:" >&5
16961sed 's/^/| /' conftest.$ac_ext >&5
16962
16963 eval "$as_ac_var=no"
16964fi
16965
16966rm -f core conftest.err conftest.$ac_objext \
16967 conftest$ac_exeext conftest.$ac_ext
16968fi
16969ac_res=`eval echo '${'$as_ac_var'}'`
16970 { echo "$as_me:$LINENO: result: $ac_res" >&5
16971echo "${ECHO_T}$ac_res" >&6; }
16972if test `eval echo '${'$as_ac_var'}'` = yes; then
16973 cat >>confdefs.h <<_ACEOF
16974#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16975_ACEOF
16976
16977fi
16978done
16979
16980
16981
16982
16983for ac_func in isatty mkdtemp mkstemp
16984do
16985as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16986{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16987echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16988if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16989 echo $ECHO_N "(cached) $ECHO_C" >&6
16990else
16991 cat >conftest.$ac_ext <<_ACEOF
16992/* confdefs.h. */
16993_ACEOF
16994cat confdefs.h >>conftest.$ac_ext
16995cat >>conftest.$ac_ext <<_ACEOF
16996/* end confdefs.h. */
16997/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16999#define $ac_func innocuous_$ac_func
17000
17001/* System header to define __stub macros and hopefully few prototypes,
17002 which can conflict with char $ac_func (); below.
17003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17004 <limits.h> exists even on freestanding compilers. */
17005
17006#ifdef __STDC__
17007# include <limits.h>
17008#else
17009# include <assert.h>
17010#endif
17011
17012#undef $ac_func
17013
17014/* Override any GCC internal prototype to avoid an error.
17015 Use char because int might match the return type of a GCC
17016 builtin and then its argument prototype would still apply. */
17017#ifdef __cplusplus
17018extern "C"
17019#endif
17020char $ac_func ();
17021/* The GNU C library defines this for functions which it implements
17022 to always fail with ENOSYS. Some functions are actually named
17023 something starting with __ and the normal name is an alias. */
17024#if defined __stub_$ac_func || defined __stub___$ac_func
17025choke me
17026#endif
17027
17028int
17029main ()
17030{
17031return $ac_func ();
17032 ;
17033 return 0;
17034}
17035_ACEOF
17036rm -f conftest.$ac_objext conftest$ac_exeext
17037if { (ac_try="$ac_link"
17038case "(($ac_try" in
17039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040 *) ac_try_echo=$ac_try;;
17041esac
17042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043 (eval "$ac_link") 2>conftest.er1
17044 ac_status=$?
17045 grep -v '^ *+' conftest.er1 >conftest.err
17046 rm -f conftest.er1
17047 cat conftest.err >&5
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); } &&
17050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17051 { (case "(($ac_try" in
17052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17053 *) ac_try_echo=$ac_try;;
17054esac
17055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17056 (eval "$ac_try") 2>&5
17057 ac_status=$?
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; } &&
17060 { ac_try='test -s conftest$ac_exeext'
17061 { (case "(($ac_try" in
17062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17063 *) ac_try_echo=$ac_try;;
17064esac
17065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17066 (eval "$ac_try") 2>&5
17067 ac_status=$?
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; }; then
17070 eval "$as_ac_var=yes"
17071else
17072 echo "$as_me: failed program was:" >&5
17073sed 's/^/| /' conftest.$ac_ext >&5
17074
17075 eval "$as_ac_var=no"
17076fi
17077
17078rm -f core conftest.err conftest.$ac_objext \
17079 conftest$ac_exeext conftest.$ac_ext
17080fi
17081ac_res=`eval echo '${'$as_ac_var'}'`
17082 { echo "$as_me:$LINENO: result: $ac_res" >&5
17083echo "${ECHO_T}$ac_res" >&6; }
17084if test `eval echo '${'$as_ac_var'}'` = yes; then
17085 cat >>confdefs.h <<_ACEOF
17086#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17087_ACEOF
17088
17089fi
17090done
17091
17092
17093
17094
17095
17096
17097
17098for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17099do
17100as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17101{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17102echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17103if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17104 echo $ECHO_N "(cached) $ECHO_C" >&6
17105else
17106 cat >conftest.$ac_ext <<_ACEOF
17107/* confdefs.h. */
17108_ACEOF
17109cat confdefs.h >>conftest.$ac_ext
17110cat >>conftest.$ac_ext <<_ACEOF
17111/* end confdefs.h. */
17112/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17114#define $ac_func innocuous_$ac_func
17115
17116/* System header to define __stub macros and hopefully few prototypes,
17117 which can conflict with char $ac_func (); below.
17118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17119 <limits.h> exists even on freestanding compilers. */
17120
17121#ifdef __STDC__
17122# include <limits.h>
17123#else
17124# include <assert.h>
17125#endif
17126
17127#undef $ac_func
17128
17129/* Override any GCC internal prototype to avoid an error.
17130 Use char because int might match the return type of a GCC
17131 builtin and then its argument prototype would still apply. */
17132#ifdef __cplusplus
17133extern "C"
17134#endif
17135char $ac_func ();
17136/* The GNU C library defines this for functions which it implements
17137 to always fail with ENOSYS. Some functions are actually named
17138 something starting with __ and the normal name is an alias. */
17139#if defined __stub_$ac_func || defined __stub___$ac_func
17140choke me
17141#endif
17142
17143int
17144main ()
17145{
17146return $ac_func ();
17147 ;
17148 return 0;
17149}
17150_ACEOF
17151rm -f conftest.$ac_objext conftest$ac_exeext
17152if { (ac_try="$ac_link"
17153case "(($ac_try" in
17154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17155 *) ac_try_echo=$ac_try;;
17156esac
17157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17158 (eval "$ac_link") 2>conftest.er1
17159 ac_status=$?
17160 grep -v '^ *+' conftest.er1 >conftest.err
17161 rm -f conftest.er1
17162 cat conftest.err >&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); } &&
17165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17166 { (case "(($ac_try" in
17167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168 *) ac_try_echo=$ac_try;;
17169esac
17170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171 (eval "$ac_try") 2>&5
17172 ac_status=$?
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; } &&
17175 { ac_try='test -s conftest$ac_exeext'
17176 { (case "(($ac_try" in
17177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17178 *) ac_try_echo=$ac_try;;
17179esac
17180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17181 (eval "$ac_try") 2>&5
17182 ac_status=$?
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; }; then
17185 eval "$as_ac_var=yes"
17186else
17187 echo "$as_me: failed program was:" >&5
17188sed 's/^/| /' conftest.$ac_ext >&5
17189
17190 eval "$as_ac_var=no"
17191fi
17192
17193rm -f core conftest.err conftest.$ac_objext \
17194 conftest$ac_exeext conftest.$ac_ext
17195fi
17196ac_res=`eval echo '${'$as_ac_var'}'`
17197 { echo "$as_me:$LINENO: result: $ac_res" >&5
17198echo "${ECHO_T}$ac_res" >&6; }
17199if test `eval echo '${'$as_ac_var'}'` = yes; then
17200 cat >>confdefs.h <<_ACEOF
17201#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17202_ACEOF
17203
17204fi
17205done
17206
17207
17208
17209
17210for ac_func in strerror strerror_r setenv
17211do
17212as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17213{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17214echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17215if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17216 echo $ECHO_N "(cached) $ECHO_C" >&6
17217else
17218 cat >conftest.$ac_ext <<_ACEOF
17219/* confdefs.h. */
17220_ACEOF
17221cat confdefs.h >>conftest.$ac_ext
17222cat >>conftest.$ac_ext <<_ACEOF
17223/* end confdefs.h. */
17224/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17226#define $ac_func innocuous_$ac_func
17227
17228/* System header to define __stub macros and hopefully few prototypes,
17229 which can conflict with char $ac_func (); below.
17230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17231 <limits.h> exists even on freestanding compilers. */
17232
17233#ifdef __STDC__
17234# include <limits.h>
17235#else
17236# include <assert.h>
17237#endif
17238
17239#undef $ac_func
17240
17241/* Override any GCC internal prototype to avoid an error.
17242 Use char because int might match the return type of a GCC
17243 builtin and then its argument prototype would still apply. */
17244#ifdef __cplusplus
17245extern "C"
17246#endif
17247char $ac_func ();
17248/* The GNU C library defines this for functions which it implements
17249 to always fail with ENOSYS. Some functions are actually named
17250 something starting with __ and the normal name is an alias. */
17251#if defined __stub_$ac_func || defined __stub___$ac_func
17252choke me
17253#endif
17254
17255int
17256main ()
17257{
17258return $ac_func ();
17259 ;
17260 return 0;
17261}
17262_ACEOF
17263rm -f conftest.$ac_objext conftest$ac_exeext
17264if { (ac_try="$ac_link"
17265case "(($ac_try" in
17266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267 *) ac_try_echo=$ac_try;;
17268esac
17269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_link") 2>conftest.er1
17271 ac_status=$?
17272 grep -v '^ *+' conftest.er1 >conftest.err
17273 rm -f conftest.er1
17274 cat conftest.err >&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } &&
17277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17278 { (case "(($ac_try" in
17279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17280 *) ac_try_echo=$ac_try;;
17281esac
17282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17283 (eval "$ac_try") 2>&5
17284 ac_status=$?
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; } &&
17287 { ac_try='test -s conftest$ac_exeext'
17288 { (case "(($ac_try" in
17289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290 *) ac_try_echo=$ac_try;;
17291esac
17292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17293 (eval "$ac_try") 2>&5
17294 ac_status=$?
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); }; }; then
17297 eval "$as_ac_var=yes"
17298else
17299 echo "$as_me: failed program was:" >&5
17300sed 's/^/| /' conftest.$ac_ext >&5
17301
17302 eval "$as_ac_var=no"
17303fi
17304
17305rm -f core conftest.err conftest.$ac_objext \
17306 conftest$ac_exeext conftest.$ac_ext
17307fi
17308ac_res=`eval echo '${'$as_ac_var'}'`
17309 { echo "$as_me:$LINENO: result: $ac_res" >&5
17310echo "${ECHO_T}$ac_res" >&6; }
17311if test `eval echo '${'$as_ac_var'}'` = yes; then
17312 cat >>confdefs.h <<_ACEOF
17313#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17314_ACEOF
17315
17316fi
17317done
17318
17319
17320
17321
17322
17323for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17324do
17325as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17326{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17327echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17328if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17329 echo $ECHO_N "(cached) $ECHO_C" >&6
17330else
17331 cat >conftest.$ac_ext <<_ACEOF
17332/* confdefs.h. */
17333_ACEOF
17334cat confdefs.h >>conftest.$ac_ext
17335cat >>conftest.$ac_ext <<_ACEOF
17336/* end confdefs.h. */
17337/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17339#define $ac_func innocuous_$ac_func
17340
17341/* System header to define __stub macros and hopefully few prototypes,
17342 which can conflict with char $ac_func (); below.
17343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17344 <limits.h> exists even on freestanding compilers. */
17345
17346#ifdef __STDC__
17347# include <limits.h>
17348#else
17349# include <assert.h>
17350#endif
17351
17352#undef $ac_func
17353
17354/* Override any GCC internal prototype to avoid an error.
17355 Use char because int might match the return type of a GCC
17356 builtin and then its argument prototype would still apply. */
17357#ifdef __cplusplus
17358extern "C"
17359#endif
17360char $ac_func ();
17361/* The GNU C library defines this for functions which it implements
17362 to always fail with ENOSYS. Some functions are actually named
17363 something starting with __ and the normal name is an alias. */
17364#if defined __stub_$ac_func || defined __stub___$ac_func
17365choke me
17366#endif
17367
17368int
17369main ()
17370{
17371return $ac_func ();
17372 ;
17373 return 0;
17374}
17375_ACEOF
17376rm -f conftest.$ac_objext conftest$ac_exeext
17377if { (ac_try="$ac_link"
17378case "(($ac_try" in
17379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17380 *) ac_try_echo=$ac_try;;
17381esac
17382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17383 (eval "$ac_link") 2>conftest.er1
17384 ac_status=$?
17385 grep -v '^ *+' conftest.er1 >conftest.err
17386 rm -f conftest.er1
17387 cat conftest.err >&5
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); } &&
17390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17391 { (case "(($ac_try" in
17392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17393 *) ac_try_echo=$ac_try;;
17394esac
17395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17396 (eval "$ac_try") 2>&5
17397 ac_status=$?
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); }; } &&
17400 { ac_try='test -s conftest$ac_exeext'
17401 { (case "(($ac_try" in
17402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17403 *) ac_try_echo=$ac_try;;
17404esac
17405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17406 (eval "$ac_try") 2>&5
17407 ac_status=$?
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; }; then
17410 eval "$as_ac_var=yes"
17411else
17412 echo "$as_me: failed program was:" >&5
17413sed 's/^/| /' conftest.$ac_ext >&5
17414
17415 eval "$as_ac_var=no"
17416fi
17417
17418rm -f core conftest.err conftest.$ac_objext \
17419 conftest$ac_exeext conftest.$ac_ext
17420fi
17421ac_res=`eval echo '${'$as_ac_var'}'`
17422 { echo "$as_me:$LINENO: result: $ac_res" >&5
17423echo "${ECHO_T}$ac_res" >&6; }
17424if test `eval echo '${'$as_ac_var'}'` = yes; then
17425 cat >>confdefs.h <<_ACEOF
17426#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17427_ACEOF
17428
17429fi
17430done
17431
17432
17433
17434
17435
17436
17437for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17438do
17439as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17440{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17441echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17442if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17443 echo $ECHO_N "(cached) $ECHO_C" >&6
17444else
17445 cat >conftest.$ac_ext <<_ACEOF
17446/* confdefs.h. */
17447_ACEOF
17448cat confdefs.h >>conftest.$ac_ext
17449cat >>conftest.$ac_ext <<_ACEOF
17450/* end confdefs.h. */
17451/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17453#define $ac_func innocuous_$ac_func
17454
17455/* System header to define __stub macros and hopefully few prototypes,
17456 which can conflict with char $ac_func (); below.
17457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17458 <limits.h> exists even on freestanding compilers. */
17459
17460#ifdef __STDC__
17461# include <limits.h>
17462#else
17463# include <assert.h>
17464#endif
17465
17466#undef $ac_func
17467
17468/* Override any GCC internal prototype to avoid an error.
17469 Use char because int might match the return type of a GCC
17470 builtin and then its argument prototype would still apply. */
17471#ifdef __cplusplus
17472extern "C"
17473#endif
17474char $ac_func ();
17475/* The GNU C library defines this for functions which it implements
17476 to always fail with ENOSYS. Some functions are actually named
17477 something starting with __ and the normal name is an alias. */
17478#if defined __stub_$ac_func || defined __stub___$ac_func
17479choke me
17480#endif
17481
17482int
17483main ()
17484{
17485return $ac_func ();
17486 ;
17487 return 0;
17488}
17489_ACEOF
17490rm -f conftest.$ac_objext conftest$ac_exeext
17491if { (ac_try="$ac_link"
17492case "(($ac_try" in
17493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494 *) ac_try_echo=$ac_try;;
17495esac
17496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497 (eval "$ac_link") 2>conftest.er1
17498 ac_status=$?
17499 grep -v '^ *+' conftest.er1 >conftest.err
17500 rm -f conftest.er1
17501 cat conftest.err >&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); } &&
17504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17505 { (case "(($ac_try" in
17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17508esac
17509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_try") 2>&5
17511 ac_status=$?
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; } &&
17514 { ac_try='test -s conftest$ac_exeext'
17515 { (case "(($ac_try" in
17516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17517 *) ac_try_echo=$ac_try;;
17518esac
17519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17520 (eval "$ac_try") 2>&5
17521 ac_status=$?
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; }; then
17524 eval "$as_ac_var=yes"
17525else
17526 echo "$as_me: failed program was:" >&5
17527sed 's/^/| /' conftest.$ac_ext >&5
17528
17529 eval "$as_ac_var=no"
17530fi
17531
17532rm -f core conftest.err conftest.$ac_objext \
17533 conftest$ac_exeext conftest.$ac_ext
17534fi
17535ac_res=`eval echo '${'$as_ac_var'}'`
17536 { echo "$as_me:$LINENO: result: $ac_res" >&5
17537echo "${ECHO_T}$ac_res" >&6; }
17538if test `eval echo '${'$as_ac_var'}'` = yes; then
17539 cat >>confdefs.h <<_ACEOF
17540#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17541_ACEOF
17542
17543fi
17544done
17545
17546{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17547echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17548if test "${llvm_cv_c_printf_a+set}" = set; then
17549 echo $ECHO_N "(cached) $ECHO_C" >&6
17550else
17551 ac_ext=c
17552ac_cpp='$CPP $CPPFLAGS'
17553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17555ac_compiler_gnu=$ac_cv_c_compiler_gnu
17556
17557 if test "$cross_compiling" = yes; then
17558 llvmac_cv_c_printf_a=no
17559else
17560 cat >conftest.$ac_ext <<_ACEOF
17561
17562 /* confdefs.h. */
17563_ACEOF
17564cat confdefs.h >>conftest.$ac_ext
17565cat >>conftest.$ac_ext <<_ACEOF
17566/* end confdefs.h. */
17567
17568#include <stdio.h>
17569#include <stdlib.h>
17570
17571int
17572main ()
17573{
17574
17575volatile double A, B;
17576char Buffer[100];
17577A = 1;
17578A /= 10.0;
17579sprintf(Buffer, "%a", A);
17580B = atof(Buffer);
17581if (A != B)
17582 return (1);
17583if (A != 0x1.999999999999ap-4)
17584 return (1);
17585return (0);
17586 ;
17587 return 0;
17588}
17589_ACEOF
17590rm -f conftest$ac_exeext
17591if { (ac_try="$ac_link"
17592case "(($ac_try" in
17593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17594 *) ac_try_echo=$ac_try;;
17595esac
17596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17597 (eval "$ac_link") 2>&5
17598 ac_status=$?
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17601 { (case "(($ac_try" in
17602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603 *) ac_try_echo=$ac_try;;
17604esac
17605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606 (eval "$ac_try") 2>&5
17607 ac_status=$?
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; }; then
17610 llvm_cv_c_printf_a=yes
17611else
17612 echo "$as_me: program exited with status $ac_status" >&5
17613echo "$as_me: failed program was:" >&5
17614sed 's/^/| /' conftest.$ac_ext >&5
17615
17616( exit $ac_status )
17617llvmac_cv_c_printf_a=no
17618fi
17619rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17620fi
17621
17622
17623 ac_ext=c
17624ac_cpp='$CPP $CPPFLAGS'
17625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17627ac_compiler_gnu=$ac_cv_c_compiler_gnu
17628
17629fi
17630{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17631echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17632 if test "$llvm_cv_c_printf_a" = "yes"; then
17633
17634cat >>confdefs.h <<\_ACEOF
17635#define HAVE_PRINTF_A 1
17636_ACEOF
17637
17638 fi
17639
17640
17641{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17642echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17643if test "${ac_cv_func_rand48+set}" = set; then
17644 echo $ECHO_N "(cached) $ECHO_C" >&6
17645else
17646 ac_ext=cpp
17647ac_cpp='$CXXCPP $CPPFLAGS'
17648ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17649ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17650ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17651
17652 cat >conftest.$ac_ext <<_ACEOF
17653/* confdefs.h. */
17654_ACEOF
17655cat confdefs.h >>conftest.$ac_ext
17656cat >>conftest.$ac_ext <<_ACEOF
17657/* end confdefs.h. */
17658#include <stdlib.h>
17659int
17660main ()
17661{
17662srand48(0);lrand48();drand48();
17663 ;
17664 return 0;
17665}
17666_ACEOF
17667rm -f conftest.$ac_objext
17668if { (ac_try="$ac_compile"
17669case "(($ac_try" in
17670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17671 *) ac_try_echo=$ac_try;;
17672esac
17673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17674 (eval "$ac_compile") 2>conftest.er1
17675 ac_status=$?
17676 grep -v '^ *+' conftest.er1 >conftest.err
17677 rm -f conftest.er1
17678 cat conftest.err >&5
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); } &&
17681 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17682 { (case "(($ac_try" in
17683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17684 *) ac_try_echo=$ac_try;;
17685esac
17686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17687 (eval "$ac_try") 2>&5
17688 ac_status=$?
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; } &&
17691 { ac_try='test -s conftest.$ac_objext'
17692 { (case "(($ac_try" in
17693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17694 *) ac_try_echo=$ac_try;;
17695esac
17696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17697 (eval "$ac_try") 2>&5
17698 ac_status=$?
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); }; }; then
17701 ac_cv_func_rand48=yes
17702else
17703 echo "$as_me: failed program was:" >&5
17704sed 's/^/| /' conftest.$ac_ext >&5
17705
17706 ac_cv_func_rand48=no
17707fi
17708
17709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17710 ac_ext=c
17711ac_cpp='$CPP $CPPFLAGS'
17712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17714ac_compiler_gnu=$ac_cv_c_compiler_gnu
17715
17716fi
17717{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17718echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17719
17720if test "$ac_cv_func_rand48" = "yes" ; then
17721
17722cat >>confdefs.h <<\_ACEOF
17723#define HAVE_RAND48 1
17724_ACEOF
17725
17726fi
17727
17728
17729{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17730echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17731if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17732 echo $ECHO_N "(cached) $ECHO_C" >&6
17733else
17734 cat >conftest.$ac_ext <<_ACEOF
17735/* confdefs.h. */
17736_ACEOF
17737cat confdefs.h >>conftest.$ac_ext
17738cat >>conftest.$ac_ext <<_ACEOF
17739/* end confdefs.h. */
17740$ac_includes_default
17741int
17742main ()
17743{
17744#ifndef strerror_s
17745 char *p = (char *) strerror_s;
17746 return !p;
17747#endif
17748
17749 ;
17750 return 0;
17751}
17752_ACEOF
17753rm -f conftest.$ac_objext
17754if { (ac_try="$ac_compile"
17755case "(($ac_try" in
17756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17757 *) ac_try_echo=$ac_try;;
17758esac
17759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17760 (eval "$ac_compile") 2>conftest.er1
17761 ac_status=$?
17762 grep -v '^ *+' conftest.er1 >conftest.err
17763 rm -f conftest.er1
17764 cat conftest.err >&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); } &&
17767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17768 { (case "(($ac_try" in
17769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17770 *) ac_try_echo=$ac_try;;
17771esac
17772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17773 (eval "$ac_try") 2>&5
17774 ac_status=$?
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; } &&
17777 { ac_try='test -s conftest.$ac_objext'
17778 { (case "(($ac_try" in
17779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17780 *) ac_try_echo=$ac_try;;
17781esac
17782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17783 (eval "$ac_try") 2>&5
17784 ac_status=$?
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; }; then
17787 ac_cv_have_decl_strerror_s=yes
17788else
17789 echo "$as_me: failed program was:" >&5
17790sed 's/^/| /' conftest.$ac_ext >&5
17791
17792 ac_cv_have_decl_strerror_s=no
17793fi
17794
17795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17796fi
17797{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17798echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17799if test $ac_cv_have_decl_strerror_s = yes; then
17800
17801cat >>confdefs.h <<_ACEOF
17802#define HAVE_DECL_STRERROR_S 1
17803_ACEOF
17804
17805
17806else
17807 cat >>confdefs.h <<_ACEOF
17808#define HAVE_DECL_STRERROR_S 0
17809_ACEOF
17810
17811
17812fi
17813
17814
17815
17816if test "$llvm_cv_os_type" = "MingW" ; then
17817 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17818echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17819if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17820 echo $ECHO_N "(cached) $ECHO_C" >&6
17821else
17822 ac_check_lib_save_LIBS=$LIBS
17823LIBS="-lgcc $LIBS"
17824cat >conftest.$ac_ext <<_ACEOF
17825/* confdefs.h. */
17826_ACEOF
17827cat confdefs.h >>conftest.$ac_ext
17828cat >>conftest.$ac_ext <<_ACEOF
17829/* end confdefs.h. */
17830
17831/* Override any GCC internal prototype to avoid an error.
17832 Use char because int might match the return type of a GCC
17833 builtin and then its argument prototype would still apply. */
17834#ifdef __cplusplus
17835extern "C"
17836#endif
17837char _alloca ();
17838int
17839main ()
17840{
17841return _alloca ();
17842 ;
17843 return 0;
17844}
17845_ACEOF
17846rm -f conftest.$ac_objext conftest$ac_exeext
17847if { (ac_try="$ac_link"
17848case "(($ac_try" in
17849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850 *) ac_try_echo=$ac_try;;
17851esac
17852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17853 (eval "$ac_link") 2>conftest.er1
17854 ac_status=$?
17855 grep -v '^ *+' conftest.er1 >conftest.err
17856 rm -f conftest.er1
17857 cat conftest.err >&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); } &&
17860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17861 { (case "(($ac_try" in
17862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17863 *) ac_try_echo=$ac_try;;
17864esac
17865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17866 (eval "$ac_try") 2>&5
17867 ac_status=$?
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; } &&
17870 { ac_try='test -s conftest$ac_exeext'
17871 { (case "(($ac_try" in
17872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17873 *) ac_try_echo=$ac_try;;
17874esac
17875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17876 (eval "$ac_try") 2>&5
17877 ac_status=$?
17878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); }; }; then
17880 ac_cv_lib_gcc__alloca=yes
17881else
17882 echo "$as_me: failed program was:" >&5
17883sed 's/^/| /' conftest.$ac_ext >&5
17884
17885 ac_cv_lib_gcc__alloca=no
17886fi
17887
17888rm -f core conftest.err conftest.$ac_objext \
17889 conftest$ac_exeext conftest.$ac_ext
17890LIBS=$ac_check_lib_save_LIBS
17891fi
17892{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17893echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17894if test $ac_cv_lib_gcc__alloca = yes; then
17895
17896cat >>confdefs.h <<\_ACEOF
17897#define HAVE__ALLOCA 1
17898_ACEOF
17899
17900fi
17901
17902 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17903echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17904if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17905 echo $ECHO_N "(cached) $ECHO_C" >&6
17906else
17907 ac_check_lib_save_LIBS=$LIBS
17908LIBS="-lgcc $LIBS"
17909cat >conftest.$ac_ext <<_ACEOF
17910/* confdefs.h. */
17911_ACEOF
17912cat confdefs.h >>conftest.$ac_ext
17913cat >>conftest.$ac_ext <<_ACEOF
17914/* end confdefs.h. */
17915
17916/* Override any GCC internal prototype to avoid an error.
17917 Use char because int might match the return type of a GCC
17918 builtin and then its argument prototype would still apply. */
17919#ifdef __cplusplus
17920extern "C"
17921#endif
17922char __alloca ();
17923int
17924main ()
17925{
17926return __alloca ();
17927 ;
17928 return 0;
17929}
17930_ACEOF
17931rm -f conftest.$ac_objext conftest$ac_exeext
17932if { (ac_try="$ac_link"
17933case "(($ac_try" in
17934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17935 *) ac_try_echo=$ac_try;;
17936esac
17937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17938 (eval "$ac_link") 2>conftest.er1
17939 ac_status=$?
17940 grep -v '^ *+' conftest.er1 >conftest.err
17941 rm -f conftest.er1
17942 cat conftest.err >&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } &&
17945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17946 { (case "(($ac_try" in
17947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17948 *) ac_try_echo=$ac_try;;
17949esac
17950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17951 (eval "$ac_try") 2>&5
17952 ac_status=$?
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; } &&
17955 { ac_try='test -s conftest$ac_exeext'
17956 { (case "(($ac_try" in
17957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17958 *) ac_try_echo=$ac_try;;
17959esac
17960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17961 (eval "$ac_try") 2>&5
17962 ac_status=$?
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; }; then
17965 ac_cv_lib_gcc___alloca=yes
17966else
17967 echo "$as_me: failed program was:" >&5
17968sed 's/^/| /' conftest.$ac_ext >&5
17969
17970 ac_cv_lib_gcc___alloca=no
17971fi
17972
17973rm -f core conftest.err conftest.$ac_objext \
17974 conftest$ac_exeext conftest.$ac_ext
17975LIBS=$ac_check_lib_save_LIBS
17976fi
17977{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17978echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17979if test $ac_cv_lib_gcc___alloca = yes; then
17980
17981cat >>confdefs.h <<\_ACEOF
17982#define HAVE___ALLOCA 1
17983_ACEOF
17984
17985fi
17986
17987 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17988echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17989if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17990 echo $ECHO_N "(cached) $ECHO_C" >&6
17991else
17992 ac_check_lib_save_LIBS=$LIBS
17993LIBS="-lgcc $LIBS"
17994cat >conftest.$ac_ext <<_ACEOF
17995/* confdefs.h. */
17996_ACEOF
17997cat confdefs.h >>conftest.$ac_ext
17998cat >>conftest.$ac_ext <<_ACEOF
17999/* end confdefs.h. */
18000
18001/* Override any GCC internal prototype to avoid an error.
18002 Use char because int might match the return type of a GCC
18003 builtin and then its argument prototype would still apply. */
18004#ifdef __cplusplus
18005extern "C"
18006#endif
18007char __chkstk ();
18008int
18009main ()
18010{
18011return __chkstk ();
18012 ;
18013 return 0;
18014}
18015_ACEOF
18016rm -f conftest.$ac_objext conftest$ac_exeext
18017if { (ac_try="$ac_link"
18018case "(($ac_try" in
18019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020 *) ac_try_echo=$ac_try;;
18021esac
18022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18023 (eval "$ac_link") 2>conftest.er1
18024 ac_status=$?
18025 grep -v '^ *+' conftest.er1 >conftest.err
18026 rm -f conftest.er1
18027 cat conftest.err >&5
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); } &&
18030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18031 { (case "(($ac_try" in
18032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033 *) ac_try_echo=$ac_try;;
18034esac
18035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036 (eval "$ac_try") 2>&5
18037 ac_status=$?
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); }; } &&
18040 { ac_try='test -s conftest$ac_exeext'
18041 { (case "(($ac_try" in
18042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043 *) ac_try_echo=$ac_try;;
18044esac
18045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18046 (eval "$ac_try") 2>&5
18047 ac_status=$?
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; }; then
18050 ac_cv_lib_gcc___chkstk=yes
18051else
18052 echo "$as_me: failed program was:" >&5
18053sed 's/^/| /' conftest.$ac_ext >&5
18054
18055 ac_cv_lib_gcc___chkstk=no
18056fi
18057
18058rm -f core conftest.err conftest.$ac_objext \
18059 conftest$ac_exeext conftest.$ac_ext
18060LIBS=$ac_check_lib_save_LIBS
18061fi
18062{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18063echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18064if test $ac_cv_lib_gcc___chkstk = yes; then
18065
18066cat >>confdefs.h <<\_ACEOF
18067#define HAVE___CHKSTK 1
18068_ACEOF
18069
18070fi
18071
18072 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18073echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18074if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18075 echo $ECHO_N "(cached) $ECHO_C" >&6
18076else
18077 ac_check_lib_save_LIBS=$LIBS
18078LIBS="-lgcc $LIBS"
18079cat >conftest.$ac_ext <<_ACEOF
18080/* confdefs.h. */
18081_ACEOF
18082cat confdefs.h >>conftest.$ac_ext
18083cat >>conftest.$ac_ext <<_ACEOF
18084/* end confdefs.h. */
18085
18086/* Override any GCC internal prototype to avoid an error.
18087 Use char because int might match the return type of a GCC
18088 builtin and then its argument prototype would still apply. */
18089#ifdef __cplusplus
18090extern "C"
18091#endif
18092char ___chkstk ();
18093int
18094main ()
18095{
18096return ___chkstk ();
18097 ;
18098 return 0;
18099}
18100_ACEOF
18101rm -f conftest.$ac_objext conftest$ac_exeext
18102if { (ac_try="$ac_link"
18103case "(($ac_try" in
18104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18105 *) ac_try_echo=$ac_try;;
18106esac
18107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18108 (eval "$ac_link") 2>conftest.er1
18109 ac_status=$?
18110 grep -v '^ *+' conftest.er1 >conftest.err
18111 rm -f conftest.er1
18112 cat conftest.err >&5
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); } &&
18115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18116 { (case "(($ac_try" in
18117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18118 *) ac_try_echo=$ac_try;;
18119esac
18120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18121 (eval "$ac_try") 2>&5
18122 ac_status=$?
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; } &&
18125 { ac_try='test -s conftest$ac_exeext'
18126 { (case "(($ac_try" in
18127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18128 *) ac_try_echo=$ac_try;;
18129esac
18130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18131 (eval "$ac_try") 2>&5
18132 ac_status=$?
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; }; then
18135 ac_cv_lib_gcc____chkstk=yes
18136else
18137 echo "$as_me: failed program was:" >&5
18138sed 's/^/| /' conftest.$ac_ext >&5
18139
18140 ac_cv_lib_gcc____chkstk=no
18141fi
18142
18143rm -f core conftest.err conftest.$ac_objext \
18144 conftest$ac_exeext conftest.$ac_ext
18145LIBS=$ac_check_lib_save_LIBS
18146fi
18147{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18148echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18149if test $ac_cv_lib_gcc____chkstk = yes; then
18150
18151cat >>confdefs.h <<\_ACEOF
18152#define HAVE____CHKSTK 1
18153_ACEOF
18154
18155fi
18156
18157
18158 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18159echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18160if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18161 echo $ECHO_N "(cached) $ECHO_C" >&6
18162else
18163 ac_check_lib_save_LIBS=$LIBS
18164LIBS="-lgcc $LIBS"
18165cat >conftest.$ac_ext <<_ACEOF
18166/* confdefs.h. */
18167_ACEOF
18168cat confdefs.h >>conftest.$ac_ext
18169cat >>conftest.$ac_ext <<_ACEOF
18170/* end confdefs.h. */
18171
18172/* Override any GCC internal prototype to avoid an error.
18173 Use char because int might match the return type of a GCC
18174 builtin and then its argument prototype would still apply. */
18175#ifdef __cplusplus
18176extern "C"
18177#endif
18178char __ashldi3 ();
18179int
18180main ()
18181{
18182return __ashldi3 ();
18183 ;
18184 return 0;
18185}
18186_ACEOF
18187rm -f conftest.$ac_objext conftest$ac_exeext
18188if { (ac_try="$ac_link"
18189case "(($ac_try" in
18190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191 *) ac_try_echo=$ac_try;;
18192esac
18193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194 (eval "$ac_link") 2>conftest.er1
18195 ac_status=$?
18196 grep -v '^ *+' conftest.er1 >conftest.err
18197 rm -f conftest.er1
18198 cat conftest.err >&5
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); } &&
18201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18202 { (case "(($ac_try" in
18203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18204 *) ac_try_echo=$ac_try;;
18205esac
18206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18207 (eval "$ac_try") 2>&5
18208 ac_status=$?
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; } &&
18211 { ac_try='test -s conftest$ac_exeext'
18212 { (case "(($ac_try" in
18213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18214 *) ac_try_echo=$ac_try;;
18215esac
18216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18217 (eval "$ac_try") 2>&5
18218 ac_status=$?
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; }; then
18221 ac_cv_lib_gcc___ashldi3=yes
18222else
18223 echo "$as_me: failed program was:" >&5
18224sed 's/^/| /' conftest.$ac_ext >&5
18225
18226 ac_cv_lib_gcc___ashldi3=no
18227fi
18228
18229rm -f core conftest.err conftest.$ac_objext \
18230 conftest$ac_exeext conftest.$ac_ext
18231LIBS=$ac_check_lib_save_LIBS
18232fi
18233{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18234echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18235if test $ac_cv_lib_gcc___ashldi3 = yes; then
18236
18237cat >>confdefs.h <<\_ACEOF
18238#define HAVE___ASHLDI3 1
18239_ACEOF
18240
18241fi
18242
18243 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18244echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18245if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18246 echo $ECHO_N "(cached) $ECHO_C" >&6
18247else
18248 ac_check_lib_save_LIBS=$LIBS
18249LIBS="-lgcc $LIBS"
18250cat >conftest.$ac_ext <<_ACEOF
18251/* confdefs.h. */
18252_ACEOF
18253cat confdefs.h >>conftest.$ac_ext
18254cat >>conftest.$ac_ext <<_ACEOF
18255/* end confdefs.h. */
18256
18257/* Override any GCC internal prototype to avoid an error.
18258 Use char because int might match the return type of a GCC
18259 builtin and then its argument prototype would still apply. */
18260#ifdef __cplusplus
18261extern "C"
18262#endif
18263char __ashrdi3 ();
18264int
18265main ()
18266{
18267return __ashrdi3 ();
18268 ;
18269 return 0;
18270}
18271_ACEOF
18272rm -f conftest.$ac_objext conftest$ac_exeext
18273if { (ac_try="$ac_link"
18274case "(($ac_try" in
18275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276 *) ac_try_echo=$ac_try;;
18277esac
18278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279 (eval "$ac_link") 2>conftest.er1
18280 ac_status=$?
18281 grep -v '^ *+' conftest.er1 >conftest.err
18282 rm -f conftest.er1
18283 cat conftest.err >&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); } &&
18286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18287 { (case "(($ac_try" in
18288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289 *) ac_try_echo=$ac_try;;
18290esac
18291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292 (eval "$ac_try") 2>&5
18293 ac_status=$?
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); }; } &&
18296 { ac_try='test -s conftest$ac_exeext'
18297 { (case "(($ac_try" in
18298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299 *) ac_try_echo=$ac_try;;
18300esac
18301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18302 (eval "$ac_try") 2>&5
18303 ac_status=$?
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; }; then
18306 ac_cv_lib_gcc___ashrdi3=yes
18307else
18308 echo "$as_me: failed program was:" >&5
18309sed 's/^/| /' conftest.$ac_ext >&5
18310
18311 ac_cv_lib_gcc___ashrdi3=no
18312fi
18313
18314rm -f core conftest.err conftest.$ac_objext \
18315 conftest$ac_exeext conftest.$ac_ext
18316LIBS=$ac_check_lib_save_LIBS
18317fi
18318{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18319echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18320if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18321
18322cat >>confdefs.h <<\_ACEOF
18323#define HAVE___ASHRDI3 1
18324_ACEOF
18325
18326fi
18327
18328 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18329echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18330if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18331 echo $ECHO_N "(cached) $ECHO_C" >&6
18332else
18333 ac_check_lib_save_LIBS=$LIBS
18334LIBS="-lgcc $LIBS"
18335cat >conftest.$ac_ext <<_ACEOF
18336/* confdefs.h. */
18337_ACEOF
18338cat confdefs.h >>conftest.$ac_ext
18339cat >>conftest.$ac_ext <<_ACEOF
18340/* end confdefs.h. */
18341
18342/* Override any GCC internal prototype to avoid an error.
18343 Use char because int might match the return type of a GCC
18344 builtin and then its argument prototype would still apply. */
18345#ifdef __cplusplus
18346extern "C"
18347#endif
18348char __divdi3 ();
18349int
18350main ()
18351{
18352return __divdi3 ();
18353 ;
18354 return 0;
18355}
18356_ACEOF
18357rm -f conftest.$ac_objext conftest$ac_exeext
18358if { (ac_try="$ac_link"
18359case "(($ac_try" in
18360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18361 *) ac_try_echo=$ac_try;;
18362esac
18363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18364 (eval "$ac_link") 2>conftest.er1
18365 ac_status=$?
18366 grep -v '^ *+' conftest.er1 >conftest.err
18367 rm -f conftest.er1
18368 cat conftest.err >&5
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); } &&
18371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18372 { (case "(($ac_try" in
18373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18374 *) ac_try_echo=$ac_try;;
18375esac
18376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18377 (eval "$ac_try") 2>&5
18378 ac_status=$?
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); }; } &&
18381 { ac_try='test -s conftest$ac_exeext'
18382 { (case "(($ac_try" in
18383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18384 *) ac_try_echo=$ac_try;;
18385esac
18386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18387 (eval "$ac_try") 2>&5
18388 ac_status=$?
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); }; }; then
18391 ac_cv_lib_gcc___divdi3=yes
18392else
18393 echo "$as_me: failed program was:" >&5
18394sed 's/^/| /' conftest.$ac_ext >&5
18395
18396 ac_cv_lib_gcc___divdi3=no
18397fi
18398
18399rm -f core conftest.err conftest.$ac_objext \
18400 conftest$ac_exeext conftest.$ac_ext
18401LIBS=$ac_check_lib_save_LIBS
18402fi
18403{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18404echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18405if test $ac_cv_lib_gcc___divdi3 = yes; then
18406
18407cat >>confdefs.h <<\_ACEOF
18408#define HAVE___DIVDI3 1
18409_ACEOF
18410
18411fi
18412
18413 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18414echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18415if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18416 echo $ECHO_N "(cached) $ECHO_C" >&6
18417else
18418 ac_check_lib_save_LIBS=$LIBS
18419LIBS="-lgcc $LIBS"
18420cat >conftest.$ac_ext <<_ACEOF
18421/* confdefs.h. */
18422_ACEOF
18423cat confdefs.h >>conftest.$ac_ext
18424cat >>conftest.$ac_ext <<_ACEOF
18425/* end confdefs.h. */
18426
18427/* Override any GCC internal prototype to avoid an error.
18428 Use char because int might match the return type of a GCC
18429 builtin and then its argument prototype would still apply. */
18430#ifdef __cplusplus
18431extern "C"
18432#endif
18433char __fixdfdi ();
18434int
18435main ()
18436{
18437return __fixdfdi ();
18438 ;
18439 return 0;
18440}
18441_ACEOF
18442rm -f conftest.$ac_objext conftest$ac_exeext
18443if { (ac_try="$ac_link"
18444case "(($ac_try" in
18445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18446 *) ac_try_echo=$ac_try;;
18447esac
18448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18449 (eval "$ac_link") 2>conftest.er1
18450 ac_status=$?
18451 grep -v '^ *+' conftest.er1 >conftest.err
18452 rm -f conftest.er1
18453 cat conftest.err >&5
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); } &&
18456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18457 { (case "(($ac_try" in
18458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18459 *) ac_try_echo=$ac_try;;
18460esac
18461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18462 (eval "$ac_try") 2>&5
18463 ac_status=$?
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; } &&
18466 { ac_try='test -s conftest$ac_exeext'
18467 { (case "(($ac_try" in
18468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469 *) ac_try_echo=$ac_try;;
18470esac
18471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18472 (eval "$ac_try") 2>&5
18473 ac_status=$?
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; }; then
18476 ac_cv_lib_gcc___fixdfdi=yes
18477else
18478 echo "$as_me: failed program was:" >&5
18479sed 's/^/| /' conftest.$ac_ext >&5
18480
18481 ac_cv_lib_gcc___fixdfdi=no
18482fi
18483
18484rm -f core conftest.err conftest.$ac_objext \
18485 conftest$ac_exeext conftest.$ac_ext
18486LIBS=$ac_check_lib_save_LIBS
18487fi
18488{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18489echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18490if test $ac_cv_lib_gcc___fixdfdi = yes; then
18491
18492cat >>confdefs.h <<\_ACEOF
18493#define HAVE___FIXDFDI 1
18494_ACEOF
18495
18496fi
18497
18498 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18499echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18500if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18501 echo $ECHO_N "(cached) $ECHO_C" >&6
18502else
18503 ac_check_lib_save_LIBS=$LIBS
18504LIBS="-lgcc $LIBS"
18505cat >conftest.$ac_ext <<_ACEOF
18506/* confdefs.h. */
18507_ACEOF
18508cat confdefs.h >>conftest.$ac_ext
18509cat >>conftest.$ac_ext <<_ACEOF
18510/* end confdefs.h. */
18511
18512/* Override any GCC internal prototype to avoid an error.
18513 Use char because int might match the return type of a GCC
18514 builtin and then its argument prototype would still apply. */
18515#ifdef __cplusplus
18516extern "C"
18517#endif
18518char __fixsfdi ();
18519int
18520main ()
18521{
18522return __fixsfdi ();
18523 ;
18524 return 0;
18525}
18526_ACEOF
18527rm -f conftest.$ac_objext conftest$ac_exeext
18528if { (ac_try="$ac_link"
18529case "(($ac_try" in
18530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18531 *) ac_try_echo=$ac_try;;
18532esac
18533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18534 (eval "$ac_link") 2>conftest.er1
18535 ac_status=$?
18536 grep -v '^ *+' conftest.er1 >conftest.err
18537 rm -f conftest.er1
18538 cat conftest.err >&5
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); } &&
18541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18542 { (case "(($ac_try" in
18543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18544 *) ac_try_echo=$ac_try;;
18545esac
18546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18547 (eval "$ac_try") 2>&5
18548 ac_status=$?
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); }; } &&
18551 { ac_try='test -s conftest$ac_exeext'
18552 { (case "(($ac_try" in
18553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18554 *) ac_try_echo=$ac_try;;
18555esac
18556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18557 (eval "$ac_try") 2>&5
18558 ac_status=$?
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; }; then
18561 ac_cv_lib_gcc___fixsfdi=yes
18562else
18563 echo "$as_me: failed program was:" >&5
18564sed 's/^/| /' conftest.$ac_ext >&5
18565
18566 ac_cv_lib_gcc___fixsfdi=no
18567fi
18568
18569rm -f core conftest.err conftest.$ac_objext \
18570 conftest$ac_exeext conftest.$ac_ext
18571LIBS=$ac_check_lib_save_LIBS
18572fi
18573{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18574echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18575if test $ac_cv_lib_gcc___fixsfdi = yes; then
18576
18577cat >>confdefs.h <<\_ACEOF
18578#define HAVE___FIXSFDI 1
18579_ACEOF
18580
18581fi
18582
18583 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18584echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18585if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18586 echo $ECHO_N "(cached) $ECHO_C" >&6
18587else
18588 ac_check_lib_save_LIBS=$LIBS
18589LIBS="-lgcc $LIBS"
18590cat >conftest.$ac_ext <<_ACEOF
18591/* confdefs.h. */
18592_ACEOF
18593cat confdefs.h >>conftest.$ac_ext
18594cat >>conftest.$ac_ext <<_ACEOF
18595/* end confdefs.h. */
18596
18597/* Override any GCC internal prototype to avoid an error.
18598 Use char because int might match the return type of a GCC
18599 builtin and then its argument prototype would still apply. */
18600#ifdef __cplusplus
18601extern "C"
18602#endif
18603char __floatdidf ();
18604int
18605main ()
18606{
18607return __floatdidf ();
18608 ;
18609 return 0;
18610}
18611_ACEOF
18612rm -f conftest.$ac_objext conftest$ac_exeext
18613if { (ac_try="$ac_link"
18614case "(($ac_try" in
18615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616 *) ac_try_echo=$ac_try;;
18617esac
18618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18619 (eval "$ac_link") 2>conftest.er1
18620 ac_status=$?
18621 grep -v '^ *+' conftest.er1 >conftest.err
18622 rm -f conftest.er1
18623 cat conftest.err >&5
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); } &&
18626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18627 { (case "(($ac_try" in
18628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18629 *) ac_try_echo=$ac_try;;
18630esac
18631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18632 (eval "$ac_try") 2>&5
18633 ac_status=$?
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; } &&
18636 { ac_try='test -s conftest$ac_exeext'
18637 { (case "(($ac_try" in
18638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639 *) ac_try_echo=$ac_try;;
18640esac
18641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642 (eval "$ac_try") 2>&5
18643 ac_status=$?
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; }; then
18646 ac_cv_lib_gcc___floatdidf=yes
18647else
18648 echo "$as_me: failed program was:" >&5
18649sed 's/^/| /' conftest.$ac_ext >&5
18650
18651 ac_cv_lib_gcc___floatdidf=no
18652fi
18653
18654rm -f core conftest.err conftest.$ac_objext \
18655 conftest$ac_exeext conftest.$ac_ext
18656LIBS=$ac_check_lib_save_LIBS
18657fi
18658{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18659echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18660if test $ac_cv_lib_gcc___floatdidf = yes; then
18661
18662cat >>confdefs.h <<\_ACEOF
18663#define HAVE___FLOATDIDF 1
18664_ACEOF
18665
18666fi
18667
18668 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18669echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18670if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18671 echo $ECHO_N "(cached) $ECHO_C" >&6
18672else
18673 ac_check_lib_save_LIBS=$LIBS
18674LIBS="-lgcc $LIBS"
18675cat >conftest.$ac_ext <<_ACEOF
18676/* confdefs.h. */
18677_ACEOF
18678cat confdefs.h >>conftest.$ac_ext
18679cat >>conftest.$ac_ext <<_ACEOF
18680/* end confdefs.h. */
18681
18682/* Override any GCC internal prototype to avoid an error.
18683 Use char because int might match the return type of a GCC
18684 builtin and then its argument prototype would still apply. */
18685#ifdef __cplusplus
18686extern "C"
18687#endif
18688char __lshrdi3 ();
18689int
18690main ()
18691{
18692return __lshrdi3 ();
18693 ;
18694 return 0;
18695}
18696_ACEOF
18697rm -f conftest.$ac_objext conftest$ac_exeext
18698if { (ac_try="$ac_link"
18699case "(($ac_try" in
18700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18701 *) ac_try_echo=$ac_try;;
18702esac
18703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18704 (eval "$ac_link") 2>conftest.er1
18705 ac_status=$?
18706 grep -v '^ *+' conftest.er1 >conftest.err
18707 rm -f conftest.er1
18708 cat conftest.err >&5
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); } &&
18711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18712 { (case "(($ac_try" in
18713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18714 *) ac_try_echo=$ac_try;;
18715esac
18716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18717 (eval "$ac_try") 2>&5
18718 ac_status=$?
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); }; } &&
18721 { ac_try='test -s conftest$ac_exeext'
18722 { (case "(($ac_try" in
18723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18724 *) ac_try_echo=$ac_try;;
18725esac
18726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18727 (eval "$ac_try") 2>&5
18728 ac_status=$?
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); }; }; then
18731 ac_cv_lib_gcc___lshrdi3=yes
18732else
18733 echo "$as_me: failed program was:" >&5
18734sed 's/^/| /' conftest.$ac_ext >&5
18735
18736 ac_cv_lib_gcc___lshrdi3=no
18737fi
18738
18739rm -f core conftest.err conftest.$ac_objext \
18740 conftest$ac_exeext conftest.$ac_ext
18741LIBS=$ac_check_lib_save_LIBS
18742fi
18743{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18744echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18745if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18746
18747cat >>confdefs.h <<\_ACEOF
18748#define HAVE___LSHRDI3 1
18749_ACEOF
18750
18751fi
18752
18753 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18754echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18755if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18756 echo $ECHO_N "(cached) $ECHO_C" >&6
18757else
18758 ac_check_lib_save_LIBS=$LIBS
18759LIBS="-lgcc $LIBS"
18760cat >conftest.$ac_ext <<_ACEOF
18761/* confdefs.h. */
18762_ACEOF
18763cat confdefs.h >>conftest.$ac_ext
18764cat >>conftest.$ac_ext <<_ACEOF
18765/* end confdefs.h. */
18766
18767/* Override any GCC internal prototype to avoid an error.
18768 Use char because int might match the return type of a GCC
18769 builtin and then its argument prototype would still apply. */
18770#ifdef __cplusplus
18771extern "C"
18772#endif
18773char __moddi3 ();
18774int
18775main ()
18776{
18777return __moddi3 ();
18778 ;
18779 return 0;
18780}
18781_ACEOF
18782rm -f conftest.$ac_objext conftest$ac_exeext
18783if { (ac_try="$ac_link"
18784case "(($ac_try" in
18785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18786 *) ac_try_echo=$ac_try;;
18787esac
18788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18789 (eval "$ac_link") 2>conftest.er1
18790 ac_status=$?
18791 grep -v '^ *+' conftest.er1 >conftest.err
18792 rm -f conftest.er1
18793 cat conftest.err >&5
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); } &&
18796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18797 { (case "(($ac_try" in
18798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799 *) ac_try_echo=$ac_try;;
18800esac
18801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802 (eval "$ac_try") 2>&5
18803 ac_status=$?
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); }; } &&
18806 { ac_try='test -s conftest$ac_exeext'
18807 { (case "(($ac_try" in
18808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18809 *) ac_try_echo=$ac_try;;
18810esac
18811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18812 (eval "$ac_try") 2>&5
18813 ac_status=$?
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); }; }; then
18816 ac_cv_lib_gcc___moddi3=yes
18817else
18818 echo "$as_me: failed program was:" >&5
18819sed 's/^/| /' conftest.$ac_ext >&5
18820
18821 ac_cv_lib_gcc___moddi3=no
18822fi
18823
18824rm -f core conftest.err conftest.$ac_objext \
18825 conftest$ac_exeext conftest.$ac_ext
18826LIBS=$ac_check_lib_save_LIBS
18827fi
18828{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18829echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18830if test $ac_cv_lib_gcc___moddi3 = yes; then
18831
18832cat >>confdefs.h <<\_ACEOF
18833#define HAVE___MODDI3 1
18834_ACEOF
18835
18836fi
18837
18838 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18839echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18840if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18841 echo $ECHO_N "(cached) $ECHO_C" >&6
18842else
18843 ac_check_lib_save_LIBS=$LIBS
18844LIBS="-lgcc $LIBS"
18845cat >conftest.$ac_ext <<_ACEOF
18846/* confdefs.h. */
18847_ACEOF
18848cat confdefs.h >>conftest.$ac_ext
18849cat >>conftest.$ac_ext <<_ACEOF
18850/* end confdefs.h. */
18851
18852/* Override any GCC internal prototype to avoid an error.
18853 Use char because int might match the return type of a GCC
18854 builtin and then its argument prototype would still apply. */
18855#ifdef __cplusplus
18856extern "C"
18857#endif
18858char __udivdi3 ();
18859int
18860main ()
18861{
18862return __udivdi3 ();
18863 ;
18864 return 0;
18865}
18866_ACEOF
18867rm -f conftest.$ac_objext conftest$ac_exeext
18868if { (ac_try="$ac_link"
18869case "(($ac_try" in
18870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18871 *) ac_try_echo=$ac_try;;
18872esac
18873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18874 (eval "$ac_link") 2>conftest.er1
18875 ac_status=$?
18876 grep -v '^ *+' conftest.er1 >conftest.err
18877 rm -f conftest.er1
18878 cat conftest.err >&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); } &&
18881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18882 { (case "(($ac_try" in
18883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884 *) ac_try_echo=$ac_try;;
18885esac
18886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887 (eval "$ac_try") 2>&5
18888 ac_status=$?
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; } &&
18891 { ac_try='test -s conftest$ac_exeext'
18892 { (case "(($ac_try" in
18893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18894 *) ac_try_echo=$ac_try;;
18895esac
18896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18897 (eval "$ac_try") 2>&5
18898 ac_status=$?
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); }; }; then
18901 ac_cv_lib_gcc___udivdi3=yes
18902else
18903 echo "$as_me: failed program was:" >&5
18904sed 's/^/| /' conftest.$ac_ext >&5
18905
18906 ac_cv_lib_gcc___udivdi3=no
18907fi
18908
18909rm -f core conftest.err conftest.$ac_objext \
18910 conftest$ac_exeext conftest.$ac_ext
18911LIBS=$ac_check_lib_save_LIBS
18912fi
18913{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18914echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18915if test $ac_cv_lib_gcc___udivdi3 = yes; then
18916
18917cat >>confdefs.h <<\_ACEOF
18918#define HAVE___UDIVDI3 1
18919_ACEOF
18920
18921fi
18922
18923 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18924echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18925if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18926 echo $ECHO_N "(cached) $ECHO_C" >&6
18927else
18928 ac_check_lib_save_LIBS=$LIBS
18929LIBS="-lgcc $LIBS"
18930cat >conftest.$ac_ext <<_ACEOF
18931/* confdefs.h. */
18932_ACEOF
18933cat confdefs.h >>conftest.$ac_ext
18934cat >>conftest.$ac_ext <<_ACEOF
18935/* end confdefs.h. */
18936
18937/* Override any GCC internal prototype to avoid an error.
18938 Use char because int might match the return type of a GCC
18939 builtin and then its argument prototype would still apply. */
18940#ifdef __cplusplus
18941extern "C"
18942#endif
18943char __umoddi3 ();
18944int
18945main ()
18946{
18947return __umoddi3 ();
18948 ;
18949 return 0;
18950}
18951_ACEOF
18952rm -f conftest.$ac_objext conftest$ac_exeext
18953if { (ac_try="$ac_link"
18954case "(($ac_try" in
18955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18956 *) ac_try_echo=$ac_try;;
18957esac
18958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18959 (eval "$ac_link") 2>conftest.er1
18960 ac_status=$?
18961 grep -v '^ *+' conftest.er1 >conftest.err
18962 rm -f conftest.er1
18963 cat conftest.err >&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); } &&
18966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18967 { (case "(($ac_try" in
18968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18969 *) ac_try_echo=$ac_try;;
18970esac
18971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18972 (eval "$ac_try") 2>&5
18973 ac_status=$?
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); }; } &&
18976 { ac_try='test -s conftest$ac_exeext'
18977 { (case "(($ac_try" in
18978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18979 *) ac_try_echo=$ac_try;;
18980esac
18981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18982 (eval "$ac_try") 2>&5
18983 ac_status=$?
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); }; }; then
18986 ac_cv_lib_gcc___umoddi3=yes
18987else
18988 echo "$as_me: failed program was:" >&5
18989sed 's/^/| /' conftest.$ac_ext >&5
18990
18991 ac_cv_lib_gcc___umoddi3=no
18992fi
18993
18994rm -f core conftest.err conftest.$ac_objext \
18995 conftest$ac_exeext conftest.$ac_ext
18996LIBS=$ac_check_lib_save_LIBS
18997fi
18998{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18999echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19000if test $ac_cv_lib_gcc___umoddi3 = yes; then
19001
19002cat >>confdefs.h <<\_ACEOF
19003#define HAVE___UMODDI3 1
19004_ACEOF
19005
19006fi
19007
19008
19009 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19010echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19011if test "${ac_cv_lib_gcc___main+set}" = set; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19013else
19014 ac_check_lib_save_LIBS=$LIBS
19015LIBS="-lgcc $LIBS"
19016cat >conftest.$ac_ext <<_ACEOF
19017/* confdefs.h. */
19018_ACEOF
19019cat confdefs.h >>conftest.$ac_ext
19020cat >>conftest.$ac_ext <<_ACEOF
19021/* end confdefs.h. */
19022
19023/* Override any GCC internal prototype to avoid an error.
19024 Use char because int might match the return type of a GCC
19025 builtin and then its argument prototype would still apply. */
19026#ifdef __cplusplus
19027extern "C"
19028#endif
19029char __main ();
19030int
19031main ()
19032{
19033return __main ();
19034 ;
19035 return 0;
19036}
19037_ACEOF
19038rm -f conftest.$ac_objext conftest$ac_exeext
19039if { (ac_try="$ac_link"
19040case "(($ac_try" in
19041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042 *) ac_try_echo=$ac_try;;
19043esac
19044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19045 (eval "$ac_link") 2>conftest.er1
19046 ac_status=$?
19047 grep -v '^ *+' conftest.er1 >conftest.err
19048 rm -f conftest.er1
19049 cat conftest.err >&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); } &&
19052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19053 { (case "(($ac_try" in
19054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055 *) ac_try_echo=$ac_try;;
19056esac
19057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19058 (eval "$ac_try") 2>&5
19059 ac_status=$?
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; } &&
19062 { ac_try='test -s conftest$ac_exeext'
19063 { (case "(($ac_try" in
19064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065 *) ac_try_echo=$ac_try;;
19066esac
19067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068 (eval "$ac_try") 2>&5
19069 ac_status=$?
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); }; }; then
19072 ac_cv_lib_gcc___main=yes
19073else
19074 echo "$as_me: failed program was:" >&5
19075sed 's/^/| /' conftest.$ac_ext >&5
19076
19077 ac_cv_lib_gcc___main=no
19078fi
19079
19080rm -f core conftest.err conftest.$ac_objext \
19081 conftest$ac_exeext conftest.$ac_ext
19082LIBS=$ac_check_lib_save_LIBS
19083fi
19084{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19085echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19086if test $ac_cv_lib_gcc___main = yes; then
19087
19088cat >>confdefs.h <<\_ACEOF
19089#define HAVE___MAIN 1
19090_ACEOF
19091
19092fi
19093
19094 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19095echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19096if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19097 echo $ECHO_N "(cached) $ECHO_C" >&6
19098else
19099 ac_check_lib_save_LIBS=$LIBS
19100LIBS="-lgcc $LIBS"
19101cat >conftest.$ac_ext <<_ACEOF
19102/* confdefs.h. */
19103_ACEOF
19104cat confdefs.h >>conftest.$ac_ext
19105cat >>conftest.$ac_ext <<_ACEOF
19106/* end confdefs.h. */
19107
19108/* Override any GCC internal prototype to avoid an error.
19109 Use char because int might match the return type of a GCC
19110 builtin and then its argument prototype would still apply. */
19111#ifdef __cplusplus
19112extern "C"
19113#endif
19114char __cmpdi2 ();
19115int
19116main ()
19117{
19118return __cmpdi2 ();
19119 ;
19120 return 0;
19121}
19122_ACEOF
19123rm -f conftest.$ac_objext conftest$ac_exeext
19124if { (ac_try="$ac_link"
19125case "(($ac_try" in
19126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19127 *) ac_try_echo=$ac_try;;
19128esac
19129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19130 (eval "$ac_link") 2>conftest.er1
19131 ac_status=$?
19132 grep -v '^ *+' conftest.er1 >conftest.err
19133 rm -f conftest.er1
19134 cat conftest.err >&5
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); } &&
19137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19138 { (case "(($ac_try" in
19139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140 *) ac_try_echo=$ac_try;;
19141esac
19142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143 (eval "$ac_try") 2>&5
19144 ac_status=$?
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; } &&
19147 { ac_try='test -s conftest$ac_exeext'
19148 { (case "(($ac_try" in
19149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150 *) ac_try_echo=$ac_try;;
19151esac
19152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19153 (eval "$ac_try") 2>&5
19154 ac_status=$?
19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156 (exit $ac_status); }; }; then
19157 ac_cv_lib_gcc___cmpdi2=yes
19158else
19159 echo "$as_me: failed program was:" >&5
19160sed 's/^/| /' conftest.$ac_ext >&5
19161
19162 ac_cv_lib_gcc___cmpdi2=no
19163fi
19164
19165rm -f core conftest.err conftest.$ac_objext \
19166 conftest$ac_exeext conftest.$ac_ext
19167LIBS=$ac_check_lib_save_LIBS
19168fi
19169{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19170echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19171if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19172
19173cat >>confdefs.h <<\_ACEOF
19174#define HAVE___CMPDI2 1
19175_ACEOF
19176
19177fi
19178
19179fi
19180
19181if test "$llvm_cv_os_type" = "MingW" ; then
19182 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19183echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19184 cat >conftest.$ac_ext <<_ACEOF
19185#include <windows.h>
19186#include <imagehlp.h>
19187extern void foo(PENUMLOADED_MODULES_CALLBACK);
19188extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19189_ACEOF
19190rm -f conftest.$ac_objext
19191if { (ac_try="$ac_compile"
19192case "(($ac_try" in
19193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194 *) ac_try_echo=$ac_try;;
19195esac
19196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197 (eval "$ac_compile") 2>conftest.er1
19198 ac_status=$?
19199 grep -v '^ *+' conftest.er1 >conftest.err
19200 rm -f conftest.er1
19201 cat conftest.err >&5
19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); } &&
19204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19205 { (case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19208esac
19209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_try") 2>&5
19211 ac_status=$?
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); }; } &&
19214 { ac_try='test -s conftest.$ac_objext'
19215 { (case "(($ac_try" in
19216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19217 *) ac_try_echo=$ac_try;;
19218esac
19219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19220 (eval "$ac_try") 2>&5
19221 ac_status=$?
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; }; then
19224
19225 { echo "$as_me:$LINENO: result: yes" >&5
19226echo "${ECHO_T}yes" >&6; }
19227 llvm_cv_win32_elmcb_pcstr="PCSTR"
19228
19229else
19230 echo "$as_me: failed program was:" >&5
19231sed 's/^/| /' conftest.$ac_ext >&5
19232
19233
19234 { echo "$as_me:$LINENO: result: no" >&5
19235echo "${ECHO_T}no" >&6; }
19236 llvm_cv_win32_elmcb_pcstr="PSTR"
19237
19238fi
19239
19240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19241
19242cat >>confdefs.h <<_ACEOF
19243#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19244_ACEOF
19245
19246fi
19247
19248
19249{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19250echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19251if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19252 echo $ECHO_N "(cached) $ECHO_C" >&6
19253else
19254 ac_ext=cpp
19255ac_cpp='$CXXCPP $CPPFLAGS'
19256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19259
19260 cat >conftest.$ac_ext <<_ACEOF
19261/* confdefs.h. */
19262_ACEOF
19263cat confdefs.h >>conftest.$ac_ext
19264cat >>conftest.$ac_ext <<_ACEOF
19265/* end confdefs.h. */
19266#include <math.h>
19267int
19268main ()
19269{
19270float f; isnan(f);
19271 ;
19272 return 0;
19273}
19274_ACEOF
19275rm -f conftest.$ac_objext
19276if { (ac_try="$ac_compile"
19277case "(($ac_try" in
19278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19279 *) ac_try_echo=$ac_try;;
19280esac
19281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19282 (eval "$ac_compile") 2>conftest.er1
19283 ac_status=$?
19284 grep -v '^ *+' conftest.er1 >conftest.err
19285 rm -f conftest.er1
19286 cat conftest.err >&5
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); } &&
19289 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19290 { (case "(($ac_try" in
19291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19292 *) ac_try_echo=$ac_try;;
19293esac
19294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19295 (eval "$ac_try") 2>&5
19296 ac_status=$?
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); }; } &&
19299 { ac_try='test -s conftest.$ac_objext'
19300 { (case "(($ac_try" in
19301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19302 *) ac_try_echo=$ac_try;;
19303esac
19304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19305 (eval "$ac_try") 2>&5
19306 ac_status=$?
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); }; }; then
19309 ac_cv_func_isnan_in_math_h=yes
19310else
19311 echo "$as_me: failed program was:" >&5
19312sed 's/^/| /' conftest.$ac_ext >&5
19313
19314 ac_cv_func_isnan_in_math_h=no
19315fi
19316
19317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19318 ac_ext=c
19319ac_cpp='$CPP $CPPFLAGS'
19320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19322ac_compiler_gnu=$ac_cv_c_compiler_gnu
19323
19324fi
19325{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19326echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19327
19328
19329if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19330
19331cat >>confdefs.h <<\_ACEOF
19332#define HAVE_ISNAN_IN_MATH_H 1
19333_ACEOF
19334
19335fi
19336
19337{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19338echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19339if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19340 echo $ECHO_N "(cached) $ECHO_C" >&6
19341else
19342 ac_ext=cpp
19343ac_cpp='$CXXCPP $CPPFLAGS'
19344ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19345ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19347
19348 cat >conftest.$ac_ext <<_ACEOF
19349/* confdefs.h. */
19350_ACEOF
19351cat confdefs.h >>conftest.$ac_ext
19352cat >>conftest.$ac_ext <<_ACEOF
19353/* end confdefs.h. */
19354#include <cmath>
19355int
19356main ()
19357{
19358float f; isnan(f);
19359 ;
19360 return 0;
19361}
19362_ACEOF
19363rm -f conftest.$ac_objext
19364if { (ac_try="$ac_compile"
19365case "(($ac_try" in
19366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19367 *) ac_try_echo=$ac_try;;
19368esac
19369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19370 (eval "$ac_compile") 2>conftest.er1
19371 ac_status=$?
19372 grep -v '^ *+' conftest.er1 >conftest.err
19373 rm -f conftest.er1
19374 cat conftest.err >&5
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); } &&
19377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19378 { (case "(($ac_try" in
19379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380 *) ac_try_echo=$ac_try;;
19381esac
19382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383 (eval "$ac_try") 2>&5
19384 ac_status=$?
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; } &&
19387 { ac_try='test -s conftest.$ac_objext'
19388 { (case "(($ac_try" in
19389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390 *) ac_try_echo=$ac_try;;
19391esac
19392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19393 (eval "$ac_try") 2>&5
19394 ac_status=$?
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); }; }; then
19397 ac_cv_func_isnan_in_cmath=yes
19398else
19399 echo "$as_me: failed program was:" >&5
19400sed 's/^/| /' conftest.$ac_ext >&5
19401
19402 ac_cv_func_isnan_in_cmath=no
19403fi
19404
19405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19406 ac_ext=c
19407ac_cpp='$CPP $CPPFLAGS'
19408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19410ac_compiler_gnu=$ac_cv_c_compiler_gnu
19411
19412fi
19413{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19414echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19415
19416if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19417
19418cat >>confdefs.h <<\_ACEOF
19419#define HAVE_ISNAN_IN_CMATH 1
19420_ACEOF
19421
19422fi
19423
19424{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19425echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19426if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19427 echo $ECHO_N "(cached) $ECHO_C" >&6
19428else
19429 ac_ext=cpp
19430ac_cpp='$CXXCPP $CPPFLAGS'
19431ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19432ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19433ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19434
19435 cat >conftest.$ac_ext <<_ACEOF
19436/* confdefs.h. */
19437_ACEOF
19438cat confdefs.h >>conftest.$ac_ext
19439cat >>conftest.$ac_ext <<_ACEOF
19440/* end confdefs.h. */
19441#include <cmath>
19442int
19443main ()
19444{
19445float f; std::isnan(f);
19446 ;
19447 return 0;
19448}
19449_ACEOF
19450rm -f conftest.$ac_objext
19451if { (ac_try="$ac_compile"
19452case "(($ac_try" in
19453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454 *) ac_try_echo=$ac_try;;
19455esac
19456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19457 (eval "$ac_compile") 2>conftest.er1
19458 ac_status=$?
19459 grep -v '^ *+' conftest.er1 >conftest.err
19460 rm -f conftest.er1
19461 cat conftest.err >&5
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); } &&
19464 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19465 { (case "(($ac_try" in
19466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19467 *) ac_try_echo=$ac_try;;
19468esac
19469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19470 (eval "$ac_try") 2>&5
19471 ac_status=$?
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); }; } &&
19474 { ac_try='test -s conftest.$ac_objext'
19475 { (case "(($ac_try" in
19476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19477 *) ac_try_echo=$ac_try;;
19478esac
19479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19480 (eval "$ac_try") 2>&5
19481 ac_status=$?
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); }; }; then
19484 ac_cv_func_std_isnan_in_cmath=yes
19485else
19486 echo "$as_me: failed program was:" >&5
19487sed 's/^/| /' conftest.$ac_ext >&5
19488
19489 ac_cv_func_std_isnan_in_cmath=no
19490fi
19491
19492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19493 ac_ext=c
19494ac_cpp='$CPP $CPPFLAGS'
19495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19497ac_compiler_gnu=$ac_cv_c_compiler_gnu
19498
19499fi
19500{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19501echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19502
19503if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19504
19505cat >>confdefs.h <<\_ACEOF
19506#define HAVE_STD_ISNAN_IN_CMATH 1
19507_ACEOF
19508
19509fi
19510
19511
19512{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19513echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19514if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19515 echo $ECHO_N "(cached) $ECHO_C" >&6
19516else
19517 ac_ext=cpp
19518ac_cpp='$CXXCPP $CPPFLAGS'
19519ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19520ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19521ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19522
19523 cat >conftest.$ac_ext <<_ACEOF
19524/* confdefs.h. */
19525_ACEOF
19526cat confdefs.h >>conftest.$ac_ext
19527cat >>conftest.$ac_ext <<_ACEOF
19528/* end confdefs.h. */
19529#include <math.h>
19530int
19531main ()
19532{
19533float f; isinf(f);
19534 ;
19535 return 0;
19536}
19537_ACEOF
19538rm -f conftest.$ac_objext
19539if { (ac_try="$ac_compile"
19540case "(($ac_try" in
19541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542 *) ac_try_echo=$ac_try;;
19543esac
19544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19545 (eval "$ac_compile") 2>conftest.er1
19546 ac_status=$?
19547 grep -v '^ *+' conftest.er1 >conftest.err
19548 rm -f conftest.er1
19549 cat conftest.err >&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); } &&
19552 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19553 { (case "(($ac_try" in
19554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555 *) ac_try_echo=$ac_try;;
19556esac
19557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19558 (eval "$ac_try") 2>&5
19559 ac_status=$?
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); }; } &&
19562 { ac_try='test -s conftest.$ac_objext'
19563 { (case "(($ac_try" in
19564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19565 *) ac_try_echo=$ac_try;;
19566esac
19567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19568 (eval "$ac_try") 2>&5
19569 ac_status=$?
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); }; }; then
19572 ac_cv_func_isinf_in_math_h=yes
19573else
19574 echo "$as_me: failed program was:" >&5
19575sed 's/^/| /' conftest.$ac_ext >&5
19576
19577 ac_cv_func_isinf_in_math_h=no
19578fi
19579
19580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19581 ac_ext=c
19582ac_cpp='$CPP $CPPFLAGS'
19583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19585ac_compiler_gnu=$ac_cv_c_compiler_gnu
19586
19587fi
19588{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19589echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19590
19591if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19592
19593cat >>confdefs.h <<\_ACEOF
19594#define HAVE_ISINF_IN_MATH_H 1
19595_ACEOF
19596
19597fi
19598
19599{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19600echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19601if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19602 echo $ECHO_N "(cached) $ECHO_C" >&6
19603else
19604 ac_ext=cpp
19605ac_cpp='$CXXCPP $CPPFLAGS'
19606ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19607ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19608ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19609
19610 cat >conftest.$ac_ext <<_ACEOF
19611/* confdefs.h. */
19612_ACEOF
19613cat confdefs.h >>conftest.$ac_ext
19614cat >>conftest.$ac_ext <<_ACEOF
19615/* end confdefs.h. */
19616#include <cmath>
19617int
19618main ()
19619{
19620float f; isinf(f);
19621 ;
19622 return 0;
19623}
19624_ACEOF
19625rm -f conftest.$ac_objext
19626if { (ac_try="$ac_compile"
19627case "(($ac_try" in
19628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19629 *) ac_try_echo=$ac_try;;
19630esac
19631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19632 (eval "$ac_compile") 2>conftest.er1
19633 ac_status=$?
19634 grep -v '^ *+' conftest.er1 >conftest.err
19635 rm -f conftest.er1
19636 cat conftest.err >&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } &&
19639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19640 { (case "(($ac_try" in
19641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19642 *) ac_try_echo=$ac_try;;
19643esac
19644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19645 (eval "$ac_try") 2>&5
19646 ac_status=$?
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; } &&
19649 { ac_try='test -s conftest.$ac_objext'
19650 { (case "(($ac_try" in
19651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19652 *) ac_try_echo=$ac_try;;
19653esac
19654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19655 (eval "$ac_try") 2>&5
19656 ac_status=$?
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); }; }; then
19659 ac_cv_func_isinf_in_cmath=yes
19660else
19661 echo "$as_me: failed program was:" >&5
19662sed 's/^/| /' conftest.$ac_ext >&5
19663
19664 ac_cv_func_isinf_in_cmath=no
19665fi
19666
19667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19668 ac_ext=c
19669ac_cpp='$CPP $CPPFLAGS'
19670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19672ac_compiler_gnu=$ac_cv_c_compiler_gnu
19673
19674fi
19675{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19676echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19677
19678if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19679
19680cat >>confdefs.h <<\_ACEOF
19681#define HAVE_ISINF_IN_CMATH 1
19682_ACEOF
19683
19684fi
19685
19686{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19687echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19688if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19689 echo $ECHO_N "(cached) $ECHO_C" >&6
19690else
19691 ac_ext=cpp
19692ac_cpp='$CXXCPP $CPPFLAGS'
19693ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19694ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19695ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19696
19697 cat >conftest.$ac_ext <<_ACEOF
19698/* confdefs.h. */
19699_ACEOF
19700cat confdefs.h >>conftest.$ac_ext
19701cat >>conftest.$ac_ext <<_ACEOF
19702/* end confdefs.h. */
19703#include <cmath>
19704int
19705main ()
19706{
19707float f; std::isinf(f)}
19708 ;
19709 return 0;
19710}
19711_ACEOF
19712rm -f conftest.$ac_objext
19713if { (ac_try="$ac_compile"
19714case "(($ac_try" in
19715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716 *) ac_try_echo=$ac_try;;
19717esac
19718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19719 (eval "$ac_compile") 2>conftest.er1
19720 ac_status=$?
19721 grep -v '^ *+' conftest.er1 >conftest.err
19722 rm -f conftest.er1
19723 cat conftest.err >&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); } &&
19726 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19727 { (case "(($ac_try" in
19728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729 *) ac_try_echo=$ac_try;;
19730esac
19731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732 (eval "$ac_try") 2>&5
19733 ac_status=$?
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; } &&
19736 { ac_try='test -s conftest.$ac_objext'
19737 { (case "(($ac_try" in
19738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19739 *) ac_try_echo=$ac_try;;
19740esac
19741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19742 (eval "$ac_try") 2>&5
19743 ac_status=$?
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; }; then
19746 ac_cv_func_std_isinf_in_cmath=yes
19747else
19748 echo "$as_me: failed program was:" >&5
19749sed 's/^/| /' conftest.$ac_ext >&5
19750
19751 ac_cv_func_std_isinf_in_cmath=no
19752fi
19753
19754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19755 ac_ext=c
19756ac_cpp='$CPP $CPPFLAGS'
19757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19759ac_compiler_gnu=$ac_cv_c_compiler_gnu
19760
19761fi
19762{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19763echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19764
19765if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19766
19767cat >>confdefs.h <<\_ACEOF
19768#define HAVE_STD_ISINF_IN_CMATH 1
19769_ACEOF
19770
19771fi
19772
19773{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19774echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19775if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19776 echo $ECHO_N "(cached) $ECHO_C" >&6
19777else
19778 ac_ext=cpp
19779ac_cpp='$CXXCPP $CPPFLAGS'
19780ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19781ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19782ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19783
19784 cat >conftest.$ac_ext <<_ACEOF
19785/* confdefs.h. */
19786_ACEOF
19787cat confdefs.h >>conftest.$ac_ext
19788cat >>conftest.$ac_ext <<_ACEOF
19789/* end confdefs.h. */
19790#include <ieeefp.h>
19791int
19792main ()
19793{
19794float f; finite(f);
19795 ;
19796 return 0;
19797}
19798_ACEOF
19799rm -f conftest.$ac_objext
19800if { (ac_try="$ac_compile"
19801case "(($ac_try" in
19802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19803 *) ac_try_echo=$ac_try;;
19804esac
19805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19806 (eval "$ac_compile") 2>conftest.er1
19807 ac_status=$?
19808 grep -v '^ *+' conftest.er1 >conftest.err
19809 rm -f conftest.er1
19810 cat conftest.err >&5
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); } &&
19813 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19814 { (case "(($ac_try" in
19815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816 *) ac_try_echo=$ac_try;;
19817esac
19818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19819 (eval "$ac_try") 2>&5
19820 ac_status=$?
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); }; } &&
19823 { ac_try='test -s conftest.$ac_objext'
19824 { (case "(($ac_try" in
19825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19826 *) ac_try_echo=$ac_try;;
19827esac
19828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19829 (eval "$ac_try") 2>&5
19830 ac_status=$?
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); }; }; then
19833 ac_cv_func_finite_in_ieeefp_h=yes
19834else
19835 echo "$as_me: failed program was:" >&5
19836sed 's/^/| /' conftest.$ac_ext >&5
19837
19838 ac_cv_func_finite_in_ieeefp_h=no
19839fi
19840
19841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19842 ac_ext=c
19843ac_cpp='$CPP $CPPFLAGS'
19844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19846ac_compiler_gnu=$ac_cv_c_compiler_gnu
19847
19848fi
19849{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19850echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19851
19852if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19853
19854cat >>confdefs.h <<\_ACEOF
19855#define HAVE_FINITE_IN_IEEEFP_H 1
19856_ACEOF
19857
19858fi
19859
19860
19861
19862if test "$llvm_cv_platform_type" = "Unix" ; then
19863
19864
19865for ac_header in stdlib.h unistd.h
19866do
19867as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19868if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19871if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19872 echo $ECHO_N "(cached) $ECHO_C" >&6
19873fi
19874ac_res=`eval echo '${'$as_ac_Header'}'`
19875 { echo "$as_me:$LINENO: result: $ac_res" >&5
19876echo "${ECHO_T}$ac_res" >&6; }
19877else
19878 # Is the header compilable?
19879{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19880echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19881cat >conftest.$ac_ext <<_ACEOF
19882/* confdefs.h. */
19883_ACEOF
19884cat confdefs.h >>conftest.$ac_ext
19885cat >>conftest.$ac_ext <<_ACEOF
19886/* end confdefs.h. */
19887$ac_includes_default
19888#include <$ac_header>
19889_ACEOF
19890rm -f conftest.$ac_objext
19891if { (ac_try="$ac_compile"
19892case "(($ac_try" in
19893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19894 *) ac_try_echo=$ac_try;;
19895esac
19896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19897 (eval "$ac_compile") 2>conftest.er1
19898 ac_status=$?
19899 grep -v '^ *+' conftest.er1 >conftest.err
19900 rm -f conftest.er1
19901 cat conftest.err >&5
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); } &&
19904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19905 { (case "(($ac_try" in
19906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19907 *) ac_try_echo=$ac_try;;
19908esac
19909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19910 (eval "$ac_try") 2>&5
19911 ac_status=$?
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); }; } &&
19914 { ac_try='test -s conftest.$ac_objext'
19915 { (case "(($ac_try" in
19916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19917 *) ac_try_echo=$ac_try;;
19918esac
19919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19920 (eval "$ac_try") 2>&5
19921 ac_status=$?
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); }; }; then
19924 ac_header_compiler=yes
19925else
19926 echo "$as_me: failed program was:" >&5
19927sed 's/^/| /' conftest.$ac_ext >&5
19928
19929 ac_header_compiler=no
19930fi
19931
19932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19933{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19934echo "${ECHO_T}$ac_header_compiler" >&6; }
19935
19936# Is the header present?
19937{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19938echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19939cat >conftest.$ac_ext <<_ACEOF
19940/* confdefs.h. */
19941_ACEOF
19942cat confdefs.h >>conftest.$ac_ext
19943cat >>conftest.$ac_ext <<_ACEOF
19944/* end confdefs.h. */
19945#include <$ac_header>
19946_ACEOF
19947if { (ac_try="$ac_cpp conftest.$ac_ext"
19948case "(($ac_try" in
19949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950 *) ac_try_echo=$ac_try;;
19951esac
19952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19954 ac_status=$?
19955 grep -v '^ *+' conftest.er1 >conftest.err
19956 rm -f conftest.er1
19957 cat conftest.err >&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); } >/dev/null; then
19960 if test -s conftest.err; then
19961 ac_cpp_err=$ac_c_preproc_warn_flag
19962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19963 else
19964 ac_cpp_err=
19965 fi
19966else
19967 ac_cpp_err=yes
19968fi
19969if test -z "$ac_cpp_err"; then
19970 ac_header_preproc=yes
19971else
19972 echo "$as_me: failed program was:" >&5
19973sed 's/^/| /' conftest.$ac_ext >&5
19974
19975 ac_header_preproc=no
19976fi
19977
19978rm -f conftest.err conftest.$ac_ext
19979{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19980echo "${ECHO_T}$ac_header_preproc" >&6; }
19981
19982# So? What about this header?
19983case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19984 yes:no: )
19985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19986echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19988echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19989 ac_header_preproc=yes
19990 ;;
19991 no:yes:* )
19992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19993echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19995echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19997echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19999echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20001echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20003echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20004 ( cat <<\_ASBOX
20005## ------------------------------ ##
20006## Report this to bugs@yourdomain ##
20007## ------------------------------ ##
20008_ASBOX
20009 ) | sed "s/^/$as_me: WARNING: /" >&2
20010 ;;
20011esac
20012{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20015 echo $ECHO_N "(cached) $ECHO_C" >&6
20016else
20017 eval "$as_ac_Header=\$ac_header_preproc"
20018fi
20019ac_res=`eval echo '${'$as_ac_Header'}'`
20020 { echo "$as_me:$LINENO: result: $ac_res" >&5
20021echo "${ECHO_T}$ac_res" >&6; }
20022
20023fi
20024if test `eval echo '${'$as_ac_Header'}'` = yes; then
20025 cat >>confdefs.h <<_ACEOF
20026#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20027_ACEOF
20028
20029fi
20030
20031done
20032
20033
20034for ac_func in getpagesize
20035do
20036as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20037{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20038echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20039if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20040 echo $ECHO_N "(cached) $ECHO_C" >&6
20041else
20042 cat >conftest.$ac_ext <<_ACEOF
20043/* confdefs.h. */
20044_ACEOF
20045cat confdefs.h >>conftest.$ac_ext
20046cat >>conftest.$ac_ext <<_ACEOF
20047/* end confdefs.h. */
20048/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20050#define $ac_func innocuous_$ac_func
20051
20052/* System header to define __stub macros and hopefully few prototypes,
20053 which can conflict with char $ac_func (); below.
20054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20055 <limits.h> exists even on freestanding compilers. */
20056
20057#ifdef __STDC__
20058# include <limits.h>
20059#else
20060# include <assert.h>
20061#endif
20062
20063#undef $ac_func
20064
20065/* Override any GCC internal prototype to avoid an error.
20066 Use char because int might match the return type of a GCC
20067 builtin and then its argument prototype would still apply. */
20068#ifdef __cplusplus
20069extern "C"
20070#endif
20071char $ac_func ();
20072/* The GNU C library defines this for functions which it implements
20073 to always fail with ENOSYS. Some functions are actually named
20074 something starting with __ and the normal name is an alias. */
20075#if defined __stub_$ac_func || defined __stub___$ac_func
20076choke me
20077#endif
20078
20079int
20080main ()
20081{
20082return $ac_func ();
20083 ;
20084 return 0;
20085}
20086_ACEOF
20087rm -f conftest.$ac_objext conftest$ac_exeext
20088if { (ac_try="$ac_link"
20089case "(($ac_try" in
20090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20091 *) ac_try_echo=$ac_try;;
20092esac
20093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20094 (eval "$ac_link") 2>conftest.er1
20095 ac_status=$?
20096 grep -v '^ *+' conftest.er1 >conftest.err
20097 rm -f conftest.er1
20098 cat conftest.err >&5
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); } &&
20101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20102 { (case "(($ac_try" in
20103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20104 *) ac_try_echo=$ac_try;;
20105esac
20106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20107 (eval "$ac_try") 2>&5
20108 ac_status=$?
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; } &&
20111 { ac_try='test -s conftest$ac_exeext'
20112 { (case "(($ac_try" in
20113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20114 *) ac_try_echo=$ac_try;;
20115esac
20116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20117 (eval "$ac_try") 2>&5
20118 ac_status=$?
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); }; }; then
20121 eval "$as_ac_var=yes"
20122else
20123 echo "$as_me: failed program was:" >&5
20124sed 's/^/| /' conftest.$ac_ext >&5
20125
20126 eval "$as_ac_var=no"
20127fi
20128
20129rm -f core conftest.err conftest.$ac_objext \
20130 conftest$ac_exeext conftest.$ac_ext
20131fi
20132ac_res=`eval echo '${'$as_ac_var'}'`
20133 { echo "$as_me:$LINENO: result: $ac_res" >&5
20134echo "${ECHO_T}$ac_res" >&6; }
20135if test `eval echo '${'$as_ac_var'}'` = yes; then
20136 cat >>confdefs.h <<_ACEOF
20137#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20138_ACEOF
20139
20140fi
20141done
20142
20143{ echo "$as_me:$LINENO: checking for working mmap" >&5
20144echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20145if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20146 echo $ECHO_N "(cached) $ECHO_C" >&6
20147else
20148 if test "$cross_compiling" = yes; then
20149 ac_cv_func_mmap_fixed_mapped=no
20150else
20151 cat >conftest.$ac_ext <<_ACEOF
20152/* confdefs.h. */
20153_ACEOF
20154cat confdefs.h >>conftest.$ac_ext
20155cat >>conftest.$ac_ext <<_ACEOF
20156/* end confdefs.h. */
20157$ac_includes_default
20158/* malloc might have been renamed as rpl_malloc. */
20159#undef malloc
20160
20161/* Thanks to Mike Haertel and Jim Avera for this test.
20162 Here is a matrix of mmap possibilities:
20163 mmap private not fixed
20164 mmap private fixed at somewhere currently unmapped
20165 mmap private fixed at somewhere already mapped
20166 mmap shared not fixed
20167 mmap shared fixed at somewhere currently unmapped
20168 mmap shared fixed at somewhere already mapped
20169 For private mappings, we should verify that changes cannot be read()
20170 back from the file, nor mmap's back from the file at a different
20171 address. (There have been systems where private was not correctly
20172 implemented like the infamous i386 svr4.0, and systems where the
20173 VM page cache was not coherent with the file system buffer cache
20174 like early versions of FreeBSD and possibly contemporary NetBSD.)
20175 For shared mappings, we should conversely verify that changes get
20176 propagated back to all the places they're supposed to be.
20177
20178 Grep wants private fixed already mapped.
20179 The main things grep needs to know about mmap are:
20180 * does it exist and is it safe to write into the mmap'd area
20181 * how to use it (BSD variants) */
20182
20183#include <fcntl.h>
20184#include <sys/mman.h>
20185
20186#if !STDC_HEADERS && !HAVE_STDLIB_H
20187char *malloc ();
20188#endif
20189
20190/* This mess was copied from the GNU getpagesize.h. */
20191#if !HAVE_GETPAGESIZE
20192/* Assume that all systems that can run configure have sys/param.h. */
20193# if !HAVE_SYS_PARAM_H
20194# define HAVE_SYS_PARAM_H 1
20195# endif
20196
20197# ifdef _SC_PAGESIZE
20198# define getpagesize() sysconf(_SC_PAGESIZE)
20199# else /* no _SC_PAGESIZE */
20200# if HAVE_SYS_PARAM_H
20201# include <sys/param.h>
20202# ifdef EXEC_PAGESIZE
20203# define getpagesize() EXEC_PAGESIZE
20204# else /* no EXEC_PAGESIZE */
20205# ifdef NBPG
20206# define getpagesize() NBPG * CLSIZE
20207# ifndef CLSIZE
20208# define CLSIZE 1
20209# endif /* no CLSIZE */
20210# else /* no NBPG */
20211# ifdef NBPC
20212# define getpagesize() NBPC
20213# else /* no NBPC */
20214# ifdef PAGESIZE
20215# define getpagesize() PAGESIZE
20216# endif /* PAGESIZE */
20217# endif /* no NBPC */
20218# endif /* no NBPG */
20219# endif /* no EXEC_PAGESIZE */
20220# else /* no HAVE_SYS_PARAM_H */
20221# define getpagesize() 8192 /* punt totally */
20222# endif /* no HAVE_SYS_PARAM_H */
20223# endif /* no _SC_PAGESIZE */
20224
20225#endif /* no HAVE_GETPAGESIZE */
20226
20227int
20228main ()
20229{
20230 char *data, *data2, *data3;
20231 int i, pagesize;
20232 int fd;
20233
20234 pagesize = getpagesize ();
20235
20236 /* First, make a file with some known garbage in it. */
20237 data = (char *) malloc (pagesize);
20238 if (!data)
20239 return 1;
20240 for (i = 0; i < pagesize; ++i)
20241 *(data + i) = rand ();
20242 umask (0);
20243 fd = creat ("conftest.mmap", 0600);
20244 if (fd < 0)
20245 return 1;
20246 if (write (fd, data, pagesize) != pagesize)
20247 return 1;
20248 close (fd);
20249
20250 /* Next, try to mmap the file at a fixed address which already has
20251 something else allocated at it. If we can, also make sure that
20252 we see the same garbage. */
20253 fd = open ("conftest.mmap", O_RDWR);
20254 if (fd < 0)
20255 return 1;
20256 data2 = (char *) malloc (2 * pagesize);
20257 if (!data2)
20258 return 1;
20259 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20260 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20261 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20262 return 1;
20263 for (i = 0; i < pagesize; ++i)
20264 if (*(data + i) != *(data2 + i))
20265 return 1;
20266
20267 /* Finally, make sure that changes to the mapped area do not
20268 percolate back to the file as seen by read(). (This is a bug on
20269 some variants of i386 svr4.0.) */
20270 for (i = 0; i < pagesize; ++i)
20271 *(data2 + i) = *(data2 + i) + 1;
20272 data3 = (char *) malloc (pagesize);
20273 if (!data3)
20274 return 1;
20275 if (read (fd, data3, pagesize) != pagesize)
20276 return 1;
20277 for (i = 0; i < pagesize; ++i)
20278 if (*(data + i) != *(data3 + i))
20279 return 1;
20280 close (fd);
20281 return 0;
20282}
20283_ACEOF
20284rm -f conftest$ac_exeext
20285if { (ac_try="$ac_link"
20286case "(($ac_try" in
20287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20288 *) ac_try_echo=$ac_try;;
20289esac
20290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20291 (eval "$ac_link") 2>&5
20292 ac_status=$?
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20295 { (case "(($ac_try" in
20296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20297 *) ac_try_echo=$ac_try;;
20298esac
20299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20300 (eval "$ac_try") 2>&5
20301 ac_status=$?
20302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303 (exit $ac_status); }; }; then
20304 ac_cv_func_mmap_fixed_mapped=yes
20305else
20306 echo "$as_me: program exited with status $ac_status" >&5
20307echo "$as_me: failed program was:" >&5
20308sed 's/^/| /' conftest.$ac_ext >&5
20309
20310( exit $ac_status )
20311ac_cv_func_mmap_fixed_mapped=no
20312fi
20313rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20314fi
20315
20316
20317fi
20318{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20319echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20320if test $ac_cv_func_mmap_fixed_mapped = yes; then
20321
20322cat >>confdefs.h <<\_ACEOF
20323#define HAVE_MMAP 1
20324_ACEOF
20325
20326fi
20327rm -f conftest.mmap
20328
20329 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20330echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20331if test "${ac_cv_func_mmap_file+set}" = set; then
20332 echo $ECHO_N "(cached) $ECHO_C" >&6
20333else
20334 ac_ext=c
20335ac_cpp='$CPP $CPPFLAGS'
20336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20338ac_compiler_gnu=$ac_cv_c_compiler_gnu
20339
20340 if test "$cross_compiling" = yes; then
20341 ac_cv_func_mmap_file=no
20342else
20343 cat >conftest.$ac_ext <<_ACEOF
20344
20345 /* confdefs.h. */
20346_ACEOF
20347cat confdefs.h >>conftest.$ac_ext
20348cat >>conftest.$ac_ext <<_ACEOF
20349/* end confdefs.h. */
20350
20351#include <sys/types.h>
20352#include <sys/mman.h>
20353#include <fcntl.h>
20354
20355int
20356main ()
20357{
20358
20359 int fd;
20360 fd = creat ("foo",0777);
20361 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20362 unlink ("foo");
20363 return (fd != (int) MAP_FAILED);
20364 ;
20365 return 0;
20366}
20367_ACEOF
20368rm -f conftest$ac_exeext
20369if { (ac_try="$ac_link"
20370case "(($ac_try" in
20371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372 *) ac_try_echo=$ac_try;;
20373esac
20374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375 (eval "$ac_link") 2>&5
20376 ac_status=$?
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20379 { (case "(($ac_try" in
20380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20381 *) ac_try_echo=$ac_try;;
20382esac
20383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20384 (eval "$ac_try") 2>&5
20385 ac_status=$?
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); }; }; then
20388 ac_cv_func_mmap_file=yes
20389else
20390 echo "$as_me: program exited with status $ac_status" >&5
20391echo "$as_me: failed program was:" >&5
20392sed 's/^/| /' conftest.$ac_ext >&5
20393
20394( exit $ac_status )
20395ac_cv_func_mmap_file=no
20396fi
20397rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20398fi
20399
20400
20401 ac_ext=c
20402ac_cpp='$CPP $CPPFLAGS'
20403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20405ac_compiler_gnu=$ac_cv_c_compiler_gnu
20406
20407
20408fi
20409{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20410echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20411if test "$ac_cv_func_mmap_file" = yes; then
20412
20413cat >>confdefs.h <<\_ACEOF
20414#define HAVE_MMAP_FILE
20415_ACEOF
20416
20417 MMAP_FILE=yes
20418
20419fi
20420
20421 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20422echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20423if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20424 echo $ECHO_N "(cached) $ECHO_C" >&6
20425else
20426 if test "$llvm_cv_os_type" = "Interix" ; then
20427 ac_cv_need_dev_zero_for_mmap=yes
20428 else
20429 ac_cv_need_dev_zero_for_mmap=no
20430 fi
20431
20432fi
20433{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20434echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20435if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20436
20437cat >>confdefs.h <<\_ACEOF
20438#define NEED_DEV_ZERO_FOR_MMAP 1
20439_ACEOF
20440
20441fi
20442
20443 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20444 then
20445 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20446echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20447 fi
20448 if test "$ac_cv_func_mmap_file" = "no"
20449 then
20450 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20451echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20452 fi
20453fi
20454
20455{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20456echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20457ac_ext=cpp
20458ac_cpp='$CXXCPP $CPPFLAGS'
20459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20462
20463cat >conftest.$ac_ext <<_ACEOF
20464/* confdefs.h. */
20465_ACEOF
20466cat confdefs.h >>conftest.$ac_ext
20467cat >>conftest.$ac_ext <<_ACEOF
20468/* end confdefs.h. */
20469int main() {
20470 volatile unsigned long val = 1;
20471 __sync_synchronize();
20472 __sync_val_compare_and_swap(&val, 1, 0);
20473 __sync_add_and_fetch(&val, 1);
20474 __sync_sub_and_fetch(&val, 1);
20475 return 0;
20476 }
20477
20478_ACEOF
20479rm -f conftest.$ac_objext conftest$ac_exeext
20480if { (ac_try="$ac_link"
20481case "(($ac_try" in
20482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20483 *) ac_try_echo=$ac_try;;
20484esac
20485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20486 (eval "$ac_link") 2>conftest.er1
20487 ac_status=$?
20488 grep -v '^ *+' conftest.er1 >conftest.err
20489 rm -f conftest.er1
20490 cat conftest.err >&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); } &&
20493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20494 { (case "(($ac_try" in
20495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496 *) ac_try_echo=$ac_try;;
20497esac
20498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499 (eval "$ac_try") 2>&5
20500 ac_status=$?
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); }; } &&
20503 { ac_try='test -s conftest$ac_exeext'
20504 { (case "(($ac_try" in
20505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20506 *) ac_try_echo=$ac_try;;
20507esac
20508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20509 (eval "$ac_try") 2>&5
20510 ac_status=$?
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); }; }; then
20513 ac_ext=c
20514ac_cpp='$CPP $CPPFLAGS'
20515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20517ac_compiler_gnu=$ac_cv_c_compiler_gnu
20518
20519 { echo "$as_me:$LINENO: result: yes" >&5
20520echo "${ECHO_T}yes" >&6; }
20521
20522cat >>confdefs.h <<\_ACEOF
20523#define LLVM_HAS_ATOMICS 1
20524_ACEOF
20525
20526else
20527 echo "$as_me: failed program was:" >&5
20528sed 's/^/| /' conftest.$ac_ext >&5
20529
20530 { echo "$as_me:$LINENO: result: no" >&5
20531echo "${ECHO_T}no" >&6; }
20532
20533cat >>confdefs.h <<\_ACEOF
20534#define LLVM_HAS_ATOMICS 0
20535_ACEOF
20536
20537 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20538echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20539fi
20540
20541rm -f core conftest.err conftest.$ac_objext \
20542 conftest$ac_exeext conftest.$ac_ext
20543
20544
20545if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20546 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20547echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20548if test "${llvm_cv_linux_mixed+set}" = set; then
20549 echo $ECHO_N "(cached) $ECHO_C" >&6
20550else
20551 ac_ext=c
20552ac_cpp='$CPP $CPPFLAGS'
20553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20555ac_compiler_gnu=$ac_cv_c_compiler_gnu
20556
20557 cat >conftest.$ac_ext <<_ACEOF
20558/* confdefs.h. */
20559_ACEOF
20560cat confdefs.h >>conftest.$ac_ext
20561cat >>conftest.$ac_ext <<_ACEOF
20562/* end confdefs.h. */
20563#ifndef __x86_64__
20564 error: Not x86-64 even if uname says so!
20565 #endif
20566
20567int
20568main ()
20569{
20570
20571 ;
20572 return 0;
20573}
20574_ACEOF
20575rm -f conftest.$ac_objext
20576if { (ac_try="$ac_compile"
20577case "(($ac_try" in
20578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20579 *) ac_try_echo=$ac_try;;
20580esac
20581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20582 (eval "$ac_compile") 2>conftest.er1
20583 ac_status=$?
20584 grep -v '^ *+' conftest.er1 >conftest.err
20585 rm -f conftest.er1
20586 cat conftest.err >&5
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); } &&
20589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20590 { (case "(($ac_try" in
20591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20592 *) ac_try_echo=$ac_try;;
20593esac
20594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20595 (eval "$ac_try") 2>&5
20596 ac_status=$?
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); }; } &&
20599 { ac_try='test -s conftest.$ac_objext'
20600 { (case "(($ac_try" in
20601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20602 *) ac_try_echo=$ac_try;;
20603esac
20604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20605 (eval "$ac_try") 2>&5
20606 ac_status=$?
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); }; }; then
20609 llvm_cv_linux_mixed=no
20610else
20611 echo "$as_me: failed program was:" >&5
20612sed 's/^/| /' conftest.$ac_ext >&5
20613
20614 llvm_cv_linux_mixed=yes
20615fi
20616
20617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20618 ac_ext=c
20619ac_cpp='$CPP $CPPFLAGS'
20620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20622ac_compiler_gnu=$ac_cv_c_compiler_gnu
20623
20624
20625fi
20626{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20627echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20628
20629 if test "$llvm_cv_linux_mixed" = "yes"; then
20630 llvm_cv_target_arch="x86"
20631 ARCH="x86"
20632 fi
20633fi
20634
20635
20636for ac_func in __dso_handle
20637do
20638as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20639{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20640echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20641if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20642 echo $ECHO_N "(cached) $ECHO_C" >&6
20643else
20644 cat >conftest.$ac_ext <<_ACEOF
20645/* confdefs.h. */
20646_ACEOF
20647cat confdefs.h >>conftest.$ac_ext
20648cat >>conftest.$ac_ext <<_ACEOF
20649/* end confdefs.h. */
20650/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20652#define $ac_func innocuous_$ac_func
20653
20654/* System header to define __stub macros and hopefully few prototypes,
20655 which can conflict with char $ac_func (); below.
20656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20657 <limits.h> exists even on freestanding compilers. */
20658
20659#ifdef __STDC__
20660# include <limits.h>
20661#else
20662# include <assert.h>
20663#endif
20664
20665#undef $ac_func
20666
20667/* Override any GCC internal prototype to avoid an error.
20668 Use char because int might match the return type of a GCC
20669 builtin and then its argument prototype would still apply. */
20670#ifdef __cplusplus
20671extern "C"
20672#endif
20673char $ac_func ();
20674/* The GNU C library defines this for functions which it implements
20675 to always fail with ENOSYS. Some functions are actually named
20676 something starting with __ and the normal name is an alias. */
20677#if defined __stub_$ac_func || defined __stub___$ac_func
20678choke me
20679#endif
20680
20681int
20682main ()
20683{
20684return $ac_func ();
20685 ;
20686 return 0;
20687}
20688_ACEOF
20689rm -f conftest.$ac_objext conftest$ac_exeext
20690if { (ac_try="$ac_link"
20691case "(($ac_try" in
20692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20693 *) ac_try_echo=$ac_try;;
20694esac
20695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20696 (eval "$ac_link") 2>conftest.er1
20697 ac_status=$?
20698 grep -v '^ *+' conftest.er1 >conftest.err
20699 rm -f conftest.er1
20700 cat conftest.err >&5
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); } &&
20703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20704 { (case "(($ac_try" in
20705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706 *) ac_try_echo=$ac_try;;
20707esac
20708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_try") 2>&5
20710 ac_status=$?
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; } &&
20713 { ac_try='test -s conftest$ac_exeext'
20714 { (case "(($ac_try" in
20715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20716 *) ac_try_echo=$ac_try;;
20717esac
20718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20719 (eval "$ac_try") 2>&5
20720 ac_status=$?
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); }; }; then
20723 eval "$as_ac_var=yes"
20724else
20725 echo "$as_me: failed program was:" >&5
20726sed 's/^/| /' conftest.$ac_ext >&5
20727
20728 eval "$as_ac_var=no"
20729fi
20730
20731rm -f core conftest.err conftest.$ac_objext \
20732 conftest$ac_exeext conftest.$ac_ext
20733fi
20734ac_res=`eval echo '${'$as_ac_var'}'`
20735 { echo "$as_me:$LINENO: result: $ac_res" >&5
20736echo "${ECHO_T}$ac_res" >&6; }
20737if test `eval echo '${'$as_ac_var'}'` = yes; then
20738 cat >>confdefs.h <<_ACEOF
20739#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20740_ACEOF
20741
20742fi
20743done
20744
20745
20746SHLIBEXT=$libltdl_cv_shlibext
20747
20748
20749SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20750
20751
20752# Translate the various configuration directories and other basic
20753# information into substitutions that will end up in Makefile.config.in
20754# that these configured values can be used by the makefiles
20755if test "${prefix}" = "NONE" ; then
20756 prefix="/usr/local"
20757fi
20758eval LLVM_PREFIX="${prefix}";
20759eval LLVM_BINDIR="${prefix}/bin";
20760eval LLVM_LIBDIR="${prefix}/lib";
20761eval LLVM_DATADIR="${prefix}/share/llvm";
20762eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20763eval LLVM_ETCDIR="${prefix}/etc/llvm";
20764eval LLVM_INCLUDEDIR="${prefix}/include";
20765eval LLVM_INFODIR="${prefix}/info";
20766eval LLVM_MANDIR="${prefix}/man";
20767LLVM_CONFIGTIME=`date`
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779# Place the various directores into the config.h file as #defines so that we
20780# can know about the installation paths within LLVM.
20781
20782cat >>confdefs.h <<_ACEOF
20783#define LLVM_PREFIX "$LLVM_PREFIX"
20784_ACEOF
20785
20786
20787cat >>confdefs.h <<_ACEOF
20788#define LLVM_BINDIR "$LLVM_BINDIR"
20789_ACEOF
20790
20791
20792cat >>confdefs.h <<_ACEOF
20793#define LLVM_LIBDIR "$LLVM_LIBDIR"
20794_ACEOF
20795
20796
20797cat >>confdefs.h <<_ACEOF
20798#define LLVM_DATADIR "$LLVM_DATADIR"
20799_ACEOF
20800
20801
20802cat >>confdefs.h <<_ACEOF
20803#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20804_ACEOF
20805
20806
20807cat >>confdefs.h <<_ACEOF
20808#define LLVM_ETCDIR "$LLVM_ETCDIR"
20809_ACEOF
20810
20811
20812cat >>confdefs.h <<_ACEOF
20813#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20814_ACEOF
20815
20816
20817cat >>confdefs.h <<_ACEOF
20818#define LLVM_INFODIR "$LLVM_INFODIR"
20819_ACEOF
20820
20821
20822cat >>confdefs.h <<_ACEOF
20823#define LLVM_MANDIR "$LLVM_MANDIR"
20824_ACEOF
20825
20826
20827cat >>confdefs.h <<_ACEOF
20828#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20829_ACEOF
20830
20831
20832cat >>confdefs.h <<_ACEOF
20833#define LLVM_HOSTTRIPLE "$host"
20834_ACEOF
20835
20836
20837# Determine which bindings to build.
20838if test "$BINDINGS_TO_BUILD" = auto ; then
20839 BINDINGS_TO_BUILD=""
20840 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20841 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20842 fi
20843fi
20844BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20845
20846
20847# This isn't really configurey, but it avoids having to repeat the list in
20848# other files.
20849ALL_BINDINGS=ocaml
20850
20851
20852# Do any work necessary to ensure that bindings have what they need.
20853binding_prereqs_failed=0
20854for a_binding in $BINDINGS_TO_BUILD ; do
20855 case "$a_binding" in
20856 ocaml)
20857 if test "x$OCAMLC" = x ; then
20858 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20859echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20860 binding_prereqs_failed=1
20861 fi
20862 if test "x$OCAMLDEP" = x ; then
20863 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20864echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20865 binding_prereqs_failed=1
20866 fi
20867 if test "x$OCAMLOPT" = x ; then
20868 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20869echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20870 fi
20871 if test "x$with_ocaml_libdir" != xauto ; then
20872 OCAML_LIBDIR=$with_ocaml_libdir
20873
20874 else
20875 ocaml_stdlib="`"$OCAMLC" -where`"
20876 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20877 then
20878 # ocaml stdlib is beneath our prefix; use stdlib
20879 OCAML_LIBDIR=$ocaml_stdlib
20880
20881 else
20882 # ocaml stdlib is outside our prefix; use libdir/ocaml
20883 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20884
20885 fi
20886 fi
20887 ;;
20888 esac
20889done
20890if test "$binding_prereqs_failed" = 1 ; then
20891 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20892echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20893 { (exit 1); exit 1; }; }
20894fi
20895
20896{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20897echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20898if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20899 echo $ECHO_N "(cached) $ECHO_C" >&6
20900else
20901 ac_ext=cpp
20902ac_cpp='$CXXCPP $CPPFLAGS'
20903ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20904ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20905ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20906
20907 oldcxxflags="$CXXFLAGS"
20908 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20909 cat >conftest.$ac_ext <<_ACEOF
20910/* confdefs.h. */
20911_ACEOF
20912cat confdefs.h >>conftest.$ac_ext
20913cat >>conftest.$ac_ext <<_ACEOF
20914/* end confdefs.h. */
20915
20916int
20917main ()
20918{
20919
20920 ;
20921 return 0;
20922}
20923_ACEOF
20924rm -f conftest.$ac_objext
20925if { (ac_try="$ac_compile"
20926case "(($ac_try" in
20927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20928 *) ac_try_echo=$ac_try;;
20929esac
20930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20931 (eval "$ac_compile") 2>conftest.er1
20932 ac_status=$?
20933 grep -v '^ *+' conftest.er1 >conftest.err
20934 rm -f conftest.er1
20935 cat conftest.err >&5
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); } &&
20938 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20939 { (case "(($ac_try" in
20940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941 *) ac_try_echo=$ac_try;;
20942esac
20943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20944 (eval "$ac_try") 2>&5
20945 ac_status=$?
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); }; } &&
20948 { ac_try='test -s conftest.$ac_objext'
20949 { (case "(($ac_try" in
20950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20951 *) ac_try_echo=$ac_try;;
20952esac
20953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20954 (eval "$ac_try") 2>&5
20955 ac_status=$?
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); }; }; then
20958 llvm_cv_cxx_visibility_inlines_hidden=yes
20959else
20960 echo "$as_me: failed program was:" >&5
20961sed 's/^/| /' conftest.$ac_ext >&5
20962
20963 llvm_cv_cxx_visibility_inlines_hidden=no
20964fi
20965
20966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20967 CXXFLAGS="$oldcxxflags"
20968 ac_ext=c
20969ac_cpp='$CPP $CPPFLAGS'
20970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20972ac_compiler_gnu=$ac_cv_c_compiler_gnu
20973
20974
20975fi
20976{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20977echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20978if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20979 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20980
20981else
20982 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20983
20984fi
20985
20986
20987if test "$llvm_cv_link_use_r" = "yes" ; then
20988 RPATH="-Wl,-R"
20989else
20990 RPATH="-Wl,-rpath"
20991fi
20992
20993
20994if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20995 RDYNAMIC="-Wl,-export-dynamic"
20996else
20997 RDYNAMIC=""
20998fi
20999
21000
21001
Reid Spencer421ec052005-02-24 18:53:47 +000021002
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021003ac_config_files="$ac_config_files Makefile.common"
John Criswell451f67f2003-10-16 01:45:35 +000021004
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021005ac_config_files="$ac_config_files Makefile.llvm.config"
21006
John Criswell451f67f2003-10-16 01:45:35 +000021007
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021008ac_config_commands="$ac_config_commands Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000021009
21010
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021011ac_config_commands="$ac_config_commands lib/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000021012
21013
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021014ac_config_commands="$ac_config_commands lib/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000021015
21016
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021017ac_config_commands="$ac_config_commands tools/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000021018
21019
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021020ac_config_commands="$ac_config_commands tools/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000021021
21022
21023
John Criswell451f67f2003-10-16 01:45:35 +000021024cat >confcache <<\_ACEOF
21025# This file is a shell script that caches the results of configure
21026# tests run on this system so they can be shared between configure
21027# scripts and configure runs, see configure's option --config-cache.
21028# It is not useful on other systems. If it contains results you don't
21029# want to keep, you may remove or edit it.
21030#
21031# config.status only pays attention to the cache file if you give it
21032# the --recheck option to rerun configure.
21033#
21034# `ac_cv_env_foo' variables (set or unset) will be overridden when
21035# loading this file, other *unset* `ac_cv_foo' will be assigned the
21036# following values.
21037
21038_ACEOF
21039
21040# The following way of writing the cache mishandles newlines in values,
21041# but we know of no workaround that is simple, portable, and efficient.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021042# So, we kill variables containing newlines.
John Criswell451f67f2003-10-16 01:45:35 +000021043# Ultrix sh set writes to stderr and can't be redirected directly,
21044# and sets the high bit in the cache file unless we assign to the vars.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021045(
21046 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21047 eval ac_val=\$$ac_var
21048 case $ac_val in #(
21049 *${as_nl}*)
21050 case $ac_var in #(
21051 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21052echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21053 esac
21054 case $ac_var in #(
21055 _ | IFS | as_nl) ;; #(
21056 *) $as_unset $ac_var ;;
21057 esac ;;
21058 esac
21059 done
21060
John Criswell451f67f2003-10-16 01:45:35 +000021061 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021062 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21063 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +000021064 # `set' does not quote correctly, so add quotes (double-quote
21065 # substitution turns \\\\ into \\, and sed turns \\ into \).
21066 sed -n \
Reid Spencer9964cd82005-01-01 09:26:55 +000021067 "s/'/'\\\\''/g;
21068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021069 ;; #(
John Criswell451f67f2003-10-16 01:45:35 +000021070 *)
21071 # `set' quotes correctly as required by POSIX, so do not add quotes.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021072 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell451f67f2003-10-16 01:45:35 +000021073 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021074 esac |
21075 sort
21076) |
John Criswell451f67f2003-10-16 01:45:35 +000021077 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021078 /^ac_cv_env_/b end
John Criswell451f67f2003-10-16 01:45:35 +000021079 t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021080 :clear
John Criswell451f67f2003-10-16 01:45:35 +000021081 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21082 t end
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021083 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21084 :end' >>confcache
21085if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21086 if test -w "$cache_file"; then
21087 test "x$cache_file" != "x/dev/null" &&
21088 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21089echo "$as_me: updating cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000021090 cat confcache >$cache_file
21091 else
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021092 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21093echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000021094 fi
21095fi
21096rm -f confcache
21097
21098test "x$prefix" = xNONE && prefix=$ac_default_prefix
21099# Let make expand exec_prefix.
21100test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21101
John Criswell451f67f2003-10-16 01:45:35 +000021102# Transform confdefs.h into DEFS.
21103# Protect against shell expansion while executing Makefile rules.
21104# Protect against Makefile macro expansion.
21105#
21106# If the first sed substitution is executed (which looks for macros that
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021107# take arguments), then branch to the quote section. Otherwise,
John Criswell451f67f2003-10-16 01:45:35 +000021108# look for a macro that doesn't take arguments.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021109ac_script='
John Criswell451f67f2003-10-16 01:45:35 +000021110t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021111:clear
21112s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000021113t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021114s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000021115t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021116b any
21117:quote
21118s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21119s/\[/\\&/g
21120s/\]/\\&/g
21121s/\$/$$/g
21122H
21123:any
21124${
21125 g
21126 s/^\n//
21127 s/\n/ /g
21128 p
21129}
21130'
21131DEFS=`sed -n "$ac_script" confdefs.h`
John Criswell451f67f2003-10-16 01:45:35 +000021132
21133
21134ac_libobjs=
21135ac_ltlibobjs=
21136for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21137 # 1. Remove the extension, and $U if already installed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021138 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21139 ac_i=`echo "$ac_i" | sed "$ac_script"`
21140 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21141 # will be set to the directory where LIBOBJS objects are built.
21142 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21143 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell451f67f2003-10-16 01:45:35 +000021144done
21145LIBOBJS=$ac_libobjs
21146
21147LTLIBOBJS=$ac_ltlibobjs
21148
21149
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021150if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21151 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21152Usually this means the macro was only invoked conditionally." >&5
21153echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21154Usually this means the macro was only invoked conditionally." >&2;}
21155 { (exit 1); exit 1; }; }
21156fi
21157if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21158 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21159Usually this means the macro was only invoked conditionally." >&5
21160echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21161Usually this means the macro was only invoked conditionally." >&2;}
21162 { (exit 1); exit 1; }; }
21163fi
John Criswell451f67f2003-10-16 01:45:35 +000021164
21165: ${CONFIG_STATUS=./config.status}
21166ac_clean_files_save=$ac_clean_files
21167ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21168{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21169echo "$as_me: creating $CONFIG_STATUS" >&6;}
21170cat >$CONFIG_STATUS <<_ACEOF
21171#! $SHELL
21172# Generated by $as_me.
21173# Run this file to recreate the current configuration.
21174# Compiler output produced by configure, useful for debugging
21175# configure, is in config.log if it exists.
21176
21177debug=false
21178ac_cs_recheck=false
21179ac_cs_silent=false
21180SHELL=\${CONFIG_SHELL-$SHELL}
21181_ACEOF
21182
21183cat >>$CONFIG_STATUS <<\_ACEOF
21184## --------------------- ##
21185## M4sh Initialization. ##
21186## --------------------- ##
21187
Dan Gohman324f6082009-03-25 00:52:11 +000021188# Be Bourne compatible
John Criswell451f67f2003-10-16 01:45:35 +000021189if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21190 emulate sh
21191 NULLCMD=:
21192 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21193 # is contrary to our usage. Disable this feature.
21194 alias -g '${1+"$@"}'='"$@"'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021195 setopt NO_GLOB_SUBST
21196else
21197 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohman324f6082009-03-25 00:52:11 +000021198fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021199BIN_SH=xpg4; export BIN_SH # for Tru64
Dan Gohman324f6082009-03-25 00:52:11 +000021200DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmand02a2812009-03-24 23:47:11 +000021201
John Criswell451f67f2003-10-16 01:45:35 +000021202
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021203# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +000021204# Avoid depending upon Character Ranges.
21205as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21206as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21207as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21208as_cr_digits='0123456789'
21209as_cr_alnum=$as_cr_Letters$as_cr_digits
21210
21211# The user is always right.
21212if test "${PATH_SEPARATOR+set}" != set; then
21213 echo "#! /bin/sh" >conf$$.sh
21214 echo "exit 0" >>conf$$.sh
21215 chmod +x conf$$.sh
21216 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21217 PATH_SEPARATOR=';'
21218 else
21219 PATH_SEPARATOR=:
21220 fi
21221 rm -f conf$$.sh
21222fi
21223
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021224# Support unset when possible.
21225if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21226 as_unset=unset
21227else
21228 as_unset=false
21229fi
John Criswell451f67f2003-10-16 01:45:35 +000021230
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021231
21232# IFS
21233# We need space, tab and new line, in precisely that order. Quoting is
21234# there to prevent editors from complaining about space-tab.
21235# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21236# splitting by setting IFS to empty value.)
21237as_nl='
21238'
21239IFS=" "" $as_nl"
21240
21241# Find who we are. Look in the path if we contain no directory separator.
21242case $0 in
21243 *[\\/]* ) as_myself=$0 ;;
21244 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +000021245for as_dir in $PATH
21246do
21247 IFS=$as_save_IFS
21248 test -z "$as_dir" && as_dir=.
21249 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21250done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021251IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +000021252
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021253 ;;
21254esac
21255# We did not find ourselves, most probably we were run as `sh COMMAND'
21256# in which case we are not to be found in the path.
21257if test "x$as_myself" = x; then
21258 as_myself=$0
21259fi
21260if test ! -f "$as_myself"; then
21261 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21262 { (exit 1); exit 1; }
21263fi
21264
21265# Work around bugs in pre-3.0 UWIN ksh.
21266for as_var in ENV MAIL MAILPATH
21267do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21268done
21269PS1='$ '
21270PS2='> '
21271PS4='+ '
21272
21273# NLS nuisances.
21274for as_var in \
21275 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21276 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21277 LC_TELEPHONE LC_TIME
Dan Gohman324f6082009-03-25 00:52:11 +000021278do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021279 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21280 eval $as_var=C; export $as_var
21281 else
21282 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21283 fi
21284done
21285
21286# Required to use basename.
21287if expr a : '\(a\)' >/dev/null 2>&1 &&
21288 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21289 as_expr=expr
21290else
21291 as_expr=false
21292fi
21293
21294if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21295 as_basename=basename
21296else
21297 as_basename=false
21298fi
21299
21300
21301# Name of the executable.
21302as_me=`$as_basename -- "$0" ||
21303$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21304 X"$0" : 'X\(//\)$' \| \
21305 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21306echo X/"$0" |
21307 sed '/^.*\/\([^/][^/]*\)\/*$/{
21308 s//\1/
21309 q
21310 }
21311 /^X\/\(\/\/\)$/{
21312 s//\1/
21313 q
21314 }
21315 /^X\/\(\/\).*/{
21316 s//\1/
21317 q
21318 }
21319 s/.*/./; q'`
21320
21321# CDPATH.
21322$as_unset CDPATH
21323
21324
21325
John Criswell451f67f2003-10-16 01:45:35 +000021326 as_lineno_1=$LINENO
21327 as_lineno_2=$LINENO
John Criswell451f67f2003-10-16 01:45:35 +000021328 test "x$as_lineno_1" != "x$as_lineno_2" &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +000021330
21331 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21332 # uniformly replaced by the line number. The first 'sed' inserts a
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021333 # line-number line after each line using $LINENO; the second 'sed'
21334 # does the real work. The second script uses 'N' to pair each
21335 # line-number line with the line containing $LINENO, and appends
21336 # trailing '-' during substitution so that $LINENO is not a special
21337 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +000021338 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021339 # scripts with optimization help from Paolo Bonzini. Blame Lee
21340 # E. McMahon (1931-1989) for sed's syntax. :-)
21341 sed -n '
21342 p
21343 /[$]LINENO/=
21344 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +000021345 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021346 s/[$]LINENO.*/&-/
21347 t lineno
21348 b
21349 :lineno
John Criswell451f67f2003-10-16 01:45:35 +000021350 N
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021351 :loop
21352 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +000021353 t loop
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021354 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +000021355 ' >$as_me.lineno &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021356 chmod +x "$as_me.lineno" ||
21357 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell451f67f2003-10-16 01:45:35 +000021358 { (exit 1); exit 1; }; }
21359
21360 # Don't try to exec as it changes $[0], causing all sort of problems
21361 # (the dirname of $[0] is not the place where we might find the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021362 # original and so on. Autoconf is especially sensitive to this).
21363 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +000021364 # Exit status is that of the last command.
21365 exit
21366}
21367
21368
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021369if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21370 as_dirname=dirname
21371else
21372 as_dirname=false
21373fi
21374
21375ECHO_C= ECHO_N= ECHO_T=
21376case `echo -n x` in
21377-n*)
21378 case `echo 'x\c'` in
21379 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21380 *) ECHO_C='\c';;
21381 esac;;
21382*)
21383 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +000021384esac
21385
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021386if expr a : '\(a\)' >/dev/null 2>&1 &&
21387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +000021388 as_expr=expr
21389else
21390 as_expr=false
21391fi
21392
21393rm -f conf$$ conf$$.exe conf$$.file
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021394if test -d conf$$.dir; then
21395 rm -f conf$$.dir/conf$$.file
21396else
21397 rm -f conf$$.dir
21398 mkdir conf$$.dir
21399fi
John Criswell451f67f2003-10-16 01:45:35 +000021400echo >conf$$.file
21401if ln -s conf$$.file conf$$ 2>/dev/null; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021402 as_ln_s='ln -s'
21403 # ... but there are two gotchas:
21404 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21405 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21406 # In both cases, we have to default to `cp -p'.
21407 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +000021408 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +000021409elif ln conf$$.file conf$$ 2>/dev/null; then
21410 as_ln_s=ln
21411else
21412 as_ln_s='cp -p'
21413fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021414rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21415rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +000021416
21417if mkdir -p . 2>/dev/null; then
21418 as_mkdir_p=:
21419else
Reid Spencer9964cd82005-01-01 09:26:55 +000021420 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +000021421 as_mkdir_p=false
21422fi
21423
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021424# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21425# systems may use methods other than mode bits to determine executability.
21426cat >conf$$.file <<_ASEOF
21427#! /bin/sh
21428exit 0
21429_ASEOF
21430chmod +x conf$$.file
21431if test -x conf$$.file >/dev/null 2>&1; then
21432 as_executable_p="test -x"
21433else
21434 as_executable_p=:
21435fi
21436rm -f conf$$.file
John Criswell451f67f2003-10-16 01:45:35 +000021437
21438# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021439as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021440
21441# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021442as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021443
21444
John Criswell451f67f2003-10-16 01:45:35 +000021445exec 6>&1
21446
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021447# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell451f67f2003-10-16 01:45:35 +000021448# report actual input values of CONFIG_FILES etc. instead of their
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021449# values after options handling.
21450ac_log="
John Criswell451f67f2003-10-16 01:45:35 +000021451This file was extended by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021452generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +000021453
21454 CONFIG_FILES = $CONFIG_FILES
21455 CONFIG_HEADERS = $CONFIG_HEADERS
21456 CONFIG_LINKS = $CONFIG_LINKS
21457 CONFIG_COMMANDS = $CONFIG_COMMANDS
21458 $ $0 $@
21459
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021460on `(hostname || uname -n) 2>/dev/null | sed 1q`
21461"
21462
John Criswell451f67f2003-10-16 01:45:35 +000021463_ACEOF
21464
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021465cat >>$CONFIG_STATUS <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021466# Files that config.status was made for.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021467config_files="$ac_config_files"
21468config_commands="$ac_config_commands"
John Criswell451f67f2003-10-16 01:45:35 +000021469
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021470_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021471
21472cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021473ac_cs_usage="\
21474\`$as_me' instantiates files from templates according to the
21475current configuration.
21476
21477Usage: $0 [OPTIONS] [FILE]...
21478
21479 -h, --help print this help, then exit
Dan Gohman324f6082009-03-25 00:52:11 +000021480 -V, --version print version number, then exit
John Criswell451f67f2003-10-16 01:45:35 +000021481 -q, --quiet do not print progress messages
21482 -d, --debug don't remove temporary files
21483 --recheck update $as_me by reconfiguring in the same conditions
21484 --file=FILE[:TEMPLATE]
Reid Spencer9964cd82005-01-01 09:26:55 +000021485 instantiate the configuration file FILE
John Criswell451f67f2003-10-16 01:45:35 +000021486
21487Configuration files:
21488$config_files
21489
21490Configuration commands:
21491$config_commands
21492
21493Report bugs to <bug-autoconf@gnu.org>."
Dan Gohman324f6082009-03-25 00:52:11 +000021494
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021495_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021496cat >>$CONFIG_STATUS <<_ACEOF
21497ac_cs_version="\\
21498[SAMPLE] config.status [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021499configured by $0, generated by GNU Autoconf 2.60,
21500 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell451f67f2003-10-16 01:45:35 +000021501
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021502Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +000021503This config.status script is free software; the Free Software Foundation
21504gives unlimited permission to copy, distribute and modify it."
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021505
21506ac_pwd='$ac_pwd'
21507srcdir='$srcdir'
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021508INSTALL='$INSTALL'
John Criswell451f67f2003-10-16 01:45:35 +000021509_ACEOF
21510
21511cat >>$CONFIG_STATUS <<\_ACEOF
21512# If no file are specified by the user, then we need to provide default
21513# value. By we need to know if files were specified by the user.
21514ac_need_defaults=:
21515while test $# != 0
21516do
21517 case $1 in
21518 --*=*)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021519 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21520 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell451f67f2003-10-16 01:45:35 +000021521 ac_shift=:
21522 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021523 *)
John Criswell451f67f2003-10-16 01:45:35 +000021524 ac_option=$1
21525 ac_optarg=$2
21526 ac_shift=shift
21527 ;;
John Criswell451f67f2003-10-16 01:45:35 +000021528 esac
21529
21530 case $ac_option in
21531 # Handling of the options.
John Criswell451f67f2003-10-16 01:45:35 +000021532 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21533 ac_cs_recheck=: ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021534 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21535 echo "$ac_cs_version"; exit ;;
21536 --debug | --debu | --deb | --de | --d | -d )
John Criswell451f67f2003-10-16 01:45:35 +000021537 debug=: ;;
21538 --file | --fil | --fi | --f )
21539 $ac_shift
21540 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21541 ac_need_defaults=false;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021542 --he | --h | --help | --hel | -h )
21543 echo "$ac_cs_usage"; exit ;;
John Criswell451f67f2003-10-16 01:45:35 +000021544 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21545 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21546 ac_cs_silent=: ;;
21547
21548 # This is an error.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021549 -*) { echo "$as_me: error: unrecognized option: $1
21550Try \`$0 --help' for more information." >&2
John Criswell451f67f2003-10-16 01:45:35 +000021551 { (exit 1); exit 1; }; } ;;
21552
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021553 *) ac_config_targets="$ac_config_targets $1"
21554 ac_need_defaults=false ;;
John Criswell451f67f2003-10-16 01:45:35 +000021555
21556 esac
21557 shift
21558done
21559
21560ac_configure_extra_args=
21561
21562if $ac_cs_silent; then
21563 exec 6>/dev/null
21564 ac_configure_extra_args="$ac_configure_extra_args --silent"
21565fi
21566
21567_ACEOF
21568cat >>$CONFIG_STATUS <<_ACEOF
21569if \$ac_cs_recheck; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021570 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21571 CONFIG_SHELL=$SHELL
21572 export CONFIG_SHELL
21573 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell451f67f2003-10-16 01:45:35 +000021574fi
21575
21576_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021577cat >>$CONFIG_STATUS <<\_ACEOF
21578exec 5>>config.log
21579{
21580 echo
21581 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21582## Running $as_me. ##
21583_ASBOX
21584 echo "$ac_log"
21585} >&5
John Criswell451f67f2003-10-16 01:45:35 +000021586
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021587_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021588cat >>$CONFIG_STATUS <<_ACEOF
21589#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021590# INIT-COMMANDS
John Criswell451f67f2003-10-16 01:45:35 +000021591#
Reid Spencer421ec052005-02-24 18:53:47 +000021592llvm_src="${LLVM_SRC}"
John Criswell451f67f2003-10-16 01:45:35 +000021593
21594_ACEOF
21595
Dan Gohman324f6082009-03-25 00:52:11 +000021596cat >>$CONFIG_STATUS <<\_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021597
21598# Handling of arguments.
John Criswell451f67f2003-10-16 01:45:35 +000021599for ac_config_target in $ac_config_targets
21600do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021601 case $ac_config_target in
21602 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21603 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021604 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021605 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21606 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21607 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21608 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21609 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21610
John Criswell451f67f2003-10-16 01:45:35 +000021611 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21612echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21613 { (exit 1); exit 1; }; };;
21614 esac
21615done
21616
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021617
John Criswell451f67f2003-10-16 01:45:35 +000021618# If the user did not use the arguments to specify the items to instantiate,
21619# then the envvar interface is used. Set only those that are not.
21620# We use the long form for the default assignment because of an extremely
21621# bizarre bug on SunOS 4.1.3.
21622if $ac_need_defaults; then
21623 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21624 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21625fi
21626
21627# Have a temporary directory for convenience. Make it in the build tree
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021628# simply because there is no reason against having it here, and in addition,
John Criswell451f67f2003-10-16 01:45:35 +000021629# creating and moving files from /tmp can sometimes cause problems.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021630# Hook for its removal unless debugging.
21631# Note that there is a small window in which the directory will not be cleaned:
21632# after its creation but before its name has been assigned to `$tmp'.
John Criswell451f67f2003-10-16 01:45:35 +000021633$debug ||
21634{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021635 tmp=
21636 trap 'exit_status=$?
21637 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21638' 0
John Criswell451f67f2003-10-16 01:45:35 +000021639 trap '{ (exit 1); exit 1; }' 1 2 13 15
21640}
John Criswell451f67f2003-10-16 01:45:35 +000021641# Create a (secure) tmp directory for tmp files.
21642
21643{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021644 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell451f67f2003-10-16 01:45:35 +000021645 test -n "$tmp" && test -d "$tmp"
21646} ||
21647{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021648 tmp=./conf$$-$RANDOM
21649 (umask 077 && mkdir "$tmp")
John Criswell451f67f2003-10-16 01:45:35 +000021650} ||
21651{
21652 echo "$me: cannot create a temporary directory in ." >&2
21653 { (exit 1); exit 1; }
21654}
21655
John Criswell451f67f2003-10-16 01:45:35 +000021656#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021657# Set up the sed scripts for CONFIG_FILES section.
John Criswell451f67f2003-10-16 01:45:35 +000021658#
21659
21660# No need to generate the scripts if there are no CONFIG_FILES.
21661# This happens for instance when ./config.status config.h
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021662if test -n "$CONFIG_FILES"; then
John Criswell451f67f2003-10-16 01:45:35 +000021663
21664_ACEOF
21665
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021666
21667
21668ac_delim='%!_!# '
21669for ac_last_try in false false false false false :; do
21670 cat >conf$$subs.sed <<_ACEOF
21671SHELL!$SHELL$ac_delim
21672PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21673PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21674PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21675PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21676PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21677PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21678exec_prefix!$exec_prefix$ac_delim
21679prefix!$prefix$ac_delim
21680program_transform_name!$program_transform_name$ac_delim
21681bindir!$bindir$ac_delim
21682sbindir!$sbindir$ac_delim
21683libexecdir!$libexecdir$ac_delim
21684datarootdir!$datarootdir$ac_delim
21685datadir!$datadir$ac_delim
21686sysconfdir!$sysconfdir$ac_delim
21687sharedstatedir!$sharedstatedir$ac_delim
21688localstatedir!$localstatedir$ac_delim
21689includedir!$includedir$ac_delim
21690oldincludedir!$oldincludedir$ac_delim
21691docdir!$docdir$ac_delim
21692infodir!$infodir$ac_delim
21693htmldir!$htmldir$ac_delim
21694dvidir!$dvidir$ac_delim
21695pdfdir!$pdfdir$ac_delim
21696psdir!$psdir$ac_delim
21697libdir!$libdir$ac_delim
21698localedir!$localedir$ac_delim
21699mandir!$mandir$ac_delim
21700DEFS!$DEFS$ac_delim
21701ECHO_C!$ECHO_C$ac_delim
21702ECHO_N!$ECHO_N$ac_delim
21703ECHO_T!$ECHO_T$ac_delim
21704LIBS!$LIBS$ac_delim
21705build_alias!$build_alias$ac_delim
21706host_alias!$host_alias$ac_delim
21707target_alias!$target_alias$ac_delim
21708LLVM_SRC!$LLVM_SRC$ac_delim
21709LLVM_OBJ!$LLVM_OBJ$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021710LLVM_VERSION!$LLVM_VERSION$ac_delim
21711CC!$CC$ac_delim
21712CFLAGS!$CFLAGS$ac_delim
21713LDFLAGS!$LDFLAGS$ac_delim
21714CPPFLAGS!$CPPFLAGS$ac_delim
21715ac_ct_CC!$ac_ct_CC$ac_delim
21716EXEEXT!$EXEEXT$ac_delim
21717OBJEXT!$OBJEXT$ac_delim
21718CXX!$CXX$ac_delim
21719CXXFLAGS!$CXXFLAGS$ac_delim
21720ac_ct_CXX!$ac_ct_CXX$ac_delim
21721CPP!$CPP$ac_delim
21722ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21723LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21724subdirs!$subdirs$ac_delim
21725build!$build$ac_delim
21726build_cpu!$build_cpu$ac_delim
21727build_vendor!$build_vendor$ac_delim
21728build_os!$build_os$ac_delim
21729host!$host$ac_delim
21730host_cpu!$host_cpu$ac_delim
21731host_vendor!$host_vendor$ac_delim
21732host_os!$host_os$ac_delim
21733target!$target$ac_delim
21734target_cpu!$target_cpu$ac_delim
21735target_vendor!$target_vendor$ac_delim
21736target_os!$target_os$ac_delim
21737OS!$OS$ac_delim
21738HOST_OS!$HOST_OS$ac_delim
21739TARGET_OS!$TARGET_OS$ac_delim
21740LINKALL!$LINKALL$ac_delim
21741NOLINKALL!$NOLINKALL$ac_delim
21742LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21743LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21744ARCH!$ARCH$ac_delim
21745ENDIAN!$ENDIAN$ac_delim
21746GREP!$GREP$ac_delim
21747EGREP!$EGREP$ac_delim
21748LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21749BUILD_CC!$BUILD_CC$ac_delim
21750BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21751BUILD_CXX!$BUILD_CXX$ac_delim
21752CVSBUILD!$CVSBUILD$ac_delim
21753ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21754ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21755DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21756ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21757EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21758DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21759DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21760JIT!$JIT$ac_delim
21761TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21762ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21763ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21764ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21765ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21766ENABLE_PIC!$ENABLE_PIC$ac_delim
21767ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021768_ACEOF
21769
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021770 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021771 break
21772 elif $ac_last_try; then
21773 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21774echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21775 { (exit 1); exit 1; }; }
21776 else
21777 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell451f67f2003-10-16 01:45:35 +000021778 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021779done
21780
21781ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21782if test -n "$ac_eof"; then
21783 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21784 ac_eof=`expr $ac_eof + 1`
21785fi
21786
21787cat >>$CONFIG_STATUS <<_ACEOF
21788cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021789/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21790_ACEOF
21791sed '
21792s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21793s/^/s,@/; s/!/@,|#_!!_#|/
21794:n
21795t n
21796s/'"$ac_delim"'$/,g/; t
21797s/$/\\/; p
21798N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21799' >>$CONFIG_STATUS <conf$$subs.sed
21800rm -f conf$$subs.sed
21801cat >>$CONFIG_STATUS <<_ACEOF
21802CEOF$ac_eof
21803_ACEOF
21804
21805
21806ac_delim='%!_!# '
21807for ac_last_try in false false false false false :; do
21808 cat >conf$$subs.sed <<_ACEOF
21809ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21810ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21811TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21812LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21813LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21814LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21815LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21816ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21817OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21818EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21819EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21820BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21821NM!$NM$ac_delim
21822ifGNUmake!$ifGNUmake$ac_delim
21823LN_S!$LN_S$ac_delim
21824CMP!$CMP$ac_delim
21825CP!$CP$ac_delim
21826DATE!$DATE$ac_delim
21827FIND!$FIND$ac_delim
21828MKDIR!$MKDIR$ac_delim
21829MV!$MV$ac_delim
21830RANLIB!$RANLIB$ac_delim
21831AR!$AR$ac_delim
21832RM!$RM$ac_delim
21833SED!$SED$ac_delim
21834TAR!$TAR$ac_delim
21835BINPWD!$BINPWD$ac_delim
21836GRAPHVIZ!$GRAPHVIZ$ac_delim
21837DOT!$DOT$ac_delim
21838FDP!$FDP$ac_delim
21839NEATO!$NEATO$ac_delim
21840TWOPI!$TWOPI$ac_delim
21841CIRCO!$CIRCO$ac_delim
21842GV!$GV$ac_delim
21843DOTTY!$DOTTY$ac_delim
21844XDOT_PY!$XDOT_PY$ac_delim
21845PERL!$PERL$ac_delim
21846HAVE_PERL!$HAVE_PERL$ac_delim
21847INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21848INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21849INSTALL_DATA!$INSTALL_DATA$ac_delim
21850BZIP2!$BZIP2$ac_delim
21851CAT!$CAT$ac_delim
21852DOXYGEN!$DOXYGEN$ac_delim
21853GROFF!$GROFF$ac_delim
21854GZIPBIN!$GZIPBIN$ac_delim
21855POD2HTML!$POD2HTML$ac_delim
21856POD2MAN!$POD2MAN$ac_delim
21857PDFROFF!$PDFROFF$ac_delim
21858RUNTEST!$RUNTEST$ac_delim
21859TCLSH!$TCLSH$ac_delim
21860ZIP!$ZIP$ac_delim
21861OCAMLC!$OCAMLC$ac_delim
21862OCAMLOPT!$OCAMLOPT$ac_delim
21863OCAMLDEP!$OCAMLDEP$ac_delim
21864OCAMLDOC!$OCAMLDOC$ac_delim
21865GAS!$GAS$ac_delim
21866HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21867INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21868INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21869CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21870CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21871LIBADD_DL!$LIBADD_DL$ac_delim
21872NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21873NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21874USE_UDIS86!$USE_UDIS86$ac_delim
21875USE_OPROFILE!$USE_OPROFILE$ac_delim
21876HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21877HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21878MMAP_FILE!$MMAP_FILE$ac_delim
21879SHLIBEXT!$SHLIBEXT$ac_delim
21880SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21881LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21882LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21883LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21884LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21885LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21886LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21887LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21888LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21889LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21890LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21891BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21892ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21893OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21894ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21895RPATH!$RPATH$ac_delim
21896RDYNAMIC!$RDYNAMIC$ac_delim
21897LIBOBJS!$LIBOBJS$ac_delim
21898LTLIBOBJS!$LTLIBOBJS$ac_delim
21899_ACEOF
21900
21901 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
21902 break
21903 elif $ac_last_try; then
21904 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21905echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21906 { (exit 1); exit 1; }; }
21907 else
21908 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21909 fi
21910done
21911
21912ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21913if test -n "$ac_eof"; then
21914 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21915 ac_eof=`expr $ac_eof + 1`
21916fi
21917
21918cat >>$CONFIG_STATUS <<_ACEOF
21919cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021920/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21921_ACEOF
21922sed '
21923s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21924s/^/s,@/; s/!/@,|#_!!_#|/
21925:n
21926t n
21927s/'"$ac_delim"'$/,g/; t
21928s/$/\\/; p
21929N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21930' >>$CONFIG_STATUS <conf$$subs.sed
21931rm -f conf$$subs.sed
21932cat >>$CONFIG_STATUS <<_ACEOF
21933:end
21934s/|#_!!_#|//g
21935CEOF$ac_eof
21936_ACEOF
21937
21938
21939# VPATH may cause trouble with some makes, so we remove $(srcdir),
21940# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21941# trailing colons and then remove the whole line if VPATH becomes empty
21942# (actually we leave an empty line to preserve line numbers).
21943if test "x$srcdir" = x.; then
21944 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21945s/:*\$(srcdir):*/:/
21946s/:*\${srcdir}:*/:/
21947s/:*@srcdir@:*/:/
21948s/^\([^=]*=[ ]*\):*/\1/
21949s/:*$//
21950s/^[^=]*=[ ]*$//
21951}'
21952fi
21953
21954cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021955fi # test -n "$CONFIG_FILES"
21956
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021957
21958for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21959do
21960 case $ac_tag in
21961 :[FHLC]) ac_mode=$ac_tag; continue;;
21962 esac
21963 case $ac_mode$ac_tag in
21964 :[FHL]*:*);;
21965 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21966echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21967 { (exit 1); exit 1; }; };;
21968 :[FH]-) ac_tag=-:-;;
21969 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21970 esac
21971 ac_save_IFS=$IFS
21972 IFS=:
21973 set x $ac_tag
21974 IFS=$ac_save_IFS
21975 shift
21976 ac_file=$1
21977 shift
21978
21979 case $ac_mode in
21980 :L) ac_source=$1;;
21981 :[FH])
21982 ac_file_inputs=
21983 for ac_f
21984 do
21985 case $ac_f in
21986 -) ac_f="$tmp/stdin";;
21987 *) # Look for the file first in the build tree, then in the source tree
21988 # (if the path is not absolute). The absolute path cannot be DOS-style,
21989 # because $ac_f cannot contain `:'.
21990 test -f "$ac_f" ||
21991 case $ac_f in
21992 [\\/$]*) false;;
21993 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21994 esac ||
21995 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21996echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21997 { (exit 1); exit 1; }; };;
21998 esac
21999 ac_file_inputs="$ac_file_inputs $ac_f"
22000 done
22001
22002 # Let's still pretend it is `configure' which instantiates (i.e., don't
22003 # use $as_me), people would be surprised to read:
22004 # /* config.h. Generated by config.status. */
22005 configure_input="Generated from "`IFS=:
22006 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22007 if test x"$ac_file" != x-; then
22008 configure_input="$ac_file. $configure_input"
22009 { echo "$as_me:$LINENO: creating $ac_file" >&5
22010echo "$as_me: creating $ac_file" >&6;}
22011 fi
22012
22013 case $ac_tag in
22014 *:-:* | *:-) cat >"$tmp/stdin";;
22015 esac
22016 ;;
John Criswell451f67f2003-10-16 01:45:35 +000022017 esac
22018
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022019 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell451f67f2003-10-16 01:45:35 +000022020$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000022021 X"$ac_file" : 'X\(//\)[^/]' \| \
22022 X"$ac_file" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022023 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000022024echo X"$ac_file" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22026 s//\1/
22027 q
22028 }
22029 /^X\(\/\/\)[^/].*/{
22030 s//\1/
22031 q
22032 }
22033 /^X\(\/\/\)$/{
22034 s//\1/
22035 q
22036 }
22037 /^X\(\/\).*/{
22038 s//\1/
22039 q
22040 }
22041 s/.*/./; q'`
22042 { as_dir="$ac_dir"
22043 case $as_dir in #(
22044 -*) as_dir=./$as_dir;;
22045 esac
22046 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell451f67f2003-10-16 01:45:35 +000022047 as_dirs=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022048 while :; do
22049 case $as_dir in #(
22050 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22051 *) as_qdir=$as_dir;;
22052 esac
22053 as_dirs="'$as_qdir' $as_dirs"
22054 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell451f67f2003-10-16 01:45:35 +000022055$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000022056 X"$as_dir" : 'X\(//\)[^/]' \| \
22057 X"$as_dir" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022058 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000022059echo X"$as_dir" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22061 s//\1/
22062 q
22063 }
22064 /^X\(\/\/\)[^/].*/{
22065 s//\1/
22066 q
22067 }
22068 /^X\(\/\/\)$/{
22069 s//\1/
22070 q
22071 }
22072 /^X\(\/\).*/{
22073 s//\1/
22074 q
22075 }
22076 s/.*/./; q'`
22077 test -d "$as_dir" && break
John Criswell451f67f2003-10-16 01:45:35 +000022078 done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022079 test -z "$as_dirs" || eval "mkdir $as_dirs"
22080 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22081echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000022082 { (exit 1); exit 1; }; }; }
John Criswell451f67f2003-10-16 01:45:35 +000022083 ac_builddir=.
22084
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022085case "$ac_dir" in
22086.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22087*)
John Criswell451f67f2003-10-16 01:45:35 +000022088 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022089 # A ".." for each directory in $ac_dir_suffix.
22090 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22091 case $ac_top_builddir_sub in
22092 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22093 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22094 esac ;;
22095esac
22096ac_abs_top_builddir=$ac_pwd
22097ac_abs_builddir=$ac_pwd$ac_dir_suffix
22098# for backward compatibility:
22099ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +000022100
22101case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022102 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +000022103 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022104 ac_top_srcdir=$ac_top_builddir_sub
22105 ac_abs_top_srcdir=$ac_pwd ;;
22106 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +000022107 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022108 ac_top_srcdir=$srcdir
22109 ac_abs_top_srcdir=$srcdir ;;
22110 *) # Relative name.
22111 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22112 ac_top_srcdir=$ac_top_build_prefix$srcdir
22113 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +000022114esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022115ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Dan Gohmand02a2812009-03-24 23:47:11 +000022116
Dan Gohman324f6082009-03-25 00:52:11 +000022117
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022118 case $ac_mode in
22119 :F)
22120 #
22121 # CONFIG_FILE
22122 #
Dan Gohman324f6082009-03-25 00:52:11 +000022123
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022124 case $INSTALL in
22125 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22126 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22127 esac
Dan Gohman324f6082009-03-25 00:52:11 +000022128_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022129
22130cat >>$CONFIG_STATUS <<\_ACEOF
22131# If the template does not know about datarootdir, expand it.
22132# FIXME: This hack should be removed a few years after 2.60.
22133ac_datarootdir_hack=; ac_datarootdir_seen=
22134
22135case `sed -n '/datarootdir/ {
22136 p
22137 q
22138}
22139/@datadir@/p
22140/@docdir@/p
22141/@infodir@/p
22142/@localedir@/p
22143/@mandir@/p
22144' $ac_file_inputs` in
22145*datarootdir*) ac_datarootdir_seen=yes;;
22146*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22147 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22148echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22149_ACEOF
22150cat >>$CONFIG_STATUS <<_ACEOF
22151 ac_datarootdir_hack='
22152 s&@datadir@&$datadir&g
22153 s&@docdir@&$docdir&g
22154 s&@infodir@&$infodir&g
22155 s&@localedir@&$localedir&g
22156 s&@mandir@&$mandir&g
22157 s&\\\${datarootdir}&$datarootdir&g' ;;
22158esac
22159_ACEOF
22160
22161# Neutralize VPATH when `$srcdir' = `.'.
22162# Shell code in configure.ac might set extrasub.
22163# FIXME: do we really want to maintain this feature?
John Criswell451f67f2003-10-16 01:45:35 +000022164cat >>$CONFIG_STATUS <<_ACEOF
22165 sed "$ac_vpsub
22166$extrasub
22167_ACEOF
22168cat >>$CONFIG_STATUS <<\_ACEOF
22169:t
22170/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022171s&@configure_input@&$configure_input&;t t
22172s&@top_builddir@&$ac_top_builddir_sub&;t t
22173s&@srcdir@&$ac_srcdir&;t t
22174s&@abs_srcdir@&$ac_abs_srcdir&;t t
22175s&@top_srcdir@&$ac_top_srcdir&;t t
22176s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22177s&@builddir@&$ac_builddir&;t t
22178s&@abs_builddir@&$ac_abs_builddir&;t t
22179s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022180s&@INSTALL@&$ac_INSTALL&;t t
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022181$ac_datarootdir_hack
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022182" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell451f67f2003-10-16 01:45:35 +000022183
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022184test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22185 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22186 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22187 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22188which seems to be undefined. Please make sure it is defined." >&5
22189echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22190which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000022191
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022192 rm -f "$tmp/stdin"
22193 case $ac_file in
22194 -) cat "$tmp/out"; rm -f "$tmp/out";;
22195 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022196 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022197 ;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022198
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022199
22200 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22201echo "$as_me: executing $ac_file commands" >&6;}
22202 ;;
22203 esac
22204
22205
22206 case $ac_file$ac_mode in
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022207 "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22208 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22209 "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22210 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22211 "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22212 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22213 "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22214 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22215 "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22216 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022217
22218 esac
22219done # for ac_tag
22220
John Criswell451f67f2003-10-16 01:45:35 +000022221
22222{ (exit 0); exit 0; }
22223_ACEOF
22224chmod +x $CONFIG_STATUS
22225ac_clean_files=$ac_clean_files_save
22226
22227
22228# configure is writing to config.log, and then calls config.status.
22229# config.status does its own redirection, appending to config.log.
22230# Unfortunately, on DOS this fails, as config.log is still kept open
22231# by configure, so config.status won't be able to write to it; its
22232# output is simply discarded. So we exec the FD to /dev/null,
22233# effectively closing config.log, so it can be properly (re)opened and
22234# appended to by config.status. When coming back to configure, we
22235# need to make the FD available again.
22236if test "$no_create" != yes; then
22237 ac_cs_success=:
22238 ac_config_status_args=
22239 test "$silent" = yes &&
22240 ac_config_status_args="$ac_config_status_args --quiet"
22241 exec 5>/dev/null
22242 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22243 exec 5>>config.log
22244 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22245 # would make configure fail if this is the last instruction.
22246 $ac_cs_success || { (exit 1); exit 1; }
22247fi
22248
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022249#
22250# CONFIG_SUBDIRS section.
22251#
22252if test "$no_recursion" != yes; then
22253
22254 # Remove --cache-file and --srcdir arguments so they do not pile up.
22255 ac_sub_configure_args=
22256 ac_prev=
22257 eval "set x $ac_configure_args"
22258 shift
22259 for ac_arg
22260 do
22261 if test -n "$ac_prev"; then
22262 ac_prev=
22263 continue
22264 fi
22265 case $ac_arg in
22266 -cache-file | --cache-file | --cache-fil | --cache-fi \
22267 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22268 ac_prev=cache_file ;;
22269 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22270 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22271 | --c=*)
22272 ;;
22273 --config-cache | -C)
22274 ;;
22275 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22276 ac_prev=srcdir ;;
22277 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22278 ;;
22279 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22280 ac_prev=prefix ;;
22281 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22282 ;;
22283 *)
22284 case $ac_arg in
22285 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22286 esac
22287 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22288 esac
22289 done
22290
22291 # Always prepend --prefix to ensure using the same prefix
22292 # in subdir configurations.
22293 ac_arg="--prefix=$prefix"
22294 case $ac_arg in
22295 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22296 esac
22297 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22298
22299 ac_popdir=`pwd`
22300 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22301
22302 # Do not complain, so a configure script can configure whichever
22303 # parts of a large source tree are present.
22304 test -d "$srcdir/$ac_dir" || continue
22305
22306 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22307 echo "$as_me:$LINENO: $ac_msg" >&5
22308 echo "$ac_msg" >&6
22309 { as_dir="$ac_dir"
22310 case $as_dir in #(
22311 -*) as_dir=./$as_dir;;
22312 esac
22313 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22314 as_dirs=
22315 while :; do
22316 case $as_dir in #(
22317 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22318 *) as_qdir=$as_dir;;
22319 esac
22320 as_dirs="'$as_qdir' $as_dirs"
22321 as_dir=`$as_dirname -- "$as_dir" ||
22322$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22323 X"$as_dir" : 'X\(//\)[^/]' \| \
22324 X"$as_dir" : 'X\(//\)$' \| \
22325 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22326echo X"$as_dir" |
22327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22328 s//\1/
22329 q
22330 }
22331 /^X\(\/\/\)[^/].*/{
22332 s//\1/
22333 q
22334 }
22335 /^X\(\/\/\)$/{
22336 s//\1/
22337 q
22338 }
22339 /^X\(\/\).*/{
22340 s//\1/
22341 q
22342 }
22343 s/.*/./; q'`
22344 test -d "$as_dir" && break
22345 done
22346 test -z "$as_dirs" || eval "mkdir $as_dirs"
22347 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22348echo "$as_me: error: cannot create directory $as_dir" >&2;}
22349 { (exit 1); exit 1; }; }; }
22350 ac_builddir=.
22351
22352case "$ac_dir" in
22353.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22354*)
22355 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22356 # A ".." for each directory in $ac_dir_suffix.
22357 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22358 case $ac_top_builddir_sub in
22359 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22360 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22361 esac ;;
22362esac
22363ac_abs_top_builddir=$ac_pwd
22364ac_abs_builddir=$ac_pwd$ac_dir_suffix
22365# for backward compatibility:
22366ac_top_builddir=$ac_top_build_prefix
22367
22368case $srcdir in
22369 .) # We are building in place.
22370 ac_srcdir=.
22371 ac_top_srcdir=$ac_top_builddir_sub
22372 ac_abs_top_srcdir=$ac_pwd ;;
22373 [\\/]* | ?:[\\/]* ) # Absolute name.
22374 ac_srcdir=$srcdir$ac_dir_suffix;
22375 ac_top_srcdir=$srcdir
22376 ac_abs_top_srcdir=$srcdir ;;
22377 *) # Relative name.
22378 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22379 ac_top_srcdir=$ac_top_build_prefix$srcdir
22380 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22381esac
22382ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22383
22384
22385 cd "$ac_dir"
22386
22387 # Check for guested configure; otherwise get Cygnus style configure.
22388 if test -f "$ac_srcdir/configure.gnu"; then
22389 ac_sub_configure=$ac_srcdir/configure.gnu
22390 elif test -f "$ac_srcdir/configure"; then
22391 ac_sub_configure=$ac_srcdir/configure
22392 elif test -f "$ac_srcdir/configure.in"; then
22393 # This should be Cygnus configure.
22394 ac_sub_configure=$ac_aux_dir/configure
22395 else
22396 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22397echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22398 ac_sub_configure=
22399 fi
22400
22401 # The recursion is here.
22402 if test -n "$ac_sub_configure"; then
22403 # Make the cache file name correct relative to the subdirectory.
22404 case $cache_file in
22405 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22406 *) # Relative name.
22407 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22408 esac
22409
22410 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22411echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22412 # The eval makes quoting arguments work.
22413 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22414 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22415 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22416echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22417 { (exit 1); exit 1; }; }
22418 fi
22419
22420 cd "$ac_popdir"
22421 done
22422fi
22423