blob: 860faa292713a36c14248b323e572cda6a324ec8 [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,
Tony Linthicumb4b54152011-12-12 21:14:40 +00001404 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1405 xcore, msp430, ptx, cbe, and cpp (default=all)
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001406 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1407 %a (default is YES)
1408 --enable-bindings Build specific language bindings:
1409 all,auto,none,{binding-name} (default=auto)
1410 --enable-libffi Check for the presence of libffi (default is NO)
1411 --enable-ltdl-install install libltdl
1412
John Criswell451f67f2003-10-16 01:45:35 +00001413Optional Packages:
1414 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1415 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1416 --with-llvmsrc Location of LLVM Source Code
1417 --with-llvmobj Location of LLVM Object Code
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001418 --with-optimize-option Select the compiler options to use for optimized
1419 builds
1420 --with-extra-options Specify additional options to compile LLVM with
1421 --with-extra-ld-options Specify additional options to link LLVM with
1422 --with-ocaml-libdir Specify install location for ocaml bindings (default
1423 is stdlib)
1424 --with-clang-resource-dir
1425 Relative directory from the Clang binary for
1426 resource files
1427 --with-c-include-dirs Colon separated list of directories clang will
1428 search for headers
1429 --with-cxx-include-root Directory with the libstdc++ headers.
1430 --with-cxx-include-arch Architecture of the libstdc++ headers.
1431 --with-cxx-include-32bit-dir
1432 32 bit multilib dir.
1433 --with-cxx-include-64bit-dir
1434 64 bit multilib directory.
1435 --with-binutils-include Specify path to binutils/include/ containing
1436 plugin-api.h file for gold plugin.
1437 --with-bug-report-url Specify the URL where bug reports should be
1438 submitted (default=http://llvm.org/bugs/)
1439 --with-tclinclude directory where tcl headers are
1440 --with-udis86=<path> Use udis86 external x86 disassembler library
1441 --with-oprofile=<prefix>
1442 Tell OProfile >= 0.9.4 how to symbolize JIT output
1443
1444Some influential environment variables:
1445 CC C compiler command
1446 CFLAGS C compiler flags
1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1448 nonstandard directory <lib dir>
1449 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1450 you have headers in a nonstandard directory <include dir>
1451 CXX C++ compiler command
1452 CXXFLAGS C++ compiler flags
1453 CPP C preprocessor
1454
1455Use these variables to override the choices made by `configure' or to help
1456it to find libraries and programs with nonstandard names/locations.
John Criswell451f67f2003-10-16 01:45:35 +00001457
1458Report bugs to <bugs@yourdomain>.
1459_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001460ac_status=$?
John Criswell451f67f2003-10-16 01:45:35 +00001461fi
1462
1463if test "$ac_init_help" = "recursive"; then
1464 # If there are subdirs, report their specific --help.
John Criswell451f67f2003-10-16 01:45:35 +00001465 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001466 test -d "$ac_dir" || continue
John Criswell451f67f2003-10-16 01:45:35 +00001467 ac_builddir=.
1468
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001469case "$ac_dir" in
1470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471*)
John Criswell451f67f2003-10-16 01:45:35 +00001472 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001473 # A ".." for each directory in $ac_dir_suffix.
1474 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1475 case $ac_top_builddir_sub in
1476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478 esac ;;
1479esac
1480ac_abs_top_builddir=$ac_pwd
1481ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482# for backward compatibility:
1483ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +00001484
1485case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001486 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +00001487 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001488 ac_top_srcdir=$ac_top_builddir_sub
1489 ac_abs_top_srcdir=$ac_pwd ;;
1490 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +00001491 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001492 ac_top_srcdir=$srcdir
1493 ac_abs_top_srcdir=$srcdir ;;
1494 *) # Relative name.
1495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496 ac_top_srcdir=$ac_top_build_prefix$srcdir
1497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +00001498esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001499ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer9964cd82005-01-01 09:26:55 +00001500
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001501 cd "$ac_dir" || { ac_status=$?; continue; }
1502 # Check for guested configure.
1503 if test -f "$ac_srcdir/configure.gnu"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506 elif test -f "$ac_srcdir/configure"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell451f67f2003-10-16 01:45:35 +00001509 else
1510 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001511 fi || ac_status=$?
1512 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell451f67f2003-10-16 01:45:35 +00001513 done
1514fi
1515
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001516test -n "$ac_init_help" && exit $ac_status
John Criswell451f67f2003-10-16 01:45:35 +00001517if $ac_init_version; then
1518 cat <<\_ACEOF
1519[SAMPLE] configure [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001520generated by GNU Autoconf 2.60
John Criswell451f67f2003-10-16 01:45:35 +00001521
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001522Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15232002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00001524This configure script is free software; the Free Software Foundation
1525gives unlimited permission to copy, distribute and modify it.
1526_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001527 exit
John Criswell451f67f2003-10-16 01:45:35 +00001528fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001529cat >config.log <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00001530This file contains any messages produced by compilers while
1531running configure, to aid debugging if configure makes a mistake.
1532
1533It was created by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001534generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +00001535
1536 $ $0 $@
1537
1538_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001539exec 5>>config.log
John Criswell451f67f2003-10-16 01:45:35 +00001540{
1541cat <<_ASUNAME
1542## --------- ##
1543## Platform. ##
1544## --------- ##
1545
1546hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1547uname -m = `(uname -m) 2>/dev/null || echo unknown`
1548uname -r = `(uname -r) 2>/dev/null || echo unknown`
1549uname -s = `(uname -s) 2>/dev/null || echo unknown`
1550uname -v = `(uname -v) 2>/dev/null || echo unknown`
1551
1552/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1553/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1554
1555/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1556/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1557/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001558/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell451f67f2003-10-16 01:45:35 +00001559/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1560/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1561/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1562
1563_ASUNAME
1564
1565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566for as_dir in $PATH
1567do
1568 IFS=$as_save_IFS
1569 test -z "$as_dir" && as_dir=.
1570 echo "PATH: $as_dir"
1571done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001572IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +00001573
1574} >&5
1575
1576cat >&5 <<_ACEOF
1577
1578
1579## ----------- ##
1580## Core tests. ##
1581## ----------- ##
1582
1583_ACEOF
1584
1585
1586# Keep a trace of the command line.
1587# Strip out --no-create and --no-recursion so they do not pile up.
1588# Strip out --silent because we don't want to record it for future runs.
1589# Also quote any args containing shell meta-characters.
1590# Make two passes to allow for proper duplicate-argument suppression.
1591ac_configure_args=
1592ac_configure_args0=
1593ac_configure_args1=
John Criswell451f67f2003-10-16 01:45:35 +00001594ac_must_keep_next=false
1595for ac_pass in 1 2
1596do
1597 for ac_arg
1598 do
1599 case $ac_arg in
1600 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1601 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1602 | -silent | --silent | --silen | --sile | --sil)
1603 continue ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001604 *\'*)
John Criswell451f67f2003-10-16 01:45:35 +00001605 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1606 esac
1607 case $ac_pass in
1608 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1609 2)
1610 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1611 if test $ac_must_keep_next = true; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001612 ac_must_keep_next=false # Got value, back to normal.
John Criswell451f67f2003-10-16 01:45:35 +00001613 else
Reid Spencer9964cd82005-01-01 09:26:55 +00001614 case $ac_arg in
1615 *=* | --config-cache | -C | -disable-* | --disable-* \
1616 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1617 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1618 | -with-* | --with-* | -without-* | --without-* | --x)
1619 case "$ac_configure_args0 " in
1620 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1621 esac
1622 ;;
1623 -* ) ac_must_keep_next=true ;;
1624 esac
John Criswell451f67f2003-10-16 01:45:35 +00001625 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001626 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell451f67f2003-10-16 01:45:35 +00001627 ;;
1628 esac
1629 done
1630done
1631$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1632$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1633
1634# When interrupted or exit'd, cleanup temporary files, and complete
1635# config.log. We remove comments because anyway the quotes in there
1636# would cause problems or look ugly.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001637# WARNING: Use '\'' to represent an apostrophe within the trap.
1638# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell451f67f2003-10-16 01:45:35 +00001639trap 'exit_status=$?
1640 # Save into config.log some information that might help in debugging.
1641 {
1642 echo
1643
1644 cat <<\_ASBOX
1645## ---------------- ##
1646## Cache variables. ##
1647## ---------------- ##
1648_ASBOX
1649 echo
1650 # The following way of writing the cache mishandles newlines in values,
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001651(
1652 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1653 eval ac_val=\$$ac_var
1654 case $ac_val in #(
1655 *${as_nl}*)
1656 case $ac_var in #(
1657 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1658echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1659 esac
1660 case $ac_var in #(
1661 _ | IFS | as_nl) ;; #(
1662 *) $as_unset $ac_var ;;
1663 esac ;;
1664 esac
1665 done
John Criswell451f67f2003-10-16 01:45:35 +00001666 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001667 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1668 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +00001669 sed -n \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001670 "s/'\''/'\''\\\\'\'''\''/g;
1671 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1672 ;; #(
Dan Gohman324f6082009-03-25 00:52:11 +00001673 *)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001674 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Dan Gohman324f6082009-03-25 00:52:11 +00001675 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001676 esac |
1677 sort
1678)
John Criswell451f67f2003-10-16 01:45:35 +00001679 echo
1680
1681 cat <<\_ASBOX
1682## ----------------- ##
1683## Output variables. ##
1684## ----------------- ##
1685_ASBOX
1686 echo
1687 for ac_var in $ac_subst_vars
1688 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001689 eval ac_val=\$$ac_var
1690 case $ac_val in
1691 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1692 esac
1693 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001694 done | sort
1695 echo
1696
1697 if test -n "$ac_subst_files"; then
1698 cat <<\_ASBOX
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001699## ------------------- ##
1700## File substitutions. ##
1701## ------------------- ##
John Criswell451f67f2003-10-16 01:45:35 +00001702_ASBOX
1703 echo
1704 for ac_var in $ac_subst_files
1705 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001706 eval ac_val=\$$ac_var
1707 case $ac_val in
1708 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1709 esac
1710 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001711 done | sort
1712 echo
1713 fi
1714
1715 if test -s confdefs.h; then
1716 cat <<\_ASBOX
1717## ----------- ##
1718## confdefs.h. ##
1719## ----------- ##
1720_ASBOX
1721 echo
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001722 cat confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001723 echo
1724 fi
1725 test "$ac_signal" != 0 &&
1726 echo "$as_me: caught signal $ac_signal"
1727 echo "$as_me: exit $exit_status"
1728 } >&5
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001729 rm -f core *.core core.conftest.* &&
1730 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell451f67f2003-10-16 01:45:35 +00001731 exit $exit_status
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001732' 0
John Criswell451f67f2003-10-16 01:45:35 +00001733for ac_signal in 1 2 13 15; do
1734 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1735done
1736ac_signal=0
1737
1738# confdefs.h avoids OS command line length limits that DEFS can exceed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001739rm -f -r conftest* confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001740
1741# Predefined preprocessor variables.
1742
1743cat >>confdefs.h <<_ACEOF
1744#define PACKAGE_NAME "$PACKAGE_NAME"
1745_ACEOF
1746
1747
1748cat >>confdefs.h <<_ACEOF
1749#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1750_ACEOF
1751
1752
1753cat >>confdefs.h <<_ACEOF
1754#define PACKAGE_VERSION "$PACKAGE_VERSION"
1755_ACEOF
1756
1757
1758cat >>confdefs.h <<_ACEOF
1759#define PACKAGE_STRING "$PACKAGE_STRING"
1760_ACEOF
1761
1762
1763cat >>confdefs.h <<_ACEOF
1764#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1765_ACEOF
1766
1767
1768# Let the site file select an alternate cache file if it wants to.
1769# Prefer explicitly selected file to automatically selected ones.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001770if test -n "$CONFIG_SITE"; then
1771 set x "$CONFIG_SITE"
1772elif test "x$prefix" != xNONE; then
1773 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1774else
1775 set x "$ac_default_prefix/share/config.site" \
1776 "$ac_default_prefix/etc/config.site"
John Criswell451f67f2003-10-16 01:45:35 +00001777fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001778shift
1779for ac_site_file
1780do
John Criswell451f67f2003-10-16 01:45:35 +00001781 if test -r "$ac_site_file"; then
1782 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1783echo "$as_me: loading site script $ac_site_file" >&6;}
1784 sed 's/^/| /' "$ac_site_file" >&5
1785 . "$ac_site_file"
1786 fi
1787done
1788
1789if test -r "$cache_file"; then
1790 # Some versions of bash will fail to source /dev/null (special
1791 # files actually), so we avoid doing that.
1792 if test -f "$cache_file"; then
1793 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1794echo "$as_me: loading cache $cache_file" >&6;}
1795 case $cache_file in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001796 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1797 *) . "./$cache_file";;
John Criswell451f67f2003-10-16 01:45:35 +00001798 esac
1799 fi
1800else
1801 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1802echo "$as_me: creating cache $cache_file" >&6;}
1803 >$cache_file
1804fi
1805
1806# Check that the precious variables saved in the cache have kept the same
1807# value.
1808ac_cache_corrupted=false
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001809for ac_var in $ac_precious_vars; do
John Criswell451f67f2003-10-16 01:45:35 +00001810 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1811 eval ac_new_set=\$ac_env_${ac_var}_set
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001812 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1813 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell451f67f2003-10-16 01:45:35 +00001814 case $ac_old_set,$ac_new_set in
1815 set,)
1816 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1817echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1818 ac_cache_corrupted=: ;;
1819 ,set)
1820 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1821echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1822 ac_cache_corrupted=: ;;
1823 ,);;
1824 *)
1825 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001826 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001827echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001828 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001829echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001830 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001831echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001832 ac_cache_corrupted=:
John Criswell451f67f2003-10-16 01:45:35 +00001833 fi;;
1834 esac
1835 # Pass precious variables to config.status.
1836 if test "$ac_new_set" = set; then
1837 case $ac_new_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001838 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell451f67f2003-10-16 01:45:35 +00001839 *) ac_arg=$ac_var=$ac_new_val ;;
1840 esac
1841 case " $ac_configure_args " in
1842 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1843 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1844 esac
1845 fi
1846done
1847if $ac_cache_corrupted; then
1848 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1849echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1850 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1851echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1852 { (exit 1); exit 1; }; }
1853fi
1854
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
John Criswell451f67f2003-10-16 01:45:35 +00001879ac_ext=c
1880ac_cpp='$CPP $CPPFLAGS'
1881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1883ac_compiler_gnu=$ac_cv_c_compiler_gnu
1884
1885
1886
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001887LLVM_SRC_ROOT="../.."
1888LLVM_OBJ_ROOT="../.."
1889
1890LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1891LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
Dan Gohman324f6082009-03-25 00:52:11 +00001892
1893
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001894# Check whether --with-llvmsrc was given.
1895if test "${with_llvmsrc+set}" = set; then
1896 withval=$with_llvmsrc; llvm_src="$withval"
1897else
1898 llvm_src="$LLVM_ABS_SRC_ROOT"
1899fi
1900
1901 LLVM_SRC=$llvm_src
Dan Gohman324f6082009-03-25 00:52:11 +00001902
1903
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001904# Check whether --with-llvmobj was given.
1905if test "${with_llvmobj+set}" = set; then
1906 withval=$with_llvmobj; llvm_obj="$withval"
1907else
1908 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1909fi
Dan Gohman324f6082009-03-25 00:52:11 +00001910
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001911 LLVM_OBJ=$llvm_obj
Dan Gohman324f6082009-03-25 00:52:11 +00001912
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001913 ac_config_commands="$ac_config_commands setup"
Dan Gohman324f6082009-03-25 00:52:11 +00001914
1915
1916
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001917{ echo "$as_me:$LINENO: checking llvm-config" >&5
1918echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1919llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1920if ! test -f "$llvm_config_path" ; then
1921 llvm_config_path="no"
1922fi
1923{ echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1924echo "${ECHO_T}$llvm_config_path" >&6; }
1925
1926{ echo "$as_me:$LINENO: checking LLVM package version" >&5
1927echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1928if test "$llvm_config_path" != no ; then
1929 llvm_package_version=`$llvm_config_path --version`
1930else
1931 llvm_package_version="unknown";
1932fi
1933{ echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1934echo "${ECHO_T}$llvm_package_version" >&6; }
1935LLVM_VERSION=$llvm_package_version
1936
1937
1938
1939
John Criswell451f67f2003-10-16 01:45:35 +00001940ac_aux_dir=
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001941for ac_dir in autoconf "$srcdir"/autoconf; do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001942 if test -f "$ac_dir/install-sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001943 ac_aux_dir=$ac_dir
1944 ac_install_sh="$ac_aux_dir/install-sh -c"
1945 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001946 elif test -f "$ac_dir/install.sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001947 ac_aux_dir=$ac_dir
1948 ac_install_sh="$ac_aux_dir/install.sh -c"
1949 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001950 elif test -f "$ac_dir/shtool"; then
John Criswell451f67f2003-10-16 01:45:35 +00001951 ac_aux_dir=$ac_dir
1952 ac_install_sh="$ac_aux_dir/shtool install -c"
1953 break
1954 fi
1955done
1956if test -z "$ac_aux_dir"; then
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001957 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1958echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +00001959 { (exit 1); exit 1; }; }
1960fi
John Criswell451f67f2003-10-16 01:45:35 +00001961
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001962# These three variables are undocumented and unsupported,
1963# and are intended to be withdrawn in a future Autoconf release.
1964# They can cause serious problems if a builder's source tree is in a directory
1965# whose full name contains unusual characters.
1966ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1967ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1968ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Reid Spencer421ec052005-02-24 18:53:47 +00001969
1970
1971
1972
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001973ac_ext=c
1974ac_cpp='$CPP $CPPFLAGS'
1975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1977ac_compiler_gnu=$ac_cv_c_compiler_gnu
1978if test -n "$ac_tool_prefix"; then
1979 for ac_prog in clang llvm-gcc gcc
1980 do
1981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1982set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1983{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1985if test "${ac_cv_prog_CC+set}" = set; then
1986 echo $ECHO_N "(cached) $ECHO_C" >&6
1987else
1988 if test -n "$CC"; then
1989 ac_cv_prog_CC="$CC" # Let the user override the test.
1990else
1991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992for as_dir in $PATH
1993do
1994 IFS=$as_save_IFS
1995 test -z "$as_dir" && as_dir=.
1996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1998 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000 break 2
2001 fi
2002done
2003done
2004IFS=$as_save_IFS
2005
2006fi
2007fi
2008CC=$ac_cv_prog_CC
2009if test -n "$CC"; then
2010 { echo "$as_me:$LINENO: result: $CC" >&5
2011echo "${ECHO_T}$CC" >&6; }
2012else
2013 { echo "$as_me:$LINENO: result: no" >&5
2014echo "${ECHO_T}no" >&6; }
2015fi
2016
2017
2018 test -n "$CC" && break
2019 done
2020fi
2021if test -z "$CC"; then
2022 ac_ct_CC=$CC
2023 for ac_prog in clang llvm-gcc gcc
2024do
2025 # Extract the first word of "$ac_prog", so it can be a program name with args.
2026set dummy $ac_prog; ac_word=$2
2027{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2029if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2031else
2032 if test -n "$ac_ct_CC"; then
2033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2034else
2035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036for as_dir in $PATH
2037do
2038 IFS=$as_save_IFS
2039 test -z "$as_dir" && as_dir=.
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2042 ac_cv_prog_ac_ct_CC="$ac_prog"
2043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044 break 2
2045 fi
2046done
2047done
2048IFS=$as_save_IFS
2049
2050fi
2051fi
2052ac_ct_CC=$ac_cv_prog_ac_ct_CC
2053if test -n "$ac_ct_CC"; then
2054 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2055echo "${ECHO_T}$ac_ct_CC" >&6; }
2056else
2057 { echo "$as_me:$LINENO: result: no" >&5
2058echo "${ECHO_T}no" >&6; }
2059fi
2060
2061
2062 test -n "$ac_ct_CC" && break
2063done
2064
2065 if test "x$ac_ct_CC" = x; then
2066 CC=""
2067 else
2068 case $cross_compiling:$ac_tool_warned in
2069yes:)
2070{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2071whose name does not start with the host triplet. If you think this
2072configuration is useful to you, please write to autoconf@gnu.org." >&5
2073echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2074whose name does not start with the host triplet. If you think this
2075configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2076ac_tool_warned=yes ;;
2077esac
2078 CC=$ac_ct_CC
2079 fi
2080fi
2081
2082
2083test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2084See \`config.log' for more details." >&5
2085echo "$as_me: error: no acceptable C compiler found in \$PATH
2086See \`config.log' for more details." >&2;}
2087 { (exit 1); exit 1; }; }
2088
2089# Provide some information about the compiler.
2090echo "$as_me:$LINENO: checking for C compiler version" >&5
2091ac_compiler=`set X $ac_compile; echo $2`
2092{ (ac_try="$ac_compiler --version >&5"
2093case "(($ac_try" in
2094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2095 *) ac_try_echo=$ac_try;;
2096esac
2097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2098 (eval "$ac_compiler --version >&5") 2>&5
2099 ac_status=$?
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }
2102{ (ac_try="$ac_compiler -v >&5"
2103case "(($ac_try" in
2104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105 *) ac_try_echo=$ac_try;;
2106esac
2107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2108 (eval "$ac_compiler -v >&5") 2>&5
2109 ac_status=$?
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }
2112{ (ac_try="$ac_compiler -V >&5"
2113case "(($ac_try" in
2114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115 *) ac_try_echo=$ac_try;;
2116esac
2117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2118 (eval "$ac_compiler -V >&5") 2>&5
2119 ac_status=$?
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }
2122
2123cat >conftest.$ac_ext <<_ACEOF
2124/* confdefs.h. */
2125_ACEOF
2126cat confdefs.h >>conftest.$ac_ext
2127cat >>conftest.$ac_ext <<_ACEOF
2128/* end confdefs.h. */
2129
2130int
2131main ()
2132{
2133
2134 ;
2135 return 0;
2136}
2137_ACEOF
2138ac_clean_files_save=$ac_clean_files
2139ac_clean_files="$ac_clean_files a.out a.exe b.out"
2140# Try to create an executable without -o first, disregard a.out.
2141# It will help us diagnose broken compilers, and finding out an intuition
2142# of exeext.
2143{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2144echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2145ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2146#
2147# List of possible output files, starting from the most likely.
2148# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2149# only as a last resort. b.out is created by i960 compilers.
2150ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2151#
2152# The IRIX 6 linker writes into existing files which may not be
2153# executable, retaining their permissions. Remove them first so a
2154# subsequent execution test works.
2155ac_rmfiles=
2156for ac_file in $ac_files
2157do
2158 case $ac_file in
2159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2160 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2161 esac
2162done
2163rm -f $ac_rmfiles
2164
2165if { (ac_try="$ac_link_default"
2166case "(($ac_try" in
2167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168 *) ac_try_echo=$ac_try;;
2169esac
2170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2171 (eval "$ac_link_default") 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; then
2175 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2176# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2177# in a Makefile. We should not override ac_cv_exeext if it was cached,
2178# so that the user can short-circuit this test for compilers unknown to
2179# Autoconf.
2180for ac_file in $ac_files
2181do
2182 test -f "$ac_file" || continue
2183 case $ac_file in
2184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2185 ;;
2186 [ab].out )
2187 # We found the default executable, but exeext='' is most
2188 # certainly right.
2189 break;;
2190 *.* )
2191 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2192 then :; else
2193 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2194 fi
2195 # We set ac_cv_exeext here because the later test for it is not
2196 # safe: cross compilers may not add the suffix if given an `-o'
2197 # argument, so we may need to know it at that point already.
2198 # Even if this section looks crufty: it has the advantage of
2199 # actually working.
2200 break;;
2201 * )
2202 break;;
2203 esac
2204done
2205test "$ac_cv_exeext" = no && ac_cv_exeext=
2206
2207else
2208 echo "$as_me: failed program was:" >&5
2209sed 's/^/| /' conftest.$ac_ext >&5
2210
2211{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2212See \`config.log' for more details." >&5
2213echo "$as_me: error: C compiler cannot create executables
2214See \`config.log' for more details." >&2;}
2215 { (exit 77); exit 77; }; }
2216fi
2217
2218ac_exeext=$ac_cv_exeext
2219{ echo "$as_me:$LINENO: result: $ac_file" >&5
2220echo "${ECHO_T}$ac_file" >&6; }
2221
2222# Check that the compiler produces executables we can run. If not, either
2223# the compiler is broken, or we cross compile.
2224{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2225echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2226# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2227# If not cross compiling, check that we can run a simple program.
2228if test "$cross_compiling" != yes; then
2229 if { ac_try='./$ac_file'
2230 { (case "(($ac_try" in
2231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2232 *) ac_try_echo=$ac_try;;
2233esac
2234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2235 (eval "$ac_try") 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; }; then
2239 cross_compiling=no
2240 else
2241 if test "$cross_compiling" = maybe; then
2242 cross_compiling=yes
2243 else
2244 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2245If you meant to cross compile, use \`--host'.
2246See \`config.log' for more details." >&5
2247echo "$as_me: error: cannot run C compiled programs.
2248If you meant to cross compile, use \`--host'.
2249See \`config.log' for more details." >&2;}
2250 { (exit 1); exit 1; }; }
2251 fi
2252 fi
2253fi
2254{ echo "$as_me:$LINENO: result: yes" >&5
2255echo "${ECHO_T}yes" >&6; }
2256
2257rm -f a.out a.exe conftest$ac_cv_exeext b.out
2258ac_clean_files=$ac_clean_files_save
2259# Check that the compiler produces executables we can run. If not, either
2260# the compiler is broken, or we cross compile.
2261{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2262echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2263{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2264echo "${ECHO_T}$cross_compiling" >&6; }
2265
2266{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2267echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2268if { (ac_try="$ac_link"
2269case "(($ac_try" in
2270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271 *) ac_try_echo=$ac_try;;
2272esac
2273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2274 (eval "$ac_link") 2>&5
2275 ac_status=$?
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; then
2278 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2279# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2280# work properly (i.e., refer to `conftest.exe'), while it won't with
2281# `rm'.
2282for ac_file in conftest.exe conftest conftest.*; do
2283 test -f "$ac_file" || continue
2284 case $ac_file in
2285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2286 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2287 break;;
2288 * ) break;;
2289 esac
2290done
2291else
2292 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2293See \`config.log' for more details." >&5
2294echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2295See \`config.log' for more details." >&2;}
2296 { (exit 1); exit 1; }; }
2297fi
2298
2299rm -f conftest$ac_cv_exeext
2300{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2301echo "${ECHO_T}$ac_cv_exeext" >&6; }
2302
2303rm -f conftest.$ac_ext
2304EXEEXT=$ac_cv_exeext
2305ac_exeext=$EXEEXT
2306{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2307echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2308if test "${ac_cv_objext+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2310else
2311 cat >conftest.$ac_ext <<_ACEOF
2312/* confdefs.h. */
2313_ACEOF
2314cat confdefs.h >>conftest.$ac_ext
2315cat >>conftest.$ac_ext <<_ACEOF
2316/* end confdefs.h. */
2317
2318int
2319main ()
2320{
2321
2322 ;
2323 return 0;
2324}
2325_ACEOF
2326rm -f conftest.o conftest.obj
2327if { (ac_try="$ac_compile"
2328case "(($ac_try" in
2329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330 *) ac_try_echo=$ac_try;;
2331esac
2332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2333 (eval "$ac_compile") 2>&5
2334 ac_status=$?
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; then
2337 for ac_file in conftest.o conftest.obj conftest.*; do
2338 test -f "$ac_file" || continue;
2339 case $ac_file in
2340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2341 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2342 break;;
2343 esac
2344done
2345else
2346 echo "$as_me: failed program was:" >&5
2347sed 's/^/| /' conftest.$ac_ext >&5
2348
2349{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2350See \`config.log' for more details." >&5
2351echo "$as_me: error: cannot compute suffix of object files: cannot compile
2352See \`config.log' for more details." >&2;}
2353 { (exit 1); exit 1; }; }
2354fi
2355
2356rm -f conftest.$ac_cv_objext conftest.$ac_ext
2357fi
2358{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2359echo "${ECHO_T}$ac_cv_objext" >&6; }
2360OBJEXT=$ac_cv_objext
2361ac_objext=$OBJEXT
2362{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2363echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2364if test "${ac_cv_c_compiler_gnu+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2366else
2367 cat >conftest.$ac_ext <<_ACEOF
2368/* confdefs.h. */
2369_ACEOF
2370cat confdefs.h >>conftest.$ac_ext
2371cat >>conftest.$ac_ext <<_ACEOF
2372/* end confdefs.h. */
2373
2374int
2375main ()
2376{
2377#ifndef __GNUC__
2378 choke me
2379#endif
2380
2381 ;
2382 return 0;
2383}
2384_ACEOF
2385rm -f conftest.$ac_objext
2386if { (ac_try="$ac_compile"
2387case "(($ac_try" in
2388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389 *) ac_try_echo=$ac_try;;
2390esac
2391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392 (eval "$ac_compile") 2>conftest.er1
2393 ac_status=$?
2394 grep -v '^ *+' conftest.er1 >conftest.err
2395 rm -f conftest.er1
2396 cat conftest.err >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } &&
2399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2400 { (case "(($ac_try" in
2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402 *) ac_try_echo=$ac_try;;
2403esac
2404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2405 (eval "$ac_try") 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; } &&
2409 { ac_try='test -s conftest.$ac_objext'
2410 { (case "(($ac_try" in
2411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412 *) ac_try_echo=$ac_try;;
2413esac
2414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2415 (eval "$ac_try") 2>&5
2416 ac_status=$?
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; }; then
2419 ac_compiler_gnu=yes
2420else
2421 echo "$as_me: failed program was:" >&5
2422sed 's/^/| /' conftest.$ac_ext >&5
2423
2424 ac_compiler_gnu=no
2425fi
2426
2427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2428ac_cv_c_compiler_gnu=$ac_compiler_gnu
2429
2430fi
2431{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2432echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2433GCC=`test $ac_compiler_gnu = yes && echo yes`
2434ac_test_CFLAGS=${CFLAGS+set}
2435ac_save_CFLAGS=$CFLAGS
2436{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2437echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2438if test "${ac_cv_prog_cc_g+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2440else
2441 ac_save_c_werror_flag=$ac_c_werror_flag
2442 ac_c_werror_flag=yes
2443 ac_cv_prog_cc_g=no
2444 CFLAGS="-g"
2445 cat >conftest.$ac_ext <<_ACEOF
2446/* confdefs.h. */
2447_ACEOF
2448cat confdefs.h >>conftest.$ac_ext
2449cat >>conftest.$ac_ext <<_ACEOF
2450/* end confdefs.h. */
2451
2452int
2453main ()
2454{
2455
2456 ;
2457 return 0;
2458}
2459_ACEOF
2460rm -f conftest.$ac_objext
2461if { (ac_try="$ac_compile"
2462case "(($ac_try" in
2463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464 *) ac_try_echo=$ac_try;;
2465esac
2466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467 (eval "$ac_compile") 2>conftest.er1
2468 ac_status=$?
2469 grep -v '^ *+' conftest.er1 >conftest.err
2470 rm -f conftest.er1
2471 cat conftest.err >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); } &&
2474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2475 { (case "(($ac_try" in
2476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477 *) ac_try_echo=$ac_try;;
2478esac
2479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2480 (eval "$ac_try") 2>&5
2481 ac_status=$?
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; } &&
2484 { ac_try='test -s conftest.$ac_objext'
2485 { (case "(($ac_try" in
2486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487 *) ac_try_echo=$ac_try;;
2488esac
2489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2490 (eval "$ac_try") 2>&5
2491 ac_status=$?
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; }; then
2494 ac_cv_prog_cc_g=yes
2495else
2496 echo "$as_me: failed program was:" >&5
2497sed 's/^/| /' conftest.$ac_ext >&5
2498
2499 CFLAGS=""
2500 cat >conftest.$ac_ext <<_ACEOF
2501/* confdefs.h. */
2502_ACEOF
2503cat confdefs.h >>conftest.$ac_ext
2504cat >>conftest.$ac_ext <<_ACEOF
2505/* end confdefs.h. */
2506
2507int
2508main ()
2509{
2510
2511 ;
2512 return 0;
2513}
2514_ACEOF
2515rm -f conftest.$ac_objext
2516if { (ac_try="$ac_compile"
2517case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2520esac
2521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522 (eval "$ac_compile") 2>conftest.er1
2523 ac_status=$?
2524 grep -v '^ *+' conftest.er1 >conftest.err
2525 rm -f conftest.er1
2526 cat conftest.err >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
2529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2530 { (case "(($ac_try" in
2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532 *) ac_try_echo=$ac_try;;
2533esac
2534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2535 (eval "$ac_try") 2>&5
2536 ac_status=$?
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; } &&
2539 { ac_try='test -s conftest.$ac_objext'
2540 { (case "(($ac_try" in
2541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542 *) ac_try_echo=$ac_try;;
2543esac
2544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2545 (eval "$ac_try") 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; }; then
2549 :
2550else
2551 echo "$as_me: failed program was:" >&5
2552sed 's/^/| /' conftest.$ac_ext >&5
2553
2554 ac_c_werror_flag=$ac_save_c_werror_flag
2555 CFLAGS="-g"
2556 cat >conftest.$ac_ext <<_ACEOF
2557/* confdefs.h. */
2558_ACEOF
2559cat confdefs.h >>conftest.$ac_ext
2560cat >>conftest.$ac_ext <<_ACEOF
2561/* end confdefs.h. */
2562
2563int
2564main ()
2565{
2566
2567 ;
2568 return 0;
2569}
2570_ACEOF
2571rm -f conftest.$ac_objext
2572if { (ac_try="$ac_compile"
2573case "(($ac_try" in
2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575 *) ac_try_echo=$ac_try;;
2576esac
2577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2578 (eval "$ac_compile") 2>conftest.er1
2579 ac_status=$?
2580 grep -v '^ *+' conftest.er1 >conftest.err
2581 rm -f conftest.er1
2582 cat conftest.err >&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); } &&
2585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2586 { (case "(($ac_try" in
2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588 *) ac_try_echo=$ac_try;;
2589esac
2590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2591 (eval "$ac_try") 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; } &&
2595 { ac_try='test -s conftest.$ac_objext'
2596 { (case "(($ac_try" in
2597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598 *) ac_try_echo=$ac_try;;
2599esac
2600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2601 (eval "$ac_try") 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; }; then
2605 ac_cv_prog_cc_g=yes
2606else
2607 echo "$as_me: failed program was:" >&5
2608sed 's/^/| /' conftest.$ac_ext >&5
2609
2610
2611fi
2612
2613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614fi
2615
2616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617fi
2618
2619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 ac_c_werror_flag=$ac_save_c_werror_flag
2621fi
2622{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2623echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2624if test "$ac_test_CFLAGS" = set; then
2625 CFLAGS=$ac_save_CFLAGS
2626elif test $ac_cv_prog_cc_g = yes; then
2627 if test "$GCC" = yes; then
2628 CFLAGS="-g -O2"
2629 else
2630 CFLAGS="-g"
2631 fi
2632else
2633 if test "$GCC" = yes; then
2634 CFLAGS="-O2"
2635 else
2636 CFLAGS=
2637 fi
2638fi
2639{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2640echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2641if test "${ac_cv_prog_cc_c89+set}" = set; then
2642 echo $ECHO_N "(cached) $ECHO_C" >&6
2643else
2644 ac_cv_prog_cc_c89=no
2645ac_save_CC=$CC
2646cat >conftest.$ac_ext <<_ACEOF
2647/* confdefs.h. */
2648_ACEOF
2649cat confdefs.h >>conftest.$ac_ext
2650cat >>conftest.$ac_ext <<_ACEOF
2651/* end confdefs.h. */
2652#include <stdarg.h>
2653#include <stdio.h>
2654#include <sys/types.h>
2655#include <sys/stat.h>
2656/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2657struct buf { int x; };
2658FILE * (*rcsopen) (struct buf *, struct stat *, int);
2659static char *e (p, i)
2660 char **p;
2661 int i;
2662{
2663 return p[i];
2664}
2665static char *f (char * (*g) (char **, int), char **p, ...)
2666{
2667 char *s;
2668 va_list v;
2669 va_start (v,p);
2670 s = g (p, va_arg (v,int));
2671 va_end (v);
2672 return s;
2673}
2674
2675/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2676 function prototypes and stuff, but not '\xHH' hex character constants.
2677 These don't provoke an error unfortunately, instead are silently treated
2678 as 'x'. The following induces an error, until -std is added to get
2679 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2680 array size at least. It's necessary to write '\x00'==0 to get something
2681 that's true only with -std. */
2682int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2683
2684/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2685 inside strings and character constants. */
2686#define FOO(x) 'x'
2687int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2688
2689int test (int i, double x);
2690struct s1 {int (*f) (int a);};
2691struct s2 {int (*f) (double a);};
2692int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2693int argc;
2694char **argv;
2695int
2696main ()
2697{
2698return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2699 ;
2700 return 0;
2701}
2702_ACEOF
2703for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2704 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2705do
2706 CC="$ac_save_CC $ac_arg"
2707 rm -f conftest.$ac_objext
2708if { (ac_try="$ac_compile"
2709case "(($ac_try" in
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2712esac
2713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_compile") 2>conftest.er1
2715 ac_status=$?
2716 grep -v '^ *+' conftest.er1 >conftest.err
2717 rm -f conftest.er1
2718 cat conftest.err >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } &&
2721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2722 { (case "(($ac_try" in
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2725esac
2726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_try") 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; } &&
2731 { ac_try='test -s conftest.$ac_objext'
2732 { (case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2735esac
2736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_try") 2>&5
2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2741 ac_cv_prog_cc_c89=$ac_arg
2742else
2743 echo "$as_me: failed program was:" >&5
2744sed 's/^/| /' conftest.$ac_ext >&5
2745
2746
2747fi
2748
2749rm -f core conftest.err conftest.$ac_objext
2750 test "x$ac_cv_prog_cc_c89" != "xno" && break
2751done
2752rm -f conftest.$ac_ext
2753CC=$ac_save_CC
2754
2755fi
2756# AC_CACHE_VAL
2757case "x$ac_cv_prog_cc_c89" in
2758 x)
2759 { echo "$as_me:$LINENO: result: none needed" >&5
2760echo "${ECHO_T}none needed" >&6; } ;;
2761 xno)
2762 { echo "$as_me:$LINENO: result: unsupported" >&5
2763echo "${ECHO_T}unsupported" >&6; } ;;
2764 *)
2765 CC="$CC $ac_cv_prog_cc_c89"
2766 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2767echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2768esac
2769
2770
2771ac_ext=c
2772ac_cpp='$CPP $CPPFLAGS'
2773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775ac_compiler_gnu=$ac_cv_c_compiler_gnu
2776
2777ac_ext=cpp
2778ac_cpp='$CXXCPP $CPPFLAGS'
2779ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2782if test -z "$CXX"; then
2783 if test -n "$CCC"; then
2784 CXX=$CCC
2785 else
2786 if test -n "$ac_tool_prefix"; then
2787 for ac_prog in clang++ llvm-g++ g++
2788 do
2789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2790set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2791{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2793if test "${ac_cv_prog_CXX+set}" = set; then
2794 echo $ECHO_N "(cached) $ECHO_C" >&6
2795else
2796 if test -n "$CXX"; then
2797 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2798else
2799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800for as_dir in $PATH
2801do
2802 IFS=$as_save_IFS
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2806 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 break 2
2809 fi
2810done
2811done
2812IFS=$as_save_IFS
2813
2814fi
2815fi
2816CXX=$ac_cv_prog_CXX
2817if test -n "$CXX"; then
2818 { echo "$as_me:$LINENO: result: $CXX" >&5
2819echo "${ECHO_T}$CXX" >&6; }
2820else
2821 { echo "$as_me:$LINENO: result: no" >&5
2822echo "${ECHO_T}no" >&6; }
2823fi
2824
2825
2826 test -n "$CXX" && break
2827 done
2828fi
2829if test -z "$CXX"; then
2830 ac_ct_CXX=$CXX
2831 for ac_prog in clang++ llvm-g++ g++
2832do
2833 # Extract the first word of "$ac_prog", so it can be a program name with args.
2834set dummy $ac_prog; ac_word=$2
2835{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2837if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2839else
2840 if test -n "$ac_ct_CXX"; then
2841 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2842else
2843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844for as_dir in $PATH
2845do
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2850 ac_cv_prog_ac_ct_CXX="$ac_prog"
2851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 break 2
2853 fi
2854done
2855done
2856IFS=$as_save_IFS
2857
2858fi
2859fi
2860ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2861if test -n "$ac_ct_CXX"; then
2862 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2863echo "${ECHO_T}$ac_ct_CXX" >&6; }
2864else
2865 { echo "$as_me:$LINENO: result: no" >&5
2866echo "${ECHO_T}no" >&6; }
2867fi
2868
2869
2870 test -n "$ac_ct_CXX" && break
2871done
2872
2873 if test "x$ac_ct_CXX" = x; then
2874 CXX="g++"
2875 else
2876 case $cross_compiling:$ac_tool_warned in
2877yes:)
2878{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2879whose name does not start with the host triplet. If you think this
2880configuration is useful to you, please write to autoconf@gnu.org." >&5
2881echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2882whose name does not start with the host triplet. If you think this
2883configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2884ac_tool_warned=yes ;;
2885esac
2886 CXX=$ac_ct_CXX
2887 fi
2888fi
2889
2890 fi
2891fi
2892# Provide some information about the compiler.
2893echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2894ac_compiler=`set X $ac_compile; echo $2`
2895{ (ac_try="$ac_compiler --version >&5"
2896case "(($ac_try" in
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2899esac
2900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_compiler --version >&5") 2>&5
2902 ac_status=$?
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }
2905{ (ac_try="$ac_compiler -v >&5"
2906case "(($ac_try" in
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2909esac
2910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911 (eval "$ac_compiler -v >&5") 2>&5
2912 ac_status=$?
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }
2915{ (ac_try="$ac_compiler -V >&5"
2916case "(($ac_try" in
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2919esac
2920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921 (eval "$ac_compiler -V >&5") 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }
2925
2926{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2927echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2928if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2930else
2931 cat >conftest.$ac_ext <<_ACEOF
2932/* confdefs.h. */
2933_ACEOF
2934cat confdefs.h >>conftest.$ac_ext
2935cat >>conftest.$ac_ext <<_ACEOF
2936/* end confdefs.h. */
2937
2938int
2939main ()
2940{
2941#ifndef __GNUC__
2942 choke me
2943#endif
2944
2945 ;
2946 return 0;
2947}
2948_ACEOF
2949rm -f conftest.$ac_objext
2950if { (ac_try="$ac_compile"
2951case "(($ac_try" in
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2954esac
2955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_compile") 2>conftest.er1
2957 ac_status=$?
2958 grep -v '^ *+' conftest.er1 >conftest.err
2959 rm -f conftest.er1
2960 cat conftest.err >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } &&
2963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2964 { (case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2967esac
2968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969 (eval "$ac_try") 2>&5
2970 ac_status=$?
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; } &&
2973 { ac_try='test -s conftest.$ac_objext'
2974 { (case "(($ac_try" in
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2977esac
2978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2979 (eval "$ac_try") 2>&5
2980 ac_status=$?
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; }; then
2983 ac_compiler_gnu=yes
2984else
2985 echo "$as_me: failed program was:" >&5
2986sed 's/^/| /' conftest.$ac_ext >&5
2987
2988 ac_compiler_gnu=no
2989fi
2990
2991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2993
2994fi
2995{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2996echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2997GXX=`test $ac_compiler_gnu = yes && echo yes`
2998ac_test_CXXFLAGS=${CXXFLAGS+set}
2999ac_save_CXXFLAGS=$CXXFLAGS
3000{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3001echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3002if test "${ac_cv_prog_cxx_g+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3004else
3005 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3006 ac_cxx_werror_flag=yes
3007 ac_cv_prog_cxx_g=no
3008 CXXFLAGS="-g"
3009 cat >conftest.$ac_ext <<_ACEOF
3010/* confdefs.h. */
3011_ACEOF
3012cat confdefs.h >>conftest.$ac_ext
3013cat >>conftest.$ac_ext <<_ACEOF
3014/* end confdefs.h. */
3015
3016int
3017main ()
3018{
3019
3020 ;
3021 return 0;
3022}
3023_ACEOF
3024rm -f conftest.$ac_objext
3025if { (ac_try="$ac_compile"
3026case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029esac
3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_compile") 2>conftest.er1
3032 ac_status=$?
3033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } &&
3038 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3039 { (case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042esac
3043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_try") 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; } &&
3048 { ac_try='test -s conftest.$ac_objext'
3049 { (case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3052esac
3053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_try") 2>&5
3055 ac_status=$?
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; }; then
3058 ac_cv_prog_cxx_g=yes
3059else
3060 echo "$as_me: failed program was:" >&5
3061sed 's/^/| /' conftest.$ac_ext >&5
3062
3063 CXXFLAGS=""
3064 cat >conftest.$ac_ext <<_ACEOF
3065/* confdefs.h. */
3066_ACEOF
3067cat confdefs.h >>conftest.$ac_ext
3068cat >>conftest.$ac_ext <<_ACEOF
3069/* end confdefs.h. */
3070
3071int
3072main ()
3073{
3074
3075 ;
3076 return 0;
3077}
3078_ACEOF
3079rm -f conftest.$ac_objext
3080if { (ac_try="$ac_compile"
3081case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084esac
3085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_compile") 2>conftest.er1
3087 ac_status=$?
3088 grep -v '^ *+' conftest.er1 >conftest.err
3089 rm -f conftest.er1
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } &&
3093 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3094 { (case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097esac
3098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_try") 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; } &&
3103 { ac_try='test -s conftest.$ac_objext'
3104 { (case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3107esac
3108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109 (eval "$ac_try") 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; }; then
3113 :
3114else
3115 echo "$as_me: failed program was:" >&5
3116sed 's/^/| /' conftest.$ac_ext >&5
3117
3118 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3119 CXXFLAGS="-g"
3120 cat >conftest.$ac_ext <<_ACEOF
3121/* confdefs.h. */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h. */
3126
3127int
3128main ()
3129{
3130
3131 ;
3132 return 0;
3133}
3134_ACEOF
3135rm -f conftest.$ac_objext
3136if { (ac_try="$ac_compile"
3137case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140esac
3141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_compile") 2>conftest.er1
3143 ac_status=$?
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153esac
3154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; } &&
3159 { ac_try='test -s conftest.$ac_objext'
3160 { (case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163esac
3164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_try") 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
3169 ac_cv_prog_cxx_g=yes
3170else
3171 echo "$as_me: failed program was:" >&5
3172sed 's/^/| /' conftest.$ac_ext >&5
3173
3174
3175fi
3176
3177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178fi
3179
3180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3181fi
3182
3183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3185fi
3186{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3187echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3188if test "$ac_test_CXXFLAGS" = set; then
3189 CXXFLAGS=$ac_save_CXXFLAGS
3190elif test $ac_cv_prog_cxx_g = yes; then
3191 if test "$GXX" = yes; then
3192 CXXFLAGS="-g -O2"
3193 else
3194 CXXFLAGS="-g"
3195 fi
3196else
3197 if test "$GXX" = yes; then
3198 CXXFLAGS="-O2"
3199 else
3200 CXXFLAGS=
3201 fi
3202fi
3203ac_ext=c
3204ac_cpp='$CPP $CPPFLAGS'
3205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3207ac_compiler_gnu=$ac_cv_c_compiler_gnu
3208
3209ac_ext=c
3210ac_cpp='$CPP $CPPFLAGS'
3211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213ac_compiler_gnu=$ac_cv_c_compiler_gnu
3214{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3215echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3216# On Suns, sometimes $CPP names a directory.
3217if test -n "$CPP" && test -d "$CPP"; then
3218 CPP=
3219fi
3220if test -z "$CPP"; then
3221 if test "${ac_cv_prog_CPP+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3223else
3224 # Double quotes because CPP needs to be expanded
3225 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3226 do
3227 ac_preproc_ok=false
3228for ac_c_preproc_warn_flag in '' yes
3229do
3230 # Use a header file that comes with gcc, so configuring glibc
3231 # with a fresh cross-compiler works.
3232 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3233 # <limits.h> exists even on freestanding compilers.
3234 # On the NeXT, cc -E runs the code through the compiler's parser,
3235 # not just through cpp. "Syntax error" is here to catch this case.
3236 cat >conftest.$ac_ext <<_ACEOF
3237/* confdefs.h. */
3238_ACEOF
3239cat confdefs.h >>conftest.$ac_ext
3240cat >>conftest.$ac_ext <<_ACEOF
3241/* end confdefs.h. */
3242#ifdef __STDC__
3243# include <limits.h>
3244#else
3245# include <assert.h>
3246#endif
3247 Syntax error
3248_ACEOF
3249if { (ac_try="$ac_cpp conftest.$ac_ext"
3250case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253esac
3254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3256 ac_status=$?
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } >/dev/null; then
3262 if test -s conftest.err; then
3263 ac_cpp_err=$ac_c_preproc_warn_flag
3264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3265 else
3266 ac_cpp_err=
3267 fi
3268else
3269 ac_cpp_err=yes
3270fi
3271if test -z "$ac_cpp_err"; then
3272 :
3273else
3274 echo "$as_me: failed program was:" >&5
3275sed 's/^/| /' conftest.$ac_ext >&5
3276
3277 # Broken: fails on valid input.
3278continue
3279fi
3280
3281rm -f conftest.err conftest.$ac_ext
3282
3283 # OK, works on sane cases. Now check whether nonexistent headers
3284 # can be detected and how.
3285 cat >conftest.$ac_ext <<_ACEOF
3286/* confdefs.h. */
3287_ACEOF
3288cat confdefs.h >>conftest.$ac_ext
3289cat >>conftest.$ac_ext <<_ACEOF
3290/* end confdefs.h. */
3291#include <ac_nonexistent.h>
3292_ACEOF
3293if { (ac_try="$ac_cpp conftest.$ac_ext"
3294case "(($ac_try" in
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3297esac
3298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3300 ac_status=$?
3301 grep -v '^ *+' conftest.er1 >conftest.err
3302 rm -f conftest.er1
3303 cat conftest.err >&5
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); } >/dev/null; then
3306 if test -s conftest.err; then
3307 ac_cpp_err=$ac_c_preproc_warn_flag
3308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3309 else
3310 ac_cpp_err=
3311 fi
3312else
3313 ac_cpp_err=yes
3314fi
3315if test -z "$ac_cpp_err"; then
3316 # Broken: success on invalid input.
3317continue
3318else
3319 echo "$as_me: failed program was:" >&5
3320sed 's/^/| /' conftest.$ac_ext >&5
3321
3322 # Passes both tests.
3323ac_preproc_ok=:
3324break
3325fi
3326
3327rm -f conftest.err conftest.$ac_ext
3328
3329done
3330# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3331rm -f conftest.err conftest.$ac_ext
3332if $ac_preproc_ok; then
3333 break
3334fi
3335
3336 done
3337 ac_cv_prog_CPP=$CPP
3338
3339fi
3340 CPP=$ac_cv_prog_CPP
3341else
3342 ac_cv_prog_CPP=$CPP
3343fi
3344{ echo "$as_me:$LINENO: result: $CPP" >&5
3345echo "${ECHO_T}$CPP" >&6; }
3346ac_preproc_ok=false
3347for ac_c_preproc_warn_flag in '' yes
3348do
3349 # Use a header file that comes with gcc, so configuring glibc
3350 # with a fresh cross-compiler works.
3351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3352 # <limits.h> exists even on freestanding compilers.
3353 # On the NeXT, cc -E runs the code through the compiler's parser,
3354 # not just through cpp. "Syntax error" is here to catch this case.
3355 cat >conftest.$ac_ext <<_ACEOF
3356/* confdefs.h. */
3357_ACEOF
3358cat confdefs.h >>conftest.$ac_ext
3359cat >>conftest.$ac_ext <<_ACEOF
3360/* end confdefs.h. */
3361#ifdef __STDC__
3362# include <limits.h>
3363#else
3364# include <assert.h>
3365#endif
3366 Syntax error
3367_ACEOF
3368if { (ac_try="$ac_cpp conftest.$ac_ext"
3369case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372esac
3373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3375 ac_status=$?
3376 grep -v '^ *+' conftest.er1 >conftest.err
3377 rm -f conftest.er1
3378 cat conftest.err >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); } >/dev/null; then
3381 if test -s conftest.err; then
3382 ac_cpp_err=$ac_c_preproc_warn_flag
3383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3384 else
3385 ac_cpp_err=
3386 fi
3387else
3388 ac_cpp_err=yes
3389fi
3390if test -z "$ac_cpp_err"; then
3391 :
3392else
3393 echo "$as_me: failed program was:" >&5
3394sed 's/^/| /' conftest.$ac_ext >&5
3395
3396 # Broken: fails on valid input.
3397continue
3398fi
3399
3400rm -f conftest.err conftest.$ac_ext
3401
3402 # OK, works on sane cases. Now check whether nonexistent headers
3403 # can be detected and how.
3404 cat >conftest.$ac_ext <<_ACEOF
3405/* confdefs.h. */
3406_ACEOF
3407cat confdefs.h >>conftest.$ac_ext
3408cat >>conftest.$ac_ext <<_ACEOF
3409/* end confdefs.h. */
3410#include <ac_nonexistent.h>
3411_ACEOF
3412if { (ac_try="$ac_cpp conftest.$ac_ext"
3413case "(($ac_try" in
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3416esac
3417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3419 ac_status=$?
3420 grep -v '^ *+' conftest.er1 >conftest.err
3421 rm -f conftest.er1
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } >/dev/null; then
3425 if test -s conftest.err; then
3426 ac_cpp_err=$ac_c_preproc_warn_flag
3427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3428 else
3429 ac_cpp_err=
3430 fi
3431else
3432 ac_cpp_err=yes
3433fi
3434if test -z "$ac_cpp_err"; then
3435 # Broken: success on invalid input.
3436continue
3437else
3438 echo "$as_me: failed program was:" >&5
3439sed 's/^/| /' conftest.$ac_ext >&5
3440
3441 # Passes both tests.
3442ac_preproc_ok=:
3443break
3444fi
3445
3446rm -f conftest.err conftest.$ac_ext
3447
3448done
3449# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3450rm -f conftest.err conftest.$ac_ext
3451if $ac_preproc_ok; then
3452 :
3453else
3454 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3455See \`config.log' for more details." >&5
3456echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3457See \`config.log' for more details." >&2;}
3458 { (exit 1); exit 1; }; }
3459fi
3460
3461ac_ext=c
3462ac_cpp='$CPP $CPPFLAGS'
3463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3465ac_compiler_gnu=$ac_cv_c_compiler_gnu
3466
3467
3468
3469
3470# Check whether --enable-polly was given.
3471if test "${enable_polly+set}" = set; then
3472 enableval=$enable_polly;
3473else
3474 enableval=default
3475fi
3476
3477case "$enableval" in
3478 yes) ENABLE_POLLY=1
3479 ;;
3480 no) ENABLE_POLLY=0
3481 ;;
3482 default) ENABLE_POLLY=1
3483 ;;
3484 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3485echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3486 { (exit 1); exit 1; }; } ;;
3487esac
3488
3489
3490if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3491 LLVM_HAS_POLLY=1
3492
3493 subdirs="$subdirs tools/polly"
3494
3495fi
3496
3497
3498# Make sure we can run config.sub.
3499$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3500 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3501echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3502 { (exit 1); exit 1; }; }
3503
3504{ echo "$as_me:$LINENO: checking build system type" >&5
3505echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3506if test "${ac_cv_build+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3508else
3509 ac_build_alias=$build_alias
3510test "x$ac_build_alias" = x &&
3511 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3512test "x$ac_build_alias" = x &&
3513 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3514echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3515 { (exit 1); exit 1; }; }
3516ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3517 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3518echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3519 { (exit 1); exit 1; }; }
3520
3521fi
3522{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3523echo "${ECHO_T}$ac_cv_build" >&6; }
3524case $ac_cv_build in
3525*-*-*) ;;
3526*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3527echo "$as_me: error: invalid value of canonical build" >&2;}
3528 { (exit 1); exit 1; }; };;
3529esac
3530build=$ac_cv_build
3531ac_save_IFS=$IFS; IFS='-'
3532set x $ac_cv_build
3533shift
3534build_cpu=$1
3535build_vendor=$2
3536shift; shift
3537# Remember, the first character of IFS is used to create $*,
3538# except with old shells:
3539build_os=$*
3540IFS=$ac_save_IFS
3541case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3542
3543
3544{ echo "$as_me:$LINENO: checking host system type" >&5
3545echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3546if test "${ac_cv_host+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548else
3549 if test "x$host_alias" = x; then
3550 ac_cv_host=$ac_cv_build
3551else
3552 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3553 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3554echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3555 { (exit 1); exit 1; }; }
3556fi
3557
3558fi
3559{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3560echo "${ECHO_T}$ac_cv_host" >&6; }
3561case $ac_cv_host in
3562*-*-*) ;;
3563*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3564echo "$as_me: error: invalid value of canonical host" >&2;}
3565 { (exit 1); exit 1; }; };;
3566esac
3567host=$ac_cv_host
3568ac_save_IFS=$IFS; IFS='-'
3569set x $ac_cv_host
3570shift
3571host_cpu=$1
3572host_vendor=$2
3573shift; shift
3574# Remember, the first character of IFS is used to create $*,
3575# except with old shells:
3576host_os=$*
3577IFS=$ac_save_IFS
3578case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3579
3580
3581{ echo "$as_me:$LINENO: checking target system type" >&5
3582echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3583if test "${ac_cv_target+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3585else
3586 if test "x$target_alias" = x; then
3587 ac_cv_target=$ac_cv_host
3588else
3589 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3590 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3591echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3592 { (exit 1); exit 1; }; }
3593fi
3594
3595fi
3596{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3597echo "${ECHO_T}$ac_cv_target" >&6; }
3598case $ac_cv_target in
3599*-*-*) ;;
3600*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3601echo "$as_me: error: invalid value of canonical target" >&2;}
3602 { (exit 1); exit 1; }; };;
3603esac
3604target=$ac_cv_target
3605ac_save_IFS=$IFS; IFS='-'
3606set x $ac_cv_target
3607shift
3608target_cpu=$1
3609target_vendor=$2
3610shift; shift
3611# Remember, the first character of IFS is used to create $*,
3612# except with old shells:
3613target_os=$*
3614IFS=$ac_save_IFS
3615case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3616
3617
3618# The aliases save the names the user supplied, while $host etc.
3619# will get canonicalized.
3620test -n "$target_alias" &&
3621 test "$program_prefix$program_suffix$program_transform_name" = \
3622 NONENONEs,x,x, &&
3623 program_prefix=${target_alias}-
3624
3625{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3626echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3627if test "${llvm_cv_os_type+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3629else
3630 case $host in
3631 *-*-aix*)
3632 llvm_cv_link_all_option="-Wl,--whole-archive"
3633 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3634 llvm_cv_os_type="AIX"
3635 llvm_cv_platform_type="Unix" ;;
3636 *-*-irix*)
3637 llvm_cv_link_all_option="-Wl,--whole-archive"
3638 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3639 llvm_cv_os_type="IRIX"
3640 llvm_cv_platform_type="Unix" ;;
3641 *-*-cygwin*)
3642 llvm_cv_link_all_option="-Wl,--whole-archive"
3643 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3644 llvm_cv_os_type="Cygwin"
3645 llvm_cv_platform_type="Unix" ;;
3646 *-*-darwin*)
3647 llvm_cv_link_all_option="-Wl,-all_load"
3648 llvm_cv_no_link_all_option="-Wl,-noall_load"
3649 llvm_cv_os_type="Darwin"
3650 llvm_cv_platform_type="Unix" ;;
3651 *-*-minix*)
3652 llvm_cv_link_all_option="-Wl,-all_load"
3653 llvm_cv_no_link_all_option="-Wl,-noall_load"
3654 llvm_cv_os_type="Minix"
3655 llvm_cv_platform_type="Unix" ;;
3656 *-*-freebsd*)
3657 llvm_cv_link_all_option="-Wl,--whole-archive"
3658 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3659 llvm_cv_os_type="FreeBSD"
3660 llvm_cv_platform_type="Unix" ;;
3661 *-*-openbsd*)
3662 llvm_cv_link_all_option="-Wl,--whole-archive"
3663 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3664 llvm_cv_os_type="OpenBSD"
3665 llvm_cv_platform_type="Unix" ;;
3666 *-*-netbsd*)
3667 llvm_cv_link_all_option="-Wl,--whole-archive"
3668 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3669 llvm_cv_os_type="NetBSD"
3670 llvm_cv_platform_type="Unix" ;;
3671 *-*-dragonfly*)
3672 llvm_cv_link_all_option="-Wl,--whole-archive"
3673 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3674 llvm_cv_os_type="DragonFly"
3675 llvm_cv_platform_type="Unix" ;;
3676 *-*-hpux*)
3677 llvm_cv_link_all_option="-Wl,--whole-archive"
3678 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3679 llvm_cv_os_type="HP-UX"
3680 llvm_cv_platform_type="Unix" ;;
3681 *-*-interix*)
3682 llvm_cv_link_all_option="-Wl,--whole-archive"
3683 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3684 llvm_cv_os_type="Interix"
3685 llvm_cv_platform_type="Unix" ;;
3686 *-*-linux*)
3687 llvm_cv_link_all_option="-Wl,--whole-archive"
3688 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3689 llvm_cv_os_type="Linux"
3690 llvm_cv_platform_type="Unix" ;;
3691 *-*-solaris*)
3692 llvm_cv_link_all_option="-Wl,-z,allextract"
3693 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3694 llvm_cv_os_type="SunOS"
3695 llvm_cv_platform_type="Unix" ;;
3696 *-*-auroraux*)
3697 llvm_cv_link_all_option="-Wl,-z,allextract"
3698 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3699 llvm_cv_os_type="AuroraUX"
3700 llvm_cv_platform_type="Unix" ;;
3701 *-*-win32*)
3702 llvm_cv_link_all_option="-Wl,--whole-archive"
3703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3704 llvm_cv_os_type="Win32"
3705 llvm_cv_platform_type="Win32" ;;
3706 *-*-mingw*)
3707 llvm_cv_link_all_option="-Wl,--whole-archive"
3708 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709 llvm_cv_os_type="MingW"
3710 llvm_cv_platform_type="Win32" ;;
3711 *-*-haiku*)
3712 llvm_cv_link_all_option="-Wl,--whole-archive"
3713 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714 llvm_cv_os_type="Haiku"
3715 llvm_cv_platform_type="Unix" ;;
3716 *-unknown-eabi*)
3717 llvm_cv_link_all_option="-Wl,--whole-archive"
3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719 llvm_cv_os_type="Freestanding"
3720 llvm_cv_platform_type="Unix" ;;
3721 *-unknown-elf*)
3722 llvm_cv_link_all_option="-Wl,--whole-archive"
3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724 llvm_cv_os_type="Freestanding"
3725 llvm_cv_platform_type="Unix" ;;
3726 *)
3727 llvm_cv_link_all_option=""
3728 llvm_cv_no_link_all_option=""
3729 llvm_cv_os_type="Unknown"
3730 llvm_cv_platform_type="Unknown" ;;
3731esac
3732fi
3733{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3734echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3735
3736{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3737echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3738if test "${llvm_cv_target_os_type+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3740else
3741 case $target in
3742 *-*-aix*)
3743 llvm_cv_target_os_type="AIX" ;;
3744 *-*-irix*)
3745 llvm_cv_target_os_type="IRIX" ;;
3746 *-*-cygwin*)
3747 llvm_cv_target_os_type="Cygwin" ;;
3748 *-*-darwin*)
3749 llvm_cv_target_os_type="Darwin" ;;
3750 *-*-minix*)
3751 llvm_cv_target_os_type="Minix" ;;
3752 *-*-freebsd*)
3753 llvm_cv_target_os_type="FreeBSD" ;;
3754 *-*-openbsd*)
3755 llvm_cv_target_os_type="OpenBSD" ;;
3756 *-*-netbsd*)
3757 llvm_cv_target_os_type="NetBSD" ;;
3758 *-*-dragonfly*)
3759 llvm_cv_target_os_type="DragonFly" ;;
3760 *-*-hpux*)
3761 llvm_cv_target_os_type="HP-UX" ;;
3762 *-*-interix*)
3763 llvm_cv_target_os_type="Interix" ;;
3764 *-*-linux*)
3765 llvm_cv_target_os_type="Linux" ;;
3766 *-*-solaris*)
3767 llvm_cv_target_os_type="SunOS" ;;
3768 *-*-auroraux*)
3769 llvm_cv_target_os_type="AuroraUX" ;;
3770 *-*-win32*)
3771 llvm_cv_target_os_type="Win32" ;;
3772 *-*-mingw*)
3773 llvm_cv_target_os_type="MingW" ;;
3774 *-*-haiku*)
3775 llvm_cv_target_os_type="Haiku" ;;
3776 *-*-rtems*)
3777 llvm_cv_target_os_type="RTEMS" ;;
3778 *-*-nacl*)
3779 llvm_cv_target_os_type="NativeClient" ;;
3780 *-unknown-eabi*)
3781 llvm_cv_target_os_type="Freestanding" ;;
3782 *)
3783 llvm_cv_target_os_type="Unknown" ;;
3784esac
3785fi
3786{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3787echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3788
3789if test "$llvm_cv_os_type" = "Unknown" ; then
3790 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3791echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3792 { (exit 1); exit 1; }; }
3793fi
3794
3795OS=$llvm_cv_os_type
3796
3797HOST_OS=$llvm_cv_os_type
3798
3799TARGET_OS=$llvm_cv_target_os_type
3800
3801
3802LINKALL=$llvm_cv_link_all_option
3803
3804NOLINKALL=$llvm_cv_no_link_all_option
3805
3806
3807case $llvm_cv_platform_type in
3808 Unix)
3809
3810cat >>confdefs.h <<\_ACEOF
3811#define LLVM_ON_UNIX 1
3812_ACEOF
3813
3814 LLVM_ON_UNIX=1
3815
3816 LLVM_ON_WIN32=0
3817
3818 ;;
3819 Win32)
3820
3821cat >>confdefs.h <<\_ACEOF
3822#define LLVM_ON_WIN32 1
3823_ACEOF
3824
3825 LLVM_ON_UNIX=0
3826
3827 LLVM_ON_WIN32=1
3828
3829 ;;
3830esac
3831
3832{ echo "$as_me:$LINENO: checking target architecture" >&5
3833echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3834if test "${llvm_cv_target_arch+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3836else
3837 case $target in
3838 i?86-*) llvm_cv_target_arch="x86" ;;
3839 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3840 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3841 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003842 arm*-*) llvm_cv_target_arch="ARM" ;;
3843 mips-*) llvm_cv_target_arch="Mips" ;;
3844 xcore-*) llvm_cv_target_arch="XCore" ;;
3845 msp430-*) llvm_cv_target_arch="MSP430" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00003846 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003847 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3848 ptx-*) llvm_cv_target_arch="PTX" ;;
3849 *) llvm_cv_target_arch="Unknown" ;;
3850esac
3851fi
3852{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3853echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3854
3855if test "$llvm_cv_target_arch" = "Unknown" ; then
3856 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3857echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3858fi
3859
3860# Determine the LLVM native architecture for the target
3861case "$llvm_cv_target_arch" in
3862 x86) LLVM_NATIVE_ARCH="X86" ;;
3863 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3864 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3865esac
3866
3867ARCH=$llvm_cv_target_arch
3868
3869
3870
3871
3872{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3873echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3874if test "${ac_cv_path_GREP+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3876else
3877 # Extract the first word of "grep ggrep" to use in msg output
3878if test -z "$GREP"; then
3879set dummy grep ggrep; ac_prog_name=$2
3880if test "${ac_cv_path_GREP+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3882else
3883 ac_path_GREP_found=false
3884# Loop through the user's path and test for each of PROGNAME-LIST
3885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3887do
3888 IFS=$as_save_IFS
3889 test -z "$as_dir" && as_dir=.
3890 for ac_prog in grep ggrep; do
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3893 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3894 # Check for GNU ac_path_GREP and select it if it is found.
3895 # Check for GNU $ac_path_GREP
3896case `"$ac_path_GREP" --version 2>&1` in
3897*GNU*)
3898 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3899*)
3900 ac_count=0
3901 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3902 while :
3903 do
3904 cat "conftest.in" "conftest.in" >"conftest.tmp"
3905 mv "conftest.tmp" "conftest.in"
3906 cp "conftest.in" "conftest.nl"
3907 echo 'GREP' >> "conftest.nl"
3908 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3909 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3910 ac_count=`expr $ac_count + 1`
3911 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3912 # Best one so far, save it but keep looking for a better one
3913 ac_cv_path_GREP="$ac_path_GREP"
3914 ac_path_GREP_max=$ac_count
3915 fi
3916 # 10*(2^10) chars as input seems more than enough
3917 test $ac_count -gt 10 && break
3918 done
3919 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3920esac
3921
3922
3923 $ac_path_GREP_found && break 3
3924 done
3925done
3926
3927done
3928IFS=$as_save_IFS
3929
3930
3931fi
3932
3933GREP="$ac_cv_path_GREP"
3934if test -z "$GREP"; then
3935 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3936echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3937 { (exit 1); exit 1; }; }
3938fi
3939
3940else
3941 ac_cv_path_GREP=$GREP
3942fi
3943
3944
3945fi
3946{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3947echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3948 GREP="$ac_cv_path_GREP"
3949
3950
3951{ echo "$as_me:$LINENO: checking for egrep" >&5
3952echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3953if test "${ac_cv_path_EGREP+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3955else
3956 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3957 then ac_cv_path_EGREP="$GREP -E"
3958 else
3959 # Extract the first word of "egrep" to use in msg output
3960if test -z "$EGREP"; then
3961set dummy egrep; ac_prog_name=$2
3962if test "${ac_cv_path_EGREP+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3964else
3965 ac_path_EGREP_found=false
3966# Loop through the user's path and test for each of PROGNAME-LIST
3967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3969do
3970 IFS=$as_save_IFS
3971 test -z "$as_dir" && as_dir=.
3972 for ac_prog in egrep; do
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3975 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3976 # Check for GNU ac_path_EGREP and select it if it is found.
3977 # Check for GNU $ac_path_EGREP
3978case `"$ac_path_EGREP" --version 2>&1` in
3979*GNU*)
3980 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3981*)
3982 ac_count=0
3983 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3984 while :
3985 do
3986 cat "conftest.in" "conftest.in" >"conftest.tmp"
3987 mv "conftest.tmp" "conftest.in"
3988 cp "conftest.in" "conftest.nl"
3989 echo 'EGREP' >> "conftest.nl"
3990 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3991 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3992 ac_count=`expr $ac_count + 1`
3993 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3994 # Best one so far, save it but keep looking for a better one
3995 ac_cv_path_EGREP="$ac_path_EGREP"
3996 ac_path_EGREP_max=$ac_count
3997 fi
3998 # 10*(2^10) chars as input seems more than enough
3999 test $ac_count -gt 10 && break
4000 done
4001 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4002esac
4003
4004
4005 $ac_path_EGREP_found && break 3
4006 done
4007done
4008
4009done
4010IFS=$as_save_IFS
4011
4012
4013fi
4014
4015EGREP="$ac_cv_path_EGREP"
4016if test -z "$EGREP"; then
4017 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4018echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4019 { (exit 1); exit 1; }; }
4020fi
4021
4022else
4023 ac_cv_path_EGREP=$EGREP
4024fi
4025
4026
4027 fi
4028fi
4029{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4030echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4031 EGREP="$ac_cv_path_EGREP"
4032
4033
4034{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4035echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4036if test "${ac_cv_header_stdc+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4038else
4039 cat >conftest.$ac_ext <<_ACEOF
4040/* confdefs.h. */
4041_ACEOF
4042cat confdefs.h >>conftest.$ac_ext
4043cat >>conftest.$ac_ext <<_ACEOF
4044/* end confdefs.h. */
4045#include <stdlib.h>
4046#include <stdarg.h>
4047#include <string.h>
4048#include <float.h>
4049
4050int
4051main ()
4052{
4053
4054 ;
4055 return 0;
4056}
4057_ACEOF
4058rm -f conftest.$ac_objext
4059if { (ac_try="$ac_compile"
4060case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4063esac
4064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_compile") 2>conftest.er1
4066 ac_status=$?
4067 grep -v '^ *+' conftest.er1 >conftest.err
4068 rm -f conftest.er1
4069 cat conftest.err >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } &&
4072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4073 { (case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4076esac
4077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078 (eval "$ac_try") 2>&5
4079 ac_status=$?
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; } &&
4082 { ac_try='test -s conftest.$ac_objext'
4083 { (case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4086esac
4087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088 (eval "$ac_try") 2>&5
4089 ac_status=$?
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; }; then
4092 ac_cv_header_stdc=yes
4093else
4094 echo "$as_me: failed program was:" >&5
4095sed 's/^/| /' conftest.$ac_ext >&5
4096
4097 ac_cv_header_stdc=no
4098fi
4099
4100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101
4102if test $ac_cv_header_stdc = yes; then
4103 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4104 cat >conftest.$ac_ext <<_ACEOF
4105/* confdefs.h. */
4106_ACEOF
4107cat confdefs.h >>conftest.$ac_ext
4108cat >>conftest.$ac_ext <<_ACEOF
4109/* end confdefs.h. */
4110#include <string.h>
4111
4112_ACEOF
4113if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4114 $EGREP "memchr" >/dev/null 2>&1; then
4115 :
4116else
4117 ac_cv_header_stdc=no
4118fi
4119rm -f conftest*
4120
4121fi
4122
4123if test $ac_cv_header_stdc = yes; then
4124 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4125 cat >conftest.$ac_ext <<_ACEOF
4126/* confdefs.h. */
4127_ACEOF
4128cat confdefs.h >>conftest.$ac_ext
4129cat >>conftest.$ac_ext <<_ACEOF
4130/* end confdefs.h. */
4131#include <stdlib.h>
4132
4133_ACEOF
4134if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4135 $EGREP "free" >/dev/null 2>&1; then
4136 :
4137else
4138 ac_cv_header_stdc=no
4139fi
4140rm -f conftest*
4141
4142fi
4143
4144if test $ac_cv_header_stdc = yes; then
4145 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4146 if test "$cross_compiling" = yes; then
4147 :
4148else
4149 cat >conftest.$ac_ext <<_ACEOF
4150/* confdefs.h. */
4151_ACEOF
4152cat confdefs.h >>conftest.$ac_ext
4153cat >>conftest.$ac_ext <<_ACEOF
4154/* end confdefs.h. */
4155#include <ctype.h>
4156#include <stdlib.h>
4157#if ((' ' & 0x0FF) == 0x020)
4158# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4159# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4160#else
4161# define ISLOWER(c) \
4162 (('a' <= (c) && (c) <= 'i') \
4163 || ('j' <= (c) && (c) <= 'r') \
4164 || ('s' <= (c) && (c) <= 'z'))
4165# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4166#endif
4167
4168#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4169int
4170main ()
4171{
4172 int i;
4173 for (i = 0; i < 256; i++)
4174 if (XOR (islower (i), ISLOWER (i))
4175 || toupper (i) != TOUPPER (i))
4176 return 2;
4177 return 0;
4178}
4179_ACEOF
4180rm -f conftest$ac_exeext
4181if { (ac_try="$ac_link"
4182case "(($ac_try" in
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4185esac
4186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_link") 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4191 { (case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4194esac
4195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_try") 2>&5
4197 ac_status=$?
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
4200 :
4201else
4202 echo "$as_me: program exited with status $ac_status" >&5
4203echo "$as_me: failed program was:" >&5
4204sed 's/^/| /' conftest.$ac_ext >&5
4205
4206( exit $ac_status )
4207ac_cv_header_stdc=no
4208fi
4209rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4210fi
4211
4212
4213fi
4214fi
4215{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4216echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4217if test $ac_cv_header_stdc = yes; then
4218
4219cat >>confdefs.h <<\_ACEOF
4220#define STDC_HEADERS 1
4221_ACEOF
4222
4223fi
4224
4225# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4236 inttypes.h stdint.h unistd.h
4237do
4238as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4239{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4241if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4243else
4244 cat >conftest.$ac_ext <<_ACEOF
4245/* confdefs.h. */
4246_ACEOF
4247cat confdefs.h >>conftest.$ac_ext
4248cat >>conftest.$ac_ext <<_ACEOF
4249/* end confdefs.h. */
4250$ac_includes_default
4251
4252#include <$ac_header>
4253_ACEOF
4254rm -f conftest.$ac_objext
4255if { (ac_try="$ac_compile"
4256case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259esac
4260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 (eval "$ac_compile") 2>conftest.er1
4262 ac_status=$?
4263 grep -v '^ *+' conftest.er1 >conftest.err
4264 rm -f conftest.er1
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } &&
4268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4269 { (case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272esac
4273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_try") 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; } &&
4278 { ac_try='test -s conftest.$ac_objext'
4279 { (case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4282esac
4283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284 (eval "$ac_try") 2>&5
4285 ac_status=$?
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; }; then
4288 eval "$as_ac_Header=yes"
4289else
4290 echo "$as_me: failed program was:" >&5
4291sed 's/^/| /' conftest.$ac_ext >&5
4292
4293 eval "$as_ac_Header=no"
4294fi
4295
4296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297fi
4298ac_res=`eval echo '${'$as_ac_Header'}'`
4299 { echo "$as_me:$LINENO: result: $ac_res" >&5
4300echo "${ECHO_T}$ac_res" >&6; }
4301if test `eval echo '${'$as_ac_Header'}'` = yes; then
4302 cat >>confdefs.h <<_ACEOF
4303#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4304_ACEOF
4305
4306fi
4307
4308done
4309
4310
4311{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4312echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4313if test "${ac_cv_c_bigendian+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4315else
4316 # See if sys/param.h defines the BYTE_ORDER macro.
4317cat >conftest.$ac_ext <<_ACEOF
4318/* confdefs.h. */
4319_ACEOF
4320cat confdefs.h >>conftest.$ac_ext
4321cat >>conftest.$ac_ext <<_ACEOF
4322/* end confdefs.h. */
4323#include <sys/types.h>
4324#include <sys/param.h>
4325
4326int
4327main ()
4328{
4329#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4330 bogus endian macros
4331#endif
4332
4333 ;
4334 return 0;
4335}
4336_ACEOF
4337rm -f conftest.$ac_objext
4338if { (ac_try="$ac_compile"
4339case "(($ac_try" in
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4342esac
4343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4344 (eval "$ac_compile") 2>conftest.er1
4345 ac_status=$?
4346 grep -v '^ *+' conftest.er1 >conftest.err
4347 rm -f conftest.er1
4348 cat conftest.err >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } &&
4351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4352 { (case "(($ac_try" in
4353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354 *) ac_try_echo=$ac_try;;
4355esac
4356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4357 (eval "$ac_try") 2>&5
4358 ac_status=$?
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; } &&
4361 { ac_try='test -s conftest.$ac_objext'
4362 { (case "(($ac_try" in
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4365esac
4366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4367 (eval "$ac_try") 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; }; then
4371 # It does; now see whether it defined to BIG_ENDIAN or not.
4372cat >conftest.$ac_ext <<_ACEOF
4373/* confdefs.h. */
4374_ACEOF
4375cat confdefs.h >>conftest.$ac_ext
4376cat >>conftest.$ac_ext <<_ACEOF
4377/* end confdefs.h. */
4378#include <sys/types.h>
4379#include <sys/param.h>
4380
4381int
4382main ()
4383{
4384#if BYTE_ORDER != BIG_ENDIAN
4385 not big endian
4386#endif
4387
4388 ;
4389 return 0;
4390}
4391_ACEOF
4392rm -f conftest.$ac_objext
4393if { (ac_try="$ac_compile"
4394case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397esac
4398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399 (eval "$ac_compile") 2>conftest.er1
4400 ac_status=$?
4401 grep -v '^ *+' conftest.er1 >conftest.err
4402 rm -f conftest.er1
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } &&
4406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4407 { (case "(($ac_try" in
4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 *) ac_try_echo=$ac_try;;
4410esac
4411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4412 (eval "$ac_try") 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; } &&
4416 { ac_try='test -s conftest.$ac_objext'
4417 { (case "(($ac_try" in
4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419 *) ac_try_echo=$ac_try;;
4420esac
4421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4422 (eval "$ac_try") 2>&5
4423 ac_status=$?
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; }; then
4426 ac_cv_c_bigendian=yes
4427else
4428 echo "$as_me: failed program was:" >&5
4429sed 's/^/| /' conftest.$ac_ext >&5
4430
4431 ac_cv_c_bigendian=no
4432fi
4433
4434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4435else
4436 echo "$as_me: failed program was:" >&5
4437sed 's/^/| /' conftest.$ac_ext >&5
4438
4439 # It does not; compile a test program.
4440if test "$cross_compiling" = yes; then
4441 # try to guess the endianness by grepping values into an object file
4442 ac_cv_c_bigendian=unknown
4443 cat >conftest.$ac_ext <<_ACEOF
4444/* confdefs.h. */
4445_ACEOF
4446cat confdefs.h >>conftest.$ac_ext
4447cat >>conftest.$ac_ext <<_ACEOF
4448/* end confdefs.h. */
4449short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4450short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4451void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4452short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4453short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4454void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4455int
4456main ()
4457{
4458 _ascii (); _ebcdic ();
4459 ;
4460 return 0;
4461}
4462_ACEOF
4463rm -f conftest.$ac_objext
4464if { (ac_try="$ac_compile"
4465case "(($ac_try" in
4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467 *) ac_try_echo=$ac_try;;
4468esac
4469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4470 (eval "$ac_compile") 2>conftest.er1
4471 ac_status=$?
4472 grep -v '^ *+' conftest.er1 >conftest.err
4473 rm -f conftest.er1
4474 cat conftest.err >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } &&
4477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4478 { (case "(($ac_try" in
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4481esac
4482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4483 (eval "$ac_try") 2>&5
4484 ac_status=$?
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); }; } &&
4487 { ac_try='test -s conftest.$ac_objext'
4488 { (case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491esac
4492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493 (eval "$ac_try") 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; }; then
4497 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4498 ac_cv_c_bigendian=yes
4499fi
4500if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4501 if test "$ac_cv_c_bigendian" = unknown; then
4502 ac_cv_c_bigendian=no
4503 else
4504 # finding both strings is unlikely to happen, but who knows?
4505 ac_cv_c_bigendian=unknown
4506 fi
4507fi
4508else
4509 echo "$as_me: failed program was:" >&5
4510sed 's/^/| /' conftest.$ac_ext >&5
4511
4512
4513fi
4514
4515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516else
4517 cat >conftest.$ac_ext <<_ACEOF
4518/* confdefs.h. */
4519_ACEOF
4520cat confdefs.h >>conftest.$ac_ext
4521cat >>conftest.$ac_ext <<_ACEOF
4522/* end confdefs.h. */
4523$ac_includes_default
4524int
4525main ()
4526{
4527
4528 /* Are we little or big endian? From Harbison&Steele. */
4529 union
4530 {
4531 long int l;
4532 char c[sizeof (long int)];
4533 } u;
4534 u.l = 1;
4535 return u.c[sizeof (long int) - 1] == 1;
4536
4537 ;
4538 return 0;
4539}
4540_ACEOF
4541rm -f conftest$ac_exeext
4542if { (ac_try="$ac_link"
4543case "(($ac_try" in
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4546esac
4547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_link") 2>&5
4549 ac_status=$?
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4552 { (case "(($ac_try" in
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4555esac
4556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4557 (eval "$ac_try") 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4561 ac_cv_c_bigendian=no
4562else
4563 echo "$as_me: program exited with status $ac_status" >&5
4564echo "$as_me: failed program was:" >&5
4565sed 's/^/| /' conftest.$ac_ext >&5
4566
4567( exit $ac_status )
4568ac_cv_c_bigendian=yes
4569fi
4570rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4571fi
4572
4573
4574fi
4575
4576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4577fi
4578{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4579echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4580case $ac_cv_c_bigendian in
4581 yes)
4582 ENDIAN=big
4583 ;;
4584 no)
4585 ENDIAN=little
4586 ;;
4587 *)
4588 { { echo "$as_me:$LINENO: error: unknown endianness
4589presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4590echo "$as_me: error: unknown endianness
4591presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4592 { (exit 1); exit 1; }; } ;;
4593esac
4594
4595
4596if test "$cross_compiling" = yes; then
4597 LLVM_CROSS_COMPILING=1
4598
4599
4600{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4601echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4602if test "${ac_cv_build_exeext+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4604else
4605 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4606 ac_cv_build_exeext=.exe
4607else
4608 ac_build_prefix=${build_alias}-
4609
4610 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4611set dummy ${ac_build_prefix}gcc; ac_word=$2
4612{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4614if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4616else
4617 if test -n "$BUILD_CC"; then
4618 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4619else
4620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621for as_dir in $PATH
4622do
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4627 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 break 2
4630 fi
4631done
4632done
4633IFS=$as_save_IFS
4634
4635fi
4636fi
4637BUILD_CC=$ac_cv_prog_BUILD_CC
4638if test -n "$BUILD_CC"; then
4639 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4640echo "${ECHO_T}$BUILD_CC" >&6; }
4641else
4642 { echo "$as_me:$LINENO: result: no" >&5
4643echo "${ECHO_T}no" >&6; }
4644fi
4645
4646
4647 if test -z "$BUILD_CC"; then
4648 # Extract the first word of "gcc", so it can be a program name with args.
4649set dummy gcc; ac_word=$2
4650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654else
4655 if test -n "$BUILD_CC"; then
4656 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4657else
4658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659for as_dir in $PATH
4660do
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4665 ac_cv_prog_BUILD_CC="gcc"
4666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4668 fi
4669done
4670done
4671IFS=$as_save_IFS
4672
4673fi
4674fi
4675BUILD_CC=$ac_cv_prog_BUILD_CC
4676if test -n "$BUILD_CC"; then
4677 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4678echo "${ECHO_T}$BUILD_CC" >&6; }
4679else
4680 { echo "$as_me:$LINENO: result: no" >&5
4681echo "${ECHO_T}no" >&6; }
4682fi
4683
4684
4685 if test -z "$BUILD_CC"; then
4686 # Extract the first word of "cc", so it can be a program name with args.
4687set dummy cc; ac_word=$2
4688{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4690if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4692else
4693 if test -n "$BUILD_CC"; then
4694 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4695else
4696 ac_prog_rejected=no
4697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4705 ac_prog_rejected=yes
4706 continue
4707 fi
4708 ac_cv_prog_BUILD_CC="cc"
4709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4711 fi
4712done
4713done
4714IFS=$as_save_IFS
4715
4716if test $ac_prog_rejected = yes; then
4717 # We found a bogon in the path, so make sure we never use it.
4718 set dummy $ac_cv_prog_BUILD_CC
4719 shift
4720 if test $# != 0; then
4721 # We chose a different compiler from the bogus one.
4722 # However, it has the same basename, so the bogon will be chosen
4723 # first if we set BUILD_CC to just the basename; use the full file name.
4724 shift
4725 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4726 fi
4727fi
4728fi
4729fi
4730BUILD_CC=$ac_cv_prog_BUILD_CC
4731if test -n "$BUILD_CC"; then
4732 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4733echo "${ECHO_T}$BUILD_CC" >&6; }
4734else
4735 { echo "$as_me:$LINENO: result: no" >&5
4736echo "${ECHO_T}no" >&6; }
4737fi
4738
4739
4740 fi
4741 fi
4742 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4743echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4744 { (exit 1); exit 1; }; }
4745 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4746 rm -f conftest*
4747 echo 'int main () { return 0; }' > conftest.$ac_ext
4748 ac_cv_build_exeext=
4749 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4750 (eval $ac_build_link) 2>&5
4751 ac_status=$?
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; then
4754 for file in conftest.*; do
4755 case $file in
4756 *.c | *.o | *.obj | *.dSYM) ;;
4757 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4758 esac
4759 done
4760 else
4761 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4762echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4763 { (exit 1); exit 1; }; }
4764 fi
4765 rm -f conftest*
4766 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4767fi
4768fi
4769
4770BUILD_EXEEXT=""
4771test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4772{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4773echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4774ac_build_exeext=$BUILD_EXEEXT
4775
4776 ac_build_prefix=${build_alias}-
4777 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4778set dummy ${ac_build_prefix}g++; ac_word=$2
4779{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4781if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4783else
4784 if test -n "$BUILD_CXX"; then
4785 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4786else
4787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788for as_dir in $PATH
4789do
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4794 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 break 2
4797 fi
4798done
4799done
4800IFS=$as_save_IFS
4801
4802fi
4803fi
4804BUILD_CXX=$ac_cv_prog_BUILD_CXX
4805if test -n "$BUILD_CXX"; then
4806 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4807echo "${ECHO_T}$BUILD_CXX" >&6; }
4808else
4809 { echo "$as_me:$LINENO: result: no" >&5
4810echo "${ECHO_T}no" >&6; }
4811fi
4812
4813
4814 if test -z "$BUILD_CXX"; then
4815 # Extract the first word of "g++", so it can be a program name with args.
4816set dummy g++; ac_word=$2
4817{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4819if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4821else
4822 if test -n "$BUILD_CXX"; then
4823 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4824else
4825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in $PATH
4827do
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_BUILD_CXX="g++"
4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 break 2
4835 fi
4836done
4837done
4838IFS=$as_save_IFS
4839
4840fi
4841fi
4842BUILD_CXX=$ac_cv_prog_BUILD_CXX
4843if test -n "$BUILD_CXX"; then
4844 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4845echo "${ECHO_T}$BUILD_CXX" >&6; }
4846else
4847 { echo "$as_me:$LINENO: result: no" >&5
4848echo "${ECHO_T}no" >&6; }
4849fi
4850
4851
4852 if test -z "$BUILD_CXX"; then
4853 # Extract the first word of "c++", so it can be a program name with args.
4854set dummy c++; ac_word=$2
4855{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4857if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4859else
4860 if test -n "$BUILD_CXX"; then
4861 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4862else
4863 ac_prog_rejected=no
4864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865for as_dir in $PATH
4866do
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4871 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4872 ac_prog_rejected=yes
4873 continue
4874 fi
4875 ac_cv_prog_BUILD_CXX="c++"
4876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 break 2
4878 fi
4879done
4880done
4881IFS=$as_save_IFS
4882
4883if test $ac_prog_rejected = yes; then
4884 # We found a bogon in the path, so make sure we never use it.
4885 set dummy $ac_cv_prog_BUILD_CXX
4886 shift
4887 if test $# != 0; then
4888 # We chose a different compiler from the bogus one.
4889 # However, it has the same basename, so the bogon will be chosen
4890 # first if we set BUILD_CXX to just the basename; use the full file name.
4891 shift
4892 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4893 fi
4894fi
4895fi
4896fi
4897BUILD_CXX=$ac_cv_prog_BUILD_CXX
4898if test -n "$BUILD_CXX"; then
4899 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4900echo "${ECHO_T}$BUILD_CXX" >&6; }
4901else
4902 { echo "$as_me:$LINENO: result: no" >&5
4903echo "${ECHO_T}no" >&6; }
4904fi
4905
4906
4907 fi
4908 fi
4909else
4910 LLVM_CROSS_COMPILING=0
4911
4912fi
4913
4914if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4915 cvsbuild="yes"
4916 optimize="no"
4917 CVSBUILD=CVSBUILD=1
4918
4919else
4920 cvsbuild="no"
4921 optimize="yes"
4922fi
4923
4924
4925# Check whether --enable-optimized was given.
4926if test "${enable_optimized+set}" = set; then
4927 enableval=$enable_optimized;
4928else
4929 enableval=$optimize
4930fi
4931
4932if test ${enableval} = "no" ; then
4933 ENABLE_OPTIMIZED=
4934
4935else
4936 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4937
4938fi
4939
4940# Check whether --enable-profiling was given.
4941if test "${enable_profiling+set}" = set; then
4942 enableval=$enable_profiling;
4943else
4944 enableval="no"
4945fi
4946
4947if test ${enableval} = "no" ; then
4948 ENABLE_PROFILING=
4949
4950else
4951 ENABLE_PROFILING=ENABLE_PROFILING=1
4952
4953fi
4954
4955# Check whether --enable-assertions was given.
4956if test "${enable_assertions+set}" = set; then
4957 enableval=$enable_assertions;
4958else
4959 enableval="yes"
4960fi
4961
4962if test ${enableval} = "yes" ; then
4963 DISABLE_ASSERTIONS=
4964
4965else
4966 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4967
4968fi
4969
4970# Check whether --enable-expensive-checks was given.
4971if test "${enable_expensive_checks+set}" = set; then
4972 enableval=$enable_expensive_checks;
4973else
4974 enableval="no"
4975fi
4976
4977if test ${enableval} = "yes" ; then
4978 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4979
4980 EXPENSIVE_CHECKS=yes
4981
4982else
4983 ENABLE_EXPENSIVE_CHECKS=
4984
4985 EXPENSIVE_CHECKS=no
4986
4987fi
4988
4989# Check whether --enable-debug-runtime was given.
4990if test "${enable_debug_runtime+set}" = set; then
4991 enableval=$enable_debug_runtime;
4992else
4993 enableval=no
4994fi
4995
4996if test ${enableval} = "no" ; then
4997 DEBUG_RUNTIME=
4998
4999else
5000 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5001
5002fi
5003
5004# Check whether --enable-debug-symbols was given.
5005if test "${enable_debug_symbols+set}" = set; then
5006 enableval=$enable_debug_symbols;
5007else
5008 enableval=no
5009fi
5010
5011if test ${enableval} = "no" ; then
5012 DEBUG_SYMBOLS=
5013
5014else
5015 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5016
5017fi
5018
5019# Check whether --enable-jit was given.
5020if test "${enable_jit+set}" = set; then
5021 enableval=$enable_jit;
5022else
5023 enableval=default
5024fi
5025
5026if test ${enableval} = "no"
5027then
5028 JIT=
5029
5030else
5031 case "$llvm_cv_target_arch" in
5032 x86) TARGET_HAS_JIT=1
5033 ;;
5034 Sparc) TARGET_HAS_JIT=0
5035 ;;
5036 PowerPC) TARGET_HAS_JIT=1
5037 ;;
5038 x86_64) TARGET_HAS_JIT=1
5039 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005040 ARM) TARGET_HAS_JIT=1
5041 ;;
5042 Mips) TARGET_HAS_JIT=1
5043 ;;
5044 XCore) TARGET_HAS_JIT=0
5045 ;;
5046 MSP430) TARGET_HAS_JIT=0
5047 ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005048 Hexagon) TARGET_HAS_JIT=0
5049 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005050 MBlaze) TARGET_HAS_JIT=0
5051 ;;
5052 PTX) TARGET_HAS_JIT=0
5053 ;;
5054 *) TARGET_HAS_JIT=0
5055 ;;
5056 esac
5057fi
5058
5059# Check whether --enable-docs was given.
5060if test "${enable_docs+set}" = set; then
5061 enableval=$enable_docs;
5062else
5063 enableval=default
5064fi
5065
5066case "$enableval" in
5067 yes) ENABLE_DOCS=1
5068 ;;
5069 no) ENABLE_DOCS=0
5070 ;;
5071 default) ENABLE_DOCS=1
5072 ;;
5073 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5074echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5075 { (exit 1); exit 1; }; } ;;
5076esac
5077
5078# Check whether --enable-doxygen was given.
5079if test "${enable_doxygen+set}" = set; then
5080 enableval=$enable_doxygen;
5081else
5082 enableval=default
5083fi
5084
5085case "$enableval" in
5086 yes) ENABLE_DOXYGEN=1
5087 ;;
5088 no) ENABLE_DOXYGEN=0
5089 ;;
5090 default) ENABLE_DOXYGEN=0
5091 ;;
5092 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5093echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5094 { (exit 1); exit 1; }; } ;;
5095esac
5096
5097# Check whether --enable-threads was given.
5098if test "${enable_threads+set}" = set; then
5099 enableval=$enable_threads;
5100else
5101 enableval=default
5102fi
5103
5104case "$enableval" in
5105 yes) ENABLE_THREADS=1
5106 ;;
5107 no) ENABLE_THREADS=0
5108 ;;
5109 default) ENABLE_THREADS=1
5110 ;;
5111 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5112echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5113 { (exit 1); exit 1; }; } ;;
5114esac
5115
5116cat >>confdefs.h <<_ACEOF
5117#define ENABLE_THREADS $ENABLE_THREADS
5118_ACEOF
5119
5120
5121# Check whether --enable-pthreads was given.
5122if test "${enable_pthreads+set}" = set; then
5123 enableval=$enable_pthreads;
5124else
5125 enableval=default
5126fi
5127
5128case "$enableval" in
5129 yes) ENABLE_PTHREADS=1
5130 ;;
5131 no) ENABLE_PTHREADS=0
5132 ;;
5133 default) ENABLE_PTHREADS=1
5134 ;;
5135 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5136echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5137 { (exit 1); exit 1; }; } ;;
5138esac
5139
5140# Check whether --enable-pic was given.
5141if test "${enable_pic+set}" = set; then
5142 enableval=$enable_pic;
5143else
5144 enableval=default
5145fi
5146
5147case "$enableval" in
5148 yes) ENABLE_PIC=1
5149 ;;
5150 no) ENABLE_PIC=0
5151 ;;
5152 default) ENABLE_PIC=1
5153 ;;
5154 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5155echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5156 { (exit 1); exit 1; }; } ;;
5157esac
5158
5159cat >>confdefs.h <<_ACEOF
5160#define ENABLE_PIC $ENABLE_PIC
5161_ACEOF
5162
5163
5164# Check whether --enable-shared was given.
5165if test "${enable_shared+set}" = set; then
5166 enableval=$enable_shared;
5167else
5168 enableval=default
5169fi
5170
5171case "$enableval" in
5172 yes) ENABLE_SHARED=1
5173 ;;
5174 no) ENABLE_SHARED=0
5175 ;;
5176 default) ENABLE_SHARED=0
5177 ;;
5178 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5179echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5180 { (exit 1); exit 1; }; } ;;
5181esac
5182
5183# Check whether --enable-embed-stdcxx was given.
5184if test "${enable_embed_stdcxx+set}" = set; then
5185 enableval=$enable_embed_stdcxx;
5186else
5187 enableval=default
5188fi
5189
5190case "$enableval" in
5191 yes) ENABLE_EMBED_STDCXX=1
5192 ;;
5193 no) ENABLE_EMBED_STDCXX=0
5194 ;;
5195 default) ENABLE_EMBED_STDCXX=1
5196 ;;
5197 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5198echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5199 { (exit 1); exit 1; }; } ;;
5200esac
5201
5202# Check whether --enable-timestamps was given.
5203if test "${enable_timestamps+set}" = set; then
5204 enableval=$enable_timestamps;
5205else
5206 enableval=default
5207fi
5208
5209case "$enableval" in
5210 yes) ENABLE_TIMESTAMPS=1
5211 ;;
5212 no) ENABLE_TIMESTAMPS=0
5213 ;;
5214 default) ENABLE_TIMESTAMPS=1
5215 ;;
5216 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5217echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5218 { (exit 1); exit 1; }; } ;;
5219esac
5220
5221cat >>confdefs.h <<_ACEOF
5222#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5223_ACEOF
5224
5225
5226TARGETS_TO_BUILD=""
5227# Check whether --enable-targets was given.
5228if test "${enable_targets+set}" = set; then
5229 enableval=$enable_targets;
5230else
5231 enableval=all
5232fi
5233
5234if test "$enableval" = host-only ; then
5235 enableval=host
5236fi
5237case "$enableval" in
Tony Linthicumb4b54152011-12-12 21:14:40 +00005238 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CBackend CppBackend MBlaze PTX" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005239 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5240 case "$a_target" in
5241 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5242 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5243 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5244 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005245 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5246 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5247 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5248 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5249 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005250 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005251 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5252 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5253 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5254 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5255 host) case "$llvm_cv_target_arch" in
5256 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5257 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5258 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5259 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005260 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5261 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5262 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5263 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5264 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5265 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Tony Linthicumb4b54152011-12-12 21:14:40 +00005266 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005267 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5268 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5269echo "$as_me: error: Can not set target to build" >&2;}
5270 { (exit 1); exit 1; }; } ;;
5271 esac ;;
5272 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5273echo "$as_me: error: Unrecognized target $a_target" >&2;}
5274 { (exit 1); exit 1; }; } ;;
5275 esac
5276 done
5277 ;;
5278esac
5279TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5280
5281
5282# Determine whether we are building LLVM support for the native architecture.
5283# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5284for a_target in $TARGETS_TO_BUILD; do
5285 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5286
5287cat >>confdefs.h <<_ACEOF
5288#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5289_ACEOF
5290
5291 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5292 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5293 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5294 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5295 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5296 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5297 fi
5298
5299cat >>confdefs.h <<_ACEOF
5300#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5301_ACEOF
5302
5303
5304cat >>confdefs.h <<_ACEOF
5305#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5306_ACEOF
5307
5308
5309cat >>confdefs.h <<_ACEOF
5310#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5311_ACEOF
5312
5313
5314cat >>confdefs.h <<_ACEOF
5315#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5316_ACEOF
5317
5318 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5319
5320cat >>confdefs.h <<_ACEOF
5321#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5322_ACEOF
5323
5324 fi
5325 fi
5326done
5327
5328# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5329# target feature def files.
5330LLVM_ENUM_TARGETS=""
5331LLVM_ENUM_ASM_PRINTERS=""
5332LLVM_ENUM_ASM_PARSERS=""
5333LLVM_ENUM_DISASSEMBLERS=""
5334for target_to_build in $TARGETS_TO_BUILD; do
5335 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5336 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5337 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5338 fi
5339 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5340 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5341 fi
5342 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5343 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5344 fi
5345done
5346
5347
5348
5349
5350
5351# Check whether --enable-cbe-printf-a was given.
5352if test "${enable_cbe_printf_a+set}" = set; then
5353 enableval=$enable_cbe_printf_a;
5354else
5355 enableval=default
5356fi
5357
5358case "$enableval" in
5359 yes) ENABLE_CBE_PRINTF_A=1
5360 ;;
5361 no) ENABLE_CBE_PRINTF_A=0
5362 ;;
5363 default) ENABLE_CBE_PRINTF_A=1
5364 ;;
5365 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5366echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5367 { (exit 1); exit 1; }; } ;;
5368esac
5369
5370cat >>confdefs.h <<_ACEOF
5371#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5372_ACEOF
5373
5374
5375
5376# Check whether --with-optimize-option was given.
5377if test "${with_optimize_option+set}" = set; then
5378 withval=$with_optimize_option;
5379else
5380 withval=default
5381fi
5382
5383{ echo "$as_me:$LINENO: checking optimization flags" >&5
5384echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5385case "$withval" in
5386 default)
5387 case "$llvm_cv_os_type" in
5388 FreeBSD) optimize_option=-O2 ;;
5389 MingW) optimize_option=-O2 ;;
5390 *) optimize_option=-O3 ;;
5391 esac ;;
5392 *) optimize_option="$withval" ;;
5393esac
5394OPTIMIZE_OPTION=$optimize_option
5395
5396{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5397echo "${ECHO_T}$optimize_option" >&6; }
5398
5399
5400# Check whether --with-extra-options was given.
5401if test "${with_extra_options+set}" = set; then
5402 withval=$with_extra_options;
5403else
5404 withval=default
5405fi
5406
5407case "$withval" in
5408 default) EXTRA_OPTIONS= ;;
5409 *) EXTRA_OPTIONS=$withval ;;
5410esac
5411EXTRA_OPTIONS=$EXTRA_OPTIONS
5412
5413
5414
5415# Check whether --with-extra-ld-options was given.
5416if test "${with_extra_ld_options+set}" = set; then
5417 withval=$with_extra_ld_options;
5418else
5419 withval=default
5420fi
5421
5422case "$withval" in
5423 default) EXTRA_LD_OPTIONS= ;;
5424 *) EXTRA_LD_OPTIONS=$withval ;;
5425esac
5426EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5427
5428
5429# Check whether --enable-bindings was given.
5430if test "${enable_bindings+set}" = set; then
5431 enableval=$enable_bindings;
5432else
5433 enableval=default
5434fi
5435
5436BINDINGS_TO_BUILD=""
5437case "$enableval" in
5438 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5439 all ) BINDINGS_TO_BUILD="ocaml" ;;
5440 none | no) BINDINGS_TO_BUILD="" ;;
5441 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5442 case "$a_binding" in
5443 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5444 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5445echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5446 { (exit 1); exit 1; }; } ;;
5447 esac
5448 done
5449 ;;
5450esac
5451
5452
5453# Check whether --with-ocaml-libdir was given.
5454if test "${with_ocaml_libdir+set}" = set; then
5455 withval=$with_ocaml_libdir;
5456else
5457 withval=auto
5458fi
5459
5460case "$withval" in
5461 auto) with_ocaml_libdir="$withval" ;;
5462 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5463 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5464echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5465 { (exit 1); exit 1; }; } ;;
5466esac
5467
5468
5469# Check whether --with-clang-resource-dir was given.
5470if test "${with_clang_resource_dir+set}" = set; then
5471 withval=$with_clang_resource_dir;
5472else
5473 withval=""
5474fi
5475
5476
5477cat >>confdefs.h <<_ACEOF
5478#define CLANG_RESOURCE_DIR "$withval"
5479_ACEOF
5480
5481
5482
5483# Check whether --with-c-include-dirs was given.
5484if test "${with_c_include_dirs+set}" = set; then
5485 withval=$with_c_include_dirs;
5486else
5487 withval=""
5488fi
5489
5490
5491cat >>confdefs.h <<_ACEOF
5492#define C_INCLUDE_DIRS "$withval"
5493_ACEOF
5494
5495
5496
5497# Check whether --with-cxx-include-root was given.
5498if test "${with_cxx_include_root+set}" = set; then
5499 withval=$with_cxx_include_root;
5500else
5501 withval=""
5502fi
5503
5504
5505cat >>confdefs.h <<_ACEOF
5506#define CXX_INCLUDE_ROOT "$withval"
5507_ACEOF
5508
5509
5510
5511# Check whether --with-cxx-include-arch was given.
5512if test "${with_cxx_include_arch+set}" = set; then
5513 withval=$with_cxx_include_arch;
5514else
5515 withval=""
5516fi
5517
5518
5519cat >>confdefs.h <<_ACEOF
5520#define CXX_INCLUDE_ARCH "$withval"
5521_ACEOF
5522
5523
5524
5525# Check whether --with-cxx-include-32bit-dir was given.
5526if test "${with_cxx_include_32bit_dir+set}" = set; then
5527 withval=$with_cxx_include_32bit_dir;
5528else
5529 withval=""
5530fi
5531
5532
5533cat >>confdefs.h <<_ACEOF
5534#define CXX_INCLUDE_32BIT_DIR "$withval"
5535_ACEOF
5536
5537
5538
5539# Check whether --with-cxx-include-64bit-dir was given.
5540if test "${with_cxx_include_64bit_dir+set}" = set; then
5541 withval=$with_cxx_include_64bit_dir;
5542else
5543 withval=""
5544fi
5545
5546
5547cat >>confdefs.h <<_ACEOF
5548#define CXX_INCLUDE_64BIT_DIR "$withval"
5549_ACEOF
5550
5551
5552
5553# Check whether --with-binutils-include was given.
5554if test "${with_binutils_include+set}" = set; then
5555 withval=$with_binutils_include;
5556else
5557 withval=default
5558fi
5559
5560case "$withval" in
5561 default) WITH_BINUTILS_INCDIR=default ;;
5562 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5563 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5564echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5565 { (exit 1); exit 1; }; } ;;
5566esac
5567if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5568 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5569
5570 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5571 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5572 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5573echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5574 { (exit 1); exit 1; }; };
5575 fi
5576fi
5577
5578
5579# Check whether --with-bug-report-url was given.
5580if test "${with_bug_report_url+set}" = set; then
5581 withval=$with_bug_report_url;
5582else
5583 withval="http://llvm.org/bugs/"
5584fi
5585
5586
5587cat >>confdefs.h <<_ACEOF
5588#define BUG_REPORT_URL "$withval"
5589_ACEOF
5590
5591
5592# Check whether --enable-libffi was given.
5593if test "${enable_libffi+set}" = set; then
5594 enableval=$enable_libffi; case "$enableval" in
5595 yes) llvm_cv_enable_libffi="yes" ;;
5596 no) llvm_cv_enable_libffi="no" ;;
5597 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5598echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5599 { (exit 1); exit 1; }; } ;;
5600 esac
5601else
5602 llvm_cv_enable_libffi=no
5603fi
5604
5605
5606
5607{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5608echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5609if test "${lt_cv_path_NM+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5611else
5612 if test -n "$NM"; then
5613 # Let the user override the test.
5614 lt_cv_path_NM="$NM"
5615else
5616 lt_nm_to_check="${ac_tool_prefix}nm"
5617 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5618 lt_nm_to_check="$lt_nm_to_check nm"
5619 fi
5620 for lt_tmp_nm in $lt_nm_to_check; do
5621 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5622 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5623 IFS="$lt_save_ifs"
5624 test -z "$ac_dir" && ac_dir=.
5625 tmp_nm="$ac_dir/$lt_tmp_nm"
5626 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5627 # Check to see if the nm accepts a BSD-compat flag.
5628 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5629 # nm: unknown option "B" ignored
5630 # Tru64's nm complains that /dev/null is an invalid object file
5631 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5632 */dev/null* | *'Invalid file or object type'*)
5633 lt_cv_path_NM="$tmp_nm -B"
5634 break
5635 ;;
5636 *)
5637 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5638 */dev/null*)
5639 lt_cv_path_NM="$tmp_nm -p"
5640 break
5641 ;;
5642 *)
5643 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5644 continue # so that we can try to find one that supports BSD flags
5645 ;;
5646 esac
5647 ;;
5648 esac
5649 fi
5650 done
5651 IFS="$lt_save_ifs"
5652 done
5653 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5654fi
5655fi
5656{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5657echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5658NM="$lt_cv_path_NM"
5659
5660
5661
5662{ echo "$as_me:$LINENO: checking for GNU make" >&5
5663echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5664if test "${llvm_cv_gnu_make_command+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5666else
5667 llvm_cv_gnu_make_command=''
5668 for a in "$MAKE" make gmake gnumake ; do
5669 if test -z "$a" ; then continue ; fi ;
5670 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5671 then
5672 llvm_cv_gnu_make_command=$a ;
5673 break;
5674 fi
5675 done
5676fi
5677{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5678echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5679 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5680 ifGNUmake='' ;
5681 else
5682 ifGNUmake='#' ;
5683 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5684echo "${ECHO_T}\"Not found\"" >&6; };
5685 fi
5686
5687
5688{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5689echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5690LN_S=$as_ln_s
5691if test "$LN_S" = "ln -s"; then
5692 { echo "$as_me:$LINENO: result: yes" >&5
5693echo "${ECHO_T}yes" >&6; }
5694else
5695 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5696echo "${ECHO_T}no, using $LN_S" >&6; }
5697fi
5698
5699# Extract the first word of "cmp", so it can be a program name with args.
5700set dummy cmp; ac_word=$2
5701{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5703if test "${ac_cv_path_CMP+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5705else
5706 case $CMP in
5707 [\\/]* | ?:[\\/]*)
5708 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5709 ;;
5710 *)
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712for as_dir in $PATH
5713do
5714 IFS=$as_save_IFS
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5718 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5720 break 2
5721 fi
5722done
5723done
5724IFS=$as_save_IFS
5725
5726 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5727 ;;
5728esac
5729fi
5730CMP=$ac_cv_path_CMP
5731if test -n "$CMP"; then
5732 { echo "$as_me:$LINENO: result: $CMP" >&5
5733echo "${ECHO_T}$CMP" >&6; }
5734else
5735 { echo "$as_me:$LINENO: result: no" >&5
5736echo "${ECHO_T}no" >&6; }
5737fi
5738
5739
5740# Extract the first word of "cp", so it can be a program name with args.
5741set dummy cp; ac_word=$2
5742{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5744if test "${ac_cv_path_CP+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5746else
5747 case $CP in
5748 [\\/]* | ?:[\\/]*)
5749 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5750 ;;
5751 *)
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753for as_dir in $PATH
5754do
5755 IFS=$as_save_IFS
5756 test -z "$as_dir" && as_dir=.
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5759 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5761 break 2
5762 fi
5763done
5764done
5765IFS=$as_save_IFS
5766
5767 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5768 ;;
5769esac
5770fi
5771CP=$ac_cv_path_CP
5772if test -n "$CP"; then
5773 { echo "$as_me:$LINENO: result: $CP" >&5
5774echo "${ECHO_T}$CP" >&6; }
5775else
5776 { echo "$as_me:$LINENO: result: no" >&5
5777echo "${ECHO_T}no" >&6; }
5778fi
5779
5780
5781# Extract the first word of "date", so it can be a program name with args.
5782set dummy date; ac_word=$2
5783{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5785if test "${ac_cv_path_DATE+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5787else
5788 case $DATE in
5789 [\\/]* | ?:[\\/]*)
5790 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5791 ;;
5792 *)
5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794for as_dir in $PATH
5795do
5796 IFS=$as_save_IFS
5797 test -z "$as_dir" && as_dir=.
5798 for ac_exec_ext in '' $ac_executable_extensions; do
5799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5800 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5802 break 2
5803 fi
5804done
5805done
5806IFS=$as_save_IFS
5807
5808 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5809 ;;
5810esac
5811fi
5812DATE=$ac_cv_path_DATE
5813if test -n "$DATE"; then
5814 { echo "$as_me:$LINENO: result: $DATE" >&5
5815echo "${ECHO_T}$DATE" >&6; }
5816else
5817 { echo "$as_me:$LINENO: result: no" >&5
5818echo "${ECHO_T}no" >&6; }
5819fi
5820
5821
5822# Extract the first word of "find", so it can be a program name with args.
5823set dummy find; ac_word=$2
5824{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5826if test "${ac_cv_path_FIND+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5828else
5829 case $FIND in
5830 [\\/]* | ?:[\\/]*)
5831 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5832 ;;
5833 *)
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835for as_dir in $PATH
5836do
5837 IFS=$as_save_IFS
5838 test -z "$as_dir" && as_dir=.
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5841 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5843 break 2
5844 fi
5845done
5846done
5847IFS=$as_save_IFS
5848
5849 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5850 ;;
5851esac
5852fi
5853FIND=$ac_cv_path_FIND
5854if test -n "$FIND"; then
5855 { echo "$as_me:$LINENO: result: $FIND" >&5
5856echo "${ECHO_T}$FIND" >&6; }
5857else
5858 { echo "$as_me:$LINENO: result: no" >&5
5859echo "${ECHO_T}no" >&6; }
5860fi
5861
5862
5863# Extract the first word of "grep", so it can be a program name with args.
5864set dummy grep; ac_word=$2
5865{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5867if test "${ac_cv_path_GREP+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5869else
5870 case $GREP in
5871 [\\/]* | ?:[\\/]*)
5872 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5873 ;;
5874 *)
5875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876for as_dir in $PATH
5877do
5878 IFS=$as_save_IFS
5879 test -z "$as_dir" && as_dir=.
5880 for ac_exec_ext in '' $ac_executable_extensions; do
5881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5882 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5884 break 2
5885 fi
5886done
5887done
5888IFS=$as_save_IFS
5889
5890 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5891 ;;
5892esac
5893fi
5894GREP=$ac_cv_path_GREP
5895if test -n "$GREP"; then
5896 { echo "$as_me:$LINENO: result: $GREP" >&5
5897echo "${ECHO_T}$GREP" >&6; }
5898else
5899 { echo "$as_me:$LINENO: result: no" >&5
5900echo "${ECHO_T}no" >&6; }
5901fi
5902
5903
5904# Extract the first word of "mkdir", so it can be a program name with args.
5905set dummy mkdir; ac_word=$2
5906{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5908if test "${ac_cv_path_MKDIR+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5910else
5911 case $MKDIR in
5912 [\\/]* | ?:[\\/]*)
5913 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5914 ;;
5915 *)
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917for as_dir in $PATH
5918do
5919 IFS=$as_save_IFS
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5923 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 break 2
5926 fi
5927done
5928done
5929IFS=$as_save_IFS
5930
5931 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5932 ;;
5933esac
5934fi
5935MKDIR=$ac_cv_path_MKDIR
5936if test -n "$MKDIR"; then
5937 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5938echo "${ECHO_T}$MKDIR" >&6; }
5939else
5940 { echo "$as_me:$LINENO: result: no" >&5
5941echo "${ECHO_T}no" >&6; }
5942fi
5943
5944
5945# Extract the first word of "mv", so it can be a program name with args.
5946set dummy mv; ac_word=$2
5947{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5949if test "${ac_cv_path_MV+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5951else
5952 case $MV in
5953 [\\/]* | ?:[\\/]*)
5954 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5955 ;;
5956 *)
5957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958for as_dir in $PATH
5959do
5960 IFS=$as_save_IFS
5961 test -z "$as_dir" && as_dir=.
5962 for ac_exec_ext in '' $ac_executable_extensions; do
5963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5964 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5966 break 2
5967 fi
5968done
5969done
5970IFS=$as_save_IFS
5971
5972 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5973 ;;
5974esac
5975fi
5976MV=$ac_cv_path_MV
5977if test -n "$MV"; then
5978 { echo "$as_me:$LINENO: result: $MV" >&5
5979echo "${ECHO_T}$MV" >&6; }
5980else
5981 { echo "$as_me:$LINENO: result: no" >&5
5982echo "${ECHO_T}no" >&6; }
5983fi
5984
5985
5986if test -n "$ac_tool_prefix"; then
5987 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5988set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5989{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5991if test "${ac_cv_prog_RANLIB+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5993else
5994 if test -n "$RANLIB"; then
5995 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5996else
5997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998for as_dir in $PATH
5999do
6000 IFS=$as_save_IFS
6001 test -z "$as_dir" && as_dir=.
6002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6004 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6006 break 2
6007 fi
6008done
6009done
6010IFS=$as_save_IFS
6011
6012fi
6013fi
6014RANLIB=$ac_cv_prog_RANLIB
6015if test -n "$RANLIB"; then
6016 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6017echo "${ECHO_T}$RANLIB" >&6; }
6018else
6019 { echo "$as_me:$LINENO: result: no" >&5
6020echo "${ECHO_T}no" >&6; }
6021fi
6022
6023
6024fi
6025if test -z "$ac_cv_prog_RANLIB"; then
6026 ac_ct_RANLIB=$RANLIB
6027 # Extract the first word of "ranlib", so it can be a program name with args.
6028set dummy ranlib; ac_word=$2
6029{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6031if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6033else
6034 if test -n "$ac_ct_RANLIB"; then
6035 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6036else
6037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038for as_dir in $PATH
6039do
6040 IFS=$as_save_IFS
6041 test -z "$as_dir" && as_dir=.
6042 for ac_exec_ext in '' $ac_executable_extensions; do
6043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6044 ac_cv_prog_ac_ct_RANLIB="ranlib"
6045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6046 break 2
6047 fi
6048done
6049done
6050IFS=$as_save_IFS
6051
6052fi
6053fi
6054ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6055if test -n "$ac_ct_RANLIB"; then
6056 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6057echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6058else
6059 { echo "$as_me:$LINENO: result: no" >&5
6060echo "${ECHO_T}no" >&6; }
6061fi
6062
6063 if test "x$ac_ct_RANLIB" = x; then
6064 RANLIB=":"
6065 else
6066 case $cross_compiling:$ac_tool_warned in
6067yes:)
6068{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6069whose name does not start with the host triplet. If you think this
6070configuration is useful to you, please write to autoconf@gnu.org." >&5
6071echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6072whose name does not start with the host triplet. If you think this
6073configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6074ac_tool_warned=yes ;;
6075esac
6076 RANLIB=$ac_ct_RANLIB
6077 fi
6078else
6079 RANLIB="$ac_cv_prog_RANLIB"
6080fi
6081
6082if test -n "$ac_tool_prefix"; then
6083 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6084set dummy ${ac_tool_prefix}ar; ac_word=$2
6085{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6087if test "${ac_cv_prog_AR+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6089else
6090 if test -n "$AR"; then
6091 ac_cv_prog_AR="$AR" # Let the user override the test.
6092else
6093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094for as_dir in $PATH
6095do
6096 IFS=$as_save_IFS
6097 test -z "$as_dir" && as_dir=.
6098 for ac_exec_ext in '' $ac_executable_extensions; do
6099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6100 ac_cv_prog_AR="${ac_tool_prefix}ar"
6101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6102 break 2
6103 fi
6104done
6105done
6106IFS=$as_save_IFS
6107
6108fi
6109fi
6110AR=$ac_cv_prog_AR
6111if test -n "$AR"; then
6112 { echo "$as_me:$LINENO: result: $AR" >&5
6113echo "${ECHO_T}$AR" >&6; }
6114else
6115 { echo "$as_me:$LINENO: result: no" >&5
6116echo "${ECHO_T}no" >&6; }
6117fi
6118
6119
6120fi
6121if test -z "$ac_cv_prog_AR"; then
6122 ac_ct_AR=$AR
6123 # Extract the first word of "ar", so it can be a program name with args.
6124set dummy ar; ac_word=$2
6125{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6127if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6129else
6130 if test -n "$ac_ct_AR"; then
6131 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6132else
6133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134for as_dir in $PATH
6135do
6136 IFS=$as_save_IFS
6137 test -z "$as_dir" && as_dir=.
6138 for ac_exec_ext in '' $ac_executable_extensions; do
6139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6140 ac_cv_prog_ac_ct_AR="ar"
6141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 break 2
6143 fi
6144done
6145done
6146IFS=$as_save_IFS
6147
6148fi
6149fi
6150ac_ct_AR=$ac_cv_prog_ac_ct_AR
6151if test -n "$ac_ct_AR"; then
6152 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6153echo "${ECHO_T}$ac_ct_AR" >&6; }
6154else
6155 { echo "$as_me:$LINENO: result: no" >&5
6156echo "${ECHO_T}no" >&6; }
6157fi
6158
6159 if test "x$ac_ct_AR" = x; then
6160 AR="false"
6161 else
6162 case $cross_compiling:$ac_tool_warned in
6163yes:)
6164{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6165whose name does not start with the host triplet. If you think this
6166configuration is useful to you, please write to autoconf@gnu.org." >&5
6167echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6168whose name does not start with the host triplet. If you think this
6169configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6170ac_tool_warned=yes ;;
6171esac
6172 AR=$ac_ct_AR
6173 fi
6174else
6175 AR="$ac_cv_prog_AR"
6176fi
6177
6178# Extract the first word of "rm", so it can be a program name with args.
6179set dummy rm; ac_word=$2
6180{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6182if test "${ac_cv_path_RM+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6184else
6185 case $RM in
6186 [\\/]* | ?:[\\/]*)
6187 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6188 ;;
6189 *)
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191for as_dir in $PATH
6192do
6193 IFS=$as_save_IFS
6194 test -z "$as_dir" && as_dir=.
6195 for ac_exec_ext in '' $ac_executable_extensions; do
6196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6197 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199 break 2
6200 fi
6201done
6202done
6203IFS=$as_save_IFS
6204
6205 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6206 ;;
6207esac
6208fi
6209RM=$ac_cv_path_RM
6210if test -n "$RM"; then
6211 { echo "$as_me:$LINENO: result: $RM" >&5
6212echo "${ECHO_T}$RM" >&6; }
6213else
6214 { echo "$as_me:$LINENO: result: no" >&5
6215echo "${ECHO_T}no" >&6; }
6216fi
6217
6218
6219# Extract the first word of "sed", so it can be a program name with args.
6220set dummy sed; ac_word=$2
6221{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6223if test "${ac_cv_path_SED+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6225else
6226 case $SED in
6227 [\\/]* | ?:[\\/]*)
6228 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6229 ;;
6230 *)
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232for as_dir in $PATH
6233do
6234 IFS=$as_save_IFS
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6238 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 break 2
6241 fi
6242done
6243done
6244IFS=$as_save_IFS
6245
6246 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6247 ;;
6248esac
6249fi
6250SED=$ac_cv_path_SED
6251if test -n "$SED"; then
6252 { echo "$as_me:$LINENO: result: $SED" >&5
6253echo "${ECHO_T}$SED" >&6; }
6254else
6255 { echo "$as_me:$LINENO: result: no" >&5
6256echo "${ECHO_T}no" >&6; }
6257fi
6258
6259
6260# Extract the first word of "tar", so it can be a program name with args.
6261set dummy tar; ac_word=$2
6262{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6264if test "${ac_cv_path_TAR+set}" = set; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6266else
6267 case $TAR in
6268 [\\/]* | ?:[\\/]*)
6269 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6270 ;;
6271 *)
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273for as_dir in $PATH
6274do
6275 IFS=$as_save_IFS
6276 test -z "$as_dir" && as_dir=.
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6279 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6281 break 2
6282 fi
6283done
6284done
6285IFS=$as_save_IFS
6286
6287 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6288 ;;
6289esac
6290fi
6291TAR=$ac_cv_path_TAR
6292if test -n "$TAR"; then
6293 { echo "$as_me:$LINENO: result: $TAR" >&5
6294echo "${ECHO_T}$TAR" >&6; }
6295else
6296 { echo "$as_me:$LINENO: result: no" >&5
6297echo "${ECHO_T}no" >&6; }
6298fi
6299
6300
6301# Extract the first word of "pwd", so it can be a program name with args.
6302set dummy pwd; ac_word=$2
6303{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6305if test "${ac_cv_path_BINPWD+set}" = set; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6307else
6308 case $BINPWD in
6309 [\\/]* | ?:[\\/]*)
6310 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6311 ;;
6312 *)
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314for as_dir in $PATH
6315do
6316 IFS=$as_save_IFS
6317 test -z "$as_dir" && as_dir=.
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6320 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322 break 2
6323 fi
6324done
6325done
6326IFS=$as_save_IFS
6327
6328 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6329 ;;
6330esac
6331fi
6332BINPWD=$ac_cv_path_BINPWD
6333if test -n "$BINPWD"; then
6334 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6335echo "${ECHO_T}$BINPWD" >&6; }
6336else
6337 { echo "$as_me:$LINENO: result: no" >&5
6338echo "${ECHO_T}no" >&6; }
6339fi
6340
6341
6342
6343# Extract the first word of "Graphviz", so it can be a program name with args.
6344set dummy Graphviz; ac_word=$2
6345{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6347if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6349else
6350 case $GRAPHVIZ in
6351 [\\/]* | ?:[\\/]*)
6352 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6353 ;;
6354 *)
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356for as_dir in $PATH
6357do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6362 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 break 2
6365 fi
6366done
6367done
6368IFS=$as_save_IFS
6369
6370 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6371 ;;
6372esac
6373fi
6374GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6375if test -n "$GRAPHVIZ"; then
6376 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6377echo "${ECHO_T}$GRAPHVIZ" >&6; }
6378else
6379 { echo "$as_me:$LINENO: result: no" >&5
6380echo "${ECHO_T}no" >&6; }
6381fi
6382
6383
6384if test "$GRAPHVIZ" != "echo Graphviz" ; then
6385
6386cat >>confdefs.h <<\_ACEOF
6387#define HAVE_GRAPHVIZ 1
6388_ACEOF
6389
6390 if test "$llvm_cv_os_type" = "MingW" ; then
6391 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6392 fi
6393
6394cat >>confdefs.h <<_ACEOF
6395#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6396_ACEOF
6397
6398fi
6399# Extract the first word of "dot", so it can be a program name with args.
6400set dummy dot; ac_word=$2
6401{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6403if test "${ac_cv_path_DOT+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6405else
6406 case $DOT in
6407 [\\/]* | ?:[\\/]*)
6408 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6409 ;;
6410 *)
6411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412for as_dir in $PATH
6413do
6414 IFS=$as_save_IFS
6415 test -z "$as_dir" && as_dir=.
6416 for ac_exec_ext in '' $ac_executable_extensions; do
6417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6418 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6420 break 2
6421 fi
6422done
6423done
6424IFS=$as_save_IFS
6425
6426 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6427 ;;
6428esac
6429fi
6430DOT=$ac_cv_path_DOT
6431if test -n "$DOT"; then
6432 { echo "$as_me:$LINENO: result: $DOT" >&5
6433echo "${ECHO_T}$DOT" >&6; }
6434else
6435 { echo "$as_me:$LINENO: result: no" >&5
6436echo "${ECHO_T}no" >&6; }
6437fi
6438
6439
6440if test "$DOT" != "echo dot" ; then
6441
6442cat >>confdefs.h <<\_ACEOF
6443#define HAVE_DOT 1
6444_ACEOF
6445
6446 if test "$llvm_cv_os_type" = "MingW" ; then
6447 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6448 fi
6449
6450cat >>confdefs.h <<_ACEOF
6451#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6452_ACEOF
6453
6454fi
6455# Extract the first word of "fdp", so it can be a program name with args.
6456set dummy fdp; ac_word=$2
6457{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6459if test "${ac_cv_path_FDP+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6461else
6462 case $FDP in
6463 [\\/]* | ?:[\\/]*)
6464 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6465 ;;
6466 *)
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468for as_dir in $PATH
6469do
6470 IFS=$as_save_IFS
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6474 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 break 2
6477 fi
6478done
6479done
6480IFS=$as_save_IFS
6481
6482 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6483 ;;
6484esac
6485fi
6486FDP=$ac_cv_path_FDP
6487if test -n "$FDP"; then
6488 { echo "$as_me:$LINENO: result: $FDP" >&5
6489echo "${ECHO_T}$FDP" >&6; }
6490else
6491 { echo "$as_me:$LINENO: result: no" >&5
6492echo "${ECHO_T}no" >&6; }
6493fi
6494
6495
6496if test "$FDP" != "echo fdp" ; then
6497
6498cat >>confdefs.h <<\_ACEOF
6499#define HAVE_FDP 1
6500_ACEOF
6501
6502 if test "$llvm_cv_os_type" = "MingW" ; then
6503 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6504 fi
6505
6506cat >>confdefs.h <<_ACEOF
6507#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6508_ACEOF
6509
6510fi
6511# Extract the first word of "neato", so it can be a program name with args.
6512set dummy neato; ac_word=$2
6513{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6515if test "${ac_cv_path_NEATO+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6517else
6518 case $NEATO in
6519 [\\/]* | ?:[\\/]*)
6520 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6521 ;;
6522 *)
6523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524for as_dir in $PATH
6525do
6526 IFS=$as_save_IFS
6527 test -z "$as_dir" && as_dir=.
6528 for ac_exec_ext in '' $ac_executable_extensions; do
6529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6530 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6532 break 2
6533 fi
6534done
6535done
6536IFS=$as_save_IFS
6537
6538 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6539 ;;
6540esac
6541fi
6542NEATO=$ac_cv_path_NEATO
6543if test -n "$NEATO"; then
6544 { echo "$as_me:$LINENO: result: $NEATO" >&5
6545echo "${ECHO_T}$NEATO" >&6; }
6546else
6547 { echo "$as_me:$LINENO: result: no" >&5
6548echo "${ECHO_T}no" >&6; }
6549fi
6550
6551
6552if test "$NEATO" != "echo neato" ; then
6553
6554cat >>confdefs.h <<\_ACEOF
6555#define HAVE_NEATO 1
6556_ACEOF
6557
6558 if test "$llvm_cv_os_type" = "MingW" ; then
6559 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6560 fi
6561
6562cat >>confdefs.h <<_ACEOF
6563#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6564_ACEOF
6565
6566fi
6567# Extract the first word of "twopi", so it can be a program name with args.
6568set dummy twopi; ac_word=$2
6569{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6571if test "${ac_cv_path_TWOPI+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6573else
6574 case $TWOPI in
6575 [\\/]* | ?:[\\/]*)
6576 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6577 ;;
6578 *)
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580for as_dir in $PATH
6581do
6582 IFS=$as_save_IFS
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6586 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6588 break 2
6589 fi
6590done
6591done
6592IFS=$as_save_IFS
6593
6594 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6595 ;;
6596esac
6597fi
6598TWOPI=$ac_cv_path_TWOPI
6599if test -n "$TWOPI"; then
6600 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6601echo "${ECHO_T}$TWOPI" >&6; }
6602else
6603 { echo "$as_me:$LINENO: result: no" >&5
6604echo "${ECHO_T}no" >&6; }
6605fi
6606
6607
6608if test "$TWOPI" != "echo twopi" ; then
6609
6610cat >>confdefs.h <<\_ACEOF
6611#define HAVE_TWOPI 1
6612_ACEOF
6613
6614 if test "$llvm_cv_os_type" = "MingW" ; then
6615 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6616 fi
6617
6618cat >>confdefs.h <<_ACEOF
6619#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6620_ACEOF
6621
6622fi
6623# Extract the first word of "circo", so it can be a program name with args.
6624set dummy circo; ac_word=$2
6625{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6627if test "${ac_cv_path_CIRCO+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6629else
6630 case $CIRCO in
6631 [\\/]* | ?:[\\/]*)
6632 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6633 ;;
6634 *)
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636for as_dir in $PATH
6637do
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6645 fi
6646done
6647done
6648IFS=$as_save_IFS
6649
6650 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6651 ;;
6652esac
6653fi
6654CIRCO=$ac_cv_path_CIRCO
6655if test -n "$CIRCO"; then
6656 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6657echo "${ECHO_T}$CIRCO" >&6; }
6658else
6659 { echo "$as_me:$LINENO: result: no" >&5
6660echo "${ECHO_T}no" >&6; }
6661fi
6662
6663
6664if test "$CIRCO" != "echo circo" ; then
6665
6666cat >>confdefs.h <<\_ACEOF
6667#define HAVE_CIRCO 1
6668_ACEOF
6669
6670 if test "$llvm_cv_os_type" = "MingW" ; then
6671 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6672 fi
6673
6674cat >>confdefs.h <<_ACEOF
6675#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6676_ACEOF
6677
6678fi
6679for ac_prog in gv gsview32
6680do
6681 # Extract the first word of "$ac_prog", so it can be a program name with args.
6682set dummy $ac_prog; ac_word=$2
6683{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6685if test "${ac_cv_path_GV+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6687else
6688 case $GV in
6689 [\\/]* | ?:[\\/]*)
6690 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6691 ;;
6692 *)
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694for as_dir in $PATH
6695do
6696 IFS=$as_save_IFS
6697 test -z "$as_dir" && as_dir=.
6698 for ac_exec_ext in '' $ac_executable_extensions; do
6699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6700 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 break 2
6703 fi
6704done
6705done
6706IFS=$as_save_IFS
6707
6708 ;;
6709esac
6710fi
6711GV=$ac_cv_path_GV
6712if test -n "$GV"; then
6713 { echo "$as_me:$LINENO: result: $GV" >&5
6714echo "${ECHO_T}$GV" >&6; }
6715else
6716 { echo "$as_me:$LINENO: result: no" >&5
6717echo "${ECHO_T}no" >&6; }
6718fi
6719
6720
6721 test -n "$GV" && break
6722done
6723test -n "$GV" || GV="echo gv"
6724
6725if test "$GV" != "echo gv" ; then
6726
6727cat >>confdefs.h <<\_ACEOF
6728#define HAVE_GV 1
6729_ACEOF
6730
6731 if test "$llvm_cv_os_type" = "MingW" ; then
6732 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6733 fi
6734
6735cat >>confdefs.h <<_ACEOF
6736#define LLVM_PATH_GV "$GV${EXEEXT}"
6737_ACEOF
6738
6739fi
6740# Extract the first word of "dotty", so it can be a program name with args.
6741set dummy dotty; ac_word=$2
6742{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744if test "${ac_cv_path_DOTTY+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6746else
6747 case $DOTTY in
6748 [\\/]* | ?:[\\/]*)
6749 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6750 ;;
6751 *)
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753for as_dir in $PATH
6754do
6755 IFS=$as_save_IFS
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6759 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 break 2
6762 fi
6763done
6764done
6765IFS=$as_save_IFS
6766
6767 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6768 ;;
6769esac
6770fi
6771DOTTY=$ac_cv_path_DOTTY
6772if test -n "$DOTTY"; then
6773 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6774echo "${ECHO_T}$DOTTY" >&6; }
6775else
6776 { echo "$as_me:$LINENO: result: no" >&5
6777echo "${ECHO_T}no" >&6; }
6778fi
6779
6780
6781if test "$DOTTY" != "echo dotty" ; then
6782
6783cat >>confdefs.h <<\_ACEOF
6784#define HAVE_DOTTY 1
6785_ACEOF
6786
6787 if test "$llvm_cv_os_type" = "MingW" ; then
6788 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6789 fi
6790
6791cat >>confdefs.h <<_ACEOF
6792#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6793_ACEOF
6794
6795fi
6796# Extract the first word of "xdot.py", so it can be a program name with args.
6797set dummy xdot.py; ac_word=$2
6798{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6800if test "${ac_cv_path_XDOT_PY+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
6802else
6803 case $XDOT_PY in
6804 [\\/]* | ?:[\\/]*)
6805 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6806 ;;
6807 *)
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809for as_dir in $PATH
6810do
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 break 2
6818 fi
6819done
6820done
6821IFS=$as_save_IFS
6822
6823 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6824 ;;
6825esac
6826fi
6827XDOT_PY=$ac_cv_path_XDOT_PY
6828if test -n "$XDOT_PY"; then
6829 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6830echo "${ECHO_T}$XDOT_PY" >&6; }
6831else
6832 { echo "$as_me:$LINENO: result: no" >&5
6833echo "${ECHO_T}no" >&6; }
6834fi
6835
6836
6837if test "$XDOT_PY" != "echo xdot.py" ; then
6838
6839cat >>confdefs.h <<\_ACEOF
6840#define HAVE_XDOT_PY 1
6841_ACEOF
6842
6843 if test "$llvm_cv_os_type" = "MingW" ; then
6844 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6845 fi
6846
6847cat >>confdefs.h <<_ACEOF
6848#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6849_ACEOF
6850
6851fi
6852
6853
6854# Extract the first word of "perl", so it can be a program name with args.
6855set dummy perl; ac_word=$2
6856{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858if test "${ac_cv_path_PERL+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6860else
6861 case $PERL in
6862 [\\/]* | ?:[\\/]*)
6863 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6864 ;;
6865 *)
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867for as_dir in $PATH
6868do
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6873 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 break 2
6876 fi
6877done
6878done
6879IFS=$as_save_IFS
6880
6881 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6882 ;;
6883esac
6884fi
6885PERL=$ac_cv_path_PERL
6886if test -n "$PERL"; then
6887 { echo "$as_me:$LINENO: result: $PERL" >&5
6888echo "${ECHO_T}$PERL" >&6; }
6889else
6890 { echo "$as_me:$LINENO: result: no" >&5
6891echo "${ECHO_T}no" >&6; }
6892fi
6893
6894
6895if test "$PERL" != "none"; then
6896 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6897echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6898 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6899 { echo "$as_me:$LINENO: result: yes" >&5
6900echo "${ECHO_T}yes" >&6; }
6901 else
6902 PERL=none
6903 { echo "$as_me:$LINENO: result: not found" >&5
6904echo "${ECHO_T}not found" >&6; }
6905 fi
6906fi
6907
6908
6909if test x"$PERL" = xnone; then
6910 HAVE_PERL=0
6911
6912 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6913echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6914 { (exit 1); exit 1; }; }
6915else
6916 HAVE_PERL=1
6917
6918fi
6919
6920# Find a good install program. We prefer a C program (faster),
6921# so one script is as good as another. But avoid the broken or
6922# incompatible versions:
6923# SysV /etc/install, /usr/sbin/install
6924# SunOS /usr/etc/install
6925# IRIX /sbin/install
6926# AIX /bin/install
6927# AmigaOS /C/install, which installs bootblocks on floppy discs
6928# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6929# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6930# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6931# OS/2's system install, which has a completely different semantic
6932# ./install, which can be erroneously created by make from ./install.sh.
6933{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6934echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6935if test -z "$INSTALL"; then
6936if test "${ac_cv_path_install+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6938else
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940for as_dir in $PATH
6941do
6942 IFS=$as_save_IFS
6943 test -z "$as_dir" && as_dir=.
6944 # Account for people who put trailing slashes in PATH elements.
6945case $as_dir/ in
6946 ./ | .// | /cC/* | \
6947 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6948 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6949 /usr/ucb/* ) ;;
6950 *)
6951 # OSF1 and SCO ODT 3.0 have their own names for install.
6952 # Don't use installbsd from OSF since it installs stuff as root
6953 # by default.
6954 for ac_prog in ginstall scoinst install; do
6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6957 if test $ac_prog = install &&
6958 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6959 # AIX install. It has an incompatible calling convention.
6960 :
6961 elif test $ac_prog = install &&
6962 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6963 # program-specific install script used by HP pwplus--don't use.
6964 :
6965 else
6966 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6967 break 3
6968 fi
6969 fi
6970 done
6971 done
6972 ;;
6973esac
6974done
6975IFS=$as_save_IFS
6976
6977
6978fi
6979 if test "${ac_cv_path_install+set}" = set; then
6980 INSTALL=$ac_cv_path_install
6981 else
6982 # As a last resort, use the slow shell script. Don't cache a
6983 # value for INSTALL within a source directory, because that will
6984 # break other packages using the cache if that directory is
6985 # removed, or if the value is a relative name.
6986 INSTALL=$ac_install_sh
6987 fi
6988fi
6989{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6990echo "${ECHO_T}$INSTALL" >&6; }
6991
6992# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6993# It thinks the first close brace ends the variable substitution.
6994test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6995
6996test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6997
6998test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6999
7000case "$INSTALL" in
7001 [\\/$]* | ?:[\\/]* ) ;;
7002 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7003esac
7004
7005# Extract the first word of "bzip2", so it can be a program name with args.
7006set dummy bzip2; ac_word=$2
7007{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7009if test "${ac_cv_path_BZIP2+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7011else
7012 case $BZIP2 in
7013 [\\/]* | ?:[\\/]*)
7014 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7015 ;;
7016 *)
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018for as_dir in $PATH
7019do
7020 IFS=$as_save_IFS
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7024 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 break 2
7027 fi
7028done
7029done
7030IFS=$as_save_IFS
7031
7032 ;;
7033esac
7034fi
7035BZIP2=$ac_cv_path_BZIP2
7036if test -n "$BZIP2"; then
7037 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7038echo "${ECHO_T}$BZIP2" >&6; }
7039else
7040 { echo "$as_me:$LINENO: result: no" >&5
7041echo "${ECHO_T}no" >&6; }
7042fi
7043
7044
7045# Extract the first word of "cat", so it can be a program name with args.
7046set dummy cat; ac_word=$2
7047{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7049if test "${ac_cv_path_CAT+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7051else
7052 case $CAT in
7053 [\\/]* | ?:[\\/]*)
7054 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7055 ;;
7056 *)
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058for as_dir in $PATH
7059do
7060 IFS=$as_save_IFS
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7064 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7066 break 2
7067 fi
7068done
7069done
7070IFS=$as_save_IFS
7071
7072 ;;
7073esac
7074fi
7075CAT=$ac_cv_path_CAT
7076if test -n "$CAT"; then
7077 { echo "$as_me:$LINENO: result: $CAT" >&5
7078echo "${ECHO_T}$CAT" >&6; }
7079else
7080 { echo "$as_me:$LINENO: result: no" >&5
7081echo "${ECHO_T}no" >&6; }
7082fi
7083
7084
7085# Extract the first word of "doxygen", so it can be a program name with args.
7086set dummy doxygen; ac_word=$2
7087{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089if test "${ac_cv_path_DOXYGEN+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7091else
7092 case $DOXYGEN in
7093 [\\/]* | ?:[\\/]*)
7094 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7095 ;;
7096 *)
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098for as_dir in $PATH
7099do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7104 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7107 fi
7108done
7109done
7110IFS=$as_save_IFS
7111
7112 ;;
7113esac
7114fi
7115DOXYGEN=$ac_cv_path_DOXYGEN
7116if test -n "$DOXYGEN"; then
7117 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7118echo "${ECHO_T}$DOXYGEN" >&6; }
7119else
7120 { echo "$as_me:$LINENO: result: no" >&5
7121echo "${ECHO_T}no" >&6; }
7122fi
7123
7124
7125# Extract the first word of "groff", so it can be a program name with args.
7126set dummy groff; ac_word=$2
7127{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129if test "${ac_cv_path_GROFF+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7131else
7132 case $GROFF in
7133 [\\/]* | ?:[\\/]*)
7134 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7135 ;;
7136 *)
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138for as_dir in $PATH
7139do
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7144 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7147 fi
7148done
7149done
7150IFS=$as_save_IFS
7151
7152 ;;
7153esac
7154fi
7155GROFF=$ac_cv_path_GROFF
7156if test -n "$GROFF"; then
7157 { echo "$as_me:$LINENO: result: $GROFF" >&5
7158echo "${ECHO_T}$GROFF" >&6; }
7159else
7160 { echo "$as_me:$LINENO: result: no" >&5
7161echo "${ECHO_T}no" >&6; }
7162fi
7163
7164
7165# Extract the first word of "gzip", so it can be a program name with args.
7166set dummy gzip; ac_word=$2
7167{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7169if test "${ac_cv_path_GZIPBIN+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7171else
7172 case $GZIPBIN in
7173 [\\/]* | ?:[\\/]*)
7174 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7175 ;;
7176 *)
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178for as_dir in $PATH
7179do
7180 IFS=$as_save_IFS
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7184 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 break 2
7187 fi
7188done
7189done
7190IFS=$as_save_IFS
7191
7192 ;;
7193esac
7194fi
7195GZIPBIN=$ac_cv_path_GZIPBIN
7196if test -n "$GZIPBIN"; then
7197 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7198echo "${ECHO_T}$GZIPBIN" >&6; }
7199else
7200 { echo "$as_me:$LINENO: result: no" >&5
7201echo "${ECHO_T}no" >&6; }
7202fi
7203
7204
7205# Extract the first word of "pod2html", so it can be a program name with args.
7206set dummy pod2html; ac_word=$2
7207{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7209if test "${ac_cv_path_POD2HTML+set}" = set; then
7210 echo $ECHO_N "(cached) $ECHO_C" >&6
7211else
7212 case $POD2HTML in
7213 [\\/]* | ?:[\\/]*)
7214 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7215 ;;
7216 *)
7217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218for as_dir in $PATH
7219do
7220 IFS=$as_save_IFS
7221 test -z "$as_dir" && as_dir=.
7222 for ac_exec_ext in '' $ac_executable_extensions; do
7223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7224 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7226 break 2
7227 fi
7228done
7229done
7230IFS=$as_save_IFS
7231
7232 ;;
7233esac
7234fi
7235POD2HTML=$ac_cv_path_POD2HTML
7236if test -n "$POD2HTML"; then
7237 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7238echo "${ECHO_T}$POD2HTML" >&6; }
7239else
7240 { echo "$as_me:$LINENO: result: no" >&5
7241echo "${ECHO_T}no" >&6; }
7242fi
7243
7244
7245# Extract the first word of "pod2man", so it can be a program name with args.
7246set dummy pod2man; ac_word=$2
7247{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7249if test "${ac_cv_path_POD2MAN+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7251else
7252 case $POD2MAN in
7253 [\\/]* | ?:[\\/]*)
7254 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7255 ;;
7256 *)
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258for as_dir in $PATH
7259do
7260 IFS=$as_save_IFS
7261 test -z "$as_dir" && as_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7264 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266 break 2
7267 fi
7268done
7269done
7270IFS=$as_save_IFS
7271
7272 ;;
7273esac
7274fi
7275POD2MAN=$ac_cv_path_POD2MAN
7276if test -n "$POD2MAN"; then
7277 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7278echo "${ECHO_T}$POD2MAN" >&6; }
7279else
7280 { echo "$as_me:$LINENO: result: no" >&5
7281echo "${ECHO_T}no" >&6; }
7282fi
7283
7284
7285# Extract the first word of "pdfroff", so it can be a program name with args.
7286set dummy pdfroff; ac_word=$2
7287{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7289if test "${ac_cv_path_PDFROFF+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7291else
7292 case $PDFROFF in
7293 [\\/]* | ?:[\\/]*)
7294 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7295 ;;
7296 *)
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298for as_dir in $PATH
7299do
7300 IFS=$as_save_IFS
7301 test -z "$as_dir" && as_dir=.
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7304 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7306 break 2
7307 fi
7308done
7309done
7310IFS=$as_save_IFS
7311
7312 ;;
7313esac
7314fi
7315PDFROFF=$ac_cv_path_PDFROFF
7316if test -n "$PDFROFF"; then
7317 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7318echo "${ECHO_T}$PDFROFF" >&6; }
7319else
7320 { echo "$as_me:$LINENO: result: no" >&5
7321echo "${ECHO_T}no" >&6; }
7322fi
7323
7324
7325# Extract the first word of "runtest", so it can be a program name with args.
7326set dummy runtest; ac_word=$2
7327{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7329if test "${ac_cv_path_RUNTEST+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7331else
7332 case $RUNTEST in
7333 [\\/]* | ?:[\\/]*)
7334 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7335 ;;
7336 *)
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338for as_dir in $PATH
7339do
7340 IFS=$as_save_IFS
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7344 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7346 break 2
7347 fi
7348done
7349done
7350IFS=$as_save_IFS
7351
7352 ;;
7353esac
7354fi
7355RUNTEST=$ac_cv_path_RUNTEST
7356if test -n "$RUNTEST"; then
7357 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7358echo "${ECHO_T}$RUNTEST" >&6; }
7359else
7360 { echo "$as_me:$LINENO: result: no" >&5
7361echo "${ECHO_T}no" >&6; }
7362fi
7363
7364
7365
7366no_itcl=true
7367{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7368echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7369
7370# Check whether --with-tclinclude was given.
7371if test "${with_tclinclude+set}" = set; then
7372 withval=$with_tclinclude; with_tclinclude=${withval}
7373else
7374 with_tclinclude=''
7375fi
7376
7377if test "${ac_cv_path_tclsh+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7379else
7380
7381if test x"${with_tclinclude}" != x ; then
7382 if test -f ${with_tclinclude}/tclsh ; then
7383 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7384 elif test -f ${with_tclinclude}/src/tclsh ; then
7385 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7386 else
7387 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7388echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7389 { (exit 1); exit 1; }; }
7390 fi
7391fi
7392fi
7393
7394
7395if test x"${ac_cv_path_tclsh}" = x ; then
7396 { echo "$as_me:$LINENO: result: none" >&5
7397echo "${ECHO_T}none" >&6; }
7398 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
7399do
7400 # Extract the first word of "$ac_prog", so it can be a program name with args.
7401set dummy $ac_prog; ac_word=$2
7402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7404if test "${ac_cv_path_TCLSH+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7406else
7407 case $TCLSH in
7408 [\\/]* | ?:[\\/]*)
7409 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7410 ;;
7411 *)
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413for as_dir in $PATH
7414do
7415 IFS=$as_save_IFS
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7419 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 break 2
7422 fi
7423done
7424done
7425IFS=$as_save_IFS
7426
7427 ;;
7428esac
7429fi
7430TCLSH=$ac_cv_path_TCLSH
7431if test -n "$TCLSH"; then
7432 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7433echo "${ECHO_T}$TCLSH" >&6; }
7434else
7435 { echo "$as_me:$LINENO: result: no" >&5
7436echo "${ECHO_T}no" >&6; }
7437fi
7438
7439
7440 test -n "$TCLSH" && break
7441done
7442
7443 if test x"${TCLSH}" = x ; then
7444 ac_cv_path_tclsh='';
7445 else
7446 ac_cv_path_tclsh="${TCLSH}";
7447 fi
7448else
7449 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7450echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7451 TCLSH="${ac_cv_path_tclsh}"
7452
7453fi
7454
7455# Extract the first word of "zip", so it can be a program name with args.
7456set dummy zip; ac_word=$2
7457{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7459if test "${ac_cv_path_ZIP+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7461else
7462 case $ZIP in
7463 [\\/]* | ?:[\\/]*)
7464 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7465 ;;
7466 *)
7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468for as_dir in $PATH
7469do
7470 IFS=$as_save_IFS
7471 test -z "$as_dir" && as_dir=.
7472 for ac_exec_ext in '' $ac_executable_extensions; do
7473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7474 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7476 break 2
7477 fi
7478done
7479done
7480IFS=$as_save_IFS
7481
7482 ;;
7483esac
7484fi
7485ZIP=$ac_cv_path_ZIP
7486if test -n "$ZIP"; then
7487 { echo "$as_me:$LINENO: result: $ZIP" >&5
7488echo "${ECHO_T}$ZIP" >&6; }
7489else
7490 { echo "$as_me:$LINENO: result: no" >&5
7491echo "${ECHO_T}no" >&6; }
7492fi
7493
7494
7495for ac_prog in ocamlc
7496do
7497 # Extract the first word of "$ac_prog", so it can be a program name with args.
7498set dummy $ac_prog; ac_word=$2
7499{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7501if test "${ac_cv_path_OCAMLC+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7503else
7504 case $OCAMLC in
7505 [\\/]* | ?:[\\/]*)
7506 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7507 ;;
7508 *)
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510for as_dir in $PATH
7511do
7512 IFS=$as_save_IFS
7513 test -z "$as_dir" && as_dir=.
7514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7516 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 break 2
7519 fi
7520done
7521done
7522IFS=$as_save_IFS
7523
7524 ;;
7525esac
7526fi
7527OCAMLC=$ac_cv_path_OCAMLC
7528if test -n "$OCAMLC"; then
7529 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7530echo "${ECHO_T}$OCAMLC" >&6; }
7531else
7532 { echo "$as_me:$LINENO: result: no" >&5
7533echo "${ECHO_T}no" >&6; }
7534fi
7535
7536
7537 test -n "$OCAMLC" && break
7538done
7539
7540for ac_prog in ocamlopt
7541do
7542 # Extract the first word of "$ac_prog", so it can be a program name with args.
7543set dummy $ac_prog; ac_word=$2
7544{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7546if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7548else
7549 case $OCAMLOPT in
7550 [\\/]* | ?:[\\/]*)
7551 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7552 ;;
7553 *)
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555for as_dir in $PATH
7556do
7557 IFS=$as_save_IFS
7558 test -z "$as_dir" && as_dir=.
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7561 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7563 break 2
7564 fi
7565done
7566done
7567IFS=$as_save_IFS
7568
7569 ;;
7570esac
7571fi
7572OCAMLOPT=$ac_cv_path_OCAMLOPT
7573if test -n "$OCAMLOPT"; then
7574 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7575echo "${ECHO_T}$OCAMLOPT" >&6; }
7576else
7577 { echo "$as_me:$LINENO: result: no" >&5
7578echo "${ECHO_T}no" >&6; }
7579fi
7580
7581
7582 test -n "$OCAMLOPT" && break
7583done
7584
7585for ac_prog in ocamldep
7586do
7587 # Extract the first word of "$ac_prog", so it can be a program name with args.
7588set dummy $ac_prog; ac_word=$2
7589{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7591if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7593else
7594 case $OCAMLDEP in
7595 [\\/]* | ?:[\\/]*)
7596 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7597 ;;
7598 *)
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600for as_dir in $PATH
7601do
7602 IFS=$as_save_IFS
7603 test -z "$as_dir" && as_dir=.
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7606 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 break 2
7609 fi
7610done
7611done
7612IFS=$as_save_IFS
7613
7614 ;;
7615esac
7616fi
7617OCAMLDEP=$ac_cv_path_OCAMLDEP
7618if test -n "$OCAMLDEP"; then
7619 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7620echo "${ECHO_T}$OCAMLDEP" >&6; }
7621else
7622 { echo "$as_me:$LINENO: result: no" >&5
7623echo "${ECHO_T}no" >&6; }
7624fi
7625
7626
7627 test -n "$OCAMLDEP" && break
7628done
7629
7630for ac_prog in ocamldoc
7631do
7632 # Extract the first word of "$ac_prog", so it can be a program name with args.
7633set dummy $ac_prog; ac_word=$2
7634{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7636if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7638else
7639 case $OCAMLDOC in
7640 [\\/]* | ?:[\\/]*)
7641 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7642 ;;
7643 *)
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645for as_dir in $PATH
7646do
7647 IFS=$as_save_IFS
7648 test -z "$as_dir" && as_dir=.
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7651 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7653 break 2
7654 fi
7655done
7656done
7657IFS=$as_save_IFS
7658
7659 ;;
7660esac
7661fi
7662OCAMLDOC=$ac_cv_path_OCAMLDOC
7663if test -n "$OCAMLDOC"; then
7664 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7665echo "${ECHO_T}$OCAMLDOC" >&6; }
7666else
7667 { echo "$as_me:$LINENO: result: no" >&5
7668echo "${ECHO_T}no" >&6; }
7669fi
7670
7671
7672 test -n "$OCAMLDOC" && break
7673done
7674
7675for ac_prog in gas as
7676do
7677 # Extract the first word of "$ac_prog", so it can be a program name with args.
7678set dummy $ac_prog; ac_word=$2
7679{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7681if test "${ac_cv_path_GAS+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7683else
7684 case $GAS in
7685 [\\/]* | ?:[\\/]*)
7686 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7687 ;;
7688 *)
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690for as_dir in $PATH
7691do
7692 IFS=$as_save_IFS
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7696 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7698 break 2
7699 fi
7700done
7701done
7702IFS=$as_save_IFS
7703
7704 ;;
7705esac
7706fi
7707GAS=$ac_cv_path_GAS
7708if test -n "$GAS"; then
7709 { echo "$as_me:$LINENO: result: $GAS" >&5
7710echo "${ECHO_T}$GAS" >&6; }
7711else
7712 { echo "$as_me:$LINENO: result: no" >&5
7713echo "${ECHO_T}no" >&6; }
7714fi
7715
7716
7717 test -n "$GAS" && break
7718done
7719
7720
7721{ echo "$as_me:$LINENO: checking for linker version" >&5
7722echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7723if test "${llvm_cv_link_version+set}" = set; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
7725else
7726
7727 version_string="$(ld -v 2>&1 | head -1)"
7728
7729 # Check for ld64.
7730 if (echo "$version_string" | grep -q "ld64"); then
7731 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7732 else
7733 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7734 fi
7735
7736fi
7737{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7738echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7739
7740cat >>confdefs.h <<_ACEOF
7741#define HOST_LINK_VERSION "$llvm_cv_link_version"
7742_ACEOF
7743
7744
7745
7746{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7747echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7748if test "${llvm_cv_link_use_r+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7750else
7751 ac_ext=c
7752ac_cpp='$CPP $CPPFLAGS'
7753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7755ac_compiler_gnu=$ac_cv_c_compiler_gnu
7756
7757 oldcflags="$CFLAGS"
7758 CFLAGS="$CFLAGS -Wl,-R."
7759 cat >conftest.$ac_ext <<_ACEOF
7760/* confdefs.h. */
7761_ACEOF
7762cat confdefs.h >>conftest.$ac_ext
7763cat >>conftest.$ac_ext <<_ACEOF
7764/* end confdefs.h. */
7765
7766int
7767main ()
7768{
7769
7770 ;
7771 return 0;
7772}
7773_ACEOF
7774rm -f conftest.$ac_objext conftest$ac_exeext
7775if { (ac_try="$ac_link"
7776case "(($ac_try" in
7777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7778 *) ac_try_echo=$ac_try;;
7779esac
7780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7781 (eval "$ac_link") 2>conftest.er1
7782 ac_status=$?
7783 grep -v '^ *+' conftest.er1 >conftest.err
7784 rm -f conftest.er1
7785 cat conftest.err >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } &&
7788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7789 { (case "(($ac_try" in
7790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7791 *) ac_try_echo=$ac_try;;
7792esac
7793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7794 (eval "$ac_try") 2>&5
7795 ac_status=$?
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; } &&
7798 { ac_try='test -s conftest$ac_exeext'
7799 { (case "(($ac_try" in
7800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7801 *) ac_try_echo=$ac_try;;
7802esac
7803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7804 (eval "$ac_try") 2>&5
7805 ac_status=$?
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); }; }; then
7808 llvm_cv_link_use_r=yes
7809else
7810 echo "$as_me: failed program was:" >&5
7811sed 's/^/| /' conftest.$ac_ext >&5
7812
7813 llvm_cv_link_use_r=no
7814fi
7815
7816rm -f core conftest.err conftest.$ac_objext \
7817 conftest$ac_exeext conftest.$ac_ext
7818 CFLAGS="$oldcflags"
7819 ac_ext=c
7820ac_cpp='$CPP $CPPFLAGS'
7821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7823ac_compiler_gnu=$ac_cv_c_compiler_gnu
7824
7825
7826fi
7827{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7828echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7829if test "$llvm_cv_link_use_r" = yes ; then
7830
7831cat >>confdefs.h <<\_ACEOF
7832#define HAVE_LINK_R 1
7833_ACEOF
7834
7835 fi
7836
7837
7838{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7839echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7840if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7842else
7843 ac_ext=c
7844ac_cpp='$CPP $CPPFLAGS'
7845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7847ac_compiler_gnu=$ac_cv_c_compiler_gnu
7848
7849 oldcflags="$CFLAGS"
7850 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7851 cat >conftest.$ac_ext <<_ACEOF
7852/* confdefs.h. */
7853_ACEOF
7854cat confdefs.h >>conftest.$ac_ext
7855cat >>conftest.$ac_ext <<_ACEOF
7856/* end confdefs.h. */
7857
7858int
7859main ()
7860{
7861
7862 ;
7863 return 0;
7864}
7865_ACEOF
7866rm -f conftest.$ac_objext conftest$ac_exeext
7867if { (ac_try="$ac_link"
7868case "(($ac_try" in
7869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870 *) ac_try_echo=$ac_try;;
7871esac
7872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873 (eval "$ac_link") 2>conftest.er1
7874 ac_status=$?
7875 grep -v '^ *+' conftest.er1 >conftest.err
7876 rm -f conftest.er1
7877 cat conftest.err >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } &&
7880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7881 { (case "(($ac_try" in
7882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7883 *) ac_try_echo=$ac_try;;
7884esac
7885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7886 (eval "$ac_try") 2>&5
7887 ac_status=$?
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }; } &&
7890 { ac_try='test -s conftest$ac_exeext'
7891 { (case "(($ac_try" in
7892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7893 *) ac_try_echo=$ac_try;;
7894esac
7895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7896 (eval "$ac_try") 2>&5
7897 ac_status=$?
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); }; }; then
7900 llvm_cv_link_use_export_dynamic=yes
7901else
7902 echo "$as_me: failed program was:" >&5
7903sed 's/^/| /' conftest.$ac_ext >&5
7904
7905 llvm_cv_link_use_export_dynamic=no
7906fi
7907
7908rm -f core conftest.err conftest.$ac_objext \
7909 conftest$ac_exeext conftest.$ac_ext
7910 CFLAGS="$oldcflags"
7911 ac_ext=c
7912ac_cpp='$CPP $CPPFLAGS'
7913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7915ac_compiler_gnu=$ac_cv_c_compiler_gnu
7916
7917
7918fi
7919{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7920echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7921if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7922
7923cat >>confdefs.h <<\_ACEOF
7924#define HAVE_LINK_EXPORT_DYNAMIC 1
7925_ACEOF
7926
7927 fi
7928
7929
7930{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7931echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7932if test "${llvm_cv_link_use_version_script+set}" = set; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
7934else
7935 ac_ext=c
7936ac_cpp='$CPP $CPPFLAGS'
7937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7939ac_compiler_gnu=$ac_cv_c_compiler_gnu
7940
7941 oldcflags="$CFLAGS"
7942
7943 # The following code is from the autoconf manual,
7944 # "11.13: Limitations of Usual Tools".
7945 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7946 # Use mktemp if possible; otherwise fall back on mkdir,
7947 # with $RANDOM to make collisions less likely.
7948 : ${TMPDIR=/tmp}
7949 {
7950 tmp=`
7951 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7952 ` &&
7953 test -n "$tmp" && test -d "$tmp"
7954 } || {
7955 tmp=$TMPDIR/foo$$-$RANDOM
7956 (umask 077 && mkdir "$tmp")
7957 } || exit $?
7958
7959 echo "{" > "$tmp/export.map"
7960 echo " global: main;" >> "$tmp/export.map"
7961 echo " local: *;" >> "$tmp/export.map"
7962 echo "};" >> "$tmp/export.map"
7963
7964 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7965 cat >conftest.$ac_ext <<_ACEOF
7966/* confdefs.h. */
7967_ACEOF
7968cat confdefs.h >>conftest.$ac_ext
7969cat >>conftest.$ac_ext <<_ACEOF
7970/* end confdefs.h. */
7971
7972int
7973main ()
7974{
7975
7976 ;
7977 return 0;
7978}
7979_ACEOF
7980rm -f conftest.$ac_objext conftest$ac_exeext
7981if { (ac_try="$ac_link"
7982case "(($ac_try" in
7983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7984 *) ac_try_echo=$ac_try;;
7985esac
7986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7987 (eval "$ac_link") 2>conftest.er1
7988 ac_status=$?
7989 grep -v '^ *+' conftest.er1 >conftest.err
7990 rm -f conftest.er1
7991 cat conftest.err >&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); } &&
7994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7995 { (case "(($ac_try" in
7996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7997 *) ac_try_echo=$ac_try;;
7998esac
7999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8000 (eval "$ac_try") 2>&5
8001 ac_status=$?
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; } &&
8004 { ac_try='test -s conftest$ac_exeext'
8005 { (case "(($ac_try" in
8006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007 *) ac_try_echo=$ac_try;;
8008esac
8009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010 (eval "$ac_try") 2>&5
8011 ac_status=$?
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; }; then
8014 llvm_cv_link_use_version_script=yes
8015else
8016 echo "$as_me: failed program was:" >&5
8017sed 's/^/| /' conftest.$ac_ext >&5
8018
8019 llvm_cv_link_use_version_script=no
8020fi
8021
8022rm -f core conftest.err conftest.$ac_objext \
8023 conftest$ac_exeext conftest.$ac_ext
8024 rm "$tmp/export.map"
8025 rmdir "$tmp"
8026 CFLAGS="$oldcflags"
8027 ac_ext=c
8028ac_cpp='$CPP $CPPFLAGS'
8029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8031ac_compiler_gnu=$ac_cv_c_compiler_gnu
8032
8033
8034fi
8035{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8036echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8037if test "$llvm_cv_link_use_version_script" = yes ; then
8038 HAVE_LINK_VERSION_SCRIPT=1
8039
8040 fi
8041
8042
8043
8044
8045{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8046echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8047if test "${ac_cv_c_const+set}" = set; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8049else
8050 cat >conftest.$ac_ext <<_ACEOF
8051/* confdefs.h. */
8052_ACEOF
8053cat confdefs.h >>conftest.$ac_ext
8054cat >>conftest.$ac_ext <<_ACEOF
8055/* end confdefs.h. */
8056
8057int
8058main ()
8059{
8060/* FIXME: Include the comments suggested by Paul. */
8061#ifndef __cplusplus
8062 /* Ultrix mips cc rejects this. */
8063 typedef int charset[2];
8064 const charset x;
8065 /* SunOS 4.1.1 cc rejects this. */
8066 char const *const *ccp;
8067 char **p;
8068 /* NEC SVR4.0.2 mips cc rejects this. */
8069 struct point {int x, y;};
8070 static struct point const zero = {0,0};
8071 /* AIX XL C 1.02.0.0 rejects this.
8072 It does not let you subtract one const X* pointer from another in
8073 an arm of an if-expression whose if-part is not a constant
8074 expression */
8075 const char *g = "string";
8076 ccp = &g + (g ? g-g : 0);
8077 /* HPUX 7.0 cc rejects these. */
8078 ++ccp;
8079 p = (char**) ccp;
8080 ccp = (char const *const *) p;
8081 { /* SCO 3.2v4 cc rejects this. */
8082 char *t;
8083 char const *s = 0 ? (char *) 0 : (char const *) 0;
8084
8085 *t++ = 0;
8086 if (s) return 0;
8087 }
8088 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8089 int x[] = {25, 17};
8090 const int *foo = &x[0];
8091 ++foo;
8092 }
8093 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8094 typedef const int *iptr;
8095 iptr p = 0;
8096 ++p;
8097 }
8098 { /* AIX XL C 1.02.0.0 rejects this saying
8099 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8100 struct s { int j; const int *ap[3]; };
8101 struct s *b; b->j = 5;
8102 }
8103 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8104 const int foo = 10;
8105 if (!foo) return 0;
8106 }
8107 return !x[0] && !zero.x;
8108#endif
8109
8110 ;
8111 return 0;
8112}
8113_ACEOF
8114rm -f conftest.$ac_objext
8115if { (ac_try="$ac_compile"
8116case "(($ac_try" in
8117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118 *) ac_try_echo=$ac_try;;
8119esac
8120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8121 (eval "$ac_compile") 2>conftest.er1
8122 ac_status=$?
8123 grep -v '^ *+' conftest.er1 >conftest.err
8124 rm -f conftest.er1
8125 cat conftest.err >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8129 { (case "(($ac_try" in
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8132esac
8133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_try") 2>&5
8135 ac_status=$?
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; } &&
8138 { ac_try='test -s conftest.$ac_objext'
8139 { (case "(($ac_try" in
8140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141 *) ac_try_echo=$ac_try;;
8142esac
8143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144 (eval "$ac_try") 2>&5
8145 ac_status=$?
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; }; then
8148 ac_cv_c_const=yes
8149else
8150 echo "$as_me: failed program was:" >&5
8151sed 's/^/| /' conftest.$ac_ext >&5
8152
8153 ac_cv_c_const=no
8154fi
8155
8156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8157fi
8158{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8159echo "${ECHO_T}$ac_cv_c_const" >&6; }
8160if test $ac_cv_c_const = no; then
8161
8162cat >>confdefs.h <<\_ACEOF
8163#define const
8164_ACEOF
8165
8166fi
8167
8168
8169
8170
8171
8172
8173ac_header_dirent=no
8174for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8175 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8176{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8177echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8178if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8180else
8181 cat >conftest.$ac_ext <<_ACEOF
8182/* confdefs.h. */
8183_ACEOF
8184cat confdefs.h >>conftest.$ac_ext
8185cat >>conftest.$ac_ext <<_ACEOF
8186/* end confdefs.h. */
8187#include <sys/types.h>
8188#include <$ac_hdr>
8189
8190int
8191main ()
8192{
8193if ((DIR *) 0)
8194return 0;
8195 ;
8196 return 0;
8197}
8198_ACEOF
8199rm -f conftest.$ac_objext
8200if { (ac_try="$ac_compile"
8201case "(($ac_try" in
8202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8203 *) ac_try_echo=$ac_try;;
8204esac
8205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8206 (eval "$ac_compile") 2>conftest.er1
8207 ac_status=$?
8208 grep -v '^ *+' conftest.er1 >conftest.err
8209 rm -f conftest.er1
8210 cat conftest.err >&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); } &&
8213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8214 { (case "(($ac_try" in
8215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8216 *) ac_try_echo=$ac_try;;
8217esac
8218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8219 (eval "$ac_try") 2>&5
8220 ac_status=$?
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; } &&
8223 { ac_try='test -s conftest.$ac_objext'
8224 { (case "(($ac_try" in
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8227esac
8228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229 (eval "$ac_try") 2>&5
8230 ac_status=$?
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; }; then
8233 eval "$as_ac_Header=yes"
8234else
8235 echo "$as_me: failed program was:" >&5
8236sed 's/^/| /' conftest.$ac_ext >&5
8237
8238 eval "$as_ac_Header=no"
8239fi
8240
8241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8242fi
8243ac_res=`eval echo '${'$as_ac_Header'}'`
8244 { echo "$as_me:$LINENO: result: $ac_res" >&5
8245echo "${ECHO_T}$ac_res" >&6; }
8246if test `eval echo '${'$as_ac_Header'}'` = yes; then
8247 cat >>confdefs.h <<_ACEOF
8248#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8249_ACEOF
8250
8251ac_header_dirent=$ac_hdr; break
8252fi
8253
8254done
8255# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8256if test $ac_header_dirent = dirent.h; then
8257 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8258echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8259if test "${ac_cv_search_opendir+set}" = set; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8261else
8262 ac_func_search_save_LIBS=$LIBS
8263cat >conftest.$ac_ext <<_ACEOF
8264/* confdefs.h. */
8265_ACEOF
8266cat confdefs.h >>conftest.$ac_ext
8267cat >>conftest.$ac_ext <<_ACEOF
8268/* end confdefs.h. */
8269
8270/* Override any GCC internal prototype to avoid an error.
8271 Use char because int might match the return type of a GCC
8272 builtin and then its argument prototype would still apply. */
8273#ifdef __cplusplus
8274extern "C"
8275#endif
8276char opendir ();
8277int
8278main ()
8279{
8280return opendir ();
8281 ;
8282 return 0;
8283}
8284_ACEOF
8285for ac_lib in '' dir; do
8286 if test -z "$ac_lib"; then
8287 ac_res="none required"
8288 else
8289 ac_res=-l$ac_lib
8290 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8291 fi
8292 rm -f conftest.$ac_objext conftest$ac_exeext
8293if { (ac_try="$ac_link"
8294case "(($ac_try" in
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8297esac
8298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299 (eval "$ac_link") 2>conftest.er1
8300 ac_status=$?
8301 grep -v '^ *+' conftest.er1 >conftest.err
8302 rm -f conftest.er1
8303 cat conftest.err >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } &&
8306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8307 { (case "(($ac_try" in
8308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8309 *) ac_try_echo=$ac_try;;
8310esac
8311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8312 (eval "$ac_try") 2>&5
8313 ac_status=$?
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; } &&
8316 { ac_try='test -s conftest$ac_exeext'
8317 { (case "(($ac_try" in
8318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319 *) ac_try_echo=$ac_try;;
8320esac
8321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322 (eval "$ac_try") 2>&5
8323 ac_status=$?
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; }; then
8326 ac_cv_search_opendir=$ac_res
8327else
8328 echo "$as_me: failed program was:" >&5
8329sed 's/^/| /' conftest.$ac_ext >&5
8330
8331
8332fi
8333
8334rm -f core conftest.err conftest.$ac_objext \
8335 conftest$ac_exeext
8336 if test "${ac_cv_search_opendir+set}" = set; then
8337 break
8338fi
8339done
8340if test "${ac_cv_search_opendir+set}" = set; then
8341 :
8342else
8343 ac_cv_search_opendir=no
8344fi
8345rm conftest.$ac_ext
8346LIBS=$ac_func_search_save_LIBS
8347fi
8348{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8349echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8350ac_res=$ac_cv_search_opendir
8351if test "$ac_res" != no; then
8352 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8353
8354fi
8355
8356else
8357 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8358echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8359if test "${ac_cv_search_opendir+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8361else
8362 ac_func_search_save_LIBS=$LIBS
8363cat >conftest.$ac_ext <<_ACEOF
8364/* confdefs.h. */
8365_ACEOF
8366cat confdefs.h >>conftest.$ac_ext
8367cat >>conftest.$ac_ext <<_ACEOF
8368/* end confdefs.h. */
8369
8370/* Override any GCC internal prototype to avoid an error.
8371 Use char because int might match the return type of a GCC
8372 builtin and then its argument prototype would still apply. */
8373#ifdef __cplusplus
8374extern "C"
8375#endif
8376char opendir ();
8377int
8378main ()
8379{
8380return opendir ();
8381 ;
8382 return 0;
8383}
8384_ACEOF
8385for ac_lib in '' x; do
8386 if test -z "$ac_lib"; then
8387 ac_res="none required"
8388 else
8389 ac_res=-l$ac_lib
8390 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8391 fi
8392 rm -f conftest.$ac_objext conftest$ac_exeext
8393if { (ac_try="$ac_link"
8394case "(($ac_try" in
8395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396 *) ac_try_echo=$ac_try;;
8397esac
8398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399 (eval "$ac_link") 2>conftest.er1
8400 ac_status=$?
8401 grep -v '^ *+' conftest.er1 >conftest.err
8402 rm -f conftest.er1
8403 cat conftest.err >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); } &&
8406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8407 { (case "(($ac_try" in
8408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8409 *) ac_try_echo=$ac_try;;
8410esac
8411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8412 (eval "$ac_try") 2>&5
8413 ac_status=$?
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; } &&
8416 { ac_try='test -s conftest$ac_exeext'
8417 { (case "(($ac_try" in
8418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419 *) ac_try_echo=$ac_try;;
8420esac
8421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8422 (eval "$ac_try") 2>&5
8423 ac_status=$?
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; }; then
8426 ac_cv_search_opendir=$ac_res
8427else
8428 echo "$as_me: failed program was:" >&5
8429sed 's/^/| /' conftest.$ac_ext >&5
8430
8431
8432fi
8433
8434rm -f core conftest.err conftest.$ac_objext \
8435 conftest$ac_exeext
8436 if test "${ac_cv_search_opendir+set}" = set; then
8437 break
8438fi
8439done
8440if test "${ac_cv_search_opendir+set}" = set; then
8441 :
8442else
8443 ac_cv_search_opendir=no
8444fi
8445rm conftest.$ac_ext
8446LIBS=$ac_func_search_save_LIBS
8447fi
8448{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8449echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8450ac_res=$ac_cv_search_opendir
8451if test "$ac_res" != no; then
8452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8453
8454fi
8455
8456fi
8457
8458
8459for ac_header in dlfcn.h
8460do
8461as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8467fi
8468ac_res=`eval echo '${'$as_ac_Header'}'`
8469 { echo "$as_me:$LINENO: result: $ac_res" >&5
8470echo "${ECHO_T}$ac_res" >&6; }
8471else
8472 # Is the header compilable?
8473{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8474echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8475cat >conftest.$ac_ext <<_ACEOF
8476/* confdefs.h. */
8477_ACEOF
8478cat confdefs.h >>conftest.$ac_ext
8479cat >>conftest.$ac_ext <<_ACEOF
8480/* end confdefs.h. */
8481$ac_includes_default
8482#include <$ac_header>
8483_ACEOF
8484rm -f conftest.$ac_objext
8485if { (ac_try="$ac_compile"
8486case "(($ac_try" in
8487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488 *) ac_try_echo=$ac_try;;
8489esac
8490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8491 (eval "$ac_compile") 2>conftest.er1
8492 ac_status=$?
8493 grep -v '^ *+' conftest.er1 >conftest.err
8494 rm -f conftest.er1
8495 cat conftest.err >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); } &&
8498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8499 { (case "(($ac_try" in
8500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8501 *) ac_try_echo=$ac_try;;
8502esac
8503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8504 (eval "$ac_try") 2>&5
8505 ac_status=$?
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; } &&
8508 { ac_try='test -s conftest.$ac_objext'
8509 { (case "(($ac_try" in
8510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8511 *) ac_try_echo=$ac_try;;
8512esac
8513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8514 (eval "$ac_try") 2>&5
8515 ac_status=$?
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); }; }; then
8518 ac_header_compiler=yes
8519else
8520 echo "$as_me: failed program was:" >&5
8521sed 's/^/| /' conftest.$ac_ext >&5
8522
8523 ac_header_compiler=no
8524fi
8525
8526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8527{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8528echo "${ECHO_T}$ac_header_compiler" >&6; }
8529
8530# Is the header present?
8531{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8532echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8533cat >conftest.$ac_ext <<_ACEOF
8534/* confdefs.h. */
8535_ACEOF
8536cat confdefs.h >>conftest.$ac_ext
8537cat >>conftest.$ac_ext <<_ACEOF
8538/* end confdefs.h. */
8539#include <$ac_header>
8540_ACEOF
8541if { (ac_try="$ac_cpp conftest.$ac_ext"
8542case "(($ac_try" in
8543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544 *) ac_try_echo=$ac_try;;
8545esac
8546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8548 ac_status=$?
8549 grep -v '^ *+' conftest.er1 >conftest.err
8550 rm -f conftest.er1
8551 cat conftest.err >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } >/dev/null; then
8554 if test -s conftest.err; then
8555 ac_cpp_err=$ac_c_preproc_warn_flag
8556 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8557 else
8558 ac_cpp_err=
8559 fi
8560else
8561 ac_cpp_err=yes
8562fi
8563if test -z "$ac_cpp_err"; then
8564 ac_header_preproc=yes
8565else
8566 echo "$as_me: failed program was:" >&5
8567sed 's/^/| /' conftest.$ac_ext >&5
8568
8569 ac_header_preproc=no
8570fi
8571
8572rm -f conftest.err conftest.$ac_ext
8573{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8574echo "${ECHO_T}$ac_header_preproc" >&6; }
8575
8576# So? What about this header?
8577case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8578 yes:no: )
8579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8580echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8582echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8583 ac_header_preproc=yes
8584 ;;
8585 no:yes:* )
8586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8587echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8589echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8591echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8593echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8595echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8597echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8598 ( cat <<\_ASBOX
8599## ------------------------------ ##
8600## Report this to bugs@yourdomain ##
8601## ------------------------------ ##
8602_ASBOX
8603 ) | sed "s/^/$as_me: WARNING: /" >&2
8604 ;;
8605esac
8606{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8607echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8608if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8609 echo $ECHO_N "(cached) $ECHO_C" >&6
8610else
8611 eval "$as_ac_Header=\$ac_header_preproc"
8612fi
8613ac_res=`eval echo '${'$as_ac_Header'}'`
8614 { echo "$as_me:$LINENO: result: $ac_res" >&5
8615echo "${ECHO_T}$ac_res" >&6; }
8616
8617fi
8618if test `eval echo '${'$as_ac_Header'}'` = yes; then
8619 cat >>confdefs.h <<_ACEOF
8620#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8621_ACEOF
8622
8623fi
8624
8625done
8626
8627# Check whether --enable-ltdl-install was given.
8628if test "${enable_ltdl_install+set}" = set; then
8629 enableval=$enable_ltdl_install;
8630fi
8631
8632
8633
8634
8635if test x"${enable_ltdl_install-no}" != xno; then
8636 INSTALL_LTDL_TRUE=
8637 INSTALL_LTDL_FALSE='#'
8638else
8639 INSTALL_LTDL_TRUE='#'
8640 INSTALL_LTDL_FALSE=
8641fi
8642
8643
8644
8645if test x"${enable_ltdl_convenience-no}" != xno; then
8646 CONVENIENCE_LTDL_TRUE=
8647 CONVENIENCE_LTDL_FALSE='#'
8648else
8649 CONVENIENCE_LTDL_TRUE='#'
8650 CONVENIENCE_LTDL_FALSE=
8651fi
8652
8653
8654{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8655echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8656library_names_spec=
8657libname_spec='lib$name'
8658soname_spec=
8659shrext_cmds=".so"
8660postinstall_cmds=
8661postuninstall_cmds=
8662finish_cmds=
8663finish_eval=
8664shlibpath_var=
8665shlibpath_overrides_runpath=unknown
8666version_type=none
8667dynamic_linker="$host_os ld.so"
8668sys_lib_dlsearch_path_spec="/lib /usr/lib"
8669if test "$GCC" = yes; then
8670 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8671 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8672 # if the path contains ";" then we assume it to be the separator
8673 # otherwise default to the standard path separator (i.e. ":") - it is
8674 # assumed that no part of a normal pathname contains ";" but that should
8675 # okay in the real world where ";" in dirpaths is itself problematic.
8676 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8677 else
8678 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8679 fi
8680else
8681 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8682fi
8683need_lib_prefix=unknown
8684hardcode_into_libs=no
8685
8686# when you set need_version to no, make sure it does not cause -set_version
8687# flags to be left without arguments
8688need_version=unknown
8689
8690case $host_os in
8691aix3*)
8692 version_type=linux
8693 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8694 shlibpath_var=LIBPATH
8695
8696 # AIX 3 has no versioning support, so we append a major version to the name.
8697 soname_spec='${libname}${release}${shared_ext}$major'
8698 ;;
8699
8700aix4* | aix5*)
8701 version_type=linux
8702 need_lib_prefix=no
8703 need_version=no
8704 hardcode_into_libs=yes
8705 if test "$host_cpu" = ia64; then
8706 # AIX 5 supports IA64
8707 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8708 shlibpath_var=LD_LIBRARY_PATH
8709 else
8710 # With GCC up to 2.95.x, collect2 would create an import file
8711 # for dependence libraries. The import file would start with
8712 # the line `#! .'. This would cause the generated library to
8713 # depend on `.', always an invalid library. This was fixed in
8714 # development snapshots of GCC prior to 3.0.
8715 case $host_os in
8716 aix4 | aix4.[01] | aix4.[01].*)
8717 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8718 echo ' yes '
8719 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8720 :
8721 else
8722 can_build_shared=no
8723 fi
8724 ;;
8725 esac
8726 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8727 # soname into executable. Probably we can add versioning support to
8728 # collect2, so additional links can be useful in future.
8729 if test "$aix_use_runtimelinking" = yes; then
8730 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8731 # instead of lib<name>.a to let people know that these are not
8732 # typical AIX shared libraries.
8733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8734 else
8735 # We preserve .a as extension for shared libraries through AIX4.2
8736 # and later when we are not doing run time linking.
8737 library_names_spec='${libname}${release}.a $libname.a'
8738 soname_spec='${libname}${release}${shared_ext}$major'
8739 fi
8740 shlibpath_var=LIBPATH
8741 fi
8742 ;;
8743
8744amigaos*)
8745 library_names_spec='$libname.ixlibrary $libname.a'
8746 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8747 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'
8748 ;;
8749
8750beos*)
8751 library_names_spec='${libname}${shared_ext}'
8752 dynamic_linker="$host_os ld.so"
8753 shlibpath_var=LIBRARY_PATH
8754 ;;
8755
8756bsdi[45]*)
8757 version_type=linux
8758 need_version=no
8759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8760 soname_spec='${libname}${release}${shared_ext}$major'
8761 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8762 shlibpath_var=LD_LIBRARY_PATH
8763 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8764 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8765 # the default ld.so.conf also contains /usr/contrib/lib and
8766 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8767 # libtool to hard-code these into programs
8768 ;;
8769
8770cygwin* | mingw* | pw32*)
8771 version_type=windows
8772 shrext_cmds=".dll"
8773 need_version=no
8774 need_lib_prefix=no
8775
8776 case $GCC,$host_os in
8777 yes,cygwin* | yes,mingw* | yes,pw32*)
8778 library_names_spec='$libname.dll.a'
8779 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8780 postinstall_cmds='base_file=`basename \${file}`~
8781 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8782 dldir=$destdir/`dirname \$dlpath`~
8783 test -d \$dldir || mkdir -p \$dldir~
8784 $install_prog $dir/$dlname \$dldir/$dlname~
8785 chmod a+x \$dldir/$dlname'
8786 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8787 dlpath=$dir/\$dldll~
8788 $rm \$dlpath'
8789 shlibpath_overrides_runpath=yes
8790
8791 case $host_os in
8792 cygwin*)
8793 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8794 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8795 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8796 ;;
8797 mingw*)
8798 # MinGW DLLs use traditional 'lib' prefix
8799 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8800 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8801 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8802 # It is most probably a Windows format PATH printed by
8803 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8804 # path with ; separators, and with drive letters. We can handle the
8805 # drive letters (cygwin fileutils understands them), so leave them,
8806 # especially as we might pass files found there to a mingw objdump,
8807 # which wouldn't understand a cygwinified path. Ahh.
8808 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8809 else
8810 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8811 fi
8812 ;;
8813 pw32*)
8814 # pw32 DLLs use 'pw' prefix rather than 'lib'
8815 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8816 ;;
8817 esac
8818 ;;
8819
8820 *)
8821 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8822 ;;
8823 esac
8824 dynamic_linker='Win32 ld.exe'
8825 # FIXME: first we should search . and the directory the executable is in
8826 shlibpath_var=PATH
8827 ;;
8828
8829darwin* | rhapsody*)
8830 dynamic_linker="$host_os dyld"
8831 version_type=darwin
8832 need_lib_prefix=no
8833 need_version=no
8834 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8835 soname_spec='${libname}${release}${major}$shared_ext'
8836 shlibpath_overrides_runpath=yes
8837 shlibpath_var=DYLD_LIBRARY_PATH
8838 shrext_cmds='.dylib'
8839 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8840 if test "$GCC" = yes; then
8841 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"`
8842 else
8843 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8844 fi
8845 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8846 ;;
8847
8848dgux*)
8849 version_type=linux
8850 need_lib_prefix=no
8851 need_version=no
8852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8853 soname_spec='${libname}${release}${shared_ext}$major'
8854 shlibpath_var=LD_LIBRARY_PATH
8855 ;;
8856
8857freebsd1*)
8858 dynamic_linker=no
8859 ;;
8860
8861kfreebsd*-gnu)
8862 version_type=linux
8863 need_lib_prefix=no
8864 need_version=no
8865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8866 soname_spec='${libname}${release}${shared_ext}$major'
8867 shlibpath_var=LD_LIBRARY_PATH
8868 shlibpath_overrides_runpath=no
8869 hardcode_into_libs=yes
8870 dynamic_linker='GNU ld.so'
8871 ;;
8872
8873freebsd* | dragonfly*)
8874 # DragonFly does not have aout. When/if they implement a new
8875 # versioning mechanism, adjust this.
8876 if test -x /usr/bin/objformat; then
8877 objformat=`/usr/bin/objformat`
8878 else
8879 case $host_os in
8880 freebsd[123]*) objformat=aout ;;
8881 *) objformat=elf ;;
8882 esac
8883 fi
8884 version_type=freebsd-$objformat
8885 case $version_type in
8886 freebsd-elf*)
8887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8888 need_version=no
8889 need_lib_prefix=no
8890 ;;
8891 freebsd-*)
8892 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8893 need_version=yes
8894 ;;
8895 esac
8896 shlibpath_var=LD_LIBRARY_PATH
8897 case $host_os in
8898 freebsd2*)
8899 shlibpath_overrides_runpath=yes
8900 ;;
8901 freebsd3.[01]* | freebsdelf3.[01]*)
8902 shlibpath_overrides_runpath=yes
8903 hardcode_into_libs=yes
8904 ;;
8905 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8906 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8907 shlibpath_overrides_runpath=no
8908 hardcode_into_libs=yes
8909 ;;
8910 freebsd*) # from 4.6 on
8911 shlibpath_overrides_runpath=yes
8912 hardcode_into_libs=yes
8913 ;;
8914 esac
8915 ;;
8916
8917gnu*)
8918 version_type=linux
8919 need_lib_prefix=no
8920 need_version=no
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8922 soname_spec='${libname}${release}${shared_ext}$major'
8923 shlibpath_var=LD_LIBRARY_PATH
8924 hardcode_into_libs=yes
8925 ;;
8926
8927hpux9* | hpux10* | hpux11*)
8928 # Give a soname corresponding to the major version so that dld.sl refuses to
8929 # link against other versions.
8930 version_type=sunos
8931 need_lib_prefix=no
8932 need_version=no
8933 case $host_cpu in
8934 ia64*)
8935 shrext_cmds='.so'
8936 hardcode_into_libs=yes
8937 dynamic_linker="$host_os dld.so"
8938 shlibpath_var=LD_LIBRARY_PATH
8939 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8941 soname_spec='${libname}${release}${shared_ext}$major'
8942 if test "X$HPUX_IA64_MODE" = X32; then
8943 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8944 else
8945 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8946 fi
8947 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8948 ;;
8949 hppa*64*)
8950 shrext_cmds='.sl'
8951 hardcode_into_libs=yes
8952 dynamic_linker="$host_os dld.sl"
8953 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8956 soname_spec='${libname}${release}${shared_ext}$major'
8957 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8959 ;;
8960 *)
8961 shrext_cmds='.sl'
8962 dynamic_linker="$host_os dld.sl"
8963 shlibpath_var=SHLIB_PATH
8964 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8966 soname_spec='${libname}${release}${shared_ext}$major'
8967 ;;
8968 esac
8969 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8970 postinstall_cmds='chmod 555 $lib'
8971 ;;
8972
8973interix3*)
8974 version_type=linux
8975 need_lib_prefix=no
8976 need_version=no
8977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8978 soname_spec='${libname}${release}${shared_ext}$major'
8979 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8980 shlibpath_var=LD_LIBRARY_PATH
8981 shlibpath_overrides_runpath=no
8982 hardcode_into_libs=yes
8983 ;;
8984
8985irix5* | irix6* | nonstopux*)
8986 case $host_os in
8987 nonstopux*) version_type=nonstopux ;;
8988 *)
8989 if test "$lt_cv_prog_gnu_ld" = yes; then
8990 version_type=linux
8991 else
8992 version_type=irix
8993 fi ;;
8994 esac
8995 need_lib_prefix=no
8996 need_version=no
8997 soname_spec='${libname}${release}${shared_ext}$major'
8998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8999 case $host_os in
9000 irix5* | nonstopux*)
9001 libsuff= shlibsuff=
9002 ;;
9003 *)
9004 case $LD in # libtool.m4 will add one of these switches to LD
9005 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9006 libsuff= shlibsuff= libmagic=32-bit;;
9007 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9008 libsuff=32 shlibsuff=N32 libmagic=N32;;
9009 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9010 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9011 *) libsuff= shlibsuff= libmagic=never-match;;
9012 esac
9013 ;;
9014 esac
9015 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9016 shlibpath_overrides_runpath=no
9017 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9018 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9019 hardcode_into_libs=yes
9020 ;;
9021
9022# No shared lib support for Linux oldld, aout, or coff.
9023linux*oldld* | linux*aout* | linux*coff*)
9024 dynamic_linker=no
9025 ;;
9026
9027# This must be Linux ELF.
9028linux*)
9029 version_type=linux
9030 need_lib_prefix=no
9031 need_version=no
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9033 soname_spec='${libname}${release}${shared_ext}$major'
9034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9035 shlibpath_var=LD_LIBRARY_PATH
9036 shlibpath_overrides_runpath=no
9037 # This implies no fast_install, which is unacceptable.
9038 # Some rework will be needed to allow for fast_install
9039 # before this can be enabled.
9040 hardcode_into_libs=yes
9041
9042 # Append ld.so.conf contents to the search path
9043 if test -f /etc/ld.so.conf; then
9044 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' ' '`
9045 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9046 fi
9047
9048 # We used to test for /lib/ld.so.1 and disable shared libraries on
9049 # powerpc, because MkLinux only supported shared libraries with the
9050 # GNU dynamic linker. Since this was broken with cross compilers,
9051 # most powerpc-linux boxes support dynamic linking these days and
9052 # people can always --disable-shared, the test was removed, and we
9053 # assume the GNU/Linux dynamic linker is in use.
9054 dynamic_linker='GNU/Linux ld.so'
9055 ;;
9056
9057knetbsd*-gnu)
9058 version_type=linux
9059 need_lib_prefix=no
9060 need_version=no
9061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9062 soname_spec='${libname}${release}${shared_ext}$major'
9063 shlibpath_var=LD_LIBRARY_PATH
9064 shlibpath_overrides_runpath=no
9065 hardcode_into_libs=yes
9066 dynamic_linker='GNU ld.so'
9067 ;;
9068
9069netbsd*)
9070 version_type=sunos
9071 need_lib_prefix=no
9072 need_version=no
9073 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9076 dynamic_linker='NetBSD (a.out) ld.so'
9077 else
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9079 soname_spec='${libname}${release}${shared_ext}$major'
9080 dynamic_linker='NetBSD ld.elf_so'
9081 fi
9082 shlibpath_var=LD_LIBRARY_PATH
9083 shlibpath_overrides_runpath=yes
9084 hardcode_into_libs=yes
9085 ;;
9086
9087newsos6)
9088 version_type=linux
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9090 shlibpath_var=LD_LIBRARY_PATH
9091 shlibpath_overrides_runpath=yes
9092 ;;
9093
9094nto-qnx*)
9095 version_type=linux
9096 need_lib_prefix=no
9097 need_version=no
9098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9099 soname_spec='${libname}${release}${shared_ext}$major'
9100 shlibpath_var=LD_LIBRARY_PATH
9101 shlibpath_overrides_runpath=yes
9102 ;;
9103
9104openbsd*)
9105 version_type=sunos
9106 sys_lib_dlsearch_path_spec="/usr/lib"
9107 need_lib_prefix=no
9108 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9109 case $host_os in
9110 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9111 *) need_version=no ;;
9112 esac
9113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9115 shlibpath_var=LD_LIBRARY_PATH
9116 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9117 case $host_os in
9118 openbsd2.[89] | openbsd2.[89].*)
9119 shlibpath_overrides_runpath=no
9120 ;;
9121 *)
9122 shlibpath_overrides_runpath=yes
9123 ;;
9124 esac
9125 else
9126 shlibpath_overrides_runpath=yes
9127 fi
9128 ;;
9129
9130os2*)
9131 libname_spec='$name'
9132 shrext_cmds=".dll"
9133 need_lib_prefix=no
9134 library_names_spec='$libname${shared_ext} $libname.a'
9135 dynamic_linker='OS/2 ld.exe'
9136 shlibpath_var=LIBPATH
9137 ;;
9138
9139osf3* | osf4* | osf5*)
9140 version_type=osf
9141 need_lib_prefix=no
9142 need_version=no
9143 soname_spec='${libname}${release}${shared_ext}$major'
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145 shlibpath_var=LD_LIBRARY_PATH
9146 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9147 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9148 ;;
9149
9150solaris*)
9151 version_type=linux
9152 need_lib_prefix=no
9153 need_version=no
9154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9155 soname_spec='${libname}${release}${shared_ext}$major'
9156 shlibpath_var=LD_LIBRARY_PATH
9157 shlibpath_overrides_runpath=yes
9158 hardcode_into_libs=yes
9159 # ldd complains unless libraries are executable
9160 postinstall_cmds='chmod +x $lib'
9161 ;;
9162
9163sunos4*)
9164 version_type=sunos
9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9166 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9167 shlibpath_var=LD_LIBRARY_PATH
9168 shlibpath_overrides_runpath=yes
9169 if test "$with_gnu_ld" = yes; then
9170 need_lib_prefix=no
9171 fi
9172 need_version=yes
9173 ;;
9174
9175sysv4 | sysv4.3*)
9176 version_type=linux
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178 soname_spec='${libname}${release}${shared_ext}$major'
9179 shlibpath_var=LD_LIBRARY_PATH
9180 case $host_vendor in
9181 sni)
9182 shlibpath_overrides_runpath=no
9183 need_lib_prefix=no
9184 export_dynamic_flag_spec='${wl}-Blargedynsym'
9185 runpath_var=LD_RUN_PATH
9186 ;;
9187 siemens)
9188 need_lib_prefix=no
9189 ;;
9190 motorola)
9191 need_lib_prefix=no
9192 need_version=no
9193 shlibpath_overrides_runpath=no
9194 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9195 ;;
9196 esac
9197 ;;
9198
9199sysv4*MP*)
9200 if test -d /usr/nec ;then
9201 version_type=linux
9202 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9203 soname_spec='$libname${shared_ext}.$major'
9204 shlibpath_var=LD_LIBRARY_PATH
9205 fi
9206 ;;
9207
9208sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9209 version_type=freebsd-elf
9210 need_lib_prefix=no
9211 need_version=no
9212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9213 soname_spec='${libname}${release}${shared_ext}$major'
9214 shlibpath_var=LD_LIBRARY_PATH
9215 hardcode_into_libs=yes
9216 if test "$with_gnu_ld" = yes; then
9217 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9218 shlibpath_overrides_runpath=no
9219 else
9220 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9221 shlibpath_overrides_runpath=yes
9222 case $host_os in
9223 sco3.2v5*)
9224 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9225 ;;
9226 esac
9227 fi
9228 sys_lib_dlsearch_path_spec='/usr/lib'
9229 ;;
9230
9231uts4*)
9232 version_type=linux
9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234 soname_spec='${libname}${release}${shared_ext}$major'
9235 shlibpath_var=LD_LIBRARY_PATH
9236 ;;
9237
9238*)
9239 dynamic_linker=no
9240 ;;
9241esac
9242{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9243echo "${ECHO_T}$dynamic_linker" >&6; }
9244test "$dynamic_linker" = no && can_build_shared=no
9245
9246variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9247if test "$GCC" = yes; then
9248 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9249fi
9250
9251
9252{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9253echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9254if test "${libltdl_cv_shlibext+set}" = set; then
9255 echo $ECHO_N "(cached) $ECHO_C" >&6
9256else
9257
9258module=yes
9259eval libltdl_cv_shlibext=$shrext_cmds
9260
9261fi
9262{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9263echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9264if test -n "$libltdl_cv_shlibext"; then
9265
9266cat >>confdefs.h <<_ACEOF
9267#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9268_ACEOF
9269
9270fi
9271
9272
9273{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9274echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9275if test "${libltdl_cv_shlibpath_var+set}" = set; then
9276 echo $ECHO_N "(cached) $ECHO_C" >&6
9277else
9278 libltdl_cv_shlibpath_var="$shlibpath_var"
9279fi
9280{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9281echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9282if test -n "$libltdl_cv_shlibpath_var"; then
9283
9284cat >>confdefs.h <<_ACEOF
9285#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9286_ACEOF
9287
9288fi
9289
9290
9291{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9292echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9293if test "${libltdl_cv_sys_search_path+set}" = set; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9295else
9296 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9297fi
9298{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9299echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9300if test -n "$libltdl_cv_sys_search_path"; then
9301 sys_search_path=
9302 for dir in $libltdl_cv_sys_search_path; do
9303 if test -z "$sys_search_path"; then
9304 sys_search_path="$dir"
9305 else
9306 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9307 fi
9308 done
9309
9310cat >>confdefs.h <<_ACEOF
9311#define LTDL_SYSSEARCHPATH "$sys_search_path"
9312_ACEOF
9313
9314fi
9315
9316{ echo "$as_me:$LINENO: checking for objdir" >&5
9317echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9318if test "${libltdl_cv_objdir+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9320else
9321 libltdl_cv_objdir="$objdir"
9322 if test -n "$objdir"; then
9323 :
9324 else
9325 rm -f .libs 2>/dev/null
9326 mkdir .libs 2>/dev/null
9327 if test -d .libs; then
9328 libltdl_cv_objdir=.libs
9329 else
9330 # MS-DOS does not allow filenames that begin with a dot.
9331 libltdl_cv_objdir=_libs
9332 fi
9333 rmdir .libs 2>/dev/null
9334 fi
9335
9336fi
9337{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9338echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9339
9340cat >>confdefs.h <<_ACEOF
9341#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9342_ACEOF
9343
9344
9345
9346
9347
9348
9349# Check for command to grab the raw symbol name followed by C symbol from nm.
9350{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9351echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9352if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9353 echo $ECHO_N "(cached) $ECHO_C" >&6
9354else
9355
9356# These are sane defaults that work on at least a few old systems.
9357# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9358
9359# Character class describing NM global symbol codes.
9360symcode='[BCDEGRST]'
9361
9362# Regexp to match symbols that can be accessed directly from C.
9363sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9364
9365# Transform an extracted symbol line into a proper C declaration
9366lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9367
9368# Transform an extracted symbol line into symbol name and symbol address
9369lt_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'"
9370
9371# Define system-specific variables.
9372case $host_os in
9373aix*)
9374 symcode='[BCDT]'
9375 ;;
9376cygwin* | mingw* | pw32*)
9377 symcode='[ABCDGISTW]'
9378 ;;
9379hpux*) # Its linker distinguishes data from code symbols
9380 if test "$host_cpu" = ia64; then
9381 symcode='[ABCDEGRST]'
9382 fi
9383 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9384 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'"
9385 ;;
9386linux*)
9387 if test "$host_cpu" = ia64; then
9388 symcode='[ABCDGIRSTW]'
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 fi
9392 ;;
9393irix* | nonstopux*)
9394 symcode='[BCDEGRST]'
9395 ;;
9396osf*)
9397 symcode='[BCDEGQRST]'
9398 ;;
9399solaris*)
9400 symcode='[BDRT]'
9401 ;;
9402sco3.2v5*)
9403 symcode='[DT]'
9404 ;;
9405sysv4.2uw2*)
9406 symcode='[DT]'
9407 ;;
9408sysv5* | sco5v6* | unixware* | OpenUNIX*)
9409 symcode='[ABDT]'
9410 ;;
9411sysv4)
9412 symcode='[DFNSTU]'
9413 ;;
9414esac
9415
9416# Handle CRLF in mingw tool chain
9417opt_cr=
9418case $build_os in
9419mingw*)
9420 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9421 ;;
9422esac
9423
9424# If we're using GNU nm, then use its standard symbol codes.
9425case `$NM -V 2>&1` in
9426*GNU* | *'with BFD'*)
9427 symcode='[ABCDGIRSTW]' ;;
9428esac
9429
9430# Try without a prefix undercore, then with it.
9431for ac_symprfx in "" "_"; do
9432
9433 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9434 symxfrm="\\1 $ac_symprfx\\2 \\2"
9435
9436 # Write the raw and C identifiers.
9437 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9438
9439 # Check to see that the pipe works correctly.
9440 pipe_works=no
9441
9442 rm -f conftest*
9443 cat > conftest.$ac_ext <<EOF
9444#ifdef __cplusplus
9445extern "C" {
9446#endif
9447char nm_test_var;
9448void nm_test_func(){}
9449#ifdef __cplusplus
9450}
9451#endif
9452int main(){nm_test_var='a';nm_test_func();return(0);}
9453EOF
9454
9455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9456 (eval $ac_compile) 2>&5
9457 ac_status=$?
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; then
9460 # Now try to grab the symbols.
9461 nlist=conftest.nm
9462 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9463 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9464 ac_status=$?
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); } && test -s "$nlist"; then
9467 # Try sorting and uniquifying the output.
9468 if sort "$nlist" | uniq > "$nlist"T; then
9469 mv -f "$nlist"T "$nlist"
9470 else
9471 rm -f "$nlist"T
9472 fi
9473
9474 # Make sure that we snagged all the symbols we need.
9475 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9476 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9477 cat <<EOF > conftest.$ac_ext
9478#ifdef __cplusplus
9479extern "C" {
9480#endif
9481
9482EOF
9483 # Now generate the symbol file.
9484 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9485
9486 cat <<EOF >> conftest.$ac_ext
9487#if defined (__STDC__) && __STDC__
9488# define lt_ptr_t void *
9489#else
9490# define lt_ptr_t char *
9491# define const
9492#endif
9493
9494/* The mapping between symbol names and symbols. */
9495const struct {
9496 const char *name;
9497 lt_ptr_t address;
9498}
9499lt_preloaded_symbols[] =
9500{
9501EOF
9502 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9503 cat <<\EOF >> conftest.$ac_ext
9504 {0, (lt_ptr_t) 0}
9505};
9506
9507#ifdef __cplusplus
9508}
9509#endif
9510EOF
9511 # Now try linking the two files.
9512 mv conftest.$ac_objext conftstm.$ac_objext
9513 lt_save_LIBS="$LIBS"
9514 lt_save_CFLAGS="$CFLAGS"
9515 LIBS="conftstm.$ac_objext"
9516 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9518 (eval $ac_link) 2>&5
9519 ac_status=$?
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9522 pipe_works=yes
9523 fi
9524 LIBS="$lt_save_LIBS"
9525 CFLAGS="$lt_save_CFLAGS"
9526 else
9527 echo "cannot find nm_test_func in $nlist" >&5
9528 fi
9529 else
9530 echo "cannot find nm_test_var in $nlist" >&5
9531 fi
9532 else
9533 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9534 fi
9535 else
9536 echo "$progname: failed program was:" >&5
9537 cat conftest.$ac_ext >&5
9538 fi
9539 rm -f conftest* conftst*
9540
9541 # Do not use the global_symbol_pipe unless it works.
9542 if test "$pipe_works" = yes; then
9543 break
9544 else
9545 lt_cv_sys_global_symbol_pipe=
9546 fi
9547done
9548
9549fi
9550
9551if test -z "$lt_cv_sys_global_symbol_pipe"; then
9552 lt_cv_sys_global_symbol_to_cdecl=
9553fi
9554if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9555 { echo "$as_me:$LINENO: result: failed" >&5
9556echo "${ECHO_T}failed" >&6; }
9557else
9558 { echo "$as_me:$LINENO: result: ok" >&5
9559echo "${ECHO_T}ok" >&6; }
9560fi
9561
9562
9563{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9564echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9565if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9566 echo $ECHO_N "(cached) $ECHO_C" >&6
9567else
9568 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9569 libltdl_cv_preloaded_symbols=yes
9570 else
9571 libltdl_cv_preloaded_symbols=no
9572 fi
9573
9574fi
9575{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9576echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9577if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9578
9579cat >>confdefs.h <<\_ACEOF
9580#define HAVE_PRELOADED_SYMBOLS 1
9581_ACEOF
9582
9583fi
9584
9585LIBADD_DL=
9586
9587ac_ext=c
9588ac_cpp='$CPP $CPPFLAGS'
9589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9591ac_compiler_gnu=$ac_cv_c_compiler_gnu
9592
9593
9594{ echo "$as_me:$LINENO: checking for shl_load" >&5
9595echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9596if test "${ac_cv_func_shl_load+set}" = set; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9598else
9599 cat >conftest.$ac_ext <<_ACEOF
9600/* confdefs.h. */
9601_ACEOF
9602cat confdefs.h >>conftest.$ac_ext
9603cat >>conftest.$ac_ext <<_ACEOF
9604/* end confdefs.h. */
9605/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9607#define shl_load innocuous_shl_load
9608
9609/* System header to define __stub macros and hopefully few prototypes,
9610 which can conflict with char shl_load (); below.
9611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9612 <limits.h> exists even on freestanding compilers. */
9613
9614#ifdef __STDC__
9615# include <limits.h>
9616#else
9617# include <assert.h>
9618#endif
9619
9620#undef shl_load
9621
9622/* Override any GCC internal prototype to avoid an error.
9623 Use char because int might match the return type of a GCC
9624 builtin and then its argument prototype would still apply. */
9625#ifdef __cplusplus
9626extern "C"
9627#endif
9628char shl_load ();
9629/* The GNU C library defines this for functions which it implements
9630 to always fail with ENOSYS. Some functions are actually named
9631 something starting with __ and the normal name is an alias. */
9632#if defined __stub_shl_load || defined __stub___shl_load
9633choke me
9634#endif
9635
9636int
9637main ()
9638{
9639return shl_load ();
9640 ;
9641 return 0;
9642}
9643_ACEOF
9644rm -f conftest.$ac_objext conftest$ac_exeext
9645if { (ac_try="$ac_link"
9646case "(($ac_try" in
9647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648 *) ac_try_echo=$ac_try;;
9649esac
9650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651 (eval "$ac_link") 2>conftest.er1
9652 ac_status=$?
9653 grep -v '^ *+' conftest.er1 >conftest.err
9654 rm -f conftest.er1
9655 cat conftest.err >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } &&
9658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9659 { (case "(($ac_try" in
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9662esac
9663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_try") 2>&5
9665 ac_status=$?
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; } &&
9668 { ac_try='test -s conftest$ac_exeext'
9669 { (case "(($ac_try" in
9670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671 *) ac_try_echo=$ac_try;;
9672esac
9673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674 (eval "$ac_try") 2>&5
9675 ac_status=$?
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); }; }; then
9678 ac_cv_func_shl_load=yes
9679else
9680 echo "$as_me: failed program was:" >&5
9681sed 's/^/| /' conftest.$ac_ext >&5
9682
9683 ac_cv_func_shl_load=no
9684fi
9685
9686rm -f core conftest.err conftest.$ac_objext \
9687 conftest$ac_exeext conftest.$ac_ext
9688fi
9689{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9690echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9691if test $ac_cv_func_shl_load = yes; then
9692
9693cat >>confdefs.h <<\_ACEOF
9694#define HAVE_SHL_LOAD 1
9695_ACEOF
9696
9697else
9698 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9699echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9700if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9702else
9703 ac_check_lib_save_LIBS=$LIBS
9704LIBS="-ldld $LIBS"
9705cat >conftest.$ac_ext <<_ACEOF
9706/* confdefs.h. */
9707_ACEOF
9708cat confdefs.h >>conftest.$ac_ext
9709cat >>conftest.$ac_ext <<_ACEOF
9710/* end confdefs.h. */
9711
9712/* Override any GCC internal prototype to avoid an error.
9713 Use char because int might match the return type of a GCC
9714 builtin and then its argument prototype would still apply. */
9715#ifdef __cplusplus
9716extern "C"
9717#endif
9718char shl_load ();
9719int
9720main ()
9721{
9722return shl_load ();
9723 ;
9724 return 0;
9725}
9726_ACEOF
9727rm -f conftest.$ac_objext conftest$ac_exeext
9728if { (ac_try="$ac_link"
9729case "(($ac_try" in
9730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731 *) ac_try_echo=$ac_try;;
9732esac
9733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9734 (eval "$ac_link") 2>conftest.er1
9735 ac_status=$?
9736 grep -v '^ *+' conftest.er1 >conftest.err
9737 rm -f conftest.er1
9738 cat conftest.err >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9742 { (case "(($ac_try" in
9743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9744 *) ac_try_echo=$ac_try;;
9745esac
9746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9747 (eval "$ac_try") 2>&5
9748 ac_status=$?
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; } &&
9751 { ac_try='test -s conftest$ac_exeext'
9752 { (case "(($ac_try" in
9753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754 *) ac_try_echo=$ac_try;;
9755esac
9756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757 (eval "$ac_try") 2>&5
9758 ac_status=$?
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; }; then
9761 ac_cv_lib_dld_shl_load=yes
9762else
9763 echo "$as_me: failed program was:" >&5
9764sed 's/^/| /' conftest.$ac_ext >&5
9765
9766 ac_cv_lib_dld_shl_load=no
9767fi
9768
9769rm -f core conftest.err conftest.$ac_objext \
9770 conftest$ac_exeext conftest.$ac_ext
9771LIBS=$ac_check_lib_save_LIBS
9772fi
9773{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9774echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9775if test $ac_cv_lib_dld_shl_load = yes; then
9776
9777cat >>confdefs.h <<\_ACEOF
9778#define HAVE_SHL_LOAD 1
9779_ACEOF
9780
9781 LIBADD_DL="$LIBADD_DL -ldld"
9782else
9783 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9784echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9785if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9787else
9788 ac_check_lib_save_LIBS=$LIBS
9789LIBS="-ldl $LIBS"
9790cat >conftest.$ac_ext <<_ACEOF
9791/* confdefs.h. */
9792_ACEOF
9793cat confdefs.h >>conftest.$ac_ext
9794cat >>conftest.$ac_ext <<_ACEOF
9795/* end confdefs.h. */
9796
9797/* Override any GCC internal prototype to avoid an error.
9798 Use char because int might match the return type of a GCC
9799 builtin and then its argument prototype would still apply. */
9800#ifdef __cplusplus
9801extern "C"
9802#endif
9803char dlopen ();
9804int
9805main ()
9806{
9807return dlopen ();
9808 ;
9809 return 0;
9810}
9811_ACEOF
9812rm -f conftest.$ac_objext conftest$ac_exeext
9813if { (ac_try="$ac_link"
9814case "(($ac_try" in
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9817esac
9818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_link") 2>conftest.er1
9820 ac_status=$?
9821 grep -v '^ *+' conftest.er1 >conftest.err
9822 rm -f conftest.er1
9823 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } &&
9826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9827 { (case "(($ac_try" in
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9830esac
9831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_try") 2>&5
9833 ac_status=$?
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; } &&
9836 { ac_try='test -s conftest$ac_exeext'
9837 { (case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9840esac
9841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_try") 2>&5
9843 ac_status=$?
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; }; then
9846 ac_cv_lib_dl_dlopen=yes
9847else
9848 echo "$as_me: failed program was:" >&5
9849sed 's/^/| /' conftest.$ac_ext >&5
9850
9851 ac_cv_lib_dl_dlopen=no
9852fi
9853
9854rm -f core conftest.err conftest.$ac_objext \
9855 conftest$ac_exeext conftest.$ac_ext
9856LIBS=$ac_check_lib_save_LIBS
9857fi
9858{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9859echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9860if test $ac_cv_lib_dl_dlopen = yes; then
9861
9862cat >>confdefs.h <<\_ACEOF
9863#define HAVE_LIBDL 1
9864_ACEOF
9865
9866 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9867else
9868 cat >conftest.$ac_ext <<_ACEOF
9869/* confdefs.h. */
9870_ACEOF
9871cat confdefs.h >>conftest.$ac_ext
9872cat >>conftest.$ac_ext <<_ACEOF
9873/* end confdefs.h. */
9874#if HAVE_DLFCN_H
9875# include <dlfcn.h>
9876#endif
9877
9878int
9879main ()
9880{
9881dlopen(0, 0);
9882 ;
9883 return 0;
9884}
9885_ACEOF
9886rm -f conftest.$ac_objext conftest$ac_exeext
9887if { (ac_try="$ac_link"
9888case "(($ac_try" in
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9891esac
9892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893 (eval "$ac_link") 2>conftest.er1
9894 ac_status=$?
9895 grep -v '^ *+' conftest.er1 >conftest.err
9896 rm -f conftest.er1
9897 cat conftest.err >&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } &&
9900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9901 { (case "(($ac_try" in
9902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903 *) ac_try_echo=$ac_try;;
9904esac
9905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9906 (eval "$ac_try") 2>&5
9907 ac_status=$?
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; } &&
9910 { ac_try='test -s conftest$ac_exeext'
9911 { (case "(($ac_try" in
9912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9913 *) ac_try_echo=$ac_try;;
9914esac
9915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9916 (eval "$ac_try") 2>&5
9917 ac_status=$?
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; }; then
9920
9921cat >>confdefs.h <<\_ACEOF
9922#define HAVE_LIBDL 1
9923_ACEOF
9924 libltdl_cv_func_dlopen="yes"
9925else
9926 echo "$as_me: failed program was:" >&5
9927sed 's/^/| /' conftest.$ac_ext >&5
9928
9929 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9930echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9931if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9932 echo $ECHO_N "(cached) $ECHO_C" >&6
9933else
9934 ac_check_lib_save_LIBS=$LIBS
9935LIBS="-lsvld $LIBS"
9936cat >conftest.$ac_ext <<_ACEOF
9937/* confdefs.h. */
9938_ACEOF
9939cat confdefs.h >>conftest.$ac_ext
9940cat >>conftest.$ac_ext <<_ACEOF
9941/* end confdefs.h. */
9942
9943/* Override any GCC internal prototype to avoid an error.
9944 Use char because int might match the return type of a GCC
9945 builtin and then its argument prototype would still apply. */
9946#ifdef __cplusplus
9947extern "C"
9948#endif
9949char dlopen ();
9950int
9951main ()
9952{
9953return dlopen ();
9954 ;
9955 return 0;
9956}
9957_ACEOF
9958rm -f conftest.$ac_objext conftest$ac_exeext
9959if { (ac_try="$ac_link"
9960case "(($ac_try" in
9961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962 *) ac_try_echo=$ac_try;;
9963esac
9964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965 (eval "$ac_link") 2>conftest.er1
9966 ac_status=$?
9967 grep -v '^ *+' conftest.er1 >conftest.err
9968 rm -f conftest.er1
9969 cat conftest.err >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); } &&
9972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9973 { (case "(($ac_try" in
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9976esac
9977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_try") 2>&5
9979 ac_status=$?
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; } &&
9982 { ac_try='test -s conftest$ac_exeext'
9983 { (case "(($ac_try" in
9984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985 *) ac_try_echo=$ac_try;;
9986esac
9987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988 (eval "$ac_try") 2>&5
9989 ac_status=$?
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; }; then
9992 ac_cv_lib_svld_dlopen=yes
9993else
9994 echo "$as_me: failed program was:" >&5
9995sed 's/^/| /' conftest.$ac_ext >&5
9996
9997 ac_cv_lib_svld_dlopen=no
9998fi
9999
10000rm -f core conftest.err conftest.$ac_objext \
10001 conftest$ac_exeext conftest.$ac_ext
10002LIBS=$ac_check_lib_save_LIBS
10003fi
10004{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10005echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10006if test $ac_cv_lib_svld_dlopen = yes; then
10007
10008cat >>confdefs.h <<\_ACEOF
10009#define HAVE_LIBDL 1
10010_ACEOF
10011
10012 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10013else
10014 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10015echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10016if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10018else
10019 ac_check_lib_save_LIBS=$LIBS
10020LIBS="-ldld $LIBS"
10021cat >conftest.$ac_ext <<_ACEOF
10022/* confdefs.h. */
10023_ACEOF
10024cat confdefs.h >>conftest.$ac_ext
10025cat >>conftest.$ac_ext <<_ACEOF
10026/* end confdefs.h. */
10027
10028/* Override any GCC internal prototype to avoid an error.
10029 Use char because int might match the return type of a GCC
10030 builtin and then its argument prototype would still apply. */
10031#ifdef __cplusplus
10032extern "C"
10033#endif
10034char dld_link ();
10035int
10036main ()
10037{
10038return dld_link ();
10039 ;
10040 return 0;
10041}
10042_ACEOF
10043rm -f conftest.$ac_objext conftest$ac_exeext
10044if { (ac_try="$ac_link"
10045case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10048esac
10049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_link") 2>conftest.er1
10051 ac_status=$?
10052 grep -v '^ *+' conftest.er1 >conftest.err
10053 rm -f conftest.er1
10054 cat conftest.err >&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } &&
10057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10058 { (case "(($ac_try" in
10059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060 *) ac_try_echo=$ac_try;;
10061esac
10062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10063 (eval "$ac_try") 2>&5
10064 ac_status=$?
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; } &&
10067 { ac_try='test -s conftest$ac_exeext'
10068 { (case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10071esac
10072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10073 (eval "$ac_try") 2>&5
10074 ac_status=$?
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; }; then
10077 ac_cv_lib_dld_dld_link=yes
10078else
10079 echo "$as_me: failed program was:" >&5
10080sed 's/^/| /' conftest.$ac_ext >&5
10081
10082 ac_cv_lib_dld_dld_link=no
10083fi
10084
10085rm -f core conftest.err conftest.$ac_objext \
10086 conftest$ac_exeext conftest.$ac_ext
10087LIBS=$ac_check_lib_save_LIBS
10088fi
10089{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10090echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10091if test $ac_cv_lib_dld_dld_link = yes; then
10092
10093cat >>confdefs.h <<\_ACEOF
10094#define HAVE_DLD 1
10095_ACEOF
10096
10097 LIBADD_DL="$LIBADD_DL -ldld"
10098else
10099 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10100echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10101if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10103else
10104 cat >conftest.$ac_ext <<_ACEOF
10105/* confdefs.h. */
10106_ACEOF
10107cat confdefs.h >>conftest.$ac_ext
10108cat >>conftest.$ac_ext <<_ACEOF
10109/* end confdefs.h. */
10110/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10112#define _dyld_func_lookup innocuous__dyld_func_lookup
10113
10114/* System header to define __stub macros and hopefully few prototypes,
10115 which can conflict with char _dyld_func_lookup (); below.
10116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10117 <limits.h> exists even on freestanding compilers. */
10118
10119#ifdef __STDC__
10120# include <limits.h>
10121#else
10122# include <assert.h>
10123#endif
10124
10125#undef _dyld_func_lookup
10126
10127/* Override any GCC internal prototype to avoid an error.
10128 Use char because int might match the return type of a GCC
10129 builtin and then its argument prototype would still apply. */
10130#ifdef __cplusplus
10131extern "C"
10132#endif
10133char _dyld_func_lookup ();
10134/* The GNU C library defines this for functions which it implements
10135 to always fail with ENOSYS. Some functions are actually named
10136 something starting with __ and the normal name is an alias. */
10137#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10138choke me
10139#endif
10140
10141int
10142main ()
10143{
10144return _dyld_func_lookup ();
10145 ;
10146 return 0;
10147}
10148_ACEOF
10149rm -f conftest.$ac_objext conftest$ac_exeext
10150if { (ac_try="$ac_link"
10151case "(($ac_try" in
10152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153 *) ac_try_echo=$ac_try;;
10154esac
10155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156 (eval "$ac_link") 2>conftest.er1
10157 ac_status=$?
10158 grep -v '^ *+' conftest.er1 >conftest.err
10159 rm -f conftest.er1
10160 cat conftest.err >&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } &&
10163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10164 { (case "(($ac_try" in
10165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10166 *) ac_try_echo=$ac_try;;
10167esac
10168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10169 (eval "$ac_try") 2>&5
10170 ac_status=$?
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); }; } &&
10173 { ac_try='test -s conftest$ac_exeext'
10174 { (case "(($ac_try" in
10175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10176 *) ac_try_echo=$ac_try;;
10177esac
10178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10179 (eval "$ac_try") 2>&5
10180 ac_status=$?
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; }; then
10183 ac_cv_func__dyld_func_lookup=yes
10184else
10185 echo "$as_me: failed program was:" >&5
10186sed 's/^/| /' conftest.$ac_ext >&5
10187
10188 ac_cv_func__dyld_func_lookup=no
10189fi
10190
10191rm -f core conftest.err conftest.$ac_objext \
10192 conftest$ac_exeext conftest.$ac_ext
10193fi
10194{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10195echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10196if test $ac_cv_func__dyld_func_lookup = yes; then
10197
10198cat >>confdefs.h <<\_ACEOF
10199#define HAVE_DYLD 1
10200_ACEOF
10201
10202fi
10203
10204
10205fi
10206
10207
10208fi
10209
10210
10211fi
10212
10213rm -f core conftest.err conftest.$ac_objext \
10214 conftest$ac_exeext conftest.$ac_ext
10215
10216fi
10217
10218
10219fi
10220
10221
10222fi
10223
10224
10225if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10226then
10227 lt_save_LIBS="$LIBS"
10228 LIBS="$LIBS $LIBADD_DL"
10229
10230for ac_func in dlerror
10231do
10232as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10233{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10234echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10235if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10237else
10238 cat >conftest.$ac_ext <<_ACEOF
10239/* confdefs.h. */
10240_ACEOF
10241cat confdefs.h >>conftest.$ac_ext
10242cat >>conftest.$ac_ext <<_ACEOF
10243/* end confdefs.h. */
10244/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10246#define $ac_func innocuous_$ac_func
10247
10248/* System header to define __stub macros and hopefully few prototypes,
10249 which can conflict with char $ac_func (); below.
10250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10251 <limits.h> exists even on freestanding compilers. */
10252
10253#ifdef __STDC__
10254# include <limits.h>
10255#else
10256# include <assert.h>
10257#endif
10258
10259#undef $ac_func
10260
10261/* Override any GCC internal prototype to avoid an error.
10262 Use char because int might match the return type of a GCC
10263 builtin and then its argument prototype would still apply. */
10264#ifdef __cplusplus
10265extern "C"
10266#endif
10267char $ac_func ();
10268/* The GNU C library defines this for functions which it implements
10269 to always fail with ENOSYS. Some functions are actually named
10270 something starting with __ and the normal name is an alias. */
10271#if defined __stub_$ac_func || defined __stub___$ac_func
10272choke me
10273#endif
10274
10275int
10276main ()
10277{
10278return $ac_func ();
10279 ;
10280 return 0;
10281}
10282_ACEOF
10283rm -f conftest.$ac_objext conftest$ac_exeext
10284if { (ac_try="$ac_link"
10285case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10288esac
10289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_link") 2>conftest.er1
10291 ac_status=$?
10292 grep -v '^ *+' conftest.er1 >conftest.err
10293 rm -f conftest.er1
10294 cat conftest.err >&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } &&
10297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10298 { (case "(($ac_try" in
10299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300 *) ac_try_echo=$ac_try;;
10301esac
10302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10303 (eval "$ac_try") 2>&5
10304 ac_status=$?
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); }; } &&
10307 { ac_try='test -s conftest$ac_exeext'
10308 { (case "(($ac_try" in
10309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10310 *) ac_try_echo=$ac_try;;
10311esac
10312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10313 (eval "$ac_try") 2>&5
10314 ac_status=$?
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); }; }; then
10317 eval "$as_ac_var=yes"
10318else
10319 echo "$as_me: failed program was:" >&5
10320sed 's/^/| /' conftest.$ac_ext >&5
10321
10322 eval "$as_ac_var=no"
10323fi
10324
10325rm -f core conftest.err conftest.$ac_objext \
10326 conftest$ac_exeext conftest.$ac_ext
10327fi
10328ac_res=`eval echo '${'$as_ac_var'}'`
10329 { echo "$as_me:$LINENO: result: $ac_res" >&5
10330echo "${ECHO_T}$ac_res" >&6; }
10331if test `eval echo '${'$as_ac_var'}'` = yes; then
10332 cat >>confdefs.h <<_ACEOF
10333#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10334_ACEOF
10335
10336fi
10337done
10338
10339 LIBS="$lt_save_LIBS"
10340fi
10341ac_ext=c
10342ac_cpp='$CPP $CPPFLAGS'
10343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10345ac_compiler_gnu=$ac_cv_c_compiler_gnu
10346
10347
10348
10349{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10350echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10351if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
10353else
10354 ac_cv_sys_symbol_underscore=no
10355 cat > conftest.$ac_ext <<EOF
10356void nm_test_func(){}
10357int main(){nm_test_func;return 0;}
10358EOF
10359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10360 (eval $ac_compile) 2>&5
10361 ac_status=$?
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; then
10364 # Now try to grab the symbols.
10365 ac_nlist=conftest.nm
10366 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10367 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10368 ac_status=$?
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } && test -s "$ac_nlist"; then
10371 # See whether the symbols have a leading underscore.
10372 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10373 ac_cv_sys_symbol_underscore=yes
10374 else
10375 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10376 :
10377 else
10378 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10379 fi
10380 fi
10381 else
10382 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10383 fi
10384 else
10385 echo "configure: failed program was:" >&5
10386 cat conftest.c >&5
10387 fi
10388 rm -rf conftest*
10389
10390fi
10391{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10392echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10393
10394
10395if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10396 if test x"$libltdl_cv_func_dlopen" = xyes ||
10397 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10398 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10399echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10400if test "${libltdl_cv_need_uscore+set}" = set; then
10401 echo $ECHO_N "(cached) $ECHO_C" >&6
10402else
10403 libltdl_cv_need_uscore=unknown
10404 save_LIBS="$LIBS"
10405 LIBS="$LIBS $LIBADD_DL"
10406 if test "$cross_compiling" = yes; then :
10407 libltdl_cv_need_uscore=cross
10408else
10409 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10410 lt_status=$lt_dlunknown
10411 cat > conftest.$ac_ext <<EOF
10412#line 10423 "configure"
10413#include "confdefs.h"
10414
10415#if HAVE_DLFCN_H
10416#include <dlfcn.h>
10417#endif
10418
10419#include <stdio.h>
10420
10421#ifdef RTLD_GLOBAL
10422# define LT_DLGLOBAL RTLD_GLOBAL
10423#else
10424# ifdef DL_GLOBAL
10425# define LT_DLGLOBAL DL_GLOBAL
10426# else
10427# define LT_DLGLOBAL 0
10428# endif
10429#endif
10430
10431/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10432 find out it does not work in some platform. */
10433#ifndef LT_DLLAZY_OR_NOW
10434# ifdef RTLD_LAZY
10435# define LT_DLLAZY_OR_NOW RTLD_LAZY
10436# else
10437# ifdef DL_LAZY
10438# define LT_DLLAZY_OR_NOW DL_LAZY
10439# else
10440# ifdef RTLD_NOW
10441# define LT_DLLAZY_OR_NOW RTLD_NOW
10442# else
10443# ifdef DL_NOW
10444# define LT_DLLAZY_OR_NOW DL_NOW
10445# else
10446# define LT_DLLAZY_OR_NOW 0
10447# endif
10448# endif
10449# endif
10450# endif
10451#endif
10452
10453#ifdef __cplusplus
10454extern "C" void exit (int);
10455#endif
10456
10457void fnord() { int i=42;}
10458int main ()
10459{
10460 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10461 int status = $lt_dlunknown;
10462
10463 if (self)
10464 {
10465 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10466 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10467 /* dlclose (self); */
10468 }
10469 else
10470 puts (dlerror ());
10471
10472 exit (status);
10473}
10474EOF
10475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10476 (eval $ac_link) 2>&5
10477 ac_status=$?
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10480 (./conftest; exit; ) >&5 2>/dev/null
10481 lt_status=$?
10482 case x$lt_status in
10483 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10484 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10485 x$lt_dlunknown|x*) ;;
10486 esac
10487 else :
10488 # compilation failed
10489
10490 fi
10491fi
10492rm -fr conftest*
10493
10494 LIBS="$save_LIBS"
10495
10496fi
10497{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10498echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10499 fi
10500fi
10501
10502if test x"$libltdl_cv_need_uscore" = xyes; then
10503
10504cat >>confdefs.h <<\_ACEOF
10505#define NEED_USCORE 1
10506_ACEOF
10507
10508fi
10509
10510
10511{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10512echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10513if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10514 echo $ECHO_N "(cached) $ECHO_C" >&6
10515else
10516 # PORTME does your system automatically load deplibs for dlopen?
10517 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10518 # For now, we just catch OSes we know something about -- in the
10519 # future, we'll try test this programmatically.
10520 libltdl_cv_sys_dlopen_deplibs=unknown
10521 case "$host_os" in
10522 aix3*|aix4.1.*|aix4.2.*)
10523 # Unknown whether this is true for these versions of AIX, but
10524 # we want this `case' here to explicitly catch those versions.
10525 libltdl_cv_sys_dlopen_deplibs=unknown
10526 ;;
10527 aix[45]*)
10528 libltdl_cv_sys_dlopen_deplibs=yes
10529 ;;
10530 darwin*)
10531 # Assuming the user has installed a libdl from somewhere, this is true
10532 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10533 libltdl_cv_sys_dlopen_deplibs=yes
10534 ;;
10535 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10536 # GNU and its variants, using gnu ld.so (Glibc)
10537 libltdl_cv_sys_dlopen_deplibs=yes
10538 ;;
10539 hpux10*|hpux11*)
10540 libltdl_cv_sys_dlopen_deplibs=yes
10541 ;;
10542 interix*)
10543 libltdl_cv_sys_dlopen_deplibs=yes
10544 ;;
10545 irix[12345]*|irix6.[01]*)
10546 # Catch all versions of IRIX before 6.2, and indicate that we don't
10547 # know how it worked for any of those versions.
10548 libltdl_cv_sys_dlopen_deplibs=unknown
10549 ;;
10550 irix*)
10551 # The case above catches anything before 6.2, and it's known that
10552 # at 6.2 and later dlopen does load deplibs.
10553 libltdl_cv_sys_dlopen_deplibs=yes
10554 ;;
10555 netbsd*)
10556 libltdl_cv_sys_dlopen_deplibs=yes
10557 ;;
10558 openbsd*)
10559 libltdl_cv_sys_dlopen_deplibs=yes
10560 ;;
10561 osf[1234]*)
10562 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10563 # it did *not* use an RPATH in a shared library to find objects the
10564 # library depends on, so we explicitly say `no'.
10565 libltdl_cv_sys_dlopen_deplibs=no
10566 ;;
10567 osf5.0|osf5.0a|osf5.1)
10568 # dlopen *does* load deplibs and with the right loader patch applied
10569 # it even uses RPATH in a shared library to search for shared objects
10570 # that the library depends on, but there's no easy way to know if that
10571 # patch is installed. Since this is the case, all we can really
10572 # say is unknown -- it depends on the patch being installed. If
10573 # it is, this changes to `yes'. Without it, it would be `no'.
10574 libltdl_cv_sys_dlopen_deplibs=unknown
10575 ;;
10576 osf*)
10577 # the two cases above should catch all versions of osf <= 5.1. Read
10578 # the comments above for what we know about them.
10579 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10580 # is used to find them so we can finally say `yes'.
10581 libltdl_cv_sys_dlopen_deplibs=yes
10582 ;;
10583 solaris*)
10584 libltdl_cv_sys_dlopen_deplibs=yes
10585 ;;
10586 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10587 libltdl_cv_sys_dlopen_deplibs=yes
10588 ;;
10589 esac
10590
10591fi
10592{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10593echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10594if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10595
10596cat >>confdefs.h <<\_ACEOF
10597#define LTDL_DLOPEN_DEPLIBS 1
10598_ACEOF
10599
10600fi
10601
10602
10603for ac_header in argz.h
10604do
10605as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10606if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10607 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10608echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10609if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10611fi
10612ac_res=`eval echo '${'$as_ac_Header'}'`
10613 { echo "$as_me:$LINENO: result: $ac_res" >&5
10614echo "${ECHO_T}$ac_res" >&6; }
10615else
10616 # Is the header compilable?
10617{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10618echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10619cat >conftest.$ac_ext <<_ACEOF
10620/* confdefs.h. */
10621_ACEOF
10622cat confdefs.h >>conftest.$ac_ext
10623cat >>conftest.$ac_ext <<_ACEOF
10624/* end confdefs.h. */
10625$ac_includes_default
10626#include <$ac_header>
10627_ACEOF
10628rm -f conftest.$ac_objext
10629if { (ac_try="$ac_compile"
10630case "(($ac_try" in
10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 *) ac_try_echo=$ac_try;;
10633esac
10634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635 (eval "$ac_compile") 2>conftest.er1
10636 ac_status=$?
10637 grep -v '^ *+' conftest.er1 >conftest.err
10638 rm -f conftest.er1
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } &&
10642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10643 { (case "(($ac_try" in
10644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645 *) ac_try_echo=$ac_try;;
10646esac
10647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648 (eval "$ac_try") 2>&5
10649 ac_status=$?
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; } &&
10652 { ac_try='test -s conftest.$ac_objext'
10653 { (case "(($ac_try" in
10654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10656esac
10657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658 (eval "$ac_try") 2>&5
10659 ac_status=$?
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; }; then
10662 ac_header_compiler=yes
10663else
10664 echo "$as_me: failed program was:" >&5
10665sed 's/^/| /' conftest.$ac_ext >&5
10666
10667 ac_header_compiler=no
10668fi
10669
10670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10671{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10672echo "${ECHO_T}$ac_header_compiler" >&6; }
10673
10674# Is the header present?
10675{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10676echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10677cat >conftest.$ac_ext <<_ACEOF
10678/* confdefs.h. */
10679_ACEOF
10680cat confdefs.h >>conftest.$ac_ext
10681cat >>conftest.$ac_ext <<_ACEOF
10682/* end confdefs.h. */
10683#include <$ac_header>
10684_ACEOF
10685if { (ac_try="$ac_cpp conftest.$ac_ext"
10686case "(($ac_try" in
10687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10688 *) ac_try_echo=$ac_try;;
10689esac
10690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10692 ac_status=$?
10693 grep -v '^ *+' conftest.er1 >conftest.err
10694 rm -f conftest.er1
10695 cat conftest.err >&5
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } >/dev/null; then
10698 if test -s conftest.err; then
10699 ac_cpp_err=$ac_c_preproc_warn_flag
10700 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10701 else
10702 ac_cpp_err=
10703 fi
10704else
10705 ac_cpp_err=yes
10706fi
10707if test -z "$ac_cpp_err"; then
10708 ac_header_preproc=yes
10709else
10710 echo "$as_me: failed program was:" >&5
10711sed 's/^/| /' conftest.$ac_ext >&5
10712
10713 ac_header_preproc=no
10714fi
10715
10716rm -f conftest.err conftest.$ac_ext
10717{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10718echo "${ECHO_T}$ac_header_preproc" >&6; }
10719
10720# So? What about this header?
10721case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10722 yes:no: )
10723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10724echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10726echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10727 ac_header_preproc=yes
10728 ;;
10729 no:yes:* )
10730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10731echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10733echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10734 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10735echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10736 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10737echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10739echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10740 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10741echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10742 ( cat <<\_ASBOX
10743## ------------------------------ ##
10744## Report this to bugs@yourdomain ##
10745## ------------------------------ ##
10746_ASBOX
10747 ) | sed "s/^/$as_me: WARNING: /" >&2
10748 ;;
10749esac
10750{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10751echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10752if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10754else
10755 eval "$as_ac_Header=\$ac_header_preproc"
10756fi
10757ac_res=`eval echo '${'$as_ac_Header'}'`
10758 { echo "$as_me:$LINENO: result: $ac_res" >&5
10759echo "${ECHO_T}$ac_res" >&6; }
10760
10761fi
10762if test `eval echo '${'$as_ac_Header'}'` = yes; then
10763 cat >>confdefs.h <<_ACEOF
10764#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10765_ACEOF
10766
10767fi
10768
10769done
10770
10771
10772{ echo "$as_me:$LINENO: checking for error_t" >&5
10773echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10774if test "${ac_cv_type_error_t+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10776else
10777 cat >conftest.$ac_ext <<_ACEOF
10778/* confdefs.h. */
10779_ACEOF
10780cat confdefs.h >>conftest.$ac_ext
10781cat >>conftest.$ac_ext <<_ACEOF
10782/* end confdefs.h. */
10783#if HAVE_ARGZ_H
10784# include <argz.h>
10785#endif
10786
10787typedef error_t ac__type_new_;
10788int
10789main ()
10790{
10791if ((ac__type_new_ *) 0)
10792 return 0;
10793if (sizeof (ac__type_new_))
10794 return 0;
10795 ;
10796 return 0;
10797}
10798_ACEOF
10799rm -f conftest.$ac_objext
10800if { (ac_try="$ac_compile"
10801case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10804esac
10805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806 (eval "$ac_compile") 2>conftest.er1
10807 ac_status=$?
10808 grep -v '^ *+' conftest.er1 >conftest.err
10809 rm -f conftest.er1
10810 cat conftest.err >&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } &&
10813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10814 { (case "(($ac_try" in
10815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10816 *) ac_try_echo=$ac_try;;
10817esac
10818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10819 (eval "$ac_try") 2>&5
10820 ac_status=$?
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; } &&
10823 { ac_try='test -s conftest.$ac_objext'
10824 { (case "(($ac_try" in
10825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10826 *) ac_try_echo=$ac_try;;
10827esac
10828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829 (eval "$ac_try") 2>&5
10830 ac_status=$?
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; }; then
10833 ac_cv_type_error_t=yes
10834else
10835 echo "$as_me: failed program was:" >&5
10836sed 's/^/| /' conftest.$ac_ext >&5
10837
10838 ac_cv_type_error_t=no
10839fi
10840
10841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10842fi
10843{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10844echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10845if test $ac_cv_type_error_t = yes; then
10846
10847cat >>confdefs.h <<_ACEOF
10848#define HAVE_ERROR_T 1
10849_ACEOF
10850
10851
10852else
10853
10854cat >>confdefs.h <<\_ACEOF
10855#define error_t int
10856_ACEOF
10857
10858fi
10859
10860
10861
10862
10863
10864
10865
10866for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10867do
10868as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10869{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10870echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10871if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10873else
10874 cat >conftest.$ac_ext <<_ACEOF
10875/* confdefs.h. */
10876_ACEOF
10877cat confdefs.h >>conftest.$ac_ext
10878cat >>conftest.$ac_ext <<_ACEOF
10879/* end confdefs.h. */
10880/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10882#define $ac_func innocuous_$ac_func
10883
10884/* System header to define __stub macros and hopefully few prototypes,
10885 which can conflict with char $ac_func (); below.
10886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10887 <limits.h> exists even on freestanding compilers. */
10888
10889#ifdef __STDC__
10890# include <limits.h>
10891#else
10892# include <assert.h>
10893#endif
10894
10895#undef $ac_func
10896
10897/* Override any GCC internal prototype to avoid an error.
10898 Use char because int might match the return type of a GCC
10899 builtin and then its argument prototype would still apply. */
10900#ifdef __cplusplus
10901extern "C"
10902#endif
10903char $ac_func ();
10904/* The GNU C library defines this for functions which it implements
10905 to always fail with ENOSYS. Some functions are actually named
10906 something starting with __ and the normal name is an alias. */
10907#if defined __stub_$ac_func || defined __stub___$ac_func
10908choke me
10909#endif
10910
10911int
10912main ()
10913{
10914return $ac_func ();
10915 ;
10916 return 0;
10917}
10918_ACEOF
10919rm -f conftest.$ac_objext conftest$ac_exeext
10920if { (ac_try="$ac_link"
10921case "(($ac_try" in
10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10924esac
10925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926 (eval "$ac_link") 2>conftest.er1
10927 ac_status=$?
10928 grep -v '^ *+' conftest.er1 >conftest.err
10929 rm -f conftest.er1
10930 cat conftest.err >&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } &&
10933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10934 { (case "(($ac_try" in
10935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936 *) ac_try_echo=$ac_try;;
10937esac
10938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939 (eval "$ac_try") 2>&5
10940 ac_status=$?
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; } &&
10943 { ac_try='test -s conftest$ac_exeext'
10944 { (case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10947esac
10948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_try") 2>&5
10950 ac_status=$?
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; }; then
10953 eval "$as_ac_var=yes"
10954else
10955 echo "$as_me: failed program was:" >&5
10956sed 's/^/| /' conftest.$ac_ext >&5
10957
10958 eval "$as_ac_var=no"
10959fi
10960
10961rm -f core conftest.err conftest.$ac_objext \
10962 conftest$ac_exeext conftest.$ac_ext
10963fi
10964ac_res=`eval echo '${'$as_ac_var'}'`
10965 { echo "$as_me:$LINENO: result: $ac_res" >&5
10966echo "${ECHO_T}$ac_res" >&6; }
10967if test `eval echo '${'$as_ac_var'}'` = yes; then
10968 cat >>confdefs.h <<_ACEOF
10969#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10970_ACEOF
10971
10972fi
10973done
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11003 stdio.h unistd.h
11004do
11005as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11006if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11010 echo $ECHO_N "(cached) $ECHO_C" >&6
11011fi
11012ac_res=`eval echo '${'$as_ac_Header'}'`
11013 { echo "$as_me:$LINENO: result: $ac_res" >&5
11014echo "${ECHO_T}$ac_res" >&6; }
11015else
11016 # Is the header compilable?
11017{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11018echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11019cat >conftest.$ac_ext <<_ACEOF
11020/* confdefs.h. */
11021_ACEOF
11022cat confdefs.h >>conftest.$ac_ext
11023cat >>conftest.$ac_ext <<_ACEOF
11024/* end confdefs.h. */
11025$ac_includes_default
11026#include <$ac_header>
11027_ACEOF
11028rm -f conftest.$ac_objext
11029if { (ac_try="$ac_compile"
11030case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11033esac
11034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_compile") 2>conftest.er1
11036 ac_status=$?
11037 grep -v '^ *+' conftest.er1 >conftest.err
11038 rm -f conftest.er1
11039 cat conftest.err >&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } &&
11042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11043 { (case "(($ac_try" in
11044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045 *) ac_try_echo=$ac_try;;
11046esac
11047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048 (eval "$ac_try") 2>&5
11049 ac_status=$?
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }; } &&
11052 { ac_try='test -s conftest.$ac_objext'
11053 { (case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11056esac
11057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_try") 2>&5
11059 ac_status=$?
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 ac_header_compiler=yes
11063else
11064 echo "$as_me: failed program was:" >&5
11065sed 's/^/| /' conftest.$ac_ext >&5
11066
11067 ac_header_compiler=no
11068fi
11069
11070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11071{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11072echo "${ECHO_T}$ac_header_compiler" >&6; }
11073
11074# Is the header present?
11075{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11076echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11077cat >conftest.$ac_ext <<_ACEOF
11078/* confdefs.h. */
11079_ACEOF
11080cat confdefs.h >>conftest.$ac_ext
11081cat >>conftest.$ac_ext <<_ACEOF
11082/* end confdefs.h. */
11083#include <$ac_header>
11084_ACEOF
11085if { (ac_try="$ac_cpp conftest.$ac_ext"
11086case "(($ac_try" in
11087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088 *) ac_try_echo=$ac_try;;
11089esac
11090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11092 ac_status=$?
11093 grep -v '^ *+' conftest.er1 >conftest.err
11094 rm -f conftest.er1
11095 cat conftest.err >&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } >/dev/null; then
11098 if test -s conftest.err; then
11099 ac_cpp_err=$ac_c_preproc_warn_flag
11100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11101 else
11102 ac_cpp_err=
11103 fi
11104else
11105 ac_cpp_err=yes
11106fi
11107if test -z "$ac_cpp_err"; then
11108 ac_header_preproc=yes
11109else
11110 echo "$as_me: failed program was:" >&5
11111sed 's/^/| /' conftest.$ac_ext >&5
11112
11113 ac_header_preproc=no
11114fi
11115
11116rm -f conftest.err conftest.$ac_ext
11117{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11118echo "${ECHO_T}$ac_header_preproc" >&6; }
11119
11120# So? What about this header?
11121case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11122 yes:no: )
11123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11124echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11126echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11127 ac_header_preproc=yes
11128 ;;
11129 no:yes:* )
11130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11131echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11133echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11135echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11137echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11139echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11141echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11142 ( cat <<\_ASBOX
11143## ------------------------------ ##
11144## Report this to bugs@yourdomain ##
11145## ------------------------------ ##
11146_ASBOX
11147 ) | sed "s/^/$as_me: WARNING: /" >&2
11148 ;;
11149esac
11150{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11154else
11155 eval "$as_ac_Header=\$ac_header_preproc"
11156fi
11157ac_res=`eval echo '${'$as_ac_Header'}'`
11158 { echo "$as_me:$LINENO: result: $ac_res" >&5
11159echo "${ECHO_T}$ac_res" >&6; }
11160
11161fi
11162if test `eval echo '${'$as_ac_Header'}'` = yes; then
11163 cat >>confdefs.h <<_ACEOF
11164#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11165_ACEOF
11166
11167fi
11168
11169done
11170
11171
11172
11173
11174
11175for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11176do
11177as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11178if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11181if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
11183fi
11184ac_res=`eval echo '${'$as_ac_Header'}'`
11185 { echo "$as_me:$LINENO: result: $ac_res" >&5
11186echo "${ECHO_T}$ac_res" >&6; }
11187else
11188 # Is the header compilable?
11189{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11190echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11191cat >conftest.$ac_ext <<_ACEOF
11192/* confdefs.h. */
11193_ACEOF
11194cat confdefs.h >>conftest.$ac_ext
11195cat >>conftest.$ac_ext <<_ACEOF
11196/* end confdefs.h. */
11197$ac_includes_default
11198#include <$ac_header>
11199_ACEOF
11200rm -f conftest.$ac_objext
11201if { (ac_try="$ac_compile"
11202case "(($ac_try" in
11203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11204 *) ac_try_echo=$ac_try;;
11205esac
11206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11207 (eval "$ac_compile") 2>conftest.er1
11208 ac_status=$?
11209 grep -v '^ *+' conftest.er1 >conftest.err
11210 rm -f conftest.er1
11211 cat conftest.err >&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); } &&
11214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11215 { (case "(($ac_try" in
11216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217 *) ac_try_echo=$ac_try;;
11218esac
11219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220 (eval "$ac_try") 2>&5
11221 ac_status=$?
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); }; } &&
11224 { ac_try='test -s conftest.$ac_objext'
11225 { (case "(($ac_try" in
11226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11227 *) ac_try_echo=$ac_try;;
11228esac
11229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11230 (eval "$ac_try") 2>&5
11231 ac_status=$?
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); }; }; then
11234 ac_header_compiler=yes
11235else
11236 echo "$as_me: failed program was:" >&5
11237sed 's/^/| /' conftest.$ac_ext >&5
11238
11239 ac_header_compiler=no
11240fi
11241
11242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11243{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11244echo "${ECHO_T}$ac_header_compiler" >&6; }
11245
11246# Is the header present?
11247{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11248echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11249cat >conftest.$ac_ext <<_ACEOF
11250/* confdefs.h. */
11251_ACEOF
11252cat confdefs.h >>conftest.$ac_ext
11253cat >>conftest.$ac_ext <<_ACEOF
11254/* end confdefs.h. */
11255#include <$ac_header>
11256_ACEOF
11257if { (ac_try="$ac_cpp conftest.$ac_ext"
11258case "(($ac_try" in
11259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11260 *) ac_try_echo=$ac_try;;
11261esac
11262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11264 ac_status=$?
11265 grep -v '^ *+' conftest.er1 >conftest.err
11266 rm -f conftest.er1
11267 cat conftest.err >&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); } >/dev/null; then
11270 if test -s conftest.err; then
11271 ac_cpp_err=$ac_c_preproc_warn_flag
11272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11273 else
11274 ac_cpp_err=
11275 fi
11276else
11277 ac_cpp_err=yes
11278fi
11279if test -z "$ac_cpp_err"; then
11280 ac_header_preproc=yes
11281else
11282 echo "$as_me: failed program was:" >&5
11283sed 's/^/| /' conftest.$ac_ext >&5
11284
11285 ac_header_preproc=no
11286fi
11287
11288rm -f conftest.err conftest.$ac_ext
11289{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11290echo "${ECHO_T}$ac_header_preproc" >&6; }
11291
11292# So? What about this header?
11293case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11294 yes:no: )
11295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11296echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11298echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11299 ac_header_preproc=yes
11300 ;;
11301 no:yes:* )
11302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11303echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11305echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11307echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11309echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11311echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11313echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11314 ( cat <<\_ASBOX
11315## ------------------------------ ##
11316## Report this to bugs@yourdomain ##
11317## ------------------------------ ##
11318_ASBOX
11319 ) | sed "s/^/$as_me: WARNING: /" >&2
11320 ;;
11321esac
11322{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11324if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
11326else
11327 eval "$as_ac_Header=\$ac_header_preproc"
11328fi
11329ac_res=`eval echo '${'$as_ac_Header'}'`
11330 { echo "$as_me:$LINENO: result: $ac_res" >&5
11331echo "${ECHO_T}$ac_res" >&6; }
11332
11333fi
11334if test `eval echo '${'$as_ac_Header'}'` = yes; then
11335 cat >>confdefs.h <<_ACEOF
11336#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11337_ACEOF
11338
11339fi
11340
11341done
11342
11343
11344
11345for ac_header in string.h strings.h
11346do
11347as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11348if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11352 echo $ECHO_N "(cached) $ECHO_C" >&6
11353fi
11354ac_res=`eval echo '${'$as_ac_Header'}'`
11355 { echo "$as_me:$LINENO: result: $ac_res" >&5
11356echo "${ECHO_T}$ac_res" >&6; }
11357else
11358 # Is the header compilable?
11359{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11360echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11361cat >conftest.$ac_ext <<_ACEOF
11362/* confdefs.h. */
11363_ACEOF
11364cat confdefs.h >>conftest.$ac_ext
11365cat >>conftest.$ac_ext <<_ACEOF
11366/* end confdefs.h. */
11367$ac_includes_default
11368#include <$ac_header>
11369_ACEOF
11370rm -f conftest.$ac_objext
11371if { (ac_try="$ac_compile"
11372case "(($ac_try" in
11373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11374 *) ac_try_echo=$ac_try;;
11375esac
11376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11377 (eval "$ac_compile") 2>conftest.er1
11378 ac_status=$?
11379 grep -v '^ *+' conftest.er1 >conftest.err
11380 rm -f conftest.er1
11381 cat conftest.err >&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } &&
11384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11385 { (case "(($ac_try" in
11386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387 *) ac_try_echo=$ac_try;;
11388esac
11389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390 (eval "$ac_try") 2>&5
11391 ac_status=$?
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; } &&
11394 { ac_try='test -s conftest.$ac_objext'
11395 { (case "(($ac_try" in
11396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11397 *) ac_try_echo=$ac_try;;
11398esac
11399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11400 (eval "$ac_try") 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; }; then
11404 ac_header_compiler=yes
11405else
11406 echo "$as_me: failed program was:" >&5
11407sed 's/^/| /' conftest.$ac_ext >&5
11408
11409 ac_header_compiler=no
11410fi
11411
11412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11413{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11414echo "${ECHO_T}$ac_header_compiler" >&6; }
11415
11416# Is the header present?
11417{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11418echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11419cat >conftest.$ac_ext <<_ACEOF
11420/* confdefs.h. */
11421_ACEOF
11422cat confdefs.h >>conftest.$ac_ext
11423cat >>conftest.$ac_ext <<_ACEOF
11424/* end confdefs.h. */
11425#include <$ac_header>
11426_ACEOF
11427if { (ac_try="$ac_cpp conftest.$ac_ext"
11428case "(($ac_try" in
11429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11430 *) ac_try_echo=$ac_try;;
11431esac
11432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11434 ac_status=$?
11435 grep -v '^ *+' conftest.er1 >conftest.err
11436 rm -f conftest.er1
11437 cat conftest.err >&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } >/dev/null; then
11440 if test -s conftest.err; then
11441 ac_cpp_err=$ac_c_preproc_warn_flag
11442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11443 else
11444 ac_cpp_err=
11445 fi
11446else
11447 ac_cpp_err=yes
11448fi
11449if test -z "$ac_cpp_err"; then
11450 ac_header_preproc=yes
11451else
11452 echo "$as_me: failed program was:" >&5
11453sed 's/^/| /' conftest.$ac_ext >&5
11454
11455 ac_header_preproc=no
11456fi
11457
11458rm -f conftest.err conftest.$ac_ext
11459{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11460echo "${ECHO_T}$ac_header_preproc" >&6; }
11461
11462# So? What about this header?
11463case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11464 yes:no: )
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11466echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11468echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11469 ac_header_preproc=yes
11470 ;;
11471 no:yes:* )
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11473echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11475echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11477echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11479echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11481echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11483echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11484 ( cat <<\_ASBOX
11485## ------------------------------ ##
11486## Report this to bugs@yourdomain ##
11487## ------------------------------ ##
11488_ASBOX
11489 ) | sed "s/^/$as_me: WARNING: /" >&2
11490 ;;
11491esac
11492{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11493echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11494if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11496else
11497 eval "$as_ac_Header=\$ac_header_preproc"
11498fi
11499ac_res=`eval echo '${'$as_ac_Header'}'`
11500 { echo "$as_me:$LINENO: result: $ac_res" >&5
11501echo "${ECHO_T}$ac_res" >&6; }
11502
11503fi
11504if test `eval echo '${'$as_ac_Header'}'` = yes; then
11505 cat >>confdefs.h <<_ACEOF
11506#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11507_ACEOF
11508 break
11509fi
11510
11511done
11512
11513
11514
11515
11516for ac_func in strchr index
11517do
11518as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11519{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11520echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11521if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11522 echo $ECHO_N "(cached) $ECHO_C" >&6
11523else
11524 cat >conftest.$ac_ext <<_ACEOF
11525/* confdefs.h. */
11526_ACEOF
11527cat confdefs.h >>conftest.$ac_ext
11528cat >>conftest.$ac_ext <<_ACEOF
11529/* end confdefs.h. */
11530/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11532#define $ac_func innocuous_$ac_func
11533
11534/* System header to define __stub macros and hopefully few prototypes,
11535 which can conflict with char $ac_func (); below.
11536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11537 <limits.h> exists even on freestanding compilers. */
11538
11539#ifdef __STDC__
11540# include <limits.h>
11541#else
11542# include <assert.h>
11543#endif
11544
11545#undef $ac_func
11546
11547/* Override any GCC internal prototype to avoid an error.
11548 Use char because int might match the return type of a GCC
11549 builtin and then its argument prototype would still apply. */
11550#ifdef __cplusplus
11551extern "C"
11552#endif
11553char $ac_func ();
11554/* The GNU C library defines this for functions which it implements
11555 to always fail with ENOSYS. Some functions are actually named
11556 something starting with __ and the normal name is an alias. */
11557#if defined __stub_$ac_func || defined __stub___$ac_func
11558choke me
11559#endif
11560
11561int
11562main ()
11563{
11564return $ac_func ();
11565 ;
11566 return 0;
11567}
11568_ACEOF
11569rm -f conftest.$ac_objext conftest$ac_exeext
11570if { (ac_try="$ac_link"
11571case "(($ac_try" in
11572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11573 *) ac_try_echo=$ac_try;;
11574esac
11575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11576 (eval "$ac_link") 2>conftest.er1
11577 ac_status=$?
11578 grep -v '^ *+' conftest.er1 >conftest.err
11579 rm -f conftest.er1
11580 cat conftest.err >&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); } &&
11583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11584 { (case "(($ac_try" in
11585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586 *) ac_try_echo=$ac_try;;
11587esac
11588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11589 (eval "$ac_try") 2>&5
11590 ac_status=$?
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); }; } &&
11593 { ac_try='test -s conftest$ac_exeext'
11594 { (case "(($ac_try" in
11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 *) ac_try_echo=$ac_try;;
11597esac
11598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599 (eval "$ac_try") 2>&5
11600 ac_status=$?
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; }; then
11603 eval "$as_ac_var=yes"
11604else
11605 echo "$as_me: failed program was:" >&5
11606sed 's/^/| /' conftest.$ac_ext >&5
11607
11608 eval "$as_ac_var=no"
11609fi
11610
11611rm -f core conftest.err conftest.$ac_objext \
11612 conftest$ac_exeext conftest.$ac_ext
11613fi
11614ac_res=`eval echo '${'$as_ac_var'}'`
11615 { echo "$as_me:$LINENO: result: $ac_res" >&5
11616echo "${ECHO_T}$ac_res" >&6; }
11617if test `eval echo '${'$as_ac_var'}'` = yes; then
11618 cat >>confdefs.h <<_ACEOF
11619#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11620_ACEOF
11621 break
11622fi
11623done
11624
11625
11626
11627for ac_func in strrchr rindex
11628do
11629as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11630{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11631echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11632if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11634else
11635 cat >conftest.$ac_ext <<_ACEOF
11636/* confdefs.h. */
11637_ACEOF
11638cat confdefs.h >>conftest.$ac_ext
11639cat >>conftest.$ac_ext <<_ACEOF
11640/* end confdefs.h. */
11641/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11643#define $ac_func innocuous_$ac_func
11644
11645/* System header to define __stub macros and hopefully few prototypes,
11646 which can conflict with char $ac_func (); below.
11647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11648 <limits.h> exists even on freestanding compilers. */
11649
11650#ifdef __STDC__
11651# include <limits.h>
11652#else
11653# include <assert.h>
11654#endif
11655
11656#undef $ac_func
11657
11658/* Override any GCC internal prototype to avoid an error.
11659 Use char because int might match the return type of a GCC
11660 builtin and then its argument prototype would still apply. */
11661#ifdef __cplusplus
11662extern "C"
11663#endif
11664char $ac_func ();
11665/* The GNU C library defines this for functions which it implements
11666 to always fail with ENOSYS. Some functions are actually named
11667 something starting with __ and the normal name is an alias. */
11668#if defined __stub_$ac_func || defined __stub___$ac_func
11669choke me
11670#endif
11671
11672int
11673main ()
11674{
11675return $ac_func ();
11676 ;
11677 return 0;
11678}
11679_ACEOF
11680rm -f conftest.$ac_objext conftest$ac_exeext
11681if { (ac_try="$ac_link"
11682case "(($ac_try" in
11683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684 *) ac_try_echo=$ac_try;;
11685esac
11686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687 (eval "$ac_link") 2>conftest.er1
11688 ac_status=$?
11689 grep -v '^ *+' conftest.er1 >conftest.err
11690 rm -f conftest.er1
11691 cat conftest.err >&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } &&
11694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11695 { (case "(($ac_try" in
11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11698esac
11699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700 (eval "$ac_try") 2>&5
11701 ac_status=$?
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; } &&
11704 { ac_try='test -s conftest$ac_exeext'
11705 { (case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11708esac
11709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710 (eval "$ac_try") 2>&5
11711 ac_status=$?
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; }; then
11714 eval "$as_ac_var=yes"
11715else
11716 echo "$as_me: failed program was:" >&5
11717sed 's/^/| /' conftest.$ac_ext >&5
11718
11719 eval "$as_ac_var=no"
11720fi
11721
11722rm -f core conftest.err conftest.$ac_objext \
11723 conftest$ac_exeext conftest.$ac_ext
11724fi
11725ac_res=`eval echo '${'$as_ac_var'}'`
11726 { echo "$as_me:$LINENO: result: $ac_res" >&5
11727echo "${ECHO_T}$ac_res" >&6; }
11728if test `eval echo '${'$as_ac_var'}'` = yes; then
11729 cat >>confdefs.h <<_ACEOF
11730#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11731_ACEOF
11732 break
11733fi
11734done
11735
11736
11737
11738for ac_func in memcpy bcopy
11739do
11740as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11741{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11742echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11743if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11745else
11746 cat >conftest.$ac_ext <<_ACEOF
11747/* confdefs.h. */
11748_ACEOF
11749cat confdefs.h >>conftest.$ac_ext
11750cat >>conftest.$ac_ext <<_ACEOF
11751/* end confdefs.h. */
11752/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11754#define $ac_func innocuous_$ac_func
11755
11756/* System header to define __stub macros and hopefully few prototypes,
11757 which can conflict with char $ac_func (); below.
11758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11759 <limits.h> exists even on freestanding compilers. */
11760
11761#ifdef __STDC__
11762# include <limits.h>
11763#else
11764# include <assert.h>
11765#endif
11766
11767#undef $ac_func
11768
11769/* Override any GCC internal prototype to avoid an error.
11770 Use char because int might match the return type of a GCC
11771 builtin and then its argument prototype would still apply. */
11772#ifdef __cplusplus
11773extern "C"
11774#endif
11775char $ac_func ();
11776/* The GNU C library defines this for functions which it implements
11777 to always fail with ENOSYS. Some functions are actually named
11778 something starting with __ and the normal name is an alias. */
11779#if defined __stub_$ac_func || defined __stub___$ac_func
11780choke me
11781#endif
11782
11783int
11784main ()
11785{
11786return $ac_func ();
11787 ;
11788 return 0;
11789}
11790_ACEOF
11791rm -f conftest.$ac_objext conftest$ac_exeext
11792if { (ac_try="$ac_link"
11793case "(($ac_try" in
11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795 *) ac_try_echo=$ac_try;;
11796esac
11797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798 (eval "$ac_link") 2>conftest.er1
11799 ac_status=$?
11800 grep -v '^ *+' conftest.er1 >conftest.err
11801 rm -f conftest.er1
11802 cat conftest.err >&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } &&
11805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11806 { (case "(($ac_try" in
11807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808 *) ac_try_echo=$ac_try;;
11809esac
11810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11811 (eval "$ac_try") 2>&5
11812 ac_status=$?
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; } &&
11815 { ac_try='test -s conftest$ac_exeext'
11816 { (case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11819esac
11820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_try") 2>&5
11822 ac_status=$?
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; }; then
11825 eval "$as_ac_var=yes"
11826else
11827 echo "$as_me: failed program was:" >&5
11828sed 's/^/| /' conftest.$ac_ext >&5
11829
11830 eval "$as_ac_var=no"
11831fi
11832
11833rm -f core conftest.err conftest.$ac_objext \
11834 conftest$ac_exeext conftest.$ac_ext
11835fi
11836ac_res=`eval echo '${'$as_ac_var'}'`
11837 { echo "$as_me:$LINENO: result: $ac_res" >&5
11838echo "${ECHO_T}$ac_res" >&6; }
11839if test `eval echo '${'$as_ac_var'}'` = yes; then
11840 cat >>confdefs.h <<_ACEOF
11841#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11842_ACEOF
11843 break
11844fi
11845done
11846
11847
11848
11849for ac_func in memmove strcmp
11850do
11851as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11852{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11853echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11854if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11856else
11857 cat >conftest.$ac_ext <<_ACEOF
11858/* confdefs.h. */
11859_ACEOF
11860cat confdefs.h >>conftest.$ac_ext
11861cat >>conftest.$ac_ext <<_ACEOF
11862/* end confdefs.h. */
11863/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11865#define $ac_func innocuous_$ac_func
11866
11867/* System header to define __stub macros and hopefully few prototypes,
11868 which can conflict with char $ac_func (); below.
11869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11870 <limits.h> exists even on freestanding compilers. */
11871
11872#ifdef __STDC__
11873# include <limits.h>
11874#else
11875# include <assert.h>
11876#endif
11877
11878#undef $ac_func
11879
11880/* Override any GCC internal prototype to avoid an error.
11881 Use char because int might match the return type of a GCC
11882 builtin and then its argument prototype would still apply. */
11883#ifdef __cplusplus
11884extern "C"
11885#endif
11886char $ac_func ();
11887/* The GNU C library defines this for functions which it implements
11888 to always fail with ENOSYS. Some functions are actually named
11889 something starting with __ and the normal name is an alias. */
11890#if defined __stub_$ac_func || defined __stub___$ac_func
11891choke me
11892#endif
11893
11894int
11895main ()
11896{
11897return $ac_func ();
11898 ;
11899 return 0;
11900}
11901_ACEOF
11902rm -f conftest.$ac_objext conftest$ac_exeext
11903if { (ac_try="$ac_link"
11904case "(($ac_try" in
11905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906 *) ac_try_echo=$ac_try;;
11907esac
11908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11909 (eval "$ac_link") 2>conftest.er1
11910 ac_status=$?
11911 grep -v '^ *+' conftest.er1 >conftest.err
11912 rm -f conftest.er1
11913 cat conftest.err >&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); } &&
11916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11917 { (case "(($ac_try" in
11918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919 *) ac_try_echo=$ac_try;;
11920esac
11921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11922 (eval "$ac_try") 2>&5
11923 ac_status=$?
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; } &&
11926 { ac_try='test -s conftest$ac_exeext'
11927 { (case "(($ac_try" in
11928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929 *) ac_try_echo=$ac_try;;
11930esac
11931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11932 (eval "$ac_try") 2>&5
11933 ac_status=$?
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; }; then
11936 eval "$as_ac_var=yes"
11937else
11938 echo "$as_me: failed program was:" >&5
11939sed 's/^/| /' conftest.$ac_ext >&5
11940
11941 eval "$as_ac_var=no"
11942fi
11943
11944rm -f core conftest.err conftest.$ac_objext \
11945 conftest$ac_exeext conftest.$ac_ext
11946fi
11947ac_res=`eval echo '${'$as_ac_var'}'`
11948 { echo "$as_me:$LINENO: result: $ac_res" >&5
11949echo "${ECHO_T}$ac_res" >&6; }
11950if test `eval echo '${'$as_ac_var'}'` = yes; then
11951 cat >>confdefs.h <<_ACEOF
11952#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11953_ACEOF
11954
11955fi
11956done
11957
11958
11959
11960
11961for ac_func in closedir opendir readdir
11962do
11963as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11964{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11965echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11966if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11967 echo $ECHO_N "(cached) $ECHO_C" >&6
11968else
11969 cat >conftest.$ac_ext <<_ACEOF
11970/* confdefs.h. */
11971_ACEOF
11972cat confdefs.h >>conftest.$ac_ext
11973cat >>conftest.$ac_ext <<_ACEOF
11974/* end confdefs.h. */
11975/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11977#define $ac_func innocuous_$ac_func
11978
11979/* System header to define __stub macros and hopefully few prototypes,
11980 which can conflict with char $ac_func (); below.
11981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11982 <limits.h> exists even on freestanding compilers. */
11983
11984#ifdef __STDC__
11985# include <limits.h>
11986#else
11987# include <assert.h>
11988#endif
11989
11990#undef $ac_func
11991
11992/* Override any GCC internal prototype to avoid an error.
11993 Use char because int might match the return type of a GCC
11994 builtin and then its argument prototype would still apply. */
11995#ifdef __cplusplus
11996extern "C"
11997#endif
11998char $ac_func ();
11999/* The GNU C library defines this for functions which it implements
12000 to always fail with ENOSYS. Some functions are actually named
12001 something starting with __ and the normal name is an alias. */
12002#if defined __stub_$ac_func || defined __stub___$ac_func
12003choke me
12004#endif
12005
12006int
12007main ()
12008{
12009return $ac_func ();
12010 ;
12011 return 0;
12012}
12013_ACEOF
12014rm -f conftest.$ac_objext conftest$ac_exeext
12015if { (ac_try="$ac_link"
12016case "(($ac_try" in
12017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018 *) ac_try_echo=$ac_try;;
12019esac
12020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021 (eval "$ac_link") 2>conftest.er1
12022 ac_status=$?
12023 grep -v '^ *+' conftest.er1 >conftest.err
12024 rm -f conftest.er1
12025 cat conftest.err >&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } &&
12028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12029 { (case "(($ac_try" in
12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12032esac
12033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034 (eval "$ac_try") 2>&5
12035 ac_status=$?
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); }; } &&
12038 { ac_try='test -s conftest$ac_exeext'
12039 { (case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12042esac
12043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044 (eval "$ac_try") 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; }; then
12048 eval "$as_ac_var=yes"
12049else
12050 echo "$as_me: failed program was:" >&5
12051sed 's/^/| /' conftest.$ac_ext >&5
12052
12053 eval "$as_ac_var=no"
12054fi
12055
12056rm -f core conftest.err conftest.$ac_objext \
12057 conftest$ac_exeext conftest.$ac_ext
12058fi
12059ac_res=`eval echo '${'$as_ac_var'}'`
12060 { echo "$as_me:$LINENO: result: $ac_res" >&5
12061echo "${ECHO_T}$ac_res" >&6; }
12062if test `eval echo '${'$as_ac_var'}'` = yes; then
12063 cat >>confdefs.h <<_ACEOF
12064#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12065_ACEOF
12066
12067fi
12068done
12069
12070
12071
12072{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12073echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12074
12075ICC=no
12076IXX=no
12077case $CC in
12078 icc*|icpc*)
12079 ICC=yes
12080 IXX=yes
12081 ;;
12082 *)
12083 ;;
12084esac
12085
12086if test "$GCC" != "yes" && test "$ICC" != "yes"
12087then
12088 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12089echo "$as_me: error: gcc|icc required but not found" >&2;}
12090 { (exit 1); exit 1; }; }
12091fi
12092
12093if test "$GXX" != "yes" && test "$IXX" != "yes"
12094then
12095 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12096echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12097 { (exit 1); exit 1; }; }
12098fi
12099
12100if test "$GCC" = "yes"
12101then
12102 cat >conftest.$ac_ext <<_ACEOF
12103#if !defined(__GNUC__) || __GNUC__ < 3
12104#error Unsupported GCC version
12105#endif
12106
12107_ACEOF
12108rm -f conftest.$ac_objext
12109if { (ac_try="$ac_compile"
12110case "(($ac_try" in
12111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12112 *) ac_try_echo=$ac_try;;
12113esac
12114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12115 (eval "$ac_compile") 2>conftest.er1
12116 ac_status=$?
12117 grep -v '^ *+' conftest.er1 >conftest.err
12118 rm -f conftest.er1
12119 cat conftest.err >&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } &&
12122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12123 { (case "(($ac_try" in
12124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125 *) ac_try_echo=$ac_try;;
12126esac
12127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128 (eval "$ac_try") 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; } &&
12132 { ac_try='test -s conftest.$ac_objext'
12133 { (case "(($ac_try" in
12134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135 *) ac_try_echo=$ac_try;;
12136esac
12137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138 (eval "$ac_try") 2>&5
12139 ac_status=$?
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); }; }; then
12142 :
12143else
12144 echo "$as_me: failed program was:" >&5
12145sed 's/^/| /' conftest.$ac_ext >&5
12146
12147 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12148echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12149 { (exit 1); exit 1; }; }
12150fi
12151
12152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12153fi
12154
12155if test -z "$llvm_cv_gnu_make_command"
12156then
12157 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12158echo "$as_me: error: GNU Make required but not found" >&2;}
12159 { (exit 1); exit 1; }; }
12160fi
12161
12162{ echo "$as_me:$LINENO: result: ok" >&5
12163echo "${ECHO_T}ok" >&6; }
12164
12165{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12166echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12167NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12168
12169NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12170
12171{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12172echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12173
12174
12175
12176{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12177echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12178if test "${ac_cv_lib_m_sin+set}" = set; then
12179 echo $ECHO_N "(cached) $ECHO_C" >&6
12180else
12181 ac_check_lib_save_LIBS=$LIBS
12182LIBS="-lm $LIBS"
12183cat >conftest.$ac_ext <<_ACEOF
12184/* confdefs.h. */
12185_ACEOF
12186cat confdefs.h >>conftest.$ac_ext
12187cat >>conftest.$ac_ext <<_ACEOF
12188/* end confdefs.h. */
12189
12190/* Override any GCC internal prototype to avoid an error.
12191 Use char because int might match the return type of a GCC
12192 builtin and then its argument prototype would still apply. */
12193#ifdef __cplusplus
12194extern "C"
12195#endif
12196char sin ();
12197int
12198main ()
12199{
12200return sin ();
12201 ;
12202 return 0;
12203}
12204_ACEOF
12205rm -f conftest.$ac_objext conftest$ac_exeext
12206if { (ac_try="$ac_link"
12207case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12210esac
12211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212 (eval "$ac_link") 2>conftest.er1
12213 ac_status=$?
12214 grep -v '^ *+' conftest.er1 >conftest.err
12215 rm -f conftest.er1
12216 cat conftest.err >&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } &&
12219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12220 { (case "(($ac_try" in
12221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222 *) ac_try_echo=$ac_try;;
12223esac
12224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12225 (eval "$ac_try") 2>&5
12226 ac_status=$?
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; } &&
12229 { ac_try='test -s conftest$ac_exeext'
12230 { (case "(($ac_try" in
12231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12232 *) ac_try_echo=$ac_try;;
12233esac
12234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12235 (eval "$ac_try") 2>&5
12236 ac_status=$?
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; }; then
12239 ac_cv_lib_m_sin=yes
12240else
12241 echo "$as_me: failed program was:" >&5
12242sed 's/^/| /' conftest.$ac_ext >&5
12243
12244 ac_cv_lib_m_sin=no
12245fi
12246
12247rm -f core conftest.err conftest.$ac_objext \
12248 conftest$ac_exeext conftest.$ac_ext
12249LIBS=$ac_check_lib_save_LIBS
12250fi
12251{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12252echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12253if test $ac_cv_lib_m_sin = yes; then
12254 cat >>confdefs.h <<_ACEOF
12255#define HAVE_LIBM 1
12256_ACEOF
12257
12258 LIBS="-lm $LIBS"
12259
12260fi
12261
12262if test "$llvm_cv_os_type" = "MingW" ; then
12263
12264{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12265echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12266if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12267 echo $ECHO_N "(cached) $ECHO_C" >&6
12268else
12269 ac_check_lib_save_LIBS=$LIBS
12270LIBS="-limagehlp $LIBS"
12271cat >conftest.$ac_ext <<_ACEOF
12272/* confdefs.h. */
12273_ACEOF
12274cat confdefs.h >>conftest.$ac_ext
12275cat >>conftest.$ac_ext <<_ACEOF
12276/* end confdefs.h. */
12277
12278
12279int
12280main ()
12281{
12282return main ();
12283 ;
12284 return 0;
12285}
12286_ACEOF
12287rm -f conftest.$ac_objext conftest$ac_exeext
12288if { (ac_try="$ac_link"
12289case "(($ac_try" in
12290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291 *) ac_try_echo=$ac_try;;
12292esac
12293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294 (eval "$ac_link") 2>conftest.er1
12295 ac_status=$?
12296 grep -v '^ *+' conftest.er1 >conftest.err
12297 rm -f conftest.er1
12298 cat conftest.err >&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } &&
12301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12302 { (case "(($ac_try" in
12303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12304 *) ac_try_echo=$ac_try;;
12305esac
12306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12307 (eval "$ac_try") 2>&5
12308 ac_status=$?
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; } &&
12311 { ac_try='test -s conftest$ac_exeext'
12312 { (case "(($ac_try" in
12313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314 *) ac_try_echo=$ac_try;;
12315esac
12316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317 (eval "$ac_try") 2>&5
12318 ac_status=$?
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); }; }; then
12321 ac_cv_lib_imagehlp_main=yes
12322else
12323 echo "$as_me: failed program was:" >&5
12324sed 's/^/| /' conftest.$ac_ext >&5
12325
12326 ac_cv_lib_imagehlp_main=no
12327fi
12328
12329rm -f core conftest.err conftest.$ac_objext \
12330 conftest$ac_exeext conftest.$ac_ext
12331LIBS=$ac_check_lib_save_LIBS
12332fi
12333{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12334echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12335if test $ac_cv_lib_imagehlp_main = yes; then
12336 cat >>confdefs.h <<_ACEOF
12337#define HAVE_LIBIMAGEHLP 1
12338_ACEOF
12339
12340 LIBS="-limagehlp $LIBS"
12341
12342fi
12343
12344
12345{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12346echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12347if test "${ac_cv_lib_psapi_main+set}" = set; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12349else
12350 ac_check_lib_save_LIBS=$LIBS
12351LIBS="-lpsapi $LIBS"
12352cat >conftest.$ac_ext <<_ACEOF
12353/* confdefs.h. */
12354_ACEOF
12355cat confdefs.h >>conftest.$ac_ext
12356cat >>conftest.$ac_ext <<_ACEOF
12357/* end confdefs.h. */
12358
12359
12360int
12361main ()
12362{
12363return main ();
12364 ;
12365 return 0;
12366}
12367_ACEOF
12368rm -f conftest.$ac_objext conftest$ac_exeext
12369if { (ac_try="$ac_link"
12370case "(($ac_try" in
12371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372 *) ac_try_echo=$ac_try;;
12373esac
12374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375 (eval "$ac_link") 2>conftest.er1
12376 ac_status=$?
12377 grep -v '^ *+' conftest.er1 >conftest.err
12378 rm -f conftest.er1
12379 cat conftest.err >&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); } &&
12382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12383 { (case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12386esac
12387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_try") 2>&5
12389 ac_status=$?
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; } &&
12392 { ac_try='test -s conftest$ac_exeext'
12393 { (case "(($ac_try" in
12394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395 *) ac_try_echo=$ac_try;;
12396esac
12397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398 (eval "$ac_try") 2>&5
12399 ac_status=$?
12400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401 (exit $ac_status); }; }; then
12402 ac_cv_lib_psapi_main=yes
12403else
12404 echo "$as_me: failed program was:" >&5
12405sed 's/^/| /' conftest.$ac_ext >&5
12406
12407 ac_cv_lib_psapi_main=no
12408fi
12409
12410rm -f core conftest.err conftest.$ac_objext \
12411 conftest$ac_exeext conftest.$ac_ext
12412LIBS=$ac_check_lib_save_LIBS
12413fi
12414{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12415echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12416if test $ac_cv_lib_psapi_main = yes; then
12417 cat >>confdefs.h <<_ACEOF
12418#define HAVE_LIBPSAPI 1
12419_ACEOF
12420
12421 LIBS="-lpsapi $LIBS"
12422
12423fi
12424
12425fi
12426
12427{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12428echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12429if test "${ac_cv_search_dlopen+set}" = set; then
12430 echo $ECHO_N "(cached) $ECHO_C" >&6
12431else
12432 ac_func_search_save_LIBS=$LIBS
12433cat >conftest.$ac_ext <<_ACEOF
12434/* confdefs.h. */
12435_ACEOF
12436cat confdefs.h >>conftest.$ac_ext
12437cat >>conftest.$ac_ext <<_ACEOF
12438/* end confdefs.h. */
12439
12440/* Override any GCC internal prototype to avoid an error.
12441 Use char because int might match the return type of a GCC
12442 builtin and then its argument prototype would still apply. */
12443#ifdef __cplusplus
12444extern "C"
12445#endif
12446char dlopen ();
12447int
12448main ()
12449{
12450return dlopen ();
12451 ;
12452 return 0;
12453}
12454_ACEOF
12455for ac_lib in '' dl; do
12456 if test -z "$ac_lib"; then
12457 ac_res="none required"
12458 else
12459 ac_res=-l$ac_lib
12460 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12461 fi
12462 rm -f conftest.$ac_objext conftest$ac_exeext
12463if { (ac_try="$ac_link"
12464case "(($ac_try" in
12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12467esac
12468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469 (eval "$ac_link") 2>conftest.er1
12470 ac_status=$?
12471 grep -v '^ *+' conftest.er1 >conftest.err
12472 rm -f conftest.er1
12473 cat conftest.err >&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } &&
12476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12477 { (case "(($ac_try" in
12478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12479 *) ac_try_echo=$ac_try;;
12480esac
12481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12482 (eval "$ac_try") 2>&5
12483 ac_status=$?
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; } &&
12486 { ac_try='test -s conftest$ac_exeext'
12487 { (case "(($ac_try" in
12488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489 *) ac_try_echo=$ac_try;;
12490esac
12491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12492 (eval "$ac_try") 2>&5
12493 ac_status=$?
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); }; }; then
12496 ac_cv_search_dlopen=$ac_res
12497else
12498 echo "$as_me: failed program was:" >&5
12499sed 's/^/| /' conftest.$ac_ext >&5
12500
12501
12502fi
12503
12504rm -f core conftest.err conftest.$ac_objext \
12505 conftest$ac_exeext
12506 if test "${ac_cv_search_dlopen+set}" = set; then
12507 break
12508fi
12509done
12510if test "${ac_cv_search_dlopen+set}" = set; then
12511 :
12512else
12513 ac_cv_search_dlopen=no
12514fi
12515rm conftest.$ac_ext
12516LIBS=$ac_func_search_save_LIBS
12517fi
12518{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12519echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12520ac_res=$ac_cv_search_dlopen
12521if test "$ac_res" != no; then
12522 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12523
12524cat >>confdefs.h <<\_ACEOF
12525#define HAVE_DLOPEN 1
12526_ACEOF
12527
12528else
12529 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12530echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12531fi
12532
12533
12534if test "$llvm_cv_enable_libffi" = "yes" ; then
12535 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12536echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12537if test "${ac_cv_search_ffi_call+set}" = set; then
12538 echo $ECHO_N "(cached) $ECHO_C" >&6
12539else
12540 ac_func_search_save_LIBS=$LIBS
12541cat >conftest.$ac_ext <<_ACEOF
12542/* confdefs.h. */
12543_ACEOF
12544cat confdefs.h >>conftest.$ac_ext
12545cat >>conftest.$ac_ext <<_ACEOF
12546/* end confdefs.h. */
12547
12548/* Override any GCC internal prototype to avoid an error.
12549 Use char because int might match the return type of a GCC
12550 builtin and then its argument prototype would still apply. */
12551#ifdef __cplusplus
12552extern "C"
12553#endif
12554char ffi_call ();
12555int
12556main ()
12557{
12558return ffi_call ();
12559 ;
12560 return 0;
12561}
12562_ACEOF
12563for ac_lib in '' ffi; do
12564 if test -z "$ac_lib"; then
12565 ac_res="none required"
12566 else
12567 ac_res=-l$ac_lib
12568 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12569 fi
12570 rm -f conftest.$ac_objext conftest$ac_exeext
12571if { (ac_try="$ac_link"
12572case "(($ac_try" in
12573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574 *) ac_try_echo=$ac_try;;
12575esac
12576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577 (eval "$ac_link") 2>conftest.er1
12578 ac_status=$?
12579 grep -v '^ *+' conftest.er1 >conftest.err
12580 rm -f conftest.er1
12581 cat conftest.err >&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); } &&
12584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12585 { (case "(($ac_try" in
12586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12587 *) ac_try_echo=$ac_try;;
12588esac
12589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12590 (eval "$ac_try") 2>&5
12591 ac_status=$?
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; } &&
12594 { ac_try='test -s conftest$ac_exeext'
12595 { (case "(($ac_try" in
12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597 *) ac_try_echo=$ac_try;;
12598esac
12599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12600 (eval "$ac_try") 2>&5
12601 ac_status=$?
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; }; then
12604 ac_cv_search_ffi_call=$ac_res
12605else
12606 echo "$as_me: failed program was:" >&5
12607sed 's/^/| /' conftest.$ac_ext >&5
12608
12609
12610fi
12611
12612rm -f core conftest.err conftest.$ac_objext \
12613 conftest$ac_exeext
12614 if test "${ac_cv_search_ffi_call+set}" = set; then
12615 break
12616fi
12617done
12618if test "${ac_cv_search_ffi_call+set}" = set; then
12619 :
12620else
12621 ac_cv_search_ffi_call=no
12622fi
12623rm conftest.$ac_ext
12624LIBS=$ac_func_search_save_LIBS
12625fi
12626{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12627echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12628ac_res=$ac_cv_search_ffi_call
12629if test "$ac_res" != no; then
12630 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12631
12632cat >>confdefs.h <<\_ACEOF
12633#define HAVE_FFI_CALL 1
12634_ACEOF
12635
12636else
12637 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12638echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12639 { (exit 1); exit 1; }; }
12640fi
12641
12642fi
12643
12644{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12645echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12646if test "${ac_cv_search_mallinfo+set}" = set; then
12647 echo $ECHO_N "(cached) $ECHO_C" >&6
12648else
12649 ac_func_search_save_LIBS=$LIBS
12650cat >conftest.$ac_ext <<_ACEOF
12651/* confdefs.h. */
12652_ACEOF
12653cat confdefs.h >>conftest.$ac_ext
12654cat >>conftest.$ac_ext <<_ACEOF
12655/* end confdefs.h. */
12656
12657/* Override any GCC internal prototype to avoid an error.
12658 Use char because int might match the return type of a GCC
12659 builtin and then its argument prototype would still apply. */
12660#ifdef __cplusplus
12661extern "C"
12662#endif
12663char mallinfo ();
12664int
12665main ()
12666{
12667return mallinfo ();
12668 ;
12669 return 0;
12670}
12671_ACEOF
12672for ac_lib in '' malloc; do
12673 if test -z "$ac_lib"; then
12674 ac_res="none required"
12675 else
12676 ac_res=-l$ac_lib
12677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12678 fi
12679 rm -f conftest.$ac_objext conftest$ac_exeext
12680if { (ac_try="$ac_link"
12681case "(($ac_try" in
12682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683 *) ac_try_echo=$ac_try;;
12684esac
12685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12686 (eval "$ac_link") 2>conftest.er1
12687 ac_status=$?
12688 grep -v '^ *+' conftest.er1 >conftest.err
12689 rm -f conftest.er1
12690 cat conftest.err >&5
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); } &&
12693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12694 { (case "(($ac_try" in
12695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12696 *) ac_try_echo=$ac_try;;
12697esac
12698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12699 (eval "$ac_try") 2>&5
12700 ac_status=$?
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; } &&
12703 { ac_try='test -s conftest$ac_exeext'
12704 { (case "(($ac_try" in
12705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12706 *) ac_try_echo=$ac_try;;
12707esac
12708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12709 (eval "$ac_try") 2>&5
12710 ac_status=$?
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; }; then
12713 ac_cv_search_mallinfo=$ac_res
12714else
12715 echo "$as_me: failed program was:" >&5
12716sed 's/^/| /' conftest.$ac_ext >&5
12717
12718
12719fi
12720
12721rm -f core conftest.err conftest.$ac_objext \
12722 conftest$ac_exeext
12723 if test "${ac_cv_search_mallinfo+set}" = set; then
12724 break
12725fi
12726done
12727if test "${ac_cv_search_mallinfo+set}" = set; then
12728 :
12729else
12730 ac_cv_search_mallinfo=no
12731fi
12732rm conftest.$ac_ext
12733LIBS=$ac_func_search_save_LIBS
12734fi
12735{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12736echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12737ac_res=$ac_cv_search_mallinfo
12738if test "$ac_res" != no; then
12739 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12740
12741cat >>confdefs.h <<\_ACEOF
12742#define HAVE_MALLINFO 1
12743_ACEOF
12744
12745fi
12746
12747
12748if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12749
12750{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12751echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12752if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12753 echo $ECHO_N "(cached) $ECHO_C" >&6
12754else
12755 ac_check_lib_save_LIBS=$LIBS
12756LIBS="-lpthread $LIBS"
12757cat >conftest.$ac_ext <<_ACEOF
12758/* confdefs.h. */
12759_ACEOF
12760cat confdefs.h >>conftest.$ac_ext
12761cat >>conftest.$ac_ext <<_ACEOF
12762/* end confdefs.h. */
12763
12764/* Override any GCC internal prototype to avoid an error.
12765 Use char because int might match the return type of a GCC
12766 builtin and then its argument prototype would still apply. */
12767#ifdef __cplusplus
12768extern "C"
12769#endif
12770char pthread_mutex_init ();
12771int
12772main ()
12773{
12774return pthread_mutex_init ();
12775 ;
12776 return 0;
12777}
12778_ACEOF
12779rm -f conftest.$ac_objext conftest$ac_exeext
12780if { (ac_try="$ac_link"
12781case "(($ac_try" in
12782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783 *) ac_try_echo=$ac_try;;
12784esac
12785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786 (eval "$ac_link") 2>conftest.er1
12787 ac_status=$?
12788 grep -v '^ *+' conftest.er1 >conftest.err
12789 rm -f conftest.er1
12790 cat conftest.err >&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } &&
12793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12794 { (case "(($ac_try" in
12795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796 *) ac_try_echo=$ac_try;;
12797esac
12798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799 (eval "$ac_try") 2>&5
12800 ac_status=$?
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; } &&
12803 { ac_try='test -s conftest$ac_exeext'
12804 { (case "(($ac_try" in
12805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806 *) ac_try_echo=$ac_try;;
12807esac
12808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809 (eval "$ac_try") 2>&5
12810 ac_status=$?
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; }; then
12813 ac_cv_lib_pthread_pthread_mutex_init=yes
12814else
12815 echo "$as_me: failed program was:" >&5
12816sed 's/^/| /' conftest.$ac_ext >&5
12817
12818 ac_cv_lib_pthread_pthread_mutex_init=no
12819fi
12820
12821rm -f core conftest.err conftest.$ac_objext \
12822 conftest$ac_exeext conftest.$ac_ext
12823LIBS=$ac_check_lib_save_LIBS
12824fi
12825{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12826echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12827if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12828 cat >>confdefs.h <<_ACEOF
12829#define HAVE_LIBPTHREAD 1
12830_ACEOF
12831
12832 LIBS="-lpthread $LIBS"
12833
12834fi
12835
12836 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12837echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12838if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12839 echo $ECHO_N "(cached) $ECHO_C" >&6
12840else
12841 ac_func_search_save_LIBS=$LIBS
12842cat >conftest.$ac_ext <<_ACEOF
12843/* confdefs.h. */
12844_ACEOF
12845cat confdefs.h >>conftest.$ac_ext
12846cat >>conftest.$ac_ext <<_ACEOF
12847/* end confdefs.h. */
12848
12849/* Override any GCC internal prototype to avoid an error.
12850 Use char because int might match the return type of a GCC
12851 builtin and then its argument prototype would still apply. */
12852#ifdef __cplusplus
12853extern "C"
12854#endif
12855char pthread_mutex_lock ();
12856int
12857main ()
12858{
12859return pthread_mutex_lock ();
12860 ;
12861 return 0;
12862}
12863_ACEOF
12864for ac_lib in '' pthread; do
12865 if test -z "$ac_lib"; then
12866 ac_res="none required"
12867 else
12868 ac_res=-l$ac_lib
12869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12870 fi
12871 rm -f conftest.$ac_objext conftest$ac_exeext
12872if { (ac_try="$ac_link"
12873case "(($ac_try" in
12874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12875 *) ac_try_echo=$ac_try;;
12876esac
12877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12878 (eval "$ac_link") 2>conftest.er1
12879 ac_status=$?
12880 grep -v '^ *+' conftest.er1 >conftest.err
12881 rm -f conftest.er1
12882 cat conftest.err >&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); } &&
12885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12886 { (case "(($ac_try" in
12887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888 *) ac_try_echo=$ac_try;;
12889esac
12890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891 (eval "$ac_try") 2>&5
12892 ac_status=$?
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; } &&
12895 { ac_try='test -s conftest$ac_exeext'
12896 { (case "(($ac_try" in
12897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898 *) ac_try_echo=$ac_try;;
12899esac
12900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901 (eval "$ac_try") 2>&5
12902 ac_status=$?
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); }; }; then
12905 ac_cv_search_pthread_mutex_lock=$ac_res
12906else
12907 echo "$as_me: failed program was:" >&5
12908sed 's/^/| /' conftest.$ac_ext >&5
12909
12910
12911fi
12912
12913rm -f core conftest.err conftest.$ac_objext \
12914 conftest$ac_exeext
12915 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12916 break
12917fi
12918done
12919if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12920 :
12921else
12922 ac_cv_search_pthread_mutex_lock=no
12923fi
12924rm conftest.$ac_ext
12925LIBS=$ac_func_search_save_LIBS
12926fi
12927{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12928echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12929ac_res=$ac_cv_search_pthread_mutex_lock
12930if test "$ac_res" != no; then
12931 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12932
12933cat >>confdefs.h <<\_ACEOF
12934#define HAVE_PTHREAD_MUTEX_LOCK 1
12935_ACEOF
12936
12937fi
12938
12939 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12940echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12941if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12942 echo $ECHO_N "(cached) $ECHO_C" >&6
12943else
12944 ac_func_search_save_LIBS=$LIBS
12945cat >conftest.$ac_ext <<_ACEOF
12946/* confdefs.h. */
12947_ACEOF
12948cat confdefs.h >>conftest.$ac_ext
12949cat >>conftest.$ac_ext <<_ACEOF
12950/* end confdefs.h. */
12951
12952/* Override any GCC internal prototype to avoid an error.
12953 Use char because int might match the return type of a GCC
12954 builtin and then its argument prototype would still apply. */
12955#ifdef __cplusplus
12956extern "C"
12957#endif
12958char pthread_rwlock_init ();
12959int
12960main ()
12961{
12962return pthread_rwlock_init ();
12963 ;
12964 return 0;
12965}
12966_ACEOF
12967for ac_lib in '' pthread; do
12968 if test -z "$ac_lib"; then
12969 ac_res="none required"
12970 else
12971 ac_res=-l$ac_lib
12972 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12973 fi
12974 rm -f conftest.$ac_objext conftest$ac_exeext
12975if { (ac_try="$ac_link"
12976case "(($ac_try" in
12977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12978 *) ac_try_echo=$ac_try;;
12979esac
12980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12981 (eval "$ac_link") 2>conftest.er1
12982 ac_status=$?
12983 grep -v '^ *+' conftest.er1 >conftest.err
12984 rm -f conftest.er1
12985 cat conftest.err >&5
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); } &&
12988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12989 { (case "(($ac_try" in
12990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12991 *) ac_try_echo=$ac_try;;
12992esac
12993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12994 (eval "$ac_try") 2>&5
12995 ac_status=$?
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; } &&
12998 { ac_try='test -s conftest$ac_exeext'
12999 { (case "(($ac_try" in
13000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13001 *) ac_try_echo=$ac_try;;
13002esac
13003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13004 (eval "$ac_try") 2>&5
13005 ac_status=$?
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; }; then
13008 ac_cv_search_pthread_rwlock_init=$ac_res
13009else
13010 echo "$as_me: failed program was:" >&5
13011sed 's/^/| /' conftest.$ac_ext >&5
13012
13013
13014fi
13015
13016rm -f core conftest.err conftest.$ac_objext \
13017 conftest$ac_exeext
13018 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13019 break
13020fi
13021done
13022if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13023 :
13024else
13025 ac_cv_search_pthread_rwlock_init=no
13026fi
13027rm conftest.$ac_ext
13028LIBS=$ac_func_search_save_LIBS
13029fi
13030{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13031echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13032ac_res=$ac_cv_search_pthread_rwlock_init
13033if test "$ac_res" != no; then
13034 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13035
13036cat >>confdefs.h <<\_ACEOF
13037#define HAVE_PTHREAD_RWLOCK_INIT 1
13038_ACEOF
13039
13040fi
13041
13042 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13043echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13044if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13045 echo $ECHO_N "(cached) $ECHO_C" >&6
13046else
13047 ac_func_search_save_LIBS=$LIBS
13048cat >conftest.$ac_ext <<_ACEOF
13049/* confdefs.h. */
13050_ACEOF
13051cat confdefs.h >>conftest.$ac_ext
13052cat >>conftest.$ac_ext <<_ACEOF
13053/* end confdefs.h. */
13054
13055/* Override any GCC internal prototype to avoid an error.
13056 Use char because int might match the return type of a GCC
13057 builtin and then its argument prototype would still apply. */
13058#ifdef __cplusplus
13059extern "C"
13060#endif
13061char pthread_getspecific ();
13062int
13063main ()
13064{
13065return pthread_getspecific ();
13066 ;
13067 return 0;
13068}
13069_ACEOF
13070for ac_lib in '' pthread; do
13071 if test -z "$ac_lib"; then
13072 ac_res="none required"
13073 else
13074 ac_res=-l$ac_lib
13075 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13076 fi
13077 rm -f conftest.$ac_objext conftest$ac_exeext
13078if { (ac_try="$ac_link"
13079case "(($ac_try" in
13080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081 *) ac_try_echo=$ac_try;;
13082esac
13083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084 (eval "$ac_link") 2>conftest.er1
13085 ac_status=$?
13086 grep -v '^ *+' conftest.er1 >conftest.err
13087 rm -f conftest.er1
13088 cat conftest.err >&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); } &&
13091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13092 { (case "(($ac_try" in
13093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094 *) ac_try_echo=$ac_try;;
13095esac
13096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13097 (eval "$ac_try") 2>&5
13098 ac_status=$?
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; } &&
13101 { ac_try='test -s conftest$ac_exeext'
13102 { (case "(($ac_try" in
13103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13104 *) ac_try_echo=$ac_try;;
13105esac
13106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13107 (eval "$ac_try") 2>&5
13108 ac_status=$?
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; }; then
13111 ac_cv_search_pthread_getspecific=$ac_res
13112else
13113 echo "$as_me: failed program was:" >&5
13114sed 's/^/| /' conftest.$ac_ext >&5
13115
13116
13117fi
13118
13119rm -f core conftest.err conftest.$ac_objext \
13120 conftest$ac_exeext
13121 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13122 break
13123fi
13124done
13125if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13126 :
13127else
13128 ac_cv_search_pthread_getspecific=no
13129fi
13130rm conftest.$ac_ext
13131LIBS=$ac_func_search_save_LIBS
13132fi
13133{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13134echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13135ac_res=$ac_cv_search_pthread_getspecific
13136if test "$ac_res" != no; then
13137 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13138
13139cat >>confdefs.h <<\_ACEOF
13140#define HAVE_PTHREAD_GETSPECIFIC 1
13141_ACEOF
13142
13143fi
13144
13145fi
13146
13147
13148# Check whether --with-udis86 was given.
13149if test "${with_udis86+set}" = set; then
13150 withval=$with_udis86;
13151 USE_UDIS86=1
13152
13153 case "$withval" in
13154 /usr/lib|yes) ;;
13155 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13156 esac
13157
13158{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13159echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13160if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
13162else
13163 ac_check_lib_save_LIBS=$LIBS
13164LIBS="-ludis86 $LIBS"
13165cat >conftest.$ac_ext <<_ACEOF
13166/* confdefs.h. */
13167_ACEOF
13168cat confdefs.h >>conftest.$ac_ext
13169cat >>conftest.$ac_ext <<_ACEOF
13170/* end confdefs.h. */
13171
13172/* Override any GCC internal prototype to avoid an error.
13173 Use char because int might match the return type of a GCC
13174 builtin and then its argument prototype would still apply. */
13175#ifdef __cplusplus
13176extern "C"
13177#endif
13178char ud_init ();
13179int
13180main ()
13181{
13182return ud_init ();
13183 ;
13184 return 0;
13185}
13186_ACEOF
13187rm -f conftest.$ac_objext conftest$ac_exeext
13188if { (ac_try="$ac_link"
13189case "(($ac_try" in
13190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191 *) ac_try_echo=$ac_try;;
13192esac
13193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13194 (eval "$ac_link") 2>conftest.er1
13195 ac_status=$?
13196 grep -v '^ *+' conftest.er1 >conftest.err
13197 rm -f conftest.er1
13198 cat conftest.err >&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); } &&
13201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13202 { (case "(($ac_try" in
13203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13204 *) ac_try_echo=$ac_try;;
13205esac
13206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13207 (eval "$ac_try") 2>&5
13208 ac_status=$?
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; } &&
13211 { ac_try='test -s conftest$ac_exeext'
13212 { (case "(($ac_try" in
13213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214 *) ac_try_echo=$ac_try;;
13215esac
13216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217 (eval "$ac_try") 2>&5
13218 ac_status=$?
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); }; }; then
13221 ac_cv_lib_udis86_ud_init=yes
13222else
13223 echo "$as_me: failed program was:" >&5
13224sed 's/^/| /' conftest.$ac_ext >&5
13225
13226 ac_cv_lib_udis86_ud_init=no
13227fi
13228
13229rm -f core conftest.err conftest.$ac_objext \
13230 conftest$ac_exeext conftest.$ac_ext
13231LIBS=$ac_check_lib_save_LIBS
13232fi
13233{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13234echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13235if test $ac_cv_lib_udis86_ud_init = yes; then
13236 cat >>confdefs.h <<_ACEOF
13237#define HAVE_LIBUDIS86 1
13238_ACEOF
13239
13240 LIBS="-ludis86 $LIBS"
13241
13242else
13243
13244 echo "Error! You need to have libudis86 around."
13245 exit -1
13246
13247fi
13248
13249
13250else
13251 USE_UDIS86=0
13252
13253fi
13254
13255
13256cat >>confdefs.h <<_ACEOF
13257#define USE_UDIS86 $USE_UDIS86
13258_ACEOF
13259
13260
13261
13262# Check whether --with-oprofile was given.
13263if test "${with_oprofile+set}" = set; then
13264 withval=$with_oprofile;
13265 USE_OPROFILE=1
13266
13267 case "$withval" in
13268 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13269 no) llvm_cv_oppath=
13270 USE_OPROFILE=0
13271 ;;
13272 *) llvm_cv_oppath="${withval}/lib/oprofile"
13273 CPPFLAGS="-I${withval}/include";;
13274 esac
13275 if test -n "$llvm_cv_oppath" ; then
13276 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13277 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13278echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13279if test "${ac_cv_search_bfd_init+set}" = set; then
13280 echo $ECHO_N "(cached) $ECHO_C" >&6
13281else
13282 ac_func_search_save_LIBS=$LIBS
13283cat >conftest.$ac_ext <<_ACEOF
13284/* confdefs.h. */
13285_ACEOF
13286cat confdefs.h >>conftest.$ac_ext
13287cat >>conftest.$ac_ext <<_ACEOF
13288/* end confdefs.h. */
13289
13290/* Override any GCC internal prototype to avoid an error.
13291 Use char because int might match the return type of a GCC
13292 builtin and then its argument prototype would still apply. */
13293#ifdef __cplusplus
13294extern "C"
13295#endif
13296char bfd_init ();
13297int
13298main ()
13299{
13300return bfd_init ();
13301 ;
13302 return 0;
13303}
13304_ACEOF
13305for ac_lib in '' bfd; do
13306 if test -z "$ac_lib"; then
13307 ac_res="none required"
13308 else
13309 ac_res=-l$ac_lib
13310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13311 fi
13312 rm -f conftest.$ac_objext conftest$ac_exeext
13313if { (ac_try="$ac_link"
13314case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13317esac
13318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_link") 2>conftest.er1
13320 ac_status=$?
13321 grep -v '^ *+' conftest.er1 >conftest.err
13322 rm -f conftest.er1
13323 cat conftest.err >&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } &&
13326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13327 { (case "(($ac_try" in
13328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329 *) ac_try_echo=$ac_try;;
13330esac
13331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332 (eval "$ac_try") 2>&5
13333 ac_status=$?
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; } &&
13336 { ac_try='test -s conftest$ac_exeext'
13337 { (case "(($ac_try" in
13338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339 *) ac_try_echo=$ac_try;;
13340esac
13341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342 (eval "$ac_try") 2>&5
13343 ac_status=$?
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; }; then
13346 ac_cv_search_bfd_init=$ac_res
13347else
13348 echo "$as_me: failed program was:" >&5
13349sed 's/^/| /' conftest.$ac_ext >&5
13350
13351
13352fi
13353
13354rm -f core conftest.err conftest.$ac_objext \
13355 conftest$ac_exeext
13356 if test "${ac_cv_search_bfd_init+set}" = set; then
13357 break
13358fi
13359done
13360if test "${ac_cv_search_bfd_init+set}" = set; then
13361 :
13362else
13363 ac_cv_search_bfd_init=no
13364fi
13365rm conftest.$ac_ext
13366LIBS=$ac_func_search_save_LIBS
13367fi
13368{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13369echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13370ac_res=$ac_cv_search_bfd_init
13371if test "$ac_res" != no; then
13372 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13373
13374fi
13375
13376 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13377echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13378if test "${ac_cv_search_op_open_agent+set}" = set; then
13379 echo $ECHO_N "(cached) $ECHO_C" >&6
13380else
13381 ac_func_search_save_LIBS=$LIBS
13382cat >conftest.$ac_ext <<_ACEOF
13383/* confdefs.h. */
13384_ACEOF
13385cat confdefs.h >>conftest.$ac_ext
13386cat >>conftest.$ac_ext <<_ACEOF
13387/* end confdefs.h. */
13388
13389/* Override any GCC internal prototype to avoid an error.
13390 Use char because int might match the return type of a GCC
13391 builtin and then its argument prototype would still apply. */
13392#ifdef __cplusplus
13393extern "C"
13394#endif
13395char op_open_agent ();
13396int
13397main ()
13398{
13399return op_open_agent ();
13400 ;
13401 return 0;
13402}
13403_ACEOF
13404for ac_lib in '' opagent; do
13405 if test -z "$ac_lib"; then
13406 ac_res="none required"
13407 else
13408 ac_res=-l$ac_lib
13409 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13410 fi
13411 rm -f conftest.$ac_objext conftest$ac_exeext
13412if { (ac_try="$ac_link"
13413case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13416esac
13417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_link") 2>conftest.er1
13419 ac_status=$?
13420 grep -v '^ *+' conftest.er1 >conftest.err
13421 rm -f conftest.er1
13422 cat conftest.err >&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } &&
13425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13426 { (case "(($ac_try" in
13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428 *) ac_try_echo=$ac_try;;
13429esac
13430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431 (eval "$ac_try") 2>&5
13432 ac_status=$?
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; } &&
13435 { ac_try='test -s conftest$ac_exeext'
13436 { (case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13439esac
13440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_try") 2>&5
13442 ac_status=$?
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; }; then
13445 ac_cv_search_op_open_agent=$ac_res
13446else
13447 echo "$as_me: failed program was:" >&5
13448sed 's/^/| /' conftest.$ac_ext >&5
13449
13450
13451fi
13452
13453rm -f core conftest.err conftest.$ac_objext \
13454 conftest$ac_exeext
13455 if test "${ac_cv_search_op_open_agent+set}" = set; then
13456 break
13457fi
13458done
13459if test "${ac_cv_search_op_open_agent+set}" = set; then
13460 :
13461else
13462 ac_cv_search_op_open_agent=no
13463fi
13464rm conftest.$ac_ext
13465LIBS=$ac_func_search_save_LIBS
13466fi
13467{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13468echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13469ac_res=$ac_cv_search_op_open_agent
13470if test "$ac_res" != no; then
13471 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13472
13473else
13474
13475 echo "Error! You need to have libopagent around."
13476 exit -1
13477
13478fi
13479
13480 if test "${ac_cv_header_opagent_h+set}" = set; then
13481 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13482echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13483if test "${ac_cv_header_opagent_h+set}" = set; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
13485fi
13486{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13487echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13488else
13489 # Is the header compilable?
13490{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13491echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13492cat >conftest.$ac_ext <<_ACEOF
13493/* confdefs.h. */
13494_ACEOF
13495cat confdefs.h >>conftest.$ac_ext
13496cat >>conftest.$ac_ext <<_ACEOF
13497/* end confdefs.h. */
13498$ac_includes_default
13499#include <opagent.h>
13500_ACEOF
13501rm -f conftest.$ac_objext
13502if { (ac_try="$ac_compile"
13503case "(($ac_try" in
13504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13505 *) ac_try_echo=$ac_try;;
13506esac
13507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508 (eval "$ac_compile") 2>conftest.er1
13509 ac_status=$?
13510 grep -v '^ *+' conftest.er1 >conftest.err
13511 rm -f conftest.er1
13512 cat conftest.err >&5
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } &&
13515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13516 { (case "(($ac_try" in
13517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518 *) ac_try_echo=$ac_try;;
13519esac
13520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521 (eval "$ac_try") 2>&5
13522 ac_status=$?
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; } &&
13525 { ac_try='test -s conftest.$ac_objext'
13526 { (case "(($ac_try" in
13527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13528 *) ac_try_echo=$ac_try;;
13529esac
13530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13531 (eval "$ac_try") 2>&5
13532 ac_status=$?
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); }; }; then
13535 ac_header_compiler=yes
13536else
13537 echo "$as_me: failed program was:" >&5
13538sed 's/^/| /' conftest.$ac_ext >&5
13539
13540 ac_header_compiler=no
13541fi
13542
13543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13544{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13545echo "${ECHO_T}$ac_header_compiler" >&6; }
13546
13547# Is the header present?
13548{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13549echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13550cat >conftest.$ac_ext <<_ACEOF
13551/* confdefs.h. */
13552_ACEOF
13553cat confdefs.h >>conftest.$ac_ext
13554cat >>conftest.$ac_ext <<_ACEOF
13555/* end confdefs.h. */
13556#include <opagent.h>
13557_ACEOF
13558if { (ac_try="$ac_cpp conftest.$ac_ext"
13559case "(($ac_try" in
13560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13561 *) ac_try_echo=$ac_try;;
13562esac
13563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13565 ac_status=$?
13566 grep -v '^ *+' conftest.er1 >conftest.err
13567 rm -f conftest.er1
13568 cat conftest.err >&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); } >/dev/null; then
13571 if test -s conftest.err; then
13572 ac_cpp_err=$ac_c_preproc_warn_flag
13573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13574 else
13575 ac_cpp_err=
13576 fi
13577else
13578 ac_cpp_err=yes
13579fi
13580if test -z "$ac_cpp_err"; then
13581 ac_header_preproc=yes
13582else
13583 echo "$as_me: failed program was:" >&5
13584sed 's/^/| /' conftest.$ac_ext >&5
13585
13586 ac_header_preproc=no
13587fi
13588
13589rm -f conftest.err conftest.$ac_ext
13590{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13591echo "${ECHO_T}$ac_header_preproc" >&6; }
13592
13593# So? What about this header?
13594case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13595 yes:no: )
13596 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13597echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13598 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13599echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13600 ac_header_preproc=yes
13601 ;;
13602 no:yes:* )
13603 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13604echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13605 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13606echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13607 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13608echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13609 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13610echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13611 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13612echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13613 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13614echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13615 ( cat <<\_ASBOX
13616## ------------------------------ ##
13617## Report this to bugs@yourdomain ##
13618## ------------------------------ ##
13619_ASBOX
13620 ) | sed "s/^/$as_me: WARNING: /" >&2
13621 ;;
13622esac
13623{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13624echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13625if test "${ac_cv_header_opagent_h+set}" = set; then
13626 echo $ECHO_N "(cached) $ECHO_C" >&6
13627else
13628 ac_cv_header_opagent_h=$ac_header_preproc
13629fi
13630{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13631echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13632
13633fi
13634if test $ac_cv_header_opagent_h = yes; then
13635 :
13636else
13637
13638 echo "Error! You need to have opagent.h around."
13639 exit -1
13640
13641fi
13642
13643
13644 fi
13645
13646else
13647
13648 USE_OPROFILE=0
13649
13650
13651fi
13652
13653
13654cat >>confdefs.h <<_ACEOF
13655#define USE_OPROFILE $USE_OPROFILE
13656_ACEOF
13657
13658
13659
13660
13661
13662
13663
13664
13665ac_header_dirent=no
13666for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13667 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13668{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13669echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13671 echo $ECHO_N "(cached) $ECHO_C" >&6
13672else
13673 cat >conftest.$ac_ext <<_ACEOF
13674/* confdefs.h. */
13675_ACEOF
13676cat confdefs.h >>conftest.$ac_ext
13677cat >>conftest.$ac_ext <<_ACEOF
13678/* end confdefs.h. */
13679#include <sys/types.h>
13680#include <$ac_hdr>
13681
13682int
13683main ()
13684{
13685if ((DIR *) 0)
13686return 0;
13687 ;
13688 return 0;
13689}
13690_ACEOF
13691rm -f conftest.$ac_objext
13692if { (ac_try="$ac_compile"
13693case "(($ac_try" in
13694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13696esac
13697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_compile") 2>conftest.er1
13699 ac_status=$?
13700 grep -v '^ *+' conftest.er1 >conftest.err
13701 rm -f conftest.er1
13702 cat conftest.err >&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } &&
13705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13706 { (case "(($ac_try" in
13707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13708 *) ac_try_echo=$ac_try;;
13709esac
13710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13711 (eval "$ac_try") 2>&5
13712 ac_status=$?
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; } &&
13715 { ac_try='test -s conftest.$ac_objext'
13716 { (case "(($ac_try" in
13717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718 *) ac_try_echo=$ac_try;;
13719esac
13720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13721 (eval "$ac_try") 2>&5
13722 ac_status=$?
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; }; then
13725 eval "$as_ac_Header=yes"
13726else
13727 echo "$as_me: failed program was:" >&5
13728sed 's/^/| /' conftest.$ac_ext >&5
13729
13730 eval "$as_ac_Header=no"
13731fi
13732
13733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13734fi
13735ac_res=`eval echo '${'$as_ac_Header'}'`
13736 { echo "$as_me:$LINENO: result: $ac_res" >&5
13737echo "${ECHO_T}$ac_res" >&6; }
13738if test `eval echo '${'$as_ac_Header'}'` = yes; then
13739 cat >>confdefs.h <<_ACEOF
13740#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13741_ACEOF
13742
13743ac_header_dirent=$ac_hdr; break
13744fi
13745
13746done
13747# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13748if test $ac_header_dirent = dirent.h; then
13749 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13750echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13751if test "${ac_cv_search_opendir+set}" = set; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13753else
13754 ac_func_search_save_LIBS=$LIBS
13755cat >conftest.$ac_ext <<_ACEOF
13756/* confdefs.h. */
13757_ACEOF
13758cat confdefs.h >>conftest.$ac_ext
13759cat >>conftest.$ac_ext <<_ACEOF
13760/* end confdefs.h. */
13761
13762/* Override any GCC internal prototype to avoid an error.
13763 Use char because int might match the return type of a GCC
13764 builtin and then its argument prototype would still apply. */
13765#ifdef __cplusplus
13766extern "C"
13767#endif
13768char opendir ();
13769int
13770main ()
13771{
13772return opendir ();
13773 ;
13774 return 0;
13775}
13776_ACEOF
13777for ac_lib in '' dir; do
13778 if test -z "$ac_lib"; then
13779 ac_res="none required"
13780 else
13781 ac_res=-l$ac_lib
13782 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13783 fi
13784 rm -f conftest.$ac_objext conftest$ac_exeext
13785if { (ac_try="$ac_link"
13786case "(($ac_try" in
13787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788 *) ac_try_echo=$ac_try;;
13789esac
13790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13791 (eval "$ac_link") 2>conftest.er1
13792 ac_status=$?
13793 grep -v '^ *+' conftest.er1 >conftest.err
13794 rm -f conftest.er1
13795 cat conftest.err >&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } &&
13798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13799 { (case "(($ac_try" in
13800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13802esac
13803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_try") 2>&5
13805 ac_status=$?
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; } &&
13808 { ac_try='test -s conftest$ac_exeext'
13809 { (case "(($ac_try" in
13810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811 *) ac_try_echo=$ac_try;;
13812esac
13813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814 (eval "$ac_try") 2>&5
13815 ac_status=$?
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; }; then
13818 ac_cv_search_opendir=$ac_res
13819else
13820 echo "$as_me: failed program was:" >&5
13821sed 's/^/| /' conftest.$ac_ext >&5
13822
13823
13824fi
13825
13826rm -f core conftest.err conftest.$ac_objext \
13827 conftest$ac_exeext
13828 if test "${ac_cv_search_opendir+set}" = set; then
13829 break
13830fi
13831done
13832if test "${ac_cv_search_opendir+set}" = set; then
13833 :
13834else
13835 ac_cv_search_opendir=no
13836fi
13837rm conftest.$ac_ext
13838LIBS=$ac_func_search_save_LIBS
13839fi
13840{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13841echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13842ac_res=$ac_cv_search_opendir
13843if test "$ac_res" != no; then
13844 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13845
13846fi
13847
13848else
13849 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13850echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13851if test "${ac_cv_search_opendir+set}" = set; then
13852 echo $ECHO_N "(cached) $ECHO_C" >&6
13853else
13854 ac_func_search_save_LIBS=$LIBS
13855cat >conftest.$ac_ext <<_ACEOF
13856/* confdefs.h. */
13857_ACEOF
13858cat confdefs.h >>conftest.$ac_ext
13859cat >>conftest.$ac_ext <<_ACEOF
13860/* end confdefs.h. */
13861
13862/* Override any GCC internal prototype to avoid an error.
13863 Use char because int might match the return type of a GCC
13864 builtin and then its argument prototype would still apply. */
13865#ifdef __cplusplus
13866extern "C"
13867#endif
13868char opendir ();
13869int
13870main ()
13871{
13872return opendir ();
13873 ;
13874 return 0;
13875}
13876_ACEOF
13877for ac_lib in '' x; do
13878 if test -z "$ac_lib"; then
13879 ac_res="none required"
13880 else
13881 ac_res=-l$ac_lib
13882 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13883 fi
13884 rm -f conftest.$ac_objext conftest$ac_exeext
13885if { (ac_try="$ac_link"
13886case "(($ac_try" in
13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888 *) ac_try_echo=$ac_try;;
13889esac
13890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891 (eval "$ac_link") 2>conftest.er1
13892 ac_status=$?
13893 grep -v '^ *+' conftest.er1 >conftest.err
13894 rm -f conftest.er1
13895 cat conftest.err >&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } &&
13898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13899 { (case "(($ac_try" in
13900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901 *) ac_try_echo=$ac_try;;
13902esac
13903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904 (eval "$ac_try") 2>&5
13905 ac_status=$?
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; } &&
13908 { ac_try='test -s conftest$ac_exeext'
13909 { (case "(($ac_try" in
13910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13911 *) ac_try_echo=$ac_try;;
13912esac
13913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13914 (eval "$ac_try") 2>&5
13915 ac_status=$?
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; }; then
13918 ac_cv_search_opendir=$ac_res
13919else
13920 echo "$as_me: failed program was:" >&5
13921sed 's/^/| /' conftest.$ac_ext >&5
13922
13923
13924fi
13925
13926rm -f core conftest.err conftest.$ac_objext \
13927 conftest$ac_exeext
13928 if test "${ac_cv_search_opendir+set}" = set; then
13929 break
13930fi
13931done
13932if test "${ac_cv_search_opendir+set}" = set; then
13933 :
13934else
13935 ac_cv_search_opendir=no
13936fi
13937rm conftest.$ac_ext
13938LIBS=$ac_func_search_save_LIBS
13939fi
13940{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13941echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13942ac_res=$ac_cv_search_opendir
13943if test "$ac_res" != no; then
13944 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13945
13946fi
13947
13948fi
13949
13950{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13951echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13952if test "${ac_cv_header_mmap_anon+set}" = set; then
13953 echo $ECHO_N "(cached) $ECHO_C" >&6
13954else
13955 ac_ext=c
13956ac_cpp='$CPP $CPPFLAGS'
13957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13959ac_compiler_gnu=$ac_cv_c_compiler_gnu
13960
13961 cat >conftest.$ac_ext <<_ACEOF
13962/* confdefs.h. */
13963_ACEOF
13964cat confdefs.h >>conftest.$ac_ext
13965cat >>conftest.$ac_ext <<_ACEOF
13966/* end confdefs.h. */
13967#include <sys/mman.h>
13968#include <unistd.h>
13969#include <fcntl.h>
13970int
13971main ()
13972{
13973mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13974 ;
13975 return 0;
13976}
13977_ACEOF
13978rm -f conftest.$ac_objext
13979if { (ac_try="$ac_compile"
13980case "(($ac_try" in
13981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13982 *) ac_try_echo=$ac_try;;
13983esac
13984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13985 (eval "$ac_compile") 2>conftest.er1
13986 ac_status=$?
13987 grep -v '^ *+' conftest.er1 >conftest.err
13988 rm -f conftest.er1
13989 cat conftest.err >&5
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); } &&
13992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13993 { (case "(($ac_try" in
13994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13995 *) ac_try_echo=$ac_try;;
13996esac
13997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13998 (eval "$ac_try") 2>&5
13999 ac_status=$?
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); }; } &&
14002 { ac_try='test -s conftest.$ac_objext'
14003 { (case "(($ac_try" in
14004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14005 *) ac_try_echo=$ac_try;;
14006esac
14007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14008 (eval "$ac_try") 2>&5
14009 ac_status=$?
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); }; }; then
14012 ac_cv_header_mmap_anon=yes
14013else
14014 echo "$as_me: failed program was:" >&5
14015sed 's/^/| /' conftest.$ac_ext >&5
14016
14017 ac_cv_header_mmap_anon=no
14018fi
14019
14020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14021 ac_ext=c
14022ac_cpp='$CPP $CPPFLAGS'
14023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14025ac_compiler_gnu=$ac_cv_c_compiler_gnu
14026
14027
14028fi
14029{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14030echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14031if test "$ac_cv_header_mmap_anon" = yes; then
14032
14033cat >>confdefs.h <<\_ACEOF
14034#define HAVE_MMAP_ANONYMOUS 1
14035_ACEOF
14036
14037fi
14038
14039{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14040echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14041if test "${ac_cv_header_stat_broken+set}" = set; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14043else
14044 cat >conftest.$ac_ext <<_ACEOF
14045/* confdefs.h. */
14046_ACEOF
14047cat confdefs.h >>conftest.$ac_ext
14048cat >>conftest.$ac_ext <<_ACEOF
14049/* end confdefs.h. */
14050#include <sys/types.h>
14051#include <sys/stat.h>
14052
14053#if defined S_ISBLK && defined S_IFDIR
14054# if S_ISBLK (S_IFDIR)
14055You lose.
14056# endif
14057#endif
14058
14059#if defined S_ISBLK && defined S_IFCHR
14060# if S_ISBLK (S_IFCHR)
14061You lose.
14062# endif
14063#endif
14064
14065#if defined S_ISLNK && defined S_IFREG
14066# if S_ISLNK (S_IFREG)
14067You lose.
14068# endif
14069#endif
14070
14071#if defined S_ISSOCK && defined S_IFREG
14072# if S_ISSOCK (S_IFREG)
14073You lose.
14074# endif
14075#endif
14076
14077_ACEOF
14078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14079 $EGREP "You lose" >/dev/null 2>&1; then
14080 ac_cv_header_stat_broken=yes
14081else
14082 ac_cv_header_stat_broken=no
14083fi
14084rm -f conftest*
14085
14086fi
14087{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14088echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14089if test $ac_cv_header_stat_broken = yes; then
14090
14091cat >>confdefs.h <<\_ACEOF
14092#define STAT_MACROS_BROKEN 1
14093_ACEOF
14094
14095fi
14096
14097{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14098echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14099if test "${ac_cv_header_sys_wait_h+set}" = set; then
14100 echo $ECHO_N "(cached) $ECHO_C" >&6
14101else
14102 cat >conftest.$ac_ext <<_ACEOF
14103/* confdefs.h. */
14104_ACEOF
14105cat confdefs.h >>conftest.$ac_ext
14106cat >>conftest.$ac_ext <<_ACEOF
14107/* end confdefs.h. */
14108#include <sys/types.h>
14109#include <sys/wait.h>
14110#ifndef WEXITSTATUS
14111# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14112#endif
14113#ifndef WIFEXITED
14114# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14115#endif
14116
14117int
14118main ()
14119{
14120 int s;
14121 wait (&s);
14122 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14123 ;
14124 return 0;
14125}
14126_ACEOF
14127rm -f conftest.$ac_objext
14128if { (ac_try="$ac_compile"
14129case "(($ac_try" in
14130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131 *) ac_try_echo=$ac_try;;
14132esac
14133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14134 (eval "$ac_compile") 2>conftest.er1
14135 ac_status=$?
14136 grep -v '^ *+' conftest.er1 >conftest.err
14137 rm -f conftest.er1
14138 cat conftest.err >&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } &&
14141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14142 { (case "(($ac_try" in
14143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144 *) ac_try_echo=$ac_try;;
14145esac
14146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14147 (eval "$ac_try") 2>&5
14148 ac_status=$?
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); }; } &&
14151 { ac_try='test -s conftest.$ac_objext'
14152 { (case "(($ac_try" in
14153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14154 *) ac_try_echo=$ac_try;;
14155esac
14156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14157 (eval "$ac_try") 2>&5
14158 ac_status=$?
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; }; then
14161 ac_cv_header_sys_wait_h=yes
14162else
14163 echo "$as_me: failed program was:" >&5
14164sed 's/^/| /' conftest.$ac_ext >&5
14165
14166 ac_cv_header_sys_wait_h=no
14167fi
14168
14169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14170fi
14171{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14172echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14173if test $ac_cv_header_sys_wait_h = yes; then
14174
14175cat >>confdefs.h <<\_ACEOF
14176#define HAVE_SYS_WAIT_H 1
14177_ACEOF
14178
14179fi
14180
14181{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14182echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14183if test "${ac_cv_header_time+set}" = set; then
14184 echo $ECHO_N "(cached) $ECHO_C" >&6
14185else
14186 cat >conftest.$ac_ext <<_ACEOF
14187/* confdefs.h. */
14188_ACEOF
14189cat confdefs.h >>conftest.$ac_ext
14190cat >>conftest.$ac_ext <<_ACEOF
14191/* end confdefs.h. */
14192#include <sys/types.h>
14193#include <sys/time.h>
14194#include <time.h>
14195
14196int
14197main ()
14198{
14199if ((struct tm *) 0)
14200return 0;
14201 ;
14202 return 0;
14203}
14204_ACEOF
14205rm -f conftest.$ac_objext
14206if { (ac_try="$ac_compile"
14207case "(($ac_try" in
14208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14210esac
14211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_compile") 2>conftest.er1
14213 ac_status=$?
14214 grep -v '^ *+' conftest.er1 >conftest.err
14215 rm -f conftest.er1
14216 cat conftest.err >&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } &&
14219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14220 { (case "(($ac_try" in
14221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14222 *) ac_try_echo=$ac_try;;
14223esac
14224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14225 (eval "$ac_try") 2>&5
14226 ac_status=$?
14227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); }; } &&
14229 { ac_try='test -s conftest.$ac_objext'
14230 { (case "(($ac_try" in
14231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14232 *) ac_try_echo=$ac_try;;
14233esac
14234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14235 (eval "$ac_try") 2>&5
14236 ac_status=$?
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); }; }; then
14239 ac_cv_header_time=yes
14240else
14241 echo "$as_me: failed program was:" >&5
14242sed 's/^/| /' conftest.$ac_ext >&5
14243
14244 ac_cv_header_time=no
14245fi
14246
14247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14248fi
14249{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14250echo "${ECHO_T}$ac_cv_header_time" >&6; }
14251if test $ac_cv_header_time = yes; then
14252
14253cat >>confdefs.h <<\_ACEOF
14254#define TIME_WITH_SYS_TIME 1
14255_ACEOF
14256
14257fi
14258
14259
14260
14261
14262
14263
14264
14265
14266for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14267do
14268as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14271echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14272if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
14274fi
14275ac_res=`eval echo '${'$as_ac_Header'}'`
14276 { echo "$as_me:$LINENO: result: $ac_res" >&5
14277echo "${ECHO_T}$ac_res" >&6; }
14278else
14279 # Is the header compilable?
14280{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14281echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14282cat >conftest.$ac_ext <<_ACEOF
14283/* confdefs.h. */
14284_ACEOF
14285cat confdefs.h >>conftest.$ac_ext
14286cat >>conftest.$ac_ext <<_ACEOF
14287/* end confdefs.h. */
14288$ac_includes_default
14289#include <$ac_header>
14290_ACEOF
14291rm -f conftest.$ac_objext
14292if { (ac_try="$ac_compile"
14293case "(($ac_try" in
14294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14295 *) ac_try_echo=$ac_try;;
14296esac
14297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14298 (eval "$ac_compile") 2>conftest.er1
14299 ac_status=$?
14300 grep -v '^ *+' conftest.er1 >conftest.err
14301 rm -f conftest.er1
14302 cat conftest.err >&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); } &&
14305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14306 { (case "(($ac_try" in
14307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14308 *) ac_try_echo=$ac_try;;
14309esac
14310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14311 (eval "$ac_try") 2>&5
14312 ac_status=$?
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); }; } &&
14315 { ac_try='test -s conftest.$ac_objext'
14316 { (case "(($ac_try" in
14317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318 *) ac_try_echo=$ac_try;;
14319esac
14320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14321 (eval "$ac_try") 2>&5
14322 ac_status=$?
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; }; then
14325 ac_header_compiler=yes
14326else
14327 echo "$as_me: failed program was:" >&5
14328sed 's/^/| /' conftest.$ac_ext >&5
14329
14330 ac_header_compiler=no
14331fi
14332
14333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14334{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14335echo "${ECHO_T}$ac_header_compiler" >&6; }
14336
14337# Is the header present?
14338{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14339echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14340cat >conftest.$ac_ext <<_ACEOF
14341/* confdefs.h. */
14342_ACEOF
14343cat confdefs.h >>conftest.$ac_ext
14344cat >>conftest.$ac_ext <<_ACEOF
14345/* end confdefs.h. */
14346#include <$ac_header>
14347_ACEOF
14348if { (ac_try="$ac_cpp conftest.$ac_ext"
14349case "(($ac_try" in
14350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351 *) ac_try_echo=$ac_try;;
14352esac
14353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14355 ac_status=$?
14356 grep -v '^ *+' conftest.er1 >conftest.err
14357 rm -f conftest.er1
14358 cat conftest.err >&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); } >/dev/null; then
14361 if test -s conftest.err; then
14362 ac_cpp_err=$ac_c_preproc_warn_flag
14363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14364 else
14365 ac_cpp_err=
14366 fi
14367else
14368 ac_cpp_err=yes
14369fi
14370if test -z "$ac_cpp_err"; then
14371 ac_header_preproc=yes
14372else
14373 echo "$as_me: failed program was:" >&5
14374sed 's/^/| /' conftest.$ac_ext >&5
14375
14376 ac_header_preproc=no
14377fi
14378
14379rm -f conftest.err conftest.$ac_ext
14380{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14381echo "${ECHO_T}$ac_header_preproc" >&6; }
14382
14383# So? What about this header?
14384case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14385 yes:no: )
14386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14387echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14389echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14390 ac_header_preproc=yes
14391 ;;
14392 no:yes:* )
14393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14394echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14396echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14398echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14400echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14402echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14404echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14405 ( cat <<\_ASBOX
14406## ------------------------------ ##
14407## Report this to bugs@yourdomain ##
14408## ------------------------------ ##
14409_ASBOX
14410 ) | sed "s/^/$as_me: WARNING: /" >&2
14411 ;;
14412esac
14413{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14414echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14415if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14416 echo $ECHO_N "(cached) $ECHO_C" >&6
14417else
14418 eval "$as_ac_Header=\$ac_header_preproc"
14419fi
14420ac_res=`eval echo '${'$as_ac_Header'}'`
14421 { echo "$as_me:$LINENO: result: $ac_res" >&5
14422echo "${ECHO_T}$ac_res" >&6; }
14423
14424fi
14425if test `eval echo '${'$as_ac_Header'}'` = yes; then
14426 cat >>confdefs.h <<_ACEOF
14427#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14428_ACEOF
14429
14430fi
14431
14432done
14433
14434
14435
14436
14437
14438
14439
14440for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14441do
14442as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14443if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14446if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14448fi
14449ac_res=`eval echo '${'$as_ac_Header'}'`
14450 { echo "$as_me:$LINENO: result: $ac_res" >&5
14451echo "${ECHO_T}$ac_res" >&6; }
14452else
14453 # Is the header compilable?
14454{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14455echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14456cat >conftest.$ac_ext <<_ACEOF
14457/* confdefs.h. */
14458_ACEOF
14459cat confdefs.h >>conftest.$ac_ext
14460cat >>conftest.$ac_ext <<_ACEOF
14461/* end confdefs.h. */
14462$ac_includes_default
14463#include <$ac_header>
14464_ACEOF
14465rm -f conftest.$ac_objext
14466if { (ac_try="$ac_compile"
14467case "(($ac_try" in
14468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469 *) ac_try_echo=$ac_try;;
14470esac
14471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14472 (eval "$ac_compile") 2>conftest.er1
14473 ac_status=$?
14474 grep -v '^ *+' conftest.er1 >conftest.err
14475 rm -f conftest.er1
14476 cat conftest.err >&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); } &&
14479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14480 { (case "(($ac_try" in
14481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14482 *) ac_try_echo=$ac_try;;
14483esac
14484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14485 (eval "$ac_try") 2>&5
14486 ac_status=$?
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); }; } &&
14489 { ac_try='test -s conftest.$ac_objext'
14490 { (case "(($ac_try" in
14491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14492 *) ac_try_echo=$ac_try;;
14493esac
14494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14495 (eval "$ac_try") 2>&5
14496 ac_status=$?
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); }; }; then
14499 ac_header_compiler=yes
14500else
14501 echo "$as_me: failed program was:" >&5
14502sed 's/^/| /' conftest.$ac_ext >&5
14503
14504 ac_header_compiler=no
14505fi
14506
14507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14508{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14509echo "${ECHO_T}$ac_header_compiler" >&6; }
14510
14511# Is the header present?
14512{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14513echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14514cat >conftest.$ac_ext <<_ACEOF
14515/* confdefs.h. */
14516_ACEOF
14517cat confdefs.h >>conftest.$ac_ext
14518cat >>conftest.$ac_ext <<_ACEOF
14519/* end confdefs.h. */
14520#include <$ac_header>
14521_ACEOF
14522if { (ac_try="$ac_cpp conftest.$ac_ext"
14523case "(($ac_try" in
14524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14525 *) ac_try_echo=$ac_try;;
14526esac
14527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14529 ac_status=$?
14530 grep -v '^ *+' conftest.er1 >conftest.err
14531 rm -f conftest.er1
14532 cat conftest.err >&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); } >/dev/null; then
14535 if test -s conftest.err; then
14536 ac_cpp_err=$ac_c_preproc_warn_flag
14537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14538 else
14539 ac_cpp_err=
14540 fi
14541else
14542 ac_cpp_err=yes
14543fi
14544if test -z "$ac_cpp_err"; then
14545 ac_header_preproc=yes
14546else
14547 echo "$as_me: failed program was:" >&5
14548sed 's/^/| /' conftest.$ac_ext >&5
14549
14550 ac_header_preproc=no
14551fi
14552
14553rm -f conftest.err conftest.$ac_ext
14554{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14555echo "${ECHO_T}$ac_header_preproc" >&6; }
14556
14557# So? What about this header?
14558case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14559 yes:no: )
14560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14561echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14563echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14564 ac_header_preproc=yes
14565 ;;
14566 no:yes:* )
14567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14568echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14570echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14571 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14572echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14573 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14574echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14576echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14577 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14578echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14579 ( cat <<\_ASBOX
14580## ------------------------------ ##
14581## Report this to bugs@yourdomain ##
14582## ------------------------------ ##
14583_ASBOX
14584 ) | sed "s/^/$as_me: WARNING: /" >&2
14585 ;;
14586esac
14587{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14588echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14589if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14590 echo $ECHO_N "(cached) $ECHO_C" >&6
14591else
14592 eval "$as_ac_Header=\$ac_header_preproc"
14593fi
14594ac_res=`eval echo '${'$as_ac_Header'}'`
14595 { echo "$as_me:$LINENO: result: $ac_res" >&5
14596echo "${ECHO_T}$ac_res" >&6; }
14597
14598fi
14599if test `eval echo '${'$as_ac_Header'}'` = yes; then
14600 cat >>confdefs.h <<_ACEOF
14601#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14602_ACEOF
14603
14604fi
14605
14606done
14607
14608
14609
14610for ac_header in utime.h windows.h
14611do
14612as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14613if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14616if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14618fi
14619ac_res=`eval echo '${'$as_ac_Header'}'`
14620 { echo "$as_me:$LINENO: result: $ac_res" >&5
14621echo "${ECHO_T}$ac_res" >&6; }
14622else
14623 # Is the header compilable?
14624{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14625echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14626cat >conftest.$ac_ext <<_ACEOF
14627/* confdefs.h. */
14628_ACEOF
14629cat confdefs.h >>conftest.$ac_ext
14630cat >>conftest.$ac_ext <<_ACEOF
14631/* end confdefs.h. */
14632$ac_includes_default
14633#include <$ac_header>
14634_ACEOF
14635rm -f conftest.$ac_objext
14636if { (ac_try="$ac_compile"
14637case "(($ac_try" in
14638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14639 *) ac_try_echo=$ac_try;;
14640esac
14641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14642 (eval "$ac_compile") 2>conftest.er1
14643 ac_status=$?
14644 grep -v '^ *+' conftest.er1 >conftest.err
14645 rm -f conftest.er1
14646 cat conftest.err >&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); } &&
14649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14650 { (case "(($ac_try" in
14651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14652 *) ac_try_echo=$ac_try;;
14653esac
14654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14655 (eval "$ac_try") 2>&5
14656 ac_status=$?
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; } &&
14659 { ac_try='test -s conftest.$ac_objext'
14660 { (case "(($ac_try" in
14661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662 *) ac_try_echo=$ac_try;;
14663esac
14664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14665 (eval "$ac_try") 2>&5
14666 ac_status=$?
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); }; }; then
14669 ac_header_compiler=yes
14670else
14671 echo "$as_me: failed program was:" >&5
14672sed 's/^/| /' conftest.$ac_ext >&5
14673
14674 ac_header_compiler=no
14675fi
14676
14677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14678{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14679echo "${ECHO_T}$ac_header_compiler" >&6; }
14680
14681# Is the header present?
14682{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14683echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14684cat >conftest.$ac_ext <<_ACEOF
14685/* confdefs.h. */
14686_ACEOF
14687cat confdefs.h >>conftest.$ac_ext
14688cat >>conftest.$ac_ext <<_ACEOF
14689/* end confdefs.h. */
14690#include <$ac_header>
14691_ACEOF
14692if { (ac_try="$ac_cpp conftest.$ac_ext"
14693case "(($ac_try" in
14694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695 *) ac_try_echo=$ac_try;;
14696esac
14697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14699 ac_status=$?
14700 grep -v '^ *+' conftest.er1 >conftest.err
14701 rm -f conftest.er1
14702 cat conftest.err >&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); } >/dev/null; then
14705 if test -s conftest.err; then
14706 ac_cpp_err=$ac_c_preproc_warn_flag
14707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14708 else
14709 ac_cpp_err=
14710 fi
14711else
14712 ac_cpp_err=yes
14713fi
14714if test -z "$ac_cpp_err"; then
14715 ac_header_preproc=yes
14716else
14717 echo "$as_me: failed program was:" >&5
14718sed 's/^/| /' conftest.$ac_ext >&5
14719
14720 ac_header_preproc=no
14721fi
14722
14723rm -f conftest.err conftest.$ac_ext
14724{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14725echo "${ECHO_T}$ac_header_preproc" >&6; }
14726
14727# So? What about this header?
14728case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14729 yes:no: )
14730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14731echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14733echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14734 ac_header_preproc=yes
14735 ;;
14736 no:yes:* )
14737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14738echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14740echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14742echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14744echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14746echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14748echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14749 ( cat <<\_ASBOX
14750## ------------------------------ ##
14751## Report this to bugs@yourdomain ##
14752## ------------------------------ ##
14753_ASBOX
14754 ) | sed "s/^/$as_me: WARNING: /" >&2
14755 ;;
14756esac
14757{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14758echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14759if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14760 echo $ECHO_N "(cached) $ECHO_C" >&6
14761else
14762 eval "$as_ac_Header=\$ac_header_preproc"
14763fi
14764ac_res=`eval echo '${'$as_ac_Header'}'`
14765 { echo "$as_me:$LINENO: result: $ac_res" >&5
14766echo "${ECHO_T}$ac_res" >&6; }
14767
14768fi
14769if test `eval echo '${'$as_ac_Header'}'` = yes; then
14770 cat >>confdefs.h <<_ACEOF
14771#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14772_ACEOF
14773
14774fi
14775
14776done
14777
14778
14779
14780
14781
14782
14783for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14784do
14785as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14786if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14789if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14790 echo $ECHO_N "(cached) $ECHO_C" >&6
14791fi
14792ac_res=`eval echo '${'$as_ac_Header'}'`
14793 { echo "$as_me:$LINENO: result: $ac_res" >&5
14794echo "${ECHO_T}$ac_res" >&6; }
14795else
14796 # Is the header compilable?
14797{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14798echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14799cat >conftest.$ac_ext <<_ACEOF
14800/* confdefs.h. */
14801_ACEOF
14802cat confdefs.h >>conftest.$ac_ext
14803cat >>conftest.$ac_ext <<_ACEOF
14804/* end confdefs.h. */
14805$ac_includes_default
14806#include <$ac_header>
14807_ACEOF
14808rm -f conftest.$ac_objext
14809if { (ac_try="$ac_compile"
14810case "(($ac_try" in
14811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14812 *) ac_try_echo=$ac_try;;
14813esac
14814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14815 (eval "$ac_compile") 2>conftest.er1
14816 ac_status=$?
14817 grep -v '^ *+' conftest.er1 >conftest.err
14818 rm -f conftest.er1
14819 cat conftest.err >&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } &&
14822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14823 { (case "(($ac_try" in
14824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825 *) ac_try_echo=$ac_try;;
14826esac
14827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14828 (eval "$ac_try") 2>&5
14829 ac_status=$?
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; } &&
14832 { ac_try='test -s conftest.$ac_objext'
14833 { (case "(($ac_try" in
14834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835 *) ac_try_echo=$ac_try;;
14836esac
14837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14838 (eval "$ac_try") 2>&5
14839 ac_status=$?
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); }; }; then
14842 ac_header_compiler=yes
14843else
14844 echo "$as_me: failed program was:" >&5
14845sed 's/^/| /' conftest.$ac_ext >&5
14846
14847 ac_header_compiler=no
14848fi
14849
14850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14851{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14852echo "${ECHO_T}$ac_header_compiler" >&6; }
14853
14854# Is the header present?
14855{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14856echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14857cat >conftest.$ac_ext <<_ACEOF
14858/* confdefs.h. */
14859_ACEOF
14860cat confdefs.h >>conftest.$ac_ext
14861cat >>conftest.$ac_ext <<_ACEOF
14862/* end confdefs.h. */
14863#include <$ac_header>
14864_ACEOF
14865if { (ac_try="$ac_cpp conftest.$ac_ext"
14866case "(($ac_try" in
14867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868 *) ac_try_echo=$ac_try;;
14869esac
14870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14872 ac_status=$?
14873 grep -v '^ *+' conftest.er1 >conftest.err
14874 rm -f conftest.er1
14875 cat conftest.err >&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); } >/dev/null; then
14878 if test -s conftest.err; then
14879 ac_cpp_err=$ac_c_preproc_warn_flag
14880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14881 else
14882 ac_cpp_err=
14883 fi
14884else
14885 ac_cpp_err=yes
14886fi
14887if test -z "$ac_cpp_err"; then
14888 ac_header_preproc=yes
14889else
14890 echo "$as_me: failed program was:" >&5
14891sed 's/^/| /' conftest.$ac_ext >&5
14892
14893 ac_header_preproc=no
14894fi
14895
14896rm -f conftest.err conftest.$ac_ext
14897{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14898echo "${ECHO_T}$ac_header_preproc" >&6; }
14899
14900# So? What about this header?
14901case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14902 yes:no: )
14903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14904echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14906echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14907 ac_header_preproc=yes
14908 ;;
14909 no:yes:* )
14910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14911echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14913echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14915echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14917echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14919echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14921echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14922 ( cat <<\_ASBOX
14923## ------------------------------ ##
14924## Report this to bugs@yourdomain ##
14925## ------------------------------ ##
14926_ASBOX
14927 ) | sed "s/^/$as_me: WARNING: /" >&2
14928 ;;
14929esac
14930{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14932if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14934else
14935 eval "$as_ac_Header=\$ac_header_preproc"
14936fi
14937ac_res=`eval echo '${'$as_ac_Header'}'`
14938 { echo "$as_me:$LINENO: result: $ac_res" >&5
14939echo "${ECHO_T}$ac_res" >&6; }
14940
14941fi
14942if test `eval echo '${'$as_ac_Header'}'` = yes; then
14943 cat >>confdefs.h <<_ACEOF
14944#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14945_ACEOF
14946
14947fi
14948
14949done
14950
14951
14952
14953
14954
14955for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14956do
14957as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14961if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14962 echo $ECHO_N "(cached) $ECHO_C" >&6
14963fi
14964ac_res=`eval echo '${'$as_ac_Header'}'`
14965 { echo "$as_me:$LINENO: result: $ac_res" >&5
14966echo "${ECHO_T}$ac_res" >&6; }
14967else
14968 # Is the header compilable?
14969{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14970echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14971cat >conftest.$ac_ext <<_ACEOF
14972/* confdefs.h. */
14973_ACEOF
14974cat confdefs.h >>conftest.$ac_ext
14975cat >>conftest.$ac_ext <<_ACEOF
14976/* end confdefs.h. */
14977$ac_includes_default
14978#include <$ac_header>
14979_ACEOF
14980rm -f conftest.$ac_objext
14981if { (ac_try="$ac_compile"
14982case "(($ac_try" in
14983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984 *) ac_try_echo=$ac_try;;
14985esac
14986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987 (eval "$ac_compile") 2>conftest.er1
14988 ac_status=$?
14989 grep -v '^ *+' conftest.er1 >conftest.err
14990 rm -f conftest.er1
14991 cat conftest.err >&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } &&
14994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14995 { (case "(($ac_try" in
14996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14997 *) ac_try_echo=$ac_try;;
14998esac
14999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15000 (eval "$ac_try") 2>&5
15001 ac_status=$?
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); }; } &&
15004 { ac_try='test -s conftest.$ac_objext'
15005 { (case "(($ac_try" in
15006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007 *) ac_try_echo=$ac_try;;
15008esac
15009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010 (eval "$ac_try") 2>&5
15011 ac_status=$?
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); }; }; then
15014 ac_header_compiler=yes
15015else
15016 echo "$as_me: failed program was:" >&5
15017sed 's/^/| /' conftest.$ac_ext >&5
15018
15019 ac_header_compiler=no
15020fi
15021
15022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15023{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15024echo "${ECHO_T}$ac_header_compiler" >&6; }
15025
15026# Is the header present?
15027{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15028echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15029cat >conftest.$ac_ext <<_ACEOF
15030/* confdefs.h. */
15031_ACEOF
15032cat confdefs.h >>conftest.$ac_ext
15033cat >>conftest.$ac_ext <<_ACEOF
15034/* end confdefs.h. */
15035#include <$ac_header>
15036_ACEOF
15037if { (ac_try="$ac_cpp conftest.$ac_ext"
15038case "(($ac_try" in
15039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040 *) ac_try_echo=$ac_try;;
15041esac
15042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15044 ac_status=$?
15045 grep -v '^ *+' conftest.er1 >conftest.err
15046 rm -f conftest.er1
15047 cat conftest.err >&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); } >/dev/null; then
15050 if test -s conftest.err; then
15051 ac_cpp_err=$ac_c_preproc_warn_flag
15052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15053 else
15054 ac_cpp_err=
15055 fi
15056else
15057 ac_cpp_err=yes
15058fi
15059if test -z "$ac_cpp_err"; then
15060 ac_header_preproc=yes
15061else
15062 echo "$as_me: failed program was:" >&5
15063sed 's/^/| /' conftest.$ac_ext >&5
15064
15065 ac_header_preproc=no
15066fi
15067
15068rm -f conftest.err conftest.$ac_ext
15069{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15070echo "${ECHO_T}$ac_header_preproc" >&6; }
15071
15072# So? What about this header?
15073case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15074 yes:no: )
15075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15076echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15078echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15079 ac_header_preproc=yes
15080 ;;
15081 no:yes:* )
15082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15083echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15084 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15085echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15086 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15087echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15088 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15089echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15091echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15092 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15093echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15094 ( cat <<\_ASBOX
15095## ------------------------------ ##
15096## Report this to bugs@yourdomain ##
15097## ------------------------------ ##
15098_ASBOX
15099 ) | sed "s/^/$as_me: WARNING: /" >&2
15100 ;;
15101esac
15102{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15104if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15106else
15107 eval "$as_ac_Header=\$ac_header_preproc"
15108fi
15109ac_res=`eval echo '${'$as_ac_Header'}'`
15110 { echo "$as_me:$LINENO: result: $ac_res" >&5
15111echo "${ECHO_T}$ac_res" >&6; }
15112
15113fi
15114if test `eval echo '${'$as_ac_Header'}'` = yes; then
15115 cat >>confdefs.h <<_ACEOF
15116#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15117_ACEOF
15118
15119fi
15120
15121done
15122
15123
15124for ac_header in valgrind/valgrind.h
15125do
15126as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15127if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15130if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15131 echo $ECHO_N "(cached) $ECHO_C" >&6
15132fi
15133ac_res=`eval echo '${'$as_ac_Header'}'`
15134 { echo "$as_me:$LINENO: result: $ac_res" >&5
15135echo "${ECHO_T}$ac_res" >&6; }
15136else
15137 # Is the header compilable?
15138{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15139echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15140cat >conftest.$ac_ext <<_ACEOF
15141/* confdefs.h. */
15142_ACEOF
15143cat confdefs.h >>conftest.$ac_ext
15144cat >>conftest.$ac_ext <<_ACEOF
15145/* end confdefs.h. */
15146$ac_includes_default
15147#include <$ac_header>
15148_ACEOF
15149rm -f conftest.$ac_objext
15150if { (ac_try="$ac_compile"
15151case "(($ac_try" in
15152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153 *) ac_try_echo=$ac_try;;
15154esac
15155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15156 (eval "$ac_compile") 2>conftest.er1
15157 ac_status=$?
15158 grep -v '^ *+' conftest.er1 >conftest.err
15159 rm -f conftest.er1
15160 cat conftest.err >&5
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); } &&
15163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15164 { (case "(($ac_try" in
15165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15166 *) ac_try_echo=$ac_try;;
15167esac
15168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15169 (eval "$ac_try") 2>&5
15170 ac_status=$?
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); }; } &&
15173 { ac_try='test -s conftest.$ac_objext'
15174 { (case "(($ac_try" in
15175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15176 *) ac_try_echo=$ac_try;;
15177esac
15178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15179 (eval "$ac_try") 2>&5
15180 ac_status=$?
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; }; then
15183 ac_header_compiler=yes
15184else
15185 echo "$as_me: failed program was:" >&5
15186sed 's/^/| /' conftest.$ac_ext >&5
15187
15188 ac_header_compiler=no
15189fi
15190
15191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15192{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15193echo "${ECHO_T}$ac_header_compiler" >&6; }
15194
15195# Is the header present?
15196{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15197echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15198cat >conftest.$ac_ext <<_ACEOF
15199/* confdefs.h. */
15200_ACEOF
15201cat confdefs.h >>conftest.$ac_ext
15202cat >>conftest.$ac_ext <<_ACEOF
15203/* end confdefs.h. */
15204#include <$ac_header>
15205_ACEOF
15206if { (ac_try="$ac_cpp conftest.$ac_ext"
15207case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15210esac
15211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15213 ac_status=$?
15214 grep -v '^ *+' conftest.er1 >conftest.err
15215 rm -f conftest.er1
15216 cat conftest.err >&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } >/dev/null; then
15219 if test -s conftest.err; then
15220 ac_cpp_err=$ac_c_preproc_warn_flag
15221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15222 else
15223 ac_cpp_err=
15224 fi
15225else
15226 ac_cpp_err=yes
15227fi
15228if test -z "$ac_cpp_err"; then
15229 ac_header_preproc=yes
15230else
15231 echo "$as_me: failed program was:" >&5
15232sed 's/^/| /' conftest.$ac_ext >&5
15233
15234 ac_header_preproc=no
15235fi
15236
15237rm -f conftest.err conftest.$ac_ext
15238{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15239echo "${ECHO_T}$ac_header_preproc" >&6; }
15240
15241# So? What about this header?
15242case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15243 yes:no: )
15244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15245echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15247echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15248 ac_header_preproc=yes
15249 ;;
15250 no:yes:* )
15251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15252echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15254echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15256echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15258echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15260echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15262echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15263 ( cat <<\_ASBOX
15264## ------------------------------ ##
15265## Report this to bugs@yourdomain ##
15266## ------------------------------ ##
15267_ASBOX
15268 ) | sed "s/^/$as_me: WARNING: /" >&2
15269 ;;
15270esac
15271{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15273if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
15275else
15276 eval "$as_ac_Header=\$ac_header_preproc"
15277fi
15278ac_res=`eval echo '${'$as_ac_Header'}'`
15279 { echo "$as_me:$LINENO: result: $ac_res" >&5
15280echo "${ECHO_T}$ac_res" >&6; }
15281
15282fi
15283if test `eval echo '${'$as_ac_Header'}'` = yes; then
15284 cat >>confdefs.h <<_ACEOF
15285#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15286_ACEOF
15287
15288fi
15289
15290done
15291
15292
15293for ac_header in fenv.h
15294do
15295as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15296if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15300 echo $ECHO_N "(cached) $ECHO_C" >&6
15301fi
15302ac_res=`eval echo '${'$as_ac_Header'}'`
15303 { echo "$as_me:$LINENO: result: $ac_res" >&5
15304echo "${ECHO_T}$ac_res" >&6; }
15305else
15306 # Is the header compilable?
15307{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15308echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15309cat >conftest.$ac_ext <<_ACEOF
15310/* confdefs.h. */
15311_ACEOF
15312cat confdefs.h >>conftest.$ac_ext
15313cat >>conftest.$ac_ext <<_ACEOF
15314/* end confdefs.h. */
15315$ac_includes_default
15316#include <$ac_header>
15317_ACEOF
15318rm -f conftest.$ac_objext
15319if { (ac_try="$ac_compile"
15320case "(($ac_try" in
15321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322 *) ac_try_echo=$ac_try;;
15323esac
15324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15325 (eval "$ac_compile") 2>conftest.er1
15326 ac_status=$?
15327 grep -v '^ *+' conftest.er1 >conftest.err
15328 rm -f conftest.er1
15329 cat conftest.err >&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); } &&
15332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15333 { (case "(($ac_try" in
15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335 *) ac_try_echo=$ac_try;;
15336esac
15337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338 (eval "$ac_try") 2>&5
15339 ac_status=$?
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; } &&
15342 { ac_try='test -s conftest.$ac_objext'
15343 { (case "(($ac_try" in
15344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345 *) ac_try_echo=$ac_try;;
15346esac
15347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348 (eval "$ac_try") 2>&5
15349 ac_status=$?
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); }; }; then
15352 ac_header_compiler=yes
15353else
15354 echo "$as_me: failed program was:" >&5
15355sed 's/^/| /' conftest.$ac_ext >&5
15356
15357 ac_header_compiler=no
15358fi
15359
15360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15361{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15362echo "${ECHO_T}$ac_header_compiler" >&6; }
15363
15364# Is the header present?
15365{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15366echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15367cat >conftest.$ac_ext <<_ACEOF
15368/* confdefs.h. */
15369_ACEOF
15370cat confdefs.h >>conftest.$ac_ext
15371cat >>conftest.$ac_ext <<_ACEOF
15372/* end confdefs.h. */
15373#include <$ac_header>
15374_ACEOF
15375if { (ac_try="$ac_cpp conftest.$ac_ext"
15376case "(($ac_try" in
15377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378 *) ac_try_echo=$ac_try;;
15379esac
15380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15382 ac_status=$?
15383 grep -v '^ *+' conftest.er1 >conftest.err
15384 rm -f conftest.er1
15385 cat conftest.err >&5
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); } >/dev/null; then
15388 if test -s conftest.err; then
15389 ac_cpp_err=$ac_c_preproc_warn_flag
15390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15391 else
15392 ac_cpp_err=
15393 fi
15394else
15395 ac_cpp_err=yes
15396fi
15397if test -z "$ac_cpp_err"; then
15398 ac_header_preproc=yes
15399else
15400 echo "$as_me: failed program was:" >&5
15401sed 's/^/| /' conftest.$ac_ext >&5
15402
15403 ac_header_preproc=no
15404fi
15405
15406rm -f conftest.err conftest.$ac_ext
15407{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15408echo "${ECHO_T}$ac_header_preproc" >&6; }
15409
15410# So? What about this header?
15411case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15412 yes:no: )
15413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15414echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15416echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15417 ac_header_preproc=yes
15418 ;;
15419 no:yes:* )
15420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15421echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15423echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15424 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15425echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15426 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15427echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15429echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15430 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15431echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15432 ( cat <<\_ASBOX
15433## ------------------------------ ##
15434## Report this to bugs@yourdomain ##
15435## ------------------------------ ##
15436_ASBOX
15437 ) | sed "s/^/$as_me: WARNING: /" >&2
15438 ;;
15439esac
15440{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15441echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15442if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15443 echo $ECHO_N "(cached) $ECHO_C" >&6
15444else
15445 eval "$as_ac_Header=\$ac_header_preproc"
15446fi
15447ac_res=`eval echo '${'$as_ac_Header'}'`
15448 { echo "$as_me:$LINENO: result: $ac_res" >&5
15449echo "${ECHO_T}$ac_res" >&6; }
15450
15451fi
15452if test `eval echo '${'$as_ac_Header'}'` = yes; then
15453 cat >>confdefs.h <<_ACEOF
15454#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15455_ACEOF
15456
15457fi
15458
15459done
15460
15461if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15462
15463for ac_header in pthread.h
15464do
15465as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15466if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15469if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15470 echo $ECHO_N "(cached) $ECHO_C" >&6
15471fi
15472ac_res=`eval echo '${'$as_ac_Header'}'`
15473 { echo "$as_me:$LINENO: result: $ac_res" >&5
15474echo "${ECHO_T}$ac_res" >&6; }
15475else
15476 # Is the header compilable?
15477{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15478echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15479cat >conftest.$ac_ext <<_ACEOF
15480/* confdefs.h. */
15481_ACEOF
15482cat confdefs.h >>conftest.$ac_ext
15483cat >>conftest.$ac_ext <<_ACEOF
15484/* end confdefs.h. */
15485$ac_includes_default
15486#include <$ac_header>
15487_ACEOF
15488rm -f conftest.$ac_objext
15489if { (ac_try="$ac_compile"
15490case "(($ac_try" in
15491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15492 *) ac_try_echo=$ac_try;;
15493esac
15494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15495 (eval "$ac_compile") 2>conftest.er1
15496 ac_status=$?
15497 grep -v '^ *+' conftest.er1 >conftest.err
15498 rm -f conftest.er1
15499 cat conftest.err >&5
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); } &&
15502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15503 { (case "(($ac_try" in
15504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15505 *) ac_try_echo=$ac_try;;
15506esac
15507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15508 (eval "$ac_try") 2>&5
15509 ac_status=$?
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); }; } &&
15512 { ac_try='test -s conftest.$ac_objext'
15513 { (case "(($ac_try" in
15514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15515 *) ac_try_echo=$ac_try;;
15516esac
15517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15518 (eval "$ac_try") 2>&5
15519 ac_status=$?
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); }; }; then
15522 ac_header_compiler=yes
15523else
15524 echo "$as_me: failed program was:" >&5
15525sed 's/^/| /' conftest.$ac_ext >&5
15526
15527 ac_header_compiler=no
15528fi
15529
15530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15531{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15532echo "${ECHO_T}$ac_header_compiler" >&6; }
15533
15534# Is the header present?
15535{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15536echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15537cat >conftest.$ac_ext <<_ACEOF
15538/* confdefs.h. */
15539_ACEOF
15540cat confdefs.h >>conftest.$ac_ext
15541cat >>conftest.$ac_ext <<_ACEOF
15542/* end confdefs.h. */
15543#include <$ac_header>
15544_ACEOF
15545if { (ac_try="$ac_cpp conftest.$ac_ext"
15546case "(($ac_try" in
15547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548 *) ac_try_echo=$ac_try;;
15549esac
15550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15552 ac_status=$?
15553 grep -v '^ *+' conftest.er1 >conftest.err
15554 rm -f conftest.er1
15555 cat conftest.err >&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); } >/dev/null; then
15558 if test -s conftest.err; then
15559 ac_cpp_err=$ac_c_preproc_warn_flag
15560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15561 else
15562 ac_cpp_err=
15563 fi
15564else
15565 ac_cpp_err=yes
15566fi
15567if test -z "$ac_cpp_err"; then
15568 ac_header_preproc=yes
15569else
15570 echo "$as_me: failed program was:" >&5
15571sed 's/^/| /' conftest.$ac_ext >&5
15572
15573 ac_header_preproc=no
15574fi
15575
15576rm -f conftest.err conftest.$ac_ext
15577{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15578echo "${ECHO_T}$ac_header_preproc" >&6; }
15579
15580# So? What about this header?
15581case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15582 yes:no: )
15583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15584echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15586echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15587 ac_header_preproc=yes
15588 ;;
15589 no:yes:* )
15590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15591echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15593echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15595echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15597echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15599echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15601echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15602 ( cat <<\_ASBOX
15603## ------------------------------ ##
15604## Report this to bugs@yourdomain ##
15605## ------------------------------ ##
15606_ASBOX
15607 ) | sed "s/^/$as_me: WARNING: /" >&2
15608 ;;
15609esac
15610{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15612if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15613 echo $ECHO_N "(cached) $ECHO_C" >&6
15614else
15615 eval "$as_ac_Header=\$ac_header_preproc"
15616fi
15617ac_res=`eval echo '${'$as_ac_Header'}'`
15618 { echo "$as_me:$LINENO: result: $ac_res" >&5
15619echo "${ECHO_T}$ac_res" >&6; }
15620
15621fi
15622if test `eval echo '${'$as_ac_Header'}'` = yes; then
15623 cat >>confdefs.h <<_ACEOF
15624#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15625_ACEOF
15626 HAVE_PTHREAD=1
15627
15628else
15629 HAVE_PTHREAD=0
15630
15631fi
15632
15633done
15634
15635else
15636 HAVE_PTHREAD=0
15637
15638fi
15639
15640if test "$llvm_cv_enable_libffi" = "yes" ; then
15641
15642
15643for ac_header in ffi.h ffi/ffi.h
15644do
15645as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15650 echo $ECHO_N "(cached) $ECHO_C" >&6
15651fi
15652ac_res=`eval echo '${'$as_ac_Header'}'`
15653 { echo "$as_me:$LINENO: result: $ac_res" >&5
15654echo "${ECHO_T}$ac_res" >&6; }
15655else
15656 # Is the header compilable?
15657{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15658echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15659cat >conftest.$ac_ext <<_ACEOF
15660/* confdefs.h. */
15661_ACEOF
15662cat confdefs.h >>conftest.$ac_ext
15663cat >>conftest.$ac_ext <<_ACEOF
15664/* end confdefs.h. */
15665$ac_includes_default
15666#include <$ac_header>
15667_ACEOF
15668rm -f conftest.$ac_objext
15669if { (ac_try="$ac_compile"
15670case "(($ac_try" in
15671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672 *) ac_try_echo=$ac_try;;
15673esac
15674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15675 (eval "$ac_compile") 2>conftest.er1
15676 ac_status=$?
15677 grep -v '^ *+' conftest.er1 >conftest.err
15678 rm -f conftest.er1
15679 cat conftest.err >&5
15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); } &&
15682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15683 { (case "(($ac_try" in
15684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15685 *) ac_try_echo=$ac_try;;
15686esac
15687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15688 (eval "$ac_try") 2>&5
15689 ac_status=$?
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; } &&
15692 { ac_try='test -s conftest.$ac_objext'
15693 { (case "(($ac_try" in
15694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15695 *) ac_try_echo=$ac_try;;
15696esac
15697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15698 (eval "$ac_try") 2>&5
15699 ac_status=$?
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); }; }; then
15702 ac_header_compiler=yes
15703else
15704 echo "$as_me: failed program was:" >&5
15705sed 's/^/| /' conftest.$ac_ext >&5
15706
15707 ac_header_compiler=no
15708fi
15709
15710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15711{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15712echo "${ECHO_T}$ac_header_compiler" >&6; }
15713
15714# Is the header present?
15715{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15716echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15717cat >conftest.$ac_ext <<_ACEOF
15718/* confdefs.h. */
15719_ACEOF
15720cat confdefs.h >>conftest.$ac_ext
15721cat >>conftest.$ac_ext <<_ACEOF
15722/* end confdefs.h. */
15723#include <$ac_header>
15724_ACEOF
15725if { (ac_try="$ac_cpp conftest.$ac_ext"
15726case "(($ac_try" in
15727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15728 *) ac_try_echo=$ac_try;;
15729esac
15730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15732 ac_status=$?
15733 grep -v '^ *+' conftest.er1 >conftest.err
15734 rm -f conftest.er1
15735 cat conftest.err >&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } >/dev/null; then
15738 if test -s conftest.err; then
15739 ac_cpp_err=$ac_c_preproc_warn_flag
15740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15741 else
15742 ac_cpp_err=
15743 fi
15744else
15745 ac_cpp_err=yes
15746fi
15747if test -z "$ac_cpp_err"; then
15748 ac_header_preproc=yes
15749else
15750 echo "$as_me: failed program was:" >&5
15751sed 's/^/| /' conftest.$ac_ext >&5
15752
15753 ac_header_preproc=no
15754fi
15755
15756rm -f conftest.err conftest.$ac_ext
15757{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15758echo "${ECHO_T}$ac_header_preproc" >&6; }
15759
15760# So? What about this header?
15761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15762 yes:no: )
15763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15764echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15766echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15767 ac_header_preproc=yes
15768 ;;
15769 no:yes:* )
15770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15771echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15773echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15775echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15777echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15779echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15781echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15782 ( cat <<\_ASBOX
15783## ------------------------------ ##
15784## Report this to bugs@yourdomain ##
15785## ------------------------------ ##
15786_ASBOX
15787 ) | sed "s/^/$as_me: WARNING: /" >&2
15788 ;;
15789esac
15790{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15793 echo $ECHO_N "(cached) $ECHO_C" >&6
15794else
15795 eval "$as_ac_Header=\$ac_header_preproc"
15796fi
15797ac_res=`eval echo '${'$as_ac_Header'}'`
15798 { echo "$as_me:$LINENO: result: $ac_res" >&5
15799echo "${ECHO_T}$ac_res" >&6; }
15800
15801fi
15802if test `eval echo '${'$as_ac_Header'}'` = yes; then
15803 cat >>confdefs.h <<_ACEOF
15804#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15805_ACEOF
15806
15807fi
15808
15809done
15810
15811fi
15812
15813
15814for ac_header in CrashReporterClient.h
15815do
15816as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15817if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15819echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15820if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15821 echo $ECHO_N "(cached) $ECHO_C" >&6
15822fi
15823ac_res=`eval echo '${'$as_ac_Header'}'`
15824 { echo "$as_me:$LINENO: result: $ac_res" >&5
15825echo "${ECHO_T}$ac_res" >&6; }
15826else
15827 # Is the header compilable?
15828{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15829echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15830cat >conftest.$ac_ext <<_ACEOF
15831/* confdefs.h. */
15832_ACEOF
15833cat confdefs.h >>conftest.$ac_ext
15834cat >>conftest.$ac_ext <<_ACEOF
15835/* end confdefs.h. */
15836$ac_includes_default
15837#include <$ac_header>
15838_ACEOF
15839rm -f conftest.$ac_objext
15840if { (ac_try="$ac_compile"
15841case "(($ac_try" in
15842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15843 *) ac_try_echo=$ac_try;;
15844esac
15845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15846 (eval "$ac_compile") 2>conftest.er1
15847 ac_status=$?
15848 grep -v '^ *+' conftest.er1 >conftest.err
15849 rm -f conftest.er1
15850 cat conftest.err >&5
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } &&
15853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15854 { (case "(($ac_try" in
15855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15856 *) ac_try_echo=$ac_try;;
15857esac
15858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15859 (eval "$ac_try") 2>&5
15860 ac_status=$?
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; } &&
15863 { ac_try='test -s conftest.$ac_objext'
15864 { (case "(($ac_try" in
15865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866 *) ac_try_echo=$ac_try;;
15867esac
15868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15869 (eval "$ac_try") 2>&5
15870 ac_status=$?
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); }; }; then
15873 ac_header_compiler=yes
15874else
15875 echo "$as_me: failed program was:" >&5
15876sed 's/^/| /' conftest.$ac_ext >&5
15877
15878 ac_header_compiler=no
15879fi
15880
15881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15882{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15883echo "${ECHO_T}$ac_header_compiler" >&6; }
15884
15885# Is the header present?
15886{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15887echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15888cat >conftest.$ac_ext <<_ACEOF
15889/* confdefs.h. */
15890_ACEOF
15891cat confdefs.h >>conftest.$ac_ext
15892cat >>conftest.$ac_ext <<_ACEOF
15893/* end confdefs.h. */
15894#include <$ac_header>
15895_ACEOF
15896if { (ac_try="$ac_cpp conftest.$ac_ext"
15897case "(($ac_try" in
15898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15899 *) ac_try_echo=$ac_try;;
15900esac
15901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15903 ac_status=$?
15904 grep -v '^ *+' conftest.er1 >conftest.err
15905 rm -f conftest.er1
15906 cat conftest.err >&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); } >/dev/null; then
15909 if test -s conftest.err; then
15910 ac_cpp_err=$ac_c_preproc_warn_flag
15911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15912 else
15913 ac_cpp_err=
15914 fi
15915else
15916 ac_cpp_err=yes
15917fi
15918if test -z "$ac_cpp_err"; then
15919 ac_header_preproc=yes
15920else
15921 echo "$as_me: failed program was:" >&5
15922sed 's/^/| /' conftest.$ac_ext >&5
15923
15924 ac_header_preproc=no
15925fi
15926
15927rm -f conftest.err conftest.$ac_ext
15928{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15929echo "${ECHO_T}$ac_header_preproc" >&6; }
15930
15931# So? What about this header?
15932case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15933 yes:no: )
15934 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15935echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15937echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15938 ac_header_preproc=yes
15939 ;;
15940 no:yes:* )
15941 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15942echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15943 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15944echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15945 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15946echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15948echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15950echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15951 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15952echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15953 ( cat <<\_ASBOX
15954## ------------------------------ ##
15955## Report this to bugs@yourdomain ##
15956## ------------------------------ ##
15957_ASBOX
15958 ) | sed "s/^/$as_me: WARNING: /" >&2
15959 ;;
15960esac
15961{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15963if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15964 echo $ECHO_N "(cached) $ECHO_C" >&6
15965else
15966 eval "$as_ac_Header=\$ac_header_preproc"
15967fi
15968ac_res=`eval echo '${'$as_ac_Header'}'`
15969 { echo "$as_me:$LINENO: result: $ac_res" >&5
15970echo "${ECHO_T}$ac_res" >&6; }
15971
15972fi
15973if test `eval echo '${'$as_ac_Header'}'` = yes; then
15974 cat >>confdefs.h <<_ACEOF
15975#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15976_ACEOF
15977
15978fi
15979
15980done
15981
15982
15983{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15984echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15985cat >conftest.$ac_ext <<_ACEOF
15986/* confdefs.h. */
15987_ACEOF
15988cat confdefs.h >>conftest.$ac_ext
15989cat >>conftest.$ac_ext <<_ACEOF
15990/* end confdefs.h. */
15991extern const char *__crashreporter_info__;
15992 int main() {
15993 __crashreporter_info__ = "test";
15994 return 0;
15995 }
15996
15997_ACEOF
15998rm -f conftest.$ac_objext conftest$ac_exeext
15999if { (ac_try="$ac_link"
16000case "(($ac_try" in
16001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16002 *) ac_try_echo=$ac_try;;
16003esac
16004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16005 (eval "$ac_link") 2>conftest.er1
16006 ac_status=$?
16007 grep -v '^ *+' conftest.er1 >conftest.err
16008 rm -f conftest.er1
16009 cat conftest.err >&5
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); } &&
16012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16013 { (case "(($ac_try" in
16014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16015 *) ac_try_echo=$ac_try;;
16016esac
16017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16018 (eval "$ac_try") 2>&5
16019 ac_status=$?
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); }; } &&
16022 { ac_try='test -s conftest$ac_exeext'
16023 { (case "(($ac_try" in
16024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16025 *) ac_try_echo=$ac_try;;
16026esac
16027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16028 (eval "$ac_try") 2>&5
16029 ac_status=$?
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; }; then
16032 { echo "$as_me:$LINENO: result: yes" >&5
16033echo "${ECHO_T}yes" >&6; }
16034
16035cat >>confdefs.h <<\_ACEOF
16036#define HAVE_CRASHREPORTER_INFO 1
16037_ACEOF
16038
16039else
16040 echo "$as_me: failed program was:" >&5
16041sed 's/^/| /' conftest.$ac_ext >&5
16042
16043 { echo "$as_me:$LINENO: result: no" >&5
16044echo "${ECHO_T}no" >&6; }
16045
16046cat >>confdefs.h <<\_ACEOF
16047#define HAVE_CRASHREPORTER_INFO 0
16048_ACEOF
16049
16050fi
16051
16052rm -f core conftest.err conftest.$ac_objext \
16053 conftest$ac_exeext conftest.$ac_ext
16054
16055
16056
16057
16058 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16059echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16060if test "${ac_cv_huge_val_sanity+set}" = set; then
16061 echo $ECHO_N "(cached) $ECHO_C" >&6
16062else
16063
16064 ac_ext=cpp
16065ac_cpp='$CXXCPP $CPPFLAGS'
16066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16069
16070 ac_save_CXXFLAGS=$CXXFLAGS
16071 CXXFLAGS=-pedantic
16072 if test "$cross_compiling" = yes; then
16073 ac_cv_huge_val_sanity=yes
16074else
16075 cat >conftest.$ac_ext <<_ACEOF
16076/* confdefs.h. */
16077_ACEOF
16078cat confdefs.h >>conftest.$ac_ext
16079cat >>conftest.$ac_ext <<_ACEOF
16080/* end confdefs.h. */
16081#include <math.h>
16082int
16083main ()
16084{
16085double x = HUGE_VAL; return x != x;
16086 ;
16087 return 0;
16088}
16089_ACEOF
16090rm -f conftest$ac_exeext
16091if { (ac_try="$ac_link"
16092case "(($ac_try" in
16093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16094 *) ac_try_echo=$ac_try;;
16095esac
16096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16097 (eval "$ac_link") 2>&5
16098 ac_status=$?
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16101 { (case "(($ac_try" in
16102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103 *) ac_try_echo=$ac_try;;
16104esac
16105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16106 (eval "$ac_try") 2>&5
16107 ac_status=$?
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; }; then
16110 ac_cv_huge_val_sanity=yes
16111else
16112 echo "$as_me: program exited with status $ac_status" >&5
16113echo "$as_me: failed program was:" >&5
16114sed 's/^/| /' conftest.$ac_ext >&5
16115
16116( exit $ac_status )
16117ac_cv_huge_val_sanity=no
16118fi
16119rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16120fi
16121
16122
16123 CXXFLAGS=$ac_save_CXXFLAGS
16124 ac_ext=c
16125ac_cpp='$CPP $CPPFLAGS'
16126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16128ac_compiler_gnu=$ac_cv_c_compiler_gnu
16129
16130
16131fi
16132{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16133echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16134 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16135
16136
16137{ echo "$as_me:$LINENO: checking for pid_t" >&5
16138echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16139if test "${ac_cv_type_pid_t+set}" = set; then
16140 echo $ECHO_N "(cached) $ECHO_C" >&6
16141else
16142 cat >conftest.$ac_ext <<_ACEOF
16143/* confdefs.h. */
16144_ACEOF
16145cat confdefs.h >>conftest.$ac_ext
16146cat >>conftest.$ac_ext <<_ACEOF
16147/* end confdefs.h. */
16148$ac_includes_default
16149typedef pid_t ac__type_new_;
16150int
16151main ()
16152{
16153if ((ac__type_new_ *) 0)
16154 return 0;
16155if (sizeof (ac__type_new_))
16156 return 0;
16157 ;
16158 return 0;
16159}
16160_ACEOF
16161rm -f conftest.$ac_objext
16162if { (ac_try="$ac_compile"
16163case "(($ac_try" in
16164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16165 *) ac_try_echo=$ac_try;;
16166esac
16167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16168 (eval "$ac_compile") 2>conftest.er1
16169 ac_status=$?
16170 grep -v '^ *+' conftest.er1 >conftest.err
16171 rm -f conftest.er1
16172 cat conftest.err >&5
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); } &&
16175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16176 { (case "(($ac_try" in
16177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16178 *) ac_try_echo=$ac_try;;
16179esac
16180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16181 (eval "$ac_try") 2>&5
16182 ac_status=$?
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; } &&
16185 { ac_try='test -s conftest.$ac_objext'
16186 { (case "(($ac_try" in
16187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16188 *) ac_try_echo=$ac_try;;
16189esac
16190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16191 (eval "$ac_try") 2>&5
16192 ac_status=$?
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); }; }; then
16195 ac_cv_type_pid_t=yes
16196else
16197 echo "$as_me: failed program was:" >&5
16198sed 's/^/| /' conftest.$ac_ext >&5
16199
16200 ac_cv_type_pid_t=no
16201fi
16202
16203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16204fi
16205{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16206echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16207if test $ac_cv_type_pid_t = yes; then
16208 :
16209else
16210
16211cat >>confdefs.h <<_ACEOF
16212#define pid_t int
16213_ACEOF
16214
16215fi
16216
16217{ echo "$as_me:$LINENO: checking for size_t" >&5
16218echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16219if test "${ac_cv_type_size_t+set}" = set; then
16220 echo $ECHO_N "(cached) $ECHO_C" >&6
16221else
16222 cat >conftest.$ac_ext <<_ACEOF
16223/* confdefs.h. */
16224_ACEOF
16225cat confdefs.h >>conftest.$ac_ext
16226cat >>conftest.$ac_ext <<_ACEOF
16227/* end confdefs.h. */
16228$ac_includes_default
16229typedef size_t ac__type_new_;
16230int
16231main ()
16232{
16233if ((ac__type_new_ *) 0)
16234 return 0;
16235if (sizeof (ac__type_new_))
16236 return 0;
16237 ;
16238 return 0;
16239}
16240_ACEOF
16241rm -f conftest.$ac_objext
16242if { (ac_try="$ac_compile"
16243case "(($ac_try" in
16244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245 *) ac_try_echo=$ac_try;;
16246esac
16247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248 (eval "$ac_compile") 2>conftest.er1
16249 ac_status=$?
16250 grep -v '^ *+' conftest.er1 >conftest.err
16251 rm -f conftest.er1
16252 cat conftest.err >&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } &&
16255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16256 { (case "(($ac_try" in
16257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258 *) ac_try_echo=$ac_try;;
16259esac
16260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261 (eval "$ac_try") 2>&5
16262 ac_status=$?
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); }; } &&
16265 { ac_try='test -s conftest.$ac_objext'
16266 { (case "(($ac_try" in
16267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268 *) ac_try_echo=$ac_try;;
16269esac
16270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271 (eval "$ac_try") 2>&5
16272 ac_status=$?
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; }; then
16275 ac_cv_type_size_t=yes
16276else
16277 echo "$as_me: failed program was:" >&5
16278sed 's/^/| /' conftest.$ac_ext >&5
16279
16280 ac_cv_type_size_t=no
16281fi
16282
16283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16284fi
16285{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16286echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16287if test $ac_cv_type_size_t = yes; then
16288 :
16289else
16290
16291cat >>confdefs.h <<_ACEOF
16292#define size_t unsigned int
16293_ACEOF
16294
16295fi
16296
16297
16298cat >>confdefs.h <<_ACEOF
16299#define RETSIGTYPE void
16300_ACEOF
16301
16302{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16303echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16304if test "${ac_cv_struct_tm+set}" = set; then
16305 echo $ECHO_N "(cached) $ECHO_C" >&6
16306else
16307 cat >conftest.$ac_ext <<_ACEOF
16308/* confdefs.h. */
16309_ACEOF
16310cat confdefs.h >>conftest.$ac_ext
16311cat >>conftest.$ac_ext <<_ACEOF
16312/* end confdefs.h. */
16313#include <sys/types.h>
16314#include <time.h>
16315
16316int
16317main ()
16318{
16319struct tm *tp; tp->tm_sec;
16320 ;
16321 return 0;
16322}
16323_ACEOF
16324rm -f conftest.$ac_objext
16325if { (ac_try="$ac_compile"
16326case "(($ac_try" in
16327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16328 *) ac_try_echo=$ac_try;;
16329esac
16330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16331 (eval "$ac_compile") 2>conftest.er1
16332 ac_status=$?
16333 grep -v '^ *+' conftest.er1 >conftest.err
16334 rm -f conftest.er1
16335 cat conftest.err >&5
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); } &&
16338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16339 { (case "(($ac_try" in
16340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16341 *) ac_try_echo=$ac_try;;
16342esac
16343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16344 (eval "$ac_try") 2>&5
16345 ac_status=$?
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; } &&
16348 { ac_try='test -s conftest.$ac_objext'
16349 { (case "(($ac_try" in
16350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16351 *) ac_try_echo=$ac_try;;
16352esac
16353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16354 (eval "$ac_try") 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; }; then
16358 ac_cv_struct_tm=time.h
16359else
16360 echo "$as_me: failed program was:" >&5
16361sed 's/^/| /' conftest.$ac_ext >&5
16362
16363 ac_cv_struct_tm=sys/time.h
16364fi
16365
16366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16367fi
16368{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16369echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16370if test $ac_cv_struct_tm = sys/time.h; then
16371
16372cat >>confdefs.h <<\_ACEOF
16373#define TM_IN_SYS_TIME 1
16374_ACEOF
16375
16376fi
16377
16378{ echo "$as_me:$LINENO: checking for int64_t" >&5
16379echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16380if test "${ac_cv_type_int64_t+set}" = set; then
16381 echo $ECHO_N "(cached) $ECHO_C" >&6
16382else
16383 cat >conftest.$ac_ext <<_ACEOF
16384/* confdefs.h. */
16385_ACEOF
16386cat confdefs.h >>conftest.$ac_ext
16387cat >>conftest.$ac_ext <<_ACEOF
16388/* end confdefs.h. */
16389$ac_includes_default
16390typedef int64_t ac__type_new_;
16391int
16392main ()
16393{
16394if ((ac__type_new_ *) 0)
16395 return 0;
16396if (sizeof (ac__type_new_))
16397 return 0;
16398 ;
16399 return 0;
16400}
16401_ACEOF
16402rm -f conftest.$ac_objext
16403if { (ac_try="$ac_compile"
16404case "(($ac_try" in
16405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406 *) ac_try_echo=$ac_try;;
16407esac
16408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16409 (eval "$ac_compile") 2>conftest.er1
16410 ac_status=$?
16411 grep -v '^ *+' conftest.er1 >conftest.err
16412 rm -f conftest.er1
16413 cat conftest.err >&5
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); } &&
16416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16417 { (case "(($ac_try" in
16418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419 *) ac_try_echo=$ac_try;;
16420esac
16421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422 (eval "$ac_try") 2>&5
16423 ac_status=$?
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); }; } &&
16426 { ac_try='test -s conftest.$ac_objext'
16427 { (case "(($ac_try" in
16428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429 *) ac_try_echo=$ac_try;;
16430esac
16431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16432 (eval "$ac_try") 2>&5
16433 ac_status=$?
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); }; }; then
16436 ac_cv_type_int64_t=yes
16437else
16438 echo "$as_me: failed program was:" >&5
16439sed 's/^/| /' conftest.$ac_ext >&5
16440
16441 ac_cv_type_int64_t=no
16442fi
16443
16444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16445fi
16446{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16447echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16448if test $ac_cv_type_int64_t = yes; then
16449
16450cat >>confdefs.h <<_ACEOF
16451#define HAVE_INT64_T 1
16452_ACEOF
16453
16454
16455else
16456 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16457echo "$as_me: error: Type int64_t required but not found" >&2;}
16458 { (exit 1); exit 1; }; }
16459fi
16460
16461{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16462echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16463if test "${ac_cv_type_uint64_t+set}" = set; then
16464 echo $ECHO_N "(cached) $ECHO_C" >&6
16465else
16466 cat >conftest.$ac_ext <<_ACEOF
16467/* confdefs.h. */
16468_ACEOF
16469cat confdefs.h >>conftest.$ac_ext
16470cat >>conftest.$ac_ext <<_ACEOF
16471/* end confdefs.h. */
16472$ac_includes_default
16473typedef uint64_t ac__type_new_;
16474int
16475main ()
16476{
16477if ((ac__type_new_ *) 0)
16478 return 0;
16479if (sizeof (ac__type_new_))
16480 return 0;
16481 ;
16482 return 0;
16483}
16484_ACEOF
16485rm -f conftest.$ac_objext
16486if { (ac_try="$ac_compile"
16487case "(($ac_try" in
16488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16489 *) ac_try_echo=$ac_try;;
16490esac
16491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16492 (eval "$ac_compile") 2>conftest.er1
16493 ac_status=$?
16494 grep -v '^ *+' conftest.er1 >conftest.err
16495 rm -f conftest.er1
16496 cat conftest.err >&5
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); } &&
16499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16500 { (case "(($ac_try" in
16501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502 *) ac_try_echo=$ac_try;;
16503esac
16504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505 (eval "$ac_try") 2>&5
16506 ac_status=$?
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); }; } &&
16509 { ac_try='test -s conftest.$ac_objext'
16510 { (case "(($ac_try" in
16511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16512 *) ac_try_echo=$ac_try;;
16513esac
16514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16515 (eval "$ac_try") 2>&5
16516 ac_status=$?
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); }; }; then
16519 ac_cv_type_uint64_t=yes
16520else
16521 echo "$as_me: failed program was:" >&5
16522sed 's/^/| /' conftest.$ac_ext >&5
16523
16524 ac_cv_type_uint64_t=no
16525fi
16526
16527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16528fi
16529{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16530echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16531if test $ac_cv_type_uint64_t = yes; then
16532
16533cat >>confdefs.h <<_ACEOF
16534#define HAVE_UINT64_T 1
16535_ACEOF
16536
16537
16538else
16539 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16540echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16541if test "${ac_cv_type_u_int64_t+set}" = set; then
16542 echo $ECHO_N "(cached) $ECHO_C" >&6
16543else
16544 cat >conftest.$ac_ext <<_ACEOF
16545/* confdefs.h. */
16546_ACEOF
16547cat confdefs.h >>conftest.$ac_ext
16548cat >>conftest.$ac_ext <<_ACEOF
16549/* end confdefs.h. */
16550$ac_includes_default
16551typedef u_int64_t ac__type_new_;
16552int
16553main ()
16554{
16555if ((ac__type_new_ *) 0)
16556 return 0;
16557if (sizeof (ac__type_new_))
16558 return 0;
16559 ;
16560 return 0;
16561}
16562_ACEOF
16563rm -f conftest.$ac_objext
16564if { (ac_try="$ac_compile"
16565case "(($ac_try" in
16566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567 *) ac_try_echo=$ac_try;;
16568esac
16569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570 (eval "$ac_compile") 2>conftest.er1
16571 ac_status=$?
16572 grep -v '^ *+' conftest.er1 >conftest.err
16573 rm -f conftest.er1
16574 cat conftest.err >&5
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); } &&
16577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16578 { (case "(($ac_try" in
16579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580 *) ac_try_echo=$ac_try;;
16581esac
16582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583 (eval "$ac_try") 2>&5
16584 ac_status=$?
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); }; } &&
16587 { ac_try='test -s conftest.$ac_objext'
16588 { (case "(($ac_try" in
16589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16590 *) ac_try_echo=$ac_try;;
16591esac
16592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16593 (eval "$ac_try") 2>&5
16594 ac_status=$?
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); }; }; then
16597 ac_cv_type_u_int64_t=yes
16598else
16599 echo "$as_me: failed program was:" >&5
16600sed 's/^/| /' conftest.$ac_ext >&5
16601
16602 ac_cv_type_u_int64_t=no
16603fi
16604
16605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16606fi
16607{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16608echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16609if test $ac_cv_type_u_int64_t = yes; then
16610
16611cat >>confdefs.h <<_ACEOF
16612#define HAVE_U_INT64_T 1
16613_ACEOF
16614
16615
16616else
16617 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16618echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16619 { (exit 1); exit 1; }; }
16620fi
16621
16622fi
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16634do
16635as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16636{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16637echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16638if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16640else
16641 cat >conftest.$ac_ext <<_ACEOF
16642/* confdefs.h. */
16643_ACEOF
16644cat confdefs.h >>conftest.$ac_ext
16645cat >>conftest.$ac_ext <<_ACEOF
16646/* end confdefs.h. */
16647/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16649#define $ac_func innocuous_$ac_func
16650
16651/* System header to define __stub macros and hopefully few prototypes,
16652 which can conflict with char $ac_func (); below.
16653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16654 <limits.h> exists even on freestanding compilers. */
16655
16656#ifdef __STDC__
16657# include <limits.h>
16658#else
16659# include <assert.h>
16660#endif
16661
16662#undef $ac_func
16663
16664/* Override any GCC internal prototype to avoid an error.
16665 Use char because int might match the return type of a GCC
16666 builtin and then its argument prototype would still apply. */
16667#ifdef __cplusplus
16668extern "C"
16669#endif
16670char $ac_func ();
16671/* The GNU C library defines this for functions which it implements
16672 to always fail with ENOSYS. Some functions are actually named
16673 something starting with __ and the normal name is an alias. */
16674#if defined __stub_$ac_func || defined __stub___$ac_func
16675choke me
16676#endif
16677
16678int
16679main ()
16680{
16681return $ac_func ();
16682 ;
16683 return 0;
16684}
16685_ACEOF
16686rm -f conftest.$ac_objext conftest$ac_exeext
16687if { (ac_try="$ac_link"
16688case "(($ac_try" in
16689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690 *) ac_try_echo=$ac_try;;
16691esac
16692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16693 (eval "$ac_link") 2>conftest.er1
16694 ac_status=$?
16695 grep -v '^ *+' conftest.er1 >conftest.err
16696 rm -f conftest.er1
16697 cat conftest.err >&5
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); } &&
16700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16701 { (case "(($ac_try" in
16702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16703 *) ac_try_echo=$ac_try;;
16704esac
16705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16706 (eval "$ac_try") 2>&5
16707 ac_status=$?
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); }; } &&
16710 { ac_try='test -s conftest$ac_exeext'
16711 { (case "(($ac_try" in
16712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16713 *) ac_try_echo=$ac_try;;
16714esac
16715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16716 (eval "$ac_try") 2>&5
16717 ac_status=$?
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }; }; then
16720 eval "$as_ac_var=yes"
16721else
16722 echo "$as_me: failed program was:" >&5
16723sed 's/^/| /' conftest.$ac_ext >&5
16724
16725 eval "$as_ac_var=no"
16726fi
16727
16728rm -f core conftest.err conftest.$ac_objext \
16729 conftest$ac_exeext conftest.$ac_ext
16730fi
16731ac_res=`eval echo '${'$as_ac_var'}'`
16732 { echo "$as_me:$LINENO: result: $ac_res" >&5
16733echo "${ECHO_T}$ac_res" >&6; }
16734if test `eval echo '${'$as_ac_var'}'` = yes; then
16735 cat >>confdefs.h <<_ACEOF
16736#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16737_ACEOF
16738
16739fi
16740done
16741
16742
16743
16744
16745
16746for ac_func in powf fmodf strtof round
16747do
16748as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16749{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16750echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16751if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16752 echo $ECHO_N "(cached) $ECHO_C" >&6
16753else
16754 cat >conftest.$ac_ext <<_ACEOF
16755/* confdefs.h. */
16756_ACEOF
16757cat confdefs.h >>conftest.$ac_ext
16758cat >>conftest.$ac_ext <<_ACEOF
16759/* end confdefs.h. */
16760/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16762#define $ac_func innocuous_$ac_func
16763
16764/* System header to define __stub macros and hopefully few prototypes,
16765 which can conflict with char $ac_func (); below.
16766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16767 <limits.h> exists even on freestanding compilers. */
16768
16769#ifdef __STDC__
16770# include <limits.h>
16771#else
16772# include <assert.h>
16773#endif
16774
16775#undef $ac_func
16776
16777/* Override any GCC internal prototype to avoid an error.
16778 Use char because int might match the return type of a GCC
16779 builtin and then its argument prototype would still apply. */
16780#ifdef __cplusplus
16781extern "C"
16782#endif
16783char $ac_func ();
16784/* The GNU C library defines this for functions which it implements
16785 to always fail with ENOSYS. Some functions are actually named
16786 something starting with __ and the normal name is an alias. */
16787#if defined __stub_$ac_func || defined __stub___$ac_func
16788choke me
16789#endif
16790
16791int
16792main ()
16793{
16794return $ac_func ();
16795 ;
16796 return 0;
16797}
16798_ACEOF
16799rm -f conftest.$ac_objext conftest$ac_exeext
16800if { (ac_try="$ac_link"
16801case "(($ac_try" in
16802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16803 *) ac_try_echo=$ac_try;;
16804esac
16805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16806 (eval "$ac_link") 2>conftest.er1
16807 ac_status=$?
16808 grep -v '^ *+' conftest.er1 >conftest.err
16809 rm -f conftest.er1
16810 cat conftest.err >&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); } &&
16813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16814 { (case "(($ac_try" in
16815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16816 *) ac_try_echo=$ac_try;;
16817esac
16818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16819 (eval "$ac_try") 2>&5
16820 ac_status=$?
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); }; } &&
16823 { ac_try='test -s conftest$ac_exeext'
16824 { (case "(($ac_try" in
16825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826 *) ac_try_echo=$ac_try;;
16827esac
16828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16829 (eval "$ac_try") 2>&5
16830 ac_status=$?
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; }; then
16833 eval "$as_ac_var=yes"
16834else
16835 echo "$as_me: failed program was:" >&5
16836sed 's/^/| /' conftest.$ac_ext >&5
16837
16838 eval "$as_ac_var=no"
16839fi
16840
16841rm -f core conftest.err conftest.$ac_objext \
16842 conftest$ac_exeext conftest.$ac_ext
16843fi
16844ac_res=`eval echo '${'$as_ac_var'}'`
16845 { echo "$as_me:$LINENO: result: $ac_res" >&5
16846echo "${ECHO_T}$ac_res" >&6; }
16847if test `eval echo '${'$as_ac_var'}'` = yes; then
16848 cat >>confdefs.h <<_ACEOF
16849#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16850_ACEOF
16851
16852fi
16853done
16854
16855
16856
16857
16858
16859
16860for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16861do
16862as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16863{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16864echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16865if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16866 echo $ECHO_N "(cached) $ECHO_C" >&6
16867else
16868 cat >conftest.$ac_ext <<_ACEOF
16869/* confdefs.h. */
16870_ACEOF
16871cat confdefs.h >>conftest.$ac_ext
16872cat >>conftest.$ac_ext <<_ACEOF
16873/* end confdefs.h. */
16874/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16876#define $ac_func innocuous_$ac_func
16877
16878/* System header to define __stub macros and hopefully few prototypes,
16879 which can conflict with char $ac_func (); below.
16880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16881 <limits.h> exists even on freestanding compilers. */
16882
16883#ifdef __STDC__
16884# include <limits.h>
16885#else
16886# include <assert.h>
16887#endif
16888
16889#undef $ac_func
16890
16891/* Override any GCC internal prototype to avoid an error.
16892 Use char because int might match the return type of a GCC
16893 builtin and then its argument prototype would still apply. */
16894#ifdef __cplusplus
16895extern "C"
16896#endif
16897char $ac_func ();
16898/* The GNU C library defines this for functions which it implements
16899 to always fail with ENOSYS. Some functions are actually named
16900 something starting with __ and the normal name is an alias. */
16901#if defined __stub_$ac_func || defined __stub___$ac_func
16902choke me
16903#endif
16904
16905int
16906main ()
16907{
16908return $ac_func ();
16909 ;
16910 return 0;
16911}
16912_ACEOF
16913rm -f conftest.$ac_objext conftest$ac_exeext
16914if { (ac_try="$ac_link"
16915case "(($ac_try" in
16916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917 *) ac_try_echo=$ac_try;;
16918esac
16919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920 (eval "$ac_link") 2>conftest.er1
16921 ac_status=$?
16922 grep -v '^ *+' conftest.er1 >conftest.err
16923 rm -f conftest.er1
16924 cat conftest.err >&5
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); } &&
16927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16928 { (case "(($ac_try" in
16929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930 *) ac_try_echo=$ac_try;;
16931esac
16932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16933 (eval "$ac_try") 2>&5
16934 ac_status=$?
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); }; } &&
16937 { ac_try='test -s conftest$ac_exeext'
16938 { (case "(($ac_try" in
16939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16940 *) ac_try_echo=$ac_try;;
16941esac
16942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16943 (eval "$ac_try") 2>&5
16944 ac_status=$?
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; }; then
16947 eval "$as_ac_var=yes"
16948else
16949 echo "$as_me: failed program was:" >&5
16950sed 's/^/| /' conftest.$ac_ext >&5
16951
16952 eval "$as_ac_var=no"
16953fi
16954
16955rm -f core conftest.err conftest.$ac_objext \
16956 conftest$ac_exeext conftest.$ac_ext
16957fi
16958ac_res=`eval echo '${'$as_ac_var'}'`
16959 { echo "$as_me:$LINENO: result: $ac_res" >&5
16960echo "${ECHO_T}$ac_res" >&6; }
16961if test `eval echo '${'$as_ac_var'}'` = yes; then
16962 cat >>confdefs.h <<_ACEOF
16963#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16964_ACEOF
16965
16966fi
16967done
16968
16969
16970
16971
16972for ac_func in isatty mkdtemp mkstemp
16973do
16974as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16975{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16976echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16977if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16978 echo $ECHO_N "(cached) $ECHO_C" >&6
16979else
16980 cat >conftest.$ac_ext <<_ACEOF
16981/* confdefs.h. */
16982_ACEOF
16983cat confdefs.h >>conftest.$ac_ext
16984cat >>conftest.$ac_ext <<_ACEOF
16985/* end confdefs.h. */
16986/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16988#define $ac_func innocuous_$ac_func
16989
16990/* System header to define __stub macros and hopefully few prototypes,
16991 which can conflict with char $ac_func (); below.
16992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16993 <limits.h> exists even on freestanding compilers. */
16994
16995#ifdef __STDC__
16996# include <limits.h>
16997#else
16998# include <assert.h>
16999#endif
17000
17001#undef $ac_func
17002
17003/* Override any GCC internal prototype to avoid an error.
17004 Use char because int might match the return type of a GCC
17005 builtin and then its argument prototype would still apply. */
17006#ifdef __cplusplus
17007extern "C"
17008#endif
17009char $ac_func ();
17010/* The GNU C library defines this for functions which it implements
17011 to always fail with ENOSYS. Some functions are actually named
17012 something starting with __ and the normal name is an alias. */
17013#if defined __stub_$ac_func || defined __stub___$ac_func
17014choke me
17015#endif
17016
17017int
17018main ()
17019{
17020return $ac_func ();
17021 ;
17022 return 0;
17023}
17024_ACEOF
17025rm -f conftest.$ac_objext conftest$ac_exeext
17026if { (ac_try="$ac_link"
17027case "(($ac_try" in
17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029 *) ac_try_echo=$ac_try;;
17030esac
17031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032 (eval "$ac_link") 2>conftest.er1
17033 ac_status=$?
17034 grep -v '^ *+' conftest.er1 >conftest.err
17035 rm -f conftest.er1
17036 cat conftest.err >&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); } &&
17039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17040 { (case "(($ac_try" in
17041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042 *) ac_try_echo=$ac_try;;
17043esac
17044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17045 (eval "$ac_try") 2>&5
17046 ac_status=$?
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; } &&
17049 { ac_try='test -s conftest$ac_exeext'
17050 { (case "(($ac_try" in
17051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17052 *) ac_try_echo=$ac_try;;
17053esac
17054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17055 (eval "$ac_try") 2>&5
17056 ac_status=$?
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); }; }; then
17059 eval "$as_ac_var=yes"
17060else
17061 echo "$as_me: failed program was:" >&5
17062sed 's/^/| /' conftest.$ac_ext >&5
17063
17064 eval "$as_ac_var=no"
17065fi
17066
17067rm -f core conftest.err conftest.$ac_objext \
17068 conftest$ac_exeext conftest.$ac_ext
17069fi
17070ac_res=`eval echo '${'$as_ac_var'}'`
17071 { echo "$as_me:$LINENO: result: $ac_res" >&5
17072echo "${ECHO_T}$ac_res" >&6; }
17073if test `eval echo '${'$as_ac_var'}'` = yes; then
17074 cat >>confdefs.h <<_ACEOF
17075#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17076_ACEOF
17077
17078fi
17079done
17080
17081
17082
17083
17084
17085
17086
17087for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17088do
17089as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17090{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17091echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17092if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17093 echo $ECHO_N "(cached) $ECHO_C" >&6
17094else
17095 cat >conftest.$ac_ext <<_ACEOF
17096/* confdefs.h. */
17097_ACEOF
17098cat confdefs.h >>conftest.$ac_ext
17099cat >>conftest.$ac_ext <<_ACEOF
17100/* end confdefs.h. */
17101/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17103#define $ac_func innocuous_$ac_func
17104
17105/* System header to define __stub macros and hopefully few prototypes,
17106 which can conflict with char $ac_func (); below.
17107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17108 <limits.h> exists even on freestanding compilers. */
17109
17110#ifdef __STDC__
17111# include <limits.h>
17112#else
17113# include <assert.h>
17114#endif
17115
17116#undef $ac_func
17117
17118/* Override any GCC internal prototype to avoid an error.
17119 Use char because int might match the return type of a GCC
17120 builtin and then its argument prototype would still apply. */
17121#ifdef __cplusplus
17122extern "C"
17123#endif
17124char $ac_func ();
17125/* The GNU C library defines this for functions which it implements
17126 to always fail with ENOSYS. Some functions are actually named
17127 something starting with __ and the normal name is an alias. */
17128#if defined __stub_$ac_func || defined __stub___$ac_func
17129choke me
17130#endif
17131
17132int
17133main ()
17134{
17135return $ac_func ();
17136 ;
17137 return 0;
17138}
17139_ACEOF
17140rm -f conftest.$ac_objext conftest$ac_exeext
17141if { (ac_try="$ac_link"
17142case "(($ac_try" in
17143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17144 *) ac_try_echo=$ac_try;;
17145esac
17146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17147 (eval "$ac_link") 2>conftest.er1
17148 ac_status=$?
17149 grep -v '^ *+' conftest.er1 >conftest.err
17150 rm -f conftest.er1
17151 cat conftest.err >&5
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); } &&
17154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17155 { (case "(($ac_try" in
17156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157 *) ac_try_echo=$ac_try;;
17158esac
17159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160 (eval "$ac_try") 2>&5
17161 ac_status=$?
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; } &&
17164 { ac_try='test -s conftest$ac_exeext'
17165 { (case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17168esac
17169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170 (eval "$ac_try") 2>&5
17171 ac_status=$?
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; }; then
17174 eval "$as_ac_var=yes"
17175else
17176 echo "$as_me: failed program was:" >&5
17177sed 's/^/| /' conftest.$ac_ext >&5
17178
17179 eval "$as_ac_var=no"
17180fi
17181
17182rm -f core conftest.err conftest.$ac_objext \
17183 conftest$ac_exeext conftest.$ac_ext
17184fi
17185ac_res=`eval echo '${'$as_ac_var'}'`
17186 { echo "$as_me:$LINENO: result: $ac_res" >&5
17187echo "${ECHO_T}$ac_res" >&6; }
17188if test `eval echo '${'$as_ac_var'}'` = yes; then
17189 cat >>confdefs.h <<_ACEOF
17190#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17191_ACEOF
17192
17193fi
17194done
17195
17196
17197
17198
17199for ac_func in strerror strerror_r setenv
17200do
17201as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17202{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17203echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17204if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17205 echo $ECHO_N "(cached) $ECHO_C" >&6
17206else
17207 cat >conftest.$ac_ext <<_ACEOF
17208/* confdefs.h. */
17209_ACEOF
17210cat confdefs.h >>conftest.$ac_ext
17211cat >>conftest.$ac_ext <<_ACEOF
17212/* end confdefs.h. */
17213/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17215#define $ac_func innocuous_$ac_func
17216
17217/* System header to define __stub macros and hopefully few prototypes,
17218 which can conflict with char $ac_func (); below.
17219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17220 <limits.h> exists even on freestanding compilers. */
17221
17222#ifdef __STDC__
17223# include <limits.h>
17224#else
17225# include <assert.h>
17226#endif
17227
17228#undef $ac_func
17229
17230/* Override any GCC internal prototype to avoid an error.
17231 Use char because int might match the return type of a GCC
17232 builtin and then its argument prototype would still apply. */
17233#ifdef __cplusplus
17234extern "C"
17235#endif
17236char $ac_func ();
17237/* The GNU C library defines this for functions which it implements
17238 to always fail with ENOSYS. Some functions are actually named
17239 something starting with __ and the normal name is an alias. */
17240#if defined __stub_$ac_func || defined __stub___$ac_func
17241choke me
17242#endif
17243
17244int
17245main ()
17246{
17247return $ac_func ();
17248 ;
17249 return 0;
17250}
17251_ACEOF
17252rm -f conftest.$ac_objext conftest$ac_exeext
17253if { (ac_try="$ac_link"
17254case "(($ac_try" in
17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256 *) ac_try_echo=$ac_try;;
17257esac
17258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259 (eval "$ac_link") 2>conftest.er1
17260 ac_status=$?
17261 grep -v '^ *+' conftest.er1 >conftest.err
17262 rm -f conftest.er1
17263 cat conftest.err >&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } &&
17266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17267 { (case "(($ac_try" in
17268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269 *) ac_try_echo=$ac_try;;
17270esac
17271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17272 (eval "$ac_try") 2>&5
17273 ac_status=$?
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); }; } &&
17276 { ac_try='test -s conftest$ac_exeext'
17277 { (case "(($ac_try" in
17278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279 *) ac_try_echo=$ac_try;;
17280esac
17281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17282 (eval "$ac_try") 2>&5
17283 ac_status=$?
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; }; then
17286 eval "$as_ac_var=yes"
17287else
17288 echo "$as_me: failed program was:" >&5
17289sed 's/^/| /' conftest.$ac_ext >&5
17290
17291 eval "$as_ac_var=no"
17292fi
17293
17294rm -f core conftest.err conftest.$ac_objext \
17295 conftest$ac_exeext conftest.$ac_ext
17296fi
17297ac_res=`eval echo '${'$as_ac_var'}'`
17298 { echo "$as_me:$LINENO: result: $ac_res" >&5
17299echo "${ECHO_T}$ac_res" >&6; }
17300if test `eval echo '${'$as_ac_var'}'` = yes; then
17301 cat >>confdefs.h <<_ACEOF
17302#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17303_ACEOF
17304
17305fi
17306done
17307
17308
17309
17310
17311
17312for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17313do
17314as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17315{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17316echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17317if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17318 echo $ECHO_N "(cached) $ECHO_C" >&6
17319else
17320 cat >conftest.$ac_ext <<_ACEOF
17321/* confdefs.h. */
17322_ACEOF
17323cat confdefs.h >>conftest.$ac_ext
17324cat >>conftest.$ac_ext <<_ACEOF
17325/* end confdefs.h. */
17326/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17328#define $ac_func innocuous_$ac_func
17329
17330/* System header to define __stub macros and hopefully few prototypes,
17331 which can conflict with char $ac_func (); below.
17332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17333 <limits.h> exists even on freestanding compilers. */
17334
17335#ifdef __STDC__
17336# include <limits.h>
17337#else
17338# include <assert.h>
17339#endif
17340
17341#undef $ac_func
17342
17343/* Override any GCC internal prototype to avoid an error.
17344 Use char because int might match the return type of a GCC
17345 builtin and then its argument prototype would still apply. */
17346#ifdef __cplusplus
17347extern "C"
17348#endif
17349char $ac_func ();
17350/* The GNU C library defines this for functions which it implements
17351 to always fail with ENOSYS. Some functions are actually named
17352 something starting with __ and the normal name is an alias. */
17353#if defined __stub_$ac_func || defined __stub___$ac_func
17354choke me
17355#endif
17356
17357int
17358main ()
17359{
17360return $ac_func ();
17361 ;
17362 return 0;
17363}
17364_ACEOF
17365rm -f conftest.$ac_objext conftest$ac_exeext
17366if { (ac_try="$ac_link"
17367case "(($ac_try" in
17368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17369 *) ac_try_echo=$ac_try;;
17370esac
17371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17372 (eval "$ac_link") 2>conftest.er1
17373 ac_status=$?
17374 grep -v '^ *+' conftest.er1 >conftest.err
17375 rm -f conftest.er1
17376 cat conftest.err >&5
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); } &&
17379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17380 { (case "(($ac_try" in
17381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17382 *) ac_try_echo=$ac_try;;
17383esac
17384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17385 (eval "$ac_try") 2>&5
17386 ac_status=$?
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); }; } &&
17389 { ac_try='test -s conftest$ac_exeext'
17390 { (case "(($ac_try" in
17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392 *) ac_try_echo=$ac_try;;
17393esac
17394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395 (eval "$ac_try") 2>&5
17396 ac_status=$?
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; }; then
17399 eval "$as_ac_var=yes"
17400else
17401 echo "$as_me: failed program was:" >&5
17402sed 's/^/| /' conftest.$ac_ext >&5
17403
17404 eval "$as_ac_var=no"
17405fi
17406
17407rm -f core conftest.err conftest.$ac_objext \
17408 conftest$ac_exeext conftest.$ac_ext
17409fi
17410ac_res=`eval echo '${'$as_ac_var'}'`
17411 { echo "$as_me:$LINENO: result: $ac_res" >&5
17412echo "${ECHO_T}$ac_res" >&6; }
17413if test `eval echo '${'$as_ac_var'}'` = yes; then
17414 cat >>confdefs.h <<_ACEOF
17415#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17416_ACEOF
17417
17418fi
17419done
17420
17421
17422
17423
17424
17425
17426for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17427do
17428as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17429{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17430echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17431if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17432 echo $ECHO_N "(cached) $ECHO_C" >&6
17433else
17434 cat >conftest.$ac_ext <<_ACEOF
17435/* confdefs.h. */
17436_ACEOF
17437cat confdefs.h >>conftest.$ac_ext
17438cat >>conftest.$ac_ext <<_ACEOF
17439/* end confdefs.h. */
17440/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17442#define $ac_func innocuous_$ac_func
17443
17444/* System header to define __stub macros and hopefully few prototypes,
17445 which can conflict with char $ac_func (); below.
17446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17447 <limits.h> exists even on freestanding compilers. */
17448
17449#ifdef __STDC__
17450# include <limits.h>
17451#else
17452# include <assert.h>
17453#endif
17454
17455#undef $ac_func
17456
17457/* Override any GCC internal prototype to avoid an error.
17458 Use char because int might match the return type of a GCC
17459 builtin and then its argument prototype would still apply. */
17460#ifdef __cplusplus
17461extern "C"
17462#endif
17463char $ac_func ();
17464/* The GNU C library defines this for functions which it implements
17465 to always fail with ENOSYS. Some functions are actually named
17466 something starting with __ and the normal name is an alias. */
17467#if defined __stub_$ac_func || defined __stub___$ac_func
17468choke me
17469#endif
17470
17471int
17472main ()
17473{
17474return $ac_func ();
17475 ;
17476 return 0;
17477}
17478_ACEOF
17479rm -f conftest.$ac_objext conftest$ac_exeext
17480if { (ac_try="$ac_link"
17481case "(($ac_try" in
17482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17483 *) ac_try_echo=$ac_try;;
17484esac
17485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17486 (eval "$ac_link") 2>conftest.er1
17487 ac_status=$?
17488 grep -v '^ *+' conftest.er1 >conftest.err
17489 rm -f conftest.er1
17490 cat conftest.err >&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); } &&
17493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17494 { (case "(($ac_try" in
17495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17496 *) ac_try_echo=$ac_try;;
17497esac
17498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17499 (eval "$ac_try") 2>&5
17500 ac_status=$?
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; } &&
17503 { ac_try='test -s conftest$ac_exeext'
17504 { (case "(($ac_try" in
17505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17506 *) ac_try_echo=$ac_try;;
17507esac
17508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17509 (eval "$ac_try") 2>&5
17510 ac_status=$?
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; }; then
17513 eval "$as_ac_var=yes"
17514else
17515 echo "$as_me: failed program was:" >&5
17516sed 's/^/| /' conftest.$ac_ext >&5
17517
17518 eval "$as_ac_var=no"
17519fi
17520
17521rm -f core conftest.err conftest.$ac_objext \
17522 conftest$ac_exeext conftest.$ac_ext
17523fi
17524ac_res=`eval echo '${'$as_ac_var'}'`
17525 { echo "$as_me:$LINENO: result: $ac_res" >&5
17526echo "${ECHO_T}$ac_res" >&6; }
17527if test `eval echo '${'$as_ac_var'}'` = yes; then
17528 cat >>confdefs.h <<_ACEOF
17529#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17530_ACEOF
17531
17532fi
17533done
17534
17535{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17536echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17537if test "${llvm_cv_c_printf_a+set}" = set; then
17538 echo $ECHO_N "(cached) $ECHO_C" >&6
17539else
17540 ac_ext=c
17541ac_cpp='$CPP $CPPFLAGS'
17542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17544ac_compiler_gnu=$ac_cv_c_compiler_gnu
17545
17546 if test "$cross_compiling" = yes; then
17547 llvmac_cv_c_printf_a=no
17548else
17549 cat >conftest.$ac_ext <<_ACEOF
17550
17551 /* confdefs.h. */
17552_ACEOF
17553cat confdefs.h >>conftest.$ac_ext
17554cat >>conftest.$ac_ext <<_ACEOF
17555/* end confdefs.h. */
17556
17557#include <stdio.h>
17558#include <stdlib.h>
17559
17560int
17561main ()
17562{
17563
17564volatile double A, B;
17565char Buffer[100];
17566A = 1;
17567A /= 10.0;
17568sprintf(Buffer, "%a", A);
17569B = atof(Buffer);
17570if (A != B)
17571 return (1);
17572if (A != 0x1.999999999999ap-4)
17573 return (1);
17574return (0);
17575 ;
17576 return 0;
17577}
17578_ACEOF
17579rm -f conftest$ac_exeext
17580if { (ac_try="$ac_link"
17581case "(($ac_try" in
17582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583 *) ac_try_echo=$ac_try;;
17584esac
17585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586 (eval "$ac_link") 2>&5
17587 ac_status=$?
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17590 { (case "(($ac_try" in
17591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17592 *) ac_try_echo=$ac_try;;
17593esac
17594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17595 (eval "$ac_try") 2>&5
17596 ac_status=$?
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; }; then
17599 llvm_cv_c_printf_a=yes
17600else
17601 echo "$as_me: program exited with status $ac_status" >&5
17602echo "$as_me: failed program was:" >&5
17603sed 's/^/| /' conftest.$ac_ext >&5
17604
17605( exit $ac_status )
17606llvmac_cv_c_printf_a=no
17607fi
17608rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17609fi
17610
17611
17612 ac_ext=c
17613ac_cpp='$CPP $CPPFLAGS'
17614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17616ac_compiler_gnu=$ac_cv_c_compiler_gnu
17617
17618fi
17619{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17620echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17621 if test "$llvm_cv_c_printf_a" = "yes"; then
17622
17623cat >>confdefs.h <<\_ACEOF
17624#define HAVE_PRINTF_A 1
17625_ACEOF
17626
17627 fi
17628
17629
17630{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17631echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17632if test "${ac_cv_func_rand48+set}" = set; then
17633 echo $ECHO_N "(cached) $ECHO_C" >&6
17634else
17635 ac_ext=cpp
17636ac_cpp='$CXXCPP $CPPFLAGS'
17637ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17638ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17639ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17640
17641 cat >conftest.$ac_ext <<_ACEOF
17642/* confdefs.h. */
17643_ACEOF
17644cat confdefs.h >>conftest.$ac_ext
17645cat >>conftest.$ac_ext <<_ACEOF
17646/* end confdefs.h. */
17647#include <stdlib.h>
17648int
17649main ()
17650{
17651srand48(0);lrand48();drand48();
17652 ;
17653 return 0;
17654}
17655_ACEOF
17656rm -f conftest.$ac_objext
17657if { (ac_try="$ac_compile"
17658case "(($ac_try" in
17659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660 *) ac_try_echo=$ac_try;;
17661esac
17662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663 (eval "$ac_compile") 2>conftest.er1
17664 ac_status=$?
17665 grep -v '^ *+' conftest.er1 >conftest.err
17666 rm -f conftest.er1
17667 cat conftest.err >&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); } &&
17670 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17671 { (case "(($ac_try" in
17672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673 *) ac_try_echo=$ac_try;;
17674esac
17675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17676 (eval "$ac_try") 2>&5
17677 ac_status=$?
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); }; } &&
17680 { ac_try='test -s conftest.$ac_objext'
17681 { (case "(($ac_try" in
17682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17683 *) ac_try_echo=$ac_try;;
17684esac
17685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17686 (eval "$ac_try") 2>&5
17687 ac_status=$?
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690 ac_cv_func_rand48=yes
17691else
17692 echo "$as_me: failed program was:" >&5
17693sed 's/^/| /' conftest.$ac_ext >&5
17694
17695 ac_cv_func_rand48=no
17696fi
17697
17698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17699 ac_ext=c
17700ac_cpp='$CPP $CPPFLAGS'
17701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17703ac_compiler_gnu=$ac_cv_c_compiler_gnu
17704
17705fi
17706{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17707echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17708
17709if test "$ac_cv_func_rand48" = "yes" ; then
17710
17711cat >>confdefs.h <<\_ACEOF
17712#define HAVE_RAND48 1
17713_ACEOF
17714
17715fi
17716
17717
17718{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17719echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17720if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17721 echo $ECHO_N "(cached) $ECHO_C" >&6
17722else
17723 cat >conftest.$ac_ext <<_ACEOF
17724/* confdefs.h. */
17725_ACEOF
17726cat confdefs.h >>conftest.$ac_ext
17727cat >>conftest.$ac_ext <<_ACEOF
17728/* end confdefs.h. */
17729$ac_includes_default
17730int
17731main ()
17732{
17733#ifndef strerror_s
17734 char *p = (char *) strerror_s;
17735 return !p;
17736#endif
17737
17738 ;
17739 return 0;
17740}
17741_ACEOF
17742rm -f conftest.$ac_objext
17743if { (ac_try="$ac_compile"
17744case "(($ac_try" in
17745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17746 *) ac_try_echo=$ac_try;;
17747esac
17748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17749 (eval "$ac_compile") 2>conftest.er1
17750 ac_status=$?
17751 grep -v '^ *+' conftest.er1 >conftest.err
17752 rm -f conftest.er1
17753 cat conftest.err >&5
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); } &&
17756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17757 { (case "(($ac_try" in
17758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759 *) ac_try_echo=$ac_try;;
17760esac
17761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762 (eval "$ac_try") 2>&5
17763 ac_status=$?
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; } &&
17766 { ac_try='test -s conftest.$ac_objext'
17767 { (case "(($ac_try" in
17768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17769 *) ac_try_echo=$ac_try;;
17770esac
17771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17772 (eval "$ac_try") 2>&5
17773 ac_status=$?
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; }; then
17776 ac_cv_have_decl_strerror_s=yes
17777else
17778 echo "$as_me: failed program was:" >&5
17779sed 's/^/| /' conftest.$ac_ext >&5
17780
17781 ac_cv_have_decl_strerror_s=no
17782fi
17783
17784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17785fi
17786{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17787echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17788if test $ac_cv_have_decl_strerror_s = yes; then
17789
17790cat >>confdefs.h <<_ACEOF
17791#define HAVE_DECL_STRERROR_S 1
17792_ACEOF
17793
17794
17795else
17796 cat >>confdefs.h <<_ACEOF
17797#define HAVE_DECL_STRERROR_S 0
17798_ACEOF
17799
17800
17801fi
17802
17803
17804
17805if test "$llvm_cv_os_type" = "MingW" ; then
17806 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17807echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17808if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17809 echo $ECHO_N "(cached) $ECHO_C" >&6
17810else
17811 ac_check_lib_save_LIBS=$LIBS
17812LIBS="-lgcc $LIBS"
17813cat >conftest.$ac_ext <<_ACEOF
17814/* confdefs.h. */
17815_ACEOF
17816cat confdefs.h >>conftest.$ac_ext
17817cat >>conftest.$ac_ext <<_ACEOF
17818/* end confdefs.h. */
17819
17820/* Override any GCC internal prototype to avoid an error.
17821 Use char because int might match the return type of a GCC
17822 builtin and then its argument prototype would still apply. */
17823#ifdef __cplusplus
17824extern "C"
17825#endif
17826char _alloca ();
17827int
17828main ()
17829{
17830return _alloca ();
17831 ;
17832 return 0;
17833}
17834_ACEOF
17835rm -f conftest.$ac_objext conftest$ac_exeext
17836if { (ac_try="$ac_link"
17837case "(($ac_try" in
17838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839 *) ac_try_echo=$ac_try;;
17840esac
17841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17842 (eval "$ac_link") 2>conftest.er1
17843 ac_status=$?
17844 grep -v '^ *+' conftest.er1 >conftest.err
17845 rm -f conftest.er1
17846 cat conftest.err >&5
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); } &&
17849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17850 { (case "(($ac_try" in
17851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17852 *) ac_try_echo=$ac_try;;
17853esac
17854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17855 (eval "$ac_try") 2>&5
17856 ac_status=$?
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); }; } &&
17859 { ac_try='test -s conftest$ac_exeext'
17860 { (case "(($ac_try" in
17861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862 *) ac_try_echo=$ac_try;;
17863esac
17864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865 (eval "$ac_try") 2>&5
17866 ac_status=$?
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; }; then
17869 ac_cv_lib_gcc__alloca=yes
17870else
17871 echo "$as_me: failed program was:" >&5
17872sed 's/^/| /' conftest.$ac_ext >&5
17873
17874 ac_cv_lib_gcc__alloca=no
17875fi
17876
17877rm -f core conftest.err conftest.$ac_objext \
17878 conftest$ac_exeext conftest.$ac_ext
17879LIBS=$ac_check_lib_save_LIBS
17880fi
17881{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17882echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17883if test $ac_cv_lib_gcc__alloca = yes; then
17884
17885cat >>confdefs.h <<\_ACEOF
17886#define HAVE__ALLOCA 1
17887_ACEOF
17888
17889fi
17890
17891 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17892echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17893if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17894 echo $ECHO_N "(cached) $ECHO_C" >&6
17895else
17896 ac_check_lib_save_LIBS=$LIBS
17897LIBS="-lgcc $LIBS"
17898cat >conftest.$ac_ext <<_ACEOF
17899/* confdefs.h. */
17900_ACEOF
17901cat confdefs.h >>conftest.$ac_ext
17902cat >>conftest.$ac_ext <<_ACEOF
17903/* end confdefs.h. */
17904
17905/* Override any GCC internal prototype to avoid an error.
17906 Use char because int might match the return type of a GCC
17907 builtin and then its argument prototype would still apply. */
17908#ifdef __cplusplus
17909extern "C"
17910#endif
17911char __alloca ();
17912int
17913main ()
17914{
17915return __alloca ();
17916 ;
17917 return 0;
17918}
17919_ACEOF
17920rm -f conftest.$ac_objext conftest$ac_exeext
17921if { (ac_try="$ac_link"
17922case "(($ac_try" in
17923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17924 *) ac_try_echo=$ac_try;;
17925esac
17926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17927 (eval "$ac_link") 2>conftest.er1
17928 ac_status=$?
17929 grep -v '^ *+' conftest.er1 >conftest.err
17930 rm -f conftest.er1
17931 cat conftest.err >&5
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); } &&
17934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17935 { (case "(($ac_try" in
17936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937 *) ac_try_echo=$ac_try;;
17938esac
17939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940 (eval "$ac_try") 2>&5
17941 ac_status=$?
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; } &&
17944 { ac_try='test -s conftest$ac_exeext'
17945 { (case "(($ac_try" in
17946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17947 *) ac_try_echo=$ac_try;;
17948esac
17949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17950 (eval "$ac_try") 2>&5
17951 ac_status=$?
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; }; then
17954 ac_cv_lib_gcc___alloca=yes
17955else
17956 echo "$as_me: failed program was:" >&5
17957sed 's/^/| /' conftest.$ac_ext >&5
17958
17959 ac_cv_lib_gcc___alloca=no
17960fi
17961
17962rm -f core conftest.err conftest.$ac_objext \
17963 conftest$ac_exeext conftest.$ac_ext
17964LIBS=$ac_check_lib_save_LIBS
17965fi
17966{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17967echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17968if test $ac_cv_lib_gcc___alloca = yes; then
17969
17970cat >>confdefs.h <<\_ACEOF
17971#define HAVE___ALLOCA 1
17972_ACEOF
17973
17974fi
17975
17976 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17977echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17978if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17979 echo $ECHO_N "(cached) $ECHO_C" >&6
17980else
17981 ac_check_lib_save_LIBS=$LIBS
17982LIBS="-lgcc $LIBS"
17983cat >conftest.$ac_ext <<_ACEOF
17984/* confdefs.h. */
17985_ACEOF
17986cat confdefs.h >>conftest.$ac_ext
17987cat >>conftest.$ac_ext <<_ACEOF
17988/* end confdefs.h. */
17989
17990/* Override any GCC internal prototype to avoid an error.
17991 Use char because int might match the return type of a GCC
17992 builtin and then its argument prototype would still apply. */
17993#ifdef __cplusplus
17994extern "C"
17995#endif
17996char __chkstk ();
17997int
17998main ()
17999{
18000return __chkstk ();
18001 ;
18002 return 0;
18003}
18004_ACEOF
18005rm -f conftest.$ac_objext conftest$ac_exeext
18006if { (ac_try="$ac_link"
18007case "(($ac_try" in
18008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18009 *) ac_try_echo=$ac_try;;
18010esac
18011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18012 (eval "$ac_link") 2>conftest.er1
18013 ac_status=$?
18014 grep -v '^ *+' conftest.er1 >conftest.err
18015 rm -f conftest.er1
18016 cat conftest.err >&5
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); } &&
18019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18020 { (case "(($ac_try" in
18021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18022 *) ac_try_echo=$ac_try;;
18023esac
18024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18025 (eval "$ac_try") 2>&5
18026 ac_status=$?
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); }; } &&
18029 { ac_try='test -s conftest$ac_exeext'
18030 { (case "(($ac_try" in
18031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18032 *) ac_try_echo=$ac_try;;
18033esac
18034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18035 (eval "$ac_try") 2>&5
18036 ac_status=$?
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); }; }; then
18039 ac_cv_lib_gcc___chkstk=yes
18040else
18041 echo "$as_me: failed program was:" >&5
18042sed 's/^/| /' conftest.$ac_ext >&5
18043
18044 ac_cv_lib_gcc___chkstk=no
18045fi
18046
18047rm -f core conftest.err conftest.$ac_objext \
18048 conftest$ac_exeext conftest.$ac_ext
18049LIBS=$ac_check_lib_save_LIBS
18050fi
18051{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18052echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18053if test $ac_cv_lib_gcc___chkstk = yes; then
18054
18055cat >>confdefs.h <<\_ACEOF
18056#define HAVE___CHKSTK 1
18057_ACEOF
18058
18059fi
18060
18061 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18062echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18063if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18064 echo $ECHO_N "(cached) $ECHO_C" >&6
18065else
18066 ac_check_lib_save_LIBS=$LIBS
18067LIBS="-lgcc $LIBS"
18068cat >conftest.$ac_ext <<_ACEOF
18069/* confdefs.h. */
18070_ACEOF
18071cat confdefs.h >>conftest.$ac_ext
18072cat >>conftest.$ac_ext <<_ACEOF
18073/* end confdefs.h. */
18074
18075/* Override any GCC internal prototype to avoid an error.
18076 Use char because int might match the return type of a GCC
18077 builtin and then its argument prototype would still apply. */
18078#ifdef __cplusplus
18079extern "C"
18080#endif
18081char ___chkstk ();
18082int
18083main ()
18084{
18085return ___chkstk ();
18086 ;
18087 return 0;
18088}
18089_ACEOF
18090rm -f conftest.$ac_objext conftest$ac_exeext
18091if { (ac_try="$ac_link"
18092case "(($ac_try" in
18093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18094 *) ac_try_echo=$ac_try;;
18095esac
18096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18097 (eval "$ac_link") 2>conftest.er1
18098 ac_status=$?
18099 grep -v '^ *+' conftest.er1 >conftest.err
18100 rm -f conftest.er1
18101 cat conftest.err >&5
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); } &&
18104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18105 { (case "(($ac_try" in
18106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107 *) ac_try_echo=$ac_try;;
18108esac
18109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18110 (eval "$ac_try") 2>&5
18111 ac_status=$?
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); }; } &&
18114 { ac_try='test -s conftest$ac_exeext'
18115 { (case "(($ac_try" in
18116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18117 *) ac_try_echo=$ac_try;;
18118esac
18119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18120 (eval "$ac_try") 2>&5
18121 ac_status=$?
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); }; }; then
18124 ac_cv_lib_gcc____chkstk=yes
18125else
18126 echo "$as_me: failed program was:" >&5
18127sed 's/^/| /' conftest.$ac_ext >&5
18128
18129 ac_cv_lib_gcc____chkstk=no
18130fi
18131
18132rm -f core conftest.err conftest.$ac_objext \
18133 conftest$ac_exeext conftest.$ac_ext
18134LIBS=$ac_check_lib_save_LIBS
18135fi
18136{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18137echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18138if test $ac_cv_lib_gcc____chkstk = yes; then
18139
18140cat >>confdefs.h <<\_ACEOF
18141#define HAVE____CHKSTK 1
18142_ACEOF
18143
18144fi
18145
18146
18147 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18148echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18149if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18150 echo $ECHO_N "(cached) $ECHO_C" >&6
18151else
18152 ac_check_lib_save_LIBS=$LIBS
18153LIBS="-lgcc $LIBS"
18154cat >conftest.$ac_ext <<_ACEOF
18155/* confdefs.h. */
18156_ACEOF
18157cat confdefs.h >>conftest.$ac_ext
18158cat >>conftest.$ac_ext <<_ACEOF
18159/* end confdefs.h. */
18160
18161/* Override any GCC internal prototype to avoid an error.
18162 Use char because int might match the return type of a GCC
18163 builtin and then its argument prototype would still apply. */
18164#ifdef __cplusplus
18165extern "C"
18166#endif
18167char __ashldi3 ();
18168int
18169main ()
18170{
18171return __ashldi3 ();
18172 ;
18173 return 0;
18174}
18175_ACEOF
18176rm -f conftest.$ac_objext conftest$ac_exeext
18177if { (ac_try="$ac_link"
18178case "(($ac_try" in
18179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180 *) ac_try_echo=$ac_try;;
18181esac
18182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18183 (eval "$ac_link") 2>conftest.er1
18184 ac_status=$?
18185 grep -v '^ *+' conftest.er1 >conftest.err
18186 rm -f conftest.er1
18187 cat conftest.err >&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); } &&
18190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18191 { (case "(($ac_try" in
18192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18193 *) ac_try_echo=$ac_try;;
18194esac
18195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18196 (eval "$ac_try") 2>&5
18197 ac_status=$?
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); }; } &&
18200 { ac_try='test -s conftest$ac_exeext'
18201 { (case "(($ac_try" in
18202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18203 *) ac_try_echo=$ac_try;;
18204esac
18205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18206 (eval "$ac_try") 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; }; then
18210 ac_cv_lib_gcc___ashldi3=yes
18211else
18212 echo "$as_me: failed program was:" >&5
18213sed 's/^/| /' conftest.$ac_ext >&5
18214
18215 ac_cv_lib_gcc___ashldi3=no
18216fi
18217
18218rm -f core conftest.err conftest.$ac_objext \
18219 conftest$ac_exeext conftest.$ac_ext
18220LIBS=$ac_check_lib_save_LIBS
18221fi
18222{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18223echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18224if test $ac_cv_lib_gcc___ashldi3 = yes; then
18225
18226cat >>confdefs.h <<\_ACEOF
18227#define HAVE___ASHLDI3 1
18228_ACEOF
18229
18230fi
18231
18232 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18233echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18234if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18235 echo $ECHO_N "(cached) $ECHO_C" >&6
18236else
18237 ac_check_lib_save_LIBS=$LIBS
18238LIBS="-lgcc $LIBS"
18239cat >conftest.$ac_ext <<_ACEOF
18240/* confdefs.h. */
18241_ACEOF
18242cat confdefs.h >>conftest.$ac_ext
18243cat >>conftest.$ac_ext <<_ACEOF
18244/* end confdefs.h. */
18245
18246/* Override any GCC internal prototype to avoid an error.
18247 Use char because int might match the return type of a GCC
18248 builtin and then its argument prototype would still apply. */
18249#ifdef __cplusplus
18250extern "C"
18251#endif
18252char __ashrdi3 ();
18253int
18254main ()
18255{
18256return __ashrdi3 ();
18257 ;
18258 return 0;
18259}
18260_ACEOF
18261rm -f conftest.$ac_objext conftest$ac_exeext
18262if { (ac_try="$ac_link"
18263case "(($ac_try" in
18264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18265 *) ac_try_echo=$ac_try;;
18266esac
18267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18268 (eval "$ac_link") 2>conftest.er1
18269 ac_status=$?
18270 grep -v '^ *+' conftest.er1 >conftest.err
18271 rm -f conftest.er1
18272 cat conftest.err >&5
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); } &&
18275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18276 { (case "(($ac_try" in
18277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18278 *) ac_try_echo=$ac_try;;
18279esac
18280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18281 (eval "$ac_try") 2>&5
18282 ac_status=$?
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); }; } &&
18285 { ac_try='test -s conftest$ac_exeext'
18286 { (case "(($ac_try" in
18287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288 *) ac_try_echo=$ac_try;;
18289esac
18290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18291 (eval "$ac_try") 2>&5
18292 ac_status=$?
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); }; }; then
18295 ac_cv_lib_gcc___ashrdi3=yes
18296else
18297 echo "$as_me: failed program was:" >&5
18298sed 's/^/| /' conftest.$ac_ext >&5
18299
18300 ac_cv_lib_gcc___ashrdi3=no
18301fi
18302
18303rm -f core conftest.err conftest.$ac_objext \
18304 conftest$ac_exeext conftest.$ac_ext
18305LIBS=$ac_check_lib_save_LIBS
18306fi
18307{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18308echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18309if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18310
18311cat >>confdefs.h <<\_ACEOF
18312#define HAVE___ASHRDI3 1
18313_ACEOF
18314
18315fi
18316
18317 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18318echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18319if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18320 echo $ECHO_N "(cached) $ECHO_C" >&6
18321else
18322 ac_check_lib_save_LIBS=$LIBS
18323LIBS="-lgcc $LIBS"
18324cat >conftest.$ac_ext <<_ACEOF
18325/* confdefs.h. */
18326_ACEOF
18327cat confdefs.h >>conftest.$ac_ext
18328cat >>conftest.$ac_ext <<_ACEOF
18329/* end confdefs.h. */
18330
18331/* Override any GCC internal prototype to avoid an error.
18332 Use char because int might match the return type of a GCC
18333 builtin and then its argument prototype would still apply. */
18334#ifdef __cplusplus
18335extern "C"
18336#endif
18337char __divdi3 ();
18338int
18339main ()
18340{
18341return __divdi3 ();
18342 ;
18343 return 0;
18344}
18345_ACEOF
18346rm -f conftest.$ac_objext conftest$ac_exeext
18347if { (ac_try="$ac_link"
18348case "(($ac_try" in
18349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18350 *) ac_try_echo=$ac_try;;
18351esac
18352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18353 (eval "$ac_link") 2>conftest.er1
18354 ac_status=$?
18355 grep -v '^ *+' conftest.er1 >conftest.err
18356 rm -f conftest.er1
18357 cat conftest.err >&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); } &&
18360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18361 { (case "(($ac_try" in
18362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18363 *) ac_try_echo=$ac_try;;
18364esac
18365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18366 (eval "$ac_try") 2>&5
18367 ac_status=$?
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); }; } &&
18370 { ac_try='test -s conftest$ac_exeext'
18371 { (case "(($ac_try" in
18372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18373 *) ac_try_echo=$ac_try;;
18374esac
18375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18376 (eval "$ac_try") 2>&5
18377 ac_status=$?
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); }; }; then
18380 ac_cv_lib_gcc___divdi3=yes
18381else
18382 echo "$as_me: failed program was:" >&5
18383sed 's/^/| /' conftest.$ac_ext >&5
18384
18385 ac_cv_lib_gcc___divdi3=no
18386fi
18387
18388rm -f core conftest.err conftest.$ac_objext \
18389 conftest$ac_exeext conftest.$ac_ext
18390LIBS=$ac_check_lib_save_LIBS
18391fi
18392{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18393echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18394if test $ac_cv_lib_gcc___divdi3 = yes; then
18395
18396cat >>confdefs.h <<\_ACEOF
18397#define HAVE___DIVDI3 1
18398_ACEOF
18399
18400fi
18401
18402 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18403echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18404if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18405 echo $ECHO_N "(cached) $ECHO_C" >&6
18406else
18407 ac_check_lib_save_LIBS=$LIBS
18408LIBS="-lgcc $LIBS"
18409cat >conftest.$ac_ext <<_ACEOF
18410/* confdefs.h. */
18411_ACEOF
18412cat confdefs.h >>conftest.$ac_ext
18413cat >>conftest.$ac_ext <<_ACEOF
18414/* end confdefs.h. */
18415
18416/* Override any GCC internal prototype to avoid an error.
18417 Use char because int might match the return type of a GCC
18418 builtin and then its argument prototype would still apply. */
18419#ifdef __cplusplus
18420extern "C"
18421#endif
18422char __fixdfdi ();
18423int
18424main ()
18425{
18426return __fixdfdi ();
18427 ;
18428 return 0;
18429}
18430_ACEOF
18431rm -f conftest.$ac_objext conftest$ac_exeext
18432if { (ac_try="$ac_link"
18433case "(($ac_try" in
18434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18435 *) ac_try_echo=$ac_try;;
18436esac
18437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18438 (eval "$ac_link") 2>conftest.er1
18439 ac_status=$?
18440 grep -v '^ *+' conftest.er1 >conftest.err
18441 rm -f conftest.er1
18442 cat conftest.err >&5
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); } &&
18445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18446 { (case "(($ac_try" in
18447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18448 *) ac_try_echo=$ac_try;;
18449esac
18450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18451 (eval "$ac_try") 2>&5
18452 ac_status=$?
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); }; } &&
18455 { ac_try='test -s conftest$ac_exeext'
18456 { (case "(($ac_try" in
18457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18458 *) ac_try_echo=$ac_try;;
18459esac
18460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18461 (eval "$ac_try") 2>&5
18462 ac_status=$?
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); }; }; then
18465 ac_cv_lib_gcc___fixdfdi=yes
18466else
18467 echo "$as_me: failed program was:" >&5
18468sed 's/^/| /' conftest.$ac_ext >&5
18469
18470 ac_cv_lib_gcc___fixdfdi=no
18471fi
18472
18473rm -f core conftest.err conftest.$ac_objext \
18474 conftest$ac_exeext conftest.$ac_ext
18475LIBS=$ac_check_lib_save_LIBS
18476fi
18477{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18478echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18479if test $ac_cv_lib_gcc___fixdfdi = yes; then
18480
18481cat >>confdefs.h <<\_ACEOF
18482#define HAVE___FIXDFDI 1
18483_ACEOF
18484
18485fi
18486
18487 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18488echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18489if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18490 echo $ECHO_N "(cached) $ECHO_C" >&6
18491else
18492 ac_check_lib_save_LIBS=$LIBS
18493LIBS="-lgcc $LIBS"
18494cat >conftest.$ac_ext <<_ACEOF
18495/* confdefs.h. */
18496_ACEOF
18497cat confdefs.h >>conftest.$ac_ext
18498cat >>conftest.$ac_ext <<_ACEOF
18499/* end confdefs.h. */
18500
18501/* Override any GCC internal prototype to avoid an error.
18502 Use char because int might match the return type of a GCC
18503 builtin and then its argument prototype would still apply. */
18504#ifdef __cplusplus
18505extern "C"
18506#endif
18507char __fixsfdi ();
18508int
18509main ()
18510{
18511return __fixsfdi ();
18512 ;
18513 return 0;
18514}
18515_ACEOF
18516rm -f conftest.$ac_objext conftest$ac_exeext
18517if { (ac_try="$ac_link"
18518case "(($ac_try" in
18519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520 *) ac_try_echo=$ac_try;;
18521esac
18522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18523 (eval "$ac_link") 2>conftest.er1
18524 ac_status=$?
18525 grep -v '^ *+' conftest.er1 >conftest.err
18526 rm -f conftest.er1
18527 cat conftest.err >&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); } &&
18530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18531 { (case "(($ac_try" in
18532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533 *) ac_try_echo=$ac_try;;
18534esac
18535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536 (eval "$ac_try") 2>&5
18537 ac_status=$?
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); }; } &&
18540 { ac_try='test -s conftest$ac_exeext'
18541 { (case "(($ac_try" in
18542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18543 *) ac_try_echo=$ac_try;;
18544esac
18545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18546 (eval "$ac_try") 2>&5
18547 ac_status=$?
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); }; }; then
18550 ac_cv_lib_gcc___fixsfdi=yes
18551else
18552 echo "$as_me: failed program was:" >&5
18553sed 's/^/| /' conftest.$ac_ext >&5
18554
18555 ac_cv_lib_gcc___fixsfdi=no
18556fi
18557
18558rm -f core conftest.err conftest.$ac_objext \
18559 conftest$ac_exeext conftest.$ac_ext
18560LIBS=$ac_check_lib_save_LIBS
18561fi
18562{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18563echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18564if test $ac_cv_lib_gcc___fixsfdi = yes; then
18565
18566cat >>confdefs.h <<\_ACEOF
18567#define HAVE___FIXSFDI 1
18568_ACEOF
18569
18570fi
18571
18572 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18573echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18574if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18575 echo $ECHO_N "(cached) $ECHO_C" >&6
18576else
18577 ac_check_lib_save_LIBS=$LIBS
18578LIBS="-lgcc $LIBS"
18579cat >conftest.$ac_ext <<_ACEOF
18580/* confdefs.h. */
18581_ACEOF
18582cat confdefs.h >>conftest.$ac_ext
18583cat >>conftest.$ac_ext <<_ACEOF
18584/* end confdefs.h. */
18585
18586/* Override any GCC internal prototype to avoid an error.
18587 Use char because int might match the return type of a GCC
18588 builtin and then its argument prototype would still apply. */
18589#ifdef __cplusplus
18590extern "C"
18591#endif
18592char __floatdidf ();
18593int
18594main ()
18595{
18596return __floatdidf ();
18597 ;
18598 return 0;
18599}
18600_ACEOF
18601rm -f conftest.$ac_objext conftest$ac_exeext
18602if { (ac_try="$ac_link"
18603case "(($ac_try" in
18604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18605 *) ac_try_echo=$ac_try;;
18606esac
18607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18608 (eval "$ac_link") 2>conftest.er1
18609 ac_status=$?
18610 grep -v '^ *+' conftest.er1 >conftest.err
18611 rm -f conftest.er1
18612 cat conftest.err >&5
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); } &&
18615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18616 { (case "(($ac_try" in
18617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18618 *) ac_try_echo=$ac_try;;
18619esac
18620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18621 (eval "$ac_try") 2>&5
18622 ac_status=$?
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; } &&
18625 { ac_try='test -s conftest$ac_exeext'
18626 { (case "(($ac_try" in
18627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18628 *) ac_try_echo=$ac_try;;
18629esac
18630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18631 (eval "$ac_try") 2>&5
18632 ac_status=$?
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; }; then
18635 ac_cv_lib_gcc___floatdidf=yes
18636else
18637 echo "$as_me: failed program was:" >&5
18638sed 's/^/| /' conftest.$ac_ext >&5
18639
18640 ac_cv_lib_gcc___floatdidf=no
18641fi
18642
18643rm -f core conftest.err conftest.$ac_objext \
18644 conftest$ac_exeext conftest.$ac_ext
18645LIBS=$ac_check_lib_save_LIBS
18646fi
18647{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18648echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18649if test $ac_cv_lib_gcc___floatdidf = yes; then
18650
18651cat >>confdefs.h <<\_ACEOF
18652#define HAVE___FLOATDIDF 1
18653_ACEOF
18654
18655fi
18656
18657 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18658echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18659if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18660 echo $ECHO_N "(cached) $ECHO_C" >&6
18661else
18662 ac_check_lib_save_LIBS=$LIBS
18663LIBS="-lgcc $LIBS"
18664cat >conftest.$ac_ext <<_ACEOF
18665/* confdefs.h. */
18666_ACEOF
18667cat confdefs.h >>conftest.$ac_ext
18668cat >>conftest.$ac_ext <<_ACEOF
18669/* end confdefs.h. */
18670
18671/* Override any GCC internal prototype to avoid an error.
18672 Use char because int might match the return type of a GCC
18673 builtin and then its argument prototype would still apply. */
18674#ifdef __cplusplus
18675extern "C"
18676#endif
18677char __lshrdi3 ();
18678int
18679main ()
18680{
18681return __lshrdi3 ();
18682 ;
18683 return 0;
18684}
18685_ACEOF
18686rm -f conftest.$ac_objext conftest$ac_exeext
18687if { (ac_try="$ac_link"
18688case "(($ac_try" in
18689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690 *) ac_try_echo=$ac_try;;
18691esac
18692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18693 (eval "$ac_link") 2>conftest.er1
18694 ac_status=$?
18695 grep -v '^ *+' conftest.er1 >conftest.err
18696 rm -f conftest.er1
18697 cat conftest.err >&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } &&
18700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18701 { (case "(($ac_try" in
18702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18703 *) ac_try_echo=$ac_try;;
18704esac
18705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18706 (eval "$ac_try") 2>&5
18707 ac_status=$?
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); }; } &&
18710 { ac_try='test -s conftest$ac_exeext'
18711 { (case "(($ac_try" in
18712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18713 *) ac_try_echo=$ac_try;;
18714esac
18715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18716 (eval "$ac_try") 2>&5
18717 ac_status=$?
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); }; }; then
18720 ac_cv_lib_gcc___lshrdi3=yes
18721else
18722 echo "$as_me: failed program was:" >&5
18723sed 's/^/| /' conftest.$ac_ext >&5
18724
18725 ac_cv_lib_gcc___lshrdi3=no
18726fi
18727
18728rm -f core conftest.err conftest.$ac_objext \
18729 conftest$ac_exeext conftest.$ac_ext
18730LIBS=$ac_check_lib_save_LIBS
18731fi
18732{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18733echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18734if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18735
18736cat >>confdefs.h <<\_ACEOF
18737#define HAVE___LSHRDI3 1
18738_ACEOF
18739
18740fi
18741
18742 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18743echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18744if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18745 echo $ECHO_N "(cached) $ECHO_C" >&6
18746else
18747 ac_check_lib_save_LIBS=$LIBS
18748LIBS="-lgcc $LIBS"
18749cat >conftest.$ac_ext <<_ACEOF
18750/* confdefs.h. */
18751_ACEOF
18752cat confdefs.h >>conftest.$ac_ext
18753cat >>conftest.$ac_ext <<_ACEOF
18754/* end confdefs.h. */
18755
18756/* Override any GCC internal prototype to avoid an error.
18757 Use char because int might match the return type of a GCC
18758 builtin and then its argument prototype would still apply. */
18759#ifdef __cplusplus
18760extern "C"
18761#endif
18762char __moddi3 ();
18763int
18764main ()
18765{
18766return __moddi3 ();
18767 ;
18768 return 0;
18769}
18770_ACEOF
18771rm -f conftest.$ac_objext conftest$ac_exeext
18772if { (ac_try="$ac_link"
18773case "(($ac_try" in
18774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18775 *) ac_try_echo=$ac_try;;
18776esac
18777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18778 (eval "$ac_link") 2>conftest.er1
18779 ac_status=$?
18780 grep -v '^ *+' conftest.er1 >conftest.err
18781 rm -f conftest.er1
18782 cat conftest.err >&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); } &&
18785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18786 { (case "(($ac_try" in
18787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788 *) ac_try_echo=$ac_try;;
18789esac
18790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791 (eval "$ac_try") 2>&5
18792 ac_status=$?
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; } &&
18795 { ac_try='test -s conftest$ac_exeext'
18796 { (case "(($ac_try" in
18797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18798 *) ac_try_echo=$ac_try;;
18799esac
18800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18801 (eval "$ac_try") 2>&5
18802 ac_status=$?
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); }; }; then
18805 ac_cv_lib_gcc___moddi3=yes
18806else
18807 echo "$as_me: failed program was:" >&5
18808sed 's/^/| /' conftest.$ac_ext >&5
18809
18810 ac_cv_lib_gcc___moddi3=no
18811fi
18812
18813rm -f core conftest.err conftest.$ac_objext \
18814 conftest$ac_exeext conftest.$ac_ext
18815LIBS=$ac_check_lib_save_LIBS
18816fi
18817{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18818echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18819if test $ac_cv_lib_gcc___moddi3 = yes; then
18820
18821cat >>confdefs.h <<\_ACEOF
18822#define HAVE___MODDI3 1
18823_ACEOF
18824
18825fi
18826
18827 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18828echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18829if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18830 echo $ECHO_N "(cached) $ECHO_C" >&6
18831else
18832 ac_check_lib_save_LIBS=$LIBS
18833LIBS="-lgcc $LIBS"
18834cat >conftest.$ac_ext <<_ACEOF
18835/* confdefs.h. */
18836_ACEOF
18837cat confdefs.h >>conftest.$ac_ext
18838cat >>conftest.$ac_ext <<_ACEOF
18839/* end confdefs.h. */
18840
18841/* Override any GCC internal prototype to avoid an error.
18842 Use char because int might match the return type of a GCC
18843 builtin and then its argument prototype would still apply. */
18844#ifdef __cplusplus
18845extern "C"
18846#endif
18847char __udivdi3 ();
18848int
18849main ()
18850{
18851return __udivdi3 ();
18852 ;
18853 return 0;
18854}
18855_ACEOF
18856rm -f conftest.$ac_objext conftest$ac_exeext
18857if { (ac_try="$ac_link"
18858case "(($ac_try" in
18859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18860 *) ac_try_echo=$ac_try;;
18861esac
18862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18863 (eval "$ac_link") 2>conftest.er1
18864 ac_status=$?
18865 grep -v '^ *+' conftest.er1 >conftest.err
18866 rm -f conftest.er1
18867 cat conftest.err >&5
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); } &&
18870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18871 { (case "(($ac_try" in
18872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18873 *) ac_try_echo=$ac_try;;
18874esac
18875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18876 (eval "$ac_try") 2>&5
18877 ac_status=$?
18878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); }; } &&
18880 { ac_try='test -s conftest$ac_exeext'
18881 { (case "(($ac_try" in
18882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18883 *) ac_try_echo=$ac_try;;
18884esac
18885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18886 (eval "$ac_try") 2>&5
18887 ac_status=$?
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); }; }; then
18890 ac_cv_lib_gcc___udivdi3=yes
18891else
18892 echo "$as_me: failed program was:" >&5
18893sed 's/^/| /' conftest.$ac_ext >&5
18894
18895 ac_cv_lib_gcc___udivdi3=no
18896fi
18897
18898rm -f core conftest.err conftest.$ac_objext \
18899 conftest$ac_exeext conftest.$ac_ext
18900LIBS=$ac_check_lib_save_LIBS
18901fi
18902{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18903echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18904if test $ac_cv_lib_gcc___udivdi3 = yes; then
18905
18906cat >>confdefs.h <<\_ACEOF
18907#define HAVE___UDIVDI3 1
18908_ACEOF
18909
18910fi
18911
18912 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18913echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18914if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18915 echo $ECHO_N "(cached) $ECHO_C" >&6
18916else
18917 ac_check_lib_save_LIBS=$LIBS
18918LIBS="-lgcc $LIBS"
18919cat >conftest.$ac_ext <<_ACEOF
18920/* confdefs.h. */
18921_ACEOF
18922cat confdefs.h >>conftest.$ac_ext
18923cat >>conftest.$ac_ext <<_ACEOF
18924/* end confdefs.h. */
18925
18926/* Override any GCC internal prototype to avoid an error.
18927 Use char because int might match the return type of a GCC
18928 builtin and then its argument prototype would still apply. */
18929#ifdef __cplusplus
18930extern "C"
18931#endif
18932char __umoddi3 ();
18933int
18934main ()
18935{
18936return __umoddi3 ();
18937 ;
18938 return 0;
18939}
18940_ACEOF
18941rm -f conftest.$ac_objext conftest$ac_exeext
18942if { (ac_try="$ac_link"
18943case "(($ac_try" in
18944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18945 *) ac_try_echo=$ac_try;;
18946esac
18947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18948 (eval "$ac_link") 2>conftest.er1
18949 ac_status=$?
18950 grep -v '^ *+' conftest.er1 >conftest.err
18951 rm -f conftest.er1
18952 cat conftest.err >&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); } &&
18955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18956 { (case "(($ac_try" in
18957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18958 *) ac_try_echo=$ac_try;;
18959esac
18960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18961 (eval "$ac_try") 2>&5
18962 ac_status=$?
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); }; } &&
18965 { ac_try='test -s conftest$ac_exeext'
18966 { (case "(($ac_try" in
18967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18968 *) ac_try_echo=$ac_try;;
18969esac
18970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18971 (eval "$ac_try") 2>&5
18972 ac_status=$?
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); }; }; then
18975 ac_cv_lib_gcc___umoddi3=yes
18976else
18977 echo "$as_me: failed program was:" >&5
18978sed 's/^/| /' conftest.$ac_ext >&5
18979
18980 ac_cv_lib_gcc___umoddi3=no
18981fi
18982
18983rm -f core conftest.err conftest.$ac_objext \
18984 conftest$ac_exeext conftest.$ac_ext
18985LIBS=$ac_check_lib_save_LIBS
18986fi
18987{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18988echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18989if test $ac_cv_lib_gcc___umoddi3 = yes; then
18990
18991cat >>confdefs.h <<\_ACEOF
18992#define HAVE___UMODDI3 1
18993_ACEOF
18994
18995fi
18996
18997
18998 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18999echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19000if test "${ac_cv_lib_gcc___main+set}" = set; then
19001 echo $ECHO_N "(cached) $ECHO_C" >&6
19002else
19003 ac_check_lib_save_LIBS=$LIBS
19004LIBS="-lgcc $LIBS"
19005cat >conftest.$ac_ext <<_ACEOF
19006/* confdefs.h. */
19007_ACEOF
19008cat confdefs.h >>conftest.$ac_ext
19009cat >>conftest.$ac_ext <<_ACEOF
19010/* end confdefs.h. */
19011
19012/* Override any GCC internal prototype to avoid an error.
19013 Use char because int might match the return type of a GCC
19014 builtin and then its argument prototype would still apply. */
19015#ifdef __cplusplus
19016extern "C"
19017#endif
19018char __main ();
19019int
19020main ()
19021{
19022return __main ();
19023 ;
19024 return 0;
19025}
19026_ACEOF
19027rm -f conftest.$ac_objext conftest$ac_exeext
19028if { (ac_try="$ac_link"
19029case "(($ac_try" in
19030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19031 *) ac_try_echo=$ac_try;;
19032esac
19033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19034 (eval "$ac_link") 2>conftest.er1
19035 ac_status=$?
19036 grep -v '^ *+' conftest.er1 >conftest.err
19037 rm -f conftest.er1
19038 cat conftest.err >&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); } &&
19041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19042 { (case "(($ac_try" in
19043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19044 *) ac_try_echo=$ac_try;;
19045esac
19046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19047 (eval "$ac_try") 2>&5
19048 ac_status=$?
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; } &&
19051 { ac_try='test -s conftest$ac_exeext'
19052 { (case "(($ac_try" in
19053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19054 *) ac_try_echo=$ac_try;;
19055esac
19056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19057 (eval "$ac_try") 2>&5
19058 ac_status=$?
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); }; }; then
19061 ac_cv_lib_gcc___main=yes
19062else
19063 echo "$as_me: failed program was:" >&5
19064sed 's/^/| /' conftest.$ac_ext >&5
19065
19066 ac_cv_lib_gcc___main=no
19067fi
19068
19069rm -f core conftest.err conftest.$ac_objext \
19070 conftest$ac_exeext conftest.$ac_ext
19071LIBS=$ac_check_lib_save_LIBS
19072fi
19073{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19074echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19075if test $ac_cv_lib_gcc___main = yes; then
19076
19077cat >>confdefs.h <<\_ACEOF
19078#define HAVE___MAIN 1
19079_ACEOF
19080
19081fi
19082
19083 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19084echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19085if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19086 echo $ECHO_N "(cached) $ECHO_C" >&6
19087else
19088 ac_check_lib_save_LIBS=$LIBS
19089LIBS="-lgcc $LIBS"
19090cat >conftest.$ac_ext <<_ACEOF
19091/* confdefs.h. */
19092_ACEOF
19093cat confdefs.h >>conftest.$ac_ext
19094cat >>conftest.$ac_ext <<_ACEOF
19095/* end confdefs.h. */
19096
19097/* Override any GCC internal prototype to avoid an error.
19098 Use char because int might match the return type of a GCC
19099 builtin and then its argument prototype would still apply. */
19100#ifdef __cplusplus
19101extern "C"
19102#endif
19103char __cmpdi2 ();
19104int
19105main ()
19106{
19107return __cmpdi2 ();
19108 ;
19109 return 0;
19110}
19111_ACEOF
19112rm -f conftest.$ac_objext conftest$ac_exeext
19113if { (ac_try="$ac_link"
19114case "(($ac_try" in
19115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19116 *) ac_try_echo=$ac_try;;
19117esac
19118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19119 (eval "$ac_link") 2>conftest.er1
19120 ac_status=$?
19121 grep -v '^ *+' conftest.er1 >conftest.err
19122 rm -f conftest.er1
19123 cat conftest.err >&5
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); } &&
19126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19127 { (case "(($ac_try" in
19128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19129 *) ac_try_echo=$ac_try;;
19130esac
19131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19132 (eval "$ac_try") 2>&5
19133 ac_status=$?
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); }; } &&
19136 { ac_try='test -s conftest$ac_exeext'
19137 { (case "(($ac_try" in
19138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19139 *) ac_try_echo=$ac_try;;
19140esac
19141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19142 (eval "$ac_try") 2>&5
19143 ac_status=$?
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); }; }; then
19146 ac_cv_lib_gcc___cmpdi2=yes
19147else
19148 echo "$as_me: failed program was:" >&5
19149sed 's/^/| /' conftest.$ac_ext >&5
19150
19151 ac_cv_lib_gcc___cmpdi2=no
19152fi
19153
19154rm -f core conftest.err conftest.$ac_objext \
19155 conftest$ac_exeext conftest.$ac_ext
19156LIBS=$ac_check_lib_save_LIBS
19157fi
19158{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19159echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19160if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19161
19162cat >>confdefs.h <<\_ACEOF
19163#define HAVE___CMPDI2 1
19164_ACEOF
19165
19166fi
19167
19168fi
19169
19170if test "$llvm_cv_os_type" = "MingW" ; then
19171 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19172echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19173 cat >conftest.$ac_ext <<_ACEOF
19174#include <windows.h>
19175#include <imagehlp.h>
19176extern void foo(PENUMLOADED_MODULES_CALLBACK);
19177extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19178_ACEOF
19179rm -f conftest.$ac_objext
19180if { (ac_try="$ac_compile"
19181case "(($ac_try" in
19182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183 *) ac_try_echo=$ac_try;;
19184esac
19185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186 (eval "$ac_compile") 2>conftest.er1
19187 ac_status=$?
19188 grep -v '^ *+' conftest.er1 >conftest.err
19189 rm -f conftest.er1
19190 cat conftest.err >&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } &&
19193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19194 { (case "(($ac_try" in
19195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19196 *) ac_try_echo=$ac_try;;
19197esac
19198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19199 (eval "$ac_try") 2>&5
19200 ac_status=$?
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; } &&
19203 { ac_try='test -s conftest.$ac_objext'
19204 { (case "(($ac_try" in
19205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206 *) ac_try_echo=$ac_try;;
19207esac
19208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19209 (eval "$ac_try") 2>&5
19210 ac_status=$?
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); }; }; then
19213
19214 { echo "$as_me:$LINENO: result: yes" >&5
19215echo "${ECHO_T}yes" >&6; }
19216 llvm_cv_win32_elmcb_pcstr="PCSTR"
19217
19218else
19219 echo "$as_me: failed program was:" >&5
19220sed 's/^/| /' conftest.$ac_ext >&5
19221
19222
19223 { echo "$as_me:$LINENO: result: no" >&5
19224echo "${ECHO_T}no" >&6; }
19225 llvm_cv_win32_elmcb_pcstr="PSTR"
19226
19227fi
19228
19229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19230
19231cat >>confdefs.h <<_ACEOF
19232#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19233_ACEOF
19234
19235fi
19236
19237
19238{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19239echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19240if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19241 echo $ECHO_N "(cached) $ECHO_C" >&6
19242else
19243 ac_ext=cpp
19244ac_cpp='$CXXCPP $CPPFLAGS'
19245ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19246ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19247ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19248
19249 cat >conftest.$ac_ext <<_ACEOF
19250/* confdefs.h. */
19251_ACEOF
19252cat confdefs.h >>conftest.$ac_ext
19253cat >>conftest.$ac_ext <<_ACEOF
19254/* end confdefs.h. */
19255#include <math.h>
19256int
19257main ()
19258{
19259float f; isnan(f);
19260 ;
19261 return 0;
19262}
19263_ACEOF
19264rm -f conftest.$ac_objext
19265if { (ac_try="$ac_compile"
19266case "(($ac_try" in
19267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268 *) ac_try_echo=$ac_try;;
19269esac
19270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271 (eval "$ac_compile") 2>conftest.er1
19272 ac_status=$?
19273 grep -v '^ *+' conftest.er1 >conftest.err
19274 rm -f conftest.er1
19275 cat conftest.err >&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } &&
19278 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19279 { (case "(($ac_try" in
19280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281 *) ac_try_echo=$ac_try;;
19282esac
19283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284 (eval "$ac_try") 2>&5
19285 ac_status=$?
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); }; } &&
19288 { ac_try='test -s conftest.$ac_objext'
19289 { (case "(($ac_try" in
19290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291 *) ac_try_echo=$ac_try;;
19292esac
19293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19294 (eval "$ac_try") 2>&5
19295 ac_status=$?
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; }; then
19298 ac_cv_func_isnan_in_math_h=yes
19299else
19300 echo "$as_me: failed program was:" >&5
19301sed 's/^/| /' conftest.$ac_ext >&5
19302
19303 ac_cv_func_isnan_in_math_h=no
19304fi
19305
19306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19307 ac_ext=c
19308ac_cpp='$CPP $CPPFLAGS'
19309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19311ac_compiler_gnu=$ac_cv_c_compiler_gnu
19312
19313fi
19314{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19315echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19316
19317
19318if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19319
19320cat >>confdefs.h <<\_ACEOF
19321#define HAVE_ISNAN_IN_MATH_H 1
19322_ACEOF
19323
19324fi
19325
19326{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19327echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19328if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19329 echo $ECHO_N "(cached) $ECHO_C" >&6
19330else
19331 ac_ext=cpp
19332ac_cpp='$CXXCPP $CPPFLAGS'
19333ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19334ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19335ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19336
19337 cat >conftest.$ac_ext <<_ACEOF
19338/* confdefs.h. */
19339_ACEOF
19340cat confdefs.h >>conftest.$ac_ext
19341cat >>conftest.$ac_ext <<_ACEOF
19342/* end confdefs.h. */
19343#include <cmath>
19344int
19345main ()
19346{
19347float f; isnan(f);
19348 ;
19349 return 0;
19350}
19351_ACEOF
19352rm -f conftest.$ac_objext
19353if { (ac_try="$ac_compile"
19354case "(($ac_try" in
19355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19356 *) ac_try_echo=$ac_try;;
19357esac
19358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19359 (eval "$ac_compile") 2>conftest.er1
19360 ac_status=$?
19361 grep -v '^ *+' conftest.er1 >conftest.err
19362 rm -f conftest.er1
19363 cat conftest.err >&5
19364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); } &&
19366 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19367 { (case "(($ac_try" in
19368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19369 *) ac_try_echo=$ac_try;;
19370esac
19371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19372 (eval "$ac_try") 2>&5
19373 ac_status=$?
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); }; } &&
19376 { ac_try='test -s conftest.$ac_objext'
19377 { (case "(($ac_try" in
19378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19379 *) ac_try_echo=$ac_try;;
19380esac
19381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19382 (eval "$ac_try") 2>&5
19383 ac_status=$?
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; }; then
19386 ac_cv_func_isnan_in_cmath=yes
19387else
19388 echo "$as_me: failed program was:" >&5
19389sed 's/^/| /' conftest.$ac_ext >&5
19390
19391 ac_cv_func_isnan_in_cmath=no
19392fi
19393
19394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19395 ac_ext=c
19396ac_cpp='$CPP $CPPFLAGS'
19397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19399ac_compiler_gnu=$ac_cv_c_compiler_gnu
19400
19401fi
19402{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19403echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19404
19405if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19406
19407cat >>confdefs.h <<\_ACEOF
19408#define HAVE_ISNAN_IN_CMATH 1
19409_ACEOF
19410
19411fi
19412
19413{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19414echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19415if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19416 echo $ECHO_N "(cached) $ECHO_C" >&6
19417else
19418 ac_ext=cpp
19419ac_cpp='$CXXCPP $CPPFLAGS'
19420ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19421ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19422ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19423
19424 cat >conftest.$ac_ext <<_ACEOF
19425/* confdefs.h. */
19426_ACEOF
19427cat confdefs.h >>conftest.$ac_ext
19428cat >>conftest.$ac_ext <<_ACEOF
19429/* end confdefs.h. */
19430#include <cmath>
19431int
19432main ()
19433{
19434float f; std::isnan(f);
19435 ;
19436 return 0;
19437}
19438_ACEOF
19439rm -f conftest.$ac_objext
19440if { (ac_try="$ac_compile"
19441case "(($ac_try" in
19442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443 *) ac_try_echo=$ac_try;;
19444esac
19445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19446 (eval "$ac_compile") 2>conftest.er1
19447 ac_status=$?
19448 grep -v '^ *+' conftest.er1 >conftest.err
19449 rm -f conftest.er1
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } &&
19453 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19454 { (case "(($ac_try" in
19455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456 *) ac_try_echo=$ac_try;;
19457esac
19458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459 (eval "$ac_try") 2>&5
19460 ac_status=$?
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; } &&
19463 { ac_try='test -s conftest.$ac_objext'
19464 { (case "(($ac_try" in
19465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466 *) ac_try_echo=$ac_try;;
19467esac
19468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19469 (eval "$ac_try") 2>&5
19470 ac_status=$?
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); }; }; then
19473 ac_cv_func_std_isnan_in_cmath=yes
19474else
19475 echo "$as_me: failed program was:" >&5
19476sed 's/^/| /' conftest.$ac_ext >&5
19477
19478 ac_cv_func_std_isnan_in_cmath=no
19479fi
19480
19481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19482 ac_ext=c
19483ac_cpp='$CPP $CPPFLAGS'
19484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19486ac_compiler_gnu=$ac_cv_c_compiler_gnu
19487
19488fi
19489{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19490echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19491
19492if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19493
19494cat >>confdefs.h <<\_ACEOF
19495#define HAVE_STD_ISNAN_IN_CMATH 1
19496_ACEOF
19497
19498fi
19499
19500
19501{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19502echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19503if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19504 echo $ECHO_N "(cached) $ECHO_C" >&6
19505else
19506 ac_ext=cpp
19507ac_cpp='$CXXCPP $CPPFLAGS'
19508ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19509ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19510ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19511
19512 cat >conftest.$ac_ext <<_ACEOF
19513/* confdefs.h. */
19514_ACEOF
19515cat confdefs.h >>conftest.$ac_ext
19516cat >>conftest.$ac_ext <<_ACEOF
19517/* end confdefs.h. */
19518#include <math.h>
19519int
19520main ()
19521{
19522float f; isinf(f);
19523 ;
19524 return 0;
19525}
19526_ACEOF
19527rm -f conftest.$ac_objext
19528if { (ac_try="$ac_compile"
19529case "(($ac_try" in
19530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19531 *) ac_try_echo=$ac_try;;
19532esac
19533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19534 (eval "$ac_compile") 2>conftest.er1
19535 ac_status=$?
19536 grep -v '^ *+' conftest.er1 >conftest.err
19537 rm -f conftest.er1
19538 cat conftest.err >&5
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); } &&
19541 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19542 { (case "(($ac_try" in
19543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19544 *) ac_try_echo=$ac_try;;
19545esac
19546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19547 (eval "$ac_try") 2>&5
19548 ac_status=$?
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); }; } &&
19551 { ac_try='test -s conftest.$ac_objext'
19552 { (case "(($ac_try" in
19553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19554 *) ac_try_echo=$ac_try;;
19555esac
19556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19557 (eval "$ac_try") 2>&5
19558 ac_status=$?
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); }; }; then
19561 ac_cv_func_isinf_in_math_h=yes
19562else
19563 echo "$as_me: failed program was:" >&5
19564sed 's/^/| /' conftest.$ac_ext >&5
19565
19566 ac_cv_func_isinf_in_math_h=no
19567fi
19568
19569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19570 ac_ext=c
19571ac_cpp='$CPP $CPPFLAGS'
19572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19574ac_compiler_gnu=$ac_cv_c_compiler_gnu
19575
19576fi
19577{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19578echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19579
19580if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19581
19582cat >>confdefs.h <<\_ACEOF
19583#define HAVE_ISINF_IN_MATH_H 1
19584_ACEOF
19585
19586fi
19587
19588{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19589echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19590if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19591 echo $ECHO_N "(cached) $ECHO_C" >&6
19592else
19593 ac_ext=cpp
19594ac_cpp='$CXXCPP $CPPFLAGS'
19595ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19596ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19597ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19598
19599 cat >conftest.$ac_ext <<_ACEOF
19600/* confdefs.h. */
19601_ACEOF
19602cat confdefs.h >>conftest.$ac_ext
19603cat >>conftest.$ac_ext <<_ACEOF
19604/* end confdefs.h. */
19605#include <cmath>
19606int
19607main ()
19608{
19609float f; isinf(f);
19610 ;
19611 return 0;
19612}
19613_ACEOF
19614rm -f conftest.$ac_objext
19615if { (ac_try="$ac_compile"
19616case "(($ac_try" in
19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19619esac
19620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621 (eval "$ac_compile") 2>conftest.er1
19622 ac_status=$?
19623 grep -v '^ *+' conftest.er1 >conftest.err
19624 rm -f conftest.er1
19625 cat conftest.err >&5
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } &&
19628 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19629 { (case "(($ac_try" in
19630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19631 *) ac_try_echo=$ac_try;;
19632esac
19633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634 (eval "$ac_try") 2>&5
19635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; } &&
19638 { ac_try='test -s conftest.$ac_objext'
19639 { (case "(($ac_try" in
19640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641 *) ac_try_echo=$ac_try;;
19642esac
19643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19644 (eval "$ac_try") 2>&5
19645 ac_status=$?
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; }; then
19648 ac_cv_func_isinf_in_cmath=yes
19649else
19650 echo "$as_me: failed program was:" >&5
19651sed 's/^/| /' conftest.$ac_ext >&5
19652
19653 ac_cv_func_isinf_in_cmath=no
19654fi
19655
19656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19657 ac_ext=c
19658ac_cpp='$CPP $CPPFLAGS'
19659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19661ac_compiler_gnu=$ac_cv_c_compiler_gnu
19662
19663fi
19664{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19665echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19666
19667if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19668
19669cat >>confdefs.h <<\_ACEOF
19670#define HAVE_ISINF_IN_CMATH 1
19671_ACEOF
19672
19673fi
19674
19675{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19676echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19677if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19678 echo $ECHO_N "(cached) $ECHO_C" >&6
19679else
19680 ac_ext=cpp
19681ac_cpp='$CXXCPP $CPPFLAGS'
19682ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19683ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19684ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19685
19686 cat >conftest.$ac_ext <<_ACEOF
19687/* confdefs.h. */
19688_ACEOF
19689cat confdefs.h >>conftest.$ac_ext
19690cat >>conftest.$ac_ext <<_ACEOF
19691/* end confdefs.h. */
19692#include <cmath>
19693int
19694main ()
19695{
19696float f; std::isinf(f)}
19697 ;
19698 return 0;
19699}
19700_ACEOF
19701rm -f conftest.$ac_objext
19702if { (ac_try="$ac_compile"
19703case "(($ac_try" in
19704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19705 *) ac_try_echo=$ac_try;;
19706esac
19707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19708 (eval "$ac_compile") 2>conftest.er1
19709 ac_status=$?
19710 grep -v '^ *+' conftest.er1 >conftest.err
19711 rm -f conftest.er1
19712 cat conftest.err >&5
19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); } &&
19715 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19716 { (case "(($ac_try" in
19717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718 *) ac_try_echo=$ac_try;;
19719esac
19720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19721 (eval "$ac_try") 2>&5
19722 ac_status=$?
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; } &&
19725 { ac_try='test -s conftest.$ac_objext'
19726 { (case "(($ac_try" in
19727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19728 *) ac_try_echo=$ac_try;;
19729esac
19730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19731 (eval "$ac_try") 2>&5
19732 ac_status=$?
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); }; }; then
19735 ac_cv_func_std_isinf_in_cmath=yes
19736else
19737 echo "$as_me: failed program was:" >&5
19738sed 's/^/| /' conftest.$ac_ext >&5
19739
19740 ac_cv_func_std_isinf_in_cmath=no
19741fi
19742
19743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19744 ac_ext=c
19745ac_cpp='$CPP $CPPFLAGS'
19746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19748ac_compiler_gnu=$ac_cv_c_compiler_gnu
19749
19750fi
19751{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19752echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19753
19754if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19755
19756cat >>confdefs.h <<\_ACEOF
19757#define HAVE_STD_ISINF_IN_CMATH 1
19758_ACEOF
19759
19760fi
19761
19762{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19763echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19764if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19765 echo $ECHO_N "(cached) $ECHO_C" >&6
19766else
19767 ac_ext=cpp
19768ac_cpp='$CXXCPP $CPPFLAGS'
19769ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19770ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19771ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19772
19773 cat >conftest.$ac_ext <<_ACEOF
19774/* confdefs.h. */
19775_ACEOF
19776cat confdefs.h >>conftest.$ac_ext
19777cat >>conftest.$ac_ext <<_ACEOF
19778/* end confdefs.h. */
19779#include <ieeefp.h>
19780int
19781main ()
19782{
19783float f; finite(f);
19784 ;
19785 return 0;
19786}
19787_ACEOF
19788rm -f conftest.$ac_objext
19789if { (ac_try="$ac_compile"
19790case "(($ac_try" in
19791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19792 *) ac_try_echo=$ac_try;;
19793esac
19794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19795 (eval "$ac_compile") 2>conftest.er1
19796 ac_status=$?
19797 grep -v '^ *+' conftest.er1 >conftest.err
19798 rm -f conftest.er1
19799 cat conftest.err >&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); } &&
19802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19803 { (case "(($ac_try" in
19804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805 *) ac_try_echo=$ac_try;;
19806esac
19807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19808 (eval "$ac_try") 2>&5
19809 ac_status=$?
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); }; } &&
19812 { ac_try='test -s conftest.$ac_objext'
19813 { (case "(($ac_try" in
19814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815 *) ac_try_echo=$ac_try;;
19816esac
19817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818 (eval "$ac_try") 2>&5
19819 ac_status=$?
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); }; }; then
19822 ac_cv_func_finite_in_ieeefp_h=yes
19823else
19824 echo "$as_me: failed program was:" >&5
19825sed 's/^/| /' conftest.$ac_ext >&5
19826
19827 ac_cv_func_finite_in_ieeefp_h=no
19828fi
19829
19830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19831 ac_ext=c
19832ac_cpp='$CPP $CPPFLAGS'
19833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19835ac_compiler_gnu=$ac_cv_c_compiler_gnu
19836
19837fi
19838{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19839echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19840
19841if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19842
19843cat >>confdefs.h <<\_ACEOF
19844#define HAVE_FINITE_IN_IEEEFP_H 1
19845_ACEOF
19846
19847fi
19848
19849
19850
19851if test "$llvm_cv_platform_type" = "Unix" ; then
19852
19853
19854for ac_header in stdlib.h unistd.h
19855do
19856as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19857if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19859echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19860if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19861 echo $ECHO_N "(cached) $ECHO_C" >&6
19862fi
19863ac_res=`eval echo '${'$as_ac_Header'}'`
19864 { echo "$as_me:$LINENO: result: $ac_res" >&5
19865echo "${ECHO_T}$ac_res" >&6; }
19866else
19867 # Is the header compilable?
19868{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19869echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19870cat >conftest.$ac_ext <<_ACEOF
19871/* confdefs.h. */
19872_ACEOF
19873cat confdefs.h >>conftest.$ac_ext
19874cat >>conftest.$ac_ext <<_ACEOF
19875/* end confdefs.h. */
19876$ac_includes_default
19877#include <$ac_header>
19878_ACEOF
19879rm -f conftest.$ac_objext
19880if { (ac_try="$ac_compile"
19881case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19884esac
19885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886 (eval "$ac_compile") 2>conftest.er1
19887 ac_status=$?
19888 grep -v '^ *+' conftest.er1 >conftest.err
19889 rm -f conftest.er1
19890 cat conftest.err >&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); } &&
19893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19894 { (case "(($ac_try" in
19895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896 *) ac_try_echo=$ac_try;;
19897esac
19898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899 (eval "$ac_try") 2>&5
19900 ac_status=$?
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); }; } &&
19903 { ac_try='test -s conftest.$ac_objext'
19904 { (case "(($ac_try" in
19905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19906 *) ac_try_echo=$ac_try;;
19907esac
19908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19909 (eval "$ac_try") 2>&5
19910 ac_status=$?
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); }; }; then
19913 ac_header_compiler=yes
19914else
19915 echo "$as_me: failed program was:" >&5
19916sed 's/^/| /' conftest.$ac_ext >&5
19917
19918 ac_header_compiler=no
19919fi
19920
19921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19922{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19923echo "${ECHO_T}$ac_header_compiler" >&6; }
19924
19925# Is the header present?
19926{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19927echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19928cat >conftest.$ac_ext <<_ACEOF
19929/* confdefs.h. */
19930_ACEOF
19931cat confdefs.h >>conftest.$ac_ext
19932cat >>conftest.$ac_ext <<_ACEOF
19933/* end confdefs.h. */
19934#include <$ac_header>
19935_ACEOF
19936if { (ac_try="$ac_cpp conftest.$ac_ext"
19937case "(($ac_try" in
19938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19939 *) ac_try_echo=$ac_try;;
19940esac
19941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19943 ac_status=$?
19944 grep -v '^ *+' conftest.er1 >conftest.err
19945 rm -f conftest.er1
19946 cat conftest.err >&5
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); } >/dev/null; then
19949 if test -s conftest.err; then
19950 ac_cpp_err=$ac_c_preproc_warn_flag
19951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19952 else
19953 ac_cpp_err=
19954 fi
19955else
19956 ac_cpp_err=yes
19957fi
19958if test -z "$ac_cpp_err"; then
19959 ac_header_preproc=yes
19960else
19961 echo "$as_me: failed program was:" >&5
19962sed 's/^/| /' conftest.$ac_ext >&5
19963
19964 ac_header_preproc=no
19965fi
19966
19967rm -f conftest.err conftest.$ac_ext
19968{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19969echo "${ECHO_T}$ac_header_preproc" >&6; }
19970
19971# So? What about this header?
19972case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19973 yes:no: )
19974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19975echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19977echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19978 ac_header_preproc=yes
19979 ;;
19980 no:yes:* )
19981 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19982echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19983 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19984echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19985 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19986echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19987 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19988echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19990echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19991 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19992echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19993 ( cat <<\_ASBOX
19994## ------------------------------ ##
19995## Report this to bugs@yourdomain ##
19996## ------------------------------ ##
19997_ASBOX
19998 ) | sed "s/^/$as_me: WARNING: /" >&2
19999 ;;
20000esac
20001{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20002echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20003if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20004 echo $ECHO_N "(cached) $ECHO_C" >&6
20005else
20006 eval "$as_ac_Header=\$ac_header_preproc"
20007fi
20008ac_res=`eval echo '${'$as_ac_Header'}'`
20009 { echo "$as_me:$LINENO: result: $ac_res" >&5
20010echo "${ECHO_T}$ac_res" >&6; }
20011
20012fi
20013if test `eval echo '${'$as_ac_Header'}'` = yes; then
20014 cat >>confdefs.h <<_ACEOF
20015#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20016_ACEOF
20017
20018fi
20019
20020done
20021
20022
20023for ac_func in getpagesize
20024do
20025as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20026{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20027echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20028if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20029 echo $ECHO_N "(cached) $ECHO_C" >&6
20030else
20031 cat >conftest.$ac_ext <<_ACEOF
20032/* confdefs.h. */
20033_ACEOF
20034cat confdefs.h >>conftest.$ac_ext
20035cat >>conftest.$ac_ext <<_ACEOF
20036/* end confdefs.h. */
20037/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20039#define $ac_func innocuous_$ac_func
20040
20041/* System header to define __stub macros and hopefully few prototypes,
20042 which can conflict with char $ac_func (); below.
20043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20044 <limits.h> exists even on freestanding compilers. */
20045
20046#ifdef __STDC__
20047# include <limits.h>
20048#else
20049# include <assert.h>
20050#endif
20051
20052#undef $ac_func
20053
20054/* Override any GCC internal prototype to avoid an error.
20055 Use char because int might match the return type of a GCC
20056 builtin and then its argument prototype would still apply. */
20057#ifdef __cplusplus
20058extern "C"
20059#endif
20060char $ac_func ();
20061/* The GNU C library defines this for functions which it implements
20062 to always fail with ENOSYS. Some functions are actually named
20063 something starting with __ and the normal name is an alias. */
20064#if defined __stub_$ac_func || defined __stub___$ac_func
20065choke me
20066#endif
20067
20068int
20069main ()
20070{
20071return $ac_func ();
20072 ;
20073 return 0;
20074}
20075_ACEOF
20076rm -f conftest.$ac_objext conftest$ac_exeext
20077if { (ac_try="$ac_link"
20078case "(($ac_try" in
20079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20080 *) ac_try_echo=$ac_try;;
20081esac
20082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20083 (eval "$ac_link") 2>conftest.er1
20084 ac_status=$?
20085 grep -v '^ *+' conftest.er1 >conftest.err
20086 rm -f conftest.er1
20087 cat conftest.err >&5
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); } &&
20090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20091 { (case "(($ac_try" in
20092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20093 *) ac_try_echo=$ac_try;;
20094esac
20095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20096 (eval "$ac_try") 2>&5
20097 ac_status=$?
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); }; } &&
20100 { ac_try='test -s conftest$ac_exeext'
20101 { (case "(($ac_try" in
20102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20103 *) ac_try_echo=$ac_try;;
20104esac
20105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20106 (eval "$ac_try") 2>&5
20107 ac_status=$?
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); }; }; then
20110 eval "$as_ac_var=yes"
20111else
20112 echo "$as_me: failed program was:" >&5
20113sed 's/^/| /' conftest.$ac_ext >&5
20114
20115 eval "$as_ac_var=no"
20116fi
20117
20118rm -f core conftest.err conftest.$ac_objext \
20119 conftest$ac_exeext conftest.$ac_ext
20120fi
20121ac_res=`eval echo '${'$as_ac_var'}'`
20122 { echo "$as_me:$LINENO: result: $ac_res" >&5
20123echo "${ECHO_T}$ac_res" >&6; }
20124if test `eval echo '${'$as_ac_var'}'` = yes; then
20125 cat >>confdefs.h <<_ACEOF
20126#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20127_ACEOF
20128
20129fi
20130done
20131
20132{ echo "$as_me:$LINENO: checking for working mmap" >&5
20133echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20134if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20135 echo $ECHO_N "(cached) $ECHO_C" >&6
20136else
20137 if test "$cross_compiling" = yes; then
20138 ac_cv_func_mmap_fixed_mapped=no
20139else
20140 cat >conftest.$ac_ext <<_ACEOF
20141/* confdefs.h. */
20142_ACEOF
20143cat confdefs.h >>conftest.$ac_ext
20144cat >>conftest.$ac_ext <<_ACEOF
20145/* end confdefs.h. */
20146$ac_includes_default
20147/* malloc might have been renamed as rpl_malloc. */
20148#undef malloc
20149
20150/* Thanks to Mike Haertel and Jim Avera for this test.
20151 Here is a matrix of mmap possibilities:
20152 mmap private not fixed
20153 mmap private fixed at somewhere currently unmapped
20154 mmap private fixed at somewhere already mapped
20155 mmap shared not fixed
20156 mmap shared fixed at somewhere currently unmapped
20157 mmap shared fixed at somewhere already mapped
20158 For private mappings, we should verify that changes cannot be read()
20159 back from the file, nor mmap's back from the file at a different
20160 address. (There have been systems where private was not correctly
20161 implemented like the infamous i386 svr4.0, and systems where the
20162 VM page cache was not coherent with the file system buffer cache
20163 like early versions of FreeBSD and possibly contemporary NetBSD.)
20164 For shared mappings, we should conversely verify that changes get
20165 propagated back to all the places they're supposed to be.
20166
20167 Grep wants private fixed already mapped.
20168 The main things grep needs to know about mmap are:
20169 * does it exist and is it safe to write into the mmap'd area
20170 * how to use it (BSD variants) */
20171
20172#include <fcntl.h>
20173#include <sys/mman.h>
20174
20175#if !STDC_HEADERS && !HAVE_STDLIB_H
20176char *malloc ();
20177#endif
20178
20179/* This mess was copied from the GNU getpagesize.h. */
20180#if !HAVE_GETPAGESIZE
20181/* Assume that all systems that can run configure have sys/param.h. */
20182# if !HAVE_SYS_PARAM_H
20183# define HAVE_SYS_PARAM_H 1
20184# endif
20185
20186# ifdef _SC_PAGESIZE
20187# define getpagesize() sysconf(_SC_PAGESIZE)
20188# else /* no _SC_PAGESIZE */
20189# if HAVE_SYS_PARAM_H
20190# include <sys/param.h>
20191# ifdef EXEC_PAGESIZE
20192# define getpagesize() EXEC_PAGESIZE
20193# else /* no EXEC_PAGESIZE */
20194# ifdef NBPG
20195# define getpagesize() NBPG * CLSIZE
20196# ifndef CLSIZE
20197# define CLSIZE 1
20198# endif /* no CLSIZE */
20199# else /* no NBPG */
20200# ifdef NBPC
20201# define getpagesize() NBPC
20202# else /* no NBPC */
20203# ifdef PAGESIZE
20204# define getpagesize() PAGESIZE
20205# endif /* PAGESIZE */
20206# endif /* no NBPC */
20207# endif /* no NBPG */
20208# endif /* no EXEC_PAGESIZE */
20209# else /* no HAVE_SYS_PARAM_H */
20210# define getpagesize() 8192 /* punt totally */
20211# endif /* no HAVE_SYS_PARAM_H */
20212# endif /* no _SC_PAGESIZE */
20213
20214#endif /* no HAVE_GETPAGESIZE */
20215
20216int
20217main ()
20218{
20219 char *data, *data2, *data3;
20220 int i, pagesize;
20221 int fd;
20222
20223 pagesize = getpagesize ();
20224
20225 /* First, make a file with some known garbage in it. */
20226 data = (char *) malloc (pagesize);
20227 if (!data)
20228 return 1;
20229 for (i = 0; i < pagesize; ++i)
20230 *(data + i) = rand ();
20231 umask (0);
20232 fd = creat ("conftest.mmap", 0600);
20233 if (fd < 0)
20234 return 1;
20235 if (write (fd, data, pagesize) != pagesize)
20236 return 1;
20237 close (fd);
20238
20239 /* Next, try to mmap the file at a fixed address which already has
20240 something else allocated at it. If we can, also make sure that
20241 we see the same garbage. */
20242 fd = open ("conftest.mmap", O_RDWR);
20243 if (fd < 0)
20244 return 1;
20245 data2 = (char *) malloc (2 * pagesize);
20246 if (!data2)
20247 return 1;
20248 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20249 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20250 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20251 return 1;
20252 for (i = 0; i < pagesize; ++i)
20253 if (*(data + i) != *(data2 + i))
20254 return 1;
20255
20256 /* Finally, make sure that changes to the mapped area do not
20257 percolate back to the file as seen by read(). (This is a bug on
20258 some variants of i386 svr4.0.) */
20259 for (i = 0; i < pagesize; ++i)
20260 *(data2 + i) = *(data2 + i) + 1;
20261 data3 = (char *) malloc (pagesize);
20262 if (!data3)
20263 return 1;
20264 if (read (fd, data3, pagesize) != pagesize)
20265 return 1;
20266 for (i = 0; i < pagesize; ++i)
20267 if (*(data + i) != *(data3 + i))
20268 return 1;
20269 close (fd);
20270 return 0;
20271}
20272_ACEOF
20273rm -f conftest$ac_exeext
20274if { (ac_try="$ac_link"
20275case "(($ac_try" in
20276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20277 *) ac_try_echo=$ac_try;;
20278esac
20279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20280 (eval "$ac_link") 2>&5
20281 ac_status=$?
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20284 { (case "(($ac_try" in
20285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20286 *) ac_try_echo=$ac_try;;
20287esac
20288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20289 (eval "$ac_try") 2>&5
20290 ac_status=$?
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; }; then
20293 ac_cv_func_mmap_fixed_mapped=yes
20294else
20295 echo "$as_me: program exited with status $ac_status" >&5
20296echo "$as_me: failed program was:" >&5
20297sed 's/^/| /' conftest.$ac_ext >&5
20298
20299( exit $ac_status )
20300ac_cv_func_mmap_fixed_mapped=no
20301fi
20302rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20303fi
20304
20305
20306fi
20307{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20308echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20309if test $ac_cv_func_mmap_fixed_mapped = yes; then
20310
20311cat >>confdefs.h <<\_ACEOF
20312#define HAVE_MMAP 1
20313_ACEOF
20314
20315fi
20316rm -f conftest.mmap
20317
20318 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20319echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20320if test "${ac_cv_func_mmap_file+set}" = set; then
20321 echo $ECHO_N "(cached) $ECHO_C" >&6
20322else
20323 ac_ext=c
20324ac_cpp='$CPP $CPPFLAGS'
20325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20327ac_compiler_gnu=$ac_cv_c_compiler_gnu
20328
20329 if test "$cross_compiling" = yes; then
20330 ac_cv_func_mmap_file=no
20331else
20332 cat >conftest.$ac_ext <<_ACEOF
20333
20334 /* confdefs.h. */
20335_ACEOF
20336cat confdefs.h >>conftest.$ac_ext
20337cat >>conftest.$ac_ext <<_ACEOF
20338/* end confdefs.h. */
20339
20340#include <sys/types.h>
20341#include <sys/mman.h>
20342#include <fcntl.h>
20343
20344int
20345main ()
20346{
20347
20348 int fd;
20349 fd = creat ("foo",0777);
20350 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20351 unlink ("foo");
20352 return (fd != (int) MAP_FAILED);
20353 ;
20354 return 0;
20355}
20356_ACEOF
20357rm -f conftest$ac_exeext
20358if { (ac_try="$ac_link"
20359case "(($ac_try" in
20360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20361 *) ac_try_echo=$ac_try;;
20362esac
20363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20364 (eval "$ac_link") 2>&5
20365 ac_status=$?
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20368 { (case "(($ac_try" in
20369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20370 *) ac_try_echo=$ac_try;;
20371esac
20372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20373 (eval "$ac_try") 2>&5
20374 ac_status=$?
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; }; then
20377 ac_cv_func_mmap_file=yes
20378else
20379 echo "$as_me: program exited with status $ac_status" >&5
20380echo "$as_me: failed program was:" >&5
20381sed 's/^/| /' conftest.$ac_ext >&5
20382
20383( exit $ac_status )
20384ac_cv_func_mmap_file=no
20385fi
20386rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20387fi
20388
20389
20390 ac_ext=c
20391ac_cpp='$CPP $CPPFLAGS'
20392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20394ac_compiler_gnu=$ac_cv_c_compiler_gnu
20395
20396
20397fi
20398{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20399echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20400if test "$ac_cv_func_mmap_file" = yes; then
20401
20402cat >>confdefs.h <<\_ACEOF
20403#define HAVE_MMAP_FILE
20404_ACEOF
20405
20406 MMAP_FILE=yes
20407
20408fi
20409
20410 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20411echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20412if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20413 echo $ECHO_N "(cached) $ECHO_C" >&6
20414else
20415 if test "$llvm_cv_os_type" = "Interix" ; then
20416 ac_cv_need_dev_zero_for_mmap=yes
20417 else
20418 ac_cv_need_dev_zero_for_mmap=no
20419 fi
20420
20421fi
20422{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20423echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20424if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20425
20426cat >>confdefs.h <<\_ACEOF
20427#define NEED_DEV_ZERO_FOR_MMAP 1
20428_ACEOF
20429
20430fi
20431
20432 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20433 then
20434 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20435echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20436 fi
20437 if test "$ac_cv_func_mmap_file" = "no"
20438 then
20439 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20440echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20441 fi
20442fi
20443
20444{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20445echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20446ac_ext=cpp
20447ac_cpp='$CXXCPP $CPPFLAGS'
20448ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20449ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20450ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20451
20452cat >conftest.$ac_ext <<_ACEOF
20453/* confdefs.h. */
20454_ACEOF
20455cat confdefs.h >>conftest.$ac_ext
20456cat >>conftest.$ac_ext <<_ACEOF
20457/* end confdefs.h. */
20458int main() {
20459 volatile unsigned long val = 1;
20460 __sync_synchronize();
20461 __sync_val_compare_and_swap(&val, 1, 0);
20462 __sync_add_and_fetch(&val, 1);
20463 __sync_sub_and_fetch(&val, 1);
20464 return 0;
20465 }
20466
20467_ACEOF
20468rm -f conftest.$ac_objext conftest$ac_exeext
20469if { (ac_try="$ac_link"
20470case "(($ac_try" in
20471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472 *) ac_try_echo=$ac_try;;
20473esac
20474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20475 (eval "$ac_link") 2>conftest.er1
20476 ac_status=$?
20477 grep -v '^ *+' conftest.er1 >conftest.err
20478 rm -f conftest.er1
20479 cat conftest.err >&5
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); } &&
20482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20483 { (case "(($ac_try" in
20484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485 *) ac_try_echo=$ac_try;;
20486esac
20487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20488 (eval "$ac_try") 2>&5
20489 ac_status=$?
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); }; } &&
20492 { ac_try='test -s conftest$ac_exeext'
20493 { (case "(($ac_try" in
20494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20495 *) ac_try_echo=$ac_try;;
20496esac
20497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20498 (eval "$ac_try") 2>&5
20499 ac_status=$?
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); }; }; then
20502 ac_ext=c
20503ac_cpp='$CPP $CPPFLAGS'
20504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20506ac_compiler_gnu=$ac_cv_c_compiler_gnu
20507
20508 { echo "$as_me:$LINENO: result: yes" >&5
20509echo "${ECHO_T}yes" >&6; }
20510
20511cat >>confdefs.h <<\_ACEOF
20512#define LLVM_HAS_ATOMICS 1
20513_ACEOF
20514
20515else
20516 echo "$as_me: failed program was:" >&5
20517sed 's/^/| /' conftest.$ac_ext >&5
20518
20519 { echo "$as_me:$LINENO: result: no" >&5
20520echo "${ECHO_T}no" >&6; }
20521
20522cat >>confdefs.h <<\_ACEOF
20523#define LLVM_HAS_ATOMICS 0
20524_ACEOF
20525
20526 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20527echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20528fi
20529
20530rm -f core conftest.err conftest.$ac_objext \
20531 conftest$ac_exeext conftest.$ac_ext
20532
20533
20534if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20535 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20536echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20537if test "${llvm_cv_linux_mixed+set}" = set; then
20538 echo $ECHO_N "(cached) $ECHO_C" >&6
20539else
20540 ac_ext=c
20541ac_cpp='$CPP $CPPFLAGS'
20542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20544ac_compiler_gnu=$ac_cv_c_compiler_gnu
20545
20546 cat >conftest.$ac_ext <<_ACEOF
20547/* confdefs.h. */
20548_ACEOF
20549cat confdefs.h >>conftest.$ac_ext
20550cat >>conftest.$ac_ext <<_ACEOF
20551/* end confdefs.h. */
20552#ifndef __x86_64__
20553 error: Not x86-64 even if uname says so!
20554 #endif
20555
20556int
20557main ()
20558{
20559
20560 ;
20561 return 0;
20562}
20563_ACEOF
20564rm -f conftest.$ac_objext
20565if { (ac_try="$ac_compile"
20566case "(($ac_try" in
20567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20568 *) ac_try_echo=$ac_try;;
20569esac
20570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20571 (eval "$ac_compile") 2>conftest.er1
20572 ac_status=$?
20573 grep -v '^ *+' conftest.er1 >conftest.err
20574 rm -f conftest.er1
20575 cat conftest.err >&5
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); } &&
20578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20579 { (case "(($ac_try" in
20580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581 *) ac_try_echo=$ac_try;;
20582esac
20583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20584 (eval "$ac_try") 2>&5
20585 ac_status=$?
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; } &&
20588 { ac_try='test -s conftest.$ac_objext'
20589 { (case "(($ac_try" in
20590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20591 *) ac_try_echo=$ac_try;;
20592esac
20593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20594 (eval "$ac_try") 2>&5
20595 ac_status=$?
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); }; }; then
20598 llvm_cv_linux_mixed=no
20599else
20600 echo "$as_me: failed program was:" >&5
20601sed 's/^/| /' conftest.$ac_ext >&5
20602
20603 llvm_cv_linux_mixed=yes
20604fi
20605
20606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20607 ac_ext=c
20608ac_cpp='$CPP $CPPFLAGS'
20609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20611ac_compiler_gnu=$ac_cv_c_compiler_gnu
20612
20613
20614fi
20615{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20616echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20617
20618 if test "$llvm_cv_linux_mixed" = "yes"; then
20619 llvm_cv_target_arch="x86"
20620 ARCH="x86"
20621 fi
20622fi
20623
20624
20625for ac_func in __dso_handle
20626do
20627as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20628{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20629echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20630if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20631 echo $ECHO_N "(cached) $ECHO_C" >&6
20632else
20633 cat >conftest.$ac_ext <<_ACEOF
20634/* confdefs.h. */
20635_ACEOF
20636cat confdefs.h >>conftest.$ac_ext
20637cat >>conftest.$ac_ext <<_ACEOF
20638/* end confdefs.h. */
20639/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20641#define $ac_func innocuous_$ac_func
20642
20643/* System header to define __stub macros and hopefully few prototypes,
20644 which can conflict with char $ac_func (); below.
20645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20646 <limits.h> exists even on freestanding compilers. */
20647
20648#ifdef __STDC__
20649# include <limits.h>
20650#else
20651# include <assert.h>
20652#endif
20653
20654#undef $ac_func
20655
20656/* Override any GCC internal prototype to avoid an error.
20657 Use char because int might match the return type of a GCC
20658 builtin and then its argument prototype would still apply. */
20659#ifdef __cplusplus
20660extern "C"
20661#endif
20662char $ac_func ();
20663/* The GNU C library defines this for functions which it implements
20664 to always fail with ENOSYS. Some functions are actually named
20665 something starting with __ and the normal name is an alias. */
20666#if defined __stub_$ac_func || defined __stub___$ac_func
20667choke me
20668#endif
20669
20670int
20671main ()
20672{
20673return $ac_func ();
20674 ;
20675 return 0;
20676}
20677_ACEOF
20678rm -f conftest.$ac_objext conftest$ac_exeext
20679if { (ac_try="$ac_link"
20680case "(($ac_try" in
20681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20682 *) ac_try_echo=$ac_try;;
20683esac
20684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20685 (eval "$ac_link") 2>conftest.er1
20686 ac_status=$?
20687 grep -v '^ *+' conftest.er1 >conftest.err
20688 rm -f conftest.er1
20689 cat conftest.err >&5
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); } &&
20692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20693 { (case "(($ac_try" in
20694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695 *) ac_try_echo=$ac_try;;
20696esac
20697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20698 (eval "$ac_try") 2>&5
20699 ac_status=$?
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); }; } &&
20702 { ac_try='test -s conftest$ac_exeext'
20703 { (case "(($ac_try" in
20704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705 *) ac_try_echo=$ac_try;;
20706esac
20707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708 (eval "$ac_try") 2>&5
20709 ac_status=$?
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); }; }; then
20712 eval "$as_ac_var=yes"
20713else
20714 echo "$as_me: failed program was:" >&5
20715sed 's/^/| /' conftest.$ac_ext >&5
20716
20717 eval "$as_ac_var=no"
20718fi
20719
20720rm -f core conftest.err conftest.$ac_objext \
20721 conftest$ac_exeext conftest.$ac_ext
20722fi
20723ac_res=`eval echo '${'$as_ac_var'}'`
20724 { echo "$as_me:$LINENO: result: $ac_res" >&5
20725echo "${ECHO_T}$ac_res" >&6; }
20726if test `eval echo '${'$as_ac_var'}'` = yes; then
20727 cat >>confdefs.h <<_ACEOF
20728#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20729_ACEOF
20730
20731fi
20732done
20733
20734
20735SHLIBEXT=$libltdl_cv_shlibext
20736
20737
20738SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20739
20740
20741# Translate the various configuration directories and other basic
20742# information into substitutions that will end up in Makefile.config.in
20743# that these configured values can be used by the makefiles
20744if test "${prefix}" = "NONE" ; then
20745 prefix="/usr/local"
20746fi
20747eval LLVM_PREFIX="${prefix}";
20748eval LLVM_BINDIR="${prefix}/bin";
20749eval LLVM_LIBDIR="${prefix}/lib";
20750eval LLVM_DATADIR="${prefix}/share/llvm";
20751eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20752eval LLVM_ETCDIR="${prefix}/etc/llvm";
20753eval LLVM_INCLUDEDIR="${prefix}/include";
20754eval LLVM_INFODIR="${prefix}/info";
20755eval LLVM_MANDIR="${prefix}/man";
20756LLVM_CONFIGTIME=`date`
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768# Place the various directores into the config.h file as #defines so that we
20769# can know about the installation paths within LLVM.
20770
20771cat >>confdefs.h <<_ACEOF
20772#define LLVM_PREFIX "$LLVM_PREFIX"
20773_ACEOF
20774
20775
20776cat >>confdefs.h <<_ACEOF
20777#define LLVM_BINDIR "$LLVM_BINDIR"
20778_ACEOF
20779
20780
20781cat >>confdefs.h <<_ACEOF
20782#define LLVM_LIBDIR "$LLVM_LIBDIR"
20783_ACEOF
20784
20785
20786cat >>confdefs.h <<_ACEOF
20787#define LLVM_DATADIR "$LLVM_DATADIR"
20788_ACEOF
20789
20790
20791cat >>confdefs.h <<_ACEOF
20792#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20793_ACEOF
20794
20795
20796cat >>confdefs.h <<_ACEOF
20797#define LLVM_ETCDIR "$LLVM_ETCDIR"
20798_ACEOF
20799
20800
20801cat >>confdefs.h <<_ACEOF
20802#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20803_ACEOF
20804
20805
20806cat >>confdefs.h <<_ACEOF
20807#define LLVM_INFODIR "$LLVM_INFODIR"
20808_ACEOF
20809
20810
20811cat >>confdefs.h <<_ACEOF
20812#define LLVM_MANDIR "$LLVM_MANDIR"
20813_ACEOF
20814
20815
20816cat >>confdefs.h <<_ACEOF
20817#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20818_ACEOF
20819
20820
20821cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020822#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020823_ACEOF
20824
20825
20826# Determine which bindings to build.
20827if test "$BINDINGS_TO_BUILD" = auto ; then
20828 BINDINGS_TO_BUILD=""
20829 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20830 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20831 fi
20832fi
20833BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20834
20835
20836# This isn't really configurey, but it avoids having to repeat the list in
20837# other files.
20838ALL_BINDINGS=ocaml
20839
20840
20841# Do any work necessary to ensure that bindings have what they need.
20842binding_prereqs_failed=0
20843for a_binding in $BINDINGS_TO_BUILD ; do
20844 case "$a_binding" in
20845 ocaml)
20846 if test "x$OCAMLC" = x ; then
20847 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20848echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20849 binding_prereqs_failed=1
20850 fi
20851 if test "x$OCAMLDEP" = x ; then
20852 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20853echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20854 binding_prereqs_failed=1
20855 fi
20856 if test "x$OCAMLOPT" = x ; then
20857 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20858echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20859 fi
20860 if test "x$with_ocaml_libdir" != xauto ; then
20861 OCAML_LIBDIR=$with_ocaml_libdir
20862
20863 else
20864 ocaml_stdlib="`"$OCAMLC" -where`"
20865 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20866 then
20867 # ocaml stdlib is beneath our prefix; use stdlib
20868 OCAML_LIBDIR=$ocaml_stdlib
20869
20870 else
20871 # ocaml stdlib is outside our prefix; use libdir/ocaml
20872 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20873
20874 fi
20875 fi
20876 ;;
20877 esac
20878done
20879if test "$binding_prereqs_failed" = 1 ; then
20880 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20881echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20882 { (exit 1); exit 1; }; }
20883fi
20884
20885{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20886echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20887if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20888 echo $ECHO_N "(cached) $ECHO_C" >&6
20889else
20890 ac_ext=cpp
20891ac_cpp='$CXXCPP $CPPFLAGS'
20892ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20893ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20894ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20895
20896 oldcxxflags="$CXXFLAGS"
20897 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20898 cat >conftest.$ac_ext <<_ACEOF
20899/* confdefs.h. */
20900_ACEOF
20901cat confdefs.h >>conftest.$ac_ext
20902cat >>conftest.$ac_ext <<_ACEOF
20903/* end confdefs.h. */
20904
20905int
20906main ()
20907{
20908
20909 ;
20910 return 0;
20911}
20912_ACEOF
20913rm -f conftest.$ac_objext
20914if { (ac_try="$ac_compile"
20915case "(($ac_try" in
20916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20917 *) ac_try_echo=$ac_try;;
20918esac
20919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20920 (eval "$ac_compile") 2>conftest.er1
20921 ac_status=$?
20922 grep -v '^ *+' conftest.er1 >conftest.err
20923 rm -f conftest.er1
20924 cat conftest.err >&5
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); } &&
20927 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20928 { (case "(($ac_try" in
20929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20930 *) ac_try_echo=$ac_try;;
20931esac
20932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20933 (eval "$ac_try") 2>&5
20934 ac_status=$?
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); }; } &&
20937 { ac_try='test -s conftest.$ac_objext'
20938 { (case "(($ac_try" in
20939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20940 *) ac_try_echo=$ac_try;;
20941esac
20942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20943 (eval "$ac_try") 2>&5
20944 ac_status=$?
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); }; }; then
20947 llvm_cv_cxx_visibility_inlines_hidden=yes
20948else
20949 echo "$as_me: failed program was:" >&5
20950sed 's/^/| /' conftest.$ac_ext >&5
20951
20952 llvm_cv_cxx_visibility_inlines_hidden=no
20953fi
20954
20955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20956 CXXFLAGS="$oldcxxflags"
20957 ac_ext=c
20958ac_cpp='$CPP $CPPFLAGS'
20959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20961ac_compiler_gnu=$ac_cv_c_compiler_gnu
20962
20963
20964fi
20965{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20966echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20967if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20968 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20969
20970else
20971 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20972
20973fi
20974
20975
20976if test "$llvm_cv_link_use_r" = "yes" ; then
20977 RPATH="-Wl,-R"
20978else
20979 RPATH="-Wl,-rpath"
20980fi
20981
20982
20983if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20984 RDYNAMIC="-Wl,-export-dynamic"
20985else
20986 RDYNAMIC=""
20987fi
20988
20989
20990
Reid Spencer421ec052005-02-24 18:53:47 +000020991
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020992ac_config_files="$ac_config_files Makefile.common"
John Criswell451f67f2003-10-16 01:45:35 +000020993
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020994ac_config_files="$ac_config_files Makefile.llvm.config"
20995
John Criswell451f67f2003-10-16 01:45:35 +000020996
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020997ac_config_commands="$ac_config_commands Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020998
20999
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021000ac_config_commands="$ac_config_commands lib/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000021001
21002
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021003ac_config_commands="$ac_config_commands lib/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000021004
21005
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021006ac_config_commands="$ac_config_commands tools/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000021007
21008
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021009ac_config_commands="$ac_config_commands tools/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000021010
21011
21012
John Criswell451f67f2003-10-16 01:45:35 +000021013cat >confcache <<\_ACEOF
21014# This file is a shell script that caches the results of configure
21015# tests run on this system so they can be shared between configure
21016# scripts and configure runs, see configure's option --config-cache.
21017# It is not useful on other systems. If it contains results you don't
21018# want to keep, you may remove or edit it.
21019#
21020# config.status only pays attention to the cache file if you give it
21021# the --recheck option to rerun configure.
21022#
21023# `ac_cv_env_foo' variables (set or unset) will be overridden when
21024# loading this file, other *unset* `ac_cv_foo' will be assigned the
21025# following values.
21026
21027_ACEOF
21028
21029# The following way of writing the cache mishandles newlines in values,
21030# but we know of no workaround that is simple, portable, and efficient.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021031# So, we kill variables containing newlines.
John Criswell451f67f2003-10-16 01:45:35 +000021032# Ultrix sh set writes to stderr and can't be redirected directly,
21033# and sets the high bit in the cache file unless we assign to the vars.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021034(
21035 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21036 eval ac_val=\$$ac_var
21037 case $ac_val in #(
21038 *${as_nl}*)
21039 case $ac_var in #(
21040 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21041echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21042 esac
21043 case $ac_var in #(
21044 _ | IFS | as_nl) ;; #(
21045 *) $as_unset $ac_var ;;
21046 esac ;;
21047 esac
21048 done
21049
John Criswell451f67f2003-10-16 01:45:35 +000021050 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021051 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21052 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +000021053 # `set' does not quote correctly, so add quotes (double-quote
21054 # substitution turns \\\\ into \\, and sed turns \\ into \).
21055 sed -n \
Reid Spencer9964cd82005-01-01 09:26:55 +000021056 "s/'/'\\\\''/g;
21057 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021058 ;; #(
John Criswell451f67f2003-10-16 01:45:35 +000021059 *)
21060 # `set' quotes correctly as required by POSIX, so do not add quotes.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021061 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell451f67f2003-10-16 01:45:35 +000021062 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021063 esac |
21064 sort
21065) |
John Criswell451f67f2003-10-16 01:45:35 +000021066 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021067 /^ac_cv_env_/b end
John Criswell451f67f2003-10-16 01:45:35 +000021068 t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021069 :clear
John Criswell451f67f2003-10-16 01:45:35 +000021070 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21071 t end
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021072 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21073 :end' >>confcache
21074if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21075 if test -w "$cache_file"; then
21076 test "x$cache_file" != "x/dev/null" &&
21077 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21078echo "$as_me: updating cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000021079 cat confcache >$cache_file
21080 else
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021081 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21082echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000021083 fi
21084fi
21085rm -f confcache
21086
21087test "x$prefix" = xNONE && prefix=$ac_default_prefix
21088# Let make expand exec_prefix.
21089test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21090
John Criswell451f67f2003-10-16 01:45:35 +000021091# Transform confdefs.h into DEFS.
21092# Protect against shell expansion while executing Makefile rules.
21093# Protect against Makefile macro expansion.
21094#
21095# If the first sed substitution is executed (which looks for macros that
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021096# take arguments), then branch to the quote section. Otherwise,
John Criswell451f67f2003-10-16 01:45:35 +000021097# look for a macro that doesn't take arguments.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021098ac_script='
John Criswell451f67f2003-10-16 01:45:35 +000021099t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021100:clear
21101s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000021102t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021103s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000021104t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021105b any
21106:quote
21107s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21108s/\[/\\&/g
21109s/\]/\\&/g
21110s/\$/$$/g
21111H
21112:any
21113${
21114 g
21115 s/^\n//
21116 s/\n/ /g
21117 p
21118}
21119'
21120DEFS=`sed -n "$ac_script" confdefs.h`
John Criswell451f67f2003-10-16 01:45:35 +000021121
21122
21123ac_libobjs=
21124ac_ltlibobjs=
21125for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21126 # 1. Remove the extension, and $U if already installed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021127 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21128 ac_i=`echo "$ac_i" | sed "$ac_script"`
21129 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21130 # will be set to the directory where LIBOBJS objects are built.
21131 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21132 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell451f67f2003-10-16 01:45:35 +000021133done
21134LIBOBJS=$ac_libobjs
21135
21136LTLIBOBJS=$ac_ltlibobjs
21137
21138
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021139if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21140 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21141Usually this means the macro was only invoked conditionally." >&5
21142echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21143Usually this means the macro was only invoked conditionally." >&2;}
21144 { (exit 1); exit 1; }; }
21145fi
21146if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21147 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21148Usually this means the macro was only invoked conditionally." >&5
21149echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21150Usually this means the macro was only invoked conditionally." >&2;}
21151 { (exit 1); exit 1; }; }
21152fi
John Criswell451f67f2003-10-16 01:45:35 +000021153
21154: ${CONFIG_STATUS=./config.status}
21155ac_clean_files_save=$ac_clean_files
21156ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21157{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21158echo "$as_me: creating $CONFIG_STATUS" >&6;}
21159cat >$CONFIG_STATUS <<_ACEOF
21160#! $SHELL
21161# Generated by $as_me.
21162# Run this file to recreate the current configuration.
21163# Compiler output produced by configure, useful for debugging
21164# configure, is in config.log if it exists.
21165
21166debug=false
21167ac_cs_recheck=false
21168ac_cs_silent=false
21169SHELL=\${CONFIG_SHELL-$SHELL}
21170_ACEOF
21171
21172cat >>$CONFIG_STATUS <<\_ACEOF
21173## --------------------- ##
21174## M4sh Initialization. ##
21175## --------------------- ##
21176
Dan Gohman324f6082009-03-25 00:52:11 +000021177# Be Bourne compatible
John Criswell451f67f2003-10-16 01:45:35 +000021178if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21179 emulate sh
21180 NULLCMD=:
21181 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21182 # is contrary to our usage. Disable this feature.
21183 alias -g '${1+"$@"}'='"$@"'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021184 setopt NO_GLOB_SUBST
21185else
21186 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohman324f6082009-03-25 00:52:11 +000021187fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021188BIN_SH=xpg4; export BIN_SH # for Tru64
Dan Gohman324f6082009-03-25 00:52:11 +000021189DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmand02a2812009-03-24 23:47:11 +000021190
John Criswell451f67f2003-10-16 01:45:35 +000021191
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021192# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +000021193# Avoid depending upon Character Ranges.
21194as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21195as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21196as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21197as_cr_digits='0123456789'
21198as_cr_alnum=$as_cr_Letters$as_cr_digits
21199
21200# The user is always right.
21201if test "${PATH_SEPARATOR+set}" != set; then
21202 echo "#! /bin/sh" >conf$$.sh
21203 echo "exit 0" >>conf$$.sh
21204 chmod +x conf$$.sh
21205 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21206 PATH_SEPARATOR=';'
21207 else
21208 PATH_SEPARATOR=:
21209 fi
21210 rm -f conf$$.sh
21211fi
21212
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021213# Support unset when possible.
21214if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21215 as_unset=unset
21216else
21217 as_unset=false
21218fi
John Criswell451f67f2003-10-16 01:45:35 +000021219
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021220
21221# IFS
21222# We need space, tab and new line, in precisely that order. Quoting is
21223# there to prevent editors from complaining about space-tab.
21224# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21225# splitting by setting IFS to empty value.)
21226as_nl='
21227'
21228IFS=" "" $as_nl"
21229
21230# Find who we are. Look in the path if we contain no directory separator.
21231case $0 in
21232 *[\\/]* ) as_myself=$0 ;;
21233 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +000021234for as_dir in $PATH
21235do
21236 IFS=$as_save_IFS
21237 test -z "$as_dir" && as_dir=.
21238 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21239done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021240IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +000021241
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021242 ;;
21243esac
21244# We did not find ourselves, most probably we were run as `sh COMMAND'
21245# in which case we are not to be found in the path.
21246if test "x$as_myself" = x; then
21247 as_myself=$0
21248fi
21249if test ! -f "$as_myself"; then
21250 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21251 { (exit 1); exit 1; }
21252fi
21253
21254# Work around bugs in pre-3.0 UWIN ksh.
21255for as_var in ENV MAIL MAILPATH
21256do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21257done
21258PS1='$ '
21259PS2='> '
21260PS4='+ '
21261
21262# NLS nuisances.
21263for as_var in \
21264 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21265 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21266 LC_TELEPHONE LC_TIME
Dan Gohman324f6082009-03-25 00:52:11 +000021267do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021268 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21269 eval $as_var=C; export $as_var
21270 else
21271 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21272 fi
21273done
21274
21275# Required to use basename.
21276if expr a : '\(a\)' >/dev/null 2>&1 &&
21277 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21278 as_expr=expr
21279else
21280 as_expr=false
21281fi
21282
21283if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21284 as_basename=basename
21285else
21286 as_basename=false
21287fi
21288
21289
21290# Name of the executable.
21291as_me=`$as_basename -- "$0" ||
21292$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21293 X"$0" : 'X\(//\)$' \| \
21294 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21295echo X/"$0" |
21296 sed '/^.*\/\([^/][^/]*\)\/*$/{
21297 s//\1/
21298 q
21299 }
21300 /^X\/\(\/\/\)$/{
21301 s//\1/
21302 q
21303 }
21304 /^X\/\(\/\).*/{
21305 s//\1/
21306 q
21307 }
21308 s/.*/./; q'`
21309
21310# CDPATH.
21311$as_unset CDPATH
21312
21313
21314
John Criswell451f67f2003-10-16 01:45:35 +000021315 as_lineno_1=$LINENO
21316 as_lineno_2=$LINENO
John Criswell451f67f2003-10-16 01:45:35 +000021317 test "x$as_lineno_1" != "x$as_lineno_2" &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021318 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +000021319
21320 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21321 # uniformly replaced by the line number. The first 'sed' inserts a
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021322 # line-number line after each line using $LINENO; the second 'sed'
21323 # does the real work. The second script uses 'N' to pair each
21324 # line-number line with the line containing $LINENO, and appends
21325 # trailing '-' during substitution so that $LINENO is not a special
21326 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +000021327 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021328 # scripts with optimization help from Paolo Bonzini. Blame Lee
21329 # E. McMahon (1931-1989) for sed's syntax. :-)
21330 sed -n '
21331 p
21332 /[$]LINENO/=
21333 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +000021334 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021335 s/[$]LINENO.*/&-/
21336 t lineno
21337 b
21338 :lineno
John Criswell451f67f2003-10-16 01:45:35 +000021339 N
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021340 :loop
21341 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +000021342 t loop
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021343 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +000021344 ' >$as_me.lineno &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021345 chmod +x "$as_me.lineno" ||
21346 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell451f67f2003-10-16 01:45:35 +000021347 { (exit 1); exit 1; }; }
21348
21349 # Don't try to exec as it changes $[0], causing all sort of problems
21350 # (the dirname of $[0] is not the place where we might find the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021351 # original and so on. Autoconf is especially sensitive to this).
21352 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +000021353 # Exit status is that of the last command.
21354 exit
21355}
21356
21357
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021358if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21359 as_dirname=dirname
21360else
21361 as_dirname=false
21362fi
21363
21364ECHO_C= ECHO_N= ECHO_T=
21365case `echo -n x` in
21366-n*)
21367 case `echo 'x\c'` in
21368 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21369 *) ECHO_C='\c';;
21370 esac;;
21371*)
21372 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +000021373esac
21374
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021375if expr a : '\(a\)' >/dev/null 2>&1 &&
21376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +000021377 as_expr=expr
21378else
21379 as_expr=false
21380fi
21381
21382rm -f conf$$ conf$$.exe conf$$.file
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021383if test -d conf$$.dir; then
21384 rm -f conf$$.dir/conf$$.file
21385else
21386 rm -f conf$$.dir
21387 mkdir conf$$.dir
21388fi
John Criswell451f67f2003-10-16 01:45:35 +000021389echo >conf$$.file
21390if ln -s conf$$.file conf$$ 2>/dev/null; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021391 as_ln_s='ln -s'
21392 # ... but there are two gotchas:
21393 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21394 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21395 # In both cases, we have to default to `cp -p'.
21396 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +000021397 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +000021398elif ln conf$$.file conf$$ 2>/dev/null; then
21399 as_ln_s=ln
21400else
21401 as_ln_s='cp -p'
21402fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021403rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21404rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +000021405
21406if mkdir -p . 2>/dev/null; then
21407 as_mkdir_p=:
21408else
Reid Spencer9964cd82005-01-01 09:26:55 +000021409 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +000021410 as_mkdir_p=false
21411fi
21412
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021413# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21414# systems may use methods other than mode bits to determine executability.
21415cat >conf$$.file <<_ASEOF
21416#! /bin/sh
21417exit 0
21418_ASEOF
21419chmod +x conf$$.file
21420if test -x conf$$.file >/dev/null 2>&1; then
21421 as_executable_p="test -x"
21422else
21423 as_executable_p=:
21424fi
21425rm -f conf$$.file
John Criswell451f67f2003-10-16 01:45:35 +000021426
21427# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021428as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021429
21430# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021431as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021432
21433
John Criswell451f67f2003-10-16 01:45:35 +000021434exec 6>&1
21435
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021436# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell451f67f2003-10-16 01:45:35 +000021437# report actual input values of CONFIG_FILES etc. instead of their
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021438# values after options handling.
21439ac_log="
John Criswell451f67f2003-10-16 01:45:35 +000021440This file was extended by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021441generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +000021442
21443 CONFIG_FILES = $CONFIG_FILES
21444 CONFIG_HEADERS = $CONFIG_HEADERS
21445 CONFIG_LINKS = $CONFIG_LINKS
21446 CONFIG_COMMANDS = $CONFIG_COMMANDS
21447 $ $0 $@
21448
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021449on `(hostname || uname -n) 2>/dev/null | sed 1q`
21450"
21451
John Criswell451f67f2003-10-16 01:45:35 +000021452_ACEOF
21453
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021454cat >>$CONFIG_STATUS <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021455# Files that config.status was made for.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021456config_files="$ac_config_files"
21457config_commands="$ac_config_commands"
John Criswell451f67f2003-10-16 01:45:35 +000021458
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021459_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021460
21461cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021462ac_cs_usage="\
21463\`$as_me' instantiates files from templates according to the
21464current configuration.
21465
21466Usage: $0 [OPTIONS] [FILE]...
21467
21468 -h, --help print this help, then exit
Dan Gohman324f6082009-03-25 00:52:11 +000021469 -V, --version print version number, then exit
John Criswell451f67f2003-10-16 01:45:35 +000021470 -q, --quiet do not print progress messages
21471 -d, --debug don't remove temporary files
21472 --recheck update $as_me by reconfiguring in the same conditions
21473 --file=FILE[:TEMPLATE]
Reid Spencer9964cd82005-01-01 09:26:55 +000021474 instantiate the configuration file FILE
John Criswell451f67f2003-10-16 01:45:35 +000021475
21476Configuration files:
21477$config_files
21478
21479Configuration commands:
21480$config_commands
21481
21482Report bugs to <bug-autoconf@gnu.org>."
Dan Gohman324f6082009-03-25 00:52:11 +000021483
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021484_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021485cat >>$CONFIG_STATUS <<_ACEOF
21486ac_cs_version="\\
21487[SAMPLE] config.status [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021488configured by $0, generated by GNU Autoconf 2.60,
21489 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell451f67f2003-10-16 01:45:35 +000021490
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021491Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +000021492This config.status script is free software; the Free Software Foundation
21493gives unlimited permission to copy, distribute and modify it."
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021494
21495ac_pwd='$ac_pwd'
21496srcdir='$srcdir'
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021497INSTALL='$INSTALL'
John Criswell451f67f2003-10-16 01:45:35 +000021498_ACEOF
21499
21500cat >>$CONFIG_STATUS <<\_ACEOF
21501# If no file are specified by the user, then we need to provide default
21502# value. By we need to know if files were specified by the user.
21503ac_need_defaults=:
21504while test $# != 0
21505do
21506 case $1 in
21507 --*=*)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021508 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21509 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell451f67f2003-10-16 01:45:35 +000021510 ac_shift=:
21511 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021512 *)
John Criswell451f67f2003-10-16 01:45:35 +000021513 ac_option=$1
21514 ac_optarg=$2
21515 ac_shift=shift
21516 ;;
John Criswell451f67f2003-10-16 01:45:35 +000021517 esac
21518
21519 case $ac_option in
21520 # Handling of the options.
John Criswell451f67f2003-10-16 01:45:35 +000021521 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21522 ac_cs_recheck=: ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021523 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21524 echo "$ac_cs_version"; exit ;;
21525 --debug | --debu | --deb | --de | --d | -d )
John Criswell451f67f2003-10-16 01:45:35 +000021526 debug=: ;;
21527 --file | --fil | --fi | --f )
21528 $ac_shift
21529 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21530 ac_need_defaults=false;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021531 --he | --h | --help | --hel | -h )
21532 echo "$ac_cs_usage"; exit ;;
John Criswell451f67f2003-10-16 01:45:35 +000021533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21534 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21535 ac_cs_silent=: ;;
21536
21537 # This is an error.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021538 -*) { echo "$as_me: error: unrecognized option: $1
21539Try \`$0 --help' for more information." >&2
John Criswell451f67f2003-10-16 01:45:35 +000021540 { (exit 1); exit 1; }; } ;;
21541
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021542 *) ac_config_targets="$ac_config_targets $1"
21543 ac_need_defaults=false ;;
John Criswell451f67f2003-10-16 01:45:35 +000021544
21545 esac
21546 shift
21547done
21548
21549ac_configure_extra_args=
21550
21551if $ac_cs_silent; then
21552 exec 6>/dev/null
21553 ac_configure_extra_args="$ac_configure_extra_args --silent"
21554fi
21555
21556_ACEOF
21557cat >>$CONFIG_STATUS <<_ACEOF
21558if \$ac_cs_recheck; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021559 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21560 CONFIG_SHELL=$SHELL
21561 export CONFIG_SHELL
21562 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell451f67f2003-10-16 01:45:35 +000021563fi
21564
21565_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021566cat >>$CONFIG_STATUS <<\_ACEOF
21567exec 5>>config.log
21568{
21569 echo
21570 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21571## Running $as_me. ##
21572_ASBOX
21573 echo "$ac_log"
21574} >&5
John Criswell451f67f2003-10-16 01:45:35 +000021575
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021576_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021577cat >>$CONFIG_STATUS <<_ACEOF
21578#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021579# INIT-COMMANDS
John Criswell451f67f2003-10-16 01:45:35 +000021580#
Reid Spencer421ec052005-02-24 18:53:47 +000021581llvm_src="${LLVM_SRC}"
John Criswell451f67f2003-10-16 01:45:35 +000021582
21583_ACEOF
21584
Dan Gohman324f6082009-03-25 00:52:11 +000021585cat >>$CONFIG_STATUS <<\_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021586
21587# Handling of arguments.
John Criswell451f67f2003-10-16 01:45:35 +000021588for ac_config_target in $ac_config_targets
21589do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021590 case $ac_config_target in
21591 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21592 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021593 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021594 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21595 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21596 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21597 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21598 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21599
John Criswell451f67f2003-10-16 01:45:35 +000021600 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21601echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21602 { (exit 1); exit 1; }; };;
21603 esac
21604done
21605
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021606
John Criswell451f67f2003-10-16 01:45:35 +000021607# If the user did not use the arguments to specify the items to instantiate,
21608# then the envvar interface is used. Set only those that are not.
21609# We use the long form for the default assignment because of an extremely
21610# bizarre bug on SunOS 4.1.3.
21611if $ac_need_defaults; then
21612 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21613 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21614fi
21615
21616# Have a temporary directory for convenience. Make it in the build tree
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021617# simply because there is no reason against having it here, and in addition,
John Criswell451f67f2003-10-16 01:45:35 +000021618# creating and moving files from /tmp can sometimes cause problems.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021619# Hook for its removal unless debugging.
21620# Note that there is a small window in which the directory will not be cleaned:
21621# after its creation but before its name has been assigned to `$tmp'.
John Criswell451f67f2003-10-16 01:45:35 +000021622$debug ||
21623{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021624 tmp=
21625 trap 'exit_status=$?
21626 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21627' 0
John Criswell451f67f2003-10-16 01:45:35 +000021628 trap '{ (exit 1); exit 1; }' 1 2 13 15
21629}
John Criswell451f67f2003-10-16 01:45:35 +000021630# Create a (secure) tmp directory for tmp files.
21631
21632{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021633 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell451f67f2003-10-16 01:45:35 +000021634 test -n "$tmp" && test -d "$tmp"
21635} ||
21636{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021637 tmp=./conf$$-$RANDOM
21638 (umask 077 && mkdir "$tmp")
John Criswell451f67f2003-10-16 01:45:35 +000021639} ||
21640{
21641 echo "$me: cannot create a temporary directory in ." >&2
21642 { (exit 1); exit 1; }
21643}
21644
John Criswell451f67f2003-10-16 01:45:35 +000021645#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021646# Set up the sed scripts for CONFIG_FILES section.
John Criswell451f67f2003-10-16 01:45:35 +000021647#
21648
21649# No need to generate the scripts if there are no CONFIG_FILES.
21650# This happens for instance when ./config.status config.h
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021651if test -n "$CONFIG_FILES"; then
John Criswell451f67f2003-10-16 01:45:35 +000021652
21653_ACEOF
21654
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021655
21656
21657ac_delim='%!_!# '
21658for ac_last_try in false false false false false :; do
21659 cat >conf$$subs.sed <<_ACEOF
21660SHELL!$SHELL$ac_delim
21661PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21662PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21663PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21664PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21665PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21666PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21667exec_prefix!$exec_prefix$ac_delim
21668prefix!$prefix$ac_delim
21669program_transform_name!$program_transform_name$ac_delim
21670bindir!$bindir$ac_delim
21671sbindir!$sbindir$ac_delim
21672libexecdir!$libexecdir$ac_delim
21673datarootdir!$datarootdir$ac_delim
21674datadir!$datadir$ac_delim
21675sysconfdir!$sysconfdir$ac_delim
21676sharedstatedir!$sharedstatedir$ac_delim
21677localstatedir!$localstatedir$ac_delim
21678includedir!$includedir$ac_delim
21679oldincludedir!$oldincludedir$ac_delim
21680docdir!$docdir$ac_delim
21681infodir!$infodir$ac_delim
21682htmldir!$htmldir$ac_delim
21683dvidir!$dvidir$ac_delim
21684pdfdir!$pdfdir$ac_delim
21685psdir!$psdir$ac_delim
21686libdir!$libdir$ac_delim
21687localedir!$localedir$ac_delim
21688mandir!$mandir$ac_delim
21689DEFS!$DEFS$ac_delim
21690ECHO_C!$ECHO_C$ac_delim
21691ECHO_N!$ECHO_N$ac_delim
21692ECHO_T!$ECHO_T$ac_delim
21693LIBS!$LIBS$ac_delim
21694build_alias!$build_alias$ac_delim
21695host_alias!$host_alias$ac_delim
21696target_alias!$target_alias$ac_delim
21697LLVM_SRC!$LLVM_SRC$ac_delim
21698LLVM_OBJ!$LLVM_OBJ$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021699LLVM_VERSION!$LLVM_VERSION$ac_delim
21700CC!$CC$ac_delim
21701CFLAGS!$CFLAGS$ac_delim
21702LDFLAGS!$LDFLAGS$ac_delim
21703CPPFLAGS!$CPPFLAGS$ac_delim
21704ac_ct_CC!$ac_ct_CC$ac_delim
21705EXEEXT!$EXEEXT$ac_delim
21706OBJEXT!$OBJEXT$ac_delim
21707CXX!$CXX$ac_delim
21708CXXFLAGS!$CXXFLAGS$ac_delim
21709ac_ct_CXX!$ac_ct_CXX$ac_delim
21710CPP!$CPP$ac_delim
21711ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21712LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21713subdirs!$subdirs$ac_delim
21714build!$build$ac_delim
21715build_cpu!$build_cpu$ac_delim
21716build_vendor!$build_vendor$ac_delim
21717build_os!$build_os$ac_delim
21718host!$host$ac_delim
21719host_cpu!$host_cpu$ac_delim
21720host_vendor!$host_vendor$ac_delim
21721host_os!$host_os$ac_delim
21722target!$target$ac_delim
21723target_cpu!$target_cpu$ac_delim
21724target_vendor!$target_vendor$ac_delim
21725target_os!$target_os$ac_delim
21726OS!$OS$ac_delim
21727HOST_OS!$HOST_OS$ac_delim
21728TARGET_OS!$TARGET_OS$ac_delim
21729LINKALL!$LINKALL$ac_delim
21730NOLINKALL!$NOLINKALL$ac_delim
21731LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21732LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21733ARCH!$ARCH$ac_delim
21734ENDIAN!$ENDIAN$ac_delim
21735GREP!$GREP$ac_delim
21736EGREP!$EGREP$ac_delim
21737LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21738BUILD_CC!$BUILD_CC$ac_delim
21739BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21740BUILD_CXX!$BUILD_CXX$ac_delim
21741CVSBUILD!$CVSBUILD$ac_delim
21742ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21743ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21744DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21745ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21746EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21747DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21748DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21749JIT!$JIT$ac_delim
21750TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21751ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21752ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21753ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21754ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21755ENABLE_PIC!$ENABLE_PIC$ac_delim
21756ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021757_ACEOF
21758
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021759 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021760 break
21761 elif $ac_last_try; then
21762 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21763echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21764 { (exit 1); exit 1; }; }
21765 else
21766 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell451f67f2003-10-16 01:45:35 +000021767 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021768done
21769
21770ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21771if test -n "$ac_eof"; then
21772 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21773 ac_eof=`expr $ac_eof + 1`
21774fi
21775
21776cat >>$CONFIG_STATUS <<_ACEOF
21777cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021778/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21779_ACEOF
21780sed '
21781s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21782s/^/s,@/; s/!/@,|#_!!_#|/
21783:n
21784t n
21785s/'"$ac_delim"'$/,g/; t
21786s/$/\\/; p
21787N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21788' >>$CONFIG_STATUS <conf$$subs.sed
21789rm -f conf$$subs.sed
21790cat >>$CONFIG_STATUS <<_ACEOF
21791CEOF$ac_eof
21792_ACEOF
21793
21794
21795ac_delim='%!_!# '
21796for ac_last_try in false false false false false :; do
21797 cat >conf$$subs.sed <<_ACEOF
21798ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21799ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21800TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21801LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21802LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21803LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21804LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21805ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21806OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21807EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21808EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21809BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21810NM!$NM$ac_delim
21811ifGNUmake!$ifGNUmake$ac_delim
21812LN_S!$LN_S$ac_delim
21813CMP!$CMP$ac_delim
21814CP!$CP$ac_delim
21815DATE!$DATE$ac_delim
21816FIND!$FIND$ac_delim
21817MKDIR!$MKDIR$ac_delim
21818MV!$MV$ac_delim
21819RANLIB!$RANLIB$ac_delim
21820AR!$AR$ac_delim
21821RM!$RM$ac_delim
21822SED!$SED$ac_delim
21823TAR!$TAR$ac_delim
21824BINPWD!$BINPWD$ac_delim
21825GRAPHVIZ!$GRAPHVIZ$ac_delim
21826DOT!$DOT$ac_delim
21827FDP!$FDP$ac_delim
21828NEATO!$NEATO$ac_delim
21829TWOPI!$TWOPI$ac_delim
21830CIRCO!$CIRCO$ac_delim
21831GV!$GV$ac_delim
21832DOTTY!$DOTTY$ac_delim
21833XDOT_PY!$XDOT_PY$ac_delim
21834PERL!$PERL$ac_delim
21835HAVE_PERL!$HAVE_PERL$ac_delim
21836INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21837INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21838INSTALL_DATA!$INSTALL_DATA$ac_delim
21839BZIP2!$BZIP2$ac_delim
21840CAT!$CAT$ac_delim
21841DOXYGEN!$DOXYGEN$ac_delim
21842GROFF!$GROFF$ac_delim
21843GZIPBIN!$GZIPBIN$ac_delim
21844POD2HTML!$POD2HTML$ac_delim
21845POD2MAN!$POD2MAN$ac_delim
21846PDFROFF!$PDFROFF$ac_delim
21847RUNTEST!$RUNTEST$ac_delim
21848TCLSH!$TCLSH$ac_delim
21849ZIP!$ZIP$ac_delim
21850OCAMLC!$OCAMLC$ac_delim
21851OCAMLOPT!$OCAMLOPT$ac_delim
21852OCAMLDEP!$OCAMLDEP$ac_delim
21853OCAMLDOC!$OCAMLDOC$ac_delim
21854GAS!$GAS$ac_delim
21855HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21856INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21857INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21858CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21859CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21860LIBADD_DL!$LIBADD_DL$ac_delim
21861NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21862NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21863USE_UDIS86!$USE_UDIS86$ac_delim
21864USE_OPROFILE!$USE_OPROFILE$ac_delim
21865HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21866HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21867MMAP_FILE!$MMAP_FILE$ac_delim
21868SHLIBEXT!$SHLIBEXT$ac_delim
21869SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21870LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21871LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21872LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21873LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21874LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21875LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21876LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21877LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21878LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21879LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21880BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21881ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21882OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21883ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21884RPATH!$RPATH$ac_delim
21885RDYNAMIC!$RDYNAMIC$ac_delim
21886LIBOBJS!$LIBOBJS$ac_delim
21887LTLIBOBJS!$LTLIBOBJS$ac_delim
21888_ACEOF
21889
21890 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
21891 break
21892 elif $ac_last_try; then
21893 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21894echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21895 { (exit 1); exit 1; }; }
21896 else
21897 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21898 fi
21899done
21900
21901ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21902if test -n "$ac_eof"; then
21903 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21904 ac_eof=`expr $ac_eof + 1`
21905fi
21906
21907cat >>$CONFIG_STATUS <<_ACEOF
21908cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021909/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21910_ACEOF
21911sed '
21912s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21913s/^/s,@/; s/!/@,|#_!!_#|/
21914:n
21915t n
21916s/'"$ac_delim"'$/,g/; t
21917s/$/\\/; p
21918N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21919' >>$CONFIG_STATUS <conf$$subs.sed
21920rm -f conf$$subs.sed
21921cat >>$CONFIG_STATUS <<_ACEOF
21922:end
21923s/|#_!!_#|//g
21924CEOF$ac_eof
21925_ACEOF
21926
21927
21928# VPATH may cause trouble with some makes, so we remove $(srcdir),
21929# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21930# trailing colons and then remove the whole line if VPATH becomes empty
21931# (actually we leave an empty line to preserve line numbers).
21932if test "x$srcdir" = x.; then
21933 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21934s/:*\$(srcdir):*/:/
21935s/:*\${srcdir}:*/:/
21936s/:*@srcdir@:*/:/
21937s/^\([^=]*=[ ]*\):*/\1/
21938s/:*$//
21939s/^[^=]*=[ ]*$//
21940}'
21941fi
21942
21943cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021944fi # test -n "$CONFIG_FILES"
21945
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021946
21947for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21948do
21949 case $ac_tag in
21950 :[FHLC]) ac_mode=$ac_tag; continue;;
21951 esac
21952 case $ac_mode$ac_tag in
21953 :[FHL]*:*);;
21954 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21955echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21956 { (exit 1); exit 1; }; };;
21957 :[FH]-) ac_tag=-:-;;
21958 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21959 esac
21960 ac_save_IFS=$IFS
21961 IFS=:
21962 set x $ac_tag
21963 IFS=$ac_save_IFS
21964 shift
21965 ac_file=$1
21966 shift
21967
21968 case $ac_mode in
21969 :L) ac_source=$1;;
21970 :[FH])
21971 ac_file_inputs=
21972 for ac_f
21973 do
21974 case $ac_f in
21975 -) ac_f="$tmp/stdin";;
21976 *) # Look for the file first in the build tree, then in the source tree
21977 # (if the path is not absolute). The absolute path cannot be DOS-style,
21978 # because $ac_f cannot contain `:'.
21979 test -f "$ac_f" ||
21980 case $ac_f in
21981 [\\/$]*) false;;
21982 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21983 esac ||
21984 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21985echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21986 { (exit 1); exit 1; }; };;
21987 esac
21988 ac_file_inputs="$ac_file_inputs $ac_f"
21989 done
21990
21991 # Let's still pretend it is `configure' which instantiates (i.e., don't
21992 # use $as_me), people would be surprised to read:
21993 # /* config.h. Generated by config.status. */
21994 configure_input="Generated from "`IFS=:
21995 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21996 if test x"$ac_file" != x-; then
21997 configure_input="$ac_file. $configure_input"
21998 { echo "$as_me:$LINENO: creating $ac_file" >&5
21999echo "$as_me: creating $ac_file" >&6;}
22000 fi
22001
22002 case $ac_tag in
22003 *:-:* | *:-) cat >"$tmp/stdin";;
22004 esac
22005 ;;
John Criswell451f67f2003-10-16 01:45:35 +000022006 esac
22007
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022008 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell451f67f2003-10-16 01:45:35 +000022009$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000022010 X"$ac_file" : 'X\(//\)[^/]' \| \
22011 X"$ac_file" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022012 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000022013echo X"$ac_file" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22015 s//\1/
22016 q
22017 }
22018 /^X\(\/\/\)[^/].*/{
22019 s//\1/
22020 q
22021 }
22022 /^X\(\/\/\)$/{
22023 s//\1/
22024 q
22025 }
22026 /^X\(\/\).*/{
22027 s//\1/
22028 q
22029 }
22030 s/.*/./; q'`
22031 { as_dir="$ac_dir"
22032 case $as_dir in #(
22033 -*) as_dir=./$as_dir;;
22034 esac
22035 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell451f67f2003-10-16 01:45:35 +000022036 as_dirs=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022037 while :; do
22038 case $as_dir in #(
22039 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22040 *) as_qdir=$as_dir;;
22041 esac
22042 as_dirs="'$as_qdir' $as_dirs"
22043 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell451f67f2003-10-16 01:45:35 +000022044$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000022045 X"$as_dir" : 'X\(//\)[^/]' \| \
22046 X"$as_dir" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022047 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000022048echo X"$as_dir" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22050 s//\1/
22051 q
22052 }
22053 /^X\(\/\/\)[^/].*/{
22054 s//\1/
22055 q
22056 }
22057 /^X\(\/\/\)$/{
22058 s//\1/
22059 q
22060 }
22061 /^X\(\/\).*/{
22062 s//\1/
22063 q
22064 }
22065 s/.*/./; q'`
22066 test -d "$as_dir" && break
John Criswell451f67f2003-10-16 01:45:35 +000022067 done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022068 test -z "$as_dirs" || eval "mkdir $as_dirs"
22069 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22070echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000022071 { (exit 1); exit 1; }; }; }
John Criswell451f67f2003-10-16 01:45:35 +000022072 ac_builddir=.
22073
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022074case "$ac_dir" in
22075.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22076*)
John Criswell451f67f2003-10-16 01:45:35 +000022077 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022078 # A ".." for each directory in $ac_dir_suffix.
22079 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22080 case $ac_top_builddir_sub in
22081 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22082 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22083 esac ;;
22084esac
22085ac_abs_top_builddir=$ac_pwd
22086ac_abs_builddir=$ac_pwd$ac_dir_suffix
22087# for backward compatibility:
22088ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +000022089
22090case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022091 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +000022092 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022093 ac_top_srcdir=$ac_top_builddir_sub
22094 ac_abs_top_srcdir=$ac_pwd ;;
22095 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +000022096 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022097 ac_top_srcdir=$srcdir
22098 ac_abs_top_srcdir=$srcdir ;;
22099 *) # Relative name.
22100 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22101 ac_top_srcdir=$ac_top_build_prefix$srcdir
22102 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +000022103esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022104ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Dan Gohmand02a2812009-03-24 23:47:11 +000022105
Dan Gohman324f6082009-03-25 00:52:11 +000022106
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022107 case $ac_mode in
22108 :F)
22109 #
22110 # CONFIG_FILE
22111 #
Dan Gohman324f6082009-03-25 00:52:11 +000022112
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022113 case $INSTALL in
22114 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22115 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22116 esac
Dan Gohman324f6082009-03-25 00:52:11 +000022117_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022118
22119cat >>$CONFIG_STATUS <<\_ACEOF
22120# If the template does not know about datarootdir, expand it.
22121# FIXME: This hack should be removed a few years after 2.60.
22122ac_datarootdir_hack=; ac_datarootdir_seen=
22123
22124case `sed -n '/datarootdir/ {
22125 p
22126 q
22127}
22128/@datadir@/p
22129/@docdir@/p
22130/@infodir@/p
22131/@localedir@/p
22132/@mandir@/p
22133' $ac_file_inputs` in
22134*datarootdir*) ac_datarootdir_seen=yes;;
22135*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22136 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22137echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22138_ACEOF
22139cat >>$CONFIG_STATUS <<_ACEOF
22140 ac_datarootdir_hack='
22141 s&@datadir@&$datadir&g
22142 s&@docdir@&$docdir&g
22143 s&@infodir@&$infodir&g
22144 s&@localedir@&$localedir&g
22145 s&@mandir@&$mandir&g
22146 s&\\\${datarootdir}&$datarootdir&g' ;;
22147esac
22148_ACEOF
22149
22150# Neutralize VPATH when `$srcdir' = `.'.
22151# Shell code in configure.ac might set extrasub.
22152# FIXME: do we really want to maintain this feature?
John Criswell451f67f2003-10-16 01:45:35 +000022153cat >>$CONFIG_STATUS <<_ACEOF
22154 sed "$ac_vpsub
22155$extrasub
22156_ACEOF
22157cat >>$CONFIG_STATUS <<\_ACEOF
22158:t
22159/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022160s&@configure_input@&$configure_input&;t t
22161s&@top_builddir@&$ac_top_builddir_sub&;t t
22162s&@srcdir@&$ac_srcdir&;t t
22163s&@abs_srcdir@&$ac_abs_srcdir&;t t
22164s&@top_srcdir@&$ac_top_srcdir&;t t
22165s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22166s&@builddir@&$ac_builddir&;t t
22167s&@abs_builddir@&$ac_abs_builddir&;t t
22168s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022169s&@INSTALL@&$ac_INSTALL&;t t
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022170$ac_datarootdir_hack
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022171" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell451f67f2003-10-16 01:45:35 +000022172
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022173test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22174 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22175 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22176 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22177which seems to be undefined. Please make sure it is defined." >&5
22178echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22179which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000022180
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022181 rm -f "$tmp/stdin"
22182 case $ac_file in
22183 -) cat "$tmp/out"; rm -f "$tmp/out";;
22184 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022185 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022186 ;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022187
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022188
22189 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22190echo "$as_me: executing $ac_file commands" >&6;}
22191 ;;
22192 esac
22193
22194
22195 case $ac_file$ac_mode in
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022196 "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22197 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22198 "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22199 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22200 "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22201 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22202 "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22203 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22204 "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22205 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022206
22207 esac
22208done # for ac_tag
22209
John Criswell451f67f2003-10-16 01:45:35 +000022210
22211{ (exit 0); exit 0; }
22212_ACEOF
22213chmod +x $CONFIG_STATUS
22214ac_clean_files=$ac_clean_files_save
22215
22216
22217# configure is writing to config.log, and then calls config.status.
22218# config.status does its own redirection, appending to config.log.
22219# Unfortunately, on DOS this fails, as config.log is still kept open
22220# by configure, so config.status won't be able to write to it; its
22221# output is simply discarded. So we exec the FD to /dev/null,
22222# effectively closing config.log, so it can be properly (re)opened and
22223# appended to by config.status. When coming back to configure, we
22224# need to make the FD available again.
22225if test "$no_create" != yes; then
22226 ac_cs_success=:
22227 ac_config_status_args=
22228 test "$silent" = yes &&
22229 ac_config_status_args="$ac_config_status_args --quiet"
22230 exec 5>/dev/null
22231 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22232 exec 5>>config.log
22233 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22234 # would make configure fail if this is the last instruction.
22235 $ac_cs_success || { (exit 1); exit 1; }
22236fi
22237
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022238#
22239# CONFIG_SUBDIRS section.
22240#
22241if test "$no_recursion" != yes; then
22242
22243 # Remove --cache-file and --srcdir arguments so they do not pile up.
22244 ac_sub_configure_args=
22245 ac_prev=
22246 eval "set x $ac_configure_args"
22247 shift
22248 for ac_arg
22249 do
22250 if test -n "$ac_prev"; then
22251 ac_prev=
22252 continue
22253 fi
22254 case $ac_arg in
22255 -cache-file | --cache-file | --cache-fil | --cache-fi \
22256 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22257 ac_prev=cache_file ;;
22258 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22259 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22260 | --c=*)
22261 ;;
22262 --config-cache | -C)
22263 ;;
22264 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22265 ac_prev=srcdir ;;
22266 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22267 ;;
22268 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22269 ac_prev=prefix ;;
22270 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22271 ;;
22272 *)
22273 case $ac_arg in
22274 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22275 esac
22276 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22277 esac
22278 done
22279
22280 # Always prepend --prefix to ensure using the same prefix
22281 # in subdir configurations.
22282 ac_arg="--prefix=$prefix"
22283 case $ac_arg in
22284 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22285 esac
22286 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22287
22288 ac_popdir=`pwd`
22289 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22290
22291 # Do not complain, so a configure script can configure whichever
22292 # parts of a large source tree are present.
22293 test -d "$srcdir/$ac_dir" || continue
22294
22295 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22296 echo "$as_me:$LINENO: $ac_msg" >&5
22297 echo "$ac_msg" >&6
22298 { as_dir="$ac_dir"
22299 case $as_dir in #(
22300 -*) as_dir=./$as_dir;;
22301 esac
22302 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22303 as_dirs=
22304 while :; do
22305 case $as_dir in #(
22306 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22307 *) as_qdir=$as_dir;;
22308 esac
22309 as_dirs="'$as_qdir' $as_dirs"
22310 as_dir=`$as_dirname -- "$as_dir" ||
22311$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22312 X"$as_dir" : 'X\(//\)[^/]' \| \
22313 X"$as_dir" : 'X\(//\)$' \| \
22314 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22315echo X"$as_dir" |
22316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22317 s//\1/
22318 q
22319 }
22320 /^X\(\/\/\)[^/].*/{
22321 s//\1/
22322 q
22323 }
22324 /^X\(\/\/\)$/{
22325 s//\1/
22326 q
22327 }
22328 /^X\(\/\).*/{
22329 s//\1/
22330 q
22331 }
22332 s/.*/./; q'`
22333 test -d "$as_dir" && break
22334 done
22335 test -z "$as_dirs" || eval "mkdir $as_dirs"
22336 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22337echo "$as_me: error: cannot create directory $as_dir" >&2;}
22338 { (exit 1); exit 1; }; }; }
22339 ac_builddir=.
22340
22341case "$ac_dir" in
22342.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22343*)
22344 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22345 # A ".." for each directory in $ac_dir_suffix.
22346 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22347 case $ac_top_builddir_sub in
22348 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22349 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22350 esac ;;
22351esac
22352ac_abs_top_builddir=$ac_pwd
22353ac_abs_builddir=$ac_pwd$ac_dir_suffix
22354# for backward compatibility:
22355ac_top_builddir=$ac_top_build_prefix
22356
22357case $srcdir in
22358 .) # We are building in place.
22359 ac_srcdir=.
22360 ac_top_srcdir=$ac_top_builddir_sub
22361 ac_abs_top_srcdir=$ac_pwd ;;
22362 [\\/]* | ?:[\\/]* ) # Absolute name.
22363 ac_srcdir=$srcdir$ac_dir_suffix;
22364 ac_top_srcdir=$srcdir
22365 ac_abs_top_srcdir=$srcdir ;;
22366 *) # Relative name.
22367 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22368 ac_top_srcdir=$ac_top_build_prefix$srcdir
22369 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22370esac
22371ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22372
22373
22374 cd "$ac_dir"
22375
22376 # Check for guested configure; otherwise get Cygnus style configure.
22377 if test -f "$ac_srcdir/configure.gnu"; then
22378 ac_sub_configure=$ac_srcdir/configure.gnu
22379 elif test -f "$ac_srcdir/configure"; then
22380 ac_sub_configure=$ac_srcdir/configure
22381 elif test -f "$ac_srcdir/configure.in"; then
22382 # This should be Cygnus configure.
22383 ac_sub_configure=$ac_aux_dir/configure
22384 else
22385 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22386echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22387 ac_sub_configure=
22388 fi
22389
22390 # The recursion is here.
22391 if test -n "$ac_sub_configure"; then
22392 # Make the cache file name correct relative to the subdirectory.
22393 case $cache_file in
22394 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22395 *) # Relative name.
22396 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22397 esac
22398
22399 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22400echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22401 # The eval makes quoting arguments work.
22402 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22403 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22404 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22405echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22406 { (exit 1); exit 1; }; }
22407 fi
22408
22409 cd "$ac_popdir"
22410 done
22411fi
22412