blob: 7ac03c0527316ea1e3a59b64a4bbdce08a3d3398 [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,
Dan Gohman29074cc2011-10-24 23:48:32 +00001405 xcore, msp430, blackfin, ptx, cbe, and cpp
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001406 (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" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003848 bfin-*) llvm_cv_target_arch="Blackfin" ;;
3849 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3850 ptx-*) llvm_cv_target_arch="PTX" ;;
3851 *) llvm_cv_target_arch="Unknown" ;;
3852esac
3853fi
3854{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3855echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3856
3857if test "$llvm_cv_target_arch" = "Unknown" ; then
3858 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3859echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3860fi
3861
3862# Determine the LLVM native architecture for the target
3863case "$llvm_cv_target_arch" in
3864 x86) LLVM_NATIVE_ARCH="X86" ;;
3865 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3866 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3867esac
3868
3869ARCH=$llvm_cv_target_arch
3870
3871
3872
3873
3874{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3875echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3876if test "${ac_cv_path_GREP+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3878else
3879 # Extract the first word of "grep ggrep" to use in msg output
3880if test -z "$GREP"; then
3881set dummy grep ggrep; ac_prog_name=$2
3882if test "${ac_cv_path_GREP+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3884else
3885 ac_path_GREP_found=false
3886# Loop through the user's path and test for each of PROGNAME-LIST
3887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3889do
3890 IFS=$as_save_IFS
3891 test -z "$as_dir" && as_dir=.
3892 for ac_prog in grep ggrep; do
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3895 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3896 # Check for GNU ac_path_GREP and select it if it is found.
3897 # Check for GNU $ac_path_GREP
3898case `"$ac_path_GREP" --version 2>&1` in
3899*GNU*)
3900 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3901*)
3902 ac_count=0
3903 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3904 while :
3905 do
3906 cat "conftest.in" "conftest.in" >"conftest.tmp"
3907 mv "conftest.tmp" "conftest.in"
3908 cp "conftest.in" "conftest.nl"
3909 echo 'GREP' >> "conftest.nl"
3910 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3911 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3912 ac_count=`expr $ac_count + 1`
3913 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3914 # Best one so far, save it but keep looking for a better one
3915 ac_cv_path_GREP="$ac_path_GREP"
3916 ac_path_GREP_max=$ac_count
3917 fi
3918 # 10*(2^10) chars as input seems more than enough
3919 test $ac_count -gt 10 && break
3920 done
3921 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3922esac
3923
3924
3925 $ac_path_GREP_found && break 3
3926 done
3927done
3928
3929done
3930IFS=$as_save_IFS
3931
3932
3933fi
3934
3935GREP="$ac_cv_path_GREP"
3936if test -z "$GREP"; then
3937 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3938echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3939 { (exit 1); exit 1; }; }
3940fi
3941
3942else
3943 ac_cv_path_GREP=$GREP
3944fi
3945
3946
3947fi
3948{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3949echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3950 GREP="$ac_cv_path_GREP"
3951
3952
3953{ echo "$as_me:$LINENO: checking for egrep" >&5
3954echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3955if test "${ac_cv_path_EGREP+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3957else
3958 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3959 then ac_cv_path_EGREP="$GREP -E"
3960 else
3961 # Extract the first word of "egrep" to use in msg output
3962if test -z "$EGREP"; then
3963set dummy egrep; ac_prog_name=$2
3964if test "${ac_cv_path_EGREP+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3966else
3967 ac_path_EGREP_found=false
3968# Loop through the user's path and test for each of PROGNAME-LIST
3969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3971do
3972 IFS=$as_save_IFS
3973 test -z "$as_dir" && as_dir=.
3974 for ac_prog in egrep; do
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3977 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3978 # Check for GNU ac_path_EGREP and select it if it is found.
3979 # Check for GNU $ac_path_EGREP
3980case `"$ac_path_EGREP" --version 2>&1` in
3981*GNU*)
3982 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3983*)
3984 ac_count=0
3985 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3986 while :
3987 do
3988 cat "conftest.in" "conftest.in" >"conftest.tmp"
3989 mv "conftest.tmp" "conftest.in"
3990 cp "conftest.in" "conftest.nl"
3991 echo 'EGREP' >> "conftest.nl"
3992 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3993 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3994 ac_count=`expr $ac_count + 1`
3995 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3996 # Best one so far, save it but keep looking for a better one
3997 ac_cv_path_EGREP="$ac_path_EGREP"
3998 ac_path_EGREP_max=$ac_count
3999 fi
4000 # 10*(2^10) chars as input seems more than enough
4001 test $ac_count -gt 10 && break
4002 done
4003 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4004esac
4005
4006
4007 $ac_path_EGREP_found && break 3
4008 done
4009done
4010
4011done
4012IFS=$as_save_IFS
4013
4014
4015fi
4016
4017EGREP="$ac_cv_path_EGREP"
4018if test -z "$EGREP"; then
4019 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4020echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4021 { (exit 1); exit 1; }; }
4022fi
4023
4024else
4025 ac_cv_path_EGREP=$EGREP
4026fi
4027
4028
4029 fi
4030fi
4031{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4032echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4033 EGREP="$ac_cv_path_EGREP"
4034
4035
4036{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4037echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4038if test "${ac_cv_header_stdc+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4040else
4041 cat >conftest.$ac_ext <<_ACEOF
4042/* confdefs.h. */
4043_ACEOF
4044cat confdefs.h >>conftest.$ac_ext
4045cat >>conftest.$ac_ext <<_ACEOF
4046/* end confdefs.h. */
4047#include <stdlib.h>
4048#include <stdarg.h>
4049#include <string.h>
4050#include <float.h>
4051
4052int
4053main ()
4054{
4055
4056 ;
4057 return 0;
4058}
4059_ACEOF
4060rm -f conftest.$ac_objext
4061if { (ac_try="$ac_compile"
4062case "(($ac_try" in
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4065esac
4066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067 (eval "$ac_compile") 2>conftest.er1
4068 ac_status=$?
4069 grep -v '^ *+' conftest.er1 >conftest.err
4070 rm -f conftest.er1
4071 cat conftest.err >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } &&
4074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4075 { (case "(($ac_try" in
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4078esac
4079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080 (eval "$ac_try") 2>&5
4081 ac_status=$?
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; } &&
4084 { ac_try='test -s conftest.$ac_objext'
4085 { (case "(($ac_try" in
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4088esac
4089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090 (eval "$ac_try") 2>&5
4091 ac_status=$?
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); }; }; then
4094 ac_cv_header_stdc=yes
4095else
4096 echo "$as_me: failed program was:" >&5
4097sed 's/^/| /' conftest.$ac_ext >&5
4098
4099 ac_cv_header_stdc=no
4100fi
4101
4102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103
4104if test $ac_cv_header_stdc = yes; then
4105 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4106 cat >conftest.$ac_ext <<_ACEOF
4107/* confdefs.h. */
4108_ACEOF
4109cat confdefs.h >>conftest.$ac_ext
4110cat >>conftest.$ac_ext <<_ACEOF
4111/* end confdefs.h. */
4112#include <string.h>
4113
4114_ACEOF
4115if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4116 $EGREP "memchr" >/dev/null 2>&1; then
4117 :
4118else
4119 ac_cv_header_stdc=no
4120fi
4121rm -f conftest*
4122
4123fi
4124
4125if test $ac_cv_header_stdc = yes; then
4126 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4127 cat >conftest.$ac_ext <<_ACEOF
4128/* confdefs.h. */
4129_ACEOF
4130cat confdefs.h >>conftest.$ac_ext
4131cat >>conftest.$ac_ext <<_ACEOF
4132/* end confdefs.h. */
4133#include <stdlib.h>
4134
4135_ACEOF
4136if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4137 $EGREP "free" >/dev/null 2>&1; then
4138 :
4139else
4140 ac_cv_header_stdc=no
4141fi
4142rm -f conftest*
4143
4144fi
4145
4146if test $ac_cv_header_stdc = yes; then
4147 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4148 if test "$cross_compiling" = yes; then
4149 :
4150else
4151 cat >conftest.$ac_ext <<_ACEOF
4152/* confdefs.h. */
4153_ACEOF
4154cat confdefs.h >>conftest.$ac_ext
4155cat >>conftest.$ac_ext <<_ACEOF
4156/* end confdefs.h. */
4157#include <ctype.h>
4158#include <stdlib.h>
4159#if ((' ' & 0x0FF) == 0x020)
4160# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4161# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4162#else
4163# define ISLOWER(c) \
4164 (('a' <= (c) && (c) <= 'i') \
4165 || ('j' <= (c) && (c) <= 'r') \
4166 || ('s' <= (c) && (c) <= 'z'))
4167# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4168#endif
4169
4170#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4171int
4172main ()
4173{
4174 int i;
4175 for (i = 0; i < 256; i++)
4176 if (XOR (islower (i), ISLOWER (i))
4177 || toupper (i) != TOUPPER (i))
4178 return 2;
4179 return 0;
4180}
4181_ACEOF
4182rm -f conftest$ac_exeext
4183if { (ac_try="$ac_link"
4184case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4187esac
4188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_link") 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4193 { (case "(($ac_try" in
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4196esac
4197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198 (eval "$ac_try") 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4202 :
4203else
4204 echo "$as_me: program exited with status $ac_status" >&5
4205echo "$as_me: failed program was:" >&5
4206sed 's/^/| /' conftest.$ac_ext >&5
4207
4208( exit $ac_status )
4209ac_cv_header_stdc=no
4210fi
4211rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4212fi
4213
4214
4215fi
4216fi
4217{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4218echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4219if test $ac_cv_header_stdc = yes; then
4220
4221cat >>confdefs.h <<\_ACEOF
4222#define STDC_HEADERS 1
4223_ACEOF
4224
4225fi
4226
4227# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4238 inttypes.h stdint.h unistd.h
4239do
4240as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4241{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4243if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4245else
4246 cat >conftest.$ac_ext <<_ACEOF
4247/* confdefs.h. */
4248_ACEOF
4249cat confdefs.h >>conftest.$ac_ext
4250cat >>conftest.$ac_ext <<_ACEOF
4251/* end confdefs.h. */
4252$ac_includes_default
4253
4254#include <$ac_header>
4255_ACEOF
4256rm -f conftest.$ac_objext
4257if { (ac_try="$ac_compile"
4258case "(($ac_try" in
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4261esac
4262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263 (eval "$ac_compile") 2>conftest.er1
4264 ac_status=$?
4265 grep -v '^ *+' conftest.er1 >conftest.err
4266 rm -f conftest.er1
4267 cat conftest.err >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } &&
4270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4271 { (case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4274esac
4275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276 (eval "$ac_try") 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; } &&
4280 { ac_try='test -s conftest.$ac_objext'
4281 { (case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284esac
4285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_try") 2>&5
4287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 eval "$as_ac_Header=yes"
4291else
4292 echo "$as_me: failed program was:" >&5
4293sed 's/^/| /' conftest.$ac_ext >&5
4294
4295 eval "$as_ac_Header=no"
4296fi
4297
4298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299fi
4300ac_res=`eval echo '${'$as_ac_Header'}'`
4301 { echo "$as_me:$LINENO: result: $ac_res" >&5
4302echo "${ECHO_T}$ac_res" >&6; }
4303if test `eval echo '${'$as_ac_Header'}'` = yes; then
4304 cat >>confdefs.h <<_ACEOF
4305#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4306_ACEOF
4307
4308fi
4309
4310done
4311
4312
4313{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4314echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4315if test "${ac_cv_c_bigendian+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4317else
4318 # See if sys/param.h defines the BYTE_ORDER macro.
4319cat >conftest.$ac_ext <<_ACEOF
4320/* confdefs.h. */
4321_ACEOF
4322cat confdefs.h >>conftest.$ac_ext
4323cat >>conftest.$ac_ext <<_ACEOF
4324/* end confdefs.h. */
4325#include <sys/types.h>
4326#include <sys/param.h>
4327
4328int
4329main ()
4330{
4331#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4332 bogus endian macros
4333#endif
4334
4335 ;
4336 return 0;
4337}
4338_ACEOF
4339rm -f conftest.$ac_objext
4340if { (ac_try="$ac_compile"
4341case "(($ac_try" in
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4344esac
4345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346 (eval "$ac_compile") 2>conftest.er1
4347 ac_status=$?
4348 grep -v '^ *+' conftest.er1 >conftest.err
4349 rm -f conftest.er1
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4354 { (case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4357esac
4358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359 (eval "$ac_try") 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; } &&
4363 { ac_try='test -s conftest.$ac_objext'
4364 { (case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4367esac
4368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369 (eval "$ac_try") 2>&5
4370 ac_status=$?
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; }; then
4373 # It does; now see whether it defined to BIG_ENDIAN or not.
4374cat >conftest.$ac_ext <<_ACEOF
4375/* confdefs.h. */
4376_ACEOF
4377cat confdefs.h >>conftest.$ac_ext
4378cat >>conftest.$ac_ext <<_ACEOF
4379/* end confdefs.h. */
4380#include <sys/types.h>
4381#include <sys/param.h>
4382
4383int
4384main ()
4385{
4386#if BYTE_ORDER != BIG_ENDIAN
4387 not big endian
4388#endif
4389
4390 ;
4391 return 0;
4392}
4393_ACEOF
4394rm -f conftest.$ac_objext
4395if { (ac_try="$ac_compile"
4396case "(($ac_try" in
4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398 *) ac_try_echo=$ac_try;;
4399esac
4400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4401 (eval "$ac_compile") 2>conftest.er1
4402 ac_status=$?
4403 grep -v '^ *+' conftest.er1 >conftest.err
4404 rm -f conftest.er1
4405 cat conftest.err >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } &&
4408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4409 { (case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4412esac
4413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414 (eval "$ac_try") 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; } &&
4418 { ac_try='test -s conftest.$ac_objext'
4419 { (case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4422esac
4423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424 (eval "$ac_try") 2>&5
4425 ac_status=$?
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4428 ac_cv_c_bigendian=yes
4429else
4430 echo "$as_me: failed program was:" >&5
4431sed 's/^/| /' conftest.$ac_ext >&5
4432
4433 ac_cv_c_bigendian=no
4434fi
4435
4436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437else
4438 echo "$as_me: failed program was:" >&5
4439sed 's/^/| /' conftest.$ac_ext >&5
4440
4441 # It does not; compile a test program.
4442if test "$cross_compiling" = yes; then
4443 # try to guess the endianness by grepping values into an object file
4444 ac_cv_c_bigendian=unknown
4445 cat >conftest.$ac_ext <<_ACEOF
4446/* confdefs.h. */
4447_ACEOF
4448cat confdefs.h >>conftest.$ac_ext
4449cat >>conftest.$ac_ext <<_ACEOF
4450/* end confdefs.h. */
4451short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4452short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4453void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4454short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4455short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4456void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4457int
4458main ()
4459{
4460 _ascii (); _ebcdic ();
4461 ;
4462 return 0;
4463}
4464_ACEOF
4465rm -f conftest.$ac_objext
4466if { (ac_try="$ac_compile"
4467case "(($ac_try" in
4468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469 *) ac_try_echo=$ac_try;;
4470esac
4471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4472 (eval "$ac_compile") 2>conftest.er1
4473 ac_status=$?
4474 grep -v '^ *+' conftest.er1 >conftest.err
4475 rm -f conftest.er1
4476 cat conftest.err >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } &&
4479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4480 { (case "(($ac_try" in
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4483esac
4484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485 (eval "$ac_try") 2>&5
4486 ac_status=$?
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; } &&
4489 { ac_try='test -s conftest.$ac_objext'
4490 { (case "(($ac_try" in
4491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4492 *) ac_try_echo=$ac_try;;
4493esac
4494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4495 (eval "$ac_try") 2>&5
4496 ac_status=$?
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4499 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4500 ac_cv_c_bigendian=yes
4501fi
4502if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4503 if test "$ac_cv_c_bigendian" = unknown; then
4504 ac_cv_c_bigendian=no
4505 else
4506 # finding both strings is unlikely to happen, but who knows?
4507 ac_cv_c_bigendian=unknown
4508 fi
4509fi
4510else
4511 echo "$as_me: failed program was:" >&5
4512sed 's/^/| /' conftest.$ac_ext >&5
4513
4514
4515fi
4516
4517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518else
4519 cat >conftest.$ac_ext <<_ACEOF
4520/* confdefs.h. */
4521_ACEOF
4522cat confdefs.h >>conftest.$ac_ext
4523cat >>conftest.$ac_ext <<_ACEOF
4524/* end confdefs.h. */
4525$ac_includes_default
4526int
4527main ()
4528{
4529
4530 /* Are we little or big endian? From Harbison&Steele. */
4531 union
4532 {
4533 long int l;
4534 char c[sizeof (long int)];
4535 } u;
4536 u.l = 1;
4537 return u.c[sizeof (long int) - 1] == 1;
4538
4539 ;
4540 return 0;
4541}
4542_ACEOF
4543rm -f conftest$ac_exeext
4544if { (ac_try="$ac_link"
4545case "(($ac_try" in
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4548esac
4549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550 (eval "$ac_link") 2>&5
4551 ac_status=$?
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4554 { (case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4557esac
4558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559 (eval "$ac_try") 2>&5
4560 ac_status=$?
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); }; }; then
4563 ac_cv_c_bigendian=no
4564else
4565 echo "$as_me: program exited with status $ac_status" >&5
4566echo "$as_me: failed program was:" >&5
4567sed 's/^/| /' conftest.$ac_ext >&5
4568
4569( exit $ac_status )
4570ac_cv_c_bigendian=yes
4571fi
4572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4573fi
4574
4575
4576fi
4577
4578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579fi
4580{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4581echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4582case $ac_cv_c_bigendian in
4583 yes)
4584 ENDIAN=big
4585 ;;
4586 no)
4587 ENDIAN=little
4588 ;;
4589 *)
4590 { { echo "$as_me:$LINENO: error: unknown endianness
4591presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4592echo "$as_me: error: unknown endianness
4593presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4594 { (exit 1); exit 1; }; } ;;
4595esac
4596
4597
4598if test "$cross_compiling" = yes; then
4599 LLVM_CROSS_COMPILING=1
4600
4601
4602{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4603echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4604if test "${ac_cv_build_exeext+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4606else
4607 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4608 ac_cv_build_exeext=.exe
4609else
4610 ac_build_prefix=${build_alias}-
4611
4612 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4613set dummy ${ac_build_prefix}gcc; ac_word=$2
4614{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4616if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4618else
4619 if test -n "$BUILD_CC"; then
4620 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4621else
4622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623for as_dir in $PATH
4624do
4625 IFS=$as_save_IFS
4626 test -z "$as_dir" && as_dir=.
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4629 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 break 2
4632 fi
4633done
4634done
4635IFS=$as_save_IFS
4636
4637fi
4638fi
4639BUILD_CC=$ac_cv_prog_BUILD_CC
4640if test -n "$BUILD_CC"; then
4641 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4642echo "${ECHO_T}$BUILD_CC" >&6; }
4643else
4644 { echo "$as_me:$LINENO: result: no" >&5
4645echo "${ECHO_T}no" >&6; }
4646fi
4647
4648
4649 if test -z "$BUILD_CC"; then
4650 # Extract the first word of "gcc", so it can be a program name with args.
4651set dummy gcc; ac_word=$2
4652{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4654if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4656else
4657 if test -n "$BUILD_CC"; then
4658 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4659else
4660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661for as_dir in $PATH
4662do
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4667 ac_cv_prog_BUILD_CC="gcc"
4668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 break 2
4670 fi
4671done
4672done
4673IFS=$as_save_IFS
4674
4675fi
4676fi
4677BUILD_CC=$ac_cv_prog_BUILD_CC
4678if test -n "$BUILD_CC"; then
4679 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4680echo "${ECHO_T}$BUILD_CC" >&6; }
4681else
4682 { echo "$as_me:$LINENO: result: no" >&5
4683echo "${ECHO_T}no" >&6; }
4684fi
4685
4686
4687 if test -z "$BUILD_CC"; then
4688 # Extract the first word of "cc", so it can be a program name with args.
4689set dummy cc; ac_word=$2
4690{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695 if test -n "$BUILD_CC"; then
4696 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4697else
4698 ac_prog_rejected=no
4699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700for as_dir in $PATH
4701do
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4706 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4707 ac_prog_rejected=yes
4708 continue
4709 fi
4710 ac_cv_prog_BUILD_CC="cc"
4711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 break 2
4713 fi
4714done
4715done
4716IFS=$as_save_IFS
4717
4718if test $ac_prog_rejected = yes; then
4719 # We found a bogon in the path, so make sure we never use it.
4720 set dummy $ac_cv_prog_BUILD_CC
4721 shift
4722 if test $# != 0; then
4723 # We chose a different compiler from the bogus one.
4724 # However, it has the same basename, so the bogon will be chosen
4725 # first if we set BUILD_CC to just the basename; use the full file name.
4726 shift
4727 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4728 fi
4729fi
4730fi
4731fi
4732BUILD_CC=$ac_cv_prog_BUILD_CC
4733if test -n "$BUILD_CC"; then
4734 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4735echo "${ECHO_T}$BUILD_CC" >&6; }
4736else
4737 { echo "$as_me:$LINENO: result: no" >&5
4738echo "${ECHO_T}no" >&6; }
4739fi
4740
4741
4742 fi
4743 fi
4744 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4745echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4746 { (exit 1); exit 1; }; }
4747 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4748 rm -f conftest*
4749 echo 'int main () { return 0; }' > conftest.$ac_ext
4750 ac_cv_build_exeext=
4751 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4752 (eval $ac_build_link) 2>&5
4753 ac_status=$?
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; then
4756 for file in conftest.*; do
4757 case $file in
4758 *.c | *.o | *.obj | *.dSYM) ;;
4759 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4760 esac
4761 done
4762 else
4763 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4764echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4765 { (exit 1); exit 1; }; }
4766 fi
4767 rm -f conftest*
4768 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4769fi
4770fi
4771
4772BUILD_EXEEXT=""
4773test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4774{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4775echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4776ac_build_exeext=$BUILD_EXEEXT
4777
4778 ac_build_prefix=${build_alias}-
4779 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4780set dummy ${ac_build_prefix}g++; ac_word=$2
4781{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4783if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4785else
4786 if test -n "$BUILD_CXX"; then
4787 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4788else
4789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790for as_dir in $PATH
4791do
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4796 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 break 2
4799 fi
4800done
4801done
4802IFS=$as_save_IFS
4803
4804fi
4805fi
4806BUILD_CXX=$ac_cv_prog_BUILD_CXX
4807if test -n "$BUILD_CXX"; then
4808 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4809echo "${ECHO_T}$BUILD_CXX" >&6; }
4810else
4811 { echo "$as_me:$LINENO: result: no" >&5
4812echo "${ECHO_T}no" >&6; }
4813fi
4814
4815
4816 if test -z "$BUILD_CXX"; then
4817 # Extract the first word of "g++", so it can be a program name with args.
4818set dummy g++; ac_word=$2
4819{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4821if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4823else
4824 if test -n "$BUILD_CXX"; then
4825 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4826else
4827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828for as_dir in $PATH
4829do
4830 IFS=$as_save_IFS
4831 test -z "$as_dir" && as_dir=.
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4834 ac_cv_prog_BUILD_CXX="g++"
4835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4836 break 2
4837 fi
4838done
4839done
4840IFS=$as_save_IFS
4841
4842fi
4843fi
4844BUILD_CXX=$ac_cv_prog_BUILD_CXX
4845if test -n "$BUILD_CXX"; then
4846 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4847echo "${ECHO_T}$BUILD_CXX" >&6; }
4848else
4849 { echo "$as_me:$LINENO: result: no" >&5
4850echo "${ECHO_T}no" >&6; }
4851fi
4852
4853
4854 if test -z "$BUILD_CXX"; then
4855 # Extract the first word of "c++", so it can be a program name with args.
4856set dummy c++; ac_word=$2
4857{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4859if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4861else
4862 if test -n "$BUILD_CXX"; then
4863 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4864else
4865 ac_prog_rejected=no
4866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867for as_dir in $PATH
4868do
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4874 ac_prog_rejected=yes
4875 continue
4876 fi
4877 ac_cv_prog_BUILD_CXX="c++"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4880 fi
4881done
4882done
4883IFS=$as_save_IFS
4884
4885if test $ac_prog_rejected = yes; then
4886 # We found a bogon in the path, so make sure we never use it.
4887 set dummy $ac_cv_prog_BUILD_CXX
4888 shift
4889 if test $# != 0; then
4890 # We chose a different compiler from the bogus one.
4891 # However, it has the same basename, so the bogon will be chosen
4892 # first if we set BUILD_CXX to just the basename; use the full file name.
4893 shift
4894 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4895 fi
4896fi
4897fi
4898fi
4899BUILD_CXX=$ac_cv_prog_BUILD_CXX
4900if test -n "$BUILD_CXX"; then
4901 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4902echo "${ECHO_T}$BUILD_CXX" >&6; }
4903else
4904 { echo "$as_me:$LINENO: result: no" >&5
4905echo "${ECHO_T}no" >&6; }
4906fi
4907
4908
4909 fi
4910 fi
4911else
4912 LLVM_CROSS_COMPILING=0
4913
4914fi
4915
4916if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4917 cvsbuild="yes"
4918 optimize="no"
4919 CVSBUILD=CVSBUILD=1
4920
4921else
4922 cvsbuild="no"
4923 optimize="yes"
4924fi
4925
4926
4927# Check whether --enable-optimized was given.
4928if test "${enable_optimized+set}" = set; then
4929 enableval=$enable_optimized;
4930else
4931 enableval=$optimize
4932fi
4933
4934if test ${enableval} = "no" ; then
4935 ENABLE_OPTIMIZED=
4936
4937else
4938 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4939
4940fi
4941
4942# Check whether --enable-profiling was given.
4943if test "${enable_profiling+set}" = set; then
4944 enableval=$enable_profiling;
4945else
4946 enableval="no"
4947fi
4948
4949if test ${enableval} = "no" ; then
4950 ENABLE_PROFILING=
4951
4952else
4953 ENABLE_PROFILING=ENABLE_PROFILING=1
4954
4955fi
4956
4957# Check whether --enable-assertions was given.
4958if test "${enable_assertions+set}" = set; then
4959 enableval=$enable_assertions;
4960else
4961 enableval="yes"
4962fi
4963
4964if test ${enableval} = "yes" ; then
4965 DISABLE_ASSERTIONS=
4966
4967else
4968 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4969
4970fi
4971
4972# Check whether --enable-expensive-checks was given.
4973if test "${enable_expensive_checks+set}" = set; then
4974 enableval=$enable_expensive_checks;
4975else
4976 enableval="no"
4977fi
4978
4979if test ${enableval} = "yes" ; then
4980 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4981
4982 EXPENSIVE_CHECKS=yes
4983
4984else
4985 ENABLE_EXPENSIVE_CHECKS=
4986
4987 EXPENSIVE_CHECKS=no
4988
4989fi
4990
4991# Check whether --enable-debug-runtime was given.
4992if test "${enable_debug_runtime+set}" = set; then
4993 enableval=$enable_debug_runtime;
4994else
4995 enableval=no
4996fi
4997
4998if test ${enableval} = "no" ; then
4999 DEBUG_RUNTIME=
5000
5001else
5002 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5003
5004fi
5005
5006# Check whether --enable-debug-symbols was given.
5007if test "${enable_debug_symbols+set}" = set; then
5008 enableval=$enable_debug_symbols;
5009else
5010 enableval=no
5011fi
5012
5013if test ${enableval} = "no" ; then
5014 DEBUG_SYMBOLS=
5015
5016else
5017 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5018
5019fi
5020
5021# Check whether --enable-jit was given.
5022if test "${enable_jit+set}" = set; then
5023 enableval=$enable_jit;
5024else
5025 enableval=default
5026fi
5027
5028if test ${enableval} = "no"
5029then
5030 JIT=
5031
5032else
5033 case "$llvm_cv_target_arch" in
5034 x86) TARGET_HAS_JIT=1
5035 ;;
5036 Sparc) TARGET_HAS_JIT=0
5037 ;;
5038 PowerPC) TARGET_HAS_JIT=1
5039 ;;
5040 x86_64) TARGET_HAS_JIT=1
5041 ;;
5042 Alpha) TARGET_HAS_JIT=0
5043 ;;
5044 ARM) TARGET_HAS_JIT=1
5045 ;;
5046 Mips) TARGET_HAS_JIT=1
5047 ;;
5048 XCore) TARGET_HAS_JIT=0
5049 ;;
5050 MSP430) TARGET_HAS_JIT=0
5051 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005052 Blackfin) TARGET_HAS_JIT=0
5053 ;;
5054 MBlaze) TARGET_HAS_JIT=0
5055 ;;
5056 PTX) TARGET_HAS_JIT=0
5057 ;;
5058 *) TARGET_HAS_JIT=0
5059 ;;
5060 esac
5061fi
5062
5063# Check whether --enable-docs was given.
5064if test "${enable_docs+set}" = set; then
5065 enableval=$enable_docs;
5066else
5067 enableval=default
5068fi
5069
5070case "$enableval" in
5071 yes) ENABLE_DOCS=1
5072 ;;
5073 no) ENABLE_DOCS=0
5074 ;;
5075 default) ENABLE_DOCS=1
5076 ;;
5077 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5078echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5079 { (exit 1); exit 1; }; } ;;
5080esac
5081
5082# Check whether --enable-doxygen was given.
5083if test "${enable_doxygen+set}" = set; then
5084 enableval=$enable_doxygen;
5085else
5086 enableval=default
5087fi
5088
5089case "$enableval" in
5090 yes) ENABLE_DOXYGEN=1
5091 ;;
5092 no) ENABLE_DOXYGEN=0
5093 ;;
5094 default) ENABLE_DOXYGEN=0
5095 ;;
5096 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5097echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5098 { (exit 1); exit 1; }; } ;;
5099esac
5100
5101# Check whether --enable-threads was given.
5102if test "${enable_threads+set}" = set; then
5103 enableval=$enable_threads;
5104else
5105 enableval=default
5106fi
5107
5108case "$enableval" in
5109 yes) ENABLE_THREADS=1
5110 ;;
5111 no) ENABLE_THREADS=0
5112 ;;
5113 default) ENABLE_THREADS=1
5114 ;;
5115 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5116echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5117 { (exit 1); exit 1; }; } ;;
5118esac
5119
5120cat >>confdefs.h <<_ACEOF
5121#define ENABLE_THREADS $ENABLE_THREADS
5122_ACEOF
5123
5124
5125# Check whether --enable-pthreads was given.
5126if test "${enable_pthreads+set}" = set; then
5127 enableval=$enable_pthreads;
5128else
5129 enableval=default
5130fi
5131
5132case "$enableval" in
5133 yes) ENABLE_PTHREADS=1
5134 ;;
5135 no) ENABLE_PTHREADS=0
5136 ;;
5137 default) ENABLE_PTHREADS=1
5138 ;;
5139 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5140echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5141 { (exit 1); exit 1; }; } ;;
5142esac
5143
5144# Check whether --enable-pic was given.
5145if test "${enable_pic+set}" = set; then
5146 enableval=$enable_pic;
5147else
5148 enableval=default
5149fi
5150
5151case "$enableval" in
5152 yes) ENABLE_PIC=1
5153 ;;
5154 no) ENABLE_PIC=0
5155 ;;
5156 default) ENABLE_PIC=1
5157 ;;
5158 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5159echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5160 { (exit 1); exit 1; }; } ;;
5161esac
5162
5163cat >>confdefs.h <<_ACEOF
5164#define ENABLE_PIC $ENABLE_PIC
5165_ACEOF
5166
5167
5168# Check whether --enable-shared was given.
5169if test "${enable_shared+set}" = set; then
5170 enableval=$enable_shared;
5171else
5172 enableval=default
5173fi
5174
5175case "$enableval" in
5176 yes) ENABLE_SHARED=1
5177 ;;
5178 no) ENABLE_SHARED=0
5179 ;;
5180 default) ENABLE_SHARED=0
5181 ;;
5182 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5183echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5184 { (exit 1); exit 1; }; } ;;
5185esac
5186
5187# Check whether --enable-embed-stdcxx was given.
5188if test "${enable_embed_stdcxx+set}" = set; then
5189 enableval=$enable_embed_stdcxx;
5190else
5191 enableval=default
5192fi
5193
5194case "$enableval" in
5195 yes) ENABLE_EMBED_STDCXX=1
5196 ;;
5197 no) ENABLE_EMBED_STDCXX=0
5198 ;;
5199 default) ENABLE_EMBED_STDCXX=1
5200 ;;
5201 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5202echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5203 { (exit 1); exit 1; }; } ;;
5204esac
5205
5206# Check whether --enable-timestamps was given.
5207if test "${enable_timestamps+set}" = set; then
5208 enableval=$enable_timestamps;
5209else
5210 enableval=default
5211fi
5212
5213case "$enableval" in
5214 yes) ENABLE_TIMESTAMPS=1
5215 ;;
5216 no) ENABLE_TIMESTAMPS=0
5217 ;;
5218 default) ENABLE_TIMESTAMPS=1
5219 ;;
5220 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5221echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5222 { (exit 1); exit 1; }; } ;;
5223esac
5224
5225cat >>confdefs.h <<_ACEOF
5226#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5227_ACEOF
5228
5229
5230TARGETS_TO_BUILD=""
5231# Check whether --enable-targets was given.
5232if test "${enable_targets+set}" = set; then
5233 enableval=$enable_targets;
5234else
5235 enableval=all
5236fi
5237
5238if test "$enableval" = host-only ; then
5239 enableval=host
5240fi
5241case "$enableval" in
Dan Gohman29074cc2011-10-24 23:48:32 +00005242 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 Blackfin CBackend CppBackend MBlaze PTX" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005243 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5244 case "$a_target" in
5245 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5246 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5247 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5248 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5249 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5250 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5251 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5252 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5253 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5254 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005255 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5256 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5257 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5258 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5259 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5260 host) case "$llvm_cv_target_arch" in
5261 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5262 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5263 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5264 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5265 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5266 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5267 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5268 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5269 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5270 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5271 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005272 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5273 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5274 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5275echo "$as_me: error: Can not set target to build" >&2;}
5276 { (exit 1); exit 1; }; } ;;
5277 esac ;;
5278 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5279echo "$as_me: error: Unrecognized target $a_target" >&2;}
5280 { (exit 1); exit 1; }; } ;;
5281 esac
5282 done
5283 ;;
5284esac
5285TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5286
5287
5288# Determine whether we are building LLVM support for the native architecture.
5289# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5290for a_target in $TARGETS_TO_BUILD; do
5291 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5292
5293cat >>confdefs.h <<_ACEOF
5294#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5295_ACEOF
5296
5297 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5298 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5299 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5300 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5301 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5302 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5303 fi
5304
5305cat >>confdefs.h <<_ACEOF
5306#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5307_ACEOF
5308
5309
5310cat >>confdefs.h <<_ACEOF
5311#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5312_ACEOF
5313
5314
5315cat >>confdefs.h <<_ACEOF
5316#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5317_ACEOF
5318
5319
5320cat >>confdefs.h <<_ACEOF
5321#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5322_ACEOF
5323
5324 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5325
5326cat >>confdefs.h <<_ACEOF
5327#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5328_ACEOF
5329
5330 fi
5331 fi
5332done
5333
5334# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5335# target feature def files.
5336LLVM_ENUM_TARGETS=""
5337LLVM_ENUM_ASM_PRINTERS=""
5338LLVM_ENUM_ASM_PARSERS=""
5339LLVM_ENUM_DISASSEMBLERS=""
5340for target_to_build in $TARGETS_TO_BUILD; do
5341 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5342 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5343 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5344 fi
5345 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5346 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5347 fi
5348 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5349 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5350 fi
5351done
5352
5353
5354
5355
5356
5357# Check whether --enable-cbe-printf-a was given.
5358if test "${enable_cbe_printf_a+set}" = set; then
5359 enableval=$enable_cbe_printf_a;
5360else
5361 enableval=default
5362fi
5363
5364case "$enableval" in
5365 yes) ENABLE_CBE_PRINTF_A=1
5366 ;;
5367 no) ENABLE_CBE_PRINTF_A=0
5368 ;;
5369 default) ENABLE_CBE_PRINTF_A=1
5370 ;;
5371 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5372echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5373 { (exit 1); exit 1; }; } ;;
5374esac
5375
5376cat >>confdefs.h <<_ACEOF
5377#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5378_ACEOF
5379
5380
5381
5382# Check whether --with-optimize-option was given.
5383if test "${with_optimize_option+set}" = set; then
5384 withval=$with_optimize_option;
5385else
5386 withval=default
5387fi
5388
5389{ echo "$as_me:$LINENO: checking optimization flags" >&5
5390echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5391case "$withval" in
5392 default)
5393 case "$llvm_cv_os_type" in
5394 FreeBSD) optimize_option=-O2 ;;
5395 MingW) optimize_option=-O2 ;;
5396 *) optimize_option=-O3 ;;
5397 esac ;;
5398 *) optimize_option="$withval" ;;
5399esac
5400OPTIMIZE_OPTION=$optimize_option
5401
5402{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5403echo "${ECHO_T}$optimize_option" >&6; }
5404
5405
5406# Check whether --with-extra-options was given.
5407if test "${with_extra_options+set}" = set; then
5408 withval=$with_extra_options;
5409else
5410 withval=default
5411fi
5412
5413case "$withval" in
5414 default) EXTRA_OPTIONS= ;;
5415 *) EXTRA_OPTIONS=$withval ;;
5416esac
5417EXTRA_OPTIONS=$EXTRA_OPTIONS
5418
5419
5420
5421# Check whether --with-extra-ld-options was given.
5422if test "${with_extra_ld_options+set}" = set; then
5423 withval=$with_extra_ld_options;
5424else
5425 withval=default
5426fi
5427
5428case "$withval" in
5429 default) EXTRA_LD_OPTIONS= ;;
5430 *) EXTRA_LD_OPTIONS=$withval ;;
5431esac
5432EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5433
5434
5435# Check whether --enable-bindings was given.
5436if test "${enable_bindings+set}" = set; then
5437 enableval=$enable_bindings;
5438else
5439 enableval=default
5440fi
5441
5442BINDINGS_TO_BUILD=""
5443case "$enableval" in
5444 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5445 all ) BINDINGS_TO_BUILD="ocaml" ;;
5446 none | no) BINDINGS_TO_BUILD="" ;;
5447 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5448 case "$a_binding" in
5449 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5450 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5451echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5452 { (exit 1); exit 1; }; } ;;
5453 esac
5454 done
5455 ;;
5456esac
5457
5458
5459# Check whether --with-ocaml-libdir was given.
5460if test "${with_ocaml_libdir+set}" = set; then
5461 withval=$with_ocaml_libdir;
5462else
5463 withval=auto
5464fi
5465
5466case "$withval" in
5467 auto) with_ocaml_libdir="$withval" ;;
5468 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5469 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5470echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5471 { (exit 1); exit 1; }; } ;;
5472esac
5473
5474
5475# Check whether --with-clang-resource-dir was given.
5476if test "${with_clang_resource_dir+set}" = set; then
5477 withval=$with_clang_resource_dir;
5478else
5479 withval=""
5480fi
5481
5482
5483cat >>confdefs.h <<_ACEOF
5484#define CLANG_RESOURCE_DIR "$withval"
5485_ACEOF
5486
5487
5488
5489# Check whether --with-c-include-dirs was given.
5490if test "${with_c_include_dirs+set}" = set; then
5491 withval=$with_c_include_dirs;
5492else
5493 withval=""
5494fi
5495
5496
5497cat >>confdefs.h <<_ACEOF
5498#define C_INCLUDE_DIRS "$withval"
5499_ACEOF
5500
5501
5502
5503# Check whether --with-cxx-include-root was given.
5504if test "${with_cxx_include_root+set}" = set; then
5505 withval=$with_cxx_include_root;
5506else
5507 withval=""
5508fi
5509
5510
5511cat >>confdefs.h <<_ACEOF
5512#define CXX_INCLUDE_ROOT "$withval"
5513_ACEOF
5514
5515
5516
5517# Check whether --with-cxx-include-arch was given.
5518if test "${with_cxx_include_arch+set}" = set; then
5519 withval=$with_cxx_include_arch;
5520else
5521 withval=""
5522fi
5523
5524
5525cat >>confdefs.h <<_ACEOF
5526#define CXX_INCLUDE_ARCH "$withval"
5527_ACEOF
5528
5529
5530
5531# Check whether --with-cxx-include-32bit-dir was given.
5532if test "${with_cxx_include_32bit_dir+set}" = set; then
5533 withval=$with_cxx_include_32bit_dir;
5534else
5535 withval=""
5536fi
5537
5538
5539cat >>confdefs.h <<_ACEOF
5540#define CXX_INCLUDE_32BIT_DIR "$withval"
5541_ACEOF
5542
5543
5544
5545# Check whether --with-cxx-include-64bit-dir was given.
5546if test "${with_cxx_include_64bit_dir+set}" = set; then
5547 withval=$with_cxx_include_64bit_dir;
5548else
5549 withval=""
5550fi
5551
5552
5553cat >>confdefs.h <<_ACEOF
5554#define CXX_INCLUDE_64BIT_DIR "$withval"
5555_ACEOF
5556
5557
5558
5559# Check whether --with-binutils-include was given.
5560if test "${with_binutils_include+set}" = set; then
5561 withval=$with_binutils_include;
5562else
5563 withval=default
5564fi
5565
5566case "$withval" in
5567 default) WITH_BINUTILS_INCDIR=default ;;
5568 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5569 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5570echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5571 { (exit 1); exit 1; }; } ;;
5572esac
5573if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5574 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5575
5576 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5577 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5578 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5579echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5580 { (exit 1); exit 1; }; };
5581 fi
5582fi
5583
5584
5585# Check whether --with-bug-report-url was given.
5586if test "${with_bug_report_url+set}" = set; then
5587 withval=$with_bug_report_url;
5588else
5589 withval="http://llvm.org/bugs/"
5590fi
5591
5592
5593cat >>confdefs.h <<_ACEOF
5594#define BUG_REPORT_URL "$withval"
5595_ACEOF
5596
5597
5598# Check whether --enable-libffi was given.
5599if test "${enable_libffi+set}" = set; then
5600 enableval=$enable_libffi; case "$enableval" in
5601 yes) llvm_cv_enable_libffi="yes" ;;
5602 no) llvm_cv_enable_libffi="no" ;;
5603 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5604echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5605 { (exit 1); exit 1; }; } ;;
5606 esac
5607else
5608 llvm_cv_enable_libffi=no
5609fi
5610
5611
5612
5613{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5614echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5615if test "${lt_cv_path_NM+set}" = set; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5617else
5618 if test -n "$NM"; then
5619 # Let the user override the test.
5620 lt_cv_path_NM="$NM"
5621else
5622 lt_nm_to_check="${ac_tool_prefix}nm"
5623 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5624 lt_nm_to_check="$lt_nm_to_check nm"
5625 fi
5626 for lt_tmp_nm in $lt_nm_to_check; do
5627 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5628 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5629 IFS="$lt_save_ifs"
5630 test -z "$ac_dir" && ac_dir=.
5631 tmp_nm="$ac_dir/$lt_tmp_nm"
5632 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5633 # Check to see if the nm accepts a BSD-compat flag.
5634 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5635 # nm: unknown option "B" ignored
5636 # Tru64's nm complains that /dev/null is an invalid object file
5637 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5638 */dev/null* | *'Invalid file or object type'*)
5639 lt_cv_path_NM="$tmp_nm -B"
5640 break
5641 ;;
5642 *)
5643 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5644 */dev/null*)
5645 lt_cv_path_NM="$tmp_nm -p"
5646 break
5647 ;;
5648 *)
5649 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5650 continue # so that we can try to find one that supports BSD flags
5651 ;;
5652 esac
5653 ;;
5654 esac
5655 fi
5656 done
5657 IFS="$lt_save_ifs"
5658 done
5659 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5660fi
5661fi
5662{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5663echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5664NM="$lt_cv_path_NM"
5665
5666
5667
5668{ echo "$as_me:$LINENO: checking for GNU make" >&5
5669echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5670if test "${llvm_cv_gnu_make_command+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5672else
5673 llvm_cv_gnu_make_command=''
5674 for a in "$MAKE" make gmake gnumake ; do
5675 if test -z "$a" ; then continue ; fi ;
5676 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5677 then
5678 llvm_cv_gnu_make_command=$a ;
5679 break;
5680 fi
5681 done
5682fi
5683{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5684echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5685 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5686 ifGNUmake='' ;
5687 else
5688 ifGNUmake='#' ;
5689 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5690echo "${ECHO_T}\"Not found\"" >&6; };
5691 fi
5692
5693
5694{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5695echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5696LN_S=$as_ln_s
5697if test "$LN_S" = "ln -s"; then
5698 { echo "$as_me:$LINENO: result: yes" >&5
5699echo "${ECHO_T}yes" >&6; }
5700else
5701 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5702echo "${ECHO_T}no, using $LN_S" >&6; }
5703fi
5704
5705# Extract the first word of "cmp", so it can be a program name with args.
5706set dummy cmp; ac_word=$2
5707{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5709if test "${ac_cv_path_CMP+set}" = set; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5711else
5712 case $CMP in
5713 [\\/]* | ?:[\\/]*)
5714 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5715 ;;
5716 *)
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718for as_dir in $PATH
5719do
5720 IFS=$as_save_IFS
5721 test -z "$as_dir" && as_dir=.
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5724 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5726 break 2
5727 fi
5728done
5729done
5730IFS=$as_save_IFS
5731
5732 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5733 ;;
5734esac
5735fi
5736CMP=$ac_cv_path_CMP
5737if test -n "$CMP"; then
5738 { echo "$as_me:$LINENO: result: $CMP" >&5
5739echo "${ECHO_T}$CMP" >&6; }
5740else
5741 { echo "$as_me:$LINENO: result: no" >&5
5742echo "${ECHO_T}no" >&6; }
5743fi
5744
5745
5746# Extract the first word of "cp", so it can be a program name with args.
5747set dummy cp; ac_word=$2
5748{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5750if test "${ac_cv_path_CP+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5752else
5753 case $CP in
5754 [\\/]* | ?:[\\/]*)
5755 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5756 ;;
5757 *)
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759for as_dir in $PATH
5760do
5761 IFS=$as_save_IFS
5762 test -z "$as_dir" && as_dir=.
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5765 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5767 break 2
5768 fi
5769done
5770done
5771IFS=$as_save_IFS
5772
5773 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5774 ;;
5775esac
5776fi
5777CP=$ac_cv_path_CP
5778if test -n "$CP"; then
5779 { echo "$as_me:$LINENO: result: $CP" >&5
5780echo "${ECHO_T}$CP" >&6; }
5781else
5782 { echo "$as_me:$LINENO: result: no" >&5
5783echo "${ECHO_T}no" >&6; }
5784fi
5785
5786
5787# Extract the first word of "date", so it can be a program name with args.
5788set dummy date; ac_word=$2
5789{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5791if test "${ac_cv_path_DATE+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5793else
5794 case $DATE in
5795 [\\/]* | ?:[\\/]*)
5796 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5797 ;;
5798 *)
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800for as_dir in $PATH
5801do
5802 IFS=$as_save_IFS
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5806 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 break 2
5809 fi
5810done
5811done
5812IFS=$as_save_IFS
5813
5814 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5815 ;;
5816esac
5817fi
5818DATE=$ac_cv_path_DATE
5819if test -n "$DATE"; then
5820 { echo "$as_me:$LINENO: result: $DATE" >&5
5821echo "${ECHO_T}$DATE" >&6; }
5822else
5823 { echo "$as_me:$LINENO: result: no" >&5
5824echo "${ECHO_T}no" >&6; }
5825fi
5826
5827
5828# Extract the first word of "find", so it can be a program name with args.
5829set dummy find; ac_word=$2
5830{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5832if test "${ac_cv_path_FIND+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5834else
5835 case $FIND in
5836 [\\/]* | ?:[\\/]*)
5837 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5838 ;;
5839 *)
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841for as_dir in $PATH
5842do
5843 IFS=$as_save_IFS
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5847 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 break 2
5850 fi
5851done
5852done
5853IFS=$as_save_IFS
5854
5855 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5856 ;;
5857esac
5858fi
5859FIND=$ac_cv_path_FIND
5860if test -n "$FIND"; then
5861 { echo "$as_me:$LINENO: result: $FIND" >&5
5862echo "${ECHO_T}$FIND" >&6; }
5863else
5864 { echo "$as_me:$LINENO: result: no" >&5
5865echo "${ECHO_T}no" >&6; }
5866fi
5867
5868
5869# Extract the first word of "grep", so it can be a program name with args.
5870set dummy grep; ac_word=$2
5871{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5873if test "${ac_cv_path_GREP+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5875else
5876 case $GREP in
5877 [\\/]* | ?:[\\/]*)
5878 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5879 ;;
5880 *)
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882for as_dir in $PATH
5883do
5884 IFS=$as_save_IFS
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5888 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 break 2
5891 fi
5892done
5893done
5894IFS=$as_save_IFS
5895
5896 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5897 ;;
5898esac
5899fi
5900GREP=$ac_cv_path_GREP
5901if test -n "$GREP"; then
5902 { echo "$as_me:$LINENO: result: $GREP" >&5
5903echo "${ECHO_T}$GREP" >&6; }
5904else
5905 { echo "$as_me:$LINENO: result: no" >&5
5906echo "${ECHO_T}no" >&6; }
5907fi
5908
5909
5910# Extract the first word of "mkdir", so it can be a program name with args.
5911set dummy mkdir; ac_word=$2
5912{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5914if test "${ac_cv_path_MKDIR+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5916else
5917 case $MKDIR in
5918 [\\/]* | ?:[\\/]*)
5919 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5920 ;;
5921 *)
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923for as_dir in $PATH
5924do
5925 IFS=$as_save_IFS
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5929 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 break 2
5932 fi
5933done
5934done
5935IFS=$as_save_IFS
5936
5937 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5938 ;;
5939esac
5940fi
5941MKDIR=$ac_cv_path_MKDIR
5942if test -n "$MKDIR"; then
5943 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5944echo "${ECHO_T}$MKDIR" >&6; }
5945else
5946 { echo "$as_me:$LINENO: result: no" >&5
5947echo "${ECHO_T}no" >&6; }
5948fi
5949
5950
5951# Extract the first word of "mv", so it can be a program name with args.
5952set dummy mv; ac_word=$2
5953{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5955if test "${ac_cv_path_MV+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5957else
5958 case $MV in
5959 [\\/]* | ?:[\\/]*)
5960 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5961 ;;
5962 *)
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964for as_dir in $PATH
5965do
5966 IFS=$as_save_IFS
5967 test -z "$as_dir" && as_dir=.
5968 for ac_exec_ext in '' $ac_executable_extensions; do
5969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5970 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5972 break 2
5973 fi
5974done
5975done
5976IFS=$as_save_IFS
5977
5978 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5979 ;;
5980esac
5981fi
5982MV=$ac_cv_path_MV
5983if test -n "$MV"; then
5984 { echo "$as_me:$LINENO: result: $MV" >&5
5985echo "${ECHO_T}$MV" >&6; }
5986else
5987 { echo "$as_me:$LINENO: result: no" >&5
5988echo "${ECHO_T}no" >&6; }
5989fi
5990
5991
5992if test -n "$ac_tool_prefix"; then
5993 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5994set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5995{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5997if test "${ac_cv_prog_RANLIB+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
5999else
6000 if test -n "$RANLIB"; then
6001 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6002else
6003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004for as_dir in $PATH
6005do
6006 IFS=$as_save_IFS
6007 test -z "$as_dir" && as_dir=.
6008 for ac_exec_ext in '' $ac_executable_extensions; do
6009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6010 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6012 break 2
6013 fi
6014done
6015done
6016IFS=$as_save_IFS
6017
6018fi
6019fi
6020RANLIB=$ac_cv_prog_RANLIB
6021if test -n "$RANLIB"; then
6022 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6023echo "${ECHO_T}$RANLIB" >&6; }
6024else
6025 { echo "$as_me:$LINENO: result: no" >&5
6026echo "${ECHO_T}no" >&6; }
6027fi
6028
6029
6030fi
6031if test -z "$ac_cv_prog_RANLIB"; then
6032 ac_ct_RANLIB=$RANLIB
6033 # Extract the first word of "ranlib", so it can be a program name with args.
6034set dummy ranlib; ac_word=$2
6035{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6037if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6039else
6040 if test -n "$ac_ct_RANLIB"; then
6041 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6042else
6043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044for as_dir in $PATH
6045do
6046 IFS=$as_save_IFS
6047 test -z "$as_dir" && as_dir=.
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6050 ac_cv_prog_ac_ct_RANLIB="ranlib"
6051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 break 2
6053 fi
6054done
6055done
6056IFS=$as_save_IFS
6057
6058fi
6059fi
6060ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6061if test -n "$ac_ct_RANLIB"; then
6062 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6063echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6064else
6065 { echo "$as_me:$LINENO: result: no" >&5
6066echo "${ECHO_T}no" >&6; }
6067fi
6068
6069 if test "x$ac_ct_RANLIB" = x; then
6070 RANLIB=":"
6071 else
6072 case $cross_compiling:$ac_tool_warned in
6073yes:)
6074{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6075whose name does not start with the host triplet. If you think this
6076configuration is useful to you, please write to autoconf@gnu.org." >&5
6077echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6078whose name does not start with the host triplet. If you think this
6079configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6080ac_tool_warned=yes ;;
6081esac
6082 RANLIB=$ac_ct_RANLIB
6083 fi
6084else
6085 RANLIB="$ac_cv_prog_RANLIB"
6086fi
6087
6088if test -n "$ac_tool_prefix"; then
6089 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6090set dummy ${ac_tool_prefix}ar; ac_word=$2
6091{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6093if test "${ac_cv_prog_AR+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6095else
6096 if test -n "$AR"; then
6097 ac_cv_prog_AR="$AR" # Let the user override the test.
6098else
6099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100for as_dir in $PATH
6101do
6102 IFS=$as_save_IFS
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6106 ac_cv_prog_AR="${ac_tool_prefix}ar"
6107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108 break 2
6109 fi
6110done
6111done
6112IFS=$as_save_IFS
6113
6114fi
6115fi
6116AR=$ac_cv_prog_AR
6117if test -n "$AR"; then
6118 { echo "$as_me:$LINENO: result: $AR" >&5
6119echo "${ECHO_T}$AR" >&6; }
6120else
6121 { echo "$as_me:$LINENO: result: no" >&5
6122echo "${ECHO_T}no" >&6; }
6123fi
6124
6125
6126fi
6127if test -z "$ac_cv_prog_AR"; then
6128 ac_ct_AR=$AR
6129 # Extract the first word of "ar", so it can be a program name with args.
6130set dummy ar; ac_word=$2
6131{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6133if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6135else
6136 if test -n "$ac_ct_AR"; then
6137 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6138else
6139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140for as_dir in $PATH
6141do
6142 IFS=$as_save_IFS
6143 test -z "$as_dir" && as_dir=.
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6146 ac_cv_prog_ac_ct_AR="ar"
6147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6148 break 2
6149 fi
6150done
6151done
6152IFS=$as_save_IFS
6153
6154fi
6155fi
6156ac_ct_AR=$ac_cv_prog_ac_ct_AR
6157if test -n "$ac_ct_AR"; then
6158 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6159echo "${ECHO_T}$ac_ct_AR" >&6; }
6160else
6161 { echo "$as_me:$LINENO: result: no" >&5
6162echo "${ECHO_T}no" >&6; }
6163fi
6164
6165 if test "x$ac_ct_AR" = x; then
6166 AR="false"
6167 else
6168 case $cross_compiling:$ac_tool_warned in
6169yes:)
6170{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6171whose name does not start with the host triplet. If you think this
6172configuration is useful to you, please write to autoconf@gnu.org." >&5
6173echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6174whose name does not start with the host triplet. If you think this
6175configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6176ac_tool_warned=yes ;;
6177esac
6178 AR=$ac_ct_AR
6179 fi
6180else
6181 AR="$ac_cv_prog_AR"
6182fi
6183
6184# Extract the first word of "rm", so it can be a program name with args.
6185set dummy rm; ac_word=$2
6186{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6188if test "${ac_cv_path_RM+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6190else
6191 case $RM in
6192 [\\/]* | ?:[\\/]*)
6193 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6194 ;;
6195 *)
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197for as_dir in $PATH
6198do
6199 IFS=$as_save_IFS
6200 test -z "$as_dir" && as_dir=.
6201 for ac_exec_ext in '' $ac_executable_extensions; do
6202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6203 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6205 break 2
6206 fi
6207done
6208done
6209IFS=$as_save_IFS
6210
6211 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6212 ;;
6213esac
6214fi
6215RM=$ac_cv_path_RM
6216if test -n "$RM"; then
6217 { echo "$as_me:$LINENO: result: $RM" >&5
6218echo "${ECHO_T}$RM" >&6; }
6219else
6220 { echo "$as_me:$LINENO: result: no" >&5
6221echo "${ECHO_T}no" >&6; }
6222fi
6223
6224
6225# Extract the first word of "sed", so it can be a program name with args.
6226set dummy sed; ac_word=$2
6227{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6229if test "${ac_cv_path_SED+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6231else
6232 case $SED in
6233 [\\/]* | ?:[\\/]*)
6234 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6235 ;;
6236 *)
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238for as_dir in $PATH
6239do
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6244 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 break 2
6247 fi
6248done
6249done
6250IFS=$as_save_IFS
6251
6252 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6253 ;;
6254esac
6255fi
6256SED=$ac_cv_path_SED
6257if test -n "$SED"; then
6258 { echo "$as_me:$LINENO: result: $SED" >&5
6259echo "${ECHO_T}$SED" >&6; }
6260else
6261 { echo "$as_me:$LINENO: result: no" >&5
6262echo "${ECHO_T}no" >&6; }
6263fi
6264
6265
6266# Extract the first word of "tar", so it can be a program name with args.
6267set dummy tar; ac_word=$2
6268{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270if test "${ac_cv_path_TAR+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6272else
6273 case $TAR in
6274 [\\/]* | ?:[\\/]*)
6275 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6276 ;;
6277 *)
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279for as_dir in $PATH
6280do
6281 IFS=$as_save_IFS
6282 test -z "$as_dir" && as_dir=.
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6285 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6287 break 2
6288 fi
6289done
6290done
6291IFS=$as_save_IFS
6292
6293 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6294 ;;
6295esac
6296fi
6297TAR=$ac_cv_path_TAR
6298if test -n "$TAR"; then
6299 { echo "$as_me:$LINENO: result: $TAR" >&5
6300echo "${ECHO_T}$TAR" >&6; }
6301else
6302 { echo "$as_me:$LINENO: result: no" >&5
6303echo "${ECHO_T}no" >&6; }
6304fi
6305
6306
6307# Extract the first word of "pwd", so it can be a program name with args.
6308set dummy pwd; ac_word=$2
6309{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6311if test "${ac_cv_path_BINPWD+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6313else
6314 case $BINPWD in
6315 [\\/]* | ?:[\\/]*)
6316 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6317 ;;
6318 *)
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320for as_dir in $PATH
6321do
6322 IFS=$as_save_IFS
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6326 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 break 2
6329 fi
6330done
6331done
6332IFS=$as_save_IFS
6333
6334 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6335 ;;
6336esac
6337fi
6338BINPWD=$ac_cv_path_BINPWD
6339if test -n "$BINPWD"; then
6340 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6341echo "${ECHO_T}$BINPWD" >&6; }
6342else
6343 { echo "$as_me:$LINENO: result: no" >&5
6344echo "${ECHO_T}no" >&6; }
6345fi
6346
6347
6348
6349# Extract the first word of "Graphviz", so it can be a program name with args.
6350set dummy Graphviz; ac_word=$2
6351{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6353if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6355else
6356 case $GRAPHVIZ in
6357 [\\/]* | ?:[\\/]*)
6358 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6359 ;;
6360 *)
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362for as_dir in $PATH
6363do
6364 IFS=$as_save_IFS
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6368 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 break 2
6371 fi
6372done
6373done
6374IFS=$as_save_IFS
6375
6376 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6377 ;;
6378esac
6379fi
6380GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6381if test -n "$GRAPHVIZ"; then
6382 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6383echo "${ECHO_T}$GRAPHVIZ" >&6; }
6384else
6385 { echo "$as_me:$LINENO: result: no" >&5
6386echo "${ECHO_T}no" >&6; }
6387fi
6388
6389
6390if test "$GRAPHVIZ" != "echo Graphviz" ; then
6391
6392cat >>confdefs.h <<\_ACEOF
6393#define HAVE_GRAPHVIZ 1
6394_ACEOF
6395
6396 if test "$llvm_cv_os_type" = "MingW" ; then
6397 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6398 fi
6399
6400cat >>confdefs.h <<_ACEOF
6401#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6402_ACEOF
6403
6404fi
6405# Extract the first word of "dot", so it can be a program name with args.
6406set dummy dot; ac_word=$2
6407{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6409if test "${ac_cv_path_DOT+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6411else
6412 case $DOT in
6413 [\\/]* | ?:[\\/]*)
6414 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6415 ;;
6416 *)
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418for as_dir in $PATH
6419do
6420 IFS=$as_save_IFS
6421 test -z "$as_dir" && as_dir=.
6422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6424 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6426 break 2
6427 fi
6428done
6429done
6430IFS=$as_save_IFS
6431
6432 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6433 ;;
6434esac
6435fi
6436DOT=$ac_cv_path_DOT
6437if test -n "$DOT"; then
6438 { echo "$as_me:$LINENO: result: $DOT" >&5
6439echo "${ECHO_T}$DOT" >&6; }
6440else
6441 { echo "$as_me:$LINENO: result: no" >&5
6442echo "${ECHO_T}no" >&6; }
6443fi
6444
6445
6446if test "$DOT" != "echo dot" ; then
6447
6448cat >>confdefs.h <<\_ACEOF
6449#define HAVE_DOT 1
6450_ACEOF
6451
6452 if test "$llvm_cv_os_type" = "MingW" ; then
6453 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6454 fi
6455
6456cat >>confdefs.h <<_ACEOF
6457#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6458_ACEOF
6459
6460fi
6461# Extract the first word of "fdp", so it can be a program name with args.
6462set dummy fdp; ac_word=$2
6463{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6465if test "${ac_cv_path_FDP+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6467else
6468 case $FDP in
6469 [\\/]* | ?:[\\/]*)
6470 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6471 ;;
6472 *)
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474for as_dir in $PATH
6475do
6476 IFS=$as_save_IFS
6477 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6480 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 break 2
6483 fi
6484done
6485done
6486IFS=$as_save_IFS
6487
6488 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6489 ;;
6490esac
6491fi
6492FDP=$ac_cv_path_FDP
6493if test -n "$FDP"; then
6494 { echo "$as_me:$LINENO: result: $FDP" >&5
6495echo "${ECHO_T}$FDP" >&6; }
6496else
6497 { echo "$as_me:$LINENO: result: no" >&5
6498echo "${ECHO_T}no" >&6; }
6499fi
6500
6501
6502if test "$FDP" != "echo fdp" ; then
6503
6504cat >>confdefs.h <<\_ACEOF
6505#define HAVE_FDP 1
6506_ACEOF
6507
6508 if test "$llvm_cv_os_type" = "MingW" ; then
6509 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6510 fi
6511
6512cat >>confdefs.h <<_ACEOF
6513#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6514_ACEOF
6515
6516fi
6517# Extract the first word of "neato", so it can be a program name with args.
6518set dummy neato; ac_word=$2
6519{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6521if test "${ac_cv_path_NEATO+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6523else
6524 case $NEATO in
6525 [\\/]* | ?:[\\/]*)
6526 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6527 ;;
6528 *)
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530for as_dir in $PATH
6531do
6532 IFS=$as_save_IFS
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6536 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 break 2
6539 fi
6540done
6541done
6542IFS=$as_save_IFS
6543
6544 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6545 ;;
6546esac
6547fi
6548NEATO=$ac_cv_path_NEATO
6549if test -n "$NEATO"; then
6550 { echo "$as_me:$LINENO: result: $NEATO" >&5
6551echo "${ECHO_T}$NEATO" >&6; }
6552else
6553 { echo "$as_me:$LINENO: result: no" >&5
6554echo "${ECHO_T}no" >&6; }
6555fi
6556
6557
6558if test "$NEATO" != "echo neato" ; then
6559
6560cat >>confdefs.h <<\_ACEOF
6561#define HAVE_NEATO 1
6562_ACEOF
6563
6564 if test "$llvm_cv_os_type" = "MingW" ; then
6565 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6566 fi
6567
6568cat >>confdefs.h <<_ACEOF
6569#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6570_ACEOF
6571
6572fi
6573# Extract the first word of "twopi", so it can be a program name with args.
6574set dummy twopi; ac_word=$2
6575{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6577if test "${ac_cv_path_TWOPI+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6579else
6580 case $TWOPI in
6581 [\\/]* | ?:[\\/]*)
6582 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6583 ;;
6584 *)
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586for as_dir in $PATH
6587do
6588 IFS=$as_save_IFS
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6592 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 break 2
6595 fi
6596done
6597done
6598IFS=$as_save_IFS
6599
6600 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6601 ;;
6602esac
6603fi
6604TWOPI=$ac_cv_path_TWOPI
6605if test -n "$TWOPI"; then
6606 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6607echo "${ECHO_T}$TWOPI" >&6; }
6608else
6609 { echo "$as_me:$LINENO: result: no" >&5
6610echo "${ECHO_T}no" >&6; }
6611fi
6612
6613
6614if test "$TWOPI" != "echo twopi" ; then
6615
6616cat >>confdefs.h <<\_ACEOF
6617#define HAVE_TWOPI 1
6618_ACEOF
6619
6620 if test "$llvm_cv_os_type" = "MingW" ; then
6621 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6622 fi
6623
6624cat >>confdefs.h <<_ACEOF
6625#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6626_ACEOF
6627
6628fi
6629# Extract the first word of "circo", so it can be a program name with args.
6630set dummy circo; ac_word=$2
6631{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6633if test "${ac_cv_path_CIRCO+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6635else
6636 case $CIRCO in
6637 [\\/]* | ?:[\\/]*)
6638 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6639 ;;
6640 *)
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642for as_dir in $PATH
6643do
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6648 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 break 2
6651 fi
6652done
6653done
6654IFS=$as_save_IFS
6655
6656 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6657 ;;
6658esac
6659fi
6660CIRCO=$ac_cv_path_CIRCO
6661if test -n "$CIRCO"; then
6662 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6663echo "${ECHO_T}$CIRCO" >&6; }
6664else
6665 { echo "$as_me:$LINENO: result: no" >&5
6666echo "${ECHO_T}no" >&6; }
6667fi
6668
6669
6670if test "$CIRCO" != "echo circo" ; then
6671
6672cat >>confdefs.h <<\_ACEOF
6673#define HAVE_CIRCO 1
6674_ACEOF
6675
6676 if test "$llvm_cv_os_type" = "MingW" ; then
6677 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6678 fi
6679
6680cat >>confdefs.h <<_ACEOF
6681#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6682_ACEOF
6683
6684fi
6685for ac_prog in gv gsview32
6686do
6687 # Extract the first word of "$ac_prog", so it can be a program name with args.
6688set dummy $ac_prog; ac_word=$2
6689{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6691if test "${ac_cv_path_GV+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6693else
6694 case $GV in
6695 [\\/]* | ?:[\\/]*)
6696 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6697 ;;
6698 *)
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700for as_dir in $PATH
6701do
6702 IFS=$as_save_IFS
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6706 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 break 2
6709 fi
6710done
6711done
6712IFS=$as_save_IFS
6713
6714 ;;
6715esac
6716fi
6717GV=$ac_cv_path_GV
6718if test -n "$GV"; then
6719 { echo "$as_me:$LINENO: result: $GV" >&5
6720echo "${ECHO_T}$GV" >&6; }
6721else
6722 { echo "$as_me:$LINENO: result: no" >&5
6723echo "${ECHO_T}no" >&6; }
6724fi
6725
6726
6727 test -n "$GV" && break
6728done
6729test -n "$GV" || GV="echo gv"
6730
6731if test "$GV" != "echo gv" ; then
6732
6733cat >>confdefs.h <<\_ACEOF
6734#define HAVE_GV 1
6735_ACEOF
6736
6737 if test "$llvm_cv_os_type" = "MingW" ; then
6738 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6739 fi
6740
6741cat >>confdefs.h <<_ACEOF
6742#define LLVM_PATH_GV "$GV${EXEEXT}"
6743_ACEOF
6744
6745fi
6746# Extract the first word of "dotty", so it can be a program name with args.
6747set dummy dotty; ac_word=$2
6748{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750if test "${ac_cv_path_DOTTY+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6752else
6753 case $DOTTY in
6754 [\\/]* | ?:[\\/]*)
6755 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6756 ;;
6757 *)
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759for as_dir in $PATH
6760do
6761 IFS=$as_save_IFS
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6765 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 break 2
6768 fi
6769done
6770done
6771IFS=$as_save_IFS
6772
6773 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6774 ;;
6775esac
6776fi
6777DOTTY=$ac_cv_path_DOTTY
6778if test -n "$DOTTY"; then
6779 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6780echo "${ECHO_T}$DOTTY" >&6; }
6781else
6782 { echo "$as_me:$LINENO: result: no" >&5
6783echo "${ECHO_T}no" >&6; }
6784fi
6785
6786
6787if test "$DOTTY" != "echo dotty" ; then
6788
6789cat >>confdefs.h <<\_ACEOF
6790#define HAVE_DOTTY 1
6791_ACEOF
6792
6793 if test "$llvm_cv_os_type" = "MingW" ; then
6794 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6795 fi
6796
6797cat >>confdefs.h <<_ACEOF
6798#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6799_ACEOF
6800
6801fi
6802# Extract the first word of "xdot.py", so it can be a program name with args.
6803set dummy xdot.py; ac_word=$2
6804{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6806if test "${ac_cv_path_XDOT_PY+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
6808else
6809 case $XDOT_PY in
6810 [\\/]* | ?:[\\/]*)
6811 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6812 ;;
6813 *)
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815for as_dir in $PATH
6816do
6817 IFS=$as_save_IFS
6818 test -z "$as_dir" && as_dir=.
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6821 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 break 2
6824 fi
6825done
6826done
6827IFS=$as_save_IFS
6828
6829 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6830 ;;
6831esac
6832fi
6833XDOT_PY=$ac_cv_path_XDOT_PY
6834if test -n "$XDOT_PY"; then
6835 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6836echo "${ECHO_T}$XDOT_PY" >&6; }
6837else
6838 { echo "$as_me:$LINENO: result: no" >&5
6839echo "${ECHO_T}no" >&6; }
6840fi
6841
6842
6843if test "$XDOT_PY" != "echo xdot.py" ; then
6844
6845cat >>confdefs.h <<\_ACEOF
6846#define HAVE_XDOT_PY 1
6847_ACEOF
6848
6849 if test "$llvm_cv_os_type" = "MingW" ; then
6850 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6851 fi
6852
6853cat >>confdefs.h <<_ACEOF
6854#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6855_ACEOF
6856
6857fi
6858
6859
6860# Extract the first word of "perl", so it can be a program name with args.
6861set dummy perl; ac_word=$2
6862{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6864if test "${ac_cv_path_PERL+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6866else
6867 case $PERL in
6868 [\\/]* | ?:[\\/]*)
6869 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6870 ;;
6871 *)
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873for as_dir in $PATH
6874do
6875 IFS=$as_save_IFS
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
6878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6879 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 break 2
6882 fi
6883done
6884done
6885IFS=$as_save_IFS
6886
6887 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6888 ;;
6889esac
6890fi
6891PERL=$ac_cv_path_PERL
6892if test -n "$PERL"; then
6893 { echo "$as_me:$LINENO: result: $PERL" >&5
6894echo "${ECHO_T}$PERL" >&6; }
6895else
6896 { echo "$as_me:$LINENO: result: no" >&5
6897echo "${ECHO_T}no" >&6; }
6898fi
6899
6900
6901if test "$PERL" != "none"; then
6902 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6903echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6904 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6905 { echo "$as_me:$LINENO: result: yes" >&5
6906echo "${ECHO_T}yes" >&6; }
6907 else
6908 PERL=none
6909 { echo "$as_me:$LINENO: result: not found" >&5
6910echo "${ECHO_T}not found" >&6; }
6911 fi
6912fi
6913
6914
6915if test x"$PERL" = xnone; then
6916 HAVE_PERL=0
6917
6918 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6919echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6920 { (exit 1); exit 1; }; }
6921else
6922 HAVE_PERL=1
6923
6924fi
6925
6926# Find a good install program. We prefer a C program (faster),
6927# so one script is as good as another. But avoid the broken or
6928# incompatible versions:
6929# SysV /etc/install, /usr/sbin/install
6930# SunOS /usr/etc/install
6931# IRIX /sbin/install
6932# AIX /bin/install
6933# AmigaOS /C/install, which installs bootblocks on floppy discs
6934# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6935# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6936# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6937# OS/2's system install, which has a completely different semantic
6938# ./install, which can be erroneously created by make from ./install.sh.
6939{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6940echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6941if test -z "$INSTALL"; then
6942if test "${ac_cv_path_install+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6944else
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946for as_dir in $PATH
6947do
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
6950 # Account for people who put trailing slashes in PATH elements.
6951case $as_dir/ in
6952 ./ | .// | /cC/* | \
6953 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6954 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6955 /usr/ucb/* ) ;;
6956 *)
6957 # OSF1 and SCO ODT 3.0 have their own names for install.
6958 # Don't use installbsd from OSF since it installs stuff as root
6959 # by default.
6960 for ac_prog in ginstall scoinst install; do
6961 for ac_exec_ext in '' $ac_executable_extensions; do
6962 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6963 if test $ac_prog = install &&
6964 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6965 # AIX install. It has an incompatible calling convention.
6966 :
6967 elif test $ac_prog = install &&
6968 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6969 # program-specific install script used by HP pwplus--don't use.
6970 :
6971 else
6972 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6973 break 3
6974 fi
6975 fi
6976 done
6977 done
6978 ;;
6979esac
6980done
6981IFS=$as_save_IFS
6982
6983
6984fi
6985 if test "${ac_cv_path_install+set}" = set; then
6986 INSTALL=$ac_cv_path_install
6987 else
6988 # As a last resort, use the slow shell script. Don't cache a
6989 # value for INSTALL within a source directory, because that will
6990 # break other packages using the cache if that directory is
6991 # removed, or if the value is a relative name.
6992 INSTALL=$ac_install_sh
6993 fi
6994fi
6995{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6996echo "${ECHO_T}$INSTALL" >&6; }
6997
6998# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6999# It thinks the first close brace ends the variable substitution.
7000test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7001
7002test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7003
7004test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7005
7006case "$INSTALL" in
7007 [\\/$]* | ?:[\\/]* ) ;;
7008 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7009esac
7010
7011# Extract the first word of "bzip2", so it can be a program name with args.
7012set dummy bzip2; ac_word=$2
7013{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7015if test "${ac_cv_path_BZIP2+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7017else
7018 case $BZIP2 in
7019 [\\/]* | ?:[\\/]*)
7020 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7021 ;;
7022 *)
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024for as_dir in $PATH
7025do
7026 IFS=$as_save_IFS
7027 test -z "$as_dir" && as_dir=.
7028 for ac_exec_ext in '' $ac_executable_extensions; do
7029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7030 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 break 2
7033 fi
7034done
7035done
7036IFS=$as_save_IFS
7037
7038 ;;
7039esac
7040fi
7041BZIP2=$ac_cv_path_BZIP2
7042if test -n "$BZIP2"; then
7043 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7044echo "${ECHO_T}$BZIP2" >&6; }
7045else
7046 { echo "$as_me:$LINENO: result: no" >&5
7047echo "${ECHO_T}no" >&6; }
7048fi
7049
7050
7051# Extract the first word of "cat", so it can be a program name with args.
7052set dummy cat; ac_word=$2
7053{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7055if test "${ac_cv_path_CAT+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7057else
7058 case $CAT in
7059 [\\/]* | ?:[\\/]*)
7060 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7061 ;;
7062 *)
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064for as_dir in $PATH
7065do
7066 IFS=$as_save_IFS
7067 test -z "$as_dir" && as_dir=.
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7070 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 break 2
7073 fi
7074done
7075done
7076IFS=$as_save_IFS
7077
7078 ;;
7079esac
7080fi
7081CAT=$ac_cv_path_CAT
7082if test -n "$CAT"; then
7083 { echo "$as_me:$LINENO: result: $CAT" >&5
7084echo "${ECHO_T}$CAT" >&6; }
7085else
7086 { echo "$as_me:$LINENO: result: no" >&5
7087echo "${ECHO_T}no" >&6; }
7088fi
7089
7090
7091# Extract the first word of "doxygen", so it can be a program name with args.
7092set dummy doxygen; ac_word=$2
7093{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7095if test "${ac_cv_path_DOXYGEN+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7097else
7098 case $DOXYGEN in
7099 [\\/]* | ?:[\\/]*)
7100 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7101 ;;
7102 *)
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104for as_dir in $PATH
7105do
7106 IFS=$as_save_IFS
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7110 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7112 break 2
7113 fi
7114done
7115done
7116IFS=$as_save_IFS
7117
7118 ;;
7119esac
7120fi
7121DOXYGEN=$ac_cv_path_DOXYGEN
7122if test -n "$DOXYGEN"; then
7123 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7124echo "${ECHO_T}$DOXYGEN" >&6; }
7125else
7126 { echo "$as_me:$LINENO: result: no" >&5
7127echo "${ECHO_T}no" >&6; }
7128fi
7129
7130
7131# Extract the first word of "groff", so it can be a program name with args.
7132set dummy groff; ac_word=$2
7133{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7135if test "${ac_cv_path_GROFF+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7137else
7138 case $GROFF in
7139 [\\/]* | ?:[\\/]*)
7140 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7141 ;;
7142 *)
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144for as_dir in $PATH
7145do
7146 IFS=$as_save_IFS
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7150 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 break 2
7153 fi
7154done
7155done
7156IFS=$as_save_IFS
7157
7158 ;;
7159esac
7160fi
7161GROFF=$ac_cv_path_GROFF
7162if test -n "$GROFF"; then
7163 { echo "$as_me:$LINENO: result: $GROFF" >&5
7164echo "${ECHO_T}$GROFF" >&6; }
7165else
7166 { echo "$as_me:$LINENO: result: no" >&5
7167echo "${ECHO_T}no" >&6; }
7168fi
7169
7170
7171# Extract the first word of "gzip", so it can be a program name with args.
7172set dummy gzip; ac_word=$2
7173{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7175if test "${ac_cv_path_GZIPBIN+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7177else
7178 case $GZIPBIN in
7179 [\\/]* | ?:[\\/]*)
7180 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7181 ;;
7182 *)
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184for as_dir in $PATH
7185do
7186 IFS=$as_save_IFS
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7190 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 break 2
7193 fi
7194done
7195done
7196IFS=$as_save_IFS
7197
7198 ;;
7199esac
7200fi
7201GZIPBIN=$ac_cv_path_GZIPBIN
7202if test -n "$GZIPBIN"; then
7203 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7204echo "${ECHO_T}$GZIPBIN" >&6; }
7205else
7206 { echo "$as_me:$LINENO: result: no" >&5
7207echo "${ECHO_T}no" >&6; }
7208fi
7209
7210
7211# Extract the first word of "pod2html", so it can be a program name with args.
7212set dummy pod2html; ac_word=$2
7213{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7215if test "${ac_cv_path_POD2HTML+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7217else
7218 case $POD2HTML in
7219 [\\/]* | ?:[\\/]*)
7220 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7221 ;;
7222 *)
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224for as_dir in $PATH
7225do
7226 IFS=$as_save_IFS
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7230 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 break 2
7233 fi
7234done
7235done
7236IFS=$as_save_IFS
7237
7238 ;;
7239esac
7240fi
7241POD2HTML=$ac_cv_path_POD2HTML
7242if test -n "$POD2HTML"; then
7243 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7244echo "${ECHO_T}$POD2HTML" >&6; }
7245else
7246 { echo "$as_me:$LINENO: result: no" >&5
7247echo "${ECHO_T}no" >&6; }
7248fi
7249
7250
7251# Extract the first word of "pod2man", so it can be a program name with args.
7252set dummy pod2man; ac_word=$2
7253{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7255if test "${ac_cv_path_POD2MAN+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7257else
7258 case $POD2MAN in
7259 [\\/]* | ?:[\\/]*)
7260 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7261 ;;
7262 *)
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264for as_dir in $PATH
7265do
7266 IFS=$as_save_IFS
7267 test -z "$as_dir" && as_dir=.
7268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7270 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7272 break 2
7273 fi
7274done
7275done
7276IFS=$as_save_IFS
7277
7278 ;;
7279esac
7280fi
7281POD2MAN=$ac_cv_path_POD2MAN
7282if test -n "$POD2MAN"; then
7283 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7284echo "${ECHO_T}$POD2MAN" >&6; }
7285else
7286 { echo "$as_me:$LINENO: result: no" >&5
7287echo "${ECHO_T}no" >&6; }
7288fi
7289
7290
7291# Extract the first word of "pdfroff", so it can be a program name with args.
7292set dummy pdfroff; ac_word=$2
7293{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7295if test "${ac_cv_path_PDFROFF+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7297else
7298 case $PDFROFF in
7299 [\\/]* | ?:[\\/]*)
7300 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7301 ;;
7302 *)
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304for as_dir in $PATH
7305do
7306 IFS=$as_save_IFS
7307 test -z "$as_dir" && as_dir=.
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7310 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 break 2
7313 fi
7314done
7315done
7316IFS=$as_save_IFS
7317
7318 ;;
7319esac
7320fi
7321PDFROFF=$ac_cv_path_PDFROFF
7322if test -n "$PDFROFF"; then
7323 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7324echo "${ECHO_T}$PDFROFF" >&6; }
7325else
7326 { echo "$as_me:$LINENO: result: no" >&5
7327echo "${ECHO_T}no" >&6; }
7328fi
7329
7330
7331# Extract the first word of "runtest", so it can be a program name with args.
7332set dummy runtest; ac_word=$2
7333{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7335if test "${ac_cv_path_RUNTEST+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7337else
7338 case $RUNTEST in
7339 [\\/]* | ?:[\\/]*)
7340 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7341 ;;
7342 *)
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344for as_dir in $PATH
7345do
7346 IFS=$as_save_IFS
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7350 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 break 2
7353 fi
7354done
7355done
7356IFS=$as_save_IFS
7357
7358 ;;
7359esac
7360fi
7361RUNTEST=$ac_cv_path_RUNTEST
7362if test -n "$RUNTEST"; then
7363 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7364echo "${ECHO_T}$RUNTEST" >&6; }
7365else
7366 { echo "$as_me:$LINENO: result: no" >&5
7367echo "${ECHO_T}no" >&6; }
7368fi
7369
7370
7371
7372no_itcl=true
7373{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7374echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7375
7376# Check whether --with-tclinclude was given.
7377if test "${with_tclinclude+set}" = set; then
7378 withval=$with_tclinclude; with_tclinclude=${withval}
7379else
7380 with_tclinclude=''
7381fi
7382
7383if test "${ac_cv_path_tclsh+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7385else
7386
7387if test x"${with_tclinclude}" != x ; then
7388 if test -f ${with_tclinclude}/tclsh ; then
7389 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7390 elif test -f ${with_tclinclude}/src/tclsh ; then
7391 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7392 else
7393 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7394echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7395 { (exit 1); exit 1; }; }
7396 fi
7397fi
7398fi
7399
7400
7401if test x"${ac_cv_path_tclsh}" = x ; then
7402 { echo "$as_me:$LINENO: result: none" >&5
7403echo "${ECHO_T}none" >&6; }
7404 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7405do
7406 # Extract the first word of "$ac_prog", so it can be a program name with args.
7407set dummy $ac_prog; ac_word=$2
7408{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7410if test "${ac_cv_path_TCLSH+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7412else
7413 case $TCLSH in
7414 [\\/]* | ?:[\\/]*)
7415 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7416 ;;
7417 *)
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419for as_dir in $PATH
7420do
7421 IFS=$as_save_IFS
7422 test -z "$as_dir" && as_dir=.
7423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7425 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7427 break 2
7428 fi
7429done
7430done
7431IFS=$as_save_IFS
7432
7433 ;;
7434esac
7435fi
7436TCLSH=$ac_cv_path_TCLSH
7437if test -n "$TCLSH"; then
7438 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7439echo "${ECHO_T}$TCLSH" >&6; }
7440else
7441 { echo "$as_me:$LINENO: result: no" >&5
7442echo "${ECHO_T}no" >&6; }
7443fi
7444
7445
7446 test -n "$TCLSH" && break
7447done
7448
7449 if test x"${TCLSH}" = x ; then
7450 ac_cv_path_tclsh='';
7451 else
7452 ac_cv_path_tclsh="${TCLSH}";
7453 fi
7454else
7455 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7456echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7457 TCLSH="${ac_cv_path_tclsh}"
7458
7459fi
7460
7461# Extract the first word of "zip", so it can be a program name with args.
7462set dummy zip; ac_word=$2
7463{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7465if test "${ac_cv_path_ZIP+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7467else
7468 case $ZIP in
7469 [\\/]* | ?:[\\/]*)
7470 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7471 ;;
7472 *)
7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474for as_dir in $PATH
7475do
7476 IFS=$as_save_IFS
7477 test -z "$as_dir" && as_dir=.
7478 for ac_exec_ext in '' $ac_executable_extensions; do
7479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7480 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 break 2
7483 fi
7484done
7485done
7486IFS=$as_save_IFS
7487
7488 ;;
7489esac
7490fi
7491ZIP=$ac_cv_path_ZIP
7492if test -n "$ZIP"; then
7493 { echo "$as_me:$LINENO: result: $ZIP" >&5
7494echo "${ECHO_T}$ZIP" >&6; }
7495else
7496 { echo "$as_me:$LINENO: result: no" >&5
7497echo "${ECHO_T}no" >&6; }
7498fi
7499
7500
7501for ac_prog in ocamlc
7502do
7503 # Extract the first word of "$ac_prog", so it can be a program name with args.
7504set dummy $ac_prog; ac_word=$2
7505{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7507if test "${ac_cv_path_OCAMLC+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509else
7510 case $OCAMLC in
7511 [\\/]* | ?:[\\/]*)
7512 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7513 ;;
7514 *)
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516for as_dir in $PATH
7517do
7518 IFS=$as_save_IFS
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7522 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 break 2
7525 fi
7526done
7527done
7528IFS=$as_save_IFS
7529
7530 ;;
7531esac
7532fi
7533OCAMLC=$ac_cv_path_OCAMLC
7534if test -n "$OCAMLC"; then
7535 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7536echo "${ECHO_T}$OCAMLC" >&6; }
7537else
7538 { echo "$as_me:$LINENO: result: no" >&5
7539echo "${ECHO_T}no" >&6; }
7540fi
7541
7542
7543 test -n "$OCAMLC" && break
7544done
7545
7546for ac_prog in ocamlopt
7547do
7548 # Extract the first word of "$ac_prog", so it can be a program name with args.
7549set dummy $ac_prog; ac_word=$2
7550{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7552if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7554else
7555 case $OCAMLOPT in
7556 [\\/]* | ?:[\\/]*)
7557 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7558 ;;
7559 *)
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561for as_dir in $PATH
7562do
7563 IFS=$as_save_IFS
7564 test -z "$as_dir" && as_dir=.
7565 for ac_exec_ext in '' $ac_executable_extensions; do
7566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7567 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 break 2
7570 fi
7571done
7572done
7573IFS=$as_save_IFS
7574
7575 ;;
7576esac
7577fi
7578OCAMLOPT=$ac_cv_path_OCAMLOPT
7579if test -n "$OCAMLOPT"; then
7580 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7581echo "${ECHO_T}$OCAMLOPT" >&6; }
7582else
7583 { echo "$as_me:$LINENO: result: no" >&5
7584echo "${ECHO_T}no" >&6; }
7585fi
7586
7587
7588 test -n "$OCAMLOPT" && break
7589done
7590
7591for ac_prog in ocamldep
7592do
7593 # Extract the first word of "$ac_prog", so it can be a program name with args.
7594set dummy $ac_prog; ac_word=$2
7595{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7597if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7599else
7600 case $OCAMLDEP in
7601 [\\/]* | ?:[\\/]*)
7602 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7603 ;;
7604 *)
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606for as_dir in $PATH
7607do
7608 IFS=$as_save_IFS
7609 test -z "$as_dir" && as_dir=.
7610 for ac_exec_ext in '' $ac_executable_extensions; do
7611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7612 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7614 break 2
7615 fi
7616done
7617done
7618IFS=$as_save_IFS
7619
7620 ;;
7621esac
7622fi
7623OCAMLDEP=$ac_cv_path_OCAMLDEP
7624if test -n "$OCAMLDEP"; then
7625 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7626echo "${ECHO_T}$OCAMLDEP" >&6; }
7627else
7628 { echo "$as_me:$LINENO: result: no" >&5
7629echo "${ECHO_T}no" >&6; }
7630fi
7631
7632
7633 test -n "$OCAMLDEP" && break
7634done
7635
7636for ac_prog in ocamldoc
7637do
7638 # Extract the first word of "$ac_prog", so it can be a program name with args.
7639set dummy $ac_prog; ac_word=$2
7640{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7642if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7643 echo $ECHO_N "(cached) $ECHO_C" >&6
7644else
7645 case $OCAMLDOC in
7646 [\\/]* | ?:[\\/]*)
7647 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7648 ;;
7649 *)
7650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651for as_dir in $PATH
7652do
7653 IFS=$as_save_IFS
7654 test -z "$as_dir" && as_dir=.
7655 for ac_exec_ext in '' $ac_executable_extensions; do
7656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7657 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7659 break 2
7660 fi
7661done
7662done
7663IFS=$as_save_IFS
7664
7665 ;;
7666esac
7667fi
7668OCAMLDOC=$ac_cv_path_OCAMLDOC
7669if test -n "$OCAMLDOC"; then
7670 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7671echo "${ECHO_T}$OCAMLDOC" >&6; }
7672else
7673 { echo "$as_me:$LINENO: result: no" >&5
7674echo "${ECHO_T}no" >&6; }
7675fi
7676
7677
7678 test -n "$OCAMLDOC" && break
7679done
7680
7681for ac_prog in gas as
7682do
7683 # Extract the first word of "$ac_prog", so it can be a program name with args.
7684set dummy $ac_prog; ac_word=$2
7685{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7687if test "${ac_cv_path_GAS+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7689else
7690 case $GAS in
7691 [\\/]* | ?:[\\/]*)
7692 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7693 ;;
7694 *)
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696for as_dir in $PATH
7697do
7698 IFS=$as_save_IFS
7699 test -z "$as_dir" && as_dir=.
7700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7702 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7704 break 2
7705 fi
7706done
7707done
7708IFS=$as_save_IFS
7709
7710 ;;
7711esac
7712fi
7713GAS=$ac_cv_path_GAS
7714if test -n "$GAS"; then
7715 { echo "$as_me:$LINENO: result: $GAS" >&5
7716echo "${ECHO_T}$GAS" >&6; }
7717else
7718 { echo "$as_me:$LINENO: result: no" >&5
7719echo "${ECHO_T}no" >&6; }
7720fi
7721
7722
7723 test -n "$GAS" && break
7724done
7725
7726
7727{ echo "$as_me:$LINENO: checking for linker version" >&5
7728echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7729if test "${llvm_cv_link_version+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7731else
7732
7733 version_string="$(ld -v 2>&1 | head -1)"
7734
7735 # Check for ld64.
7736 if (echo "$version_string" | grep -q "ld64"); then
7737 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7738 else
7739 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7740 fi
7741
7742fi
7743{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7744echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7745
7746cat >>confdefs.h <<_ACEOF
7747#define HOST_LINK_VERSION "$llvm_cv_link_version"
7748_ACEOF
7749
7750
7751
7752{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7753echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7754if test "${llvm_cv_link_use_r+set}" = set; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7756else
7757 ac_ext=c
7758ac_cpp='$CPP $CPPFLAGS'
7759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761ac_compiler_gnu=$ac_cv_c_compiler_gnu
7762
7763 oldcflags="$CFLAGS"
7764 CFLAGS="$CFLAGS -Wl,-R."
7765 cat >conftest.$ac_ext <<_ACEOF
7766/* confdefs.h. */
7767_ACEOF
7768cat confdefs.h >>conftest.$ac_ext
7769cat >>conftest.$ac_ext <<_ACEOF
7770/* end confdefs.h. */
7771
7772int
7773main ()
7774{
7775
7776 ;
7777 return 0;
7778}
7779_ACEOF
7780rm -f conftest.$ac_objext conftest$ac_exeext
7781if { (ac_try="$ac_link"
7782case "(($ac_try" in
7783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784 *) ac_try_echo=$ac_try;;
7785esac
7786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7787 (eval "$ac_link") 2>conftest.er1
7788 ac_status=$?
7789 grep -v '^ *+' conftest.er1 >conftest.err
7790 rm -f conftest.er1
7791 cat conftest.err >&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } &&
7794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7795 { (case "(($ac_try" in
7796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797 *) ac_try_echo=$ac_try;;
7798esac
7799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7800 (eval "$ac_try") 2>&5
7801 ac_status=$?
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; } &&
7804 { ac_try='test -s conftest$ac_exeext'
7805 { (case "(($ac_try" in
7806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7807 *) ac_try_echo=$ac_try;;
7808esac
7809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7810 (eval "$ac_try") 2>&5
7811 ac_status=$?
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); }; }; then
7814 llvm_cv_link_use_r=yes
7815else
7816 echo "$as_me: failed program was:" >&5
7817sed 's/^/| /' conftest.$ac_ext >&5
7818
7819 llvm_cv_link_use_r=no
7820fi
7821
7822rm -f core conftest.err conftest.$ac_objext \
7823 conftest$ac_exeext conftest.$ac_ext
7824 CFLAGS="$oldcflags"
7825 ac_ext=c
7826ac_cpp='$CPP $CPPFLAGS'
7827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7829ac_compiler_gnu=$ac_cv_c_compiler_gnu
7830
7831
7832fi
7833{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7834echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7835if test "$llvm_cv_link_use_r" = yes ; then
7836
7837cat >>confdefs.h <<\_ACEOF
7838#define HAVE_LINK_R 1
7839_ACEOF
7840
7841 fi
7842
7843
7844{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7845echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7846if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7847 echo $ECHO_N "(cached) $ECHO_C" >&6
7848else
7849 ac_ext=c
7850ac_cpp='$CPP $CPPFLAGS'
7851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7853ac_compiler_gnu=$ac_cv_c_compiler_gnu
7854
7855 oldcflags="$CFLAGS"
7856 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7857 cat >conftest.$ac_ext <<_ACEOF
7858/* confdefs.h. */
7859_ACEOF
7860cat confdefs.h >>conftest.$ac_ext
7861cat >>conftest.$ac_ext <<_ACEOF
7862/* end confdefs.h. */
7863
7864int
7865main ()
7866{
7867
7868 ;
7869 return 0;
7870}
7871_ACEOF
7872rm -f conftest.$ac_objext conftest$ac_exeext
7873if { (ac_try="$ac_link"
7874case "(($ac_try" in
7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7877esac
7878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879 (eval "$ac_link") 2>conftest.er1
7880 ac_status=$?
7881 grep -v '^ *+' conftest.er1 >conftest.err
7882 rm -f conftest.er1
7883 cat conftest.err >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } &&
7886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7887 { (case "(($ac_try" in
7888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7889 *) ac_try_echo=$ac_try;;
7890esac
7891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7892 (eval "$ac_try") 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; } &&
7896 { ac_try='test -s conftest$ac_exeext'
7897 { (case "(($ac_try" in
7898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899 *) ac_try_echo=$ac_try;;
7900esac
7901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7902 (eval "$ac_try") 2>&5
7903 ac_status=$?
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); }; }; then
7906 llvm_cv_link_use_export_dynamic=yes
7907else
7908 echo "$as_me: failed program was:" >&5
7909sed 's/^/| /' conftest.$ac_ext >&5
7910
7911 llvm_cv_link_use_export_dynamic=no
7912fi
7913
7914rm -f core conftest.err conftest.$ac_objext \
7915 conftest$ac_exeext conftest.$ac_ext
7916 CFLAGS="$oldcflags"
7917 ac_ext=c
7918ac_cpp='$CPP $CPPFLAGS'
7919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7921ac_compiler_gnu=$ac_cv_c_compiler_gnu
7922
7923
7924fi
7925{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7926echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7927if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7928
7929cat >>confdefs.h <<\_ACEOF
7930#define HAVE_LINK_EXPORT_DYNAMIC 1
7931_ACEOF
7932
7933 fi
7934
7935
7936{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7937echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7938if test "${llvm_cv_link_use_version_script+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7940else
7941 ac_ext=c
7942ac_cpp='$CPP $CPPFLAGS'
7943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7945ac_compiler_gnu=$ac_cv_c_compiler_gnu
7946
7947 oldcflags="$CFLAGS"
7948
7949 # The following code is from the autoconf manual,
7950 # "11.13: Limitations of Usual Tools".
7951 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7952 # Use mktemp if possible; otherwise fall back on mkdir,
7953 # with $RANDOM to make collisions less likely.
7954 : ${TMPDIR=/tmp}
7955 {
7956 tmp=`
7957 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7958 ` &&
7959 test -n "$tmp" && test -d "$tmp"
7960 } || {
7961 tmp=$TMPDIR/foo$$-$RANDOM
7962 (umask 077 && mkdir "$tmp")
7963 } || exit $?
7964
7965 echo "{" > "$tmp/export.map"
7966 echo " global: main;" >> "$tmp/export.map"
7967 echo " local: *;" >> "$tmp/export.map"
7968 echo "};" >> "$tmp/export.map"
7969
7970 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7971 cat >conftest.$ac_ext <<_ACEOF
7972/* confdefs.h. */
7973_ACEOF
7974cat confdefs.h >>conftest.$ac_ext
7975cat >>conftest.$ac_ext <<_ACEOF
7976/* end confdefs.h. */
7977
7978int
7979main ()
7980{
7981
7982 ;
7983 return 0;
7984}
7985_ACEOF
7986rm -f conftest.$ac_objext conftest$ac_exeext
7987if { (ac_try="$ac_link"
7988case "(($ac_try" in
7989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990 *) ac_try_echo=$ac_try;;
7991esac
7992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993 (eval "$ac_link") 2>conftest.er1
7994 ac_status=$?
7995 grep -v '^ *+' conftest.er1 >conftest.err
7996 rm -f conftest.er1
7997 cat conftest.err >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } &&
8000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8001 { (case "(($ac_try" in
8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8004esac
8005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006 (eval "$ac_try") 2>&5
8007 ac_status=$?
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; } &&
8010 { ac_try='test -s conftest$ac_exeext'
8011 { (case "(($ac_try" in
8012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013 *) ac_try_echo=$ac_try;;
8014esac
8015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016 (eval "$ac_try") 2>&5
8017 ac_status=$?
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8020 llvm_cv_link_use_version_script=yes
8021else
8022 echo "$as_me: failed program was:" >&5
8023sed 's/^/| /' conftest.$ac_ext >&5
8024
8025 llvm_cv_link_use_version_script=no
8026fi
8027
8028rm -f core conftest.err conftest.$ac_objext \
8029 conftest$ac_exeext conftest.$ac_ext
8030 rm "$tmp/export.map"
8031 rmdir "$tmp"
8032 CFLAGS="$oldcflags"
8033 ac_ext=c
8034ac_cpp='$CPP $CPPFLAGS'
8035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8037ac_compiler_gnu=$ac_cv_c_compiler_gnu
8038
8039
8040fi
8041{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8042echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8043if test "$llvm_cv_link_use_version_script" = yes ; then
8044 HAVE_LINK_VERSION_SCRIPT=1
8045
8046 fi
8047
8048
8049
8050
8051{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8052echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8053if test "${ac_cv_c_const+set}" = set; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8055else
8056 cat >conftest.$ac_ext <<_ACEOF
8057/* confdefs.h. */
8058_ACEOF
8059cat confdefs.h >>conftest.$ac_ext
8060cat >>conftest.$ac_ext <<_ACEOF
8061/* end confdefs.h. */
8062
8063int
8064main ()
8065{
8066/* FIXME: Include the comments suggested by Paul. */
8067#ifndef __cplusplus
8068 /* Ultrix mips cc rejects this. */
8069 typedef int charset[2];
8070 const charset x;
8071 /* SunOS 4.1.1 cc rejects this. */
8072 char const *const *ccp;
8073 char **p;
8074 /* NEC SVR4.0.2 mips cc rejects this. */
8075 struct point {int x, y;};
8076 static struct point const zero = {0,0};
8077 /* AIX XL C 1.02.0.0 rejects this.
8078 It does not let you subtract one const X* pointer from another in
8079 an arm of an if-expression whose if-part is not a constant
8080 expression */
8081 const char *g = "string";
8082 ccp = &g + (g ? g-g : 0);
8083 /* HPUX 7.0 cc rejects these. */
8084 ++ccp;
8085 p = (char**) ccp;
8086 ccp = (char const *const *) p;
8087 { /* SCO 3.2v4 cc rejects this. */
8088 char *t;
8089 char const *s = 0 ? (char *) 0 : (char const *) 0;
8090
8091 *t++ = 0;
8092 if (s) return 0;
8093 }
8094 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8095 int x[] = {25, 17};
8096 const int *foo = &x[0];
8097 ++foo;
8098 }
8099 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8100 typedef const int *iptr;
8101 iptr p = 0;
8102 ++p;
8103 }
8104 { /* AIX XL C 1.02.0.0 rejects this saying
8105 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8106 struct s { int j; const int *ap[3]; };
8107 struct s *b; b->j = 5;
8108 }
8109 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8110 const int foo = 10;
8111 if (!foo) return 0;
8112 }
8113 return !x[0] && !zero.x;
8114#endif
8115
8116 ;
8117 return 0;
8118}
8119_ACEOF
8120rm -f conftest.$ac_objext
8121if { (ac_try="$ac_compile"
8122case "(($ac_try" in
8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8125esac
8126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127 (eval "$ac_compile") 2>conftest.er1
8128 ac_status=$?
8129 grep -v '^ *+' conftest.er1 >conftest.err
8130 rm -f conftest.er1
8131 cat conftest.err >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } &&
8134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8135 { (case "(($ac_try" in
8136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8137 *) ac_try_echo=$ac_try;;
8138esac
8139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8140 (eval "$ac_try") 2>&5
8141 ac_status=$?
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; } &&
8144 { ac_try='test -s conftest.$ac_objext'
8145 { (case "(($ac_try" in
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8148esac
8149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_try") 2>&5
8151 ac_status=$?
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }; }; then
8154 ac_cv_c_const=yes
8155else
8156 echo "$as_me: failed program was:" >&5
8157sed 's/^/| /' conftest.$ac_ext >&5
8158
8159 ac_cv_c_const=no
8160fi
8161
8162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8163fi
8164{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8165echo "${ECHO_T}$ac_cv_c_const" >&6; }
8166if test $ac_cv_c_const = no; then
8167
8168cat >>confdefs.h <<\_ACEOF
8169#define const
8170_ACEOF
8171
8172fi
8173
8174
8175
8176
8177
8178
8179ac_header_dirent=no
8180for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8181 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8182{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8183echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8184if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8186else
8187 cat >conftest.$ac_ext <<_ACEOF
8188/* confdefs.h. */
8189_ACEOF
8190cat confdefs.h >>conftest.$ac_ext
8191cat >>conftest.$ac_ext <<_ACEOF
8192/* end confdefs.h. */
8193#include <sys/types.h>
8194#include <$ac_hdr>
8195
8196int
8197main ()
8198{
8199if ((DIR *) 0)
8200return 0;
8201 ;
8202 return 0;
8203}
8204_ACEOF
8205rm -f conftest.$ac_objext
8206if { (ac_try="$ac_compile"
8207case "(($ac_try" in
8208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209 *) ac_try_echo=$ac_try;;
8210esac
8211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212 (eval "$ac_compile") 2>conftest.er1
8213 ac_status=$?
8214 grep -v '^ *+' conftest.er1 >conftest.err
8215 rm -f conftest.er1
8216 cat conftest.err >&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); } &&
8219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8220 { (case "(($ac_try" in
8221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222 *) ac_try_echo=$ac_try;;
8223esac
8224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8225 (eval "$ac_try") 2>&5
8226 ac_status=$?
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; } &&
8229 { ac_try='test -s conftest.$ac_objext'
8230 { (case "(($ac_try" in
8231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8233esac
8234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235 (eval "$ac_try") 2>&5
8236 ac_status=$?
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); }; }; then
8239 eval "$as_ac_Header=yes"
8240else
8241 echo "$as_me: failed program was:" >&5
8242sed 's/^/| /' conftest.$ac_ext >&5
8243
8244 eval "$as_ac_Header=no"
8245fi
8246
8247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8248fi
8249ac_res=`eval echo '${'$as_ac_Header'}'`
8250 { echo "$as_me:$LINENO: result: $ac_res" >&5
8251echo "${ECHO_T}$ac_res" >&6; }
8252if test `eval echo '${'$as_ac_Header'}'` = yes; then
8253 cat >>confdefs.h <<_ACEOF
8254#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8255_ACEOF
8256
8257ac_header_dirent=$ac_hdr; break
8258fi
8259
8260done
8261# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8262if test $ac_header_dirent = dirent.h; then
8263 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8264echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8265if test "${ac_cv_search_opendir+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8267else
8268 ac_func_search_save_LIBS=$LIBS
8269cat >conftest.$ac_ext <<_ACEOF
8270/* confdefs.h. */
8271_ACEOF
8272cat confdefs.h >>conftest.$ac_ext
8273cat >>conftest.$ac_ext <<_ACEOF
8274/* end confdefs.h. */
8275
8276/* Override any GCC internal prototype to avoid an error.
8277 Use char because int might match the return type of a GCC
8278 builtin and then its argument prototype would still apply. */
8279#ifdef __cplusplus
8280extern "C"
8281#endif
8282char opendir ();
8283int
8284main ()
8285{
8286return opendir ();
8287 ;
8288 return 0;
8289}
8290_ACEOF
8291for ac_lib in '' dir; do
8292 if test -z "$ac_lib"; then
8293 ac_res="none required"
8294 else
8295 ac_res=-l$ac_lib
8296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8297 fi
8298 rm -f conftest.$ac_objext conftest$ac_exeext
8299if { (ac_try="$ac_link"
8300case "(($ac_try" in
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8303esac
8304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_link") 2>conftest.er1
8306 ac_status=$?
8307 grep -v '^ *+' conftest.er1 >conftest.err
8308 rm -f conftest.er1
8309 cat conftest.err >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } &&
8312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8313 { (case "(($ac_try" in
8314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315 *) ac_try_echo=$ac_try;;
8316esac
8317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318 (eval "$ac_try") 2>&5
8319 ac_status=$?
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; } &&
8322 { ac_try='test -s conftest$ac_exeext'
8323 { (case "(($ac_try" in
8324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8325 *) ac_try_echo=$ac_try;;
8326esac
8327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8328 (eval "$ac_try") 2>&5
8329 ac_status=$?
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; }; then
8332 ac_cv_search_opendir=$ac_res
8333else
8334 echo "$as_me: failed program was:" >&5
8335sed 's/^/| /' conftest.$ac_ext >&5
8336
8337
8338fi
8339
8340rm -f core conftest.err conftest.$ac_objext \
8341 conftest$ac_exeext
8342 if test "${ac_cv_search_opendir+set}" = set; then
8343 break
8344fi
8345done
8346if test "${ac_cv_search_opendir+set}" = set; then
8347 :
8348else
8349 ac_cv_search_opendir=no
8350fi
8351rm conftest.$ac_ext
8352LIBS=$ac_func_search_save_LIBS
8353fi
8354{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8355echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8356ac_res=$ac_cv_search_opendir
8357if test "$ac_res" != no; then
8358 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8359
8360fi
8361
8362else
8363 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8364echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8365if test "${ac_cv_search_opendir+set}" = set; then
8366 echo $ECHO_N "(cached) $ECHO_C" >&6
8367else
8368 ac_func_search_save_LIBS=$LIBS
8369cat >conftest.$ac_ext <<_ACEOF
8370/* confdefs.h. */
8371_ACEOF
8372cat confdefs.h >>conftest.$ac_ext
8373cat >>conftest.$ac_ext <<_ACEOF
8374/* end confdefs.h. */
8375
8376/* Override any GCC internal prototype to avoid an error.
8377 Use char because int might match the return type of a GCC
8378 builtin and then its argument prototype would still apply. */
8379#ifdef __cplusplus
8380extern "C"
8381#endif
8382char opendir ();
8383int
8384main ()
8385{
8386return opendir ();
8387 ;
8388 return 0;
8389}
8390_ACEOF
8391for ac_lib in '' x; do
8392 if test -z "$ac_lib"; then
8393 ac_res="none required"
8394 else
8395 ac_res=-l$ac_lib
8396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8397 fi
8398 rm -f conftest.$ac_objext conftest$ac_exeext
8399if { (ac_try="$ac_link"
8400case "(($ac_try" in
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8403esac
8404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_link") 2>conftest.er1
8406 ac_status=$?
8407 grep -v '^ *+' conftest.er1 >conftest.err
8408 rm -f conftest.er1
8409 cat conftest.err >&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); } &&
8412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8413 { (case "(($ac_try" in
8414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415 *) ac_try_echo=$ac_try;;
8416esac
8417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418 (eval "$ac_try") 2>&5
8419 ac_status=$?
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; } &&
8422 { ac_try='test -s conftest$ac_exeext'
8423 { (case "(($ac_try" in
8424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8425 *) ac_try_echo=$ac_try;;
8426esac
8427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8428 (eval "$ac_try") 2>&5
8429 ac_status=$?
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); }; }; then
8432 ac_cv_search_opendir=$ac_res
8433else
8434 echo "$as_me: failed program was:" >&5
8435sed 's/^/| /' conftest.$ac_ext >&5
8436
8437
8438fi
8439
8440rm -f core conftest.err conftest.$ac_objext \
8441 conftest$ac_exeext
8442 if test "${ac_cv_search_opendir+set}" = set; then
8443 break
8444fi
8445done
8446if test "${ac_cv_search_opendir+set}" = set; then
8447 :
8448else
8449 ac_cv_search_opendir=no
8450fi
8451rm conftest.$ac_ext
8452LIBS=$ac_func_search_save_LIBS
8453fi
8454{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8455echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8456ac_res=$ac_cv_search_opendir
8457if test "$ac_res" != no; then
8458 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8459
8460fi
8461
8462fi
8463
8464
8465for ac_header in dlfcn.h
8466do
8467as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8471if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8473fi
8474ac_res=`eval echo '${'$as_ac_Header'}'`
8475 { echo "$as_me:$LINENO: result: $ac_res" >&5
8476echo "${ECHO_T}$ac_res" >&6; }
8477else
8478 # Is the header compilable?
8479{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8480echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8481cat >conftest.$ac_ext <<_ACEOF
8482/* confdefs.h. */
8483_ACEOF
8484cat confdefs.h >>conftest.$ac_ext
8485cat >>conftest.$ac_ext <<_ACEOF
8486/* end confdefs.h. */
8487$ac_includes_default
8488#include <$ac_header>
8489_ACEOF
8490rm -f conftest.$ac_objext
8491if { (ac_try="$ac_compile"
8492case "(($ac_try" in
8493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494 *) ac_try_echo=$ac_try;;
8495esac
8496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8497 (eval "$ac_compile") 2>conftest.er1
8498 ac_status=$?
8499 grep -v '^ *+' conftest.er1 >conftest.err
8500 rm -f conftest.er1
8501 cat conftest.err >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } &&
8504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8505 { (case "(($ac_try" in
8506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507 *) ac_try_echo=$ac_try;;
8508esac
8509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510 (eval "$ac_try") 2>&5
8511 ac_status=$?
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; } &&
8514 { ac_try='test -s conftest.$ac_objext'
8515 { (case "(($ac_try" in
8516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517 *) ac_try_echo=$ac_try;;
8518esac
8519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520 (eval "$ac_try") 2>&5
8521 ac_status=$?
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); }; }; then
8524 ac_header_compiler=yes
8525else
8526 echo "$as_me: failed program was:" >&5
8527sed 's/^/| /' conftest.$ac_ext >&5
8528
8529 ac_header_compiler=no
8530fi
8531
8532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8533{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8534echo "${ECHO_T}$ac_header_compiler" >&6; }
8535
8536# Is the header present?
8537{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8538echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8539cat >conftest.$ac_ext <<_ACEOF
8540/* confdefs.h. */
8541_ACEOF
8542cat confdefs.h >>conftest.$ac_ext
8543cat >>conftest.$ac_ext <<_ACEOF
8544/* end confdefs.h. */
8545#include <$ac_header>
8546_ACEOF
8547if { (ac_try="$ac_cpp conftest.$ac_ext"
8548case "(($ac_try" in
8549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550 *) ac_try_echo=$ac_try;;
8551esac
8552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8554 ac_status=$?
8555 grep -v '^ *+' conftest.er1 >conftest.err
8556 rm -f conftest.er1
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } >/dev/null; then
8560 if test -s conftest.err; then
8561 ac_cpp_err=$ac_c_preproc_warn_flag
8562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8563 else
8564 ac_cpp_err=
8565 fi
8566else
8567 ac_cpp_err=yes
8568fi
8569if test -z "$ac_cpp_err"; then
8570 ac_header_preproc=yes
8571else
8572 echo "$as_me: failed program was:" >&5
8573sed 's/^/| /' conftest.$ac_ext >&5
8574
8575 ac_header_preproc=no
8576fi
8577
8578rm -f conftest.err conftest.$ac_ext
8579{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8580echo "${ECHO_T}$ac_header_preproc" >&6; }
8581
8582# So? What about this header?
8583case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8584 yes:no: )
8585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8586echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8588echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8589 ac_header_preproc=yes
8590 ;;
8591 no:yes:* )
8592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8593echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8595echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8597echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8599echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8601echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8603echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8604 ( cat <<\_ASBOX
8605## ------------------------------ ##
8606## Report this to bugs@yourdomain ##
8607## ------------------------------ ##
8608_ASBOX
8609 ) | sed "s/^/$as_me: WARNING: /" >&2
8610 ;;
8611esac
8612{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8615 echo $ECHO_N "(cached) $ECHO_C" >&6
8616else
8617 eval "$as_ac_Header=\$ac_header_preproc"
8618fi
8619ac_res=`eval echo '${'$as_ac_Header'}'`
8620 { echo "$as_me:$LINENO: result: $ac_res" >&5
8621echo "${ECHO_T}$ac_res" >&6; }
8622
8623fi
8624if test `eval echo '${'$as_ac_Header'}'` = yes; then
8625 cat >>confdefs.h <<_ACEOF
8626#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8627_ACEOF
8628
8629fi
8630
8631done
8632
8633# Check whether --enable-ltdl-install was given.
8634if test "${enable_ltdl_install+set}" = set; then
8635 enableval=$enable_ltdl_install;
8636fi
8637
8638
8639
8640
8641if test x"${enable_ltdl_install-no}" != xno; then
8642 INSTALL_LTDL_TRUE=
8643 INSTALL_LTDL_FALSE='#'
8644else
8645 INSTALL_LTDL_TRUE='#'
8646 INSTALL_LTDL_FALSE=
8647fi
8648
8649
8650
8651if test x"${enable_ltdl_convenience-no}" != xno; then
8652 CONVENIENCE_LTDL_TRUE=
8653 CONVENIENCE_LTDL_FALSE='#'
8654else
8655 CONVENIENCE_LTDL_TRUE='#'
8656 CONVENIENCE_LTDL_FALSE=
8657fi
8658
8659
8660{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8661echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8662library_names_spec=
8663libname_spec='lib$name'
8664soname_spec=
8665shrext_cmds=".so"
8666postinstall_cmds=
8667postuninstall_cmds=
8668finish_cmds=
8669finish_eval=
8670shlibpath_var=
8671shlibpath_overrides_runpath=unknown
8672version_type=none
8673dynamic_linker="$host_os ld.so"
8674sys_lib_dlsearch_path_spec="/lib /usr/lib"
8675if test "$GCC" = yes; then
8676 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8677 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8678 # if the path contains ";" then we assume it to be the separator
8679 # otherwise default to the standard path separator (i.e. ":") - it is
8680 # assumed that no part of a normal pathname contains ";" but that should
8681 # okay in the real world where ";" in dirpaths is itself problematic.
8682 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8683 else
8684 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8685 fi
8686else
8687 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8688fi
8689need_lib_prefix=unknown
8690hardcode_into_libs=no
8691
8692# when you set need_version to no, make sure it does not cause -set_version
8693# flags to be left without arguments
8694need_version=unknown
8695
8696case $host_os in
8697aix3*)
8698 version_type=linux
8699 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8700 shlibpath_var=LIBPATH
8701
8702 # AIX 3 has no versioning support, so we append a major version to the name.
8703 soname_spec='${libname}${release}${shared_ext}$major'
8704 ;;
8705
8706aix4* | aix5*)
8707 version_type=linux
8708 need_lib_prefix=no
8709 need_version=no
8710 hardcode_into_libs=yes
8711 if test "$host_cpu" = ia64; then
8712 # AIX 5 supports IA64
8713 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8714 shlibpath_var=LD_LIBRARY_PATH
8715 else
8716 # With GCC up to 2.95.x, collect2 would create an import file
8717 # for dependence libraries. The import file would start with
8718 # the line `#! .'. This would cause the generated library to
8719 # depend on `.', always an invalid library. This was fixed in
8720 # development snapshots of GCC prior to 3.0.
8721 case $host_os in
8722 aix4 | aix4.[01] | aix4.[01].*)
8723 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8724 echo ' yes '
8725 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8726 :
8727 else
8728 can_build_shared=no
8729 fi
8730 ;;
8731 esac
8732 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8733 # soname into executable. Probably we can add versioning support to
8734 # collect2, so additional links can be useful in future.
8735 if test "$aix_use_runtimelinking" = yes; then
8736 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8737 # instead of lib<name>.a to let people know that these are not
8738 # typical AIX shared libraries.
8739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8740 else
8741 # We preserve .a as extension for shared libraries through AIX4.2
8742 # and later when we are not doing run time linking.
8743 library_names_spec='${libname}${release}.a $libname.a'
8744 soname_spec='${libname}${release}${shared_ext}$major'
8745 fi
8746 shlibpath_var=LIBPATH
8747 fi
8748 ;;
8749
8750amigaos*)
8751 library_names_spec='$libname.ixlibrary $libname.a'
8752 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8753 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8754 ;;
8755
8756beos*)
8757 library_names_spec='${libname}${shared_ext}'
8758 dynamic_linker="$host_os ld.so"
8759 shlibpath_var=LIBRARY_PATH
8760 ;;
8761
8762bsdi[45]*)
8763 version_type=linux
8764 need_version=no
8765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8766 soname_spec='${libname}${release}${shared_ext}$major'
8767 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8768 shlibpath_var=LD_LIBRARY_PATH
8769 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8770 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8771 # the default ld.so.conf also contains /usr/contrib/lib and
8772 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8773 # libtool to hard-code these into programs
8774 ;;
8775
8776cygwin* | mingw* | pw32*)
8777 version_type=windows
8778 shrext_cmds=".dll"
8779 need_version=no
8780 need_lib_prefix=no
8781
8782 case $GCC,$host_os in
8783 yes,cygwin* | yes,mingw* | yes,pw32*)
8784 library_names_spec='$libname.dll.a'
8785 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8786 postinstall_cmds='base_file=`basename \${file}`~
8787 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8788 dldir=$destdir/`dirname \$dlpath`~
8789 test -d \$dldir || mkdir -p \$dldir~
8790 $install_prog $dir/$dlname \$dldir/$dlname~
8791 chmod a+x \$dldir/$dlname'
8792 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8793 dlpath=$dir/\$dldll~
8794 $rm \$dlpath'
8795 shlibpath_overrides_runpath=yes
8796
8797 case $host_os in
8798 cygwin*)
8799 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8800 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8801 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8802 ;;
8803 mingw*)
8804 # MinGW DLLs use traditional 'lib' prefix
8805 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8806 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8807 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8808 # It is most probably a Windows format PATH printed by
8809 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8810 # path with ; separators, and with drive letters. We can handle the
8811 # drive letters (cygwin fileutils understands them), so leave them,
8812 # especially as we might pass files found there to a mingw objdump,
8813 # which wouldn't understand a cygwinified path. Ahh.
8814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8815 else
8816 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8817 fi
8818 ;;
8819 pw32*)
8820 # pw32 DLLs use 'pw' prefix rather than 'lib'
8821 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8822 ;;
8823 esac
8824 ;;
8825
8826 *)
8827 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8828 ;;
8829 esac
8830 dynamic_linker='Win32 ld.exe'
8831 # FIXME: first we should search . and the directory the executable is in
8832 shlibpath_var=PATH
8833 ;;
8834
8835darwin* | rhapsody*)
8836 dynamic_linker="$host_os dyld"
8837 version_type=darwin
8838 need_lib_prefix=no
8839 need_version=no
8840 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8841 soname_spec='${libname}${release}${major}$shared_ext'
8842 shlibpath_overrides_runpath=yes
8843 shlibpath_var=DYLD_LIBRARY_PATH
8844 shrext_cmds='.dylib'
8845 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8846 if test "$GCC" = yes; then
8847 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8848 else
8849 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8850 fi
8851 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8852 ;;
8853
8854dgux*)
8855 version_type=linux
8856 need_lib_prefix=no
8857 need_version=no
8858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8859 soname_spec='${libname}${release}${shared_ext}$major'
8860 shlibpath_var=LD_LIBRARY_PATH
8861 ;;
8862
8863freebsd1*)
8864 dynamic_linker=no
8865 ;;
8866
8867kfreebsd*-gnu)
8868 version_type=linux
8869 need_lib_prefix=no
8870 need_version=no
8871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8872 soname_spec='${libname}${release}${shared_ext}$major'
8873 shlibpath_var=LD_LIBRARY_PATH
8874 shlibpath_overrides_runpath=no
8875 hardcode_into_libs=yes
8876 dynamic_linker='GNU ld.so'
8877 ;;
8878
8879freebsd* | dragonfly*)
8880 # DragonFly does not have aout. When/if they implement a new
8881 # versioning mechanism, adjust this.
8882 if test -x /usr/bin/objformat; then
8883 objformat=`/usr/bin/objformat`
8884 else
8885 case $host_os in
8886 freebsd[123]*) objformat=aout ;;
8887 *) objformat=elf ;;
8888 esac
8889 fi
8890 version_type=freebsd-$objformat
8891 case $version_type in
8892 freebsd-elf*)
8893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8894 need_version=no
8895 need_lib_prefix=no
8896 ;;
8897 freebsd-*)
8898 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8899 need_version=yes
8900 ;;
8901 esac
8902 shlibpath_var=LD_LIBRARY_PATH
8903 case $host_os in
8904 freebsd2*)
8905 shlibpath_overrides_runpath=yes
8906 ;;
8907 freebsd3.[01]* | freebsdelf3.[01]*)
8908 shlibpath_overrides_runpath=yes
8909 hardcode_into_libs=yes
8910 ;;
8911 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8912 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8913 shlibpath_overrides_runpath=no
8914 hardcode_into_libs=yes
8915 ;;
8916 freebsd*) # from 4.6 on
8917 shlibpath_overrides_runpath=yes
8918 hardcode_into_libs=yes
8919 ;;
8920 esac
8921 ;;
8922
8923gnu*)
8924 version_type=linux
8925 need_lib_prefix=no
8926 need_version=no
8927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8928 soname_spec='${libname}${release}${shared_ext}$major'
8929 shlibpath_var=LD_LIBRARY_PATH
8930 hardcode_into_libs=yes
8931 ;;
8932
8933hpux9* | hpux10* | hpux11*)
8934 # Give a soname corresponding to the major version so that dld.sl refuses to
8935 # link against other versions.
8936 version_type=sunos
8937 need_lib_prefix=no
8938 need_version=no
8939 case $host_cpu in
8940 ia64*)
8941 shrext_cmds='.so'
8942 hardcode_into_libs=yes
8943 dynamic_linker="$host_os dld.so"
8944 shlibpath_var=LD_LIBRARY_PATH
8945 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8947 soname_spec='${libname}${release}${shared_ext}$major'
8948 if test "X$HPUX_IA64_MODE" = X32; then
8949 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8950 else
8951 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8952 fi
8953 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8954 ;;
8955 hppa*64*)
8956 shrext_cmds='.sl'
8957 hardcode_into_libs=yes
8958 dynamic_linker="$host_os dld.sl"
8959 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8960 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8962 soname_spec='${libname}${release}${shared_ext}$major'
8963 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8964 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8965 ;;
8966 *)
8967 shrext_cmds='.sl'
8968 dynamic_linker="$host_os dld.sl"
8969 shlibpath_var=SHLIB_PATH
8970 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8972 soname_spec='${libname}${release}${shared_ext}$major'
8973 ;;
8974 esac
8975 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8976 postinstall_cmds='chmod 555 $lib'
8977 ;;
8978
8979interix3*)
8980 version_type=linux
8981 need_lib_prefix=no
8982 need_version=no
8983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8984 soname_spec='${libname}${release}${shared_ext}$major'
8985 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8986 shlibpath_var=LD_LIBRARY_PATH
8987 shlibpath_overrides_runpath=no
8988 hardcode_into_libs=yes
8989 ;;
8990
8991irix5* | irix6* | nonstopux*)
8992 case $host_os in
8993 nonstopux*) version_type=nonstopux ;;
8994 *)
8995 if test "$lt_cv_prog_gnu_ld" = yes; then
8996 version_type=linux
8997 else
8998 version_type=irix
8999 fi ;;
9000 esac
9001 need_lib_prefix=no
9002 need_version=no
9003 soname_spec='${libname}${release}${shared_ext}$major'
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9005 case $host_os in
9006 irix5* | nonstopux*)
9007 libsuff= shlibsuff=
9008 ;;
9009 *)
9010 case $LD in # libtool.m4 will add one of these switches to LD
9011 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9012 libsuff= shlibsuff= libmagic=32-bit;;
9013 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9014 libsuff=32 shlibsuff=N32 libmagic=N32;;
9015 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9016 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9017 *) libsuff= shlibsuff= libmagic=never-match;;
9018 esac
9019 ;;
9020 esac
9021 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9022 shlibpath_overrides_runpath=no
9023 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9024 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9025 hardcode_into_libs=yes
9026 ;;
9027
9028# No shared lib support for Linux oldld, aout, or coff.
9029linux*oldld* | linux*aout* | linux*coff*)
9030 dynamic_linker=no
9031 ;;
9032
9033# This must be Linux ELF.
9034linux*)
9035 version_type=linux
9036 need_lib_prefix=no
9037 need_version=no
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9041 shlibpath_var=LD_LIBRARY_PATH
9042 shlibpath_overrides_runpath=no
9043 # This implies no fast_install, which is unacceptable.
9044 # Some rework will be needed to allow for fast_install
9045 # before this can be enabled.
9046 hardcode_into_libs=yes
9047
9048 # Append ld.so.conf contents to the search path
9049 if test -f /etc/ld.so.conf; then
9050 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9051 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9052 fi
9053
9054 # We used to test for /lib/ld.so.1 and disable shared libraries on
9055 # powerpc, because MkLinux only supported shared libraries with the
9056 # GNU dynamic linker. Since this was broken with cross compilers,
9057 # most powerpc-linux boxes support dynamic linking these days and
9058 # people can always --disable-shared, the test was removed, and we
9059 # assume the GNU/Linux dynamic linker is in use.
9060 dynamic_linker='GNU/Linux ld.so'
9061 ;;
9062
9063knetbsd*-gnu)
9064 version_type=linux
9065 need_lib_prefix=no
9066 need_version=no
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 shlibpath_var=LD_LIBRARY_PATH
9070 shlibpath_overrides_runpath=no
9071 hardcode_into_libs=yes
9072 dynamic_linker='GNU ld.so'
9073 ;;
9074
9075netbsd*)
9076 version_type=sunos
9077 need_lib_prefix=no
9078 need_version=no
9079 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9082 dynamic_linker='NetBSD (a.out) ld.so'
9083 else
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 dynamic_linker='NetBSD ld.elf_so'
9087 fi
9088 shlibpath_var=LD_LIBRARY_PATH
9089 shlibpath_overrides_runpath=yes
9090 hardcode_into_libs=yes
9091 ;;
9092
9093newsos6)
9094 version_type=linux
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9096 shlibpath_var=LD_LIBRARY_PATH
9097 shlibpath_overrides_runpath=yes
9098 ;;
9099
9100nto-qnx*)
9101 version_type=linux
9102 need_lib_prefix=no
9103 need_version=no
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9105 soname_spec='${libname}${release}${shared_ext}$major'
9106 shlibpath_var=LD_LIBRARY_PATH
9107 shlibpath_overrides_runpath=yes
9108 ;;
9109
9110openbsd*)
9111 version_type=sunos
9112 sys_lib_dlsearch_path_spec="/usr/lib"
9113 need_lib_prefix=no
9114 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9115 case $host_os in
9116 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9117 *) need_version=no ;;
9118 esac
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9121 shlibpath_var=LD_LIBRARY_PATH
9122 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9123 case $host_os in
9124 openbsd2.[89] | openbsd2.[89].*)
9125 shlibpath_overrides_runpath=no
9126 ;;
9127 *)
9128 shlibpath_overrides_runpath=yes
9129 ;;
9130 esac
9131 else
9132 shlibpath_overrides_runpath=yes
9133 fi
9134 ;;
9135
9136os2*)
9137 libname_spec='$name'
9138 shrext_cmds=".dll"
9139 need_lib_prefix=no
9140 library_names_spec='$libname${shared_ext} $libname.a'
9141 dynamic_linker='OS/2 ld.exe'
9142 shlibpath_var=LIBPATH
9143 ;;
9144
9145osf3* | osf4* | osf5*)
9146 version_type=osf
9147 need_lib_prefix=no
9148 need_version=no
9149 soname_spec='${libname}${release}${shared_ext}$major'
9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151 shlibpath_var=LD_LIBRARY_PATH
9152 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9153 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9154 ;;
9155
9156solaris*)
9157 version_type=linux
9158 need_lib_prefix=no
9159 need_version=no
9160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9161 soname_spec='${libname}${release}${shared_ext}$major'
9162 shlibpath_var=LD_LIBRARY_PATH
9163 shlibpath_overrides_runpath=yes
9164 hardcode_into_libs=yes
9165 # ldd complains unless libraries are executable
9166 postinstall_cmds='chmod +x $lib'
9167 ;;
9168
9169sunos4*)
9170 version_type=sunos
9171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9172 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9173 shlibpath_var=LD_LIBRARY_PATH
9174 shlibpath_overrides_runpath=yes
9175 if test "$with_gnu_ld" = yes; then
9176 need_lib_prefix=no
9177 fi
9178 need_version=yes
9179 ;;
9180
9181sysv4 | sysv4.3*)
9182 version_type=linux
9183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9184 soname_spec='${libname}${release}${shared_ext}$major'
9185 shlibpath_var=LD_LIBRARY_PATH
9186 case $host_vendor in
9187 sni)
9188 shlibpath_overrides_runpath=no
9189 need_lib_prefix=no
9190 export_dynamic_flag_spec='${wl}-Blargedynsym'
9191 runpath_var=LD_RUN_PATH
9192 ;;
9193 siemens)
9194 need_lib_prefix=no
9195 ;;
9196 motorola)
9197 need_lib_prefix=no
9198 need_version=no
9199 shlibpath_overrides_runpath=no
9200 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9201 ;;
9202 esac
9203 ;;
9204
9205sysv4*MP*)
9206 if test -d /usr/nec ;then
9207 version_type=linux
9208 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9209 soname_spec='$libname${shared_ext}.$major'
9210 shlibpath_var=LD_LIBRARY_PATH
9211 fi
9212 ;;
9213
9214sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9215 version_type=freebsd-elf
9216 need_lib_prefix=no
9217 need_version=no
9218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9219 soname_spec='${libname}${release}${shared_ext}$major'
9220 shlibpath_var=LD_LIBRARY_PATH
9221 hardcode_into_libs=yes
9222 if test "$with_gnu_ld" = yes; then
9223 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9224 shlibpath_overrides_runpath=no
9225 else
9226 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9227 shlibpath_overrides_runpath=yes
9228 case $host_os in
9229 sco3.2v5*)
9230 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9231 ;;
9232 esac
9233 fi
9234 sys_lib_dlsearch_path_spec='/usr/lib'
9235 ;;
9236
9237uts4*)
9238 version_type=linux
9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9240 soname_spec='${libname}${release}${shared_ext}$major'
9241 shlibpath_var=LD_LIBRARY_PATH
9242 ;;
9243
9244*)
9245 dynamic_linker=no
9246 ;;
9247esac
9248{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9249echo "${ECHO_T}$dynamic_linker" >&6; }
9250test "$dynamic_linker" = no && can_build_shared=no
9251
9252variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9253if test "$GCC" = yes; then
9254 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9255fi
9256
9257
9258{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9259echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9260if test "${libltdl_cv_shlibext+set}" = set; then
9261 echo $ECHO_N "(cached) $ECHO_C" >&6
9262else
9263
9264module=yes
9265eval libltdl_cv_shlibext=$shrext_cmds
9266
9267fi
9268{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9269echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9270if test -n "$libltdl_cv_shlibext"; then
9271
9272cat >>confdefs.h <<_ACEOF
9273#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9274_ACEOF
9275
9276fi
9277
9278
9279{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9280echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9281if test "${libltdl_cv_shlibpath_var+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9283else
9284 libltdl_cv_shlibpath_var="$shlibpath_var"
9285fi
9286{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9287echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9288if test -n "$libltdl_cv_shlibpath_var"; then
9289
9290cat >>confdefs.h <<_ACEOF
9291#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9292_ACEOF
9293
9294fi
9295
9296
9297{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9298echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9299if test "${libltdl_cv_sys_search_path+set}" = set; then
9300 echo $ECHO_N "(cached) $ECHO_C" >&6
9301else
9302 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9303fi
9304{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9305echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9306if test -n "$libltdl_cv_sys_search_path"; then
9307 sys_search_path=
9308 for dir in $libltdl_cv_sys_search_path; do
9309 if test -z "$sys_search_path"; then
9310 sys_search_path="$dir"
9311 else
9312 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9313 fi
9314 done
9315
9316cat >>confdefs.h <<_ACEOF
9317#define LTDL_SYSSEARCHPATH "$sys_search_path"
9318_ACEOF
9319
9320fi
9321
9322{ echo "$as_me:$LINENO: checking for objdir" >&5
9323echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9324if test "${libltdl_cv_objdir+set}" = set; then
9325 echo $ECHO_N "(cached) $ECHO_C" >&6
9326else
9327 libltdl_cv_objdir="$objdir"
9328 if test -n "$objdir"; then
9329 :
9330 else
9331 rm -f .libs 2>/dev/null
9332 mkdir .libs 2>/dev/null
9333 if test -d .libs; then
9334 libltdl_cv_objdir=.libs
9335 else
9336 # MS-DOS does not allow filenames that begin with a dot.
9337 libltdl_cv_objdir=_libs
9338 fi
9339 rmdir .libs 2>/dev/null
9340 fi
9341
9342fi
9343{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9344echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9345
9346cat >>confdefs.h <<_ACEOF
9347#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9348_ACEOF
9349
9350
9351
9352
9353
9354
9355# Check for command to grab the raw symbol name followed by C symbol from nm.
9356{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9357echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9358if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9359 echo $ECHO_N "(cached) $ECHO_C" >&6
9360else
9361
9362# These are sane defaults that work on at least a few old systems.
9363# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9364
9365# Character class describing NM global symbol codes.
9366symcode='[BCDEGRST]'
9367
9368# Regexp to match symbols that can be accessed directly from C.
9369sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9370
9371# Transform an extracted symbol line into a proper C declaration
9372lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9373
9374# Transform an extracted symbol line into symbol name and symbol address
9375lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9376
9377# Define system-specific variables.
9378case $host_os in
9379aix*)
9380 symcode='[BCDT]'
9381 ;;
9382cygwin* | mingw* | pw32*)
9383 symcode='[ABCDGISTW]'
9384 ;;
9385hpux*) # Its linker distinguishes data from code symbols
9386 if test "$host_cpu" = ia64; then
9387 symcode='[ABCDEGRST]'
9388 fi
9389 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9390 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9391 ;;
9392linux*)
9393 if test "$host_cpu" = ia64; then
9394 symcode='[ABCDGIRSTW]'
9395 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9396 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9397 fi
9398 ;;
9399irix* | nonstopux*)
9400 symcode='[BCDEGRST]'
9401 ;;
9402osf*)
9403 symcode='[BCDEGQRST]'
9404 ;;
9405solaris*)
9406 symcode='[BDRT]'
9407 ;;
9408sco3.2v5*)
9409 symcode='[DT]'
9410 ;;
9411sysv4.2uw2*)
9412 symcode='[DT]'
9413 ;;
9414sysv5* | sco5v6* | unixware* | OpenUNIX*)
9415 symcode='[ABDT]'
9416 ;;
9417sysv4)
9418 symcode='[DFNSTU]'
9419 ;;
9420esac
9421
9422# Handle CRLF in mingw tool chain
9423opt_cr=
9424case $build_os in
9425mingw*)
9426 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9427 ;;
9428esac
9429
9430# If we're using GNU nm, then use its standard symbol codes.
9431case `$NM -V 2>&1` in
9432*GNU* | *'with BFD'*)
9433 symcode='[ABCDGIRSTW]' ;;
9434esac
9435
9436# Try without a prefix undercore, then with it.
9437for ac_symprfx in "" "_"; do
9438
9439 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9440 symxfrm="\\1 $ac_symprfx\\2 \\2"
9441
9442 # Write the raw and C identifiers.
9443 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9444
9445 # Check to see that the pipe works correctly.
9446 pipe_works=no
9447
9448 rm -f conftest*
9449 cat > conftest.$ac_ext <<EOF
9450#ifdef __cplusplus
9451extern "C" {
9452#endif
9453char nm_test_var;
9454void nm_test_func(){}
9455#ifdef __cplusplus
9456}
9457#endif
9458int main(){nm_test_var='a';nm_test_func();return(0);}
9459EOF
9460
9461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9462 (eval $ac_compile) 2>&5
9463 ac_status=$?
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; then
9466 # Now try to grab the symbols.
9467 nlist=conftest.nm
9468 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9469 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9470 ac_status=$?
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); } && test -s "$nlist"; then
9473 # Try sorting and uniquifying the output.
9474 if sort "$nlist" | uniq > "$nlist"T; then
9475 mv -f "$nlist"T "$nlist"
9476 else
9477 rm -f "$nlist"T
9478 fi
9479
9480 # Make sure that we snagged all the symbols we need.
9481 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9482 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9483 cat <<EOF > conftest.$ac_ext
9484#ifdef __cplusplus
9485extern "C" {
9486#endif
9487
9488EOF
9489 # Now generate the symbol file.
9490 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9491
9492 cat <<EOF >> conftest.$ac_ext
9493#if defined (__STDC__) && __STDC__
9494# define lt_ptr_t void *
9495#else
9496# define lt_ptr_t char *
9497# define const
9498#endif
9499
9500/* The mapping between symbol names and symbols. */
9501const struct {
9502 const char *name;
9503 lt_ptr_t address;
9504}
9505lt_preloaded_symbols[] =
9506{
9507EOF
9508 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9509 cat <<\EOF >> conftest.$ac_ext
9510 {0, (lt_ptr_t) 0}
9511};
9512
9513#ifdef __cplusplus
9514}
9515#endif
9516EOF
9517 # Now try linking the two files.
9518 mv conftest.$ac_objext conftstm.$ac_objext
9519 lt_save_LIBS="$LIBS"
9520 lt_save_CFLAGS="$CFLAGS"
9521 LIBS="conftstm.$ac_objext"
9522 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9524 (eval $ac_link) 2>&5
9525 ac_status=$?
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9528 pipe_works=yes
9529 fi
9530 LIBS="$lt_save_LIBS"
9531 CFLAGS="$lt_save_CFLAGS"
9532 else
9533 echo "cannot find nm_test_func in $nlist" >&5
9534 fi
9535 else
9536 echo "cannot find nm_test_var in $nlist" >&5
9537 fi
9538 else
9539 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9540 fi
9541 else
9542 echo "$progname: failed program was:" >&5
9543 cat conftest.$ac_ext >&5
9544 fi
9545 rm -f conftest* conftst*
9546
9547 # Do not use the global_symbol_pipe unless it works.
9548 if test "$pipe_works" = yes; then
9549 break
9550 else
9551 lt_cv_sys_global_symbol_pipe=
9552 fi
9553done
9554
9555fi
9556
9557if test -z "$lt_cv_sys_global_symbol_pipe"; then
9558 lt_cv_sys_global_symbol_to_cdecl=
9559fi
9560if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9561 { echo "$as_me:$LINENO: result: failed" >&5
9562echo "${ECHO_T}failed" >&6; }
9563else
9564 { echo "$as_me:$LINENO: result: ok" >&5
9565echo "${ECHO_T}ok" >&6; }
9566fi
9567
9568
9569{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9570echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9571if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9573else
9574 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9575 libltdl_cv_preloaded_symbols=yes
9576 else
9577 libltdl_cv_preloaded_symbols=no
9578 fi
9579
9580fi
9581{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9582echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9583if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9584
9585cat >>confdefs.h <<\_ACEOF
9586#define HAVE_PRELOADED_SYMBOLS 1
9587_ACEOF
9588
9589fi
9590
9591LIBADD_DL=
9592
9593ac_ext=c
9594ac_cpp='$CPP $CPPFLAGS'
9595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9597ac_compiler_gnu=$ac_cv_c_compiler_gnu
9598
9599
9600{ echo "$as_me:$LINENO: checking for shl_load" >&5
9601echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9602if test "${ac_cv_func_shl_load+set}" = set; then
9603 echo $ECHO_N "(cached) $ECHO_C" >&6
9604else
9605 cat >conftest.$ac_ext <<_ACEOF
9606/* confdefs.h. */
9607_ACEOF
9608cat confdefs.h >>conftest.$ac_ext
9609cat >>conftest.$ac_ext <<_ACEOF
9610/* end confdefs.h. */
9611/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9613#define shl_load innocuous_shl_load
9614
9615/* System header to define __stub macros and hopefully few prototypes,
9616 which can conflict with char shl_load (); below.
9617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9618 <limits.h> exists even on freestanding compilers. */
9619
9620#ifdef __STDC__
9621# include <limits.h>
9622#else
9623# include <assert.h>
9624#endif
9625
9626#undef shl_load
9627
9628/* Override any GCC internal prototype to avoid an error.
9629 Use char because int might match the return type of a GCC
9630 builtin and then its argument prototype would still apply. */
9631#ifdef __cplusplus
9632extern "C"
9633#endif
9634char shl_load ();
9635/* The GNU C library defines this for functions which it implements
9636 to always fail with ENOSYS. Some functions are actually named
9637 something starting with __ and the normal name is an alias. */
9638#if defined __stub_shl_load || defined __stub___shl_load
9639choke me
9640#endif
9641
9642int
9643main ()
9644{
9645return shl_load ();
9646 ;
9647 return 0;
9648}
9649_ACEOF
9650rm -f conftest.$ac_objext conftest$ac_exeext
9651if { (ac_try="$ac_link"
9652case "(($ac_try" in
9653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654 *) ac_try_echo=$ac_try;;
9655esac
9656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9657 (eval "$ac_link") 2>conftest.er1
9658 ac_status=$?
9659 grep -v '^ *+' conftest.er1 >conftest.err
9660 rm -f conftest.er1
9661 cat conftest.err >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } &&
9664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9665 { (case "(($ac_try" in
9666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667 *) ac_try_echo=$ac_try;;
9668esac
9669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670 (eval "$ac_try") 2>&5
9671 ac_status=$?
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; } &&
9674 { ac_try='test -s conftest$ac_exeext'
9675 { (case "(($ac_try" in
9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9678esac
9679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_try") 2>&5
9681 ac_status=$?
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); }; }; then
9684 ac_cv_func_shl_load=yes
9685else
9686 echo "$as_me: failed program was:" >&5
9687sed 's/^/| /' conftest.$ac_ext >&5
9688
9689 ac_cv_func_shl_load=no
9690fi
9691
9692rm -f core conftest.err conftest.$ac_objext \
9693 conftest$ac_exeext conftest.$ac_ext
9694fi
9695{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9696echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9697if test $ac_cv_func_shl_load = yes; then
9698
9699cat >>confdefs.h <<\_ACEOF
9700#define HAVE_SHL_LOAD 1
9701_ACEOF
9702
9703else
9704 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9705echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9706if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9707 echo $ECHO_N "(cached) $ECHO_C" >&6
9708else
9709 ac_check_lib_save_LIBS=$LIBS
9710LIBS="-ldld $LIBS"
9711cat >conftest.$ac_ext <<_ACEOF
9712/* confdefs.h. */
9713_ACEOF
9714cat confdefs.h >>conftest.$ac_ext
9715cat >>conftest.$ac_ext <<_ACEOF
9716/* end confdefs.h. */
9717
9718/* Override any GCC internal prototype to avoid an error.
9719 Use char because int might match the return type of a GCC
9720 builtin and then its argument prototype would still apply. */
9721#ifdef __cplusplus
9722extern "C"
9723#endif
9724char shl_load ();
9725int
9726main ()
9727{
9728return shl_load ();
9729 ;
9730 return 0;
9731}
9732_ACEOF
9733rm -f conftest.$ac_objext conftest$ac_exeext
9734if { (ac_try="$ac_link"
9735case "(($ac_try" in
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9738esac
9739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_link") 2>conftest.er1
9741 ac_status=$?
9742 grep -v '^ *+' conftest.er1 >conftest.err
9743 rm -f conftest.er1
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } &&
9747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9748 { (case "(($ac_try" in
9749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750 *) ac_try_echo=$ac_try;;
9751esac
9752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753 (eval "$ac_try") 2>&5
9754 ac_status=$?
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; } &&
9757 { ac_try='test -s conftest$ac_exeext'
9758 { (case "(($ac_try" in
9759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760 *) ac_try_echo=$ac_try;;
9761esac
9762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763 (eval "$ac_try") 2>&5
9764 ac_status=$?
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; }; then
9767 ac_cv_lib_dld_shl_load=yes
9768else
9769 echo "$as_me: failed program was:" >&5
9770sed 's/^/| /' conftest.$ac_ext >&5
9771
9772 ac_cv_lib_dld_shl_load=no
9773fi
9774
9775rm -f core conftest.err conftest.$ac_objext \
9776 conftest$ac_exeext conftest.$ac_ext
9777LIBS=$ac_check_lib_save_LIBS
9778fi
9779{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9780echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9781if test $ac_cv_lib_dld_shl_load = yes; then
9782
9783cat >>confdefs.h <<\_ACEOF
9784#define HAVE_SHL_LOAD 1
9785_ACEOF
9786
9787 LIBADD_DL="$LIBADD_DL -ldld"
9788else
9789 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9790echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9791if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9793else
9794 ac_check_lib_save_LIBS=$LIBS
9795LIBS="-ldl $LIBS"
9796cat >conftest.$ac_ext <<_ACEOF
9797/* confdefs.h. */
9798_ACEOF
9799cat confdefs.h >>conftest.$ac_ext
9800cat >>conftest.$ac_ext <<_ACEOF
9801/* end confdefs.h. */
9802
9803/* Override any GCC internal prototype to avoid an error.
9804 Use char because int might match the return type of a GCC
9805 builtin and then its argument prototype would still apply. */
9806#ifdef __cplusplus
9807extern "C"
9808#endif
9809char dlopen ();
9810int
9811main ()
9812{
9813return dlopen ();
9814 ;
9815 return 0;
9816}
9817_ACEOF
9818rm -f conftest.$ac_objext conftest$ac_exeext
9819if { (ac_try="$ac_link"
9820case "(($ac_try" in
9821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 *) ac_try_echo=$ac_try;;
9823esac
9824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 (eval "$ac_link") 2>conftest.er1
9826 ac_status=$?
9827 grep -v '^ *+' conftest.er1 >conftest.err
9828 rm -f conftest.er1
9829 cat conftest.err >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); } &&
9832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9833 { (case "(($ac_try" in
9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9836esac
9837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838 (eval "$ac_try") 2>&5
9839 ac_status=$?
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; } &&
9842 { ac_try='test -s conftest$ac_exeext'
9843 { (case "(($ac_try" in
9844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9846esac
9847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848 (eval "$ac_try") 2>&5
9849 ac_status=$?
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 ac_cv_lib_dl_dlopen=yes
9853else
9854 echo "$as_me: failed program was:" >&5
9855sed 's/^/| /' conftest.$ac_ext >&5
9856
9857 ac_cv_lib_dl_dlopen=no
9858fi
9859
9860rm -f core conftest.err conftest.$ac_objext \
9861 conftest$ac_exeext conftest.$ac_ext
9862LIBS=$ac_check_lib_save_LIBS
9863fi
9864{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9865echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9866if test $ac_cv_lib_dl_dlopen = yes; then
9867
9868cat >>confdefs.h <<\_ACEOF
9869#define HAVE_LIBDL 1
9870_ACEOF
9871
9872 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9873else
9874 cat >conftest.$ac_ext <<_ACEOF
9875/* confdefs.h. */
9876_ACEOF
9877cat confdefs.h >>conftest.$ac_ext
9878cat >>conftest.$ac_ext <<_ACEOF
9879/* end confdefs.h. */
9880#if HAVE_DLFCN_H
9881# include <dlfcn.h>
9882#endif
9883
9884int
9885main ()
9886{
9887dlopen(0, 0);
9888 ;
9889 return 0;
9890}
9891_ACEOF
9892rm -f conftest.$ac_objext conftest$ac_exeext
9893if { (ac_try="$ac_link"
9894case "(($ac_try" in
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9897esac
9898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_link") 2>conftest.er1
9900 ac_status=$?
9901 grep -v '^ *+' conftest.er1 >conftest.err
9902 rm -f conftest.er1
9903 cat conftest.err >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } &&
9906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9907 { (case "(($ac_try" in
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9910esac
9911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_try") 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; } &&
9916 { ac_try='test -s conftest$ac_exeext'
9917 { (case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9920esac
9921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_try") 2>&5
9923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
9926
9927cat >>confdefs.h <<\_ACEOF
9928#define HAVE_LIBDL 1
9929_ACEOF
9930 libltdl_cv_func_dlopen="yes"
9931else
9932 echo "$as_me: failed program was:" >&5
9933sed 's/^/| /' conftest.$ac_ext >&5
9934
9935 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9936echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9937if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9939else
9940 ac_check_lib_save_LIBS=$LIBS
9941LIBS="-lsvld $LIBS"
9942cat >conftest.$ac_ext <<_ACEOF
9943/* confdefs.h. */
9944_ACEOF
9945cat confdefs.h >>conftest.$ac_ext
9946cat >>conftest.$ac_ext <<_ACEOF
9947/* end confdefs.h. */
9948
9949/* Override any GCC internal prototype to avoid an error.
9950 Use char because int might match the return type of a GCC
9951 builtin and then its argument prototype would still apply. */
9952#ifdef __cplusplus
9953extern "C"
9954#endif
9955char dlopen ();
9956int
9957main ()
9958{
9959return dlopen ();
9960 ;
9961 return 0;
9962}
9963_ACEOF
9964rm -f conftest.$ac_objext conftest$ac_exeext
9965if { (ac_try="$ac_link"
9966case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9969esac
9970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_link") 2>conftest.er1
9972 ac_status=$?
9973 grep -v '^ *+' conftest.er1 >conftest.err
9974 rm -f conftest.er1
9975 cat conftest.err >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } &&
9978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9979 { (case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9982esac
9983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_try") 2>&5
9985 ac_status=$?
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; } &&
9988 { ac_try='test -s conftest$ac_exeext'
9989 { (case "(($ac_try" in
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9992esac
9993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_try") 2>&5
9995 ac_status=$?
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; }; then
9998 ac_cv_lib_svld_dlopen=yes
9999else
10000 echo "$as_me: failed program was:" >&5
10001sed 's/^/| /' conftest.$ac_ext >&5
10002
10003 ac_cv_lib_svld_dlopen=no
10004fi
10005
10006rm -f core conftest.err conftest.$ac_objext \
10007 conftest$ac_exeext conftest.$ac_ext
10008LIBS=$ac_check_lib_save_LIBS
10009fi
10010{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10011echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10012if test $ac_cv_lib_svld_dlopen = yes; then
10013
10014cat >>confdefs.h <<\_ACEOF
10015#define HAVE_LIBDL 1
10016_ACEOF
10017
10018 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10019else
10020 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10021echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10022if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
10024else
10025 ac_check_lib_save_LIBS=$LIBS
10026LIBS="-ldld $LIBS"
10027cat >conftest.$ac_ext <<_ACEOF
10028/* confdefs.h. */
10029_ACEOF
10030cat confdefs.h >>conftest.$ac_ext
10031cat >>conftest.$ac_ext <<_ACEOF
10032/* end confdefs.h. */
10033
10034/* Override any GCC internal prototype to avoid an error.
10035 Use char because int might match the return type of a GCC
10036 builtin and then its argument prototype would still apply. */
10037#ifdef __cplusplus
10038extern "C"
10039#endif
10040char dld_link ();
10041int
10042main ()
10043{
10044return dld_link ();
10045 ;
10046 return 0;
10047}
10048_ACEOF
10049rm -f conftest.$ac_objext conftest$ac_exeext
10050if { (ac_try="$ac_link"
10051case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10054esac
10055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_link") 2>conftest.er1
10057 ac_status=$?
10058 grep -v '^ *+' conftest.er1 >conftest.err
10059 rm -f conftest.er1
10060 cat conftest.err >&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); } &&
10063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10064 { (case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10067esac
10068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069 (eval "$ac_try") 2>&5
10070 ac_status=$?
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; } &&
10073 { ac_try='test -s conftest$ac_exeext'
10074 { (case "(($ac_try" in
10075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10076 *) ac_try_echo=$ac_try;;
10077esac
10078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10079 (eval "$ac_try") 2>&5
10080 ac_status=$?
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083 ac_cv_lib_dld_dld_link=yes
10084else
10085 echo "$as_me: failed program was:" >&5
10086sed 's/^/| /' conftest.$ac_ext >&5
10087
10088 ac_cv_lib_dld_dld_link=no
10089fi
10090
10091rm -f core conftest.err conftest.$ac_objext \
10092 conftest$ac_exeext conftest.$ac_ext
10093LIBS=$ac_check_lib_save_LIBS
10094fi
10095{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10096echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10097if test $ac_cv_lib_dld_dld_link = yes; then
10098
10099cat >>confdefs.h <<\_ACEOF
10100#define HAVE_DLD 1
10101_ACEOF
10102
10103 LIBADD_DL="$LIBADD_DL -ldld"
10104else
10105 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10106echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10107if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10108 echo $ECHO_N "(cached) $ECHO_C" >&6
10109else
10110 cat >conftest.$ac_ext <<_ACEOF
10111/* confdefs.h. */
10112_ACEOF
10113cat confdefs.h >>conftest.$ac_ext
10114cat >>conftest.$ac_ext <<_ACEOF
10115/* end confdefs.h. */
10116/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10118#define _dyld_func_lookup innocuous__dyld_func_lookup
10119
10120/* System header to define __stub macros and hopefully few prototypes,
10121 which can conflict with char _dyld_func_lookup (); below.
10122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10123 <limits.h> exists even on freestanding compilers. */
10124
10125#ifdef __STDC__
10126# include <limits.h>
10127#else
10128# include <assert.h>
10129#endif
10130
10131#undef _dyld_func_lookup
10132
10133/* Override any GCC internal prototype to avoid an error.
10134 Use char because int might match the return type of a GCC
10135 builtin and then its argument prototype would still apply. */
10136#ifdef __cplusplus
10137extern "C"
10138#endif
10139char _dyld_func_lookup ();
10140/* The GNU C library defines this for functions which it implements
10141 to always fail with ENOSYS. Some functions are actually named
10142 something starting with __ and the normal name is an alias. */
10143#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10144choke me
10145#endif
10146
10147int
10148main ()
10149{
10150return _dyld_func_lookup ();
10151 ;
10152 return 0;
10153}
10154_ACEOF
10155rm -f conftest.$ac_objext conftest$ac_exeext
10156if { (ac_try="$ac_link"
10157case "(($ac_try" in
10158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159 *) ac_try_echo=$ac_try;;
10160esac
10161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162 (eval "$ac_link") 2>conftest.er1
10163 ac_status=$?
10164 grep -v '^ *+' conftest.er1 >conftest.err
10165 rm -f conftest.er1
10166 cat conftest.err >&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } &&
10169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10170 { (case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10173esac
10174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_try") 2>&5
10176 ac_status=$?
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; } &&
10179 { ac_try='test -s conftest$ac_exeext'
10180 { (case "(($ac_try" in
10181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182 *) ac_try_echo=$ac_try;;
10183esac
10184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185 (eval "$ac_try") 2>&5
10186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; }; then
10189 ac_cv_func__dyld_func_lookup=yes
10190else
10191 echo "$as_me: failed program was:" >&5
10192sed 's/^/| /' conftest.$ac_ext >&5
10193
10194 ac_cv_func__dyld_func_lookup=no
10195fi
10196
10197rm -f core conftest.err conftest.$ac_objext \
10198 conftest$ac_exeext conftest.$ac_ext
10199fi
10200{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10201echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10202if test $ac_cv_func__dyld_func_lookup = yes; then
10203
10204cat >>confdefs.h <<\_ACEOF
10205#define HAVE_DYLD 1
10206_ACEOF
10207
10208fi
10209
10210
10211fi
10212
10213
10214fi
10215
10216
10217fi
10218
10219rm -f core conftest.err conftest.$ac_objext \
10220 conftest$ac_exeext conftest.$ac_ext
10221
10222fi
10223
10224
10225fi
10226
10227
10228fi
10229
10230
10231if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10232then
10233 lt_save_LIBS="$LIBS"
10234 LIBS="$LIBS $LIBADD_DL"
10235
10236for ac_func in dlerror
10237do
10238as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10239{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10240echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10241if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10243else
10244 cat >conftest.$ac_ext <<_ACEOF
10245/* confdefs.h. */
10246_ACEOF
10247cat confdefs.h >>conftest.$ac_ext
10248cat >>conftest.$ac_ext <<_ACEOF
10249/* end confdefs.h. */
10250/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10252#define $ac_func innocuous_$ac_func
10253
10254/* System header to define __stub macros and hopefully few prototypes,
10255 which can conflict with char $ac_func (); below.
10256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10257 <limits.h> exists even on freestanding compilers. */
10258
10259#ifdef __STDC__
10260# include <limits.h>
10261#else
10262# include <assert.h>
10263#endif
10264
10265#undef $ac_func
10266
10267/* Override any GCC internal prototype to avoid an error.
10268 Use char because int might match the return type of a GCC
10269 builtin and then its argument prototype would still apply. */
10270#ifdef __cplusplus
10271extern "C"
10272#endif
10273char $ac_func ();
10274/* The GNU C library defines this for functions which it implements
10275 to always fail with ENOSYS. Some functions are actually named
10276 something starting with __ and the normal name is an alias. */
10277#if defined __stub_$ac_func || defined __stub___$ac_func
10278choke me
10279#endif
10280
10281int
10282main ()
10283{
10284return $ac_func ();
10285 ;
10286 return 0;
10287}
10288_ACEOF
10289rm -f conftest.$ac_objext conftest$ac_exeext
10290if { (ac_try="$ac_link"
10291case "(($ac_try" in
10292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293 *) ac_try_echo=$ac_try;;
10294esac
10295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296 (eval "$ac_link") 2>conftest.er1
10297 ac_status=$?
10298 grep -v '^ *+' conftest.er1 >conftest.err
10299 rm -f conftest.er1
10300 cat conftest.err >&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } &&
10303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10304 { (case "(($ac_try" in
10305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10306 *) ac_try_echo=$ac_try;;
10307esac
10308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10309 (eval "$ac_try") 2>&5
10310 ac_status=$?
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; } &&
10313 { ac_try='test -s conftest$ac_exeext'
10314 { (case "(($ac_try" in
10315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316 *) ac_try_echo=$ac_try;;
10317esac
10318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10319 (eval "$ac_try") 2>&5
10320 ac_status=$?
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; }; then
10323 eval "$as_ac_var=yes"
10324else
10325 echo "$as_me: failed program was:" >&5
10326sed 's/^/| /' conftest.$ac_ext >&5
10327
10328 eval "$as_ac_var=no"
10329fi
10330
10331rm -f core conftest.err conftest.$ac_objext \
10332 conftest$ac_exeext conftest.$ac_ext
10333fi
10334ac_res=`eval echo '${'$as_ac_var'}'`
10335 { echo "$as_me:$LINENO: result: $ac_res" >&5
10336echo "${ECHO_T}$ac_res" >&6; }
10337if test `eval echo '${'$as_ac_var'}'` = yes; then
10338 cat >>confdefs.h <<_ACEOF
10339#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10340_ACEOF
10341
10342fi
10343done
10344
10345 LIBS="$lt_save_LIBS"
10346fi
10347ac_ext=c
10348ac_cpp='$CPP $CPPFLAGS'
10349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10351ac_compiler_gnu=$ac_cv_c_compiler_gnu
10352
10353
10354
10355{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10356echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10357if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
10359else
10360 ac_cv_sys_symbol_underscore=no
10361 cat > conftest.$ac_ext <<EOF
10362void nm_test_func(){}
10363int main(){nm_test_func;return 0;}
10364EOF
10365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10366 (eval $ac_compile) 2>&5
10367 ac_status=$?
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); }; then
10370 # Now try to grab the symbols.
10371 ac_nlist=conftest.nm
10372 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10373 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10374 ac_status=$?
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); } && test -s "$ac_nlist"; then
10377 # See whether the symbols have a leading underscore.
10378 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10379 ac_cv_sys_symbol_underscore=yes
10380 else
10381 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10382 :
10383 else
10384 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10385 fi
10386 fi
10387 else
10388 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10389 fi
10390 else
10391 echo "configure: failed program was:" >&5
10392 cat conftest.c >&5
10393 fi
10394 rm -rf conftest*
10395
10396fi
10397{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10398echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10399
10400
10401if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10402 if test x"$libltdl_cv_func_dlopen" = xyes ||
10403 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10404 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10405echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10406if test "${libltdl_cv_need_uscore+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10408else
10409 libltdl_cv_need_uscore=unknown
10410 save_LIBS="$LIBS"
10411 LIBS="$LIBS $LIBADD_DL"
10412 if test "$cross_compiling" = yes; then :
10413 libltdl_cv_need_uscore=cross
10414else
10415 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10416 lt_status=$lt_dlunknown
10417 cat > conftest.$ac_ext <<EOF
10418#line 10423 "configure"
10419#include "confdefs.h"
10420
10421#if HAVE_DLFCN_H
10422#include <dlfcn.h>
10423#endif
10424
10425#include <stdio.h>
10426
10427#ifdef RTLD_GLOBAL
10428# define LT_DLGLOBAL RTLD_GLOBAL
10429#else
10430# ifdef DL_GLOBAL
10431# define LT_DLGLOBAL DL_GLOBAL
10432# else
10433# define LT_DLGLOBAL 0
10434# endif
10435#endif
10436
10437/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10438 find out it does not work in some platform. */
10439#ifndef LT_DLLAZY_OR_NOW
10440# ifdef RTLD_LAZY
10441# define LT_DLLAZY_OR_NOW RTLD_LAZY
10442# else
10443# ifdef DL_LAZY
10444# define LT_DLLAZY_OR_NOW DL_LAZY
10445# else
10446# ifdef RTLD_NOW
10447# define LT_DLLAZY_OR_NOW RTLD_NOW
10448# else
10449# ifdef DL_NOW
10450# define LT_DLLAZY_OR_NOW DL_NOW
10451# else
10452# define LT_DLLAZY_OR_NOW 0
10453# endif
10454# endif
10455# endif
10456# endif
10457#endif
10458
10459#ifdef __cplusplus
10460extern "C" void exit (int);
10461#endif
10462
10463void fnord() { int i=42;}
10464int main ()
10465{
10466 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10467 int status = $lt_dlunknown;
10468
10469 if (self)
10470 {
10471 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10472 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10473 /* dlclose (self); */
10474 }
10475 else
10476 puts (dlerror ());
10477
10478 exit (status);
10479}
10480EOF
10481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10482 (eval $ac_link) 2>&5
10483 ac_status=$?
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10486 (./conftest; exit; ) >&5 2>/dev/null
10487 lt_status=$?
10488 case x$lt_status in
10489 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10490 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10491 x$lt_dlunknown|x*) ;;
10492 esac
10493 else :
10494 # compilation failed
10495
10496 fi
10497fi
10498rm -fr conftest*
10499
10500 LIBS="$save_LIBS"
10501
10502fi
10503{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10504echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10505 fi
10506fi
10507
10508if test x"$libltdl_cv_need_uscore" = xyes; then
10509
10510cat >>confdefs.h <<\_ACEOF
10511#define NEED_USCORE 1
10512_ACEOF
10513
10514fi
10515
10516
10517{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10518echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10519if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10520 echo $ECHO_N "(cached) $ECHO_C" >&6
10521else
10522 # PORTME does your system automatically load deplibs for dlopen?
10523 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10524 # For now, we just catch OSes we know something about -- in the
10525 # future, we'll try test this programmatically.
10526 libltdl_cv_sys_dlopen_deplibs=unknown
10527 case "$host_os" in
10528 aix3*|aix4.1.*|aix4.2.*)
10529 # Unknown whether this is true for these versions of AIX, but
10530 # we want this `case' here to explicitly catch those versions.
10531 libltdl_cv_sys_dlopen_deplibs=unknown
10532 ;;
10533 aix[45]*)
10534 libltdl_cv_sys_dlopen_deplibs=yes
10535 ;;
10536 darwin*)
10537 # Assuming the user has installed a libdl from somewhere, this is true
10538 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10539 libltdl_cv_sys_dlopen_deplibs=yes
10540 ;;
10541 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10542 # GNU and its variants, using gnu ld.so (Glibc)
10543 libltdl_cv_sys_dlopen_deplibs=yes
10544 ;;
10545 hpux10*|hpux11*)
10546 libltdl_cv_sys_dlopen_deplibs=yes
10547 ;;
10548 interix*)
10549 libltdl_cv_sys_dlopen_deplibs=yes
10550 ;;
10551 irix[12345]*|irix6.[01]*)
10552 # Catch all versions of IRIX before 6.2, and indicate that we don't
10553 # know how it worked for any of those versions.
10554 libltdl_cv_sys_dlopen_deplibs=unknown
10555 ;;
10556 irix*)
10557 # The case above catches anything before 6.2, and it's known that
10558 # at 6.2 and later dlopen does load deplibs.
10559 libltdl_cv_sys_dlopen_deplibs=yes
10560 ;;
10561 netbsd*)
10562 libltdl_cv_sys_dlopen_deplibs=yes
10563 ;;
10564 openbsd*)
10565 libltdl_cv_sys_dlopen_deplibs=yes
10566 ;;
10567 osf[1234]*)
10568 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10569 # it did *not* use an RPATH in a shared library to find objects the
10570 # library depends on, so we explicitly say `no'.
10571 libltdl_cv_sys_dlopen_deplibs=no
10572 ;;
10573 osf5.0|osf5.0a|osf5.1)
10574 # dlopen *does* load deplibs and with the right loader patch applied
10575 # it even uses RPATH in a shared library to search for shared objects
10576 # that the library depends on, but there's no easy way to know if that
10577 # patch is installed. Since this is the case, all we can really
10578 # say is unknown -- it depends on the patch being installed. If
10579 # it is, this changes to `yes'. Without it, it would be `no'.
10580 libltdl_cv_sys_dlopen_deplibs=unknown
10581 ;;
10582 osf*)
10583 # the two cases above should catch all versions of osf <= 5.1. Read
10584 # the comments above for what we know about them.
10585 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10586 # is used to find them so we can finally say `yes'.
10587 libltdl_cv_sys_dlopen_deplibs=yes
10588 ;;
10589 solaris*)
10590 libltdl_cv_sys_dlopen_deplibs=yes
10591 ;;
10592 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10593 libltdl_cv_sys_dlopen_deplibs=yes
10594 ;;
10595 esac
10596
10597fi
10598{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10599echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10600if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10601
10602cat >>confdefs.h <<\_ACEOF
10603#define LTDL_DLOPEN_DEPLIBS 1
10604_ACEOF
10605
10606fi
10607
10608
10609for ac_header in argz.h
10610do
10611as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10612if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10615if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10617fi
10618ac_res=`eval echo '${'$as_ac_Header'}'`
10619 { echo "$as_me:$LINENO: result: $ac_res" >&5
10620echo "${ECHO_T}$ac_res" >&6; }
10621else
10622 # Is the header compilable?
10623{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10624echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10625cat >conftest.$ac_ext <<_ACEOF
10626/* confdefs.h. */
10627_ACEOF
10628cat confdefs.h >>conftest.$ac_ext
10629cat >>conftest.$ac_ext <<_ACEOF
10630/* end confdefs.h. */
10631$ac_includes_default
10632#include <$ac_header>
10633_ACEOF
10634rm -f conftest.$ac_objext
10635if { (ac_try="$ac_compile"
10636case "(($ac_try" in
10637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10638 *) ac_try_echo=$ac_try;;
10639esac
10640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10641 (eval "$ac_compile") 2>conftest.er1
10642 ac_status=$?
10643 grep -v '^ *+' conftest.er1 >conftest.err
10644 rm -f conftest.er1
10645 cat conftest.err >&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } &&
10648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10649 { (case "(($ac_try" in
10650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10652esac
10653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654 (eval "$ac_try") 2>&5
10655 ac_status=$?
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; } &&
10658 { ac_try='test -s conftest.$ac_objext'
10659 { (case "(($ac_try" in
10660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10661 *) ac_try_echo=$ac_try;;
10662esac
10663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10664 (eval "$ac_try") 2>&5
10665 ac_status=$?
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; }; then
10668 ac_header_compiler=yes
10669else
10670 echo "$as_me: failed program was:" >&5
10671sed 's/^/| /' conftest.$ac_ext >&5
10672
10673 ac_header_compiler=no
10674fi
10675
10676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10677{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10678echo "${ECHO_T}$ac_header_compiler" >&6; }
10679
10680# Is the header present?
10681{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10682echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10683cat >conftest.$ac_ext <<_ACEOF
10684/* confdefs.h. */
10685_ACEOF
10686cat confdefs.h >>conftest.$ac_ext
10687cat >>conftest.$ac_ext <<_ACEOF
10688/* end confdefs.h. */
10689#include <$ac_header>
10690_ACEOF
10691if { (ac_try="$ac_cpp conftest.$ac_ext"
10692case "(($ac_try" in
10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694 *) ac_try_echo=$ac_try;;
10695esac
10696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10698 ac_status=$?
10699 grep -v '^ *+' conftest.er1 >conftest.err
10700 rm -f conftest.er1
10701 cat conftest.err >&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } >/dev/null; then
10704 if test -s conftest.err; then
10705 ac_cpp_err=$ac_c_preproc_warn_flag
10706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10707 else
10708 ac_cpp_err=
10709 fi
10710else
10711 ac_cpp_err=yes
10712fi
10713if test -z "$ac_cpp_err"; then
10714 ac_header_preproc=yes
10715else
10716 echo "$as_me: failed program was:" >&5
10717sed 's/^/| /' conftest.$ac_ext >&5
10718
10719 ac_header_preproc=no
10720fi
10721
10722rm -f conftest.err conftest.$ac_ext
10723{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10724echo "${ECHO_T}$ac_header_preproc" >&6; }
10725
10726# So? What about this header?
10727case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10728 yes:no: )
10729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10730echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10732echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10733 ac_header_preproc=yes
10734 ;;
10735 no:yes:* )
10736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10737echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10739echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10741echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10743echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10745echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10747echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10748 ( cat <<\_ASBOX
10749## ------------------------------ ##
10750## Report this to bugs@yourdomain ##
10751## ------------------------------ ##
10752_ASBOX
10753 ) | sed "s/^/$as_me: WARNING: /" >&2
10754 ;;
10755esac
10756{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10757echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10760else
10761 eval "$as_ac_Header=\$ac_header_preproc"
10762fi
10763ac_res=`eval echo '${'$as_ac_Header'}'`
10764 { echo "$as_me:$LINENO: result: $ac_res" >&5
10765echo "${ECHO_T}$ac_res" >&6; }
10766
10767fi
10768if test `eval echo '${'$as_ac_Header'}'` = yes; then
10769 cat >>confdefs.h <<_ACEOF
10770#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10771_ACEOF
10772
10773fi
10774
10775done
10776
10777
10778{ echo "$as_me:$LINENO: checking for error_t" >&5
10779echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10780if test "${ac_cv_type_error_t+set}" = set; then
10781 echo $ECHO_N "(cached) $ECHO_C" >&6
10782else
10783 cat >conftest.$ac_ext <<_ACEOF
10784/* confdefs.h. */
10785_ACEOF
10786cat confdefs.h >>conftest.$ac_ext
10787cat >>conftest.$ac_ext <<_ACEOF
10788/* end confdefs.h. */
10789#if HAVE_ARGZ_H
10790# include <argz.h>
10791#endif
10792
10793typedef error_t ac__type_new_;
10794int
10795main ()
10796{
10797if ((ac__type_new_ *) 0)
10798 return 0;
10799if (sizeof (ac__type_new_))
10800 return 0;
10801 ;
10802 return 0;
10803}
10804_ACEOF
10805rm -f conftest.$ac_objext
10806if { (ac_try="$ac_compile"
10807case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10810esac
10811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_compile") 2>conftest.er1
10813 ac_status=$?
10814 grep -v '^ *+' conftest.er1 >conftest.err
10815 rm -f conftest.er1
10816 cat conftest.err >&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } &&
10819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10820 { (case "(($ac_try" in
10821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822 *) ac_try_echo=$ac_try;;
10823esac
10824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10825 (eval "$ac_try") 2>&5
10826 ac_status=$?
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; } &&
10829 { ac_try='test -s conftest.$ac_objext'
10830 { (case "(($ac_try" in
10831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832 *) ac_try_echo=$ac_try;;
10833esac
10834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10835 (eval "$ac_try") 2>&5
10836 ac_status=$?
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); }; }; then
10839 ac_cv_type_error_t=yes
10840else
10841 echo "$as_me: failed program was:" >&5
10842sed 's/^/| /' conftest.$ac_ext >&5
10843
10844 ac_cv_type_error_t=no
10845fi
10846
10847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10848fi
10849{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10850echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10851if test $ac_cv_type_error_t = yes; then
10852
10853cat >>confdefs.h <<_ACEOF
10854#define HAVE_ERROR_T 1
10855_ACEOF
10856
10857
10858else
10859
10860cat >>confdefs.h <<\_ACEOF
10861#define error_t int
10862_ACEOF
10863
10864fi
10865
10866
10867
10868
10869
10870
10871
10872for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10873do
10874as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10875{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10876echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10877if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10879else
10880 cat >conftest.$ac_ext <<_ACEOF
10881/* confdefs.h. */
10882_ACEOF
10883cat confdefs.h >>conftest.$ac_ext
10884cat >>conftest.$ac_ext <<_ACEOF
10885/* end confdefs.h. */
10886/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10888#define $ac_func innocuous_$ac_func
10889
10890/* System header to define __stub macros and hopefully few prototypes,
10891 which can conflict with char $ac_func (); below.
10892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10893 <limits.h> exists even on freestanding compilers. */
10894
10895#ifdef __STDC__
10896# include <limits.h>
10897#else
10898# include <assert.h>
10899#endif
10900
10901#undef $ac_func
10902
10903/* Override any GCC internal prototype to avoid an error.
10904 Use char because int might match the return type of a GCC
10905 builtin and then its argument prototype would still apply. */
10906#ifdef __cplusplus
10907extern "C"
10908#endif
10909char $ac_func ();
10910/* The GNU C library defines this for functions which it implements
10911 to always fail with ENOSYS. Some functions are actually named
10912 something starting with __ and the normal name is an alias. */
10913#if defined __stub_$ac_func || defined __stub___$ac_func
10914choke me
10915#endif
10916
10917int
10918main ()
10919{
10920return $ac_func ();
10921 ;
10922 return 0;
10923}
10924_ACEOF
10925rm -f conftest.$ac_objext conftest$ac_exeext
10926if { (ac_try="$ac_link"
10927case "(($ac_try" in
10928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929 *) ac_try_echo=$ac_try;;
10930esac
10931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932 (eval "$ac_link") 2>conftest.er1
10933 ac_status=$?
10934 grep -v '^ *+' conftest.er1 >conftest.err
10935 rm -f conftest.er1
10936 cat conftest.err >&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } &&
10939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10940 { (case "(($ac_try" in
10941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10942 *) ac_try_echo=$ac_try;;
10943esac
10944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10945 (eval "$ac_try") 2>&5
10946 ac_status=$?
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; } &&
10949 { ac_try='test -s conftest$ac_exeext'
10950 { (case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10953esac
10954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955 (eval "$ac_try") 2>&5
10956 ac_status=$?
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; }; then
10959 eval "$as_ac_var=yes"
10960else
10961 echo "$as_me: failed program was:" >&5
10962sed 's/^/| /' conftest.$ac_ext >&5
10963
10964 eval "$as_ac_var=no"
10965fi
10966
10967rm -f core conftest.err conftest.$ac_objext \
10968 conftest$ac_exeext conftest.$ac_ext
10969fi
10970ac_res=`eval echo '${'$as_ac_var'}'`
10971 { echo "$as_me:$LINENO: result: $ac_res" >&5
10972echo "${ECHO_T}$ac_res" >&6; }
10973if test `eval echo '${'$as_ac_var'}'` = yes; then
10974 cat >>confdefs.h <<_ACEOF
10975#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10976_ACEOF
10977
10978fi
10979done
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11009 stdio.h unistd.h
11010do
11011as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11012if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11016 echo $ECHO_N "(cached) $ECHO_C" >&6
11017fi
11018ac_res=`eval echo '${'$as_ac_Header'}'`
11019 { echo "$as_me:$LINENO: result: $ac_res" >&5
11020echo "${ECHO_T}$ac_res" >&6; }
11021else
11022 # Is the header compilable?
11023{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11024echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11025cat >conftest.$ac_ext <<_ACEOF
11026/* confdefs.h. */
11027_ACEOF
11028cat confdefs.h >>conftest.$ac_ext
11029cat >>conftest.$ac_ext <<_ACEOF
11030/* end confdefs.h. */
11031$ac_includes_default
11032#include <$ac_header>
11033_ACEOF
11034rm -f conftest.$ac_objext
11035if { (ac_try="$ac_compile"
11036case "(($ac_try" in
11037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038 *) ac_try_echo=$ac_try;;
11039esac
11040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11041 (eval "$ac_compile") 2>conftest.er1
11042 ac_status=$?
11043 grep -v '^ *+' conftest.er1 >conftest.err
11044 rm -f conftest.er1
11045 cat conftest.err >&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); } &&
11048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11049 { (case "(($ac_try" in
11050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11051 *) ac_try_echo=$ac_try;;
11052esac
11053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11054 (eval "$ac_try") 2>&5
11055 ac_status=$?
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); }; } &&
11058 { ac_try='test -s conftest.$ac_objext'
11059 { (case "(($ac_try" in
11060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11061 *) ac_try_echo=$ac_try;;
11062esac
11063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11064 (eval "$ac_try") 2>&5
11065 ac_status=$?
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); }; }; then
11068 ac_header_compiler=yes
11069else
11070 echo "$as_me: failed program was:" >&5
11071sed 's/^/| /' conftest.$ac_ext >&5
11072
11073 ac_header_compiler=no
11074fi
11075
11076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11077{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11078echo "${ECHO_T}$ac_header_compiler" >&6; }
11079
11080# Is the header present?
11081{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11082echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11083cat >conftest.$ac_ext <<_ACEOF
11084/* confdefs.h. */
11085_ACEOF
11086cat confdefs.h >>conftest.$ac_ext
11087cat >>conftest.$ac_ext <<_ACEOF
11088/* end confdefs.h. */
11089#include <$ac_header>
11090_ACEOF
11091if { (ac_try="$ac_cpp conftest.$ac_ext"
11092case "(($ac_try" in
11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094 *) ac_try_echo=$ac_try;;
11095esac
11096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11098 ac_status=$?
11099 grep -v '^ *+' conftest.er1 >conftest.err
11100 rm -f conftest.er1
11101 cat conftest.err >&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } >/dev/null; then
11104 if test -s conftest.err; then
11105 ac_cpp_err=$ac_c_preproc_warn_flag
11106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11107 else
11108 ac_cpp_err=
11109 fi
11110else
11111 ac_cpp_err=yes
11112fi
11113if test -z "$ac_cpp_err"; then
11114 ac_header_preproc=yes
11115else
11116 echo "$as_me: failed program was:" >&5
11117sed 's/^/| /' conftest.$ac_ext >&5
11118
11119 ac_header_preproc=no
11120fi
11121
11122rm -f conftest.err conftest.$ac_ext
11123{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11124echo "${ECHO_T}$ac_header_preproc" >&6; }
11125
11126# So? What about this header?
11127case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11128 yes:no: )
11129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11130echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11132echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11133 ac_header_preproc=yes
11134 ;;
11135 no:yes:* )
11136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11137echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11139echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11141echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11143echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11145echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11147echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11148 ( cat <<\_ASBOX
11149## ------------------------------ ##
11150## Report this to bugs@yourdomain ##
11151## ------------------------------ ##
11152_ASBOX
11153 ) | sed "s/^/$as_me: WARNING: /" >&2
11154 ;;
11155esac
11156{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11157echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11158if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11160else
11161 eval "$as_ac_Header=\$ac_header_preproc"
11162fi
11163ac_res=`eval echo '${'$as_ac_Header'}'`
11164 { echo "$as_me:$LINENO: result: $ac_res" >&5
11165echo "${ECHO_T}$ac_res" >&6; }
11166
11167fi
11168if test `eval echo '${'$as_ac_Header'}'` = yes; then
11169 cat >>confdefs.h <<_ACEOF
11170#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11171_ACEOF
11172
11173fi
11174
11175done
11176
11177
11178
11179
11180
11181for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11182do
11183as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11184if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11189fi
11190ac_res=`eval echo '${'$as_ac_Header'}'`
11191 { echo "$as_me:$LINENO: result: $ac_res" >&5
11192echo "${ECHO_T}$ac_res" >&6; }
11193else
11194 # Is the header compilable?
11195{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11196echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11197cat >conftest.$ac_ext <<_ACEOF
11198/* confdefs.h. */
11199_ACEOF
11200cat confdefs.h >>conftest.$ac_ext
11201cat >>conftest.$ac_ext <<_ACEOF
11202/* end confdefs.h. */
11203$ac_includes_default
11204#include <$ac_header>
11205_ACEOF
11206rm -f conftest.$ac_objext
11207if { (ac_try="$ac_compile"
11208case "(($ac_try" in
11209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11210 *) ac_try_echo=$ac_try;;
11211esac
11212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11213 (eval "$ac_compile") 2>conftest.er1
11214 ac_status=$?
11215 grep -v '^ *+' conftest.er1 >conftest.err
11216 rm -f conftest.er1
11217 cat conftest.err >&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); } &&
11220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11221 { (case "(($ac_try" in
11222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223 *) ac_try_echo=$ac_try;;
11224esac
11225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226 (eval "$ac_try") 2>&5
11227 ac_status=$?
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; } &&
11230 { ac_try='test -s conftest.$ac_objext'
11231 { (case "(($ac_try" in
11232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11233 *) ac_try_echo=$ac_try;;
11234esac
11235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11236 (eval "$ac_try") 2>&5
11237 ac_status=$?
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; }; then
11240 ac_header_compiler=yes
11241else
11242 echo "$as_me: failed program was:" >&5
11243sed 's/^/| /' conftest.$ac_ext >&5
11244
11245 ac_header_compiler=no
11246fi
11247
11248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11249{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11250echo "${ECHO_T}$ac_header_compiler" >&6; }
11251
11252# Is the header present?
11253{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11254echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11255cat >conftest.$ac_ext <<_ACEOF
11256/* confdefs.h. */
11257_ACEOF
11258cat confdefs.h >>conftest.$ac_ext
11259cat >>conftest.$ac_ext <<_ACEOF
11260/* end confdefs.h. */
11261#include <$ac_header>
11262_ACEOF
11263if { (ac_try="$ac_cpp conftest.$ac_ext"
11264case "(($ac_try" in
11265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266 *) ac_try_echo=$ac_try;;
11267esac
11268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11270 ac_status=$?
11271 grep -v '^ *+' conftest.er1 >conftest.err
11272 rm -f conftest.er1
11273 cat conftest.err >&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } >/dev/null; then
11276 if test -s conftest.err; then
11277 ac_cpp_err=$ac_c_preproc_warn_flag
11278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11279 else
11280 ac_cpp_err=
11281 fi
11282else
11283 ac_cpp_err=yes
11284fi
11285if test -z "$ac_cpp_err"; then
11286 ac_header_preproc=yes
11287else
11288 echo "$as_me: failed program was:" >&5
11289sed 's/^/| /' conftest.$ac_ext >&5
11290
11291 ac_header_preproc=no
11292fi
11293
11294rm -f conftest.err conftest.$ac_ext
11295{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11296echo "${ECHO_T}$ac_header_preproc" >&6; }
11297
11298# So? What about this header?
11299case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11300 yes:no: )
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11302echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11304echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11305 ac_header_preproc=yes
11306 ;;
11307 no:yes:* )
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11309echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11311echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11313echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11315echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11317echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11319echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11320 ( cat <<\_ASBOX
11321## ------------------------------ ##
11322## Report this to bugs@yourdomain ##
11323## ------------------------------ ##
11324_ASBOX
11325 ) | sed "s/^/$as_me: WARNING: /" >&2
11326 ;;
11327esac
11328{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11332else
11333 eval "$as_ac_Header=\$ac_header_preproc"
11334fi
11335ac_res=`eval echo '${'$as_ac_Header'}'`
11336 { echo "$as_me:$LINENO: result: $ac_res" >&5
11337echo "${ECHO_T}$ac_res" >&6; }
11338
11339fi
11340if test `eval echo '${'$as_ac_Header'}'` = yes; then
11341 cat >>confdefs.h <<_ACEOF
11342#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11343_ACEOF
11344
11345fi
11346
11347done
11348
11349
11350
11351for ac_header in string.h strings.h
11352do
11353as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11357if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
11359fi
11360ac_res=`eval echo '${'$as_ac_Header'}'`
11361 { echo "$as_me:$LINENO: result: $ac_res" >&5
11362echo "${ECHO_T}$ac_res" >&6; }
11363else
11364 # Is the header compilable?
11365{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11366echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11367cat >conftest.$ac_ext <<_ACEOF
11368/* confdefs.h. */
11369_ACEOF
11370cat confdefs.h >>conftest.$ac_ext
11371cat >>conftest.$ac_ext <<_ACEOF
11372/* end confdefs.h. */
11373$ac_includes_default
11374#include <$ac_header>
11375_ACEOF
11376rm -f conftest.$ac_objext
11377if { (ac_try="$ac_compile"
11378case "(($ac_try" in
11379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11380 *) ac_try_echo=$ac_try;;
11381esac
11382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11383 (eval "$ac_compile") 2>conftest.er1
11384 ac_status=$?
11385 grep -v '^ *+' conftest.er1 >conftest.err
11386 rm -f conftest.er1
11387 cat conftest.err >&5
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); } &&
11390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11391 { (case "(($ac_try" in
11392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11393 *) ac_try_echo=$ac_try;;
11394esac
11395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11396 (eval "$ac_try") 2>&5
11397 ac_status=$?
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; } &&
11400 { ac_try='test -s conftest.$ac_objext'
11401 { (case "(($ac_try" in
11402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403 *) ac_try_echo=$ac_try;;
11404esac
11405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11406 (eval "$ac_try") 2>&5
11407 ac_status=$?
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; }; then
11410 ac_header_compiler=yes
11411else
11412 echo "$as_me: failed program was:" >&5
11413sed 's/^/| /' conftest.$ac_ext >&5
11414
11415 ac_header_compiler=no
11416fi
11417
11418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11419{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11420echo "${ECHO_T}$ac_header_compiler" >&6; }
11421
11422# Is the header present?
11423{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11424echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11425cat >conftest.$ac_ext <<_ACEOF
11426/* confdefs.h. */
11427_ACEOF
11428cat confdefs.h >>conftest.$ac_ext
11429cat >>conftest.$ac_ext <<_ACEOF
11430/* end confdefs.h. */
11431#include <$ac_header>
11432_ACEOF
11433if { (ac_try="$ac_cpp conftest.$ac_ext"
11434case "(($ac_try" in
11435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436 *) ac_try_echo=$ac_try;;
11437esac
11438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11440 ac_status=$?
11441 grep -v '^ *+' conftest.er1 >conftest.err
11442 rm -f conftest.er1
11443 cat conftest.err >&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } >/dev/null; then
11446 if test -s conftest.err; then
11447 ac_cpp_err=$ac_c_preproc_warn_flag
11448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11449 else
11450 ac_cpp_err=
11451 fi
11452else
11453 ac_cpp_err=yes
11454fi
11455if test -z "$ac_cpp_err"; then
11456 ac_header_preproc=yes
11457else
11458 echo "$as_me: failed program was:" >&5
11459sed 's/^/| /' conftest.$ac_ext >&5
11460
11461 ac_header_preproc=no
11462fi
11463
11464rm -f conftest.err conftest.$ac_ext
11465{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11466echo "${ECHO_T}$ac_header_preproc" >&6; }
11467
11468# So? What about this header?
11469case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11470 yes:no: )
11471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11472echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11474echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11475 ac_header_preproc=yes
11476 ;;
11477 no:yes:* )
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11479echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11481echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11483echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11485echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11487echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11489echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11490 ( cat <<\_ASBOX
11491## ------------------------------ ##
11492## Report this to bugs@yourdomain ##
11493## ------------------------------ ##
11494_ASBOX
11495 ) | sed "s/^/$as_me: WARNING: /" >&2
11496 ;;
11497esac
11498{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11499echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11500if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11502else
11503 eval "$as_ac_Header=\$ac_header_preproc"
11504fi
11505ac_res=`eval echo '${'$as_ac_Header'}'`
11506 { echo "$as_me:$LINENO: result: $ac_res" >&5
11507echo "${ECHO_T}$ac_res" >&6; }
11508
11509fi
11510if test `eval echo '${'$as_ac_Header'}'` = yes; then
11511 cat >>confdefs.h <<_ACEOF
11512#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11513_ACEOF
11514 break
11515fi
11516
11517done
11518
11519
11520
11521
11522for ac_func in strchr index
11523do
11524as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11525{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11526echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11527if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11528 echo $ECHO_N "(cached) $ECHO_C" >&6
11529else
11530 cat >conftest.$ac_ext <<_ACEOF
11531/* confdefs.h. */
11532_ACEOF
11533cat confdefs.h >>conftest.$ac_ext
11534cat >>conftest.$ac_ext <<_ACEOF
11535/* end confdefs.h. */
11536/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11538#define $ac_func innocuous_$ac_func
11539
11540/* System header to define __stub macros and hopefully few prototypes,
11541 which can conflict with char $ac_func (); below.
11542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11543 <limits.h> exists even on freestanding compilers. */
11544
11545#ifdef __STDC__
11546# include <limits.h>
11547#else
11548# include <assert.h>
11549#endif
11550
11551#undef $ac_func
11552
11553/* Override any GCC internal prototype to avoid an error.
11554 Use char because int might match the return type of a GCC
11555 builtin and then its argument prototype would still apply. */
11556#ifdef __cplusplus
11557extern "C"
11558#endif
11559char $ac_func ();
11560/* The GNU C library defines this for functions which it implements
11561 to always fail with ENOSYS. Some functions are actually named
11562 something starting with __ and the normal name is an alias. */
11563#if defined __stub_$ac_func || defined __stub___$ac_func
11564choke me
11565#endif
11566
11567int
11568main ()
11569{
11570return $ac_func ();
11571 ;
11572 return 0;
11573}
11574_ACEOF
11575rm -f conftest.$ac_objext conftest$ac_exeext
11576if { (ac_try="$ac_link"
11577case "(($ac_try" in
11578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11579 *) ac_try_echo=$ac_try;;
11580esac
11581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582 (eval "$ac_link") 2>conftest.er1
11583 ac_status=$?
11584 grep -v '^ *+' conftest.er1 >conftest.err
11585 rm -f conftest.er1
11586 cat conftest.err >&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } &&
11589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11590 { (case "(($ac_try" in
11591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11592 *) ac_try_echo=$ac_try;;
11593esac
11594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11595 (eval "$ac_try") 2>&5
11596 ac_status=$?
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; } &&
11599 { ac_try='test -s conftest$ac_exeext'
11600 { (case "(($ac_try" in
11601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11602 *) ac_try_echo=$ac_try;;
11603esac
11604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11605 (eval "$ac_try") 2>&5
11606 ac_status=$?
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); }; }; then
11609 eval "$as_ac_var=yes"
11610else
11611 echo "$as_me: failed program was:" >&5
11612sed 's/^/| /' conftest.$ac_ext >&5
11613
11614 eval "$as_ac_var=no"
11615fi
11616
11617rm -f core conftest.err conftest.$ac_objext \
11618 conftest$ac_exeext conftest.$ac_ext
11619fi
11620ac_res=`eval echo '${'$as_ac_var'}'`
11621 { echo "$as_me:$LINENO: result: $ac_res" >&5
11622echo "${ECHO_T}$ac_res" >&6; }
11623if test `eval echo '${'$as_ac_var'}'` = yes; then
11624 cat >>confdefs.h <<_ACEOF
11625#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11626_ACEOF
11627 break
11628fi
11629done
11630
11631
11632
11633for ac_func in strrchr rindex
11634do
11635as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11636{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11637echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11638if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11640else
11641 cat >conftest.$ac_ext <<_ACEOF
11642/* confdefs.h. */
11643_ACEOF
11644cat confdefs.h >>conftest.$ac_ext
11645cat >>conftest.$ac_ext <<_ACEOF
11646/* end confdefs.h. */
11647/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11649#define $ac_func innocuous_$ac_func
11650
11651/* System header to define __stub macros and hopefully few prototypes,
11652 which can conflict with char $ac_func (); below.
11653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11654 <limits.h> exists even on freestanding compilers. */
11655
11656#ifdef __STDC__
11657# include <limits.h>
11658#else
11659# include <assert.h>
11660#endif
11661
11662#undef $ac_func
11663
11664/* Override any GCC internal prototype to avoid an error.
11665 Use char because int might match the return type of a GCC
11666 builtin and then its argument prototype would still apply. */
11667#ifdef __cplusplus
11668extern "C"
11669#endif
11670char $ac_func ();
11671/* The GNU C library defines this for functions which it implements
11672 to always fail with ENOSYS. Some functions are actually named
11673 something starting with __ and the normal name is an alias. */
11674#if defined __stub_$ac_func || defined __stub___$ac_func
11675choke me
11676#endif
11677
11678int
11679main ()
11680{
11681return $ac_func ();
11682 ;
11683 return 0;
11684}
11685_ACEOF
11686rm -f conftest.$ac_objext conftest$ac_exeext
11687if { (ac_try="$ac_link"
11688case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11691esac
11692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_link") 2>conftest.er1
11694 ac_status=$?
11695 grep -v '^ *+' conftest.er1 >conftest.err
11696 rm -f conftest.er1
11697 cat conftest.err >&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } &&
11700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11701 { (case "(($ac_try" in
11702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703 *) ac_try_echo=$ac_try;;
11704esac
11705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706 (eval "$ac_try") 2>&5
11707 ac_status=$?
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; } &&
11710 { ac_try='test -s conftest$ac_exeext'
11711 { (case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11714esac
11715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716 (eval "$ac_try") 2>&5
11717 ac_status=$?
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 eval "$as_ac_var=yes"
11721else
11722 echo "$as_me: failed program was:" >&5
11723sed 's/^/| /' conftest.$ac_ext >&5
11724
11725 eval "$as_ac_var=no"
11726fi
11727
11728rm -f core conftest.err conftest.$ac_objext \
11729 conftest$ac_exeext conftest.$ac_ext
11730fi
11731ac_res=`eval echo '${'$as_ac_var'}'`
11732 { echo "$as_me:$LINENO: result: $ac_res" >&5
11733echo "${ECHO_T}$ac_res" >&6; }
11734if test `eval echo '${'$as_ac_var'}'` = yes; then
11735 cat >>confdefs.h <<_ACEOF
11736#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11737_ACEOF
11738 break
11739fi
11740done
11741
11742
11743
11744for ac_func in memcpy bcopy
11745do
11746as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11747{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11748echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11749if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11750 echo $ECHO_N "(cached) $ECHO_C" >&6
11751else
11752 cat >conftest.$ac_ext <<_ACEOF
11753/* confdefs.h. */
11754_ACEOF
11755cat confdefs.h >>conftest.$ac_ext
11756cat >>conftest.$ac_ext <<_ACEOF
11757/* end confdefs.h. */
11758/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11760#define $ac_func innocuous_$ac_func
11761
11762/* System header to define __stub macros and hopefully few prototypes,
11763 which can conflict with char $ac_func (); below.
11764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11765 <limits.h> exists even on freestanding compilers. */
11766
11767#ifdef __STDC__
11768# include <limits.h>
11769#else
11770# include <assert.h>
11771#endif
11772
11773#undef $ac_func
11774
11775/* Override any GCC internal prototype to avoid an error.
11776 Use char because int might match the return type of a GCC
11777 builtin and then its argument prototype would still apply. */
11778#ifdef __cplusplus
11779extern "C"
11780#endif
11781char $ac_func ();
11782/* The GNU C library defines this for functions which it implements
11783 to always fail with ENOSYS. Some functions are actually named
11784 something starting with __ and the normal name is an alias. */
11785#if defined __stub_$ac_func || defined __stub___$ac_func
11786choke me
11787#endif
11788
11789int
11790main ()
11791{
11792return $ac_func ();
11793 ;
11794 return 0;
11795}
11796_ACEOF
11797rm -f conftest.$ac_objext conftest$ac_exeext
11798if { (ac_try="$ac_link"
11799case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11802esac
11803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804 (eval "$ac_link") 2>conftest.er1
11805 ac_status=$?
11806 grep -v '^ *+' conftest.er1 >conftest.err
11807 rm -f conftest.er1
11808 cat conftest.err >&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } &&
11811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11812 { (case "(($ac_try" in
11813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814 *) ac_try_echo=$ac_try;;
11815esac
11816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817 (eval "$ac_try") 2>&5
11818 ac_status=$?
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; } &&
11821 { ac_try='test -s conftest$ac_exeext'
11822 { (case "(($ac_try" in
11823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824 *) ac_try_echo=$ac_try;;
11825esac
11826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827 (eval "$ac_try") 2>&5
11828 ac_status=$?
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; }; then
11831 eval "$as_ac_var=yes"
11832else
11833 echo "$as_me: failed program was:" >&5
11834sed 's/^/| /' conftest.$ac_ext >&5
11835
11836 eval "$as_ac_var=no"
11837fi
11838
11839rm -f core conftest.err conftest.$ac_objext \
11840 conftest$ac_exeext conftest.$ac_ext
11841fi
11842ac_res=`eval echo '${'$as_ac_var'}'`
11843 { echo "$as_me:$LINENO: result: $ac_res" >&5
11844echo "${ECHO_T}$ac_res" >&6; }
11845if test `eval echo '${'$as_ac_var'}'` = yes; then
11846 cat >>confdefs.h <<_ACEOF
11847#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11848_ACEOF
11849 break
11850fi
11851done
11852
11853
11854
11855for ac_func in memmove strcmp
11856do
11857as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11858{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11859echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11860if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11862else
11863 cat >conftest.$ac_ext <<_ACEOF
11864/* confdefs.h. */
11865_ACEOF
11866cat confdefs.h >>conftest.$ac_ext
11867cat >>conftest.$ac_ext <<_ACEOF
11868/* end confdefs.h. */
11869/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11871#define $ac_func innocuous_$ac_func
11872
11873/* System header to define __stub macros and hopefully few prototypes,
11874 which can conflict with char $ac_func (); below.
11875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11876 <limits.h> exists even on freestanding compilers. */
11877
11878#ifdef __STDC__
11879# include <limits.h>
11880#else
11881# include <assert.h>
11882#endif
11883
11884#undef $ac_func
11885
11886/* Override any GCC internal prototype to avoid an error.
11887 Use char because int might match the return type of a GCC
11888 builtin and then its argument prototype would still apply. */
11889#ifdef __cplusplus
11890extern "C"
11891#endif
11892char $ac_func ();
11893/* The GNU C library defines this for functions which it implements
11894 to always fail with ENOSYS. Some functions are actually named
11895 something starting with __ and the normal name is an alias. */
11896#if defined __stub_$ac_func || defined __stub___$ac_func
11897choke me
11898#endif
11899
11900int
11901main ()
11902{
11903return $ac_func ();
11904 ;
11905 return 0;
11906}
11907_ACEOF
11908rm -f conftest.$ac_objext conftest$ac_exeext
11909if { (ac_try="$ac_link"
11910case "(($ac_try" in
11911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912 *) ac_try_echo=$ac_try;;
11913esac
11914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915 (eval "$ac_link") 2>conftest.er1
11916 ac_status=$?
11917 grep -v '^ *+' conftest.er1 >conftest.err
11918 rm -f conftest.er1
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } &&
11922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11923 { (case "(($ac_try" in
11924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925 *) ac_try_echo=$ac_try;;
11926esac
11927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928 (eval "$ac_try") 2>&5
11929 ac_status=$?
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; } &&
11932 { ac_try='test -s conftest$ac_exeext'
11933 { (case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11936esac
11937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_try") 2>&5
11939 ac_status=$?
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; }; then
11942 eval "$as_ac_var=yes"
11943else
11944 echo "$as_me: failed program was:" >&5
11945sed 's/^/| /' conftest.$ac_ext >&5
11946
11947 eval "$as_ac_var=no"
11948fi
11949
11950rm -f core conftest.err conftest.$ac_objext \
11951 conftest$ac_exeext conftest.$ac_ext
11952fi
11953ac_res=`eval echo '${'$as_ac_var'}'`
11954 { echo "$as_me:$LINENO: result: $ac_res" >&5
11955echo "${ECHO_T}$ac_res" >&6; }
11956if test `eval echo '${'$as_ac_var'}'` = yes; then
11957 cat >>confdefs.h <<_ACEOF
11958#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11959_ACEOF
11960
11961fi
11962done
11963
11964
11965
11966
11967for ac_func in closedir opendir readdir
11968do
11969as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11970{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11971echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11972if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11974else
11975 cat >conftest.$ac_ext <<_ACEOF
11976/* confdefs.h. */
11977_ACEOF
11978cat confdefs.h >>conftest.$ac_ext
11979cat >>conftest.$ac_ext <<_ACEOF
11980/* end confdefs.h. */
11981/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11983#define $ac_func innocuous_$ac_func
11984
11985/* System header to define __stub macros and hopefully few prototypes,
11986 which can conflict with char $ac_func (); below.
11987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11988 <limits.h> exists even on freestanding compilers. */
11989
11990#ifdef __STDC__
11991# include <limits.h>
11992#else
11993# include <assert.h>
11994#endif
11995
11996#undef $ac_func
11997
11998/* Override any GCC internal prototype to avoid an error.
11999 Use char because int might match the return type of a GCC
12000 builtin and then its argument prototype would still apply. */
12001#ifdef __cplusplus
12002extern "C"
12003#endif
12004char $ac_func ();
12005/* The GNU C library defines this for functions which it implements
12006 to always fail with ENOSYS. Some functions are actually named
12007 something starting with __ and the normal name is an alias. */
12008#if defined __stub_$ac_func || defined __stub___$ac_func
12009choke me
12010#endif
12011
12012int
12013main ()
12014{
12015return $ac_func ();
12016 ;
12017 return 0;
12018}
12019_ACEOF
12020rm -f conftest.$ac_objext conftest$ac_exeext
12021if { (ac_try="$ac_link"
12022case "(($ac_try" in
12023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024 *) ac_try_echo=$ac_try;;
12025esac
12026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12027 (eval "$ac_link") 2>conftest.er1
12028 ac_status=$?
12029 grep -v '^ *+' conftest.er1 >conftest.err
12030 rm -f conftest.er1
12031 cat conftest.err >&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); } &&
12034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12035 { (case "(($ac_try" in
12036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12037 *) ac_try_echo=$ac_try;;
12038esac
12039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12040 (eval "$ac_try") 2>&5
12041 ac_status=$?
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; } &&
12044 { ac_try='test -s conftest$ac_exeext'
12045 { (case "(($ac_try" in
12046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047 *) ac_try_echo=$ac_try;;
12048esac
12049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050 (eval "$ac_try") 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; }; then
12054 eval "$as_ac_var=yes"
12055else
12056 echo "$as_me: failed program was:" >&5
12057sed 's/^/| /' conftest.$ac_ext >&5
12058
12059 eval "$as_ac_var=no"
12060fi
12061
12062rm -f core conftest.err conftest.$ac_objext \
12063 conftest$ac_exeext conftest.$ac_ext
12064fi
12065ac_res=`eval echo '${'$as_ac_var'}'`
12066 { echo "$as_me:$LINENO: result: $ac_res" >&5
12067echo "${ECHO_T}$ac_res" >&6; }
12068if test `eval echo '${'$as_ac_var'}'` = yes; then
12069 cat >>confdefs.h <<_ACEOF
12070#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12071_ACEOF
12072
12073fi
12074done
12075
12076
12077
12078{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12079echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12080
12081ICC=no
12082IXX=no
12083case $CC in
12084 icc*|icpc*)
12085 ICC=yes
12086 IXX=yes
12087 ;;
12088 *)
12089 ;;
12090esac
12091
12092if test "$GCC" != "yes" && test "$ICC" != "yes"
12093then
12094 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12095echo "$as_me: error: gcc|icc required but not found" >&2;}
12096 { (exit 1); exit 1; }; }
12097fi
12098
12099if test "$GXX" != "yes" && test "$IXX" != "yes"
12100then
12101 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12102echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12103 { (exit 1); exit 1; }; }
12104fi
12105
12106if test "$GCC" = "yes"
12107then
12108 cat >conftest.$ac_ext <<_ACEOF
12109#if !defined(__GNUC__) || __GNUC__ < 3
12110#error Unsupported GCC version
12111#endif
12112
12113_ACEOF
12114rm -f conftest.$ac_objext
12115if { (ac_try="$ac_compile"
12116case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12119esac
12120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121 (eval "$ac_compile") 2>conftest.er1
12122 ac_status=$?
12123 grep -v '^ *+' conftest.er1 >conftest.err
12124 rm -f conftest.er1
12125 cat conftest.err >&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } &&
12128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12129 { (case "(($ac_try" in
12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131 *) ac_try_echo=$ac_try;;
12132esac
12133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134 (eval "$ac_try") 2>&5
12135 ac_status=$?
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; } &&
12138 { ac_try='test -s conftest.$ac_objext'
12139 { (case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12142esac
12143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_try") 2>&5
12145 ac_status=$?
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; }; then
12148 :
12149else
12150 echo "$as_me: failed program was:" >&5
12151sed 's/^/| /' conftest.$ac_ext >&5
12152
12153 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12154echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12155 { (exit 1); exit 1; }; }
12156fi
12157
12158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12159fi
12160
12161if test -z "$llvm_cv_gnu_make_command"
12162then
12163 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12164echo "$as_me: error: GNU Make required but not found" >&2;}
12165 { (exit 1); exit 1; }; }
12166fi
12167
12168{ echo "$as_me:$LINENO: result: ok" >&5
12169echo "${ECHO_T}ok" >&6; }
12170
12171{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12172echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12173NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12174
12175NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12176
12177{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12178echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12179
12180
12181
12182{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12183echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12184if test "${ac_cv_lib_m_sin+set}" = set; then
12185 echo $ECHO_N "(cached) $ECHO_C" >&6
12186else
12187 ac_check_lib_save_LIBS=$LIBS
12188LIBS="-lm $LIBS"
12189cat >conftest.$ac_ext <<_ACEOF
12190/* confdefs.h. */
12191_ACEOF
12192cat confdefs.h >>conftest.$ac_ext
12193cat >>conftest.$ac_ext <<_ACEOF
12194/* end confdefs.h. */
12195
12196/* Override any GCC internal prototype to avoid an error.
12197 Use char because int might match the return type of a GCC
12198 builtin and then its argument prototype would still apply. */
12199#ifdef __cplusplus
12200extern "C"
12201#endif
12202char sin ();
12203int
12204main ()
12205{
12206return sin ();
12207 ;
12208 return 0;
12209}
12210_ACEOF
12211rm -f conftest.$ac_objext conftest$ac_exeext
12212if { (ac_try="$ac_link"
12213case "(($ac_try" in
12214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12215 *) ac_try_echo=$ac_try;;
12216esac
12217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12218 (eval "$ac_link") 2>conftest.er1
12219 ac_status=$?
12220 grep -v '^ *+' conftest.er1 >conftest.err
12221 rm -f conftest.er1
12222 cat conftest.err >&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); } &&
12225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12226 { (case "(($ac_try" in
12227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228 *) ac_try_echo=$ac_try;;
12229esac
12230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231 (eval "$ac_try") 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; } &&
12235 { ac_try='test -s conftest$ac_exeext'
12236 { (case "(($ac_try" in
12237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238 *) ac_try_echo=$ac_try;;
12239esac
12240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12241 (eval "$ac_try") 2>&5
12242 ac_status=$?
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); }; }; then
12245 ac_cv_lib_m_sin=yes
12246else
12247 echo "$as_me: failed program was:" >&5
12248sed 's/^/| /' conftest.$ac_ext >&5
12249
12250 ac_cv_lib_m_sin=no
12251fi
12252
12253rm -f core conftest.err conftest.$ac_objext \
12254 conftest$ac_exeext conftest.$ac_ext
12255LIBS=$ac_check_lib_save_LIBS
12256fi
12257{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12258echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12259if test $ac_cv_lib_m_sin = yes; then
12260 cat >>confdefs.h <<_ACEOF
12261#define HAVE_LIBM 1
12262_ACEOF
12263
12264 LIBS="-lm $LIBS"
12265
12266fi
12267
12268if test "$llvm_cv_os_type" = "MingW" ; then
12269
12270{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12271echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12272if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12274else
12275 ac_check_lib_save_LIBS=$LIBS
12276LIBS="-limagehlp $LIBS"
12277cat >conftest.$ac_ext <<_ACEOF
12278/* confdefs.h. */
12279_ACEOF
12280cat confdefs.h >>conftest.$ac_ext
12281cat >>conftest.$ac_ext <<_ACEOF
12282/* end confdefs.h. */
12283
12284
12285int
12286main ()
12287{
12288return main ();
12289 ;
12290 return 0;
12291}
12292_ACEOF
12293rm -f conftest.$ac_objext conftest$ac_exeext
12294if { (ac_try="$ac_link"
12295case "(($ac_try" in
12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12298esac
12299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_link") 2>conftest.er1
12301 ac_status=$?
12302 grep -v '^ *+' conftest.er1 >conftest.err
12303 rm -f conftest.er1
12304 cat conftest.err >&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } &&
12307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12308 { (case "(($ac_try" in
12309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310 *) ac_try_echo=$ac_try;;
12311esac
12312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313 (eval "$ac_try") 2>&5
12314 ac_status=$?
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; } &&
12317 { ac_try='test -s conftest$ac_exeext'
12318 { (case "(($ac_try" in
12319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320 *) ac_try_echo=$ac_try;;
12321esac
12322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12323 (eval "$ac_try") 2>&5
12324 ac_status=$?
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); }; }; then
12327 ac_cv_lib_imagehlp_main=yes
12328else
12329 echo "$as_me: failed program was:" >&5
12330sed 's/^/| /' conftest.$ac_ext >&5
12331
12332 ac_cv_lib_imagehlp_main=no
12333fi
12334
12335rm -f core conftest.err conftest.$ac_objext \
12336 conftest$ac_exeext conftest.$ac_ext
12337LIBS=$ac_check_lib_save_LIBS
12338fi
12339{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12340echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12341if test $ac_cv_lib_imagehlp_main = yes; then
12342 cat >>confdefs.h <<_ACEOF
12343#define HAVE_LIBIMAGEHLP 1
12344_ACEOF
12345
12346 LIBS="-limagehlp $LIBS"
12347
12348fi
12349
12350
12351{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12352echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12353if test "${ac_cv_lib_psapi_main+set}" = set; then
12354 echo $ECHO_N "(cached) $ECHO_C" >&6
12355else
12356 ac_check_lib_save_LIBS=$LIBS
12357LIBS="-lpsapi $LIBS"
12358cat >conftest.$ac_ext <<_ACEOF
12359/* confdefs.h. */
12360_ACEOF
12361cat confdefs.h >>conftest.$ac_ext
12362cat >>conftest.$ac_ext <<_ACEOF
12363/* end confdefs.h. */
12364
12365
12366int
12367main ()
12368{
12369return main ();
12370 ;
12371 return 0;
12372}
12373_ACEOF
12374rm -f conftest.$ac_objext conftest$ac_exeext
12375if { (ac_try="$ac_link"
12376case "(($ac_try" in
12377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378 *) ac_try_echo=$ac_try;;
12379esac
12380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381 (eval "$ac_link") 2>conftest.er1
12382 ac_status=$?
12383 grep -v '^ *+' conftest.er1 >conftest.err
12384 rm -f conftest.er1
12385 cat conftest.err >&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } &&
12388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12389 { (case "(($ac_try" in
12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391 *) ac_try_echo=$ac_try;;
12392esac
12393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394 (eval "$ac_try") 2>&5
12395 ac_status=$?
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; } &&
12398 { ac_try='test -s conftest$ac_exeext'
12399 { (case "(($ac_try" in
12400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401 *) ac_try_echo=$ac_try;;
12402esac
12403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404 (eval "$ac_try") 2>&5
12405 ac_status=$?
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); }; }; then
12408 ac_cv_lib_psapi_main=yes
12409else
12410 echo "$as_me: failed program was:" >&5
12411sed 's/^/| /' conftest.$ac_ext >&5
12412
12413 ac_cv_lib_psapi_main=no
12414fi
12415
12416rm -f core conftest.err conftest.$ac_objext \
12417 conftest$ac_exeext conftest.$ac_ext
12418LIBS=$ac_check_lib_save_LIBS
12419fi
12420{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12421echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12422if test $ac_cv_lib_psapi_main = yes; then
12423 cat >>confdefs.h <<_ACEOF
12424#define HAVE_LIBPSAPI 1
12425_ACEOF
12426
12427 LIBS="-lpsapi $LIBS"
12428
12429fi
12430
12431fi
12432
12433{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12434echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12435if test "${ac_cv_search_dlopen+set}" = set; then
12436 echo $ECHO_N "(cached) $ECHO_C" >&6
12437else
12438 ac_func_search_save_LIBS=$LIBS
12439cat >conftest.$ac_ext <<_ACEOF
12440/* confdefs.h. */
12441_ACEOF
12442cat confdefs.h >>conftest.$ac_ext
12443cat >>conftest.$ac_ext <<_ACEOF
12444/* end confdefs.h. */
12445
12446/* Override any GCC internal prototype to avoid an error.
12447 Use char because int might match the return type of a GCC
12448 builtin and then its argument prototype would still apply. */
12449#ifdef __cplusplus
12450extern "C"
12451#endif
12452char dlopen ();
12453int
12454main ()
12455{
12456return dlopen ();
12457 ;
12458 return 0;
12459}
12460_ACEOF
12461for ac_lib in '' dl; do
12462 if test -z "$ac_lib"; then
12463 ac_res="none required"
12464 else
12465 ac_res=-l$ac_lib
12466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12467 fi
12468 rm -f conftest.$ac_objext conftest$ac_exeext
12469if { (ac_try="$ac_link"
12470case "(($ac_try" in
12471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12472 *) ac_try_echo=$ac_try;;
12473esac
12474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12475 (eval "$ac_link") 2>conftest.er1
12476 ac_status=$?
12477 grep -v '^ *+' conftest.er1 >conftest.err
12478 rm -f conftest.er1
12479 cat conftest.err >&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } &&
12482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12483 { (case "(($ac_try" in
12484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485 *) ac_try_echo=$ac_try;;
12486esac
12487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12488 (eval "$ac_try") 2>&5
12489 ac_status=$?
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); }; } &&
12492 { ac_try='test -s conftest$ac_exeext'
12493 { (case "(($ac_try" in
12494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12495 *) ac_try_echo=$ac_try;;
12496esac
12497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12498 (eval "$ac_try") 2>&5
12499 ac_status=$?
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); }; }; then
12502 ac_cv_search_dlopen=$ac_res
12503else
12504 echo "$as_me: failed program was:" >&5
12505sed 's/^/| /' conftest.$ac_ext >&5
12506
12507
12508fi
12509
12510rm -f core conftest.err conftest.$ac_objext \
12511 conftest$ac_exeext
12512 if test "${ac_cv_search_dlopen+set}" = set; then
12513 break
12514fi
12515done
12516if test "${ac_cv_search_dlopen+set}" = set; then
12517 :
12518else
12519 ac_cv_search_dlopen=no
12520fi
12521rm conftest.$ac_ext
12522LIBS=$ac_func_search_save_LIBS
12523fi
12524{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12525echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12526ac_res=$ac_cv_search_dlopen
12527if test "$ac_res" != no; then
12528 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12529
12530cat >>confdefs.h <<\_ACEOF
12531#define HAVE_DLOPEN 1
12532_ACEOF
12533
12534else
12535 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12536echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12537fi
12538
12539
12540if test "$llvm_cv_enable_libffi" = "yes" ; then
12541 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12542echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12543if test "${ac_cv_search_ffi_call+set}" = set; then
12544 echo $ECHO_N "(cached) $ECHO_C" >&6
12545else
12546 ac_func_search_save_LIBS=$LIBS
12547cat >conftest.$ac_ext <<_ACEOF
12548/* confdefs.h. */
12549_ACEOF
12550cat confdefs.h >>conftest.$ac_ext
12551cat >>conftest.$ac_ext <<_ACEOF
12552/* end confdefs.h. */
12553
12554/* Override any GCC internal prototype to avoid an error.
12555 Use char because int might match the return type of a GCC
12556 builtin and then its argument prototype would still apply. */
12557#ifdef __cplusplus
12558extern "C"
12559#endif
12560char ffi_call ();
12561int
12562main ()
12563{
12564return ffi_call ();
12565 ;
12566 return 0;
12567}
12568_ACEOF
12569for ac_lib in '' ffi; do
12570 if test -z "$ac_lib"; then
12571 ac_res="none required"
12572 else
12573 ac_res=-l$ac_lib
12574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12575 fi
12576 rm -f conftest.$ac_objext conftest$ac_exeext
12577if { (ac_try="$ac_link"
12578case "(($ac_try" in
12579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580 *) ac_try_echo=$ac_try;;
12581esac
12582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583 (eval "$ac_link") 2>conftest.er1
12584 ac_status=$?
12585 grep -v '^ *+' conftest.er1 >conftest.err
12586 rm -f conftest.er1
12587 cat conftest.err >&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); } &&
12590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12591 { (case "(($ac_try" in
12592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593 *) ac_try_echo=$ac_try;;
12594esac
12595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596 (eval "$ac_try") 2>&5
12597 ac_status=$?
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; } &&
12600 { ac_try='test -s conftest$ac_exeext'
12601 { (case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12604esac
12605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_try") 2>&5
12607 ac_status=$?
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); }; }; then
12610 ac_cv_search_ffi_call=$ac_res
12611else
12612 echo "$as_me: failed program was:" >&5
12613sed 's/^/| /' conftest.$ac_ext >&5
12614
12615
12616fi
12617
12618rm -f core conftest.err conftest.$ac_objext \
12619 conftest$ac_exeext
12620 if test "${ac_cv_search_ffi_call+set}" = set; then
12621 break
12622fi
12623done
12624if test "${ac_cv_search_ffi_call+set}" = set; then
12625 :
12626else
12627 ac_cv_search_ffi_call=no
12628fi
12629rm conftest.$ac_ext
12630LIBS=$ac_func_search_save_LIBS
12631fi
12632{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12633echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12634ac_res=$ac_cv_search_ffi_call
12635if test "$ac_res" != no; then
12636 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12637
12638cat >>confdefs.h <<\_ACEOF
12639#define HAVE_FFI_CALL 1
12640_ACEOF
12641
12642else
12643 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12644echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12645 { (exit 1); exit 1; }; }
12646fi
12647
12648fi
12649
12650{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12651echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12652if test "${ac_cv_search_mallinfo+set}" = set; then
12653 echo $ECHO_N "(cached) $ECHO_C" >&6
12654else
12655 ac_func_search_save_LIBS=$LIBS
12656cat >conftest.$ac_ext <<_ACEOF
12657/* confdefs.h. */
12658_ACEOF
12659cat confdefs.h >>conftest.$ac_ext
12660cat >>conftest.$ac_ext <<_ACEOF
12661/* end confdefs.h. */
12662
12663/* Override any GCC internal prototype to avoid an error.
12664 Use char because int might match the return type of a GCC
12665 builtin and then its argument prototype would still apply. */
12666#ifdef __cplusplus
12667extern "C"
12668#endif
12669char mallinfo ();
12670int
12671main ()
12672{
12673return mallinfo ();
12674 ;
12675 return 0;
12676}
12677_ACEOF
12678for ac_lib in '' malloc; do
12679 if test -z "$ac_lib"; then
12680 ac_res="none required"
12681 else
12682 ac_res=-l$ac_lib
12683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12684 fi
12685 rm -f conftest.$ac_objext conftest$ac_exeext
12686if { (ac_try="$ac_link"
12687case "(($ac_try" in
12688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689 *) ac_try_echo=$ac_try;;
12690esac
12691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12692 (eval "$ac_link") 2>conftest.er1
12693 ac_status=$?
12694 grep -v '^ *+' conftest.er1 >conftest.err
12695 rm -f conftest.er1
12696 cat conftest.err >&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); } &&
12699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12700 { (case "(($ac_try" in
12701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702 *) ac_try_echo=$ac_try;;
12703esac
12704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705 (eval "$ac_try") 2>&5
12706 ac_status=$?
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; } &&
12709 { ac_try='test -s conftest$ac_exeext'
12710 { (case "(($ac_try" in
12711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712 *) ac_try_echo=$ac_try;;
12713esac
12714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_try") 2>&5
12716 ac_status=$?
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; }; then
12719 ac_cv_search_mallinfo=$ac_res
12720else
12721 echo "$as_me: failed program was:" >&5
12722sed 's/^/| /' conftest.$ac_ext >&5
12723
12724
12725fi
12726
12727rm -f core conftest.err conftest.$ac_objext \
12728 conftest$ac_exeext
12729 if test "${ac_cv_search_mallinfo+set}" = set; then
12730 break
12731fi
12732done
12733if test "${ac_cv_search_mallinfo+set}" = set; then
12734 :
12735else
12736 ac_cv_search_mallinfo=no
12737fi
12738rm conftest.$ac_ext
12739LIBS=$ac_func_search_save_LIBS
12740fi
12741{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12742echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12743ac_res=$ac_cv_search_mallinfo
12744if test "$ac_res" != no; then
12745 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12746
12747cat >>confdefs.h <<\_ACEOF
12748#define HAVE_MALLINFO 1
12749_ACEOF
12750
12751fi
12752
12753
12754if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12755
12756{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12757echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12758if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12759 echo $ECHO_N "(cached) $ECHO_C" >&6
12760else
12761 ac_check_lib_save_LIBS=$LIBS
12762LIBS="-lpthread $LIBS"
12763cat >conftest.$ac_ext <<_ACEOF
12764/* confdefs.h. */
12765_ACEOF
12766cat confdefs.h >>conftest.$ac_ext
12767cat >>conftest.$ac_ext <<_ACEOF
12768/* end confdefs.h. */
12769
12770/* Override any GCC internal prototype to avoid an error.
12771 Use char because int might match the return type of a GCC
12772 builtin and then its argument prototype would still apply. */
12773#ifdef __cplusplus
12774extern "C"
12775#endif
12776char pthread_mutex_init ();
12777int
12778main ()
12779{
12780return pthread_mutex_init ();
12781 ;
12782 return 0;
12783}
12784_ACEOF
12785rm -f conftest.$ac_objext conftest$ac_exeext
12786if { (ac_try="$ac_link"
12787case "(($ac_try" in
12788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789 *) ac_try_echo=$ac_try;;
12790esac
12791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792 (eval "$ac_link") 2>conftest.er1
12793 ac_status=$?
12794 grep -v '^ *+' conftest.er1 >conftest.err
12795 rm -f conftest.er1
12796 cat conftest.err >&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } &&
12799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12800 { (case "(($ac_try" in
12801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802 *) ac_try_echo=$ac_try;;
12803esac
12804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805 (eval "$ac_try") 2>&5
12806 ac_status=$?
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; } &&
12809 { ac_try='test -s conftest$ac_exeext'
12810 { (case "(($ac_try" in
12811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12812 *) ac_try_echo=$ac_try;;
12813esac
12814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12815 (eval "$ac_try") 2>&5
12816 ac_status=$?
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); }; }; then
12819 ac_cv_lib_pthread_pthread_mutex_init=yes
12820else
12821 echo "$as_me: failed program was:" >&5
12822sed 's/^/| /' conftest.$ac_ext >&5
12823
12824 ac_cv_lib_pthread_pthread_mutex_init=no
12825fi
12826
12827rm -f core conftest.err conftest.$ac_objext \
12828 conftest$ac_exeext conftest.$ac_ext
12829LIBS=$ac_check_lib_save_LIBS
12830fi
12831{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12832echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12833if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12834 cat >>confdefs.h <<_ACEOF
12835#define HAVE_LIBPTHREAD 1
12836_ACEOF
12837
12838 LIBS="-lpthread $LIBS"
12839
12840fi
12841
12842 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12843echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12844if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12845 echo $ECHO_N "(cached) $ECHO_C" >&6
12846else
12847 ac_func_search_save_LIBS=$LIBS
12848cat >conftest.$ac_ext <<_ACEOF
12849/* confdefs.h. */
12850_ACEOF
12851cat confdefs.h >>conftest.$ac_ext
12852cat >>conftest.$ac_ext <<_ACEOF
12853/* end confdefs.h. */
12854
12855/* Override any GCC internal prototype to avoid an error.
12856 Use char because int might match the return type of a GCC
12857 builtin and then its argument prototype would still apply. */
12858#ifdef __cplusplus
12859extern "C"
12860#endif
12861char pthread_mutex_lock ();
12862int
12863main ()
12864{
12865return pthread_mutex_lock ();
12866 ;
12867 return 0;
12868}
12869_ACEOF
12870for ac_lib in '' pthread; do
12871 if test -z "$ac_lib"; then
12872 ac_res="none required"
12873 else
12874 ac_res=-l$ac_lib
12875 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12876 fi
12877 rm -f conftest.$ac_objext conftest$ac_exeext
12878if { (ac_try="$ac_link"
12879case "(($ac_try" in
12880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12881 *) ac_try_echo=$ac_try;;
12882esac
12883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12884 (eval "$ac_link") 2>conftest.er1
12885 ac_status=$?
12886 grep -v '^ *+' conftest.er1 >conftest.err
12887 rm -f conftest.er1
12888 cat conftest.err >&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); } &&
12891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12892 { (case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12895esac
12896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897 (eval "$ac_try") 2>&5
12898 ac_status=$?
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; } &&
12901 { ac_try='test -s conftest$ac_exeext'
12902 { (case "(($ac_try" in
12903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904 *) ac_try_echo=$ac_try;;
12905esac
12906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_try") 2>&5
12908 ac_status=$?
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; }; then
12911 ac_cv_search_pthread_mutex_lock=$ac_res
12912else
12913 echo "$as_me: failed program was:" >&5
12914sed 's/^/| /' conftest.$ac_ext >&5
12915
12916
12917fi
12918
12919rm -f core conftest.err conftest.$ac_objext \
12920 conftest$ac_exeext
12921 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12922 break
12923fi
12924done
12925if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12926 :
12927else
12928 ac_cv_search_pthread_mutex_lock=no
12929fi
12930rm conftest.$ac_ext
12931LIBS=$ac_func_search_save_LIBS
12932fi
12933{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12934echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12935ac_res=$ac_cv_search_pthread_mutex_lock
12936if test "$ac_res" != no; then
12937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12938
12939cat >>confdefs.h <<\_ACEOF
12940#define HAVE_PTHREAD_MUTEX_LOCK 1
12941_ACEOF
12942
12943fi
12944
12945 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12946echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12947if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12949else
12950 ac_func_search_save_LIBS=$LIBS
12951cat >conftest.$ac_ext <<_ACEOF
12952/* confdefs.h. */
12953_ACEOF
12954cat confdefs.h >>conftest.$ac_ext
12955cat >>conftest.$ac_ext <<_ACEOF
12956/* end confdefs.h. */
12957
12958/* Override any GCC internal prototype to avoid an error.
12959 Use char because int might match the return type of a GCC
12960 builtin and then its argument prototype would still apply. */
12961#ifdef __cplusplus
12962extern "C"
12963#endif
12964char pthread_rwlock_init ();
12965int
12966main ()
12967{
12968return pthread_rwlock_init ();
12969 ;
12970 return 0;
12971}
12972_ACEOF
12973for ac_lib in '' pthread; do
12974 if test -z "$ac_lib"; then
12975 ac_res="none required"
12976 else
12977 ac_res=-l$ac_lib
12978 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12979 fi
12980 rm -f conftest.$ac_objext conftest$ac_exeext
12981if { (ac_try="$ac_link"
12982case "(($ac_try" in
12983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984 *) ac_try_echo=$ac_try;;
12985esac
12986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987 (eval "$ac_link") 2>conftest.er1
12988 ac_status=$?
12989 grep -v '^ *+' conftest.er1 >conftest.err
12990 rm -f conftest.er1
12991 cat conftest.err >&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); } &&
12994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12995 { (case "(($ac_try" in
12996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12997 *) ac_try_echo=$ac_try;;
12998esac
12999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13000 (eval "$ac_try") 2>&5
13001 ac_status=$?
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; } &&
13004 { ac_try='test -s conftest$ac_exeext'
13005 { (case "(($ac_try" in
13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13008esac
13009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010 (eval "$ac_try") 2>&5
13011 ac_status=$?
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; }; then
13014 ac_cv_search_pthread_rwlock_init=$ac_res
13015else
13016 echo "$as_me: failed program was:" >&5
13017sed 's/^/| /' conftest.$ac_ext >&5
13018
13019
13020fi
13021
13022rm -f core conftest.err conftest.$ac_objext \
13023 conftest$ac_exeext
13024 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13025 break
13026fi
13027done
13028if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13029 :
13030else
13031 ac_cv_search_pthread_rwlock_init=no
13032fi
13033rm conftest.$ac_ext
13034LIBS=$ac_func_search_save_LIBS
13035fi
13036{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13037echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13038ac_res=$ac_cv_search_pthread_rwlock_init
13039if test "$ac_res" != no; then
13040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13041
13042cat >>confdefs.h <<\_ACEOF
13043#define HAVE_PTHREAD_RWLOCK_INIT 1
13044_ACEOF
13045
13046fi
13047
13048 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13049echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13050if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13051 echo $ECHO_N "(cached) $ECHO_C" >&6
13052else
13053 ac_func_search_save_LIBS=$LIBS
13054cat >conftest.$ac_ext <<_ACEOF
13055/* confdefs.h. */
13056_ACEOF
13057cat confdefs.h >>conftest.$ac_ext
13058cat >>conftest.$ac_ext <<_ACEOF
13059/* end confdefs.h. */
13060
13061/* Override any GCC internal prototype to avoid an error.
13062 Use char because int might match the return type of a GCC
13063 builtin and then its argument prototype would still apply. */
13064#ifdef __cplusplus
13065extern "C"
13066#endif
13067char pthread_getspecific ();
13068int
13069main ()
13070{
13071return pthread_getspecific ();
13072 ;
13073 return 0;
13074}
13075_ACEOF
13076for ac_lib in '' pthread; do
13077 if test -z "$ac_lib"; then
13078 ac_res="none required"
13079 else
13080 ac_res=-l$ac_lib
13081 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13082 fi
13083 rm -f conftest.$ac_objext conftest$ac_exeext
13084if { (ac_try="$ac_link"
13085case "(($ac_try" in
13086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087 *) ac_try_echo=$ac_try;;
13088esac
13089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090 (eval "$ac_link") 2>conftest.er1
13091 ac_status=$?
13092 grep -v '^ *+' conftest.er1 >conftest.err
13093 rm -f conftest.er1
13094 cat conftest.err >&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } &&
13097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13098 { (case "(($ac_try" in
13099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13100 *) ac_try_echo=$ac_try;;
13101esac
13102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13103 (eval "$ac_try") 2>&5
13104 ac_status=$?
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; } &&
13107 { ac_try='test -s conftest$ac_exeext'
13108 { (case "(($ac_try" in
13109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110 *) ac_try_echo=$ac_try;;
13111esac
13112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113 (eval "$ac_try") 2>&5
13114 ac_status=$?
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; }; then
13117 ac_cv_search_pthread_getspecific=$ac_res
13118else
13119 echo "$as_me: failed program was:" >&5
13120sed 's/^/| /' conftest.$ac_ext >&5
13121
13122
13123fi
13124
13125rm -f core conftest.err conftest.$ac_objext \
13126 conftest$ac_exeext
13127 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13128 break
13129fi
13130done
13131if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13132 :
13133else
13134 ac_cv_search_pthread_getspecific=no
13135fi
13136rm conftest.$ac_ext
13137LIBS=$ac_func_search_save_LIBS
13138fi
13139{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13140echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13141ac_res=$ac_cv_search_pthread_getspecific
13142if test "$ac_res" != no; then
13143 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13144
13145cat >>confdefs.h <<\_ACEOF
13146#define HAVE_PTHREAD_GETSPECIFIC 1
13147_ACEOF
13148
13149fi
13150
13151fi
13152
13153
13154# Check whether --with-udis86 was given.
13155if test "${with_udis86+set}" = set; then
13156 withval=$with_udis86;
13157 USE_UDIS86=1
13158
13159 case "$withval" in
13160 /usr/lib|yes) ;;
13161 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13162 esac
13163
13164{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13165echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13166if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13167 echo $ECHO_N "(cached) $ECHO_C" >&6
13168else
13169 ac_check_lib_save_LIBS=$LIBS
13170LIBS="-ludis86 $LIBS"
13171cat >conftest.$ac_ext <<_ACEOF
13172/* confdefs.h. */
13173_ACEOF
13174cat confdefs.h >>conftest.$ac_ext
13175cat >>conftest.$ac_ext <<_ACEOF
13176/* end confdefs.h. */
13177
13178/* Override any GCC internal prototype to avoid an error.
13179 Use char because int might match the return type of a GCC
13180 builtin and then its argument prototype would still apply. */
13181#ifdef __cplusplus
13182extern "C"
13183#endif
13184char ud_init ();
13185int
13186main ()
13187{
13188return ud_init ();
13189 ;
13190 return 0;
13191}
13192_ACEOF
13193rm -f conftest.$ac_objext conftest$ac_exeext
13194if { (ac_try="$ac_link"
13195case "(($ac_try" in
13196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197 *) ac_try_echo=$ac_try;;
13198esac
13199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200 (eval "$ac_link") 2>conftest.er1
13201 ac_status=$?
13202 grep -v '^ *+' conftest.er1 >conftest.err
13203 rm -f conftest.er1
13204 cat conftest.err >&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } &&
13207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13208 { (case "(($ac_try" in
13209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210 *) ac_try_echo=$ac_try;;
13211esac
13212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213 (eval "$ac_try") 2>&5
13214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; } &&
13217 { ac_try='test -s conftest$ac_exeext'
13218 { (case "(($ac_try" in
13219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220 *) ac_try_echo=$ac_try;;
13221esac
13222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223 (eval "$ac_try") 2>&5
13224 ac_status=$?
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; }; then
13227 ac_cv_lib_udis86_ud_init=yes
13228else
13229 echo "$as_me: failed program was:" >&5
13230sed 's/^/| /' conftest.$ac_ext >&5
13231
13232 ac_cv_lib_udis86_ud_init=no
13233fi
13234
13235rm -f core conftest.err conftest.$ac_objext \
13236 conftest$ac_exeext conftest.$ac_ext
13237LIBS=$ac_check_lib_save_LIBS
13238fi
13239{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13240echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13241if test $ac_cv_lib_udis86_ud_init = yes; then
13242 cat >>confdefs.h <<_ACEOF
13243#define HAVE_LIBUDIS86 1
13244_ACEOF
13245
13246 LIBS="-ludis86 $LIBS"
13247
13248else
13249
13250 echo "Error! You need to have libudis86 around."
13251 exit -1
13252
13253fi
13254
13255
13256else
13257 USE_UDIS86=0
13258
13259fi
13260
13261
13262cat >>confdefs.h <<_ACEOF
13263#define USE_UDIS86 $USE_UDIS86
13264_ACEOF
13265
13266
13267
13268# Check whether --with-oprofile was given.
13269if test "${with_oprofile+set}" = set; then
13270 withval=$with_oprofile;
13271 USE_OPROFILE=1
13272
13273 case "$withval" in
13274 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13275 no) llvm_cv_oppath=
13276 USE_OPROFILE=0
13277 ;;
13278 *) llvm_cv_oppath="${withval}/lib/oprofile"
13279 CPPFLAGS="-I${withval}/include";;
13280 esac
13281 if test -n "$llvm_cv_oppath" ; then
13282 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13283 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13284echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13285if test "${ac_cv_search_bfd_init+set}" = set; then
13286 echo $ECHO_N "(cached) $ECHO_C" >&6
13287else
13288 ac_func_search_save_LIBS=$LIBS
13289cat >conftest.$ac_ext <<_ACEOF
13290/* confdefs.h. */
13291_ACEOF
13292cat confdefs.h >>conftest.$ac_ext
13293cat >>conftest.$ac_ext <<_ACEOF
13294/* end confdefs.h. */
13295
13296/* Override any GCC internal prototype to avoid an error.
13297 Use char because int might match the return type of a GCC
13298 builtin and then its argument prototype would still apply. */
13299#ifdef __cplusplus
13300extern "C"
13301#endif
13302char bfd_init ();
13303int
13304main ()
13305{
13306return bfd_init ();
13307 ;
13308 return 0;
13309}
13310_ACEOF
13311for ac_lib in '' bfd; do
13312 if test -z "$ac_lib"; then
13313 ac_res="none required"
13314 else
13315 ac_res=-l$ac_lib
13316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13317 fi
13318 rm -f conftest.$ac_objext conftest$ac_exeext
13319if { (ac_try="$ac_link"
13320case "(($ac_try" in
13321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13322 *) ac_try_echo=$ac_try;;
13323esac
13324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325 (eval "$ac_link") 2>conftest.er1
13326 ac_status=$?
13327 grep -v '^ *+' conftest.er1 >conftest.err
13328 rm -f conftest.er1
13329 cat conftest.err >&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } &&
13332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13333 { (case "(($ac_try" in
13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13336esac
13337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338 (eval "$ac_try") 2>&5
13339 ac_status=$?
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; } &&
13342 { ac_try='test -s conftest$ac_exeext'
13343 { (case "(($ac_try" in
13344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13345 *) ac_try_echo=$ac_try;;
13346esac
13347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13348 (eval "$ac_try") 2>&5
13349 ac_status=$?
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; }; then
13352 ac_cv_search_bfd_init=$ac_res
13353else
13354 echo "$as_me: failed program was:" >&5
13355sed 's/^/| /' conftest.$ac_ext >&5
13356
13357
13358fi
13359
13360rm -f core conftest.err conftest.$ac_objext \
13361 conftest$ac_exeext
13362 if test "${ac_cv_search_bfd_init+set}" = set; then
13363 break
13364fi
13365done
13366if test "${ac_cv_search_bfd_init+set}" = set; then
13367 :
13368else
13369 ac_cv_search_bfd_init=no
13370fi
13371rm conftest.$ac_ext
13372LIBS=$ac_func_search_save_LIBS
13373fi
13374{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13375echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13376ac_res=$ac_cv_search_bfd_init
13377if test "$ac_res" != no; then
13378 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13379
13380fi
13381
13382 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13383echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13384if test "${ac_cv_search_op_open_agent+set}" = set; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13386else
13387 ac_func_search_save_LIBS=$LIBS
13388cat >conftest.$ac_ext <<_ACEOF
13389/* confdefs.h. */
13390_ACEOF
13391cat confdefs.h >>conftest.$ac_ext
13392cat >>conftest.$ac_ext <<_ACEOF
13393/* end confdefs.h. */
13394
13395/* Override any GCC internal prototype to avoid an error.
13396 Use char because int might match the return type of a GCC
13397 builtin and then its argument prototype would still apply. */
13398#ifdef __cplusplus
13399extern "C"
13400#endif
13401char op_open_agent ();
13402int
13403main ()
13404{
13405return op_open_agent ();
13406 ;
13407 return 0;
13408}
13409_ACEOF
13410for ac_lib in '' opagent; do
13411 if test -z "$ac_lib"; then
13412 ac_res="none required"
13413 else
13414 ac_res=-l$ac_lib
13415 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13416 fi
13417 rm -f conftest.$ac_objext conftest$ac_exeext
13418if { (ac_try="$ac_link"
13419case "(($ac_try" in
13420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421 *) ac_try_echo=$ac_try;;
13422esac
13423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424 (eval "$ac_link") 2>conftest.er1
13425 ac_status=$?
13426 grep -v '^ *+' conftest.er1 >conftest.err
13427 rm -f conftest.er1
13428 cat conftest.err >&5
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); } &&
13431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13432 { (case "(($ac_try" in
13433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13434 *) ac_try_echo=$ac_try;;
13435esac
13436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13437 (eval "$ac_try") 2>&5
13438 ac_status=$?
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; } &&
13441 { ac_try='test -s conftest$ac_exeext'
13442 { (case "(($ac_try" in
13443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13444 *) ac_try_echo=$ac_try;;
13445esac
13446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13447 (eval "$ac_try") 2>&5
13448 ac_status=$?
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); }; }; then
13451 ac_cv_search_op_open_agent=$ac_res
13452else
13453 echo "$as_me: failed program was:" >&5
13454sed 's/^/| /' conftest.$ac_ext >&5
13455
13456
13457fi
13458
13459rm -f core conftest.err conftest.$ac_objext \
13460 conftest$ac_exeext
13461 if test "${ac_cv_search_op_open_agent+set}" = set; then
13462 break
13463fi
13464done
13465if test "${ac_cv_search_op_open_agent+set}" = set; then
13466 :
13467else
13468 ac_cv_search_op_open_agent=no
13469fi
13470rm conftest.$ac_ext
13471LIBS=$ac_func_search_save_LIBS
13472fi
13473{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13474echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13475ac_res=$ac_cv_search_op_open_agent
13476if test "$ac_res" != no; then
13477 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13478
13479else
13480
13481 echo "Error! You need to have libopagent around."
13482 exit -1
13483
13484fi
13485
13486 if test "${ac_cv_header_opagent_h+set}" = set; then
13487 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13488echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13489if test "${ac_cv_header_opagent_h+set}" = set; then
13490 echo $ECHO_N "(cached) $ECHO_C" >&6
13491fi
13492{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13493echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13494else
13495 # Is the header compilable?
13496{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13497echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13498cat >conftest.$ac_ext <<_ACEOF
13499/* confdefs.h. */
13500_ACEOF
13501cat confdefs.h >>conftest.$ac_ext
13502cat >>conftest.$ac_ext <<_ACEOF
13503/* end confdefs.h. */
13504$ac_includes_default
13505#include <opagent.h>
13506_ACEOF
13507rm -f conftest.$ac_objext
13508if { (ac_try="$ac_compile"
13509case "(($ac_try" in
13510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13511 *) ac_try_echo=$ac_try;;
13512esac
13513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13514 (eval "$ac_compile") 2>conftest.er1
13515 ac_status=$?
13516 grep -v '^ *+' conftest.er1 >conftest.err
13517 rm -f conftest.er1
13518 cat conftest.err >&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } &&
13521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13522 { (case "(($ac_try" in
13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13525esac
13526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527 (eval "$ac_try") 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; } &&
13531 { ac_try='test -s conftest.$ac_objext'
13532 { (case "(($ac_try" in
13533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13534 *) ac_try_echo=$ac_try;;
13535esac
13536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13537 (eval "$ac_try") 2>&5
13538 ac_status=$?
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); }; }; then
13541 ac_header_compiler=yes
13542else
13543 echo "$as_me: failed program was:" >&5
13544sed 's/^/| /' conftest.$ac_ext >&5
13545
13546 ac_header_compiler=no
13547fi
13548
13549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13550{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13551echo "${ECHO_T}$ac_header_compiler" >&6; }
13552
13553# Is the header present?
13554{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13555echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13556cat >conftest.$ac_ext <<_ACEOF
13557/* confdefs.h. */
13558_ACEOF
13559cat confdefs.h >>conftest.$ac_ext
13560cat >>conftest.$ac_ext <<_ACEOF
13561/* end confdefs.h. */
13562#include <opagent.h>
13563_ACEOF
13564if { (ac_try="$ac_cpp conftest.$ac_ext"
13565case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13568esac
13569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13571 ac_status=$?
13572 grep -v '^ *+' conftest.er1 >conftest.err
13573 rm -f conftest.er1
13574 cat conftest.err >&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } >/dev/null; then
13577 if test -s conftest.err; then
13578 ac_cpp_err=$ac_c_preproc_warn_flag
13579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13580 else
13581 ac_cpp_err=
13582 fi
13583else
13584 ac_cpp_err=yes
13585fi
13586if test -z "$ac_cpp_err"; then
13587 ac_header_preproc=yes
13588else
13589 echo "$as_me: failed program was:" >&5
13590sed 's/^/| /' conftest.$ac_ext >&5
13591
13592 ac_header_preproc=no
13593fi
13594
13595rm -f conftest.err conftest.$ac_ext
13596{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13597echo "${ECHO_T}$ac_header_preproc" >&6; }
13598
13599# So? What about this header?
13600case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13601 yes:no: )
13602 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13603echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13604 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13605echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13606 ac_header_preproc=yes
13607 ;;
13608 no:yes:* )
13609 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13610echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13611 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13612echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13613 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13614echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13615 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13616echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13617 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13618echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13619 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13620echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13621 ( cat <<\_ASBOX
13622## ------------------------------ ##
13623## Report this to bugs@yourdomain ##
13624## ------------------------------ ##
13625_ASBOX
13626 ) | sed "s/^/$as_me: WARNING: /" >&2
13627 ;;
13628esac
13629{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13630echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13631if test "${ac_cv_header_opagent_h+set}" = set; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13633else
13634 ac_cv_header_opagent_h=$ac_header_preproc
13635fi
13636{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13637echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13638
13639fi
13640if test $ac_cv_header_opagent_h = yes; then
13641 :
13642else
13643
13644 echo "Error! You need to have opagent.h around."
13645 exit -1
13646
13647fi
13648
13649
13650 fi
13651
13652else
13653
13654 USE_OPROFILE=0
13655
13656
13657fi
13658
13659
13660cat >>confdefs.h <<_ACEOF
13661#define USE_OPROFILE $USE_OPROFILE
13662_ACEOF
13663
13664
13665
13666
13667
13668
13669
13670
13671ac_header_dirent=no
13672for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13673 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13674{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13675echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13676if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13678else
13679 cat >conftest.$ac_ext <<_ACEOF
13680/* confdefs.h. */
13681_ACEOF
13682cat confdefs.h >>conftest.$ac_ext
13683cat >>conftest.$ac_ext <<_ACEOF
13684/* end confdefs.h. */
13685#include <sys/types.h>
13686#include <$ac_hdr>
13687
13688int
13689main ()
13690{
13691if ((DIR *) 0)
13692return 0;
13693 ;
13694 return 0;
13695}
13696_ACEOF
13697rm -f conftest.$ac_objext
13698if { (ac_try="$ac_compile"
13699case "(($ac_try" in
13700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701 *) ac_try_echo=$ac_try;;
13702esac
13703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13704 (eval "$ac_compile") 2>conftest.er1
13705 ac_status=$?
13706 grep -v '^ *+' conftest.er1 >conftest.err
13707 rm -f conftest.er1
13708 cat conftest.err >&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); } &&
13711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13712 { (case "(($ac_try" in
13713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714 *) ac_try_echo=$ac_try;;
13715esac
13716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717 (eval "$ac_try") 2>&5
13718 ac_status=$?
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; } &&
13721 { ac_try='test -s conftest.$ac_objext'
13722 { (case "(($ac_try" in
13723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13724 *) ac_try_echo=$ac_try;;
13725esac
13726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13727 (eval "$ac_try") 2>&5
13728 ac_status=$?
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; }; then
13731 eval "$as_ac_Header=yes"
13732else
13733 echo "$as_me: failed program was:" >&5
13734sed 's/^/| /' conftest.$ac_ext >&5
13735
13736 eval "$as_ac_Header=no"
13737fi
13738
13739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13740fi
13741ac_res=`eval echo '${'$as_ac_Header'}'`
13742 { echo "$as_me:$LINENO: result: $ac_res" >&5
13743echo "${ECHO_T}$ac_res" >&6; }
13744if test `eval echo '${'$as_ac_Header'}'` = yes; then
13745 cat >>confdefs.h <<_ACEOF
13746#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13747_ACEOF
13748
13749ac_header_dirent=$ac_hdr; break
13750fi
13751
13752done
13753# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13754if test $ac_header_dirent = dirent.h; then
13755 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13756echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13757if test "${ac_cv_search_opendir+set}" = set; then
13758 echo $ECHO_N "(cached) $ECHO_C" >&6
13759else
13760 ac_func_search_save_LIBS=$LIBS
13761cat >conftest.$ac_ext <<_ACEOF
13762/* confdefs.h. */
13763_ACEOF
13764cat confdefs.h >>conftest.$ac_ext
13765cat >>conftest.$ac_ext <<_ACEOF
13766/* end confdefs.h. */
13767
13768/* Override any GCC internal prototype to avoid an error.
13769 Use char because int might match the return type of a GCC
13770 builtin and then its argument prototype would still apply. */
13771#ifdef __cplusplus
13772extern "C"
13773#endif
13774char opendir ();
13775int
13776main ()
13777{
13778return opendir ();
13779 ;
13780 return 0;
13781}
13782_ACEOF
13783for ac_lib in '' dir; do
13784 if test -z "$ac_lib"; then
13785 ac_res="none required"
13786 else
13787 ac_res=-l$ac_lib
13788 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13789 fi
13790 rm -f conftest.$ac_objext conftest$ac_exeext
13791if { (ac_try="$ac_link"
13792case "(($ac_try" in
13793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794 *) ac_try_echo=$ac_try;;
13795esac
13796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13797 (eval "$ac_link") 2>conftest.er1
13798 ac_status=$?
13799 grep -v '^ *+' conftest.er1 >conftest.err
13800 rm -f conftest.er1
13801 cat conftest.err >&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } &&
13804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13805 { (case "(($ac_try" in
13806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807 *) ac_try_echo=$ac_try;;
13808esac
13809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13810 (eval "$ac_try") 2>&5
13811 ac_status=$?
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; } &&
13814 { ac_try='test -s conftest$ac_exeext'
13815 { (case "(($ac_try" in
13816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817 *) ac_try_echo=$ac_try;;
13818esac
13819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13820 (eval "$ac_try") 2>&5
13821 ac_status=$?
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; }; then
13824 ac_cv_search_opendir=$ac_res
13825else
13826 echo "$as_me: failed program was:" >&5
13827sed 's/^/| /' conftest.$ac_ext >&5
13828
13829
13830fi
13831
13832rm -f core conftest.err conftest.$ac_objext \
13833 conftest$ac_exeext
13834 if test "${ac_cv_search_opendir+set}" = set; then
13835 break
13836fi
13837done
13838if test "${ac_cv_search_opendir+set}" = set; then
13839 :
13840else
13841 ac_cv_search_opendir=no
13842fi
13843rm conftest.$ac_ext
13844LIBS=$ac_func_search_save_LIBS
13845fi
13846{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13847echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13848ac_res=$ac_cv_search_opendir
13849if test "$ac_res" != no; then
13850 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13851
13852fi
13853
13854else
13855 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13856echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13857if test "${ac_cv_search_opendir+set}" = set; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13859else
13860 ac_func_search_save_LIBS=$LIBS
13861cat >conftest.$ac_ext <<_ACEOF
13862/* confdefs.h. */
13863_ACEOF
13864cat confdefs.h >>conftest.$ac_ext
13865cat >>conftest.$ac_ext <<_ACEOF
13866/* end confdefs.h. */
13867
13868/* Override any GCC internal prototype to avoid an error.
13869 Use char because int might match the return type of a GCC
13870 builtin and then its argument prototype would still apply. */
13871#ifdef __cplusplus
13872extern "C"
13873#endif
13874char opendir ();
13875int
13876main ()
13877{
13878return opendir ();
13879 ;
13880 return 0;
13881}
13882_ACEOF
13883for ac_lib in '' x; do
13884 if test -z "$ac_lib"; then
13885 ac_res="none required"
13886 else
13887 ac_res=-l$ac_lib
13888 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13889 fi
13890 rm -f conftest.$ac_objext conftest$ac_exeext
13891if { (ac_try="$ac_link"
13892case "(($ac_try" in
13893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894 *) ac_try_echo=$ac_try;;
13895esac
13896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13897 (eval "$ac_link") 2>conftest.er1
13898 ac_status=$?
13899 grep -v '^ *+' conftest.er1 >conftest.err
13900 rm -f conftest.er1
13901 cat conftest.err >&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); } &&
13904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13905 { (case "(($ac_try" in
13906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907 *) ac_try_echo=$ac_try;;
13908esac
13909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910 (eval "$ac_try") 2>&5
13911 ac_status=$?
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; } &&
13914 { ac_try='test -s conftest$ac_exeext'
13915 { (case "(($ac_try" in
13916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13917 *) ac_try_echo=$ac_try;;
13918esac
13919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13920 (eval "$ac_try") 2>&5
13921 ac_status=$?
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; }; then
13924 ac_cv_search_opendir=$ac_res
13925else
13926 echo "$as_me: failed program was:" >&5
13927sed 's/^/| /' conftest.$ac_ext >&5
13928
13929
13930fi
13931
13932rm -f core conftest.err conftest.$ac_objext \
13933 conftest$ac_exeext
13934 if test "${ac_cv_search_opendir+set}" = set; then
13935 break
13936fi
13937done
13938if test "${ac_cv_search_opendir+set}" = set; then
13939 :
13940else
13941 ac_cv_search_opendir=no
13942fi
13943rm conftest.$ac_ext
13944LIBS=$ac_func_search_save_LIBS
13945fi
13946{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13947echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13948ac_res=$ac_cv_search_opendir
13949if test "$ac_res" != no; then
13950 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13951
13952fi
13953
13954fi
13955
13956{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13957echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13958if test "${ac_cv_header_mmap_anon+set}" = set; then
13959 echo $ECHO_N "(cached) $ECHO_C" >&6
13960else
13961 ac_ext=c
13962ac_cpp='$CPP $CPPFLAGS'
13963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13965ac_compiler_gnu=$ac_cv_c_compiler_gnu
13966
13967 cat >conftest.$ac_ext <<_ACEOF
13968/* confdefs.h. */
13969_ACEOF
13970cat confdefs.h >>conftest.$ac_ext
13971cat >>conftest.$ac_ext <<_ACEOF
13972/* end confdefs.h. */
13973#include <sys/mman.h>
13974#include <unistd.h>
13975#include <fcntl.h>
13976int
13977main ()
13978{
13979mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13980 ;
13981 return 0;
13982}
13983_ACEOF
13984rm -f conftest.$ac_objext
13985if { (ac_try="$ac_compile"
13986case "(($ac_try" in
13987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13988 *) ac_try_echo=$ac_try;;
13989esac
13990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13991 (eval "$ac_compile") 2>conftest.er1
13992 ac_status=$?
13993 grep -v '^ *+' conftest.er1 >conftest.err
13994 rm -f conftest.er1
13995 cat conftest.err >&5
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); } &&
13998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13999 { (case "(($ac_try" in
14000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14001 *) ac_try_echo=$ac_try;;
14002esac
14003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14004 (eval "$ac_try") 2>&5
14005 ac_status=$?
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); }; } &&
14008 { ac_try='test -s conftest.$ac_objext'
14009 { (case "(($ac_try" in
14010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14011 *) ac_try_echo=$ac_try;;
14012esac
14013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14014 (eval "$ac_try") 2>&5
14015 ac_status=$?
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); }; }; then
14018 ac_cv_header_mmap_anon=yes
14019else
14020 echo "$as_me: failed program was:" >&5
14021sed 's/^/| /' conftest.$ac_ext >&5
14022
14023 ac_cv_header_mmap_anon=no
14024fi
14025
14026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14027 ac_ext=c
14028ac_cpp='$CPP $CPPFLAGS'
14029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14031ac_compiler_gnu=$ac_cv_c_compiler_gnu
14032
14033
14034fi
14035{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14036echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14037if test "$ac_cv_header_mmap_anon" = yes; then
14038
14039cat >>confdefs.h <<\_ACEOF
14040#define HAVE_MMAP_ANONYMOUS 1
14041_ACEOF
14042
14043fi
14044
14045{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14046echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14047if test "${ac_cv_header_stat_broken+set}" = set; then
14048 echo $ECHO_N "(cached) $ECHO_C" >&6
14049else
14050 cat >conftest.$ac_ext <<_ACEOF
14051/* confdefs.h. */
14052_ACEOF
14053cat confdefs.h >>conftest.$ac_ext
14054cat >>conftest.$ac_ext <<_ACEOF
14055/* end confdefs.h. */
14056#include <sys/types.h>
14057#include <sys/stat.h>
14058
14059#if defined S_ISBLK && defined S_IFDIR
14060# if S_ISBLK (S_IFDIR)
14061You lose.
14062# endif
14063#endif
14064
14065#if defined S_ISBLK && defined S_IFCHR
14066# if S_ISBLK (S_IFCHR)
14067You lose.
14068# endif
14069#endif
14070
14071#if defined S_ISLNK && defined S_IFREG
14072# if S_ISLNK (S_IFREG)
14073You lose.
14074# endif
14075#endif
14076
14077#if defined S_ISSOCK && defined S_IFREG
14078# if S_ISSOCK (S_IFREG)
14079You lose.
14080# endif
14081#endif
14082
14083_ACEOF
14084if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14085 $EGREP "You lose" >/dev/null 2>&1; then
14086 ac_cv_header_stat_broken=yes
14087else
14088 ac_cv_header_stat_broken=no
14089fi
14090rm -f conftest*
14091
14092fi
14093{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14094echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14095if test $ac_cv_header_stat_broken = yes; then
14096
14097cat >>confdefs.h <<\_ACEOF
14098#define STAT_MACROS_BROKEN 1
14099_ACEOF
14100
14101fi
14102
14103{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14104echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14105if test "${ac_cv_header_sys_wait_h+set}" = set; then
14106 echo $ECHO_N "(cached) $ECHO_C" >&6
14107else
14108 cat >conftest.$ac_ext <<_ACEOF
14109/* confdefs.h. */
14110_ACEOF
14111cat confdefs.h >>conftest.$ac_ext
14112cat >>conftest.$ac_ext <<_ACEOF
14113/* end confdefs.h. */
14114#include <sys/types.h>
14115#include <sys/wait.h>
14116#ifndef WEXITSTATUS
14117# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14118#endif
14119#ifndef WIFEXITED
14120# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14121#endif
14122
14123int
14124main ()
14125{
14126 int s;
14127 wait (&s);
14128 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14129 ;
14130 return 0;
14131}
14132_ACEOF
14133rm -f conftest.$ac_objext
14134if { (ac_try="$ac_compile"
14135case "(($ac_try" in
14136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14137 *) ac_try_echo=$ac_try;;
14138esac
14139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14140 (eval "$ac_compile") 2>conftest.er1
14141 ac_status=$?
14142 grep -v '^ *+' conftest.er1 >conftest.err
14143 rm -f conftest.er1
14144 cat conftest.err >&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } &&
14147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14148 { (case "(($ac_try" in
14149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14150 *) ac_try_echo=$ac_try;;
14151esac
14152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14153 (eval "$ac_try") 2>&5
14154 ac_status=$?
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); }; } &&
14157 { ac_try='test -s conftest.$ac_objext'
14158 { (case "(($ac_try" in
14159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14160 *) ac_try_echo=$ac_try;;
14161esac
14162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14163 (eval "$ac_try") 2>&5
14164 ac_status=$?
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); }; }; then
14167 ac_cv_header_sys_wait_h=yes
14168else
14169 echo "$as_me: failed program was:" >&5
14170sed 's/^/| /' conftest.$ac_ext >&5
14171
14172 ac_cv_header_sys_wait_h=no
14173fi
14174
14175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14176fi
14177{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14178echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14179if test $ac_cv_header_sys_wait_h = yes; then
14180
14181cat >>confdefs.h <<\_ACEOF
14182#define HAVE_SYS_WAIT_H 1
14183_ACEOF
14184
14185fi
14186
14187{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14188echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14189if test "${ac_cv_header_time+set}" = set; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
14191else
14192 cat >conftest.$ac_ext <<_ACEOF
14193/* confdefs.h. */
14194_ACEOF
14195cat confdefs.h >>conftest.$ac_ext
14196cat >>conftest.$ac_ext <<_ACEOF
14197/* end confdefs.h. */
14198#include <sys/types.h>
14199#include <sys/time.h>
14200#include <time.h>
14201
14202int
14203main ()
14204{
14205if ((struct tm *) 0)
14206return 0;
14207 ;
14208 return 0;
14209}
14210_ACEOF
14211rm -f conftest.$ac_objext
14212if { (ac_try="$ac_compile"
14213case "(($ac_try" in
14214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14215 *) ac_try_echo=$ac_try;;
14216esac
14217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14218 (eval "$ac_compile") 2>conftest.er1
14219 ac_status=$?
14220 grep -v '^ *+' conftest.er1 >conftest.err
14221 rm -f conftest.er1
14222 cat conftest.err >&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } &&
14225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14226 { (case "(($ac_try" in
14227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14228 *) ac_try_echo=$ac_try;;
14229esac
14230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231 (eval "$ac_try") 2>&5
14232 ac_status=$?
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; } &&
14235 { ac_try='test -s conftest.$ac_objext'
14236 { (case "(($ac_try" in
14237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238 *) ac_try_echo=$ac_try;;
14239esac
14240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241 (eval "$ac_try") 2>&5
14242 ac_status=$?
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; }; then
14245 ac_cv_header_time=yes
14246else
14247 echo "$as_me: failed program was:" >&5
14248sed 's/^/| /' conftest.$ac_ext >&5
14249
14250 ac_cv_header_time=no
14251fi
14252
14253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14254fi
14255{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14256echo "${ECHO_T}$ac_cv_header_time" >&6; }
14257if test $ac_cv_header_time = yes; then
14258
14259cat >>confdefs.h <<\_ACEOF
14260#define TIME_WITH_SYS_TIME 1
14261_ACEOF
14262
14263fi
14264
14265
14266
14267
14268
14269
14270
14271
14272for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14273do
14274as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14275if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14277echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14279 echo $ECHO_N "(cached) $ECHO_C" >&6
14280fi
14281ac_res=`eval echo '${'$as_ac_Header'}'`
14282 { echo "$as_me:$LINENO: result: $ac_res" >&5
14283echo "${ECHO_T}$ac_res" >&6; }
14284else
14285 # Is the header compilable?
14286{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14287echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14288cat >conftest.$ac_ext <<_ACEOF
14289/* confdefs.h. */
14290_ACEOF
14291cat confdefs.h >>conftest.$ac_ext
14292cat >>conftest.$ac_ext <<_ACEOF
14293/* end confdefs.h. */
14294$ac_includes_default
14295#include <$ac_header>
14296_ACEOF
14297rm -f conftest.$ac_objext
14298if { (ac_try="$ac_compile"
14299case "(($ac_try" in
14300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14301 *) ac_try_echo=$ac_try;;
14302esac
14303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14304 (eval "$ac_compile") 2>conftest.er1
14305 ac_status=$?
14306 grep -v '^ *+' conftest.er1 >conftest.err
14307 rm -f conftest.er1
14308 cat conftest.err >&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); } &&
14311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14312 { (case "(($ac_try" in
14313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14314 *) ac_try_echo=$ac_try;;
14315esac
14316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14317 (eval "$ac_try") 2>&5
14318 ac_status=$?
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; } &&
14321 { ac_try='test -s conftest.$ac_objext'
14322 { (case "(($ac_try" in
14323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14324 *) ac_try_echo=$ac_try;;
14325esac
14326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14327 (eval "$ac_try") 2>&5
14328 ac_status=$?
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; }; then
14331 ac_header_compiler=yes
14332else
14333 echo "$as_me: failed program was:" >&5
14334sed 's/^/| /' conftest.$ac_ext >&5
14335
14336 ac_header_compiler=no
14337fi
14338
14339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14340{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14341echo "${ECHO_T}$ac_header_compiler" >&6; }
14342
14343# Is the header present?
14344{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14345echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14346cat >conftest.$ac_ext <<_ACEOF
14347/* confdefs.h. */
14348_ACEOF
14349cat confdefs.h >>conftest.$ac_ext
14350cat >>conftest.$ac_ext <<_ACEOF
14351/* end confdefs.h. */
14352#include <$ac_header>
14353_ACEOF
14354if { (ac_try="$ac_cpp conftest.$ac_ext"
14355case "(($ac_try" in
14356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14357 *) ac_try_echo=$ac_try;;
14358esac
14359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14361 ac_status=$?
14362 grep -v '^ *+' conftest.er1 >conftest.err
14363 rm -f conftest.er1
14364 cat conftest.err >&5
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); } >/dev/null; then
14367 if test -s conftest.err; then
14368 ac_cpp_err=$ac_c_preproc_warn_flag
14369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14370 else
14371 ac_cpp_err=
14372 fi
14373else
14374 ac_cpp_err=yes
14375fi
14376if test -z "$ac_cpp_err"; then
14377 ac_header_preproc=yes
14378else
14379 echo "$as_me: failed program was:" >&5
14380sed 's/^/| /' conftest.$ac_ext >&5
14381
14382 ac_header_preproc=no
14383fi
14384
14385rm -f conftest.err conftest.$ac_ext
14386{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14387echo "${ECHO_T}$ac_header_preproc" >&6; }
14388
14389# So? What about this header?
14390case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14391 yes:no: )
14392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14393echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14395echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14396 ac_header_preproc=yes
14397 ;;
14398 no:yes:* )
14399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14400echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14402echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14404echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14406echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14408echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14410echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14411 ( cat <<\_ASBOX
14412## ------------------------------ ##
14413## Report this to bugs@yourdomain ##
14414## ------------------------------ ##
14415_ASBOX
14416 ) | sed "s/^/$as_me: WARNING: /" >&2
14417 ;;
14418esac
14419{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14420echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14421if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14422 echo $ECHO_N "(cached) $ECHO_C" >&6
14423else
14424 eval "$as_ac_Header=\$ac_header_preproc"
14425fi
14426ac_res=`eval echo '${'$as_ac_Header'}'`
14427 { echo "$as_me:$LINENO: result: $ac_res" >&5
14428echo "${ECHO_T}$ac_res" >&6; }
14429
14430fi
14431if test `eval echo '${'$as_ac_Header'}'` = yes; then
14432 cat >>confdefs.h <<_ACEOF
14433#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14434_ACEOF
14435
14436fi
14437
14438done
14439
14440
14441
14442
14443
14444
14445
14446for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14447do
14448as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14449if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14452if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14454fi
14455ac_res=`eval echo '${'$as_ac_Header'}'`
14456 { echo "$as_me:$LINENO: result: $ac_res" >&5
14457echo "${ECHO_T}$ac_res" >&6; }
14458else
14459 # Is the header compilable?
14460{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14461echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14462cat >conftest.$ac_ext <<_ACEOF
14463/* confdefs.h. */
14464_ACEOF
14465cat confdefs.h >>conftest.$ac_ext
14466cat >>conftest.$ac_ext <<_ACEOF
14467/* end confdefs.h. */
14468$ac_includes_default
14469#include <$ac_header>
14470_ACEOF
14471rm -f conftest.$ac_objext
14472if { (ac_try="$ac_compile"
14473case "(($ac_try" in
14474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475 *) ac_try_echo=$ac_try;;
14476esac
14477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478 (eval "$ac_compile") 2>conftest.er1
14479 ac_status=$?
14480 grep -v '^ *+' conftest.er1 >conftest.err
14481 rm -f conftest.er1
14482 cat conftest.err >&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } &&
14485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14486 { (case "(($ac_try" in
14487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14488 *) ac_try_echo=$ac_try;;
14489esac
14490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14491 (eval "$ac_try") 2>&5
14492 ac_status=$?
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); }; } &&
14495 { ac_try='test -s conftest.$ac_objext'
14496 { (case "(($ac_try" in
14497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14498 *) ac_try_echo=$ac_try;;
14499esac
14500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14501 (eval "$ac_try") 2>&5
14502 ac_status=$?
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); }; }; then
14505 ac_header_compiler=yes
14506else
14507 echo "$as_me: failed program was:" >&5
14508sed 's/^/| /' conftest.$ac_ext >&5
14509
14510 ac_header_compiler=no
14511fi
14512
14513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14514{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14515echo "${ECHO_T}$ac_header_compiler" >&6; }
14516
14517# Is the header present?
14518{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14519echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14520cat >conftest.$ac_ext <<_ACEOF
14521/* confdefs.h. */
14522_ACEOF
14523cat confdefs.h >>conftest.$ac_ext
14524cat >>conftest.$ac_ext <<_ACEOF
14525/* end confdefs.h. */
14526#include <$ac_header>
14527_ACEOF
14528if { (ac_try="$ac_cpp conftest.$ac_ext"
14529case "(($ac_try" in
14530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531 *) ac_try_echo=$ac_try;;
14532esac
14533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14535 ac_status=$?
14536 grep -v '^ *+' conftest.er1 >conftest.err
14537 rm -f conftest.er1
14538 cat conftest.err >&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } >/dev/null; then
14541 if test -s conftest.err; then
14542 ac_cpp_err=$ac_c_preproc_warn_flag
14543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14544 else
14545 ac_cpp_err=
14546 fi
14547else
14548 ac_cpp_err=yes
14549fi
14550if test -z "$ac_cpp_err"; then
14551 ac_header_preproc=yes
14552else
14553 echo "$as_me: failed program was:" >&5
14554sed 's/^/| /' conftest.$ac_ext >&5
14555
14556 ac_header_preproc=no
14557fi
14558
14559rm -f conftest.err conftest.$ac_ext
14560{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14561echo "${ECHO_T}$ac_header_preproc" >&6; }
14562
14563# So? What about this header?
14564case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14565 yes:no: )
14566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14567echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14569echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14570 ac_header_preproc=yes
14571 ;;
14572 no:yes:* )
14573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14574echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14576echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14577 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14578echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14579 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14580echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14582echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14583 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14584echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14585 ( cat <<\_ASBOX
14586## ------------------------------ ##
14587## Report this to bugs@yourdomain ##
14588## ------------------------------ ##
14589_ASBOX
14590 ) | sed "s/^/$as_me: WARNING: /" >&2
14591 ;;
14592esac
14593{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14594echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14595if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14596 echo $ECHO_N "(cached) $ECHO_C" >&6
14597else
14598 eval "$as_ac_Header=\$ac_header_preproc"
14599fi
14600ac_res=`eval echo '${'$as_ac_Header'}'`
14601 { echo "$as_me:$LINENO: result: $ac_res" >&5
14602echo "${ECHO_T}$ac_res" >&6; }
14603
14604fi
14605if test `eval echo '${'$as_ac_Header'}'` = yes; then
14606 cat >>confdefs.h <<_ACEOF
14607#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14608_ACEOF
14609
14610fi
14611
14612done
14613
14614
14615
14616for ac_header in utime.h windows.h
14617do
14618as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14619if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14622if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14624fi
14625ac_res=`eval echo '${'$as_ac_Header'}'`
14626 { echo "$as_me:$LINENO: result: $ac_res" >&5
14627echo "${ECHO_T}$ac_res" >&6; }
14628else
14629 # Is the header compilable?
14630{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14631echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14632cat >conftest.$ac_ext <<_ACEOF
14633/* confdefs.h. */
14634_ACEOF
14635cat confdefs.h >>conftest.$ac_ext
14636cat >>conftest.$ac_ext <<_ACEOF
14637/* end confdefs.h. */
14638$ac_includes_default
14639#include <$ac_header>
14640_ACEOF
14641rm -f conftest.$ac_objext
14642if { (ac_try="$ac_compile"
14643case "(($ac_try" in
14644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14645 *) ac_try_echo=$ac_try;;
14646esac
14647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14648 (eval "$ac_compile") 2>conftest.er1
14649 ac_status=$?
14650 grep -v '^ *+' conftest.er1 >conftest.err
14651 rm -f conftest.er1
14652 cat conftest.err >&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); } &&
14655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14656 { (case "(($ac_try" in
14657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14658 *) ac_try_echo=$ac_try;;
14659esac
14660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14661 (eval "$ac_try") 2>&5
14662 ac_status=$?
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; } &&
14665 { ac_try='test -s conftest.$ac_objext'
14666 { (case "(($ac_try" in
14667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14668 *) ac_try_echo=$ac_try;;
14669esac
14670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14671 (eval "$ac_try") 2>&5
14672 ac_status=$?
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); }; }; then
14675 ac_header_compiler=yes
14676else
14677 echo "$as_me: failed program was:" >&5
14678sed 's/^/| /' conftest.$ac_ext >&5
14679
14680 ac_header_compiler=no
14681fi
14682
14683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14684{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14685echo "${ECHO_T}$ac_header_compiler" >&6; }
14686
14687# Is the header present?
14688{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14689echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14690cat >conftest.$ac_ext <<_ACEOF
14691/* confdefs.h. */
14692_ACEOF
14693cat confdefs.h >>conftest.$ac_ext
14694cat >>conftest.$ac_ext <<_ACEOF
14695/* end confdefs.h. */
14696#include <$ac_header>
14697_ACEOF
14698if { (ac_try="$ac_cpp conftest.$ac_ext"
14699case "(($ac_try" in
14700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701 *) ac_try_echo=$ac_try;;
14702esac
14703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14705 ac_status=$?
14706 grep -v '^ *+' conftest.er1 >conftest.err
14707 rm -f conftest.er1
14708 cat conftest.err >&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); } >/dev/null; then
14711 if test -s conftest.err; then
14712 ac_cpp_err=$ac_c_preproc_warn_flag
14713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14714 else
14715 ac_cpp_err=
14716 fi
14717else
14718 ac_cpp_err=yes
14719fi
14720if test -z "$ac_cpp_err"; then
14721 ac_header_preproc=yes
14722else
14723 echo "$as_me: failed program was:" >&5
14724sed 's/^/| /' conftest.$ac_ext >&5
14725
14726 ac_header_preproc=no
14727fi
14728
14729rm -f conftest.err conftest.$ac_ext
14730{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14731echo "${ECHO_T}$ac_header_preproc" >&6; }
14732
14733# So? What about this header?
14734case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14735 yes:no: )
14736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14737echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14739echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14740 ac_header_preproc=yes
14741 ;;
14742 no:yes:* )
14743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14744echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14746echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14748echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14750echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14752echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14754echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14755 ( cat <<\_ASBOX
14756## ------------------------------ ##
14757## Report this to bugs@yourdomain ##
14758## ------------------------------ ##
14759_ASBOX
14760 ) | sed "s/^/$as_me: WARNING: /" >&2
14761 ;;
14762esac
14763{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14764echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14765if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14766 echo $ECHO_N "(cached) $ECHO_C" >&6
14767else
14768 eval "$as_ac_Header=\$ac_header_preproc"
14769fi
14770ac_res=`eval echo '${'$as_ac_Header'}'`
14771 { echo "$as_me:$LINENO: result: $ac_res" >&5
14772echo "${ECHO_T}$ac_res" >&6; }
14773
14774fi
14775if test `eval echo '${'$as_ac_Header'}'` = yes; then
14776 cat >>confdefs.h <<_ACEOF
14777#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14778_ACEOF
14779
14780fi
14781
14782done
14783
14784
14785
14786
14787
14788
14789for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14790do
14791as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14795if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14796 echo $ECHO_N "(cached) $ECHO_C" >&6
14797fi
14798ac_res=`eval echo '${'$as_ac_Header'}'`
14799 { echo "$as_me:$LINENO: result: $ac_res" >&5
14800echo "${ECHO_T}$ac_res" >&6; }
14801else
14802 # Is the header compilable?
14803{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14804echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14805cat >conftest.$ac_ext <<_ACEOF
14806/* confdefs.h. */
14807_ACEOF
14808cat confdefs.h >>conftest.$ac_ext
14809cat >>conftest.$ac_ext <<_ACEOF
14810/* end confdefs.h. */
14811$ac_includes_default
14812#include <$ac_header>
14813_ACEOF
14814rm -f conftest.$ac_objext
14815if { (ac_try="$ac_compile"
14816case "(($ac_try" in
14817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14818 *) ac_try_echo=$ac_try;;
14819esac
14820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14821 (eval "$ac_compile") 2>conftest.er1
14822 ac_status=$?
14823 grep -v '^ *+' conftest.er1 >conftest.err
14824 rm -f conftest.er1
14825 cat conftest.err >&5
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } &&
14828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14829 { (case "(($ac_try" in
14830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831 *) ac_try_echo=$ac_try;;
14832esac
14833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14834 (eval "$ac_try") 2>&5
14835 ac_status=$?
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); }; } &&
14838 { ac_try='test -s conftest.$ac_objext'
14839 { (case "(($ac_try" in
14840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14841 *) ac_try_echo=$ac_try;;
14842esac
14843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14844 (eval "$ac_try") 2>&5
14845 ac_status=$?
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); }; }; then
14848 ac_header_compiler=yes
14849else
14850 echo "$as_me: failed program was:" >&5
14851sed 's/^/| /' conftest.$ac_ext >&5
14852
14853 ac_header_compiler=no
14854fi
14855
14856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14857{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14858echo "${ECHO_T}$ac_header_compiler" >&6; }
14859
14860# Is the header present?
14861{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14862echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14863cat >conftest.$ac_ext <<_ACEOF
14864/* confdefs.h. */
14865_ACEOF
14866cat confdefs.h >>conftest.$ac_ext
14867cat >>conftest.$ac_ext <<_ACEOF
14868/* end confdefs.h. */
14869#include <$ac_header>
14870_ACEOF
14871if { (ac_try="$ac_cpp conftest.$ac_ext"
14872case "(($ac_try" in
14873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14874 *) ac_try_echo=$ac_try;;
14875esac
14876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14878 ac_status=$?
14879 grep -v '^ *+' conftest.er1 >conftest.err
14880 rm -f conftest.er1
14881 cat conftest.err >&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); } >/dev/null; then
14884 if test -s conftest.err; then
14885 ac_cpp_err=$ac_c_preproc_warn_flag
14886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14887 else
14888 ac_cpp_err=
14889 fi
14890else
14891 ac_cpp_err=yes
14892fi
14893if test -z "$ac_cpp_err"; then
14894 ac_header_preproc=yes
14895else
14896 echo "$as_me: failed program was:" >&5
14897sed 's/^/| /' conftest.$ac_ext >&5
14898
14899 ac_header_preproc=no
14900fi
14901
14902rm -f conftest.err conftest.$ac_ext
14903{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14904echo "${ECHO_T}$ac_header_preproc" >&6; }
14905
14906# So? What about this header?
14907case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14908 yes:no: )
14909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14910echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14912echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14913 ac_header_preproc=yes
14914 ;;
14915 no:yes:* )
14916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14917echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14919echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14921echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14923echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14925echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14927echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14928 ( cat <<\_ASBOX
14929## ------------------------------ ##
14930## Report this to bugs@yourdomain ##
14931## ------------------------------ ##
14932_ASBOX
14933 ) | sed "s/^/$as_me: WARNING: /" >&2
14934 ;;
14935esac
14936{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14938if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14939 echo $ECHO_N "(cached) $ECHO_C" >&6
14940else
14941 eval "$as_ac_Header=\$ac_header_preproc"
14942fi
14943ac_res=`eval echo '${'$as_ac_Header'}'`
14944 { echo "$as_me:$LINENO: result: $ac_res" >&5
14945echo "${ECHO_T}$ac_res" >&6; }
14946
14947fi
14948if test `eval echo '${'$as_ac_Header'}'` = yes; then
14949 cat >>confdefs.h <<_ACEOF
14950#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14951_ACEOF
14952
14953fi
14954
14955done
14956
14957
14958
14959
14960
14961for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14962do
14963as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14964if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14967if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14968 echo $ECHO_N "(cached) $ECHO_C" >&6
14969fi
14970ac_res=`eval echo '${'$as_ac_Header'}'`
14971 { echo "$as_me:$LINENO: result: $ac_res" >&5
14972echo "${ECHO_T}$ac_res" >&6; }
14973else
14974 # Is the header compilable?
14975{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14976echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14977cat >conftest.$ac_ext <<_ACEOF
14978/* confdefs.h. */
14979_ACEOF
14980cat confdefs.h >>conftest.$ac_ext
14981cat >>conftest.$ac_ext <<_ACEOF
14982/* end confdefs.h. */
14983$ac_includes_default
14984#include <$ac_header>
14985_ACEOF
14986rm -f conftest.$ac_objext
14987if { (ac_try="$ac_compile"
14988case "(($ac_try" in
14989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990 *) ac_try_echo=$ac_try;;
14991esac
14992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993 (eval "$ac_compile") 2>conftest.er1
14994 ac_status=$?
14995 grep -v '^ *+' conftest.er1 >conftest.err
14996 rm -f conftest.er1
14997 cat conftest.err >&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } &&
15000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15001 { (case "(($ac_try" in
15002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15003 *) ac_try_echo=$ac_try;;
15004esac
15005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15006 (eval "$ac_try") 2>&5
15007 ac_status=$?
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); }; } &&
15010 { ac_try='test -s conftest.$ac_objext'
15011 { (case "(($ac_try" in
15012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15013 *) ac_try_echo=$ac_try;;
15014esac
15015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15016 (eval "$ac_try") 2>&5
15017 ac_status=$?
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); }; }; then
15020 ac_header_compiler=yes
15021else
15022 echo "$as_me: failed program was:" >&5
15023sed 's/^/| /' conftest.$ac_ext >&5
15024
15025 ac_header_compiler=no
15026fi
15027
15028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15029{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15030echo "${ECHO_T}$ac_header_compiler" >&6; }
15031
15032# Is the header present?
15033{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15034echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15035cat >conftest.$ac_ext <<_ACEOF
15036/* confdefs.h. */
15037_ACEOF
15038cat confdefs.h >>conftest.$ac_ext
15039cat >>conftest.$ac_ext <<_ACEOF
15040/* end confdefs.h. */
15041#include <$ac_header>
15042_ACEOF
15043if { (ac_try="$ac_cpp conftest.$ac_ext"
15044case "(($ac_try" in
15045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15046 *) ac_try_echo=$ac_try;;
15047esac
15048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15050 ac_status=$?
15051 grep -v '^ *+' conftest.er1 >conftest.err
15052 rm -f conftest.er1
15053 cat conftest.err >&5
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); } >/dev/null; then
15056 if test -s conftest.err; then
15057 ac_cpp_err=$ac_c_preproc_warn_flag
15058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15059 else
15060 ac_cpp_err=
15061 fi
15062else
15063 ac_cpp_err=yes
15064fi
15065if test -z "$ac_cpp_err"; then
15066 ac_header_preproc=yes
15067else
15068 echo "$as_me: failed program was:" >&5
15069sed 's/^/| /' conftest.$ac_ext >&5
15070
15071 ac_header_preproc=no
15072fi
15073
15074rm -f conftest.err conftest.$ac_ext
15075{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15076echo "${ECHO_T}$ac_header_preproc" >&6; }
15077
15078# So? What about this header?
15079case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15080 yes:no: )
15081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15082echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15084echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15085 ac_header_preproc=yes
15086 ;;
15087 no:yes:* )
15088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15089echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15091echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15093echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15095echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15097echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15099echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15100 ( cat <<\_ASBOX
15101## ------------------------------ ##
15102## Report this to bugs@yourdomain ##
15103## ------------------------------ ##
15104_ASBOX
15105 ) | sed "s/^/$as_me: WARNING: /" >&2
15106 ;;
15107esac
15108{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15109echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15111 echo $ECHO_N "(cached) $ECHO_C" >&6
15112else
15113 eval "$as_ac_Header=\$ac_header_preproc"
15114fi
15115ac_res=`eval echo '${'$as_ac_Header'}'`
15116 { echo "$as_me:$LINENO: result: $ac_res" >&5
15117echo "${ECHO_T}$ac_res" >&6; }
15118
15119fi
15120if test `eval echo '${'$as_ac_Header'}'` = yes; then
15121 cat >>confdefs.h <<_ACEOF
15122#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15123_ACEOF
15124
15125fi
15126
15127done
15128
15129
15130for ac_header in valgrind/valgrind.h
15131do
15132as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15133if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15137 echo $ECHO_N "(cached) $ECHO_C" >&6
15138fi
15139ac_res=`eval echo '${'$as_ac_Header'}'`
15140 { echo "$as_me:$LINENO: result: $ac_res" >&5
15141echo "${ECHO_T}$ac_res" >&6; }
15142else
15143 # Is the header compilable?
15144{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15145echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15146cat >conftest.$ac_ext <<_ACEOF
15147/* confdefs.h. */
15148_ACEOF
15149cat confdefs.h >>conftest.$ac_ext
15150cat >>conftest.$ac_ext <<_ACEOF
15151/* end confdefs.h. */
15152$ac_includes_default
15153#include <$ac_header>
15154_ACEOF
15155rm -f conftest.$ac_objext
15156if { (ac_try="$ac_compile"
15157case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15160esac
15161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162 (eval "$ac_compile") 2>conftest.er1
15163 ac_status=$?
15164 grep -v '^ *+' conftest.er1 >conftest.err
15165 rm -f conftest.er1
15166 cat conftest.err >&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); } &&
15169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15170 { (case "(($ac_try" in
15171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15172 *) ac_try_echo=$ac_try;;
15173esac
15174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15175 (eval "$ac_try") 2>&5
15176 ac_status=$?
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); }; } &&
15179 { ac_try='test -s conftest.$ac_objext'
15180 { (case "(($ac_try" in
15181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15182 *) ac_try_echo=$ac_try;;
15183esac
15184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15185 (eval "$ac_try") 2>&5
15186 ac_status=$?
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; }; then
15189 ac_header_compiler=yes
15190else
15191 echo "$as_me: failed program was:" >&5
15192sed 's/^/| /' conftest.$ac_ext >&5
15193
15194 ac_header_compiler=no
15195fi
15196
15197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15198{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15199echo "${ECHO_T}$ac_header_compiler" >&6; }
15200
15201# Is the header present?
15202{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15203echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15204cat >conftest.$ac_ext <<_ACEOF
15205/* confdefs.h. */
15206_ACEOF
15207cat confdefs.h >>conftest.$ac_ext
15208cat >>conftest.$ac_ext <<_ACEOF
15209/* end confdefs.h. */
15210#include <$ac_header>
15211_ACEOF
15212if { (ac_try="$ac_cpp conftest.$ac_ext"
15213case "(($ac_try" in
15214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215 *) ac_try_echo=$ac_try;;
15216esac
15217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15219 ac_status=$?
15220 grep -v '^ *+' conftest.er1 >conftest.err
15221 rm -f conftest.er1
15222 cat conftest.err >&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } >/dev/null; then
15225 if test -s conftest.err; then
15226 ac_cpp_err=$ac_c_preproc_warn_flag
15227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15228 else
15229 ac_cpp_err=
15230 fi
15231else
15232 ac_cpp_err=yes
15233fi
15234if test -z "$ac_cpp_err"; then
15235 ac_header_preproc=yes
15236else
15237 echo "$as_me: failed program was:" >&5
15238sed 's/^/| /' conftest.$ac_ext >&5
15239
15240 ac_header_preproc=no
15241fi
15242
15243rm -f conftest.err conftest.$ac_ext
15244{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15245echo "${ECHO_T}$ac_header_preproc" >&6; }
15246
15247# So? What about this header?
15248case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15249 yes:no: )
15250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15251echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15253echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15254 ac_header_preproc=yes
15255 ;;
15256 no:yes:* )
15257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15258echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15260echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15262echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15264echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15266echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15268echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15269 ( cat <<\_ASBOX
15270## ------------------------------ ##
15271## Report this to bugs@yourdomain ##
15272## ------------------------------ ##
15273_ASBOX
15274 ) | sed "s/^/$as_me: WARNING: /" >&2
15275 ;;
15276esac
15277{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15278echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15279if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15280 echo $ECHO_N "(cached) $ECHO_C" >&6
15281else
15282 eval "$as_ac_Header=\$ac_header_preproc"
15283fi
15284ac_res=`eval echo '${'$as_ac_Header'}'`
15285 { echo "$as_me:$LINENO: result: $ac_res" >&5
15286echo "${ECHO_T}$ac_res" >&6; }
15287
15288fi
15289if test `eval echo '${'$as_ac_Header'}'` = yes; then
15290 cat >>confdefs.h <<_ACEOF
15291#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15292_ACEOF
15293
15294fi
15295
15296done
15297
15298
15299for ac_header in fenv.h
15300do
15301as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15302if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15307fi
15308ac_res=`eval echo '${'$as_ac_Header'}'`
15309 { echo "$as_me:$LINENO: result: $ac_res" >&5
15310echo "${ECHO_T}$ac_res" >&6; }
15311else
15312 # Is the header compilable?
15313{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15314echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15315cat >conftest.$ac_ext <<_ACEOF
15316/* confdefs.h. */
15317_ACEOF
15318cat confdefs.h >>conftest.$ac_ext
15319cat >>conftest.$ac_ext <<_ACEOF
15320/* end confdefs.h. */
15321$ac_includes_default
15322#include <$ac_header>
15323_ACEOF
15324rm -f conftest.$ac_objext
15325if { (ac_try="$ac_compile"
15326case "(($ac_try" in
15327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15328 *) ac_try_echo=$ac_try;;
15329esac
15330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15331 (eval "$ac_compile") 2>conftest.er1
15332 ac_status=$?
15333 grep -v '^ *+' conftest.er1 >conftest.err
15334 rm -f conftest.er1
15335 cat conftest.err >&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); } &&
15338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15339 { (case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15342esac
15343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_try") 2>&5
15345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; } &&
15348 { ac_try='test -s conftest.$ac_objext'
15349 { (case "(($ac_try" in
15350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15351 *) ac_try_echo=$ac_try;;
15352esac
15353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15354 (eval "$ac_try") 2>&5
15355 ac_status=$?
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; }; then
15358 ac_header_compiler=yes
15359else
15360 echo "$as_me: failed program was:" >&5
15361sed 's/^/| /' conftest.$ac_ext >&5
15362
15363 ac_header_compiler=no
15364fi
15365
15366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15367{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15368echo "${ECHO_T}$ac_header_compiler" >&6; }
15369
15370# Is the header present?
15371{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15372echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15373cat >conftest.$ac_ext <<_ACEOF
15374/* confdefs.h. */
15375_ACEOF
15376cat confdefs.h >>conftest.$ac_ext
15377cat >>conftest.$ac_ext <<_ACEOF
15378/* end confdefs.h. */
15379#include <$ac_header>
15380_ACEOF
15381if { (ac_try="$ac_cpp conftest.$ac_ext"
15382case "(($ac_try" in
15383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384 *) ac_try_echo=$ac_try;;
15385esac
15386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15388 ac_status=$?
15389 grep -v '^ *+' conftest.er1 >conftest.err
15390 rm -f conftest.er1
15391 cat conftest.err >&5
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); } >/dev/null; then
15394 if test -s conftest.err; then
15395 ac_cpp_err=$ac_c_preproc_warn_flag
15396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15397 else
15398 ac_cpp_err=
15399 fi
15400else
15401 ac_cpp_err=yes
15402fi
15403if test -z "$ac_cpp_err"; then
15404 ac_header_preproc=yes
15405else
15406 echo "$as_me: failed program was:" >&5
15407sed 's/^/| /' conftest.$ac_ext >&5
15408
15409 ac_header_preproc=no
15410fi
15411
15412rm -f conftest.err conftest.$ac_ext
15413{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15414echo "${ECHO_T}$ac_header_preproc" >&6; }
15415
15416# So? What about this header?
15417case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15418 yes:no: )
15419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15420echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15422echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15423 ac_header_preproc=yes
15424 ;;
15425 no:yes:* )
15426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15427echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15429echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15430 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15431echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15432 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15433echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15435echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15436 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15437echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15438 ( cat <<\_ASBOX
15439## ------------------------------ ##
15440## Report this to bugs@yourdomain ##
15441## ------------------------------ ##
15442_ASBOX
15443 ) | sed "s/^/$as_me: WARNING: /" >&2
15444 ;;
15445esac
15446{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15447echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15448if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15449 echo $ECHO_N "(cached) $ECHO_C" >&6
15450else
15451 eval "$as_ac_Header=\$ac_header_preproc"
15452fi
15453ac_res=`eval echo '${'$as_ac_Header'}'`
15454 { echo "$as_me:$LINENO: result: $ac_res" >&5
15455echo "${ECHO_T}$ac_res" >&6; }
15456
15457fi
15458if test `eval echo '${'$as_ac_Header'}'` = yes; then
15459 cat >>confdefs.h <<_ACEOF
15460#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15461_ACEOF
15462
15463fi
15464
15465done
15466
15467if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15468
15469for ac_header in pthread.h
15470do
15471as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15472if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15476 echo $ECHO_N "(cached) $ECHO_C" >&6
15477fi
15478ac_res=`eval echo '${'$as_ac_Header'}'`
15479 { echo "$as_me:$LINENO: result: $ac_res" >&5
15480echo "${ECHO_T}$ac_res" >&6; }
15481else
15482 # Is the header compilable?
15483{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15484echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15485cat >conftest.$ac_ext <<_ACEOF
15486/* confdefs.h. */
15487_ACEOF
15488cat confdefs.h >>conftest.$ac_ext
15489cat >>conftest.$ac_ext <<_ACEOF
15490/* end confdefs.h. */
15491$ac_includes_default
15492#include <$ac_header>
15493_ACEOF
15494rm -f conftest.$ac_objext
15495if { (ac_try="$ac_compile"
15496case "(($ac_try" in
15497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15498 *) ac_try_echo=$ac_try;;
15499esac
15500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15501 (eval "$ac_compile") 2>conftest.er1
15502 ac_status=$?
15503 grep -v '^ *+' conftest.er1 >conftest.err
15504 rm -f conftest.er1
15505 cat conftest.err >&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); } &&
15508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15509 { (case "(($ac_try" in
15510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511 *) ac_try_echo=$ac_try;;
15512esac
15513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15514 (eval "$ac_try") 2>&5
15515 ac_status=$?
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; } &&
15518 { ac_try='test -s conftest.$ac_objext'
15519 { (case "(($ac_try" in
15520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15521 *) ac_try_echo=$ac_try;;
15522esac
15523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15524 (eval "$ac_try") 2>&5
15525 ac_status=$?
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; }; then
15528 ac_header_compiler=yes
15529else
15530 echo "$as_me: failed program was:" >&5
15531sed 's/^/| /' conftest.$ac_ext >&5
15532
15533 ac_header_compiler=no
15534fi
15535
15536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15537{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15538echo "${ECHO_T}$ac_header_compiler" >&6; }
15539
15540# Is the header present?
15541{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15542echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15543cat >conftest.$ac_ext <<_ACEOF
15544/* confdefs.h. */
15545_ACEOF
15546cat confdefs.h >>conftest.$ac_ext
15547cat >>conftest.$ac_ext <<_ACEOF
15548/* end confdefs.h. */
15549#include <$ac_header>
15550_ACEOF
15551if { (ac_try="$ac_cpp conftest.$ac_ext"
15552case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15555esac
15556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15558 ac_status=$?
15559 grep -v '^ *+' conftest.er1 >conftest.err
15560 rm -f conftest.er1
15561 cat conftest.err >&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } >/dev/null; then
15564 if test -s conftest.err; then
15565 ac_cpp_err=$ac_c_preproc_warn_flag
15566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15567 else
15568 ac_cpp_err=
15569 fi
15570else
15571 ac_cpp_err=yes
15572fi
15573if test -z "$ac_cpp_err"; then
15574 ac_header_preproc=yes
15575else
15576 echo "$as_me: failed program was:" >&5
15577sed 's/^/| /' conftest.$ac_ext >&5
15578
15579 ac_header_preproc=no
15580fi
15581
15582rm -f conftest.err conftest.$ac_ext
15583{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15584echo "${ECHO_T}$ac_header_preproc" >&6; }
15585
15586# So? What about this header?
15587case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15588 yes:no: )
15589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15590echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15592echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15593 ac_header_preproc=yes
15594 ;;
15595 no:yes:* )
15596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15597echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15599echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15601echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15603echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15605echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15607echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15608 ( cat <<\_ASBOX
15609## ------------------------------ ##
15610## Report this to bugs@yourdomain ##
15611## ------------------------------ ##
15612_ASBOX
15613 ) | sed "s/^/$as_me: WARNING: /" >&2
15614 ;;
15615esac
15616{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15617echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15618if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15619 echo $ECHO_N "(cached) $ECHO_C" >&6
15620else
15621 eval "$as_ac_Header=\$ac_header_preproc"
15622fi
15623ac_res=`eval echo '${'$as_ac_Header'}'`
15624 { echo "$as_me:$LINENO: result: $ac_res" >&5
15625echo "${ECHO_T}$ac_res" >&6; }
15626
15627fi
15628if test `eval echo '${'$as_ac_Header'}'` = yes; then
15629 cat >>confdefs.h <<_ACEOF
15630#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15631_ACEOF
15632 HAVE_PTHREAD=1
15633
15634else
15635 HAVE_PTHREAD=0
15636
15637fi
15638
15639done
15640
15641else
15642 HAVE_PTHREAD=0
15643
15644fi
15645
15646if test "$llvm_cv_enable_libffi" = "yes" ; then
15647
15648
15649for ac_header in ffi.h ffi/ffi.h
15650do
15651as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15652if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15656 echo $ECHO_N "(cached) $ECHO_C" >&6
15657fi
15658ac_res=`eval echo '${'$as_ac_Header'}'`
15659 { echo "$as_me:$LINENO: result: $ac_res" >&5
15660echo "${ECHO_T}$ac_res" >&6; }
15661else
15662 # Is the header compilable?
15663{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15664echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15665cat >conftest.$ac_ext <<_ACEOF
15666/* confdefs.h. */
15667_ACEOF
15668cat confdefs.h >>conftest.$ac_ext
15669cat >>conftest.$ac_ext <<_ACEOF
15670/* end confdefs.h. */
15671$ac_includes_default
15672#include <$ac_header>
15673_ACEOF
15674rm -f conftest.$ac_objext
15675if { (ac_try="$ac_compile"
15676case "(($ac_try" in
15677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15678 *) ac_try_echo=$ac_try;;
15679esac
15680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15681 (eval "$ac_compile") 2>conftest.er1
15682 ac_status=$?
15683 grep -v '^ *+' conftest.er1 >conftest.err
15684 rm -f conftest.er1
15685 cat conftest.err >&5
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); } &&
15688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15689 { (case "(($ac_try" in
15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691 *) ac_try_echo=$ac_try;;
15692esac
15693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694 (eval "$ac_try") 2>&5
15695 ac_status=$?
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; } &&
15698 { ac_try='test -s conftest.$ac_objext'
15699 { (case "(($ac_try" in
15700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15701 *) ac_try_echo=$ac_try;;
15702esac
15703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15704 (eval "$ac_try") 2>&5
15705 ac_status=$?
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; }; then
15708 ac_header_compiler=yes
15709else
15710 echo "$as_me: failed program was:" >&5
15711sed 's/^/| /' conftest.$ac_ext >&5
15712
15713 ac_header_compiler=no
15714fi
15715
15716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15717{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15718echo "${ECHO_T}$ac_header_compiler" >&6; }
15719
15720# Is the header present?
15721{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15722echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15723cat >conftest.$ac_ext <<_ACEOF
15724/* confdefs.h. */
15725_ACEOF
15726cat confdefs.h >>conftest.$ac_ext
15727cat >>conftest.$ac_ext <<_ACEOF
15728/* end confdefs.h. */
15729#include <$ac_header>
15730_ACEOF
15731if { (ac_try="$ac_cpp conftest.$ac_ext"
15732case "(($ac_try" in
15733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734 *) ac_try_echo=$ac_try;;
15735esac
15736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15738 ac_status=$?
15739 grep -v '^ *+' conftest.er1 >conftest.err
15740 rm -f conftest.er1
15741 cat conftest.err >&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); } >/dev/null; then
15744 if test -s conftest.err; then
15745 ac_cpp_err=$ac_c_preproc_warn_flag
15746 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15747 else
15748 ac_cpp_err=
15749 fi
15750else
15751 ac_cpp_err=yes
15752fi
15753if test -z "$ac_cpp_err"; then
15754 ac_header_preproc=yes
15755else
15756 echo "$as_me: failed program was:" >&5
15757sed 's/^/| /' conftest.$ac_ext >&5
15758
15759 ac_header_preproc=no
15760fi
15761
15762rm -f conftest.err conftest.$ac_ext
15763{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15764echo "${ECHO_T}$ac_header_preproc" >&6; }
15765
15766# So? What about this header?
15767case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15768 yes:no: )
15769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15770echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15772echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15773 ac_header_preproc=yes
15774 ;;
15775 no:yes:* )
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15777echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15779echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15781echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15783echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15785echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15787echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15788 ( cat <<\_ASBOX
15789## ------------------------------ ##
15790## Report this to bugs@yourdomain ##
15791## ------------------------------ ##
15792_ASBOX
15793 ) | sed "s/^/$as_me: WARNING: /" >&2
15794 ;;
15795esac
15796{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15797echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15798if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15799 echo $ECHO_N "(cached) $ECHO_C" >&6
15800else
15801 eval "$as_ac_Header=\$ac_header_preproc"
15802fi
15803ac_res=`eval echo '${'$as_ac_Header'}'`
15804 { echo "$as_me:$LINENO: result: $ac_res" >&5
15805echo "${ECHO_T}$ac_res" >&6; }
15806
15807fi
15808if test `eval echo '${'$as_ac_Header'}'` = yes; then
15809 cat >>confdefs.h <<_ACEOF
15810#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15811_ACEOF
15812
15813fi
15814
15815done
15816
15817fi
15818
15819
15820for ac_header in CrashReporterClient.h
15821do
15822as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15823if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15826if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15827 echo $ECHO_N "(cached) $ECHO_C" >&6
15828fi
15829ac_res=`eval echo '${'$as_ac_Header'}'`
15830 { echo "$as_me:$LINENO: result: $ac_res" >&5
15831echo "${ECHO_T}$ac_res" >&6; }
15832else
15833 # Is the header compilable?
15834{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15835echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15836cat >conftest.$ac_ext <<_ACEOF
15837/* confdefs.h. */
15838_ACEOF
15839cat confdefs.h >>conftest.$ac_ext
15840cat >>conftest.$ac_ext <<_ACEOF
15841/* end confdefs.h. */
15842$ac_includes_default
15843#include <$ac_header>
15844_ACEOF
15845rm -f conftest.$ac_objext
15846if { (ac_try="$ac_compile"
15847case "(($ac_try" in
15848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15849 *) ac_try_echo=$ac_try;;
15850esac
15851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15852 (eval "$ac_compile") 2>conftest.er1
15853 ac_status=$?
15854 grep -v '^ *+' conftest.er1 >conftest.err
15855 rm -f conftest.er1
15856 cat conftest.err >&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); } &&
15859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15860 { (case "(($ac_try" in
15861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862 *) ac_try_echo=$ac_try;;
15863esac
15864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15865 (eval "$ac_try") 2>&5
15866 ac_status=$?
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; } &&
15869 { ac_try='test -s conftest.$ac_objext'
15870 { (case "(($ac_try" in
15871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15872 *) ac_try_echo=$ac_try;;
15873esac
15874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15875 (eval "$ac_try") 2>&5
15876 ac_status=$?
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); }; }; then
15879 ac_header_compiler=yes
15880else
15881 echo "$as_me: failed program was:" >&5
15882sed 's/^/| /' conftest.$ac_ext >&5
15883
15884 ac_header_compiler=no
15885fi
15886
15887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15888{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15889echo "${ECHO_T}$ac_header_compiler" >&6; }
15890
15891# Is the header present?
15892{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15893echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15894cat >conftest.$ac_ext <<_ACEOF
15895/* confdefs.h. */
15896_ACEOF
15897cat confdefs.h >>conftest.$ac_ext
15898cat >>conftest.$ac_ext <<_ACEOF
15899/* end confdefs.h. */
15900#include <$ac_header>
15901_ACEOF
15902if { (ac_try="$ac_cpp conftest.$ac_ext"
15903case "(($ac_try" in
15904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15905 *) ac_try_echo=$ac_try;;
15906esac
15907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15909 ac_status=$?
15910 grep -v '^ *+' conftest.er1 >conftest.err
15911 rm -f conftest.er1
15912 cat conftest.err >&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); } >/dev/null; then
15915 if test -s conftest.err; then
15916 ac_cpp_err=$ac_c_preproc_warn_flag
15917 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15918 else
15919 ac_cpp_err=
15920 fi
15921else
15922 ac_cpp_err=yes
15923fi
15924if test -z "$ac_cpp_err"; then
15925 ac_header_preproc=yes
15926else
15927 echo "$as_me: failed program was:" >&5
15928sed 's/^/| /' conftest.$ac_ext >&5
15929
15930 ac_header_preproc=no
15931fi
15932
15933rm -f conftest.err conftest.$ac_ext
15934{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15935echo "${ECHO_T}$ac_header_preproc" >&6; }
15936
15937# So? What about this header?
15938case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15939 yes:no: )
15940 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15941echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15943echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15944 ac_header_preproc=yes
15945 ;;
15946 no:yes:* )
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15948echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15949 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15950echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15951 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15952echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15953 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15954echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15956echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15957 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15958echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15959 ( cat <<\_ASBOX
15960## ------------------------------ ##
15961## Report this to bugs@yourdomain ##
15962## ------------------------------ ##
15963_ASBOX
15964 ) | sed "s/^/$as_me: WARNING: /" >&2
15965 ;;
15966esac
15967{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15968echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15969if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15970 echo $ECHO_N "(cached) $ECHO_C" >&6
15971else
15972 eval "$as_ac_Header=\$ac_header_preproc"
15973fi
15974ac_res=`eval echo '${'$as_ac_Header'}'`
15975 { echo "$as_me:$LINENO: result: $ac_res" >&5
15976echo "${ECHO_T}$ac_res" >&6; }
15977
15978fi
15979if test `eval echo '${'$as_ac_Header'}'` = yes; then
15980 cat >>confdefs.h <<_ACEOF
15981#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15982_ACEOF
15983
15984fi
15985
15986done
15987
15988
15989{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15990echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15991cat >conftest.$ac_ext <<_ACEOF
15992/* confdefs.h. */
15993_ACEOF
15994cat confdefs.h >>conftest.$ac_ext
15995cat >>conftest.$ac_ext <<_ACEOF
15996/* end confdefs.h. */
15997extern const char *__crashreporter_info__;
15998 int main() {
15999 __crashreporter_info__ = "test";
16000 return 0;
16001 }
16002
16003_ACEOF
16004rm -f conftest.$ac_objext conftest$ac_exeext
16005if { (ac_try="$ac_link"
16006case "(($ac_try" in
16007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16008 *) ac_try_echo=$ac_try;;
16009esac
16010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16011 (eval "$ac_link") 2>conftest.er1
16012 ac_status=$?
16013 grep -v '^ *+' conftest.er1 >conftest.err
16014 rm -f conftest.er1
16015 cat conftest.err >&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } &&
16018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16019 { (case "(($ac_try" in
16020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16021 *) ac_try_echo=$ac_try;;
16022esac
16023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16024 (eval "$ac_try") 2>&5
16025 ac_status=$?
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); }; } &&
16028 { ac_try='test -s conftest$ac_exeext'
16029 { (case "(($ac_try" in
16030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16031 *) ac_try_echo=$ac_try;;
16032esac
16033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16034 (eval "$ac_try") 2>&5
16035 ac_status=$?
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; }; then
16038 { echo "$as_me:$LINENO: result: yes" >&5
16039echo "${ECHO_T}yes" >&6; }
16040
16041cat >>confdefs.h <<\_ACEOF
16042#define HAVE_CRASHREPORTER_INFO 1
16043_ACEOF
16044
16045else
16046 echo "$as_me: failed program was:" >&5
16047sed 's/^/| /' conftest.$ac_ext >&5
16048
16049 { echo "$as_me:$LINENO: result: no" >&5
16050echo "${ECHO_T}no" >&6; }
16051
16052cat >>confdefs.h <<\_ACEOF
16053#define HAVE_CRASHREPORTER_INFO 0
16054_ACEOF
16055
16056fi
16057
16058rm -f core conftest.err conftest.$ac_objext \
16059 conftest$ac_exeext conftest.$ac_ext
16060
16061
16062
16063
16064 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16065echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16066if test "${ac_cv_huge_val_sanity+set}" = set; then
16067 echo $ECHO_N "(cached) $ECHO_C" >&6
16068else
16069
16070 ac_ext=cpp
16071ac_cpp='$CXXCPP $CPPFLAGS'
16072ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16073ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16074ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16075
16076 ac_save_CXXFLAGS=$CXXFLAGS
16077 CXXFLAGS=-pedantic
16078 if test "$cross_compiling" = yes; then
16079 ac_cv_huge_val_sanity=yes
16080else
16081 cat >conftest.$ac_ext <<_ACEOF
16082/* confdefs.h. */
16083_ACEOF
16084cat confdefs.h >>conftest.$ac_ext
16085cat >>conftest.$ac_ext <<_ACEOF
16086/* end confdefs.h. */
16087#include <math.h>
16088int
16089main ()
16090{
16091double x = HUGE_VAL; return x != x;
16092 ;
16093 return 0;
16094}
16095_ACEOF
16096rm -f conftest$ac_exeext
16097if { (ac_try="$ac_link"
16098case "(($ac_try" in
16099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100 *) ac_try_echo=$ac_try;;
16101esac
16102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16103 (eval "$ac_link") 2>&5
16104 ac_status=$?
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16107 { (case "(($ac_try" in
16108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16109 *) ac_try_echo=$ac_try;;
16110esac
16111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16112 (eval "$ac_try") 2>&5
16113 ac_status=$?
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); }; }; then
16116 ac_cv_huge_val_sanity=yes
16117else
16118 echo "$as_me: program exited with status $ac_status" >&5
16119echo "$as_me: failed program was:" >&5
16120sed 's/^/| /' conftest.$ac_ext >&5
16121
16122( exit $ac_status )
16123ac_cv_huge_val_sanity=no
16124fi
16125rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16126fi
16127
16128
16129 CXXFLAGS=$ac_save_CXXFLAGS
16130 ac_ext=c
16131ac_cpp='$CPP $CPPFLAGS'
16132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16134ac_compiler_gnu=$ac_cv_c_compiler_gnu
16135
16136
16137fi
16138{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16139echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16140 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16141
16142
16143{ echo "$as_me:$LINENO: checking for pid_t" >&5
16144echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16145if test "${ac_cv_type_pid_t+set}" = set; then
16146 echo $ECHO_N "(cached) $ECHO_C" >&6
16147else
16148 cat >conftest.$ac_ext <<_ACEOF
16149/* confdefs.h. */
16150_ACEOF
16151cat confdefs.h >>conftest.$ac_ext
16152cat >>conftest.$ac_ext <<_ACEOF
16153/* end confdefs.h. */
16154$ac_includes_default
16155typedef pid_t ac__type_new_;
16156int
16157main ()
16158{
16159if ((ac__type_new_ *) 0)
16160 return 0;
16161if (sizeof (ac__type_new_))
16162 return 0;
16163 ;
16164 return 0;
16165}
16166_ACEOF
16167rm -f conftest.$ac_objext
16168if { (ac_try="$ac_compile"
16169case "(($ac_try" in
16170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16171 *) ac_try_echo=$ac_try;;
16172esac
16173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16174 (eval "$ac_compile") 2>conftest.er1
16175 ac_status=$?
16176 grep -v '^ *+' conftest.er1 >conftest.err
16177 rm -f conftest.er1
16178 cat conftest.err >&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } &&
16181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16182 { (case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16185esac
16186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187 (eval "$ac_try") 2>&5
16188 ac_status=$?
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; } &&
16191 { ac_try='test -s conftest.$ac_objext'
16192 { (case "(($ac_try" in
16193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16194 *) ac_try_echo=$ac_try;;
16195esac
16196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16197 (eval "$ac_try") 2>&5
16198 ac_status=$?
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; }; then
16201 ac_cv_type_pid_t=yes
16202else
16203 echo "$as_me: failed program was:" >&5
16204sed 's/^/| /' conftest.$ac_ext >&5
16205
16206 ac_cv_type_pid_t=no
16207fi
16208
16209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16210fi
16211{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16212echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16213if test $ac_cv_type_pid_t = yes; then
16214 :
16215else
16216
16217cat >>confdefs.h <<_ACEOF
16218#define pid_t int
16219_ACEOF
16220
16221fi
16222
16223{ echo "$as_me:$LINENO: checking for size_t" >&5
16224echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16225if test "${ac_cv_type_size_t+set}" = set; then
16226 echo $ECHO_N "(cached) $ECHO_C" >&6
16227else
16228 cat >conftest.$ac_ext <<_ACEOF
16229/* confdefs.h. */
16230_ACEOF
16231cat confdefs.h >>conftest.$ac_ext
16232cat >>conftest.$ac_ext <<_ACEOF
16233/* end confdefs.h. */
16234$ac_includes_default
16235typedef size_t ac__type_new_;
16236int
16237main ()
16238{
16239if ((ac__type_new_ *) 0)
16240 return 0;
16241if (sizeof (ac__type_new_))
16242 return 0;
16243 ;
16244 return 0;
16245}
16246_ACEOF
16247rm -f conftest.$ac_objext
16248if { (ac_try="$ac_compile"
16249case "(($ac_try" in
16250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16251 *) ac_try_echo=$ac_try;;
16252esac
16253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16254 (eval "$ac_compile") 2>conftest.er1
16255 ac_status=$?
16256 grep -v '^ *+' conftest.er1 >conftest.err
16257 rm -f conftest.er1
16258 cat conftest.err >&5
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); } &&
16261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16262 { (case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16265esac
16266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_try") 2>&5
16268 ac_status=$?
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; } &&
16271 { ac_try='test -s conftest.$ac_objext'
16272 { (case "(($ac_try" in
16273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274 *) ac_try_echo=$ac_try;;
16275esac
16276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16277 (eval "$ac_try") 2>&5
16278 ac_status=$?
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; }; then
16281 ac_cv_type_size_t=yes
16282else
16283 echo "$as_me: failed program was:" >&5
16284sed 's/^/| /' conftest.$ac_ext >&5
16285
16286 ac_cv_type_size_t=no
16287fi
16288
16289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16290fi
16291{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16292echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16293if test $ac_cv_type_size_t = yes; then
16294 :
16295else
16296
16297cat >>confdefs.h <<_ACEOF
16298#define size_t unsigned int
16299_ACEOF
16300
16301fi
16302
16303
16304cat >>confdefs.h <<_ACEOF
16305#define RETSIGTYPE void
16306_ACEOF
16307
16308{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16309echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16310if test "${ac_cv_struct_tm+set}" = set; then
16311 echo $ECHO_N "(cached) $ECHO_C" >&6
16312else
16313 cat >conftest.$ac_ext <<_ACEOF
16314/* confdefs.h. */
16315_ACEOF
16316cat confdefs.h >>conftest.$ac_ext
16317cat >>conftest.$ac_ext <<_ACEOF
16318/* end confdefs.h. */
16319#include <sys/types.h>
16320#include <time.h>
16321
16322int
16323main ()
16324{
16325struct tm *tp; tp->tm_sec;
16326 ;
16327 return 0;
16328}
16329_ACEOF
16330rm -f conftest.$ac_objext
16331if { (ac_try="$ac_compile"
16332case "(($ac_try" in
16333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16334 *) ac_try_echo=$ac_try;;
16335esac
16336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16337 (eval "$ac_compile") 2>conftest.er1
16338 ac_status=$?
16339 grep -v '^ *+' conftest.er1 >conftest.err
16340 rm -f conftest.er1
16341 cat conftest.err >&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); } &&
16344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16345 { (case "(($ac_try" in
16346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16347 *) ac_try_echo=$ac_try;;
16348esac
16349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16350 (eval "$ac_try") 2>&5
16351 ac_status=$?
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; } &&
16354 { ac_try='test -s conftest.$ac_objext'
16355 { (case "(($ac_try" in
16356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16357 *) ac_try_echo=$ac_try;;
16358esac
16359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16360 (eval "$ac_try") 2>&5
16361 ac_status=$?
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; }; then
16364 ac_cv_struct_tm=time.h
16365else
16366 echo "$as_me: failed program was:" >&5
16367sed 's/^/| /' conftest.$ac_ext >&5
16368
16369 ac_cv_struct_tm=sys/time.h
16370fi
16371
16372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16373fi
16374{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16375echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16376if test $ac_cv_struct_tm = sys/time.h; then
16377
16378cat >>confdefs.h <<\_ACEOF
16379#define TM_IN_SYS_TIME 1
16380_ACEOF
16381
16382fi
16383
16384{ echo "$as_me:$LINENO: checking for int64_t" >&5
16385echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16386if test "${ac_cv_type_int64_t+set}" = set; then
16387 echo $ECHO_N "(cached) $ECHO_C" >&6
16388else
16389 cat >conftest.$ac_ext <<_ACEOF
16390/* confdefs.h. */
16391_ACEOF
16392cat confdefs.h >>conftest.$ac_ext
16393cat >>conftest.$ac_ext <<_ACEOF
16394/* end confdefs.h. */
16395$ac_includes_default
16396typedef int64_t ac__type_new_;
16397int
16398main ()
16399{
16400if ((ac__type_new_ *) 0)
16401 return 0;
16402if (sizeof (ac__type_new_))
16403 return 0;
16404 ;
16405 return 0;
16406}
16407_ACEOF
16408rm -f conftest.$ac_objext
16409if { (ac_try="$ac_compile"
16410case "(($ac_try" in
16411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412 *) ac_try_echo=$ac_try;;
16413esac
16414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16415 (eval "$ac_compile") 2>conftest.er1
16416 ac_status=$?
16417 grep -v '^ *+' conftest.er1 >conftest.err
16418 rm -f conftest.er1
16419 cat conftest.err >&5
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); } &&
16422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16423 { (case "(($ac_try" in
16424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425 *) ac_try_echo=$ac_try;;
16426esac
16427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428 (eval "$ac_try") 2>&5
16429 ac_status=$?
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; } &&
16432 { ac_try='test -s conftest.$ac_objext'
16433 { (case "(($ac_try" in
16434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16435 *) ac_try_echo=$ac_try;;
16436esac
16437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16438 (eval "$ac_try") 2>&5
16439 ac_status=$?
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); }; }; then
16442 ac_cv_type_int64_t=yes
16443else
16444 echo "$as_me: failed program was:" >&5
16445sed 's/^/| /' conftest.$ac_ext >&5
16446
16447 ac_cv_type_int64_t=no
16448fi
16449
16450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16451fi
16452{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16453echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16454if test $ac_cv_type_int64_t = yes; then
16455
16456cat >>confdefs.h <<_ACEOF
16457#define HAVE_INT64_T 1
16458_ACEOF
16459
16460
16461else
16462 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16463echo "$as_me: error: Type int64_t required but not found" >&2;}
16464 { (exit 1); exit 1; }; }
16465fi
16466
16467{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16468echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16469if test "${ac_cv_type_uint64_t+set}" = set; then
16470 echo $ECHO_N "(cached) $ECHO_C" >&6
16471else
16472 cat >conftest.$ac_ext <<_ACEOF
16473/* confdefs.h. */
16474_ACEOF
16475cat confdefs.h >>conftest.$ac_ext
16476cat >>conftest.$ac_ext <<_ACEOF
16477/* end confdefs.h. */
16478$ac_includes_default
16479typedef uint64_t ac__type_new_;
16480int
16481main ()
16482{
16483if ((ac__type_new_ *) 0)
16484 return 0;
16485if (sizeof (ac__type_new_))
16486 return 0;
16487 ;
16488 return 0;
16489}
16490_ACEOF
16491rm -f conftest.$ac_objext
16492if { (ac_try="$ac_compile"
16493case "(($ac_try" in
16494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16495 *) ac_try_echo=$ac_try;;
16496esac
16497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16498 (eval "$ac_compile") 2>conftest.er1
16499 ac_status=$?
16500 grep -v '^ *+' conftest.er1 >conftest.err
16501 rm -f conftest.er1
16502 cat conftest.err >&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); } &&
16505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16506 { (case "(($ac_try" in
16507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16508 *) ac_try_echo=$ac_try;;
16509esac
16510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16511 (eval "$ac_try") 2>&5
16512 ac_status=$?
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); }; } &&
16515 { ac_try='test -s conftest.$ac_objext'
16516 { (case "(($ac_try" in
16517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16519esac
16520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521 (eval "$ac_try") 2>&5
16522 ac_status=$?
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); }; }; then
16525 ac_cv_type_uint64_t=yes
16526else
16527 echo "$as_me: failed program was:" >&5
16528sed 's/^/| /' conftest.$ac_ext >&5
16529
16530 ac_cv_type_uint64_t=no
16531fi
16532
16533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16534fi
16535{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16536echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16537if test $ac_cv_type_uint64_t = yes; then
16538
16539cat >>confdefs.h <<_ACEOF
16540#define HAVE_UINT64_T 1
16541_ACEOF
16542
16543
16544else
16545 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16546echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16547if test "${ac_cv_type_u_int64_t+set}" = set; then
16548 echo $ECHO_N "(cached) $ECHO_C" >&6
16549else
16550 cat >conftest.$ac_ext <<_ACEOF
16551/* confdefs.h. */
16552_ACEOF
16553cat confdefs.h >>conftest.$ac_ext
16554cat >>conftest.$ac_ext <<_ACEOF
16555/* end confdefs.h. */
16556$ac_includes_default
16557typedef u_int64_t ac__type_new_;
16558int
16559main ()
16560{
16561if ((ac__type_new_ *) 0)
16562 return 0;
16563if (sizeof (ac__type_new_))
16564 return 0;
16565 ;
16566 return 0;
16567}
16568_ACEOF
16569rm -f conftest.$ac_objext
16570if { (ac_try="$ac_compile"
16571case "(($ac_try" in
16572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573 *) ac_try_echo=$ac_try;;
16574esac
16575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576 (eval "$ac_compile") 2>conftest.er1
16577 ac_status=$?
16578 grep -v '^ *+' conftest.er1 >conftest.err
16579 rm -f conftest.er1
16580 cat conftest.err >&5
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); } &&
16583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16584 { (case "(($ac_try" in
16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586 *) ac_try_echo=$ac_try;;
16587esac
16588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589 (eval "$ac_try") 2>&5
16590 ac_status=$?
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; } &&
16593 { ac_try='test -s conftest.$ac_objext'
16594 { (case "(($ac_try" in
16595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596 *) ac_try_echo=$ac_try;;
16597esac
16598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599 (eval "$ac_try") 2>&5
16600 ac_status=$?
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); }; }; then
16603 ac_cv_type_u_int64_t=yes
16604else
16605 echo "$as_me: failed program was:" >&5
16606sed 's/^/| /' conftest.$ac_ext >&5
16607
16608 ac_cv_type_u_int64_t=no
16609fi
16610
16611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16612fi
16613{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16614echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16615if test $ac_cv_type_u_int64_t = yes; then
16616
16617cat >>confdefs.h <<_ACEOF
16618#define HAVE_U_INT64_T 1
16619_ACEOF
16620
16621
16622else
16623 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16624echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16625 { (exit 1); exit 1; }; }
16626fi
16627
16628fi
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16640do
16641as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16642{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16643echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16644if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16645 echo $ECHO_N "(cached) $ECHO_C" >&6
16646else
16647 cat >conftest.$ac_ext <<_ACEOF
16648/* confdefs.h. */
16649_ACEOF
16650cat confdefs.h >>conftest.$ac_ext
16651cat >>conftest.$ac_ext <<_ACEOF
16652/* end confdefs.h. */
16653/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16655#define $ac_func innocuous_$ac_func
16656
16657/* System header to define __stub macros and hopefully few prototypes,
16658 which can conflict with char $ac_func (); below.
16659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16660 <limits.h> exists even on freestanding compilers. */
16661
16662#ifdef __STDC__
16663# include <limits.h>
16664#else
16665# include <assert.h>
16666#endif
16667
16668#undef $ac_func
16669
16670/* Override any GCC internal prototype to avoid an error.
16671 Use char because int might match the return type of a GCC
16672 builtin and then its argument prototype would still apply. */
16673#ifdef __cplusplus
16674extern "C"
16675#endif
16676char $ac_func ();
16677/* The GNU C library defines this for functions which it implements
16678 to always fail with ENOSYS. Some functions are actually named
16679 something starting with __ and the normal name is an alias. */
16680#if defined __stub_$ac_func || defined __stub___$ac_func
16681choke me
16682#endif
16683
16684int
16685main ()
16686{
16687return $ac_func ();
16688 ;
16689 return 0;
16690}
16691_ACEOF
16692rm -f conftest.$ac_objext conftest$ac_exeext
16693if { (ac_try="$ac_link"
16694case "(($ac_try" in
16695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696 *) ac_try_echo=$ac_try;;
16697esac
16698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699 (eval "$ac_link") 2>conftest.er1
16700 ac_status=$?
16701 grep -v '^ *+' conftest.er1 >conftest.err
16702 rm -f conftest.er1
16703 cat conftest.err >&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } &&
16706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16707 { (case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16710esac
16711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712 (eval "$ac_try") 2>&5
16713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; } &&
16716 { ac_try='test -s conftest$ac_exeext'
16717 { (case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16720esac
16721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722 (eval "$ac_try") 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; }; then
16726 eval "$as_ac_var=yes"
16727else
16728 echo "$as_me: failed program was:" >&5
16729sed 's/^/| /' conftest.$ac_ext >&5
16730
16731 eval "$as_ac_var=no"
16732fi
16733
16734rm -f core conftest.err conftest.$ac_objext \
16735 conftest$ac_exeext conftest.$ac_ext
16736fi
16737ac_res=`eval echo '${'$as_ac_var'}'`
16738 { echo "$as_me:$LINENO: result: $ac_res" >&5
16739echo "${ECHO_T}$ac_res" >&6; }
16740if test `eval echo '${'$as_ac_var'}'` = yes; then
16741 cat >>confdefs.h <<_ACEOF
16742#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16743_ACEOF
16744
16745fi
16746done
16747
16748
16749
16750
16751
16752for ac_func in powf fmodf strtof round
16753do
16754as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16755{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16756echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16757if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16758 echo $ECHO_N "(cached) $ECHO_C" >&6
16759else
16760 cat >conftest.$ac_ext <<_ACEOF
16761/* confdefs.h. */
16762_ACEOF
16763cat confdefs.h >>conftest.$ac_ext
16764cat >>conftest.$ac_ext <<_ACEOF
16765/* end confdefs.h. */
16766/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16768#define $ac_func innocuous_$ac_func
16769
16770/* System header to define __stub macros and hopefully few prototypes,
16771 which can conflict with char $ac_func (); below.
16772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16773 <limits.h> exists even on freestanding compilers. */
16774
16775#ifdef __STDC__
16776# include <limits.h>
16777#else
16778# include <assert.h>
16779#endif
16780
16781#undef $ac_func
16782
16783/* Override any GCC internal prototype to avoid an error.
16784 Use char because int might match the return type of a GCC
16785 builtin and then its argument prototype would still apply. */
16786#ifdef __cplusplus
16787extern "C"
16788#endif
16789char $ac_func ();
16790/* The GNU C library defines this for functions which it implements
16791 to always fail with ENOSYS. Some functions are actually named
16792 something starting with __ and the normal name is an alias. */
16793#if defined __stub_$ac_func || defined __stub___$ac_func
16794choke me
16795#endif
16796
16797int
16798main ()
16799{
16800return $ac_func ();
16801 ;
16802 return 0;
16803}
16804_ACEOF
16805rm -f conftest.$ac_objext conftest$ac_exeext
16806if { (ac_try="$ac_link"
16807case "(($ac_try" in
16808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16809 *) ac_try_echo=$ac_try;;
16810esac
16811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16812 (eval "$ac_link") 2>conftest.er1
16813 ac_status=$?
16814 grep -v '^ *+' conftest.er1 >conftest.err
16815 rm -f conftest.er1
16816 cat conftest.err >&5
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); } &&
16819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16820 { (case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16823esac
16824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 (eval "$ac_try") 2>&5
16826 ac_status=$?
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; } &&
16829 { ac_try='test -s conftest$ac_exeext'
16830 { (case "(($ac_try" in
16831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832 *) ac_try_echo=$ac_try;;
16833esac
16834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16835 (eval "$ac_try") 2>&5
16836 ac_status=$?
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; }; then
16839 eval "$as_ac_var=yes"
16840else
16841 echo "$as_me: failed program was:" >&5
16842sed 's/^/| /' conftest.$ac_ext >&5
16843
16844 eval "$as_ac_var=no"
16845fi
16846
16847rm -f core conftest.err conftest.$ac_objext \
16848 conftest$ac_exeext conftest.$ac_ext
16849fi
16850ac_res=`eval echo '${'$as_ac_var'}'`
16851 { echo "$as_me:$LINENO: result: $ac_res" >&5
16852echo "${ECHO_T}$ac_res" >&6; }
16853if test `eval echo '${'$as_ac_var'}'` = yes; then
16854 cat >>confdefs.h <<_ACEOF
16855#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16856_ACEOF
16857
16858fi
16859done
16860
16861
16862
16863
16864
16865
16866for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16867do
16868as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16869{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16870echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16871if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16872 echo $ECHO_N "(cached) $ECHO_C" >&6
16873else
16874 cat >conftest.$ac_ext <<_ACEOF
16875/* confdefs.h. */
16876_ACEOF
16877cat confdefs.h >>conftest.$ac_ext
16878cat >>conftest.$ac_ext <<_ACEOF
16879/* end confdefs.h. */
16880/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16882#define $ac_func innocuous_$ac_func
16883
16884/* System header to define __stub macros and hopefully few prototypes,
16885 which can conflict with char $ac_func (); below.
16886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16887 <limits.h> exists even on freestanding compilers. */
16888
16889#ifdef __STDC__
16890# include <limits.h>
16891#else
16892# include <assert.h>
16893#endif
16894
16895#undef $ac_func
16896
16897/* Override any GCC internal prototype to avoid an error.
16898 Use char because int might match the return type of a GCC
16899 builtin and then its argument prototype would still apply. */
16900#ifdef __cplusplus
16901extern "C"
16902#endif
16903char $ac_func ();
16904/* The GNU C library defines this for functions which it implements
16905 to always fail with ENOSYS. Some functions are actually named
16906 something starting with __ and the normal name is an alias. */
16907#if defined __stub_$ac_func || defined __stub___$ac_func
16908choke me
16909#endif
16910
16911int
16912main ()
16913{
16914return $ac_func ();
16915 ;
16916 return 0;
16917}
16918_ACEOF
16919rm -f conftest.$ac_objext conftest$ac_exeext
16920if { (ac_try="$ac_link"
16921case "(($ac_try" in
16922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923 *) ac_try_echo=$ac_try;;
16924esac
16925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926 (eval "$ac_link") 2>conftest.er1
16927 ac_status=$?
16928 grep -v '^ *+' conftest.er1 >conftest.err
16929 rm -f conftest.er1
16930 cat conftest.err >&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); } &&
16933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16934 { (case "(($ac_try" in
16935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16936 *) ac_try_echo=$ac_try;;
16937esac
16938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16939 (eval "$ac_try") 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; } &&
16943 { ac_try='test -s conftest$ac_exeext'
16944 { (case "(($ac_try" in
16945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946 *) ac_try_echo=$ac_try;;
16947esac
16948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949 (eval "$ac_try") 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; }; then
16953 eval "$as_ac_var=yes"
16954else
16955 echo "$as_me: failed program was:" >&5
16956sed 's/^/| /' conftest.$ac_ext >&5
16957
16958 eval "$as_ac_var=no"
16959fi
16960
16961rm -f core conftest.err conftest.$ac_objext \
16962 conftest$ac_exeext conftest.$ac_ext
16963fi
16964ac_res=`eval echo '${'$as_ac_var'}'`
16965 { echo "$as_me:$LINENO: result: $ac_res" >&5
16966echo "${ECHO_T}$ac_res" >&6; }
16967if test `eval echo '${'$as_ac_var'}'` = yes; then
16968 cat >>confdefs.h <<_ACEOF
16969#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16970_ACEOF
16971
16972fi
16973done
16974
16975
16976
16977
16978for ac_func in isatty mkdtemp mkstemp
16979do
16980as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16981{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16982echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16983if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16984 echo $ECHO_N "(cached) $ECHO_C" >&6
16985else
16986 cat >conftest.$ac_ext <<_ACEOF
16987/* confdefs.h. */
16988_ACEOF
16989cat confdefs.h >>conftest.$ac_ext
16990cat >>conftest.$ac_ext <<_ACEOF
16991/* end confdefs.h. */
16992/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16994#define $ac_func innocuous_$ac_func
16995
16996/* System header to define __stub macros and hopefully few prototypes,
16997 which can conflict with char $ac_func (); below.
16998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16999 <limits.h> exists even on freestanding compilers. */
17000
17001#ifdef __STDC__
17002# include <limits.h>
17003#else
17004# include <assert.h>
17005#endif
17006
17007#undef $ac_func
17008
17009/* Override any GCC internal prototype to avoid an error.
17010 Use char because int might match the return type of a GCC
17011 builtin and then its argument prototype would still apply. */
17012#ifdef __cplusplus
17013extern "C"
17014#endif
17015char $ac_func ();
17016/* The GNU C library defines this for functions which it implements
17017 to always fail with ENOSYS. Some functions are actually named
17018 something starting with __ and the normal name is an alias. */
17019#if defined __stub_$ac_func || defined __stub___$ac_func
17020choke me
17021#endif
17022
17023int
17024main ()
17025{
17026return $ac_func ();
17027 ;
17028 return 0;
17029}
17030_ACEOF
17031rm -f conftest.$ac_objext conftest$ac_exeext
17032if { (ac_try="$ac_link"
17033case "(($ac_try" in
17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035 *) ac_try_echo=$ac_try;;
17036esac
17037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17038 (eval "$ac_link") 2>conftest.er1
17039 ac_status=$?
17040 grep -v '^ *+' conftest.er1 >conftest.err
17041 rm -f conftest.er1
17042 cat conftest.err >&5
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); } &&
17045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17046 { (case "(($ac_try" in
17047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17048 *) ac_try_echo=$ac_try;;
17049esac
17050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17051 (eval "$ac_try") 2>&5
17052 ac_status=$?
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; } &&
17055 { ac_try='test -s conftest$ac_exeext'
17056 { (case "(($ac_try" in
17057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058 *) ac_try_echo=$ac_try;;
17059esac
17060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061 (eval "$ac_try") 2>&5
17062 ac_status=$?
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); }; }; then
17065 eval "$as_ac_var=yes"
17066else
17067 echo "$as_me: failed program was:" >&5
17068sed 's/^/| /' conftest.$ac_ext >&5
17069
17070 eval "$as_ac_var=no"
17071fi
17072
17073rm -f core conftest.err conftest.$ac_objext \
17074 conftest$ac_exeext conftest.$ac_ext
17075fi
17076ac_res=`eval echo '${'$as_ac_var'}'`
17077 { echo "$as_me:$LINENO: result: $ac_res" >&5
17078echo "${ECHO_T}$ac_res" >&6; }
17079if test `eval echo '${'$as_ac_var'}'` = yes; then
17080 cat >>confdefs.h <<_ACEOF
17081#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17082_ACEOF
17083
17084fi
17085done
17086
17087
17088
17089
17090
17091
17092
17093for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17094do
17095as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17096{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17097echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17098if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17099 echo $ECHO_N "(cached) $ECHO_C" >&6
17100else
17101 cat >conftest.$ac_ext <<_ACEOF
17102/* confdefs.h. */
17103_ACEOF
17104cat confdefs.h >>conftest.$ac_ext
17105cat >>conftest.$ac_ext <<_ACEOF
17106/* end confdefs.h. */
17107/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17109#define $ac_func innocuous_$ac_func
17110
17111/* System header to define __stub macros and hopefully few prototypes,
17112 which can conflict with char $ac_func (); below.
17113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17114 <limits.h> exists even on freestanding compilers. */
17115
17116#ifdef __STDC__
17117# include <limits.h>
17118#else
17119# include <assert.h>
17120#endif
17121
17122#undef $ac_func
17123
17124/* Override any GCC internal prototype to avoid an error.
17125 Use char because int might match the return type of a GCC
17126 builtin and then its argument prototype would still apply. */
17127#ifdef __cplusplus
17128extern "C"
17129#endif
17130char $ac_func ();
17131/* The GNU C library defines this for functions which it implements
17132 to always fail with ENOSYS. Some functions are actually named
17133 something starting with __ and the normal name is an alias. */
17134#if defined __stub_$ac_func || defined __stub___$ac_func
17135choke me
17136#endif
17137
17138int
17139main ()
17140{
17141return $ac_func ();
17142 ;
17143 return 0;
17144}
17145_ACEOF
17146rm -f conftest.$ac_objext conftest$ac_exeext
17147if { (ac_try="$ac_link"
17148case "(($ac_try" in
17149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150 *) ac_try_echo=$ac_try;;
17151esac
17152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153 (eval "$ac_link") 2>conftest.er1
17154 ac_status=$?
17155 grep -v '^ *+' conftest.er1 >conftest.err
17156 rm -f conftest.er1
17157 cat conftest.err >&5
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); } &&
17160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17161 { (case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17164esac
17165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_try") 2>&5
17167 ac_status=$?
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; } &&
17170 { ac_try='test -s conftest$ac_exeext'
17171 { (case "(($ac_try" in
17172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17173 *) ac_try_echo=$ac_try;;
17174esac
17175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17176 (eval "$ac_try") 2>&5
17177 ac_status=$?
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); }; }; then
17180 eval "$as_ac_var=yes"
17181else
17182 echo "$as_me: failed program was:" >&5
17183sed 's/^/| /' conftest.$ac_ext >&5
17184
17185 eval "$as_ac_var=no"
17186fi
17187
17188rm -f core conftest.err conftest.$ac_objext \
17189 conftest$ac_exeext conftest.$ac_ext
17190fi
17191ac_res=`eval echo '${'$as_ac_var'}'`
17192 { echo "$as_me:$LINENO: result: $ac_res" >&5
17193echo "${ECHO_T}$ac_res" >&6; }
17194if test `eval echo '${'$as_ac_var'}'` = yes; then
17195 cat >>confdefs.h <<_ACEOF
17196#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17197_ACEOF
17198
17199fi
17200done
17201
17202
17203
17204
17205for ac_func in strerror strerror_r setenv
17206do
17207as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17208{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17209echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17210if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17211 echo $ECHO_N "(cached) $ECHO_C" >&6
17212else
17213 cat >conftest.$ac_ext <<_ACEOF
17214/* confdefs.h. */
17215_ACEOF
17216cat confdefs.h >>conftest.$ac_ext
17217cat >>conftest.$ac_ext <<_ACEOF
17218/* end confdefs.h. */
17219/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17221#define $ac_func innocuous_$ac_func
17222
17223/* System header to define __stub macros and hopefully few prototypes,
17224 which can conflict with char $ac_func (); below.
17225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17226 <limits.h> exists even on freestanding compilers. */
17227
17228#ifdef __STDC__
17229# include <limits.h>
17230#else
17231# include <assert.h>
17232#endif
17233
17234#undef $ac_func
17235
17236/* Override any GCC internal prototype to avoid an error.
17237 Use char because int might match the return type of a GCC
17238 builtin and then its argument prototype would still apply. */
17239#ifdef __cplusplus
17240extern "C"
17241#endif
17242char $ac_func ();
17243/* The GNU C library defines this for functions which it implements
17244 to always fail with ENOSYS. Some functions are actually named
17245 something starting with __ and the normal name is an alias. */
17246#if defined __stub_$ac_func || defined __stub___$ac_func
17247choke me
17248#endif
17249
17250int
17251main ()
17252{
17253return $ac_func ();
17254 ;
17255 return 0;
17256}
17257_ACEOF
17258rm -f conftest.$ac_objext conftest$ac_exeext
17259if { (ac_try="$ac_link"
17260case "(($ac_try" in
17261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262 *) ac_try_echo=$ac_try;;
17263esac
17264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265 (eval "$ac_link") 2>conftest.er1
17266 ac_status=$?
17267 grep -v '^ *+' conftest.er1 >conftest.err
17268 rm -f conftest.er1
17269 cat conftest.err >&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); } &&
17272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17273 { (case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17276esac
17277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_try") 2>&5
17279 ac_status=$?
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; } &&
17282 { ac_try='test -s conftest$ac_exeext'
17283 { (case "(($ac_try" in
17284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285 *) ac_try_echo=$ac_try;;
17286esac
17287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288 (eval "$ac_try") 2>&5
17289 ac_status=$?
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; }; then
17292 eval "$as_ac_var=yes"
17293else
17294 echo "$as_me: failed program was:" >&5
17295sed 's/^/| /' conftest.$ac_ext >&5
17296
17297 eval "$as_ac_var=no"
17298fi
17299
17300rm -f core conftest.err conftest.$ac_objext \
17301 conftest$ac_exeext conftest.$ac_ext
17302fi
17303ac_res=`eval echo '${'$as_ac_var'}'`
17304 { echo "$as_me:$LINENO: result: $ac_res" >&5
17305echo "${ECHO_T}$ac_res" >&6; }
17306if test `eval echo '${'$as_ac_var'}'` = yes; then
17307 cat >>confdefs.h <<_ACEOF
17308#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17309_ACEOF
17310
17311fi
17312done
17313
17314
17315
17316
17317
17318for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17319do
17320as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17321{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17322echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17323if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17324 echo $ECHO_N "(cached) $ECHO_C" >&6
17325else
17326 cat >conftest.$ac_ext <<_ACEOF
17327/* confdefs.h. */
17328_ACEOF
17329cat confdefs.h >>conftest.$ac_ext
17330cat >>conftest.$ac_ext <<_ACEOF
17331/* end confdefs.h. */
17332/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17334#define $ac_func innocuous_$ac_func
17335
17336/* System header to define __stub macros and hopefully few prototypes,
17337 which can conflict with char $ac_func (); below.
17338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17339 <limits.h> exists even on freestanding compilers. */
17340
17341#ifdef __STDC__
17342# include <limits.h>
17343#else
17344# include <assert.h>
17345#endif
17346
17347#undef $ac_func
17348
17349/* Override any GCC internal prototype to avoid an error.
17350 Use char because int might match the return type of a GCC
17351 builtin and then its argument prototype would still apply. */
17352#ifdef __cplusplus
17353extern "C"
17354#endif
17355char $ac_func ();
17356/* The GNU C library defines this for functions which it implements
17357 to always fail with ENOSYS. Some functions are actually named
17358 something starting with __ and the normal name is an alias. */
17359#if defined __stub_$ac_func || defined __stub___$ac_func
17360choke me
17361#endif
17362
17363int
17364main ()
17365{
17366return $ac_func ();
17367 ;
17368 return 0;
17369}
17370_ACEOF
17371rm -f conftest.$ac_objext conftest$ac_exeext
17372if { (ac_try="$ac_link"
17373case "(($ac_try" in
17374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375 *) ac_try_echo=$ac_try;;
17376esac
17377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378 (eval "$ac_link") 2>conftest.er1
17379 ac_status=$?
17380 grep -v '^ *+' conftest.er1 >conftest.err
17381 rm -f conftest.er1
17382 cat conftest.err >&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); } &&
17385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17386 { (case "(($ac_try" in
17387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388 *) ac_try_echo=$ac_try;;
17389esac
17390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17391 (eval "$ac_try") 2>&5
17392 ac_status=$?
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; } &&
17395 { ac_try='test -s conftest$ac_exeext'
17396 { (case "(($ac_try" in
17397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17398 *) ac_try_echo=$ac_try;;
17399esac
17400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17401 (eval "$ac_try") 2>&5
17402 ac_status=$?
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); }; }; then
17405 eval "$as_ac_var=yes"
17406else
17407 echo "$as_me: failed program was:" >&5
17408sed 's/^/| /' conftest.$ac_ext >&5
17409
17410 eval "$as_ac_var=no"
17411fi
17412
17413rm -f core conftest.err conftest.$ac_objext \
17414 conftest$ac_exeext conftest.$ac_ext
17415fi
17416ac_res=`eval echo '${'$as_ac_var'}'`
17417 { echo "$as_me:$LINENO: result: $ac_res" >&5
17418echo "${ECHO_T}$ac_res" >&6; }
17419if test `eval echo '${'$as_ac_var'}'` = yes; then
17420 cat >>confdefs.h <<_ACEOF
17421#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17422_ACEOF
17423
17424fi
17425done
17426
17427
17428
17429
17430
17431
17432for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17433do
17434as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17435{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17436echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17437if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17438 echo $ECHO_N "(cached) $ECHO_C" >&6
17439else
17440 cat >conftest.$ac_ext <<_ACEOF
17441/* confdefs.h. */
17442_ACEOF
17443cat confdefs.h >>conftest.$ac_ext
17444cat >>conftest.$ac_ext <<_ACEOF
17445/* end confdefs.h. */
17446/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17448#define $ac_func innocuous_$ac_func
17449
17450/* System header to define __stub macros and hopefully few prototypes,
17451 which can conflict with char $ac_func (); below.
17452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17453 <limits.h> exists even on freestanding compilers. */
17454
17455#ifdef __STDC__
17456# include <limits.h>
17457#else
17458# include <assert.h>
17459#endif
17460
17461#undef $ac_func
17462
17463/* Override any GCC internal prototype to avoid an error.
17464 Use char because int might match the return type of a GCC
17465 builtin and then its argument prototype would still apply. */
17466#ifdef __cplusplus
17467extern "C"
17468#endif
17469char $ac_func ();
17470/* The GNU C library defines this for functions which it implements
17471 to always fail with ENOSYS. Some functions are actually named
17472 something starting with __ and the normal name is an alias. */
17473#if defined __stub_$ac_func || defined __stub___$ac_func
17474choke me
17475#endif
17476
17477int
17478main ()
17479{
17480return $ac_func ();
17481 ;
17482 return 0;
17483}
17484_ACEOF
17485rm -f conftest.$ac_objext conftest$ac_exeext
17486if { (ac_try="$ac_link"
17487case "(($ac_try" in
17488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489 *) ac_try_echo=$ac_try;;
17490esac
17491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492 (eval "$ac_link") 2>conftest.er1
17493 ac_status=$?
17494 grep -v '^ *+' conftest.er1 >conftest.err
17495 rm -f conftest.er1
17496 cat conftest.err >&5
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); } &&
17499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17500 { (case "(($ac_try" in
17501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502 *) ac_try_echo=$ac_try;;
17503esac
17504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17505 (eval "$ac_try") 2>&5
17506 ac_status=$?
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); }; } &&
17509 { ac_try='test -s conftest$ac_exeext'
17510 { (case "(($ac_try" in
17511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512 *) ac_try_echo=$ac_try;;
17513esac
17514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17515 (eval "$ac_try") 2>&5
17516 ac_status=$?
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); }; }; then
17519 eval "$as_ac_var=yes"
17520else
17521 echo "$as_me: failed program was:" >&5
17522sed 's/^/| /' conftest.$ac_ext >&5
17523
17524 eval "$as_ac_var=no"
17525fi
17526
17527rm -f core conftest.err conftest.$ac_objext \
17528 conftest$ac_exeext conftest.$ac_ext
17529fi
17530ac_res=`eval echo '${'$as_ac_var'}'`
17531 { echo "$as_me:$LINENO: result: $ac_res" >&5
17532echo "${ECHO_T}$ac_res" >&6; }
17533if test `eval echo '${'$as_ac_var'}'` = yes; then
17534 cat >>confdefs.h <<_ACEOF
17535#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17536_ACEOF
17537
17538fi
17539done
17540
17541{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17542echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17543if test "${llvm_cv_c_printf_a+set}" = set; then
17544 echo $ECHO_N "(cached) $ECHO_C" >&6
17545else
17546 ac_ext=c
17547ac_cpp='$CPP $CPPFLAGS'
17548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17550ac_compiler_gnu=$ac_cv_c_compiler_gnu
17551
17552 if test "$cross_compiling" = yes; then
17553 llvmac_cv_c_printf_a=no
17554else
17555 cat >conftest.$ac_ext <<_ACEOF
17556
17557 /* confdefs.h. */
17558_ACEOF
17559cat confdefs.h >>conftest.$ac_ext
17560cat >>conftest.$ac_ext <<_ACEOF
17561/* end confdefs.h. */
17562
17563#include <stdio.h>
17564#include <stdlib.h>
17565
17566int
17567main ()
17568{
17569
17570volatile double A, B;
17571char Buffer[100];
17572A = 1;
17573A /= 10.0;
17574sprintf(Buffer, "%a", A);
17575B = atof(Buffer);
17576if (A != B)
17577 return (1);
17578if (A != 0x1.999999999999ap-4)
17579 return (1);
17580return (0);
17581 ;
17582 return 0;
17583}
17584_ACEOF
17585rm -f conftest$ac_exeext
17586if { (ac_try="$ac_link"
17587case "(($ac_try" in
17588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17589 *) ac_try_echo=$ac_try;;
17590esac
17591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17592 (eval "$ac_link") 2>&5
17593 ac_status=$?
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17596 { (case "(($ac_try" in
17597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598 *) ac_try_echo=$ac_try;;
17599esac
17600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601 (eval "$ac_try") 2>&5
17602 ac_status=$?
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); }; }; then
17605 llvm_cv_c_printf_a=yes
17606else
17607 echo "$as_me: program exited with status $ac_status" >&5
17608echo "$as_me: failed program was:" >&5
17609sed 's/^/| /' conftest.$ac_ext >&5
17610
17611( exit $ac_status )
17612llvmac_cv_c_printf_a=no
17613fi
17614rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17615fi
17616
17617
17618 ac_ext=c
17619ac_cpp='$CPP $CPPFLAGS'
17620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17622ac_compiler_gnu=$ac_cv_c_compiler_gnu
17623
17624fi
17625{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17626echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17627 if test "$llvm_cv_c_printf_a" = "yes"; then
17628
17629cat >>confdefs.h <<\_ACEOF
17630#define HAVE_PRINTF_A 1
17631_ACEOF
17632
17633 fi
17634
17635
17636{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17637echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17638if test "${ac_cv_func_rand48+set}" = set; then
17639 echo $ECHO_N "(cached) $ECHO_C" >&6
17640else
17641 ac_ext=cpp
17642ac_cpp='$CXXCPP $CPPFLAGS'
17643ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17644ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17645ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17646
17647 cat >conftest.$ac_ext <<_ACEOF
17648/* confdefs.h. */
17649_ACEOF
17650cat confdefs.h >>conftest.$ac_ext
17651cat >>conftest.$ac_ext <<_ACEOF
17652/* end confdefs.h. */
17653#include <stdlib.h>
17654int
17655main ()
17656{
17657srand48(0);lrand48();drand48();
17658 ;
17659 return 0;
17660}
17661_ACEOF
17662rm -f conftest.$ac_objext
17663if { (ac_try="$ac_compile"
17664case "(($ac_try" in
17665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17666 *) ac_try_echo=$ac_try;;
17667esac
17668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17669 (eval "$ac_compile") 2>conftest.er1
17670 ac_status=$?
17671 grep -v '^ *+' conftest.er1 >conftest.err
17672 rm -f conftest.er1
17673 cat conftest.err >&5
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); } &&
17676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17677 { (case "(($ac_try" in
17678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17679 *) ac_try_echo=$ac_try;;
17680esac
17681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17682 (eval "$ac_try") 2>&5
17683 ac_status=$?
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); }; } &&
17686 { ac_try='test -s conftest.$ac_objext'
17687 { (case "(($ac_try" in
17688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689 *) ac_try_echo=$ac_try;;
17690esac
17691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692 (eval "$ac_try") 2>&5
17693 ac_status=$?
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); }; }; then
17696 ac_cv_func_rand48=yes
17697else
17698 echo "$as_me: failed program was:" >&5
17699sed 's/^/| /' conftest.$ac_ext >&5
17700
17701 ac_cv_func_rand48=no
17702fi
17703
17704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17705 ac_ext=c
17706ac_cpp='$CPP $CPPFLAGS'
17707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17709ac_compiler_gnu=$ac_cv_c_compiler_gnu
17710
17711fi
17712{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17713echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17714
17715if test "$ac_cv_func_rand48" = "yes" ; then
17716
17717cat >>confdefs.h <<\_ACEOF
17718#define HAVE_RAND48 1
17719_ACEOF
17720
17721fi
17722
17723
17724{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17725echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17726if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17727 echo $ECHO_N "(cached) $ECHO_C" >&6
17728else
17729 cat >conftest.$ac_ext <<_ACEOF
17730/* confdefs.h. */
17731_ACEOF
17732cat confdefs.h >>conftest.$ac_ext
17733cat >>conftest.$ac_ext <<_ACEOF
17734/* end confdefs.h. */
17735$ac_includes_default
17736int
17737main ()
17738{
17739#ifndef strerror_s
17740 char *p = (char *) strerror_s;
17741 return !p;
17742#endif
17743
17744 ;
17745 return 0;
17746}
17747_ACEOF
17748rm -f conftest.$ac_objext
17749if { (ac_try="$ac_compile"
17750case "(($ac_try" in
17751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17752 *) ac_try_echo=$ac_try;;
17753esac
17754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17755 (eval "$ac_compile") 2>conftest.er1
17756 ac_status=$?
17757 grep -v '^ *+' conftest.er1 >conftest.err
17758 rm -f conftest.er1
17759 cat conftest.err >&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); } &&
17762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17763 { (case "(($ac_try" in
17764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765 *) ac_try_echo=$ac_try;;
17766esac
17767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768 (eval "$ac_try") 2>&5
17769 ac_status=$?
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; } &&
17772 { ac_try='test -s conftest.$ac_objext'
17773 { (case "(($ac_try" in
17774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17775 *) ac_try_echo=$ac_try;;
17776esac
17777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17778 (eval "$ac_try") 2>&5
17779 ac_status=$?
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; }; then
17782 ac_cv_have_decl_strerror_s=yes
17783else
17784 echo "$as_me: failed program was:" >&5
17785sed 's/^/| /' conftest.$ac_ext >&5
17786
17787 ac_cv_have_decl_strerror_s=no
17788fi
17789
17790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17791fi
17792{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17793echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17794if test $ac_cv_have_decl_strerror_s = yes; then
17795
17796cat >>confdefs.h <<_ACEOF
17797#define HAVE_DECL_STRERROR_S 1
17798_ACEOF
17799
17800
17801else
17802 cat >>confdefs.h <<_ACEOF
17803#define HAVE_DECL_STRERROR_S 0
17804_ACEOF
17805
17806
17807fi
17808
17809
17810
17811if test "$llvm_cv_os_type" = "MingW" ; then
17812 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17813echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17814if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
17816else
17817 ac_check_lib_save_LIBS=$LIBS
17818LIBS="-lgcc $LIBS"
17819cat >conftest.$ac_ext <<_ACEOF
17820/* confdefs.h. */
17821_ACEOF
17822cat confdefs.h >>conftest.$ac_ext
17823cat >>conftest.$ac_ext <<_ACEOF
17824/* end confdefs.h. */
17825
17826/* Override any GCC internal prototype to avoid an error.
17827 Use char because int might match the return type of a GCC
17828 builtin and then its argument prototype would still apply. */
17829#ifdef __cplusplus
17830extern "C"
17831#endif
17832char _alloca ();
17833int
17834main ()
17835{
17836return _alloca ();
17837 ;
17838 return 0;
17839}
17840_ACEOF
17841rm -f conftest.$ac_objext conftest$ac_exeext
17842if { (ac_try="$ac_link"
17843case "(($ac_try" in
17844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845 *) ac_try_echo=$ac_try;;
17846esac
17847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848 (eval "$ac_link") 2>conftest.er1
17849 ac_status=$?
17850 grep -v '^ *+' conftest.er1 >conftest.err
17851 rm -f conftest.er1
17852 cat conftest.err >&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } &&
17855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17856 { (case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17859esac
17860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_try") 2>&5
17862 ac_status=$?
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; } &&
17865 { ac_try='test -s conftest$ac_exeext'
17866 { (case "(($ac_try" in
17867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17868 *) ac_try_echo=$ac_try;;
17869esac
17870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17871 (eval "$ac_try") 2>&5
17872 ac_status=$?
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; }; then
17875 ac_cv_lib_gcc__alloca=yes
17876else
17877 echo "$as_me: failed program was:" >&5
17878sed 's/^/| /' conftest.$ac_ext >&5
17879
17880 ac_cv_lib_gcc__alloca=no
17881fi
17882
17883rm -f core conftest.err conftest.$ac_objext \
17884 conftest$ac_exeext conftest.$ac_ext
17885LIBS=$ac_check_lib_save_LIBS
17886fi
17887{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17888echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17889if test $ac_cv_lib_gcc__alloca = yes; then
17890
17891cat >>confdefs.h <<\_ACEOF
17892#define HAVE__ALLOCA 1
17893_ACEOF
17894
17895fi
17896
17897 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17898echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17899if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17900 echo $ECHO_N "(cached) $ECHO_C" >&6
17901else
17902 ac_check_lib_save_LIBS=$LIBS
17903LIBS="-lgcc $LIBS"
17904cat >conftest.$ac_ext <<_ACEOF
17905/* confdefs.h. */
17906_ACEOF
17907cat confdefs.h >>conftest.$ac_ext
17908cat >>conftest.$ac_ext <<_ACEOF
17909/* end confdefs.h. */
17910
17911/* Override any GCC internal prototype to avoid an error.
17912 Use char because int might match the return type of a GCC
17913 builtin and then its argument prototype would still apply. */
17914#ifdef __cplusplus
17915extern "C"
17916#endif
17917char __alloca ();
17918int
17919main ()
17920{
17921return __alloca ();
17922 ;
17923 return 0;
17924}
17925_ACEOF
17926rm -f conftest.$ac_objext conftest$ac_exeext
17927if { (ac_try="$ac_link"
17928case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17931esac
17932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933 (eval "$ac_link") 2>conftest.er1
17934 ac_status=$?
17935 grep -v '^ *+' conftest.er1 >conftest.err
17936 rm -f conftest.er1
17937 cat conftest.err >&5
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); } &&
17940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17941 { (case "(($ac_try" in
17942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943 *) ac_try_echo=$ac_try;;
17944esac
17945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946 (eval "$ac_try") 2>&5
17947 ac_status=$?
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; } &&
17950 { ac_try='test -s conftest$ac_exeext'
17951 { (case "(($ac_try" in
17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953 *) ac_try_echo=$ac_try;;
17954esac
17955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956 (eval "$ac_try") 2>&5
17957 ac_status=$?
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; }; then
17960 ac_cv_lib_gcc___alloca=yes
17961else
17962 echo "$as_me: failed program was:" >&5
17963sed 's/^/| /' conftest.$ac_ext >&5
17964
17965 ac_cv_lib_gcc___alloca=no
17966fi
17967
17968rm -f core conftest.err conftest.$ac_objext \
17969 conftest$ac_exeext conftest.$ac_ext
17970LIBS=$ac_check_lib_save_LIBS
17971fi
17972{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17973echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17974if test $ac_cv_lib_gcc___alloca = yes; then
17975
17976cat >>confdefs.h <<\_ACEOF
17977#define HAVE___ALLOCA 1
17978_ACEOF
17979
17980fi
17981
17982 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17983echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17984if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17985 echo $ECHO_N "(cached) $ECHO_C" >&6
17986else
17987 ac_check_lib_save_LIBS=$LIBS
17988LIBS="-lgcc $LIBS"
17989cat >conftest.$ac_ext <<_ACEOF
17990/* confdefs.h. */
17991_ACEOF
17992cat confdefs.h >>conftest.$ac_ext
17993cat >>conftest.$ac_ext <<_ACEOF
17994/* end confdefs.h. */
17995
17996/* Override any GCC internal prototype to avoid an error.
17997 Use char because int might match the return type of a GCC
17998 builtin and then its argument prototype would still apply. */
17999#ifdef __cplusplus
18000extern "C"
18001#endif
18002char __chkstk ();
18003int
18004main ()
18005{
18006return __chkstk ();
18007 ;
18008 return 0;
18009}
18010_ACEOF
18011rm -f conftest.$ac_objext conftest$ac_exeext
18012if { (ac_try="$ac_link"
18013case "(($ac_try" in
18014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18015 *) ac_try_echo=$ac_try;;
18016esac
18017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18018 (eval "$ac_link") 2>conftest.er1
18019 ac_status=$?
18020 grep -v '^ *+' conftest.er1 >conftest.err
18021 rm -f conftest.er1
18022 cat conftest.err >&5
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); } &&
18025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18026 { (case "(($ac_try" in
18027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028 *) ac_try_echo=$ac_try;;
18029esac
18030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18031 (eval "$ac_try") 2>&5
18032 ac_status=$?
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); }; } &&
18035 { ac_try='test -s conftest$ac_exeext'
18036 { (case "(($ac_try" in
18037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18038 *) ac_try_echo=$ac_try;;
18039esac
18040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18041 (eval "$ac_try") 2>&5
18042 ac_status=$?
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); }; }; then
18045 ac_cv_lib_gcc___chkstk=yes
18046else
18047 echo "$as_me: failed program was:" >&5
18048sed 's/^/| /' conftest.$ac_ext >&5
18049
18050 ac_cv_lib_gcc___chkstk=no
18051fi
18052
18053rm -f core conftest.err conftest.$ac_objext \
18054 conftest$ac_exeext conftest.$ac_ext
18055LIBS=$ac_check_lib_save_LIBS
18056fi
18057{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18058echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18059if test $ac_cv_lib_gcc___chkstk = yes; then
18060
18061cat >>confdefs.h <<\_ACEOF
18062#define HAVE___CHKSTK 1
18063_ACEOF
18064
18065fi
18066
18067 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18068echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18069if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18070 echo $ECHO_N "(cached) $ECHO_C" >&6
18071else
18072 ac_check_lib_save_LIBS=$LIBS
18073LIBS="-lgcc $LIBS"
18074cat >conftest.$ac_ext <<_ACEOF
18075/* confdefs.h. */
18076_ACEOF
18077cat confdefs.h >>conftest.$ac_ext
18078cat >>conftest.$ac_ext <<_ACEOF
18079/* end confdefs.h. */
18080
18081/* Override any GCC internal prototype to avoid an error.
18082 Use char because int might match the return type of a GCC
18083 builtin and then its argument prototype would still apply. */
18084#ifdef __cplusplus
18085extern "C"
18086#endif
18087char ___chkstk ();
18088int
18089main ()
18090{
18091return ___chkstk ();
18092 ;
18093 return 0;
18094}
18095_ACEOF
18096rm -f conftest.$ac_objext conftest$ac_exeext
18097if { (ac_try="$ac_link"
18098case "(($ac_try" in
18099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100 *) ac_try_echo=$ac_try;;
18101esac
18102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18103 (eval "$ac_link") 2>conftest.er1
18104 ac_status=$?
18105 grep -v '^ *+' conftest.er1 >conftest.err
18106 rm -f conftest.er1
18107 cat conftest.err >&5
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); } &&
18110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18111 { (case "(($ac_try" in
18112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18113 *) ac_try_echo=$ac_try;;
18114esac
18115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18116 (eval "$ac_try") 2>&5
18117 ac_status=$?
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); }; } &&
18120 { ac_try='test -s conftest$ac_exeext'
18121 { (case "(($ac_try" in
18122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18123 *) ac_try_echo=$ac_try;;
18124esac
18125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18126 (eval "$ac_try") 2>&5
18127 ac_status=$?
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; }; then
18130 ac_cv_lib_gcc____chkstk=yes
18131else
18132 echo "$as_me: failed program was:" >&5
18133sed 's/^/| /' conftest.$ac_ext >&5
18134
18135 ac_cv_lib_gcc____chkstk=no
18136fi
18137
18138rm -f core conftest.err conftest.$ac_objext \
18139 conftest$ac_exeext conftest.$ac_ext
18140LIBS=$ac_check_lib_save_LIBS
18141fi
18142{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18143echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18144if test $ac_cv_lib_gcc____chkstk = yes; then
18145
18146cat >>confdefs.h <<\_ACEOF
18147#define HAVE____CHKSTK 1
18148_ACEOF
18149
18150fi
18151
18152
18153 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18154echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18155if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18156 echo $ECHO_N "(cached) $ECHO_C" >&6
18157else
18158 ac_check_lib_save_LIBS=$LIBS
18159LIBS="-lgcc $LIBS"
18160cat >conftest.$ac_ext <<_ACEOF
18161/* confdefs.h. */
18162_ACEOF
18163cat confdefs.h >>conftest.$ac_ext
18164cat >>conftest.$ac_ext <<_ACEOF
18165/* end confdefs.h. */
18166
18167/* Override any GCC internal prototype to avoid an error.
18168 Use char because int might match the return type of a GCC
18169 builtin and then its argument prototype would still apply. */
18170#ifdef __cplusplus
18171extern "C"
18172#endif
18173char __ashldi3 ();
18174int
18175main ()
18176{
18177return __ashldi3 ();
18178 ;
18179 return 0;
18180}
18181_ACEOF
18182rm -f conftest.$ac_objext conftest$ac_exeext
18183if { (ac_try="$ac_link"
18184case "(($ac_try" in
18185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18186 *) ac_try_echo=$ac_try;;
18187esac
18188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18189 (eval "$ac_link") 2>conftest.er1
18190 ac_status=$?
18191 grep -v '^ *+' conftest.er1 >conftest.err
18192 rm -f conftest.er1
18193 cat conftest.err >&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); } &&
18196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18197 { (case "(($ac_try" in
18198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18199 *) ac_try_echo=$ac_try;;
18200esac
18201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18202 (eval "$ac_try") 2>&5
18203 ac_status=$?
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; } &&
18206 { ac_try='test -s conftest$ac_exeext'
18207 { (case "(($ac_try" in
18208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209 *) ac_try_echo=$ac_try;;
18210esac
18211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18212 (eval "$ac_try") 2>&5
18213 ac_status=$?
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; }; then
18216 ac_cv_lib_gcc___ashldi3=yes
18217else
18218 echo "$as_me: failed program was:" >&5
18219sed 's/^/| /' conftest.$ac_ext >&5
18220
18221 ac_cv_lib_gcc___ashldi3=no
18222fi
18223
18224rm -f core conftest.err conftest.$ac_objext \
18225 conftest$ac_exeext conftest.$ac_ext
18226LIBS=$ac_check_lib_save_LIBS
18227fi
18228{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18229echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18230if test $ac_cv_lib_gcc___ashldi3 = yes; then
18231
18232cat >>confdefs.h <<\_ACEOF
18233#define HAVE___ASHLDI3 1
18234_ACEOF
18235
18236fi
18237
18238 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18239echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18240if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18241 echo $ECHO_N "(cached) $ECHO_C" >&6
18242else
18243 ac_check_lib_save_LIBS=$LIBS
18244LIBS="-lgcc $LIBS"
18245cat >conftest.$ac_ext <<_ACEOF
18246/* confdefs.h. */
18247_ACEOF
18248cat confdefs.h >>conftest.$ac_ext
18249cat >>conftest.$ac_ext <<_ACEOF
18250/* end confdefs.h. */
18251
18252/* Override any GCC internal prototype to avoid an error.
18253 Use char because int might match the return type of a GCC
18254 builtin and then its argument prototype would still apply. */
18255#ifdef __cplusplus
18256extern "C"
18257#endif
18258char __ashrdi3 ();
18259int
18260main ()
18261{
18262return __ashrdi3 ();
18263 ;
18264 return 0;
18265}
18266_ACEOF
18267rm -f conftest.$ac_objext conftest$ac_exeext
18268if { (ac_try="$ac_link"
18269case "(($ac_try" in
18270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18271 *) ac_try_echo=$ac_try;;
18272esac
18273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18274 (eval "$ac_link") 2>conftest.er1
18275 ac_status=$?
18276 grep -v '^ *+' conftest.er1 >conftest.err
18277 rm -f conftest.er1
18278 cat conftest.err >&5
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); } &&
18281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18282 { (case "(($ac_try" in
18283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18284 *) ac_try_echo=$ac_try;;
18285esac
18286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18287 (eval "$ac_try") 2>&5
18288 ac_status=$?
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; } &&
18291 { ac_try='test -s conftest$ac_exeext'
18292 { (case "(($ac_try" in
18293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18294 *) ac_try_echo=$ac_try;;
18295esac
18296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18297 (eval "$ac_try") 2>&5
18298 ac_status=$?
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); }; }; then
18301 ac_cv_lib_gcc___ashrdi3=yes
18302else
18303 echo "$as_me: failed program was:" >&5
18304sed 's/^/| /' conftest.$ac_ext >&5
18305
18306 ac_cv_lib_gcc___ashrdi3=no
18307fi
18308
18309rm -f core conftest.err conftest.$ac_objext \
18310 conftest$ac_exeext conftest.$ac_ext
18311LIBS=$ac_check_lib_save_LIBS
18312fi
18313{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18314echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18315if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18316
18317cat >>confdefs.h <<\_ACEOF
18318#define HAVE___ASHRDI3 1
18319_ACEOF
18320
18321fi
18322
18323 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18324echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18325if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18326 echo $ECHO_N "(cached) $ECHO_C" >&6
18327else
18328 ac_check_lib_save_LIBS=$LIBS
18329LIBS="-lgcc $LIBS"
18330cat >conftest.$ac_ext <<_ACEOF
18331/* confdefs.h. */
18332_ACEOF
18333cat confdefs.h >>conftest.$ac_ext
18334cat >>conftest.$ac_ext <<_ACEOF
18335/* end confdefs.h. */
18336
18337/* Override any GCC internal prototype to avoid an error.
18338 Use char because int might match the return type of a GCC
18339 builtin and then its argument prototype would still apply. */
18340#ifdef __cplusplus
18341extern "C"
18342#endif
18343char __divdi3 ();
18344int
18345main ()
18346{
18347return __divdi3 ();
18348 ;
18349 return 0;
18350}
18351_ACEOF
18352rm -f conftest.$ac_objext conftest$ac_exeext
18353if { (ac_try="$ac_link"
18354case "(($ac_try" in
18355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356 *) ac_try_echo=$ac_try;;
18357esac
18358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18359 (eval "$ac_link") 2>conftest.er1
18360 ac_status=$?
18361 grep -v '^ *+' conftest.er1 >conftest.err
18362 rm -f conftest.er1
18363 cat conftest.err >&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); } &&
18366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18367 { (case "(($ac_try" in
18368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369 *) ac_try_echo=$ac_try;;
18370esac
18371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372 (eval "$ac_try") 2>&5
18373 ac_status=$?
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; } &&
18376 { ac_try='test -s conftest$ac_exeext'
18377 { (case "(($ac_try" in
18378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379 *) ac_try_echo=$ac_try;;
18380esac
18381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382 (eval "$ac_try") 2>&5
18383 ac_status=$?
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; }; then
18386 ac_cv_lib_gcc___divdi3=yes
18387else
18388 echo "$as_me: failed program was:" >&5
18389sed 's/^/| /' conftest.$ac_ext >&5
18390
18391 ac_cv_lib_gcc___divdi3=no
18392fi
18393
18394rm -f core conftest.err conftest.$ac_objext \
18395 conftest$ac_exeext conftest.$ac_ext
18396LIBS=$ac_check_lib_save_LIBS
18397fi
18398{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18399echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18400if test $ac_cv_lib_gcc___divdi3 = yes; then
18401
18402cat >>confdefs.h <<\_ACEOF
18403#define HAVE___DIVDI3 1
18404_ACEOF
18405
18406fi
18407
18408 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18409echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18410if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18411 echo $ECHO_N "(cached) $ECHO_C" >&6
18412else
18413 ac_check_lib_save_LIBS=$LIBS
18414LIBS="-lgcc $LIBS"
18415cat >conftest.$ac_ext <<_ACEOF
18416/* confdefs.h. */
18417_ACEOF
18418cat confdefs.h >>conftest.$ac_ext
18419cat >>conftest.$ac_ext <<_ACEOF
18420/* end confdefs.h. */
18421
18422/* Override any GCC internal prototype to avoid an error.
18423 Use char because int might match the return type of a GCC
18424 builtin and then its argument prototype would still apply. */
18425#ifdef __cplusplus
18426extern "C"
18427#endif
18428char __fixdfdi ();
18429int
18430main ()
18431{
18432return __fixdfdi ();
18433 ;
18434 return 0;
18435}
18436_ACEOF
18437rm -f conftest.$ac_objext conftest$ac_exeext
18438if { (ac_try="$ac_link"
18439case "(($ac_try" in
18440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18441 *) ac_try_echo=$ac_try;;
18442esac
18443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18444 (eval "$ac_link") 2>conftest.er1
18445 ac_status=$?
18446 grep -v '^ *+' conftest.er1 >conftest.err
18447 rm -f conftest.er1
18448 cat conftest.err >&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } &&
18451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18452 { (case "(($ac_try" in
18453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454 *) ac_try_echo=$ac_try;;
18455esac
18456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457 (eval "$ac_try") 2>&5
18458 ac_status=$?
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; } &&
18461 { ac_try='test -s conftest$ac_exeext'
18462 { (case "(($ac_try" in
18463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18464 *) ac_try_echo=$ac_try;;
18465esac
18466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18467 (eval "$ac_try") 2>&5
18468 ac_status=$?
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); }; }; then
18471 ac_cv_lib_gcc___fixdfdi=yes
18472else
18473 echo "$as_me: failed program was:" >&5
18474sed 's/^/| /' conftest.$ac_ext >&5
18475
18476 ac_cv_lib_gcc___fixdfdi=no
18477fi
18478
18479rm -f core conftest.err conftest.$ac_objext \
18480 conftest$ac_exeext conftest.$ac_ext
18481LIBS=$ac_check_lib_save_LIBS
18482fi
18483{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18484echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18485if test $ac_cv_lib_gcc___fixdfdi = yes; then
18486
18487cat >>confdefs.h <<\_ACEOF
18488#define HAVE___FIXDFDI 1
18489_ACEOF
18490
18491fi
18492
18493 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18494echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18495if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18496 echo $ECHO_N "(cached) $ECHO_C" >&6
18497else
18498 ac_check_lib_save_LIBS=$LIBS
18499LIBS="-lgcc $LIBS"
18500cat >conftest.$ac_ext <<_ACEOF
18501/* confdefs.h. */
18502_ACEOF
18503cat confdefs.h >>conftest.$ac_ext
18504cat >>conftest.$ac_ext <<_ACEOF
18505/* end confdefs.h. */
18506
18507/* Override any GCC internal prototype to avoid an error.
18508 Use char because int might match the return type of a GCC
18509 builtin and then its argument prototype would still apply. */
18510#ifdef __cplusplus
18511extern "C"
18512#endif
18513char __fixsfdi ();
18514int
18515main ()
18516{
18517return __fixsfdi ();
18518 ;
18519 return 0;
18520}
18521_ACEOF
18522rm -f conftest.$ac_objext conftest$ac_exeext
18523if { (ac_try="$ac_link"
18524case "(($ac_try" in
18525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526 *) ac_try_echo=$ac_try;;
18527esac
18528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529 (eval "$ac_link") 2>conftest.er1
18530 ac_status=$?
18531 grep -v '^ *+' conftest.er1 >conftest.err
18532 rm -f conftest.er1
18533 cat conftest.err >&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); } &&
18536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18537 { (case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18540esac
18541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_try") 2>&5
18543 ac_status=$?
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; } &&
18546 { ac_try='test -s conftest$ac_exeext'
18547 { (case "(($ac_try" in
18548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18549 *) ac_try_echo=$ac_try;;
18550esac
18551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18552 (eval "$ac_try") 2>&5
18553 ac_status=$?
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; }; then
18556 ac_cv_lib_gcc___fixsfdi=yes
18557else
18558 echo "$as_me: failed program was:" >&5
18559sed 's/^/| /' conftest.$ac_ext >&5
18560
18561 ac_cv_lib_gcc___fixsfdi=no
18562fi
18563
18564rm -f core conftest.err conftest.$ac_objext \
18565 conftest$ac_exeext conftest.$ac_ext
18566LIBS=$ac_check_lib_save_LIBS
18567fi
18568{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18569echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18570if test $ac_cv_lib_gcc___fixsfdi = yes; then
18571
18572cat >>confdefs.h <<\_ACEOF
18573#define HAVE___FIXSFDI 1
18574_ACEOF
18575
18576fi
18577
18578 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18579echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18580if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18581 echo $ECHO_N "(cached) $ECHO_C" >&6
18582else
18583 ac_check_lib_save_LIBS=$LIBS
18584LIBS="-lgcc $LIBS"
18585cat >conftest.$ac_ext <<_ACEOF
18586/* confdefs.h. */
18587_ACEOF
18588cat confdefs.h >>conftest.$ac_ext
18589cat >>conftest.$ac_ext <<_ACEOF
18590/* end confdefs.h. */
18591
18592/* Override any GCC internal prototype to avoid an error.
18593 Use char because int might match the return type of a GCC
18594 builtin and then its argument prototype would still apply. */
18595#ifdef __cplusplus
18596extern "C"
18597#endif
18598char __floatdidf ();
18599int
18600main ()
18601{
18602return __floatdidf ();
18603 ;
18604 return 0;
18605}
18606_ACEOF
18607rm -f conftest.$ac_objext conftest$ac_exeext
18608if { (ac_try="$ac_link"
18609case "(($ac_try" in
18610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18611 *) ac_try_echo=$ac_try;;
18612esac
18613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18614 (eval "$ac_link") 2>conftest.er1
18615 ac_status=$?
18616 grep -v '^ *+' conftest.er1 >conftest.err
18617 rm -f conftest.er1
18618 cat conftest.err >&5
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); } &&
18621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18622 { (case "(($ac_try" in
18623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624 *) ac_try_echo=$ac_try;;
18625esac
18626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627 (eval "$ac_try") 2>&5
18628 ac_status=$?
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; } &&
18631 { ac_try='test -s conftest$ac_exeext'
18632 { (case "(($ac_try" in
18633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634 *) ac_try_echo=$ac_try;;
18635esac
18636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18637 (eval "$ac_try") 2>&5
18638 ac_status=$?
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; }; then
18641 ac_cv_lib_gcc___floatdidf=yes
18642else
18643 echo "$as_me: failed program was:" >&5
18644sed 's/^/| /' conftest.$ac_ext >&5
18645
18646 ac_cv_lib_gcc___floatdidf=no
18647fi
18648
18649rm -f core conftest.err conftest.$ac_objext \
18650 conftest$ac_exeext conftest.$ac_ext
18651LIBS=$ac_check_lib_save_LIBS
18652fi
18653{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18654echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18655if test $ac_cv_lib_gcc___floatdidf = yes; then
18656
18657cat >>confdefs.h <<\_ACEOF
18658#define HAVE___FLOATDIDF 1
18659_ACEOF
18660
18661fi
18662
18663 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18664echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18665if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18666 echo $ECHO_N "(cached) $ECHO_C" >&6
18667else
18668 ac_check_lib_save_LIBS=$LIBS
18669LIBS="-lgcc $LIBS"
18670cat >conftest.$ac_ext <<_ACEOF
18671/* confdefs.h. */
18672_ACEOF
18673cat confdefs.h >>conftest.$ac_ext
18674cat >>conftest.$ac_ext <<_ACEOF
18675/* end confdefs.h. */
18676
18677/* Override any GCC internal prototype to avoid an error.
18678 Use char because int might match the return type of a GCC
18679 builtin and then its argument prototype would still apply. */
18680#ifdef __cplusplus
18681extern "C"
18682#endif
18683char __lshrdi3 ();
18684int
18685main ()
18686{
18687return __lshrdi3 ();
18688 ;
18689 return 0;
18690}
18691_ACEOF
18692rm -f conftest.$ac_objext conftest$ac_exeext
18693if { (ac_try="$ac_link"
18694case "(($ac_try" in
18695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18696 *) ac_try_echo=$ac_try;;
18697esac
18698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18699 (eval "$ac_link") 2>conftest.er1
18700 ac_status=$?
18701 grep -v '^ *+' conftest.er1 >conftest.err
18702 rm -f conftest.er1
18703 cat conftest.err >&5
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); } &&
18706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18707 { (case "(($ac_try" in
18708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709 *) ac_try_echo=$ac_try;;
18710esac
18711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712 (eval "$ac_try") 2>&5
18713 ac_status=$?
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); }; } &&
18716 { ac_try='test -s conftest$ac_exeext'
18717 { (case "(($ac_try" in
18718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18719 *) ac_try_echo=$ac_try;;
18720esac
18721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18722 (eval "$ac_try") 2>&5
18723 ac_status=$?
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); }; }; then
18726 ac_cv_lib_gcc___lshrdi3=yes
18727else
18728 echo "$as_me: failed program was:" >&5
18729sed 's/^/| /' conftest.$ac_ext >&5
18730
18731 ac_cv_lib_gcc___lshrdi3=no
18732fi
18733
18734rm -f core conftest.err conftest.$ac_objext \
18735 conftest$ac_exeext conftest.$ac_ext
18736LIBS=$ac_check_lib_save_LIBS
18737fi
18738{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18739echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18740if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18741
18742cat >>confdefs.h <<\_ACEOF
18743#define HAVE___LSHRDI3 1
18744_ACEOF
18745
18746fi
18747
18748 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18749echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18750if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18751 echo $ECHO_N "(cached) $ECHO_C" >&6
18752else
18753 ac_check_lib_save_LIBS=$LIBS
18754LIBS="-lgcc $LIBS"
18755cat >conftest.$ac_ext <<_ACEOF
18756/* confdefs.h. */
18757_ACEOF
18758cat confdefs.h >>conftest.$ac_ext
18759cat >>conftest.$ac_ext <<_ACEOF
18760/* end confdefs.h. */
18761
18762/* Override any GCC internal prototype to avoid an error.
18763 Use char because int might match the return type of a GCC
18764 builtin and then its argument prototype would still apply. */
18765#ifdef __cplusplus
18766extern "C"
18767#endif
18768char __moddi3 ();
18769int
18770main ()
18771{
18772return __moddi3 ();
18773 ;
18774 return 0;
18775}
18776_ACEOF
18777rm -f conftest.$ac_objext conftest$ac_exeext
18778if { (ac_try="$ac_link"
18779case "(($ac_try" in
18780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781 *) ac_try_echo=$ac_try;;
18782esac
18783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784 (eval "$ac_link") 2>conftest.er1
18785 ac_status=$?
18786 grep -v '^ *+' conftest.er1 >conftest.err
18787 rm -f conftest.er1
18788 cat conftest.err >&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); } &&
18791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18792 { (case "(($ac_try" in
18793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18794 *) ac_try_echo=$ac_try;;
18795esac
18796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18797 (eval "$ac_try") 2>&5
18798 ac_status=$?
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; } &&
18801 { ac_try='test -s conftest$ac_exeext'
18802 { (case "(($ac_try" in
18803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18804 *) ac_try_echo=$ac_try;;
18805esac
18806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18807 (eval "$ac_try") 2>&5
18808 ac_status=$?
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); }; }; then
18811 ac_cv_lib_gcc___moddi3=yes
18812else
18813 echo "$as_me: failed program was:" >&5
18814sed 's/^/| /' conftest.$ac_ext >&5
18815
18816 ac_cv_lib_gcc___moddi3=no
18817fi
18818
18819rm -f core conftest.err conftest.$ac_objext \
18820 conftest$ac_exeext conftest.$ac_ext
18821LIBS=$ac_check_lib_save_LIBS
18822fi
18823{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18824echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18825if test $ac_cv_lib_gcc___moddi3 = yes; then
18826
18827cat >>confdefs.h <<\_ACEOF
18828#define HAVE___MODDI3 1
18829_ACEOF
18830
18831fi
18832
18833 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18834echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18835if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18836 echo $ECHO_N "(cached) $ECHO_C" >&6
18837else
18838 ac_check_lib_save_LIBS=$LIBS
18839LIBS="-lgcc $LIBS"
18840cat >conftest.$ac_ext <<_ACEOF
18841/* confdefs.h. */
18842_ACEOF
18843cat confdefs.h >>conftest.$ac_ext
18844cat >>conftest.$ac_ext <<_ACEOF
18845/* end confdefs.h. */
18846
18847/* Override any GCC internal prototype to avoid an error.
18848 Use char because int might match the return type of a GCC
18849 builtin and then its argument prototype would still apply. */
18850#ifdef __cplusplus
18851extern "C"
18852#endif
18853char __udivdi3 ();
18854int
18855main ()
18856{
18857return __udivdi3 ();
18858 ;
18859 return 0;
18860}
18861_ACEOF
18862rm -f conftest.$ac_objext conftest$ac_exeext
18863if { (ac_try="$ac_link"
18864case "(($ac_try" in
18865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18866 *) ac_try_echo=$ac_try;;
18867esac
18868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18869 (eval "$ac_link") 2>conftest.er1
18870 ac_status=$?
18871 grep -v '^ *+' conftest.er1 >conftest.err
18872 rm -f conftest.er1
18873 cat conftest.err >&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } &&
18876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18877 { (case "(($ac_try" in
18878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18879 *) ac_try_echo=$ac_try;;
18880esac
18881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882 (eval "$ac_try") 2>&5
18883 ac_status=$?
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); }; } &&
18886 { ac_try='test -s conftest$ac_exeext'
18887 { (case "(($ac_try" in
18888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18889 *) ac_try_echo=$ac_try;;
18890esac
18891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18892 (eval "$ac_try") 2>&5
18893 ac_status=$?
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); }; }; then
18896 ac_cv_lib_gcc___udivdi3=yes
18897else
18898 echo "$as_me: failed program was:" >&5
18899sed 's/^/| /' conftest.$ac_ext >&5
18900
18901 ac_cv_lib_gcc___udivdi3=no
18902fi
18903
18904rm -f core conftest.err conftest.$ac_objext \
18905 conftest$ac_exeext conftest.$ac_ext
18906LIBS=$ac_check_lib_save_LIBS
18907fi
18908{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18909echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18910if test $ac_cv_lib_gcc___udivdi3 = yes; then
18911
18912cat >>confdefs.h <<\_ACEOF
18913#define HAVE___UDIVDI3 1
18914_ACEOF
18915
18916fi
18917
18918 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18919echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18920if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18921 echo $ECHO_N "(cached) $ECHO_C" >&6
18922else
18923 ac_check_lib_save_LIBS=$LIBS
18924LIBS="-lgcc $LIBS"
18925cat >conftest.$ac_ext <<_ACEOF
18926/* confdefs.h. */
18927_ACEOF
18928cat confdefs.h >>conftest.$ac_ext
18929cat >>conftest.$ac_ext <<_ACEOF
18930/* end confdefs.h. */
18931
18932/* Override any GCC internal prototype to avoid an error.
18933 Use char because int might match the return type of a GCC
18934 builtin and then its argument prototype would still apply. */
18935#ifdef __cplusplus
18936extern "C"
18937#endif
18938char __umoddi3 ();
18939int
18940main ()
18941{
18942return __umoddi3 ();
18943 ;
18944 return 0;
18945}
18946_ACEOF
18947rm -f conftest.$ac_objext conftest$ac_exeext
18948if { (ac_try="$ac_link"
18949case "(($ac_try" in
18950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951 *) ac_try_echo=$ac_try;;
18952esac
18953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954 (eval "$ac_link") 2>conftest.er1
18955 ac_status=$?
18956 grep -v '^ *+' conftest.er1 >conftest.err
18957 rm -f conftest.er1
18958 cat conftest.err >&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); } &&
18961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18962 { (case "(($ac_try" in
18963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964 *) ac_try_echo=$ac_try;;
18965esac
18966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967 (eval "$ac_try") 2>&5
18968 ac_status=$?
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); }; } &&
18971 { ac_try='test -s conftest$ac_exeext'
18972 { (case "(($ac_try" in
18973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18974 *) ac_try_echo=$ac_try;;
18975esac
18976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18977 (eval "$ac_try") 2>&5
18978 ac_status=$?
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); }; }; then
18981 ac_cv_lib_gcc___umoddi3=yes
18982else
18983 echo "$as_me: failed program was:" >&5
18984sed 's/^/| /' conftest.$ac_ext >&5
18985
18986 ac_cv_lib_gcc___umoddi3=no
18987fi
18988
18989rm -f core conftest.err conftest.$ac_objext \
18990 conftest$ac_exeext conftest.$ac_ext
18991LIBS=$ac_check_lib_save_LIBS
18992fi
18993{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18994echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18995if test $ac_cv_lib_gcc___umoddi3 = yes; then
18996
18997cat >>confdefs.h <<\_ACEOF
18998#define HAVE___UMODDI3 1
18999_ACEOF
19000
19001fi
19002
19003
19004 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19005echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19006if test "${ac_cv_lib_gcc___main+set}" = set; then
19007 echo $ECHO_N "(cached) $ECHO_C" >&6
19008else
19009 ac_check_lib_save_LIBS=$LIBS
19010LIBS="-lgcc $LIBS"
19011cat >conftest.$ac_ext <<_ACEOF
19012/* confdefs.h. */
19013_ACEOF
19014cat confdefs.h >>conftest.$ac_ext
19015cat >>conftest.$ac_ext <<_ACEOF
19016/* end confdefs.h. */
19017
19018/* Override any GCC internal prototype to avoid an error.
19019 Use char because int might match the return type of a GCC
19020 builtin and then its argument prototype would still apply. */
19021#ifdef __cplusplus
19022extern "C"
19023#endif
19024char __main ();
19025int
19026main ()
19027{
19028return __main ();
19029 ;
19030 return 0;
19031}
19032_ACEOF
19033rm -f conftest.$ac_objext conftest$ac_exeext
19034if { (ac_try="$ac_link"
19035case "(($ac_try" in
19036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037 *) ac_try_echo=$ac_try;;
19038esac
19039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040 (eval "$ac_link") 2>conftest.er1
19041 ac_status=$?
19042 grep -v '^ *+' conftest.er1 >conftest.err
19043 rm -f conftest.er1
19044 cat conftest.err >&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } &&
19047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19048 { (case "(($ac_try" in
19049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050 *) ac_try_echo=$ac_try;;
19051esac
19052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053 (eval "$ac_try") 2>&5
19054 ac_status=$?
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; } &&
19057 { ac_try='test -s conftest$ac_exeext'
19058 { (case "(($ac_try" in
19059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19060 *) ac_try_echo=$ac_try;;
19061esac
19062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19063 (eval "$ac_try") 2>&5
19064 ac_status=$?
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; }; then
19067 ac_cv_lib_gcc___main=yes
19068else
19069 echo "$as_me: failed program was:" >&5
19070sed 's/^/| /' conftest.$ac_ext >&5
19071
19072 ac_cv_lib_gcc___main=no
19073fi
19074
19075rm -f core conftest.err conftest.$ac_objext \
19076 conftest$ac_exeext conftest.$ac_ext
19077LIBS=$ac_check_lib_save_LIBS
19078fi
19079{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19080echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19081if test $ac_cv_lib_gcc___main = yes; then
19082
19083cat >>confdefs.h <<\_ACEOF
19084#define HAVE___MAIN 1
19085_ACEOF
19086
19087fi
19088
19089 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19090echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19091if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19092 echo $ECHO_N "(cached) $ECHO_C" >&6
19093else
19094 ac_check_lib_save_LIBS=$LIBS
19095LIBS="-lgcc $LIBS"
19096cat >conftest.$ac_ext <<_ACEOF
19097/* confdefs.h. */
19098_ACEOF
19099cat confdefs.h >>conftest.$ac_ext
19100cat >>conftest.$ac_ext <<_ACEOF
19101/* end confdefs.h. */
19102
19103/* Override any GCC internal prototype to avoid an error.
19104 Use char because int might match the return type of a GCC
19105 builtin and then its argument prototype would still apply. */
19106#ifdef __cplusplus
19107extern "C"
19108#endif
19109char __cmpdi2 ();
19110int
19111main ()
19112{
19113return __cmpdi2 ();
19114 ;
19115 return 0;
19116}
19117_ACEOF
19118rm -f conftest.$ac_objext conftest$ac_exeext
19119if { (ac_try="$ac_link"
19120case "(($ac_try" in
19121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19122 *) ac_try_echo=$ac_try;;
19123esac
19124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19125 (eval "$ac_link") 2>conftest.er1
19126 ac_status=$?
19127 grep -v '^ *+' conftest.er1 >conftest.err
19128 rm -f conftest.er1
19129 cat conftest.err >&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } &&
19132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19133 { (case "(($ac_try" in
19134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19135 *) ac_try_echo=$ac_try;;
19136esac
19137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19138 (eval "$ac_try") 2>&5
19139 ac_status=$?
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; } &&
19142 { ac_try='test -s conftest$ac_exeext'
19143 { (case "(($ac_try" in
19144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19145 *) ac_try_echo=$ac_try;;
19146esac
19147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19148 (eval "$ac_try") 2>&5
19149 ac_status=$?
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); }; }; then
19152 ac_cv_lib_gcc___cmpdi2=yes
19153else
19154 echo "$as_me: failed program was:" >&5
19155sed 's/^/| /' conftest.$ac_ext >&5
19156
19157 ac_cv_lib_gcc___cmpdi2=no
19158fi
19159
19160rm -f core conftest.err conftest.$ac_objext \
19161 conftest$ac_exeext conftest.$ac_ext
19162LIBS=$ac_check_lib_save_LIBS
19163fi
19164{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19165echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19166if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19167
19168cat >>confdefs.h <<\_ACEOF
19169#define HAVE___CMPDI2 1
19170_ACEOF
19171
19172fi
19173
19174fi
19175
19176if test "$llvm_cv_os_type" = "MingW" ; then
19177 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19178echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19179 cat >conftest.$ac_ext <<_ACEOF
19180#include <windows.h>
19181#include <imagehlp.h>
19182extern void foo(PENUMLOADED_MODULES_CALLBACK);
19183extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19184_ACEOF
19185rm -f conftest.$ac_objext
19186if { (ac_try="$ac_compile"
19187case "(($ac_try" in
19188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19189 *) ac_try_echo=$ac_try;;
19190esac
19191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19192 (eval "$ac_compile") 2>conftest.er1
19193 ac_status=$?
19194 grep -v '^ *+' conftest.er1 >conftest.err
19195 rm -f conftest.er1
19196 cat conftest.err >&5
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); } &&
19199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19200 { (case "(($ac_try" in
19201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19202 *) ac_try_echo=$ac_try;;
19203esac
19204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19205 (eval "$ac_try") 2>&5
19206 ac_status=$?
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); }; } &&
19209 { ac_try='test -s conftest.$ac_objext'
19210 { (case "(($ac_try" in
19211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19212 *) ac_try_echo=$ac_try;;
19213esac
19214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19215 (eval "$ac_try") 2>&5
19216 ac_status=$?
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); }; }; then
19219
19220 { echo "$as_me:$LINENO: result: yes" >&5
19221echo "${ECHO_T}yes" >&6; }
19222 llvm_cv_win32_elmcb_pcstr="PCSTR"
19223
19224else
19225 echo "$as_me: failed program was:" >&5
19226sed 's/^/| /' conftest.$ac_ext >&5
19227
19228
19229 { echo "$as_me:$LINENO: result: no" >&5
19230echo "${ECHO_T}no" >&6; }
19231 llvm_cv_win32_elmcb_pcstr="PSTR"
19232
19233fi
19234
19235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19236
19237cat >>confdefs.h <<_ACEOF
19238#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19239_ACEOF
19240
19241fi
19242
19243
19244{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19245echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19246if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19247 echo $ECHO_N "(cached) $ECHO_C" >&6
19248else
19249 ac_ext=cpp
19250ac_cpp='$CXXCPP $CPPFLAGS'
19251ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19252ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19253ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19254
19255 cat >conftest.$ac_ext <<_ACEOF
19256/* confdefs.h. */
19257_ACEOF
19258cat confdefs.h >>conftest.$ac_ext
19259cat >>conftest.$ac_ext <<_ACEOF
19260/* end confdefs.h. */
19261#include <math.h>
19262int
19263main ()
19264{
19265float f; isnan(f);
19266 ;
19267 return 0;
19268}
19269_ACEOF
19270rm -f conftest.$ac_objext
19271if { (ac_try="$ac_compile"
19272case "(($ac_try" in
19273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19274 *) ac_try_echo=$ac_try;;
19275esac
19276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19277 (eval "$ac_compile") 2>conftest.er1
19278 ac_status=$?
19279 grep -v '^ *+' conftest.er1 >conftest.err
19280 rm -f conftest.er1
19281 cat conftest.err >&5
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); } &&
19284 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19285 { (case "(($ac_try" in
19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287 *) ac_try_echo=$ac_try;;
19288esac
19289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290 (eval "$ac_try") 2>&5
19291 ac_status=$?
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; } &&
19294 { ac_try='test -s conftest.$ac_objext'
19295 { (case "(($ac_try" in
19296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19297 *) ac_try_echo=$ac_try;;
19298esac
19299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19300 (eval "$ac_try") 2>&5
19301 ac_status=$?
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); }; }; then
19304 ac_cv_func_isnan_in_math_h=yes
19305else
19306 echo "$as_me: failed program was:" >&5
19307sed 's/^/| /' conftest.$ac_ext >&5
19308
19309 ac_cv_func_isnan_in_math_h=no
19310fi
19311
19312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19313 ac_ext=c
19314ac_cpp='$CPP $CPPFLAGS'
19315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19317ac_compiler_gnu=$ac_cv_c_compiler_gnu
19318
19319fi
19320{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19321echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19322
19323
19324if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19325
19326cat >>confdefs.h <<\_ACEOF
19327#define HAVE_ISNAN_IN_MATH_H 1
19328_ACEOF
19329
19330fi
19331
19332{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19333echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19334if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19335 echo $ECHO_N "(cached) $ECHO_C" >&6
19336else
19337 ac_ext=cpp
19338ac_cpp='$CXXCPP $CPPFLAGS'
19339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19342
19343 cat >conftest.$ac_ext <<_ACEOF
19344/* confdefs.h. */
19345_ACEOF
19346cat confdefs.h >>conftest.$ac_ext
19347cat >>conftest.$ac_ext <<_ACEOF
19348/* end confdefs.h. */
19349#include <cmath>
19350int
19351main ()
19352{
19353float f; isnan(f);
19354 ;
19355 return 0;
19356}
19357_ACEOF
19358rm -f conftest.$ac_objext
19359if { (ac_try="$ac_compile"
19360case "(($ac_try" in
19361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362 *) ac_try_echo=$ac_try;;
19363esac
19364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365 (eval "$ac_compile") 2>conftest.er1
19366 ac_status=$?
19367 grep -v '^ *+' conftest.er1 >conftest.err
19368 rm -f conftest.er1
19369 cat conftest.err >&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } &&
19372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19373 { (case "(($ac_try" in
19374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375 *) ac_try_echo=$ac_try;;
19376esac
19377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19378 (eval "$ac_try") 2>&5
19379 ac_status=$?
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; } &&
19382 { ac_try='test -s conftest.$ac_objext'
19383 { (case "(($ac_try" in
19384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19385 *) ac_try_echo=$ac_try;;
19386esac
19387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19388 (eval "$ac_try") 2>&5
19389 ac_status=$?
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); }; }; then
19392 ac_cv_func_isnan_in_cmath=yes
19393else
19394 echo "$as_me: failed program was:" >&5
19395sed 's/^/| /' conftest.$ac_ext >&5
19396
19397 ac_cv_func_isnan_in_cmath=no
19398fi
19399
19400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19401 ac_ext=c
19402ac_cpp='$CPP $CPPFLAGS'
19403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19405ac_compiler_gnu=$ac_cv_c_compiler_gnu
19406
19407fi
19408{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19409echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19410
19411if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19412
19413cat >>confdefs.h <<\_ACEOF
19414#define HAVE_ISNAN_IN_CMATH 1
19415_ACEOF
19416
19417fi
19418
19419{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19420echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19421if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
19423else
19424 ac_ext=cpp
19425ac_cpp='$CXXCPP $CPPFLAGS'
19426ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19427ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19428ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19429
19430 cat >conftest.$ac_ext <<_ACEOF
19431/* confdefs.h. */
19432_ACEOF
19433cat confdefs.h >>conftest.$ac_ext
19434cat >>conftest.$ac_ext <<_ACEOF
19435/* end confdefs.h. */
19436#include <cmath>
19437int
19438main ()
19439{
19440float f; std::isnan(f);
19441 ;
19442 return 0;
19443}
19444_ACEOF
19445rm -f conftest.$ac_objext
19446if { (ac_try="$ac_compile"
19447case "(($ac_try" in
19448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19449 *) ac_try_echo=$ac_try;;
19450esac
19451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19452 (eval "$ac_compile") 2>conftest.er1
19453 ac_status=$?
19454 grep -v '^ *+' conftest.er1 >conftest.err
19455 rm -f conftest.er1
19456 cat conftest.err >&5
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); } &&
19459 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19460 { (case "(($ac_try" in
19461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19462 *) ac_try_echo=$ac_try;;
19463esac
19464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19465 (eval "$ac_try") 2>&5
19466 ac_status=$?
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); }; } &&
19469 { ac_try='test -s conftest.$ac_objext'
19470 { (case "(($ac_try" in
19471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19472 *) ac_try_echo=$ac_try;;
19473esac
19474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19475 (eval "$ac_try") 2>&5
19476 ac_status=$?
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); }; }; then
19479 ac_cv_func_std_isnan_in_cmath=yes
19480else
19481 echo "$as_me: failed program was:" >&5
19482sed 's/^/| /' conftest.$ac_ext >&5
19483
19484 ac_cv_func_std_isnan_in_cmath=no
19485fi
19486
19487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19488 ac_ext=c
19489ac_cpp='$CPP $CPPFLAGS'
19490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19492ac_compiler_gnu=$ac_cv_c_compiler_gnu
19493
19494fi
19495{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19496echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19497
19498if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19499
19500cat >>confdefs.h <<\_ACEOF
19501#define HAVE_STD_ISNAN_IN_CMATH 1
19502_ACEOF
19503
19504fi
19505
19506
19507{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19508echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19509if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19510 echo $ECHO_N "(cached) $ECHO_C" >&6
19511else
19512 ac_ext=cpp
19513ac_cpp='$CXXCPP $CPPFLAGS'
19514ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19515ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19516ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19517
19518 cat >conftest.$ac_ext <<_ACEOF
19519/* confdefs.h. */
19520_ACEOF
19521cat confdefs.h >>conftest.$ac_ext
19522cat >>conftest.$ac_ext <<_ACEOF
19523/* end confdefs.h. */
19524#include <math.h>
19525int
19526main ()
19527{
19528float f; isinf(f);
19529 ;
19530 return 0;
19531}
19532_ACEOF
19533rm -f conftest.$ac_objext
19534if { (ac_try="$ac_compile"
19535case "(($ac_try" in
19536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537 *) ac_try_echo=$ac_try;;
19538esac
19539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540 (eval "$ac_compile") 2>conftest.er1
19541 ac_status=$?
19542 grep -v '^ *+' conftest.er1 >conftest.err
19543 rm -f conftest.er1
19544 cat conftest.err >&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } &&
19547 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19548 { (case "(($ac_try" in
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550 *) ac_try_echo=$ac_try;;
19551esac
19552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19553 (eval "$ac_try") 2>&5
19554 ac_status=$?
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; } &&
19557 { ac_try='test -s conftest.$ac_objext'
19558 { (case "(($ac_try" in
19559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560 *) ac_try_echo=$ac_try;;
19561esac
19562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19563 (eval "$ac_try") 2>&5
19564 ac_status=$?
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); }; }; then
19567 ac_cv_func_isinf_in_math_h=yes
19568else
19569 echo "$as_me: failed program was:" >&5
19570sed 's/^/| /' conftest.$ac_ext >&5
19571
19572 ac_cv_func_isinf_in_math_h=no
19573fi
19574
19575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19576 ac_ext=c
19577ac_cpp='$CPP $CPPFLAGS'
19578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19580ac_compiler_gnu=$ac_cv_c_compiler_gnu
19581
19582fi
19583{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19584echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19585
19586if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19587
19588cat >>confdefs.h <<\_ACEOF
19589#define HAVE_ISINF_IN_MATH_H 1
19590_ACEOF
19591
19592fi
19593
19594{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19595echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19596if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19597 echo $ECHO_N "(cached) $ECHO_C" >&6
19598else
19599 ac_ext=cpp
19600ac_cpp='$CXXCPP $CPPFLAGS'
19601ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19602ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19603ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19604
19605 cat >conftest.$ac_ext <<_ACEOF
19606/* confdefs.h. */
19607_ACEOF
19608cat confdefs.h >>conftest.$ac_ext
19609cat >>conftest.$ac_ext <<_ACEOF
19610/* end confdefs.h. */
19611#include <cmath>
19612int
19613main ()
19614{
19615float f; isinf(f);
19616 ;
19617 return 0;
19618}
19619_ACEOF
19620rm -f conftest.$ac_objext
19621if { (ac_try="$ac_compile"
19622case "(($ac_try" in
19623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624 *) ac_try_echo=$ac_try;;
19625esac
19626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19627 (eval "$ac_compile") 2>conftest.er1
19628 ac_status=$?
19629 grep -v '^ *+' conftest.er1 >conftest.err
19630 rm -f conftest.er1
19631 cat conftest.err >&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); } &&
19634 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19635 { (case "(($ac_try" in
19636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19637 *) ac_try_echo=$ac_try;;
19638esac
19639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19640 (eval "$ac_try") 2>&5
19641 ac_status=$?
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; } &&
19644 { ac_try='test -s conftest.$ac_objext'
19645 { (case "(($ac_try" in
19646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647 *) ac_try_echo=$ac_try;;
19648esac
19649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19650 (eval "$ac_try") 2>&5
19651 ac_status=$?
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); }; }; then
19654 ac_cv_func_isinf_in_cmath=yes
19655else
19656 echo "$as_me: failed program was:" >&5
19657sed 's/^/| /' conftest.$ac_ext >&5
19658
19659 ac_cv_func_isinf_in_cmath=no
19660fi
19661
19662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19663 ac_ext=c
19664ac_cpp='$CPP $CPPFLAGS'
19665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19667ac_compiler_gnu=$ac_cv_c_compiler_gnu
19668
19669fi
19670{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19671echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19672
19673if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19674
19675cat >>confdefs.h <<\_ACEOF
19676#define HAVE_ISINF_IN_CMATH 1
19677_ACEOF
19678
19679fi
19680
19681{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19682echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19683if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19684 echo $ECHO_N "(cached) $ECHO_C" >&6
19685else
19686 ac_ext=cpp
19687ac_cpp='$CXXCPP $CPPFLAGS'
19688ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19689ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19690ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19691
19692 cat >conftest.$ac_ext <<_ACEOF
19693/* confdefs.h. */
19694_ACEOF
19695cat confdefs.h >>conftest.$ac_ext
19696cat >>conftest.$ac_ext <<_ACEOF
19697/* end confdefs.h. */
19698#include <cmath>
19699int
19700main ()
19701{
19702float f; std::isinf(f)}
19703 ;
19704 return 0;
19705}
19706_ACEOF
19707rm -f conftest.$ac_objext
19708if { (ac_try="$ac_compile"
19709case "(($ac_try" in
19710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711 *) ac_try_echo=$ac_try;;
19712esac
19713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714 (eval "$ac_compile") 2>conftest.er1
19715 ac_status=$?
19716 grep -v '^ *+' conftest.er1 >conftest.err
19717 rm -f conftest.er1
19718 cat conftest.err >&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); } &&
19721 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19722 { (case "(($ac_try" in
19723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19724 *) ac_try_echo=$ac_try;;
19725esac
19726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19727 (eval "$ac_try") 2>&5
19728 ac_status=$?
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; } &&
19731 { ac_try='test -s conftest.$ac_objext'
19732 { (case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19735esac
19736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737 (eval "$ac_try") 2>&5
19738 ac_status=$?
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); }; }; then
19741 ac_cv_func_std_isinf_in_cmath=yes
19742else
19743 echo "$as_me: failed program was:" >&5
19744sed 's/^/| /' conftest.$ac_ext >&5
19745
19746 ac_cv_func_std_isinf_in_cmath=no
19747fi
19748
19749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19750 ac_ext=c
19751ac_cpp='$CPP $CPPFLAGS'
19752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19754ac_compiler_gnu=$ac_cv_c_compiler_gnu
19755
19756fi
19757{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19758echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19759
19760if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19761
19762cat >>confdefs.h <<\_ACEOF
19763#define HAVE_STD_ISINF_IN_CMATH 1
19764_ACEOF
19765
19766fi
19767
19768{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19769echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19770if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19771 echo $ECHO_N "(cached) $ECHO_C" >&6
19772else
19773 ac_ext=cpp
19774ac_cpp='$CXXCPP $CPPFLAGS'
19775ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19776ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19777ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19778
19779 cat >conftest.$ac_ext <<_ACEOF
19780/* confdefs.h. */
19781_ACEOF
19782cat confdefs.h >>conftest.$ac_ext
19783cat >>conftest.$ac_ext <<_ACEOF
19784/* end confdefs.h. */
19785#include <ieeefp.h>
19786int
19787main ()
19788{
19789float f; finite(f);
19790 ;
19791 return 0;
19792}
19793_ACEOF
19794rm -f conftest.$ac_objext
19795if { (ac_try="$ac_compile"
19796case "(($ac_try" in
19797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19798 *) ac_try_echo=$ac_try;;
19799esac
19800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19801 (eval "$ac_compile") 2>conftest.er1
19802 ac_status=$?
19803 grep -v '^ *+' conftest.er1 >conftest.err
19804 rm -f conftest.er1
19805 cat conftest.err >&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); } &&
19808 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19809 { (case "(($ac_try" in
19810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19811 *) ac_try_echo=$ac_try;;
19812esac
19813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19814 (eval "$ac_try") 2>&5
19815 ac_status=$?
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); }; } &&
19818 { ac_try='test -s conftest.$ac_objext'
19819 { (case "(($ac_try" in
19820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19821 *) ac_try_echo=$ac_try;;
19822esac
19823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19824 (eval "$ac_try") 2>&5
19825 ac_status=$?
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); }; }; then
19828 ac_cv_func_finite_in_ieeefp_h=yes
19829else
19830 echo "$as_me: failed program was:" >&5
19831sed 's/^/| /' conftest.$ac_ext >&5
19832
19833 ac_cv_func_finite_in_ieeefp_h=no
19834fi
19835
19836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19837 ac_ext=c
19838ac_cpp='$CPP $CPPFLAGS'
19839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19841ac_compiler_gnu=$ac_cv_c_compiler_gnu
19842
19843fi
19844{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19845echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19846
19847if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19848
19849cat >>confdefs.h <<\_ACEOF
19850#define HAVE_FINITE_IN_IEEEFP_H 1
19851_ACEOF
19852
19853fi
19854
19855
19856
19857if test "$llvm_cv_platform_type" = "Unix" ; then
19858
19859
19860for ac_header in stdlib.h unistd.h
19861do
19862as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19863if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19867 echo $ECHO_N "(cached) $ECHO_C" >&6
19868fi
19869ac_res=`eval echo '${'$as_ac_Header'}'`
19870 { echo "$as_me:$LINENO: result: $ac_res" >&5
19871echo "${ECHO_T}$ac_res" >&6; }
19872else
19873 # Is the header compilable?
19874{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19875echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19876cat >conftest.$ac_ext <<_ACEOF
19877/* confdefs.h. */
19878_ACEOF
19879cat confdefs.h >>conftest.$ac_ext
19880cat >>conftest.$ac_ext <<_ACEOF
19881/* end confdefs.h. */
19882$ac_includes_default
19883#include <$ac_header>
19884_ACEOF
19885rm -f conftest.$ac_objext
19886if { (ac_try="$ac_compile"
19887case "(($ac_try" in
19888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19889 *) ac_try_echo=$ac_try;;
19890esac
19891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19892 (eval "$ac_compile") 2>conftest.er1
19893 ac_status=$?
19894 grep -v '^ *+' conftest.er1 >conftest.err
19895 rm -f conftest.er1
19896 cat conftest.err >&5
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); } &&
19899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19900 { (case "(($ac_try" in
19901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902 *) ac_try_echo=$ac_try;;
19903esac
19904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905 (eval "$ac_try") 2>&5
19906 ac_status=$?
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); }; } &&
19909 { ac_try='test -s conftest.$ac_objext'
19910 { (case "(($ac_try" in
19911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19912 *) ac_try_echo=$ac_try;;
19913esac
19914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19915 (eval "$ac_try") 2>&5
19916 ac_status=$?
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); }; }; then
19919 ac_header_compiler=yes
19920else
19921 echo "$as_me: failed program was:" >&5
19922sed 's/^/| /' conftest.$ac_ext >&5
19923
19924 ac_header_compiler=no
19925fi
19926
19927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19928{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19929echo "${ECHO_T}$ac_header_compiler" >&6; }
19930
19931# Is the header present?
19932{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19933echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19934cat >conftest.$ac_ext <<_ACEOF
19935/* confdefs.h. */
19936_ACEOF
19937cat confdefs.h >>conftest.$ac_ext
19938cat >>conftest.$ac_ext <<_ACEOF
19939/* end confdefs.h. */
19940#include <$ac_header>
19941_ACEOF
19942if { (ac_try="$ac_cpp conftest.$ac_ext"
19943case "(($ac_try" in
19944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945 *) ac_try_echo=$ac_try;;
19946esac
19947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19949 ac_status=$?
19950 grep -v '^ *+' conftest.er1 >conftest.err
19951 rm -f conftest.er1
19952 cat conftest.err >&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } >/dev/null; then
19955 if test -s conftest.err; then
19956 ac_cpp_err=$ac_c_preproc_warn_flag
19957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19958 else
19959 ac_cpp_err=
19960 fi
19961else
19962 ac_cpp_err=yes
19963fi
19964if test -z "$ac_cpp_err"; then
19965 ac_header_preproc=yes
19966else
19967 echo "$as_me: failed program was:" >&5
19968sed 's/^/| /' conftest.$ac_ext >&5
19969
19970 ac_header_preproc=no
19971fi
19972
19973rm -f conftest.err conftest.$ac_ext
19974{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19975echo "${ECHO_T}$ac_header_preproc" >&6; }
19976
19977# So? What about this header?
19978case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19979 yes:no: )
19980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19981echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19983echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19984 ac_header_preproc=yes
19985 ;;
19986 no:yes:* )
19987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19988echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19990echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19992echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19994echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19996echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19998echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19999 ( cat <<\_ASBOX
20000## ------------------------------ ##
20001## Report this to bugs@yourdomain ##
20002## ------------------------------ ##
20003_ASBOX
20004 ) | sed "s/^/$as_me: WARNING: /" >&2
20005 ;;
20006esac
20007{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20010 echo $ECHO_N "(cached) $ECHO_C" >&6
20011else
20012 eval "$as_ac_Header=\$ac_header_preproc"
20013fi
20014ac_res=`eval echo '${'$as_ac_Header'}'`
20015 { echo "$as_me:$LINENO: result: $ac_res" >&5
20016echo "${ECHO_T}$ac_res" >&6; }
20017
20018fi
20019if test `eval echo '${'$as_ac_Header'}'` = yes; then
20020 cat >>confdefs.h <<_ACEOF
20021#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20022_ACEOF
20023
20024fi
20025
20026done
20027
20028
20029for ac_func in getpagesize
20030do
20031as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20032{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20033echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20034if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20035 echo $ECHO_N "(cached) $ECHO_C" >&6
20036else
20037 cat >conftest.$ac_ext <<_ACEOF
20038/* confdefs.h. */
20039_ACEOF
20040cat confdefs.h >>conftest.$ac_ext
20041cat >>conftest.$ac_ext <<_ACEOF
20042/* end confdefs.h. */
20043/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20045#define $ac_func innocuous_$ac_func
20046
20047/* System header to define __stub macros and hopefully few prototypes,
20048 which can conflict with char $ac_func (); below.
20049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20050 <limits.h> exists even on freestanding compilers. */
20051
20052#ifdef __STDC__
20053# include <limits.h>
20054#else
20055# include <assert.h>
20056#endif
20057
20058#undef $ac_func
20059
20060/* Override any GCC internal prototype to avoid an error.
20061 Use char because int might match the return type of a GCC
20062 builtin and then its argument prototype would still apply. */
20063#ifdef __cplusplus
20064extern "C"
20065#endif
20066char $ac_func ();
20067/* The GNU C library defines this for functions which it implements
20068 to always fail with ENOSYS. Some functions are actually named
20069 something starting with __ and the normal name is an alias. */
20070#if defined __stub_$ac_func || defined __stub___$ac_func
20071choke me
20072#endif
20073
20074int
20075main ()
20076{
20077return $ac_func ();
20078 ;
20079 return 0;
20080}
20081_ACEOF
20082rm -f conftest.$ac_objext conftest$ac_exeext
20083if { (ac_try="$ac_link"
20084case "(($ac_try" in
20085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20086 *) ac_try_echo=$ac_try;;
20087esac
20088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20089 (eval "$ac_link") 2>conftest.er1
20090 ac_status=$?
20091 grep -v '^ *+' conftest.er1 >conftest.err
20092 rm -f conftest.er1
20093 cat conftest.err >&5
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); } &&
20096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20097 { (case "(($ac_try" in
20098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20099 *) ac_try_echo=$ac_try;;
20100esac
20101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20102 (eval "$ac_try") 2>&5
20103 ac_status=$?
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); }; } &&
20106 { ac_try='test -s conftest$ac_exeext'
20107 { (case "(($ac_try" in
20108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20109 *) ac_try_echo=$ac_try;;
20110esac
20111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20112 (eval "$ac_try") 2>&5
20113 ac_status=$?
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); }; }; then
20116 eval "$as_ac_var=yes"
20117else
20118 echo "$as_me: failed program was:" >&5
20119sed 's/^/| /' conftest.$ac_ext >&5
20120
20121 eval "$as_ac_var=no"
20122fi
20123
20124rm -f core conftest.err conftest.$ac_objext \
20125 conftest$ac_exeext conftest.$ac_ext
20126fi
20127ac_res=`eval echo '${'$as_ac_var'}'`
20128 { echo "$as_me:$LINENO: result: $ac_res" >&5
20129echo "${ECHO_T}$ac_res" >&6; }
20130if test `eval echo '${'$as_ac_var'}'` = yes; then
20131 cat >>confdefs.h <<_ACEOF
20132#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20133_ACEOF
20134
20135fi
20136done
20137
20138{ echo "$as_me:$LINENO: checking for working mmap" >&5
20139echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20140if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
20142else
20143 if test "$cross_compiling" = yes; then
20144 ac_cv_func_mmap_fixed_mapped=no
20145else
20146 cat >conftest.$ac_ext <<_ACEOF
20147/* confdefs.h. */
20148_ACEOF
20149cat confdefs.h >>conftest.$ac_ext
20150cat >>conftest.$ac_ext <<_ACEOF
20151/* end confdefs.h. */
20152$ac_includes_default
20153/* malloc might have been renamed as rpl_malloc. */
20154#undef malloc
20155
20156/* Thanks to Mike Haertel and Jim Avera for this test.
20157 Here is a matrix of mmap possibilities:
20158 mmap private not fixed
20159 mmap private fixed at somewhere currently unmapped
20160 mmap private fixed at somewhere already mapped
20161 mmap shared not fixed
20162 mmap shared fixed at somewhere currently unmapped
20163 mmap shared fixed at somewhere already mapped
20164 For private mappings, we should verify that changes cannot be read()
20165 back from the file, nor mmap's back from the file at a different
20166 address. (There have been systems where private was not correctly
20167 implemented like the infamous i386 svr4.0, and systems where the
20168 VM page cache was not coherent with the file system buffer cache
20169 like early versions of FreeBSD and possibly contemporary NetBSD.)
20170 For shared mappings, we should conversely verify that changes get
20171 propagated back to all the places they're supposed to be.
20172
20173 Grep wants private fixed already mapped.
20174 The main things grep needs to know about mmap are:
20175 * does it exist and is it safe to write into the mmap'd area
20176 * how to use it (BSD variants) */
20177
20178#include <fcntl.h>
20179#include <sys/mman.h>
20180
20181#if !STDC_HEADERS && !HAVE_STDLIB_H
20182char *malloc ();
20183#endif
20184
20185/* This mess was copied from the GNU getpagesize.h. */
20186#if !HAVE_GETPAGESIZE
20187/* Assume that all systems that can run configure have sys/param.h. */
20188# if !HAVE_SYS_PARAM_H
20189# define HAVE_SYS_PARAM_H 1
20190# endif
20191
20192# ifdef _SC_PAGESIZE
20193# define getpagesize() sysconf(_SC_PAGESIZE)
20194# else /* no _SC_PAGESIZE */
20195# if HAVE_SYS_PARAM_H
20196# include <sys/param.h>
20197# ifdef EXEC_PAGESIZE
20198# define getpagesize() EXEC_PAGESIZE
20199# else /* no EXEC_PAGESIZE */
20200# ifdef NBPG
20201# define getpagesize() NBPG * CLSIZE
20202# ifndef CLSIZE
20203# define CLSIZE 1
20204# endif /* no CLSIZE */
20205# else /* no NBPG */
20206# ifdef NBPC
20207# define getpagesize() NBPC
20208# else /* no NBPC */
20209# ifdef PAGESIZE
20210# define getpagesize() PAGESIZE
20211# endif /* PAGESIZE */
20212# endif /* no NBPC */
20213# endif /* no NBPG */
20214# endif /* no EXEC_PAGESIZE */
20215# else /* no HAVE_SYS_PARAM_H */
20216# define getpagesize() 8192 /* punt totally */
20217# endif /* no HAVE_SYS_PARAM_H */
20218# endif /* no _SC_PAGESIZE */
20219
20220#endif /* no HAVE_GETPAGESIZE */
20221
20222int
20223main ()
20224{
20225 char *data, *data2, *data3;
20226 int i, pagesize;
20227 int fd;
20228
20229 pagesize = getpagesize ();
20230
20231 /* First, make a file with some known garbage in it. */
20232 data = (char *) malloc (pagesize);
20233 if (!data)
20234 return 1;
20235 for (i = 0; i < pagesize; ++i)
20236 *(data + i) = rand ();
20237 umask (0);
20238 fd = creat ("conftest.mmap", 0600);
20239 if (fd < 0)
20240 return 1;
20241 if (write (fd, data, pagesize) != pagesize)
20242 return 1;
20243 close (fd);
20244
20245 /* Next, try to mmap the file at a fixed address which already has
20246 something else allocated at it. If we can, also make sure that
20247 we see the same garbage. */
20248 fd = open ("conftest.mmap", O_RDWR);
20249 if (fd < 0)
20250 return 1;
20251 data2 = (char *) malloc (2 * pagesize);
20252 if (!data2)
20253 return 1;
20254 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20255 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20256 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20257 return 1;
20258 for (i = 0; i < pagesize; ++i)
20259 if (*(data + i) != *(data2 + i))
20260 return 1;
20261
20262 /* Finally, make sure that changes to the mapped area do not
20263 percolate back to the file as seen by read(). (This is a bug on
20264 some variants of i386 svr4.0.) */
20265 for (i = 0; i < pagesize; ++i)
20266 *(data2 + i) = *(data2 + i) + 1;
20267 data3 = (char *) malloc (pagesize);
20268 if (!data3)
20269 return 1;
20270 if (read (fd, data3, pagesize) != pagesize)
20271 return 1;
20272 for (i = 0; i < pagesize; ++i)
20273 if (*(data + i) != *(data3 + i))
20274 return 1;
20275 close (fd);
20276 return 0;
20277}
20278_ACEOF
20279rm -f conftest$ac_exeext
20280if { (ac_try="$ac_link"
20281case "(($ac_try" in
20282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20283 *) ac_try_echo=$ac_try;;
20284esac
20285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20286 (eval "$ac_link") 2>&5
20287 ac_status=$?
20288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20290 { (case "(($ac_try" in
20291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20292 *) ac_try_echo=$ac_try;;
20293esac
20294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20295 (eval "$ac_try") 2>&5
20296 ac_status=$?
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; }; then
20299 ac_cv_func_mmap_fixed_mapped=yes
20300else
20301 echo "$as_me: program exited with status $ac_status" >&5
20302echo "$as_me: failed program was:" >&5
20303sed 's/^/| /' conftest.$ac_ext >&5
20304
20305( exit $ac_status )
20306ac_cv_func_mmap_fixed_mapped=no
20307fi
20308rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20309fi
20310
20311
20312fi
20313{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20314echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20315if test $ac_cv_func_mmap_fixed_mapped = yes; then
20316
20317cat >>confdefs.h <<\_ACEOF
20318#define HAVE_MMAP 1
20319_ACEOF
20320
20321fi
20322rm -f conftest.mmap
20323
20324 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20325echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20326if test "${ac_cv_func_mmap_file+set}" = set; then
20327 echo $ECHO_N "(cached) $ECHO_C" >&6
20328else
20329 ac_ext=c
20330ac_cpp='$CPP $CPPFLAGS'
20331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20333ac_compiler_gnu=$ac_cv_c_compiler_gnu
20334
20335 if test "$cross_compiling" = yes; then
20336 ac_cv_func_mmap_file=no
20337else
20338 cat >conftest.$ac_ext <<_ACEOF
20339
20340 /* confdefs.h. */
20341_ACEOF
20342cat confdefs.h >>conftest.$ac_ext
20343cat >>conftest.$ac_ext <<_ACEOF
20344/* end confdefs.h. */
20345
20346#include <sys/types.h>
20347#include <sys/mman.h>
20348#include <fcntl.h>
20349
20350int
20351main ()
20352{
20353
20354 int fd;
20355 fd = creat ("foo",0777);
20356 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20357 unlink ("foo");
20358 return (fd != (int) MAP_FAILED);
20359 ;
20360 return 0;
20361}
20362_ACEOF
20363rm -f conftest$ac_exeext
20364if { (ac_try="$ac_link"
20365case "(($ac_try" in
20366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367 *) ac_try_echo=$ac_try;;
20368esac
20369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370 (eval "$ac_link") 2>&5
20371 ac_status=$?
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20374 { (case "(($ac_try" in
20375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376 *) ac_try_echo=$ac_try;;
20377esac
20378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379 (eval "$ac_try") 2>&5
20380 ac_status=$?
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); }; }; then
20383 ac_cv_func_mmap_file=yes
20384else
20385 echo "$as_me: program exited with status $ac_status" >&5
20386echo "$as_me: failed program was:" >&5
20387sed 's/^/| /' conftest.$ac_ext >&5
20388
20389( exit $ac_status )
20390ac_cv_func_mmap_file=no
20391fi
20392rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20393fi
20394
20395
20396 ac_ext=c
20397ac_cpp='$CPP $CPPFLAGS'
20398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20400ac_compiler_gnu=$ac_cv_c_compiler_gnu
20401
20402
20403fi
20404{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20405echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20406if test "$ac_cv_func_mmap_file" = yes; then
20407
20408cat >>confdefs.h <<\_ACEOF
20409#define HAVE_MMAP_FILE
20410_ACEOF
20411
20412 MMAP_FILE=yes
20413
20414fi
20415
20416 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20417echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20418if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20419 echo $ECHO_N "(cached) $ECHO_C" >&6
20420else
20421 if test "$llvm_cv_os_type" = "Interix" ; then
20422 ac_cv_need_dev_zero_for_mmap=yes
20423 else
20424 ac_cv_need_dev_zero_for_mmap=no
20425 fi
20426
20427fi
20428{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20429echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20430if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20431
20432cat >>confdefs.h <<\_ACEOF
20433#define NEED_DEV_ZERO_FOR_MMAP 1
20434_ACEOF
20435
20436fi
20437
20438 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20439 then
20440 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20441echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20442 fi
20443 if test "$ac_cv_func_mmap_file" = "no"
20444 then
20445 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20446echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20447 fi
20448fi
20449
20450{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20451echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20452ac_ext=cpp
20453ac_cpp='$CXXCPP $CPPFLAGS'
20454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20457
20458cat >conftest.$ac_ext <<_ACEOF
20459/* confdefs.h. */
20460_ACEOF
20461cat confdefs.h >>conftest.$ac_ext
20462cat >>conftest.$ac_ext <<_ACEOF
20463/* end confdefs.h. */
20464int main() {
20465 volatile unsigned long val = 1;
20466 __sync_synchronize();
20467 __sync_val_compare_and_swap(&val, 1, 0);
20468 __sync_add_and_fetch(&val, 1);
20469 __sync_sub_and_fetch(&val, 1);
20470 return 0;
20471 }
20472
20473_ACEOF
20474rm -f conftest.$ac_objext conftest$ac_exeext
20475if { (ac_try="$ac_link"
20476case "(($ac_try" in
20477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478 *) ac_try_echo=$ac_try;;
20479esac
20480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20481 (eval "$ac_link") 2>conftest.er1
20482 ac_status=$?
20483 grep -v '^ *+' conftest.er1 >conftest.err
20484 rm -f conftest.er1
20485 cat conftest.err >&5
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); } &&
20488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20489 { (case "(($ac_try" in
20490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20491 *) ac_try_echo=$ac_try;;
20492esac
20493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20494 (eval "$ac_try") 2>&5
20495 ac_status=$?
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); }; } &&
20498 { ac_try='test -s conftest$ac_exeext'
20499 { (case "(($ac_try" in
20500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20501 *) ac_try_echo=$ac_try;;
20502esac
20503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20504 (eval "$ac_try") 2>&5
20505 ac_status=$?
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); }; }; then
20508 ac_ext=c
20509ac_cpp='$CPP $CPPFLAGS'
20510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20512ac_compiler_gnu=$ac_cv_c_compiler_gnu
20513
20514 { echo "$as_me:$LINENO: result: yes" >&5
20515echo "${ECHO_T}yes" >&6; }
20516
20517cat >>confdefs.h <<\_ACEOF
20518#define LLVM_HAS_ATOMICS 1
20519_ACEOF
20520
20521else
20522 echo "$as_me: failed program was:" >&5
20523sed 's/^/| /' conftest.$ac_ext >&5
20524
20525 { echo "$as_me:$LINENO: result: no" >&5
20526echo "${ECHO_T}no" >&6; }
20527
20528cat >>confdefs.h <<\_ACEOF
20529#define LLVM_HAS_ATOMICS 0
20530_ACEOF
20531
20532 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20533echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20534fi
20535
20536rm -f core conftest.err conftest.$ac_objext \
20537 conftest$ac_exeext conftest.$ac_ext
20538
20539
20540if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20541 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20542echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20543if test "${llvm_cv_linux_mixed+set}" = set; then
20544 echo $ECHO_N "(cached) $ECHO_C" >&6
20545else
20546 ac_ext=c
20547ac_cpp='$CPP $CPPFLAGS'
20548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20550ac_compiler_gnu=$ac_cv_c_compiler_gnu
20551
20552 cat >conftest.$ac_ext <<_ACEOF
20553/* confdefs.h. */
20554_ACEOF
20555cat confdefs.h >>conftest.$ac_ext
20556cat >>conftest.$ac_ext <<_ACEOF
20557/* end confdefs.h. */
20558#ifndef __x86_64__
20559 error: Not x86-64 even if uname says so!
20560 #endif
20561
20562int
20563main ()
20564{
20565
20566 ;
20567 return 0;
20568}
20569_ACEOF
20570rm -f conftest.$ac_objext
20571if { (ac_try="$ac_compile"
20572case "(($ac_try" in
20573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20574 *) ac_try_echo=$ac_try;;
20575esac
20576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20577 (eval "$ac_compile") 2>conftest.er1
20578 ac_status=$?
20579 grep -v '^ *+' conftest.er1 >conftest.err
20580 rm -f conftest.er1
20581 cat conftest.err >&5
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); } &&
20584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20585 { (case "(($ac_try" in
20586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20587 *) ac_try_echo=$ac_try;;
20588esac
20589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20590 (eval "$ac_try") 2>&5
20591 ac_status=$?
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); }; } &&
20594 { ac_try='test -s conftest.$ac_objext'
20595 { (case "(($ac_try" in
20596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20597 *) ac_try_echo=$ac_try;;
20598esac
20599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20600 (eval "$ac_try") 2>&5
20601 ac_status=$?
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); }; }; then
20604 llvm_cv_linux_mixed=no
20605else
20606 echo "$as_me: failed program was:" >&5
20607sed 's/^/| /' conftest.$ac_ext >&5
20608
20609 llvm_cv_linux_mixed=yes
20610fi
20611
20612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20613 ac_ext=c
20614ac_cpp='$CPP $CPPFLAGS'
20615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20617ac_compiler_gnu=$ac_cv_c_compiler_gnu
20618
20619
20620fi
20621{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20622echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20623
20624 if test "$llvm_cv_linux_mixed" = "yes"; then
20625 llvm_cv_target_arch="x86"
20626 ARCH="x86"
20627 fi
20628fi
20629
20630
20631for ac_func in __dso_handle
20632do
20633as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20634{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20635echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20636if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20637 echo $ECHO_N "(cached) $ECHO_C" >&6
20638else
20639 cat >conftest.$ac_ext <<_ACEOF
20640/* confdefs.h. */
20641_ACEOF
20642cat confdefs.h >>conftest.$ac_ext
20643cat >>conftest.$ac_ext <<_ACEOF
20644/* end confdefs.h. */
20645/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20647#define $ac_func innocuous_$ac_func
20648
20649/* System header to define __stub macros and hopefully few prototypes,
20650 which can conflict with char $ac_func (); below.
20651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20652 <limits.h> exists even on freestanding compilers. */
20653
20654#ifdef __STDC__
20655# include <limits.h>
20656#else
20657# include <assert.h>
20658#endif
20659
20660#undef $ac_func
20661
20662/* Override any GCC internal prototype to avoid an error.
20663 Use char because int might match the return type of a GCC
20664 builtin and then its argument prototype would still apply. */
20665#ifdef __cplusplus
20666extern "C"
20667#endif
20668char $ac_func ();
20669/* The GNU C library defines this for functions which it implements
20670 to always fail with ENOSYS. Some functions are actually named
20671 something starting with __ and the normal name is an alias. */
20672#if defined __stub_$ac_func || defined __stub___$ac_func
20673choke me
20674#endif
20675
20676int
20677main ()
20678{
20679return $ac_func ();
20680 ;
20681 return 0;
20682}
20683_ACEOF
20684rm -f conftest.$ac_objext conftest$ac_exeext
20685if { (ac_try="$ac_link"
20686case "(($ac_try" in
20687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20688 *) ac_try_echo=$ac_try;;
20689esac
20690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20691 (eval "$ac_link") 2>conftest.er1
20692 ac_status=$?
20693 grep -v '^ *+' conftest.er1 >conftest.err
20694 rm -f conftest.er1
20695 cat conftest.err >&5
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); } &&
20698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20699 { (case "(($ac_try" in
20700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20701 *) ac_try_echo=$ac_try;;
20702esac
20703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20704 (eval "$ac_try") 2>&5
20705 ac_status=$?
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); }; } &&
20708 { ac_try='test -s conftest$ac_exeext'
20709 { (case "(($ac_try" in
20710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711 *) ac_try_echo=$ac_try;;
20712esac
20713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714 (eval "$ac_try") 2>&5
20715 ac_status=$?
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); }; }; then
20718 eval "$as_ac_var=yes"
20719else
20720 echo "$as_me: failed program was:" >&5
20721sed 's/^/| /' conftest.$ac_ext >&5
20722
20723 eval "$as_ac_var=no"
20724fi
20725
20726rm -f core conftest.err conftest.$ac_objext \
20727 conftest$ac_exeext conftest.$ac_ext
20728fi
20729ac_res=`eval echo '${'$as_ac_var'}'`
20730 { echo "$as_me:$LINENO: result: $ac_res" >&5
20731echo "${ECHO_T}$ac_res" >&6; }
20732if test `eval echo '${'$as_ac_var'}'` = yes; then
20733 cat >>confdefs.h <<_ACEOF
20734#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20735_ACEOF
20736
20737fi
20738done
20739
20740
20741SHLIBEXT=$libltdl_cv_shlibext
20742
20743
20744SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20745
20746
20747# Translate the various configuration directories and other basic
20748# information into substitutions that will end up in Makefile.config.in
20749# that these configured values can be used by the makefiles
20750if test "${prefix}" = "NONE" ; then
20751 prefix="/usr/local"
20752fi
20753eval LLVM_PREFIX="${prefix}";
20754eval LLVM_BINDIR="${prefix}/bin";
20755eval LLVM_LIBDIR="${prefix}/lib";
20756eval LLVM_DATADIR="${prefix}/share/llvm";
20757eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20758eval LLVM_ETCDIR="${prefix}/etc/llvm";
20759eval LLVM_INCLUDEDIR="${prefix}/include";
20760eval LLVM_INFODIR="${prefix}/info";
20761eval LLVM_MANDIR="${prefix}/man";
20762LLVM_CONFIGTIME=`date`
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774# Place the various directores into the config.h file as #defines so that we
20775# can know about the installation paths within LLVM.
20776
20777cat >>confdefs.h <<_ACEOF
20778#define LLVM_PREFIX "$LLVM_PREFIX"
20779_ACEOF
20780
20781
20782cat >>confdefs.h <<_ACEOF
20783#define LLVM_BINDIR "$LLVM_BINDIR"
20784_ACEOF
20785
20786
20787cat >>confdefs.h <<_ACEOF
20788#define LLVM_LIBDIR "$LLVM_LIBDIR"
20789_ACEOF
20790
20791
20792cat >>confdefs.h <<_ACEOF
20793#define LLVM_DATADIR "$LLVM_DATADIR"
20794_ACEOF
20795
20796
20797cat >>confdefs.h <<_ACEOF
20798#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20799_ACEOF
20800
20801
20802cat >>confdefs.h <<_ACEOF
20803#define LLVM_ETCDIR "$LLVM_ETCDIR"
20804_ACEOF
20805
20806
20807cat >>confdefs.h <<_ACEOF
20808#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20809_ACEOF
20810
20811
20812cat >>confdefs.h <<_ACEOF
20813#define LLVM_INFODIR "$LLVM_INFODIR"
20814_ACEOF
20815
20816
20817cat >>confdefs.h <<_ACEOF
20818#define LLVM_MANDIR "$LLVM_MANDIR"
20819_ACEOF
20820
20821
20822cat >>confdefs.h <<_ACEOF
20823#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20824_ACEOF
20825
20826
20827cat >>confdefs.h <<_ACEOF
20828#define LLVM_HOSTTRIPLE "$host"
20829_ACEOF
20830
20831
20832# Determine which bindings to build.
20833if test "$BINDINGS_TO_BUILD" = auto ; then
20834 BINDINGS_TO_BUILD=""
20835 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20836 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20837 fi
20838fi
20839BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20840
20841
20842# This isn't really configurey, but it avoids having to repeat the list in
20843# other files.
20844ALL_BINDINGS=ocaml
20845
20846
20847# Do any work necessary to ensure that bindings have what they need.
20848binding_prereqs_failed=0
20849for a_binding in $BINDINGS_TO_BUILD ; do
20850 case "$a_binding" in
20851 ocaml)
20852 if test "x$OCAMLC" = x ; then
20853 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20854echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20855 binding_prereqs_failed=1
20856 fi
20857 if test "x$OCAMLDEP" = x ; then
20858 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20859echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20860 binding_prereqs_failed=1
20861 fi
20862 if test "x$OCAMLOPT" = x ; then
20863 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20864echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20865 fi
20866 if test "x$with_ocaml_libdir" != xauto ; then
20867 OCAML_LIBDIR=$with_ocaml_libdir
20868
20869 else
20870 ocaml_stdlib="`"$OCAMLC" -where`"
20871 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20872 then
20873 # ocaml stdlib is beneath our prefix; use stdlib
20874 OCAML_LIBDIR=$ocaml_stdlib
20875
20876 else
20877 # ocaml stdlib is outside our prefix; use libdir/ocaml
20878 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20879
20880 fi
20881 fi
20882 ;;
20883 esac
20884done
20885if test "$binding_prereqs_failed" = 1 ; then
20886 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20887echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20888 { (exit 1); exit 1; }; }
20889fi
20890
20891{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20892echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20893if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20894 echo $ECHO_N "(cached) $ECHO_C" >&6
20895else
20896 ac_ext=cpp
20897ac_cpp='$CXXCPP $CPPFLAGS'
20898ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20899ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20900ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20901
20902 oldcxxflags="$CXXFLAGS"
20903 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20904 cat >conftest.$ac_ext <<_ACEOF
20905/* confdefs.h. */
20906_ACEOF
20907cat confdefs.h >>conftest.$ac_ext
20908cat >>conftest.$ac_ext <<_ACEOF
20909/* end confdefs.h. */
20910
20911int
20912main ()
20913{
20914
20915 ;
20916 return 0;
20917}
20918_ACEOF
20919rm -f conftest.$ac_objext
20920if { (ac_try="$ac_compile"
20921case "(($ac_try" in
20922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20923 *) ac_try_echo=$ac_try;;
20924esac
20925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20926 (eval "$ac_compile") 2>conftest.er1
20927 ac_status=$?
20928 grep -v '^ *+' conftest.er1 >conftest.err
20929 rm -f conftest.er1
20930 cat conftest.err >&5
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); } &&
20933 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20934 { (case "(($ac_try" in
20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20937esac
20938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939 (eval "$ac_try") 2>&5
20940 ac_status=$?
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; } &&
20943 { ac_try='test -s conftest.$ac_objext'
20944 { (case "(($ac_try" in
20945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946 *) ac_try_echo=$ac_try;;
20947esac
20948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20949 (eval "$ac_try") 2>&5
20950 ac_status=$?
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); }; }; then
20953 llvm_cv_cxx_visibility_inlines_hidden=yes
20954else
20955 echo "$as_me: failed program was:" >&5
20956sed 's/^/| /' conftest.$ac_ext >&5
20957
20958 llvm_cv_cxx_visibility_inlines_hidden=no
20959fi
20960
20961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20962 CXXFLAGS="$oldcxxflags"
20963 ac_ext=c
20964ac_cpp='$CPP $CPPFLAGS'
20965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20967ac_compiler_gnu=$ac_cv_c_compiler_gnu
20968
20969
20970fi
20971{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20972echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20973if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20974 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20975
20976else
20977 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20978
20979fi
20980
20981
20982if test "$llvm_cv_link_use_r" = "yes" ; then
20983 RPATH="-Wl,-R"
20984else
20985 RPATH="-Wl,-rpath"
20986fi
20987
20988
20989if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20990 RDYNAMIC="-Wl,-export-dynamic"
20991else
20992 RDYNAMIC=""
20993fi
20994
20995
20996
Reid Spencer421ec052005-02-24 18:53:47 +000020997
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020998ac_config_files="$ac_config_files Makefile.common"
John Criswell451f67f2003-10-16 01:45:35 +000020999
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021000ac_config_files="$ac_config_files Makefile.llvm.config"
21001
John Criswell451f67f2003-10-16 01:45:35 +000021002
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021003ac_config_commands="$ac_config_commands Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000021004
21005
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021006ac_config_commands="$ac_config_commands lib/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000021007
21008
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021009ac_config_commands="$ac_config_commands lib/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000021010
21011
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021012ac_config_commands="$ac_config_commands tools/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000021013
21014
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021015ac_config_commands="$ac_config_commands tools/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000021016
21017
21018
John Criswell451f67f2003-10-16 01:45:35 +000021019cat >confcache <<\_ACEOF
21020# This file is a shell script that caches the results of configure
21021# tests run on this system so they can be shared between configure
21022# scripts and configure runs, see configure's option --config-cache.
21023# It is not useful on other systems. If it contains results you don't
21024# want to keep, you may remove or edit it.
21025#
21026# config.status only pays attention to the cache file if you give it
21027# the --recheck option to rerun configure.
21028#
21029# `ac_cv_env_foo' variables (set or unset) will be overridden when
21030# loading this file, other *unset* `ac_cv_foo' will be assigned the
21031# following values.
21032
21033_ACEOF
21034
21035# The following way of writing the cache mishandles newlines in values,
21036# but we know of no workaround that is simple, portable, and efficient.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021037# So, we kill variables containing newlines.
John Criswell451f67f2003-10-16 01:45:35 +000021038# Ultrix sh set writes to stderr and can't be redirected directly,
21039# and sets the high bit in the cache file unless we assign to the vars.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021040(
21041 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21042 eval ac_val=\$$ac_var
21043 case $ac_val in #(
21044 *${as_nl}*)
21045 case $ac_var in #(
21046 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21047echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21048 esac
21049 case $ac_var in #(
21050 _ | IFS | as_nl) ;; #(
21051 *) $as_unset $ac_var ;;
21052 esac ;;
21053 esac
21054 done
21055
John Criswell451f67f2003-10-16 01:45:35 +000021056 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021057 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21058 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +000021059 # `set' does not quote correctly, so add quotes (double-quote
21060 # substitution turns \\\\ into \\, and sed turns \\ into \).
21061 sed -n \
Reid Spencer9964cd82005-01-01 09:26:55 +000021062 "s/'/'\\\\''/g;
21063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021064 ;; #(
John Criswell451f67f2003-10-16 01:45:35 +000021065 *)
21066 # `set' quotes correctly as required by POSIX, so do not add quotes.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021067 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell451f67f2003-10-16 01:45:35 +000021068 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021069 esac |
21070 sort
21071) |
John Criswell451f67f2003-10-16 01:45:35 +000021072 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021073 /^ac_cv_env_/b end
John Criswell451f67f2003-10-16 01:45:35 +000021074 t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021075 :clear
John Criswell451f67f2003-10-16 01:45:35 +000021076 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21077 t end
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021078 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21079 :end' >>confcache
21080if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21081 if test -w "$cache_file"; then
21082 test "x$cache_file" != "x/dev/null" &&
21083 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21084echo "$as_me: updating cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000021085 cat confcache >$cache_file
21086 else
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021087 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21088echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000021089 fi
21090fi
21091rm -f confcache
21092
21093test "x$prefix" = xNONE && prefix=$ac_default_prefix
21094# Let make expand exec_prefix.
21095test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21096
John Criswell451f67f2003-10-16 01:45:35 +000021097# Transform confdefs.h into DEFS.
21098# Protect against shell expansion while executing Makefile rules.
21099# Protect against Makefile macro expansion.
21100#
21101# If the first sed substitution is executed (which looks for macros that
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021102# take arguments), then branch to the quote section. Otherwise,
John Criswell451f67f2003-10-16 01:45:35 +000021103# look for a macro that doesn't take arguments.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021104ac_script='
John Criswell451f67f2003-10-16 01:45:35 +000021105t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021106:clear
21107s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000021108t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021109s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000021110t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021111b any
21112:quote
21113s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21114s/\[/\\&/g
21115s/\]/\\&/g
21116s/\$/$$/g
21117H
21118:any
21119${
21120 g
21121 s/^\n//
21122 s/\n/ /g
21123 p
21124}
21125'
21126DEFS=`sed -n "$ac_script" confdefs.h`
John Criswell451f67f2003-10-16 01:45:35 +000021127
21128
21129ac_libobjs=
21130ac_ltlibobjs=
21131for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21132 # 1. Remove the extension, and $U if already installed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021133 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21134 ac_i=`echo "$ac_i" | sed "$ac_script"`
21135 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21136 # will be set to the directory where LIBOBJS objects are built.
21137 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21138 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell451f67f2003-10-16 01:45:35 +000021139done
21140LIBOBJS=$ac_libobjs
21141
21142LTLIBOBJS=$ac_ltlibobjs
21143
21144
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021145if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21146 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21147Usually this means the macro was only invoked conditionally." >&5
21148echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21149Usually this means the macro was only invoked conditionally." >&2;}
21150 { (exit 1); exit 1; }; }
21151fi
21152if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21153 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21154Usually this means the macro was only invoked conditionally." >&5
21155echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21156Usually this means the macro was only invoked conditionally." >&2;}
21157 { (exit 1); exit 1; }; }
21158fi
John Criswell451f67f2003-10-16 01:45:35 +000021159
21160: ${CONFIG_STATUS=./config.status}
21161ac_clean_files_save=$ac_clean_files
21162ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21163{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21164echo "$as_me: creating $CONFIG_STATUS" >&6;}
21165cat >$CONFIG_STATUS <<_ACEOF
21166#! $SHELL
21167# Generated by $as_me.
21168# Run this file to recreate the current configuration.
21169# Compiler output produced by configure, useful for debugging
21170# configure, is in config.log if it exists.
21171
21172debug=false
21173ac_cs_recheck=false
21174ac_cs_silent=false
21175SHELL=\${CONFIG_SHELL-$SHELL}
21176_ACEOF
21177
21178cat >>$CONFIG_STATUS <<\_ACEOF
21179## --------------------- ##
21180## M4sh Initialization. ##
21181## --------------------- ##
21182
Dan Gohman324f6082009-03-25 00:52:11 +000021183# Be Bourne compatible
John Criswell451f67f2003-10-16 01:45:35 +000021184if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21185 emulate sh
21186 NULLCMD=:
21187 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21188 # is contrary to our usage. Disable this feature.
21189 alias -g '${1+"$@"}'='"$@"'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021190 setopt NO_GLOB_SUBST
21191else
21192 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohman324f6082009-03-25 00:52:11 +000021193fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021194BIN_SH=xpg4; export BIN_SH # for Tru64
Dan Gohman324f6082009-03-25 00:52:11 +000021195DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmand02a2812009-03-24 23:47:11 +000021196
John Criswell451f67f2003-10-16 01:45:35 +000021197
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021198# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +000021199# Avoid depending upon Character Ranges.
21200as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21201as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21202as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21203as_cr_digits='0123456789'
21204as_cr_alnum=$as_cr_Letters$as_cr_digits
21205
21206# The user is always right.
21207if test "${PATH_SEPARATOR+set}" != set; then
21208 echo "#! /bin/sh" >conf$$.sh
21209 echo "exit 0" >>conf$$.sh
21210 chmod +x conf$$.sh
21211 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21212 PATH_SEPARATOR=';'
21213 else
21214 PATH_SEPARATOR=:
21215 fi
21216 rm -f conf$$.sh
21217fi
21218
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021219# Support unset when possible.
21220if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21221 as_unset=unset
21222else
21223 as_unset=false
21224fi
John Criswell451f67f2003-10-16 01:45:35 +000021225
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021226
21227# IFS
21228# We need space, tab and new line, in precisely that order. Quoting is
21229# there to prevent editors from complaining about space-tab.
21230# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21231# splitting by setting IFS to empty value.)
21232as_nl='
21233'
21234IFS=" "" $as_nl"
21235
21236# Find who we are. Look in the path if we contain no directory separator.
21237case $0 in
21238 *[\\/]* ) as_myself=$0 ;;
21239 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +000021240for as_dir in $PATH
21241do
21242 IFS=$as_save_IFS
21243 test -z "$as_dir" && as_dir=.
21244 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21245done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021246IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +000021247
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021248 ;;
21249esac
21250# We did not find ourselves, most probably we were run as `sh COMMAND'
21251# in which case we are not to be found in the path.
21252if test "x$as_myself" = x; then
21253 as_myself=$0
21254fi
21255if test ! -f "$as_myself"; then
21256 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21257 { (exit 1); exit 1; }
21258fi
21259
21260# Work around bugs in pre-3.0 UWIN ksh.
21261for as_var in ENV MAIL MAILPATH
21262do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21263done
21264PS1='$ '
21265PS2='> '
21266PS4='+ '
21267
21268# NLS nuisances.
21269for as_var in \
21270 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21271 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21272 LC_TELEPHONE LC_TIME
Dan Gohman324f6082009-03-25 00:52:11 +000021273do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021274 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21275 eval $as_var=C; export $as_var
21276 else
21277 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21278 fi
21279done
21280
21281# Required to use basename.
21282if expr a : '\(a\)' >/dev/null 2>&1 &&
21283 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21284 as_expr=expr
21285else
21286 as_expr=false
21287fi
21288
21289if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21290 as_basename=basename
21291else
21292 as_basename=false
21293fi
21294
21295
21296# Name of the executable.
21297as_me=`$as_basename -- "$0" ||
21298$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21299 X"$0" : 'X\(//\)$' \| \
21300 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21301echo X/"$0" |
21302 sed '/^.*\/\([^/][^/]*\)\/*$/{
21303 s//\1/
21304 q
21305 }
21306 /^X\/\(\/\/\)$/{
21307 s//\1/
21308 q
21309 }
21310 /^X\/\(\/\).*/{
21311 s//\1/
21312 q
21313 }
21314 s/.*/./; q'`
21315
21316# CDPATH.
21317$as_unset CDPATH
21318
21319
21320
John Criswell451f67f2003-10-16 01:45:35 +000021321 as_lineno_1=$LINENO
21322 as_lineno_2=$LINENO
John Criswell451f67f2003-10-16 01:45:35 +000021323 test "x$as_lineno_1" != "x$as_lineno_2" &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021324 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +000021325
21326 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21327 # uniformly replaced by the line number. The first 'sed' inserts a
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021328 # line-number line after each line using $LINENO; the second 'sed'
21329 # does the real work. The second script uses 'N' to pair each
21330 # line-number line with the line containing $LINENO, and appends
21331 # trailing '-' during substitution so that $LINENO is not a special
21332 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +000021333 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021334 # scripts with optimization help from Paolo Bonzini. Blame Lee
21335 # E. McMahon (1931-1989) for sed's syntax. :-)
21336 sed -n '
21337 p
21338 /[$]LINENO/=
21339 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +000021340 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021341 s/[$]LINENO.*/&-/
21342 t lineno
21343 b
21344 :lineno
John Criswell451f67f2003-10-16 01:45:35 +000021345 N
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021346 :loop
21347 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +000021348 t loop
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021349 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +000021350 ' >$as_me.lineno &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021351 chmod +x "$as_me.lineno" ||
21352 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell451f67f2003-10-16 01:45:35 +000021353 { (exit 1); exit 1; }; }
21354
21355 # Don't try to exec as it changes $[0], causing all sort of problems
21356 # (the dirname of $[0] is not the place where we might find the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021357 # original and so on. Autoconf is especially sensitive to this).
21358 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +000021359 # Exit status is that of the last command.
21360 exit
21361}
21362
21363
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021364if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21365 as_dirname=dirname
21366else
21367 as_dirname=false
21368fi
21369
21370ECHO_C= ECHO_N= ECHO_T=
21371case `echo -n x` in
21372-n*)
21373 case `echo 'x\c'` in
21374 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21375 *) ECHO_C='\c';;
21376 esac;;
21377*)
21378 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +000021379esac
21380
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021381if expr a : '\(a\)' >/dev/null 2>&1 &&
21382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +000021383 as_expr=expr
21384else
21385 as_expr=false
21386fi
21387
21388rm -f conf$$ conf$$.exe conf$$.file
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021389if test -d conf$$.dir; then
21390 rm -f conf$$.dir/conf$$.file
21391else
21392 rm -f conf$$.dir
21393 mkdir conf$$.dir
21394fi
John Criswell451f67f2003-10-16 01:45:35 +000021395echo >conf$$.file
21396if ln -s conf$$.file conf$$ 2>/dev/null; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021397 as_ln_s='ln -s'
21398 # ... but there are two gotchas:
21399 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21400 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21401 # In both cases, we have to default to `cp -p'.
21402 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +000021403 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +000021404elif ln conf$$.file conf$$ 2>/dev/null; then
21405 as_ln_s=ln
21406else
21407 as_ln_s='cp -p'
21408fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021409rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21410rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +000021411
21412if mkdir -p . 2>/dev/null; then
21413 as_mkdir_p=:
21414else
Reid Spencer9964cd82005-01-01 09:26:55 +000021415 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +000021416 as_mkdir_p=false
21417fi
21418
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021419# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21420# systems may use methods other than mode bits to determine executability.
21421cat >conf$$.file <<_ASEOF
21422#! /bin/sh
21423exit 0
21424_ASEOF
21425chmod +x conf$$.file
21426if test -x conf$$.file >/dev/null 2>&1; then
21427 as_executable_p="test -x"
21428else
21429 as_executable_p=:
21430fi
21431rm -f conf$$.file
John Criswell451f67f2003-10-16 01:45:35 +000021432
21433# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021434as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021435
21436# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021437as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021438
21439
John Criswell451f67f2003-10-16 01:45:35 +000021440exec 6>&1
21441
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021442# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell451f67f2003-10-16 01:45:35 +000021443# report actual input values of CONFIG_FILES etc. instead of their
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021444# values after options handling.
21445ac_log="
John Criswell451f67f2003-10-16 01:45:35 +000021446This file was extended by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021447generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +000021448
21449 CONFIG_FILES = $CONFIG_FILES
21450 CONFIG_HEADERS = $CONFIG_HEADERS
21451 CONFIG_LINKS = $CONFIG_LINKS
21452 CONFIG_COMMANDS = $CONFIG_COMMANDS
21453 $ $0 $@
21454
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021455on `(hostname || uname -n) 2>/dev/null | sed 1q`
21456"
21457
John Criswell451f67f2003-10-16 01:45:35 +000021458_ACEOF
21459
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021460cat >>$CONFIG_STATUS <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021461# Files that config.status was made for.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021462config_files="$ac_config_files"
21463config_commands="$ac_config_commands"
John Criswell451f67f2003-10-16 01:45:35 +000021464
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021465_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021466
21467cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021468ac_cs_usage="\
21469\`$as_me' instantiates files from templates according to the
21470current configuration.
21471
21472Usage: $0 [OPTIONS] [FILE]...
21473
21474 -h, --help print this help, then exit
Dan Gohman324f6082009-03-25 00:52:11 +000021475 -V, --version print version number, then exit
John Criswell451f67f2003-10-16 01:45:35 +000021476 -q, --quiet do not print progress messages
21477 -d, --debug don't remove temporary files
21478 --recheck update $as_me by reconfiguring in the same conditions
21479 --file=FILE[:TEMPLATE]
Reid Spencer9964cd82005-01-01 09:26:55 +000021480 instantiate the configuration file FILE
John Criswell451f67f2003-10-16 01:45:35 +000021481
21482Configuration files:
21483$config_files
21484
21485Configuration commands:
21486$config_commands
21487
21488Report bugs to <bug-autoconf@gnu.org>."
Dan Gohman324f6082009-03-25 00:52:11 +000021489
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021490_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021491cat >>$CONFIG_STATUS <<_ACEOF
21492ac_cs_version="\\
21493[SAMPLE] config.status [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021494configured by $0, generated by GNU Autoconf 2.60,
21495 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell451f67f2003-10-16 01:45:35 +000021496
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021497Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +000021498This config.status script is free software; the Free Software Foundation
21499gives unlimited permission to copy, distribute and modify it."
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021500
21501ac_pwd='$ac_pwd'
21502srcdir='$srcdir'
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021503INSTALL='$INSTALL'
John Criswell451f67f2003-10-16 01:45:35 +000021504_ACEOF
21505
21506cat >>$CONFIG_STATUS <<\_ACEOF
21507# If no file are specified by the user, then we need to provide default
21508# value. By we need to know if files were specified by the user.
21509ac_need_defaults=:
21510while test $# != 0
21511do
21512 case $1 in
21513 --*=*)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021514 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21515 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell451f67f2003-10-16 01:45:35 +000021516 ac_shift=:
21517 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021518 *)
John Criswell451f67f2003-10-16 01:45:35 +000021519 ac_option=$1
21520 ac_optarg=$2
21521 ac_shift=shift
21522 ;;
John Criswell451f67f2003-10-16 01:45:35 +000021523 esac
21524
21525 case $ac_option in
21526 # Handling of the options.
John Criswell451f67f2003-10-16 01:45:35 +000021527 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21528 ac_cs_recheck=: ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021529 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21530 echo "$ac_cs_version"; exit ;;
21531 --debug | --debu | --deb | --de | --d | -d )
John Criswell451f67f2003-10-16 01:45:35 +000021532 debug=: ;;
21533 --file | --fil | --fi | --f )
21534 $ac_shift
21535 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21536 ac_need_defaults=false;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021537 --he | --h | --help | --hel | -h )
21538 echo "$ac_cs_usage"; exit ;;
John Criswell451f67f2003-10-16 01:45:35 +000021539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21540 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21541 ac_cs_silent=: ;;
21542
21543 # This is an error.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021544 -*) { echo "$as_me: error: unrecognized option: $1
21545Try \`$0 --help' for more information." >&2
John Criswell451f67f2003-10-16 01:45:35 +000021546 { (exit 1); exit 1; }; } ;;
21547
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021548 *) ac_config_targets="$ac_config_targets $1"
21549 ac_need_defaults=false ;;
John Criswell451f67f2003-10-16 01:45:35 +000021550
21551 esac
21552 shift
21553done
21554
21555ac_configure_extra_args=
21556
21557if $ac_cs_silent; then
21558 exec 6>/dev/null
21559 ac_configure_extra_args="$ac_configure_extra_args --silent"
21560fi
21561
21562_ACEOF
21563cat >>$CONFIG_STATUS <<_ACEOF
21564if \$ac_cs_recheck; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021565 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21566 CONFIG_SHELL=$SHELL
21567 export CONFIG_SHELL
21568 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell451f67f2003-10-16 01:45:35 +000021569fi
21570
21571_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021572cat >>$CONFIG_STATUS <<\_ACEOF
21573exec 5>>config.log
21574{
21575 echo
21576 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21577## Running $as_me. ##
21578_ASBOX
21579 echo "$ac_log"
21580} >&5
John Criswell451f67f2003-10-16 01:45:35 +000021581
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021582_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021583cat >>$CONFIG_STATUS <<_ACEOF
21584#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021585# INIT-COMMANDS
John Criswell451f67f2003-10-16 01:45:35 +000021586#
Reid Spencer421ec052005-02-24 18:53:47 +000021587llvm_src="${LLVM_SRC}"
John Criswell451f67f2003-10-16 01:45:35 +000021588
21589_ACEOF
21590
Dan Gohman324f6082009-03-25 00:52:11 +000021591cat >>$CONFIG_STATUS <<\_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021592
21593# Handling of arguments.
John Criswell451f67f2003-10-16 01:45:35 +000021594for ac_config_target in $ac_config_targets
21595do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021596 case $ac_config_target in
21597 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21598 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021599 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021600 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21601 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21602 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21603 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21604 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21605
John Criswell451f67f2003-10-16 01:45:35 +000021606 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21607echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21608 { (exit 1); exit 1; }; };;
21609 esac
21610done
21611
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021612
John Criswell451f67f2003-10-16 01:45:35 +000021613# If the user did not use the arguments to specify the items to instantiate,
21614# then the envvar interface is used. Set only those that are not.
21615# We use the long form for the default assignment because of an extremely
21616# bizarre bug on SunOS 4.1.3.
21617if $ac_need_defaults; then
21618 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21619 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21620fi
21621
21622# Have a temporary directory for convenience. Make it in the build tree
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021623# simply because there is no reason against having it here, and in addition,
John Criswell451f67f2003-10-16 01:45:35 +000021624# creating and moving files from /tmp can sometimes cause problems.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021625# Hook for its removal unless debugging.
21626# Note that there is a small window in which the directory will not be cleaned:
21627# after its creation but before its name has been assigned to `$tmp'.
John Criswell451f67f2003-10-16 01:45:35 +000021628$debug ||
21629{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021630 tmp=
21631 trap 'exit_status=$?
21632 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21633' 0
John Criswell451f67f2003-10-16 01:45:35 +000021634 trap '{ (exit 1); exit 1; }' 1 2 13 15
21635}
John Criswell451f67f2003-10-16 01:45:35 +000021636# Create a (secure) tmp directory for tmp files.
21637
21638{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021639 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell451f67f2003-10-16 01:45:35 +000021640 test -n "$tmp" && test -d "$tmp"
21641} ||
21642{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021643 tmp=./conf$$-$RANDOM
21644 (umask 077 && mkdir "$tmp")
John Criswell451f67f2003-10-16 01:45:35 +000021645} ||
21646{
21647 echo "$me: cannot create a temporary directory in ." >&2
21648 { (exit 1); exit 1; }
21649}
21650
John Criswell451f67f2003-10-16 01:45:35 +000021651#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021652# Set up the sed scripts for CONFIG_FILES section.
John Criswell451f67f2003-10-16 01:45:35 +000021653#
21654
21655# No need to generate the scripts if there are no CONFIG_FILES.
21656# This happens for instance when ./config.status config.h
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021657if test -n "$CONFIG_FILES"; then
John Criswell451f67f2003-10-16 01:45:35 +000021658
21659_ACEOF
21660
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021661
21662
21663ac_delim='%!_!# '
21664for ac_last_try in false false false false false :; do
21665 cat >conf$$subs.sed <<_ACEOF
21666SHELL!$SHELL$ac_delim
21667PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21668PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21669PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21670PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21671PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21672PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21673exec_prefix!$exec_prefix$ac_delim
21674prefix!$prefix$ac_delim
21675program_transform_name!$program_transform_name$ac_delim
21676bindir!$bindir$ac_delim
21677sbindir!$sbindir$ac_delim
21678libexecdir!$libexecdir$ac_delim
21679datarootdir!$datarootdir$ac_delim
21680datadir!$datadir$ac_delim
21681sysconfdir!$sysconfdir$ac_delim
21682sharedstatedir!$sharedstatedir$ac_delim
21683localstatedir!$localstatedir$ac_delim
21684includedir!$includedir$ac_delim
21685oldincludedir!$oldincludedir$ac_delim
21686docdir!$docdir$ac_delim
21687infodir!$infodir$ac_delim
21688htmldir!$htmldir$ac_delim
21689dvidir!$dvidir$ac_delim
21690pdfdir!$pdfdir$ac_delim
21691psdir!$psdir$ac_delim
21692libdir!$libdir$ac_delim
21693localedir!$localedir$ac_delim
21694mandir!$mandir$ac_delim
21695DEFS!$DEFS$ac_delim
21696ECHO_C!$ECHO_C$ac_delim
21697ECHO_N!$ECHO_N$ac_delim
21698ECHO_T!$ECHO_T$ac_delim
21699LIBS!$LIBS$ac_delim
21700build_alias!$build_alias$ac_delim
21701host_alias!$host_alias$ac_delim
21702target_alias!$target_alias$ac_delim
21703LLVM_SRC!$LLVM_SRC$ac_delim
21704LLVM_OBJ!$LLVM_OBJ$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021705LLVM_VERSION!$LLVM_VERSION$ac_delim
21706CC!$CC$ac_delim
21707CFLAGS!$CFLAGS$ac_delim
21708LDFLAGS!$LDFLAGS$ac_delim
21709CPPFLAGS!$CPPFLAGS$ac_delim
21710ac_ct_CC!$ac_ct_CC$ac_delim
21711EXEEXT!$EXEEXT$ac_delim
21712OBJEXT!$OBJEXT$ac_delim
21713CXX!$CXX$ac_delim
21714CXXFLAGS!$CXXFLAGS$ac_delim
21715ac_ct_CXX!$ac_ct_CXX$ac_delim
21716CPP!$CPP$ac_delim
21717ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21718LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21719subdirs!$subdirs$ac_delim
21720build!$build$ac_delim
21721build_cpu!$build_cpu$ac_delim
21722build_vendor!$build_vendor$ac_delim
21723build_os!$build_os$ac_delim
21724host!$host$ac_delim
21725host_cpu!$host_cpu$ac_delim
21726host_vendor!$host_vendor$ac_delim
21727host_os!$host_os$ac_delim
21728target!$target$ac_delim
21729target_cpu!$target_cpu$ac_delim
21730target_vendor!$target_vendor$ac_delim
21731target_os!$target_os$ac_delim
21732OS!$OS$ac_delim
21733HOST_OS!$HOST_OS$ac_delim
21734TARGET_OS!$TARGET_OS$ac_delim
21735LINKALL!$LINKALL$ac_delim
21736NOLINKALL!$NOLINKALL$ac_delim
21737LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21738LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21739ARCH!$ARCH$ac_delim
21740ENDIAN!$ENDIAN$ac_delim
21741GREP!$GREP$ac_delim
21742EGREP!$EGREP$ac_delim
21743LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21744BUILD_CC!$BUILD_CC$ac_delim
21745BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21746BUILD_CXX!$BUILD_CXX$ac_delim
21747CVSBUILD!$CVSBUILD$ac_delim
21748ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21749ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21750DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21751ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21752EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21753DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21754DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21755JIT!$JIT$ac_delim
21756TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21757ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21758ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21759ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21760ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21761ENABLE_PIC!$ENABLE_PIC$ac_delim
21762ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021763_ACEOF
21764
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021765 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021766 break
21767 elif $ac_last_try; then
21768 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21769echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21770 { (exit 1); exit 1; }; }
21771 else
21772 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell451f67f2003-10-16 01:45:35 +000021773 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021774done
21775
21776ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21777if test -n "$ac_eof"; then
21778 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21779 ac_eof=`expr $ac_eof + 1`
21780fi
21781
21782cat >>$CONFIG_STATUS <<_ACEOF
21783cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021784/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21785_ACEOF
21786sed '
21787s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21788s/^/s,@/; s/!/@,|#_!!_#|/
21789:n
21790t n
21791s/'"$ac_delim"'$/,g/; t
21792s/$/\\/; p
21793N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21794' >>$CONFIG_STATUS <conf$$subs.sed
21795rm -f conf$$subs.sed
21796cat >>$CONFIG_STATUS <<_ACEOF
21797CEOF$ac_eof
21798_ACEOF
21799
21800
21801ac_delim='%!_!# '
21802for ac_last_try in false false false false false :; do
21803 cat >conf$$subs.sed <<_ACEOF
21804ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21805ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21806TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21807LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21808LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21809LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21810LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21811ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21812OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21813EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21814EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21815BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21816NM!$NM$ac_delim
21817ifGNUmake!$ifGNUmake$ac_delim
21818LN_S!$LN_S$ac_delim
21819CMP!$CMP$ac_delim
21820CP!$CP$ac_delim
21821DATE!$DATE$ac_delim
21822FIND!$FIND$ac_delim
21823MKDIR!$MKDIR$ac_delim
21824MV!$MV$ac_delim
21825RANLIB!$RANLIB$ac_delim
21826AR!$AR$ac_delim
21827RM!$RM$ac_delim
21828SED!$SED$ac_delim
21829TAR!$TAR$ac_delim
21830BINPWD!$BINPWD$ac_delim
21831GRAPHVIZ!$GRAPHVIZ$ac_delim
21832DOT!$DOT$ac_delim
21833FDP!$FDP$ac_delim
21834NEATO!$NEATO$ac_delim
21835TWOPI!$TWOPI$ac_delim
21836CIRCO!$CIRCO$ac_delim
21837GV!$GV$ac_delim
21838DOTTY!$DOTTY$ac_delim
21839XDOT_PY!$XDOT_PY$ac_delim
21840PERL!$PERL$ac_delim
21841HAVE_PERL!$HAVE_PERL$ac_delim
21842INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21843INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21844INSTALL_DATA!$INSTALL_DATA$ac_delim
21845BZIP2!$BZIP2$ac_delim
21846CAT!$CAT$ac_delim
21847DOXYGEN!$DOXYGEN$ac_delim
21848GROFF!$GROFF$ac_delim
21849GZIPBIN!$GZIPBIN$ac_delim
21850POD2HTML!$POD2HTML$ac_delim
21851POD2MAN!$POD2MAN$ac_delim
21852PDFROFF!$PDFROFF$ac_delim
21853RUNTEST!$RUNTEST$ac_delim
21854TCLSH!$TCLSH$ac_delim
21855ZIP!$ZIP$ac_delim
21856OCAMLC!$OCAMLC$ac_delim
21857OCAMLOPT!$OCAMLOPT$ac_delim
21858OCAMLDEP!$OCAMLDEP$ac_delim
21859OCAMLDOC!$OCAMLDOC$ac_delim
21860GAS!$GAS$ac_delim
21861HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21862INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21863INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21864CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21865CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21866LIBADD_DL!$LIBADD_DL$ac_delim
21867NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21868NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21869USE_UDIS86!$USE_UDIS86$ac_delim
21870USE_OPROFILE!$USE_OPROFILE$ac_delim
21871HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21872HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21873MMAP_FILE!$MMAP_FILE$ac_delim
21874SHLIBEXT!$SHLIBEXT$ac_delim
21875SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21876LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21877LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21878LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21879LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21880LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21881LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21882LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21883LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21884LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21885LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21886BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21887ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21888OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21889ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21890RPATH!$RPATH$ac_delim
21891RDYNAMIC!$RDYNAMIC$ac_delim
21892LIBOBJS!$LIBOBJS$ac_delim
21893LTLIBOBJS!$LTLIBOBJS$ac_delim
21894_ACEOF
21895
21896 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
21897 break
21898 elif $ac_last_try; then
21899 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21900echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21901 { (exit 1); exit 1; }; }
21902 else
21903 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21904 fi
21905done
21906
21907ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21908if test -n "$ac_eof"; then
21909 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21910 ac_eof=`expr $ac_eof + 1`
21911fi
21912
21913cat >>$CONFIG_STATUS <<_ACEOF
21914cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021915/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21916_ACEOF
21917sed '
21918s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21919s/^/s,@/; s/!/@,|#_!!_#|/
21920:n
21921t n
21922s/'"$ac_delim"'$/,g/; t
21923s/$/\\/; p
21924N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21925' >>$CONFIG_STATUS <conf$$subs.sed
21926rm -f conf$$subs.sed
21927cat >>$CONFIG_STATUS <<_ACEOF
21928:end
21929s/|#_!!_#|//g
21930CEOF$ac_eof
21931_ACEOF
21932
21933
21934# VPATH may cause trouble with some makes, so we remove $(srcdir),
21935# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21936# trailing colons and then remove the whole line if VPATH becomes empty
21937# (actually we leave an empty line to preserve line numbers).
21938if test "x$srcdir" = x.; then
21939 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21940s/:*\$(srcdir):*/:/
21941s/:*\${srcdir}:*/:/
21942s/:*@srcdir@:*/:/
21943s/^\([^=]*=[ ]*\):*/\1/
21944s/:*$//
21945s/^[^=]*=[ ]*$//
21946}'
21947fi
21948
21949cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021950fi # test -n "$CONFIG_FILES"
21951
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021952
21953for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21954do
21955 case $ac_tag in
21956 :[FHLC]) ac_mode=$ac_tag; continue;;
21957 esac
21958 case $ac_mode$ac_tag in
21959 :[FHL]*:*);;
21960 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21961echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21962 { (exit 1); exit 1; }; };;
21963 :[FH]-) ac_tag=-:-;;
21964 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21965 esac
21966 ac_save_IFS=$IFS
21967 IFS=:
21968 set x $ac_tag
21969 IFS=$ac_save_IFS
21970 shift
21971 ac_file=$1
21972 shift
21973
21974 case $ac_mode in
21975 :L) ac_source=$1;;
21976 :[FH])
21977 ac_file_inputs=
21978 for ac_f
21979 do
21980 case $ac_f in
21981 -) ac_f="$tmp/stdin";;
21982 *) # Look for the file first in the build tree, then in the source tree
21983 # (if the path is not absolute). The absolute path cannot be DOS-style,
21984 # because $ac_f cannot contain `:'.
21985 test -f "$ac_f" ||
21986 case $ac_f in
21987 [\\/$]*) false;;
21988 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21989 esac ||
21990 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21991echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21992 { (exit 1); exit 1; }; };;
21993 esac
21994 ac_file_inputs="$ac_file_inputs $ac_f"
21995 done
21996
21997 # Let's still pretend it is `configure' which instantiates (i.e., don't
21998 # use $as_me), people would be surprised to read:
21999 # /* config.h. Generated by config.status. */
22000 configure_input="Generated from "`IFS=:
22001 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22002 if test x"$ac_file" != x-; then
22003 configure_input="$ac_file. $configure_input"
22004 { echo "$as_me:$LINENO: creating $ac_file" >&5
22005echo "$as_me: creating $ac_file" >&6;}
22006 fi
22007
22008 case $ac_tag in
22009 *:-:* | *:-) cat >"$tmp/stdin";;
22010 esac
22011 ;;
John Criswell451f67f2003-10-16 01:45:35 +000022012 esac
22013
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022014 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell451f67f2003-10-16 01:45:35 +000022015$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000022016 X"$ac_file" : 'X\(//\)[^/]' \| \
22017 X"$ac_file" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022018 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000022019echo X"$ac_file" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22021 s//\1/
22022 q
22023 }
22024 /^X\(\/\/\)[^/].*/{
22025 s//\1/
22026 q
22027 }
22028 /^X\(\/\/\)$/{
22029 s//\1/
22030 q
22031 }
22032 /^X\(\/\).*/{
22033 s//\1/
22034 q
22035 }
22036 s/.*/./; q'`
22037 { as_dir="$ac_dir"
22038 case $as_dir in #(
22039 -*) as_dir=./$as_dir;;
22040 esac
22041 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell451f67f2003-10-16 01:45:35 +000022042 as_dirs=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022043 while :; do
22044 case $as_dir in #(
22045 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22046 *) as_qdir=$as_dir;;
22047 esac
22048 as_dirs="'$as_qdir' $as_dirs"
22049 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell451f67f2003-10-16 01:45:35 +000022050$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000022051 X"$as_dir" : 'X\(//\)[^/]' \| \
22052 X"$as_dir" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022053 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000022054echo X"$as_dir" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22056 s//\1/
22057 q
22058 }
22059 /^X\(\/\/\)[^/].*/{
22060 s//\1/
22061 q
22062 }
22063 /^X\(\/\/\)$/{
22064 s//\1/
22065 q
22066 }
22067 /^X\(\/\).*/{
22068 s//\1/
22069 q
22070 }
22071 s/.*/./; q'`
22072 test -d "$as_dir" && break
John Criswell451f67f2003-10-16 01:45:35 +000022073 done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022074 test -z "$as_dirs" || eval "mkdir $as_dirs"
22075 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22076echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000022077 { (exit 1); exit 1; }; }; }
John Criswell451f67f2003-10-16 01:45:35 +000022078 ac_builddir=.
22079
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022080case "$ac_dir" in
22081.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22082*)
John Criswell451f67f2003-10-16 01:45:35 +000022083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022084 # A ".." for each directory in $ac_dir_suffix.
22085 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22086 case $ac_top_builddir_sub in
22087 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22088 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22089 esac ;;
22090esac
22091ac_abs_top_builddir=$ac_pwd
22092ac_abs_builddir=$ac_pwd$ac_dir_suffix
22093# for backward compatibility:
22094ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +000022095
22096case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022097 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +000022098 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022099 ac_top_srcdir=$ac_top_builddir_sub
22100 ac_abs_top_srcdir=$ac_pwd ;;
22101 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +000022102 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022103 ac_top_srcdir=$srcdir
22104 ac_abs_top_srcdir=$srcdir ;;
22105 *) # Relative name.
22106 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22107 ac_top_srcdir=$ac_top_build_prefix$srcdir
22108 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +000022109esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022110ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Dan Gohmand02a2812009-03-24 23:47:11 +000022111
Dan Gohman324f6082009-03-25 00:52:11 +000022112
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022113 case $ac_mode in
22114 :F)
22115 #
22116 # CONFIG_FILE
22117 #
Dan Gohman324f6082009-03-25 00:52:11 +000022118
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022119 case $INSTALL in
22120 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22121 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22122 esac
Dan Gohman324f6082009-03-25 00:52:11 +000022123_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022124
22125cat >>$CONFIG_STATUS <<\_ACEOF
22126# If the template does not know about datarootdir, expand it.
22127# FIXME: This hack should be removed a few years after 2.60.
22128ac_datarootdir_hack=; ac_datarootdir_seen=
22129
22130case `sed -n '/datarootdir/ {
22131 p
22132 q
22133}
22134/@datadir@/p
22135/@docdir@/p
22136/@infodir@/p
22137/@localedir@/p
22138/@mandir@/p
22139' $ac_file_inputs` in
22140*datarootdir*) ac_datarootdir_seen=yes;;
22141*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22142 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22143echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22144_ACEOF
22145cat >>$CONFIG_STATUS <<_ACEOF
22146 ac_datarootdir_hack='
22147 s&@datadir@&$datadir&g
22148 s&@docdir@&$docdir&g
22149 s&@infodir@&$infodir&g
22150 s&@localedir@&$localedir&g
22151 s&@mandir@&$mandir&g
22152 s&\\\${datarootdir}&$datarootdir&g' ;;
22153esac
22154_ACEOF
22155
22156# Neutralize VPATH when `$srcdir' = `.'.
22157# Shell code in configure.ac might set extrasub.
22158# FIXME: do we really want to maintain this feature?
John Criswell451f67f2003-10-16 01:45:35 +000022159cat >>$CONFIG_STATUS <<_ACEOF
22160 sed "$ac_vpsub
22161$extrasub
22162_ACEOF
22163cat >>$CONFIG_STATUS <<\_ACEOF
22164:t
22165/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022166s&@configure_input@&$configure_input&;t t
22167s&@top_builddir@&$ac_top_builddir_sub&;t t
22168s&@srcdir@&$ac_srcdir&;t t
22169s&@abs_srcdir@&$ac_abs_srcdir&;t t
22170s&@top_srcdir@&$ac_top_srcdir&;t t
22171s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22172s&@builddir@&$ac_builddir&;t t
22173s&@abs_builddir@&$ac_abs_builddir&;t t
22174s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022175s&@INSTALL@&$ac_INSTALL&;t t
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022176$ac_datarootdir_hack
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022177" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell451f67f2003-10-16 01:45:35 +000022178
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022179test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22180 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22181 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22182 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22183which seems to be undefined. Please make sure it is defined." >&5
22184echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22185which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000022186
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022187 rm -f "$tmp/stdin"
22188 case $ac_file in
22189 -) cat "$tmp/out"; rm -f "$tmp/out";;
22190 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022191 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022192 ;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022193
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022194
22195 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22196echo "$as_me: executing $ac_file commands" >&6;}
22197 ;;
22198 esac
22199
22200
22201 case $ac_file$ac_mode in
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022202 "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22203 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22204 "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22205 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22206 "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22207 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22208 "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22209 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22210 "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22211 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022212
22213 esac
22214done # for ac_tag
22215
John Criswell451f67f2003-10-16 01:45:35 +000022216
22217{ (exit 0); exit 0; }
22218_ACEOF
22219chmod +x $CONFIG_STATUS
22220ac_clean_files=$ac_clean_files_save
22221
22222
22223# configure is writing to config.log, and then calls config.status.
22224# config.status does its own redirection, appending to config.log.
22225# Unfortunately, on DOS this fails, as config.log is still kept open
22226# by configure, so config.status won't be able to write to it; its
22227# output is simply discarded. So we exec the FD to /dev/null,
22228# effectively closing config.log, so it can be properly (re)opened and
22229# appended to by config.status. When coming back to configure, we
22230# need to make the FD available again.
22231if test "$no_create" != yes; then
22232 ac_cs_success=:
22233 ac_config_status_args=
22234 test "$silent" = yes &&
22235 ac_config_status_args="$ac_config_status_args --quiet"
22236 exec 5>/dev/null
22237 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22238 exec 5>>config.log
22239 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22240 # would make configure fail if this is the last instruction.
22241 $ac_cs_success || { (exit 1); exit 1; }
22242fi
22243
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022244#
22245# CONFIG_SUBDIRS section.
22246#
22247if test "$no_recursion" != yes; then
22248
22249 # Remove --cache-file and --srcdir arguments so they do not pile up.
22250 ac_sub_configure_args=
22251 ac_prev=
22252 eval "set x $ac_configure_args"
22253 shift
22254 for ac_arg
22255 do
22256 if test -n "$ac_prev"; then
22257 ac_prev=
22258 continue
22259 fi
22260 case $ac_arg in
22261 -cache-file | --cache-file | --cache-fil | --cache-fi \
22262 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22263 ac_prev=cache_file ;;
22264 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22265 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22266 | --c=*)
22267 ;;
22268 --config-cache | -C)
22269 ;;
22270 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22271 ac_prev=srcdir ;;
22272 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22273 ;;
22274 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22275 ac_prev=prefix ;;
22276 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22277 ;;
22278 *)
22279 case $ac_arg in
22280 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22281 esac
22282 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22283 esac
22284 done
22285
22286 # Always prepend --prefix to ensure using the same prefix
22287 # in subdir configurations.
22288 ac_arg="--prefix=$prefix"
22289 case $ac_arg in
22290 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22291 esac
22292 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22293
22294 ac_popdir=`pwd`
22295 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22296
22297 # Do not complain, so a configure script can configure whichever
22298 # parts of a large source tree are present.
22299 test -d "$srcdir/$ac_dir" || continue
22300
22301 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22302 echo "$as_me:$LINENO: $ac_msg" >&5
22303 echo "$ac_msg" >&6
22304 { as_dir="$ac_dir"
22305 case $as_dir in #(
22306 -*) as_dir=./$as_dir;;
22307 esac
22308 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22309 as_dirs=
22310 while :; do
22311 case $as_dir in #(
22312 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22313 *) as_qdir=$as_dir;;
22314 esac
22315 as_dirs="'$as_qdir' $as_dirs"
22316 as_dir=`$as_dirname -- "$as_dir" ||
22317$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22318 X"$as_dir" : 'X\(//\)[^/]' \| \
22319 X"$as_dir" : 'X\(//\)$' \| \
22320 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22321echo X"$as_dir" |
22322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22323 s//\1/
22324 q
22325 }
22326 /^X\(\/\/\)[^/].*/{
22327 s//\1/
22328 q
22329 }
22330 /^X\(\/\/\)$/{
22331 s//\1/
22332 q
22333 }
22334 /^X\(\/\).*/{
22335 s//\1/
22336 q
22337 }
22338 s/.*/./; q'`
22339 test -d "$as_dir" && break
22340 done
22341 test -z "$as_dirs" || eval "mkdir $as_dirs"
22342 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22343echo "$as_me: error: cannot create directory $as_dir" >&2;}
22344 { (exit 1); exit 1; }; }; }
22345 ac_builddir=.
22346
22347case "$ac_dir" in
22348.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22349*)
22350 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22351 # A ".." for each directory in $ac_dir_suffix.
22352 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22353 case $ac_top_builddir_sub in
22354 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22355 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22356 esac ;;
22357esac
22358ac_abs_top_builddir=$ac_pwd
22359ac_abs_builddir=$ac_pwd$ac_dir_suffix
22360# for backward compatibility:
22361ac_top_builddir=$ac_top_build_prefix
22362
22363case $srcdir in
22364 .) # We are building in place.
22365 ac_srcdir=.
22366 ac_top_srcdir=$ac_top_builddir_sub
22367 ac_abs_top_srcdir=$ac_pwd ;;
22368 [\\/]* | ?:[\\/]* ) # Absolute name.
22369 ac_srcdir=$srcdir$ac_dir_suffix;
22370 ac_top_srcdir=$srcdir
22371 ac_abs_top_srcdir=$srcdir ;;
22372 *) # Relative name.
22373 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22374 ac_top_srcdir=$ac_top_build_prefix$srcdir
22375 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22376esac
22377ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22378
22379
22380 cd "$ac_dir"
22381
22382 # Check for guested configure; otherwise get Cygnus style configure.
22383 if test -f "$ac_srcdir/configure.gnu"; then
22384 ac_sub_configure=$ac_srcdir/configure.gnu
22385 elif test -f "$ac_srcdir/configure"; then
22386 ac_sub_configure=$ac_srcdir/configure
22387 elif test -f "$ac_srcdir/configure.in"; then
22388 # This should be Cygnus configure.
22389 ac_sub_configure=$ac_aux_dir/configure
22390 else
22391 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22392echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22393 ac_sub_configure=
22394 fi
22395
22396 # The recursion is here.
22397 if test -n "$ac_sub_configure"; then
22398 # Make the cache file name correct relative to the subdirectory.
22399 case $cache_file in
22400 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22401 *) # Relative name.
22402 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22403 esac
22404
22405 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22406echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22407 # The eval makes quoting arguments work.
22408 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22409 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22410 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22411echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22412 { (exit 1); exit 1; }; }
22413 fi
22414
22415 cd "$ac_popdir"
22416 done
22417fi
22418