blob: dd4305d99c6d48184c6cb93b53b2561dab5bca2f [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,
Dan Gohman33ba8b02011-10-27 22:56:32 +00001404 x86_64, sparc, powerpc, arm, mips, spu,
Dan Gohman3e6157d2011-10-25 00:05:42 +00001405 xcore, msp430, ptx, cbe, and cpp
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001406 (default=all)
1407 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1408 %a (default is YES)
1409 --enable-bindings Build specific language bindings:
1410 all,auto,none,{binding-name} (default=auto)
1411 --enable-libffi Check for the presence of libffi (default is NO)
1412 --enable-ltdl-install install libltdl
1413
John Criswell451f67f2003-10-16 01:45:35 +00001414Optional Packages:
1415 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1416 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1417 --with-llvmsrc Location of LLVM Source Code
1418 --with-llvmobj Location of LLVM Object Code
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001419 --with-optimize-option Select the compiler options to use for optimized
1420 builds
1421 --with-extra-options Specify additional options to compile LLVM with
1422 --with-extra-ld-options Specify additional options to link LLVM with
1423 --with-ocaml-libdir Specify install location for ocaml bindings (default
1424 is stdlib)
1425 --with-clang-resource-dir
1426 Relative directory from the Clang binary for
1427 resource files
1428 --with-c-include-dirs Colon separated list of directories clang will
1429 search for headers
1430 --with-cxx-include-root Directory with the libstdc++ headers.
1431 --with-cxx-include-arch Architecture of the libstdc++ headers.
1432 --with-cxx-include-32bit-dir
1433 32 bit multilib dir.
1434 --with-cxx-include-64bit-dir
1435 64 bit multilib directory.
1436 --with-binutils-include Specify path to binutils/include/ containing
1437 plugin-api.h file for gold plugin.
1438 --with-bug-report-url Specify the URL where bug reports should be
1439 submitted (default=http://llvm.org/bugs/)
1440 --with-tclinclude directory where tcl headers are
1441 --with-udis86=<path> Use udis86 external x86 disassembler library
1442 --with-oprofile=<prefix>
1443 Tell OProfile >= 0.9.4 how to symbolize JIT output
1444
1445Some influential environment variables:
1446 CC C compiler command
1447 CFLAGS C compiler flags
1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1449 nonstandard directory <lib dir>
1450 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1451 you have headers in a nonstandard directory <include dir>
1452 CXX C++ compiler command
1453 CXXFLAGS C++ compiler flags
1454 CPP C preprocessor
1455
1456Use these variables to override the choices made by `configure' or to help
1457it to find libraries and programs with nonstandard names/locations.
John Criswell451f67f2003-10-16 01:45:35 +00001458
1459Report bugs to <bugs@yourdomain>.
1460_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001461ac_status=$?
John Criswell451f67f2003-10-16 01:45:35 +00001462fi
1463
1464if test "$ac_init_help" = "recursive"; then
1465 # If there are subdirs, report their specific --help.
John Criswell451f67f2003-10-16 01:45:35 +00001466 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001467 test -d "$ac_dir" || continue
John Criswell451f67f2003-10-16 01:45:35 +00001468 ac_builddir=.
1469
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001470case "$ac_dir" in
1471.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472*)
John Criswell451f67f2003-10-16 01:45:35 +00001473 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001474 # A ".." for each directory in $ac_dir_suffix.
1475 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1476 case $ac_top_builddir_sub in
1477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1479 esac ;;
1480esac
1481ac_abs_top_builddir=$ac_pwd
1482ac_abs_builddir=$ac_pwd$ac_dir_suffix
1483# for backward compatibility:
1484ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +00001485
1486case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001487 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +00001488 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001489 ac_top_srcdir=$ac_top_builddir_sub
1490 ac_abs_top_srcdir=$ac_pwd ;;
1491 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +00001492 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001493 ac_top_srcdir=$srcdir
1494 ac_abs_top_srcdir=$srcdir ;;
1495 *) # Relative name.
1496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1497 ac_top_srcdir=$ac_top_build_prefix$srcdir
1498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +00001499esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001500ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer9964cd82005-01-01 09:26:55 +00001501
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001502 cd "$ac_dir" || { ac_status=$?; continue; }
1503 # Check for guested configure.
1504 if test -f "$ac_srcdir/configure.gnu"; then
1505 echo &&
1506 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1507 elif test -f "$ac_srcdir/configure"; then
1508 echo &&
1509 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell451f67f2003-10-16 01:45:35 +00001510 else
1511 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001512 fi || ac_status=$?
1513 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell451f67f2003-10-16 01:45:35 +00001514 done
1515fi
1516
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001517test -n "$ac_init_help" && exit $ac_status
John Criswell451f67f2003-10-16 01:45:35 +00001518if $ac_init_version; then
1519 cat <<\_ACEOF
1520[SAMPLE] configure [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001521generated by GNU Autoconf 2.60
John Criswell451f67f2003-10-16 01:45:35 +00001522
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001523Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15242002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +00001525This configure script is free software; the Free Software Foundation
1526gives unlimited permission to copy, distribute and modify it.
1527_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001528 exit
John Criswell451f67f2003-10-16 01:45:35 +00001529fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001530cat >config.log <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +00001531This file contains any messages produced by compilers while
1532running configure, to aid debugging if configure makes a mistake.
1533
1534It was created by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001535generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +00001536
1537 $ $0 $@
1538
1539_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001540exec 5>>config.log
John Criswell451f67f2003-10-16 01:45:35 +00001541{
1542cat <<_ASUNAME
1543## --------- ##
1544## Platform. ##
1545## --------- ##
1546
1547hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1548uname -m = `(uname -m) 2>/dev/null || echo unknown`
1549uname -r = `(uname -r) 2>/dev/null || echo unknown`
1550uname -s = `(uname -s) 2>/dev/null || echo unknown`
1551uname -v = `(uname -v) 2>/dev/null || echo unknown`
1552
1553/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1554/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1555
1556/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1557/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1558/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001559/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell451f67f2003-10-16 01:45:35 +00001560/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1561/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1562/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1563
1564_ASUNAME
1565
1566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567for as_dir in $PATH
1568do
1569 IFS=$as_save_IFS
1570 test -z "$as_dir" && as_dir=.
1571 echo "PATH: $as_dir"
1572done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001573IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +00001574
1575} >&5
1576
1577cat >&5 <<_ACEOF
1578
1579
1580## ----------- ##
1581## Core tests. ##
1582## ----------- ##
1583
1584_ACEOF
1585
1586
1587# Keep a trace of the command line.
1588# Strip out --no-create and --no-recursion so they do not pile up.
1589# Strip out --silent because we don't want to record it for future runs.
1590# Also quote any args containing shell meta-characters.
1591# Make two passes to allow for proper duplicate-argument suppression.
1592ac_configure_args=
1593ac_configure_args0=
1594ac_configure_args1=
John Criswell451f67f2003-10-16 01:45:35 +00001595ac_must_keep_next=false
1596for ac_pass in 1 2
1597do
1598 for ac_arg
1599 do
1600 case $ac_arg in
1601 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1602 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1603 | -silent | --silent | --silen | --sile | --sil)
1604 continue ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001605 *\'*)
John Criswell451f67f2003-10-16 01:45:35 +00001606 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1607 esac
1608 case $ac_pass in
1609 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1610 2)
1611 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1612 if test $ac_must_keep_next = true; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001613 ac_must_keep_next=false # Got value, back to normal.
John Criswell451f67f2003-10-16 01:45:35 +00001614 else
Reid Spencer9964cd82005-01-01 09:26:55 +00001615 case $ac_arg in
1616 *=* | --config-cache | -C | -disable-* | --disable-* \
1617 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1618 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1619 | -with-* | --with-* | -without-* | --without-* | --x)
1620 case "$ac_configure_args0 " in
1621 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1622 esac
1623 ;;
1624 -* ) ac_must_keep_next=true ;;
1625 esac
John Criswell451f67f2003-10-16 01:45:35 +00001626 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001627 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell451f67f2003-10-16 01:45:35 +00001628 ;;
1629 esac
1630 done
1631done
1632$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1633$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1634
1635# When interrupted or exit'd, cleanup temporary files, and complete
1636# config.log. We remove comments because anyway the quotes in there
1637# would cause problems or look ugly.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001638# WARNING: Use '\'' to represent an apostrophe within the trap.
1639# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell451f67f2003-10-16 01:45:35 +00001640trap 'exit_status=$?
1641 # Save into config.log some information that might help in debugging.
1642 {
1643 echo
1644
1645 cat <<\_ASBOX
1646## ---------------- ##
1647## Cache variables. ##
1648## ---------------- ##
1649_ASBOX
1650 echo
1651 # The following way of writing the cache mishandles newlines in values,
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001652(
1653 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1654 eval ac_val=\$$ac_var
1655 case $ac_val in #(
1656 *${as_nl}*)
1657 case $ac_var in #(
1658 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1659echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1660 esac
1661 case $ac_var in #(
1662 _ | IFS | as_nl) ;; #(
1663 *) $as_unset $ac_var ;;
1664 esac ;;
1665 esac
1666 done
John Criswell451f67f2003-10-16 01:45:35 +00001667 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001668 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1669 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +00001670 sed -n \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001671 "s/'\''/'\''\\\\'\'''\''/g;
1672 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1673 ;; #(
Dan Gohman324f6082009-03-25 00:52:11 +00001674 *)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001675 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Dan Gohman324f6082009-03-25 00:52:11 +00001676 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001677 esac |
1678 sort
1679)
John Criswell451f67f2003-10-16 01:45:35 +00001680 echo
1681
1682 cat <<\_ASBOX
1683## ----------------- ##
1684## Output variables. ##
1685## ----------------- ##
1686_ASBOX
1687 echo
1688 for ac_var in $ac_subst_vars
1689 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001690 eval ac_val=\$$ac_var
1691 case $ac_val in
1692 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1693 esac
1694 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001695 done | sort
1696 echo
1697
1698 if test -n "$ac_subst_files"; then
1699 cat <<\_ASBOX
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001700## ------------------- ##
1701## File substitutions. ##
1702## ------------------- ##
John Criswell451f67f2003-10-16 01:45:35 +00001703_ASBOX
1704 echo
1705 for ac_var in $ac_subst_files
1706 do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001707 eval ac_val=\$$ac_var
1708 case $ac_val in
1709 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1710 esac
1711 echo "$ac_var='\''$ac_val'\''"
John Criswell451f67f2003-10-16 01:45:35 +00001712 done | sort
1713 echo
1714 fi
1715
1716 if test -s confdefs.h; then
1717 cat <<\_ASBOX
1718## ----------- ##
1719## confdefs.h. ##
1720## ----------- ##
1721_ASBOX
1722 echo
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001723 cat confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001724 echo
1725 fi
1726 test "$ac_signal" != 0 &&
1727 echo "$as_me: caught signal $ac_signal"
1728 echo "$as_me: exit $exit_status"
1729 } >&5
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001730 rm -f core *.core core.conftest.* &&
1731 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell451f67f2003-10-16 01:45:35 +00001732 exit $exit_status
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001733' 0
John Criswell451f67f2003-10-16 01:45:35 +00001734for ac_signal in 1 2 13 15; do
1735 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1736done
1737ac_signal=0
1738
1739# confdefs.h avoids OS command line length limits that DEFS can exceed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001740rm -f -r conftest* confdefs.h
John Criswell451f67f2003-10-16 01:45:35 +00001741
1742# Predefined preprocessor variables.
1743
1744cat >>confdefs.h <<_ACEOF
1745#define PACKAGE_NAME "$PACKAGE_NAME"
1746_ACEOF
1747
1748
1749cat >>confdefs.h <<_ACEOF
1750#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1751_ACEOF
1752
1753
1754cat >>confdefs.h <<_ACEOF
1755#define PACKAGE_VERSION "$PACKAGE_VERSION"
1756_ACEOF
1757
1758
1759cat >>confdefs.h <<_ACEOF
1760#define PACKAGE_STRING "$PACKAGE_STRING"
1761_ACEOF
1762
1763
1764cat >>confdefs.h <<_ACEOF
1765#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1766_ACEOF
1767
1768
1769# Let the site file select an alternate cache file if it wants to.
1770# Prefer explicitly selected file to automatically selected ones.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001771if test -n "$CONFIG_SITE"; then
1772 set x "$CONFIG_SITE"
1773elif test "x$prefix" != xNONE; then
1774 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1775else
1776 set x "$ac_default_prefix/share/config.site" \
1777 "$ac_default_prefix/etc/config.site"
John Criswell451f67f2003-10-16 01:45:35 +00001778fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001779shift
1780for ac_site_file
1781do
John Criswell451f67f2003-10-16 01:45:35 +00001782 if test -r "$ac_site_file"; then
1783 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1784echo "$as_me: loading site script $ac_site_file" >&6;}
1785 sed 's/^/| /' "$ac_site_file" >&5
1786 . "$ac_site_file"
1787 fi
1788done
1789
1790if test -r "$cache_file"; then
1791 # Some versions of bash will fail to source /dev/null (special
1792 # files actually), so we avoid doing that.
1793 if test -f "$cache_file"; then
1794 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1795echo "$as_me: loading cache $cache_file" >&6;}
1796 case $cache_file in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001797 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1798 *) . "./$cache_file";;
John Criswell451f67f2003-10-16 01:45:35 +00001799 esac
1800 fi
1801else
1802 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1803echo "$as_me: creating cache $cache_file" >&6;}
1804 >$cache_file
1805fi
1806
1807# Check that the precious variables saved in the cache have kept the same
1808# value.
1809ac_cache_corrupted=false
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001810for ac_var in $ac_precious_vars; do
John Criswell451f67f2003-10-16 01:45:35 +00001811 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1812 eval ac_new_set=\$ac_env_${ac_var}_set
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001813 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1814 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell451f67f2003-10-16 01:45:35 +00001815 case $ac_old_set,$ac_new_set in
1816 set,)
1817 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1818echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1819 ac_cache_corrupted=: ;;
1820 ,set)
1821 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1822echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1823 ac_cache_corrupted=: ;;
1824 ,);;
1825 *)
1826 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer9964cd82005-01-01 09:26:55 +00001827 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001828echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001829 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001830echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001831 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell451f67f2003-10-16 01:45:35 +00001832echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer9964cd82005-01-01 09:26:55 +00001833 ac_cache_corrupted=:
John Criswell451f67f2003-10-16 01:45:35 +00001834 fi;;
1835 esac
1836 # Pass precious variables to config.status.
1837 if test "$ac_new_set" = set; then
1838 case $ac_new_val in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001839 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell451f67f2003-10-16 01:45:35 +00001840 *) ac_arg=$ac_var=$ac_new_val ;;
1841 esac
1842 case " $ac_configure_args " in
1843 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1844 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1845 esac
1846 fi
1847done
1848if $ac_cache_corrupted; then
1849 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1850echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1851 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1852echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1853 { (exit 1); exit 1; }; }
1854fi
1855
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
John Criswell451f67f2003-10-16 01:45:35 +00001880ac_ext=c
1881ac_cpp='$CPP $CPPFLAGS'
1882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1884ac_compiler_gnu=$ac_cv_c_compiler_gnu
1885
1886
1887
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001888LLVM_SRC_ROOT="../.."
1889LLVM_OBJ_ROOT="../.."
1890
1891LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`"
1892LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`"
Dan Gohman324f6082009-03-25 00:52:11 +00001893
1894
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001895# Check whether --with-llvmsrc was given.
1896if test "${with_llvmsrc+set}" = set; then
1897 withval=$with_llvmsrc; llvm_src="$withval"
1898else
1899 llvm_src="$LLVM_ABS_SRC_ROOT"
1900fi
1901
1902 LLVM_SRC=$llvm_src
Dan Gohman324f6082009-03-25 00:52:11 +00001903
1904
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001905# Check whether --with-llvmobj was given.
1906if test "${with_llvmobj+set}" = set; then
1907 withval=$with_llvmobj; llvm_obj="$withval"
1908else
1909 llvm_obj="$LLVM_ABS_OBJ_ROOT"
1910fi
Dan Gohman324f6082009-03-25 00:52:11 +00001911
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001912 LLVM_OBJ=$llvm_obj
Dan Gohman324f6082009-03-25 00:52:11 +00001913
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001914 ac_config_commands="$ac_config_commands setup"
Dan Gohman324f6082009-03-25 00:52:11 +00001915
1916
1917
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001918{ echo "$as_me:$LINENO: checking llvm-config" >&5
1919echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; }
1920llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`"
1921if ! test -f "$llvm_config_path" ; then
1922 llvm_config_path="no"
1923fi
1924{ echo "$as_me:$LINENO: result: $llvm_config_path" >&5
1925echo "${ECHO_T}$llvm_config_path" >&6; }
1926
1927{ echo "$as_me:$LINENO: checking LLVM package version" >&5
1928echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; }
1929if test "$llvm_config_path" != no ; then
1930 llvm_package_version=`$llvm_config_path --version`
1931else
1932 llvm_package_version="unknown";
1933fi
1934{ echo "$as_me:$LINENO: result: $llvm_package_version" >&5
1935echo "${ECHO_T}$llvm_package_version" >&6; }
1936LLVM_VERSION=$llvm_package_version
1937
1938
1939
1940
John Criswell451f67f2003-10-16 01:45:35 +00001941ac_aux_dir=
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001942for ac_dir in autoconf "$srcdir"/autoconf; do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001943 if test -f "$ac_dir/install-sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001944 ac_aux_dir=$ac_dir
1945 ac_install_sh="$ac_aux_dir/install-sh -c"
1946 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001947 elif test -f "$ac_dir/install.sh"; then
John Criswell451f67f2003-10-16 01:45:35 +00001948 ac_aux_dir=$ac_dir
1949 ac_install_sh="$ac_aux_dir/install.sh -c"
1950 break
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001951 elif test -f "$ac_dir/shtool"; then
John Criswell451f67f2003-10-16 01:45:35 +00001952 ac_aux_dir=$ac_dir
1953 ac_install_sh="$ac_aux_dir/shtool install -c"
1954 break
1955 fi
1956done
1957if test -z "$ac_aux_dir"; then
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001958 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1959echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +00001960 { (exit 1); exit 1; }; }
1961fi
John Criswell451f67f2003-10-16 01:45:35 +00001962
Peter Collingbourne2bf4b542010-12-12 21:42:01 +00001963# These three variables are undocumented and unsupported,
1964# and are intended to be withdrawn in a future Autoconf release.
1965# They can cause serious problems if a builder's source tree is in a directory
1966# whose full name contains unusual characters.
1967ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1968ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1969ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
Reid Spencer421ec052005-02-24 18:53:47 +00001970
1971
1972
1973
Daniel Dunbarbf79f912011-10-18 23:10:58 +00001974ac_ext=c
1975ac_cpp='$CPP $CPPFLAGS'
1976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1978ac_compiler_gnu=$ac_cv_c_compiler_gnu
1979if test -n "$ac_tool_prefix"; then
1980 for ac_prog in clang llvm-gcc gcc
1981 do
1982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1983set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1986if test "${ac_cv_prog_CC+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1988else
1989 if test -n "$CC"; then
1990 ac_cv_prog_CC="$CC" # Let the user override the test.
1991else
1992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993for as_dir in $PATH
1994do
1995 IFS=$as_save_IFS
1996 test -z "$as_dir" && as_dir=.
1997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1999 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001 break 2
2002 fi
2003done
2004done
2005IFS=$as_save_IFS
2006
2007fi
2008fi
2009CC=$ac_cv_prog_CC
2010if test -n "$CC"; then
2011 { echo "$as_me:$LINENO: result: $CC" >&5
2012echo "${ECHO_T}$CC" >&6; }
2013else
2014 { echo "$as_me:$LINENO: result: no" >&5
2015echo "${ECHO_T}no" >&6; }
2016fi
2017
2018
2019 test -n "$CC" && break
2020 done
2021fi
2022if test -z "$CC"; then
2023 ac_ct_CC=$CC
2024 for ac_prog in clang llvm-gcc gcc
2025do
2026 # Extract the first word of "$ac_prog", so it can be a program name with args.
2027set dummy $ac_prog; ac_word=$2
2028{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2030if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032else
2033 if test -n "$ac_ct_CC"; then
2034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2035else
2036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037for as_dir in $PATH
2038do
2039 IFS=$as_save_IFS
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2043 ac_cv_prog_ac_ct_CC="$ac_prog"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 break 2
2046 fi
2047done
2048done
2049IFS=$as_save_IFS
2050
2051fi
2052fi
2053ac_ct_CC=$ac_cv_prog_ac_ct_CC
2054if test -n "$ac_ct_CC"; then
2055 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2056echo "${ECHO_T}$ac_ct_CC" >&6; }
2057else
2058 { echo "$as_me:$LINENO: result: no" >&5
2059echo "${ECHO_T}no" >&6; }
2060fi
2061
2062
2063 test -n "$ac_ct_CC" && break
2064done
2065
2066 if test "x$ac_ct_CC" = x; then
2067 CC=""
2068 else
2069 case $cross_compiling:$ac_tool_warned in
2070yes:)
2071{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2072whose name does not start with the host triplet. If you think this
2073configuration is useful to you, please write to autoconf@gnu.org." >&5
2074echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2075whose name does not start with the host triplet. If you think this
2076configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2077ac_tool_warned=yes ;;
2078esac
2079 CC=$ac_ct_CC
2080 fi
2081fi
2082
2083
2084test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2085See \`config.log' for more details." >&5
2086echo "$as_me: error: no acceptable C compiler found in \$PATH
2087See \`config.log' for more details." >&2;}
2088 { (exit 1); exit 1; }; }
2089
2090# Provide some information about the compiler.
2091echo "$as_me:$LINENO: checking for C compiler version" >&5
2092ac_compiler=`set X $ac_compile; echo $2`
2093{ (ac_try="$ac_compiler --version >&5"
2094case "(($ac_try" in
2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096 *) ac_try_echo=$ac_try;;
2097esac
2098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099 (eval "$ac_compiler --version >&5") 2>&5
2100 ac_status=$?
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
2103{ (ac_try="$ac_compiler -v >&5"
2104case "(($ac_try" in
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2107esac
2108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2109 (eval "$ac_compiler -v >&5") 2>&5
2110 ac_status=$?
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }
2113{ (ac_try="$ac_compiler -V >&5"
2114case "(($ac_try" in
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2117esac
2118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119 (eval "$ac_compiler -V >&5") 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }
2123
2124cat >conftest.$ac_ext <<_ACEOF
2125/* confdefs.h. */
2126_ACEOF
2127cat confdefs.h >>conftest.$ac_ext
2128cat >>conftest.$ac_ext <<_ACEOF
2129/* end confdefs.h. */
2130
2131int
2132main ()
2133{
2134
2135 ;
2136 return 0;
2137}
2138_ACEOF
2139ac_clean_files_save=$ac_clean_files
2140ac_clean_files="$ac_clean_files a.out a.exe b.out"
2141# Try to create an executable without -o first, disregard a.out.
2142# It will help us diagnose broken compilers, and finding out an intuition
2143# of exeext.
2144{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2145echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2146ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2147#
2148# List of possible output files, starting from the most likely.
2149# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2150# only as a last resort. b.out is created by i960 compilers.
2151ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2152#
2153# The IRIX 6 linker writes into existing files which may not be
2154# executable, retaining their permissions. Remove them first so a
2155# subsequent execution test works.
2156ac_rmfiles=
2157for ac_file in $ac_files
2158do
2159 case $ac_file in
2160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2161 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2162 esac
2163done
2164rm -f $ac_rmfiles
2165
2166if { (ac_try="$ac_link_default"
2167case "(($ac_try" in
2168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2169 *) ac_try_echo=$ac_try;;
2170esac
2171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2172 (eval "$ac_link_default") 2>&5
2173 ac_status=$?
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; then
2176 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2177# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2178# in a Makefile. We should not override ac_cv_exeext if it was cached,
2179# so that the user can short-circuit this test for compilers unknown to
2180# Autoconf.
2181for ac_file in $ac_files
2182do
2183 test -f "$ac_file" || continue
2184 case $ac_file in
2185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2186 ;;
2187 [ab].out )
2188 # We found the default executable, but exeext='' is most
2189 # certainly right.
2190 break;;
2191 *.* )
2192 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2193 then :; else
2194 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2195 fi
2196 # We set ac_cv_exeext here because the later test for it is not
2197 # safe: cross compilers may not add the suffix if given an `-o'
2198 # argument, so we may need to know it at that point already.
2199 # Even if this section looks crufty: it has the advantage of
2200 # actually working.
2201 break;;
2202 * )
2203 break;;
2204 esac
2205done
2206test "$ac_cv_exeext" = no && ac_cv_exeext=
2207
2208else
2209 echo "$as_me: failed program was:" >&5
2210sed 's/^/| /' conftest.$ac_ext >&5
2211
2212{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2213See \`config.log' for more details." >&5
2214echo "$as_me: error: C compiler cannot create executables
2215See \`config.log' for more details." >&2;}
2216 { (exit 77); exit 77; }; }
2217fi
2218
2219ac_exeext=$ac_cv_exeext
2220{ echo "$as_me:$LINENO: result: $ac_file" >&5
2221echo "${ECHO_T}$ac_file" >&6; }
2222
2223# Check that the compiler produces executables we can run. If not, either
2224# the compiler is broken, or we cross compile.
2225{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2226echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2227# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2228# If not cross compiling, check that we can run a simple program.
2229if test "$cross_compiling" != yes; then
2230 if { ac_try='./$ac_file'
2231 { (case "(($ac_try" in
2232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233 *) ac_try_echo=$ac_try;;
2234esac
2235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2236 (eval "$ac_try") 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
2240 cross_compiling=no
2241 else
2242 if test "$cross_compiling" = maybe; then
2243 cross_compiling=yes
2244 else
2245 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2246If you meant to cross compile, use \`--host'.
2247See \`config.log' for more details." >&5
2248echo "$as_me: error: cannot run C compiled programs.
2249If you meant to cross compile, use \`--host'.
2250See \`config.log' for more details." >&2;}
2251 { (exit 1); exit 1; }; }
2252 fi
2253 fi
2254fi
2255{ echo "$as_me:$LINENO: result: yes" >&5
2256echo "${ECHO_T}yes" >&6; }
2257
2258rm -f a.out a.exe conftest$ac_cv_exeext b.out
2259ac_clean_files=$ac_clean_files_save
2260# Check that the compiler produces executables we can run. If not, either
2261# the compiler is broken, or we cross compile.
2262{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2263echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2264{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2265echo "${ECHO_T}$cross_compiling" >&6; }
2266
2267{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2268echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2269if { (ac_try="$ac_link"
2270case "(($ac_try" in
2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272 *) ac_try_echo=$ac_try;;
2273esac
2274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2275 (eval "$ac_link") 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; then
2279 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2280# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2281# work properly (i.e., refer to `conftest.exe'), while it won't with
2282# `rm'.
2283for ac_file in conftest.exe conftest conftest.*; do
2284 test -f "$ac_file" || continue
2285 case $ac_file in
2286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2287 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2288 break;;
2289 * ) break;;
2290 esac
2291done
2292else
2293 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2294See \`config.log' for more details." >&5
2295echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2296See \`config.log' for more details." >&2;}
2297 { (exit 1); exit 1; }; }
2298fi
2299
2300rm -f conftest$ac_cv_exeext
2301{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2302echo "${ECHO_T}$ac_cv_exeext" >&6; }
2303
2304rm -f conftest.$ac_ext
2305EXEEXT=$ac_cv_exeext
2306ac_exeext=$EXEEXT
2307{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2308echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2309if test "${ac_cv_objext+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2311else
2312 cat >conftest.$ac_ext <<_ACEOF
2313/* confdefs.h. */
2314_ACEOF
2315cat confdefs.h >>conftest.$ac_ext
2316cat >>conftest.$ac_ext <<_ACEOF
2317/* end confdefs.h. */
2318
2319int
2320main ()
2321{
2322
2323 ;
2324 return 0;
2325}
2326_ACEOF
2327rm -f conftest.o conftest.obj
2328if { (ac_try="$ac_compile"
2329case "(($ac_try" in
2330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331 *) ac_try_echo=$ac_try;;
2332esac
2333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2334 (eval "$ac_compile") 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; then
2338 for ac_file in conftest.o conftest.obj conftest.*; do
2339 test -f "$ac_file" || continue;
2340 case $ac_file in
2341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2342 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2343 break;;
2344 esac
2345done
2346else
2347 echo "$as_me: failed program was:" >&5
2348sed 's/^/| /' conftest.$ac_ext >&5
2349
2350{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2351See \`config.log' for more details." >&5
2352echo "$as_me: error: cannot compute suffix of object files: cannot compile
2353See \`config.log' for more details." >&2;}
2354 { (exit 1); exit 1; }; }
2355fi
2356
2357rm -f conftest.$ac_cv_objext conftest.$ac_ext
2358fi
2359{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2360echo "${ECHO_T}$ac_cv_objext" >&6; }
2361OBJEXT=$ac_cv_objext
2362ac_objext=$OBJEXT
2363{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2364echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2365if test "${ac_cv_c_compiler_gnu+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367else
2368 cat >conftest.$ac_ext <<_ACEOF
2369/* confdefs.h. */
2370_ACEOF
2371cat confdefs.h >>conftest.$ac_ext
2372cat >>conftest.$ac_ext <<_ACEOF
2373/* end confdefs.h. */
2374
2375int
2376main ()
2377{
2378#ifndef __GNUC__
2379 choke me
2380#endif
2381
2382 ;
2383 return 0;
2384}
2385_ACEOF
2386rm -f conftest.$ac_objext
2387if { (ac_try="$ac_compile"
2388case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2391esac
2392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_compile") 2>conftest.er1
2394 ac_status=$?
2395 grep -v '^ *+' conftest.er1 >conftest.err
2396 rm -f conftest.er1
2397 cat conftest.err >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
2400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2401 { (case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2404esac
2405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406 (eval "$ac_try") 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; } &&
2410 { ac_try='test -s conftest.$ac_objext'
2411 { (case "(($ac_try" in
2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413 *) ac_try_echo=$ac_try;;
2414esac
2415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416 (eval "$ac_try") 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2420 ac_compiler_gnu=yes
2421else
2422 echo "$as_me: failed program was:" >&5
2423sed 's/^/| /' conftest.$ac_ext >&5
2424
2425 ac_compiler_gnu=no
2426fi
2427
2428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2429ac_cv_c_compiler_gnu=$ac_compiler_gnu
2430
2431fi
2432{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2433echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2434GCC=`test $ac_compiler_gnu = yes && echo yes`
2435ac_test_CFLAGS=${CFLAGS+set}
2436ac_save_CFLAGS=$CFLAGS
2437{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2438echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2439if test "${ac_cv_prog_cc_g+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2441else
2442 ac_save_c_werror_flag=$ac_c_werror_flag
2443 ac_c_werror_flag=yes
2444 ac_cv_prog_cc_g=no
2445 CFLAGS="-g"
2446 cat >conftest.$ac_ext <<_ACEOF
2447/* confdefs.h. */
2448_ACEOF
2449cat confdefs.h >>conftest.$ac_ext
2450cat >>conftest.$ac_ext <<_ACEOF
2451/* end confdefs.h. */
2452
2453int
2454main ()
2455{
2456
2457 ;
2458 return 0;
2459}
2460_ACEOF
2461rm -f conftest.$ac_objext
2462if { (ac_try="$ac_compile"
2463case "(($ac_try" in
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2466esac
2467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_compile") 2>conftest.er1
2469 ac_status=$?
2470 grep -v '^ *+' conftest.er1 >conftest.err
2471 rm -f conftest.er1
2472 cat conftest.err >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); } &&
2475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2476 { (case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2479esac
2480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481 (eval "$ac_try") 2>&5
2482 ac_status=$?
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; } &&
2485 { ac_try='test -s conftest.$ac_objext'
2486 { (case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2489esac
2490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_try") 2>&5
2492 ac_status=$?
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; }; then
2495 ac_cv_prog_cc_g=yes
2496else
2497 echo "$as_me: failed program was:" >&5
2498sed 's/^/| /' conftest.$ac_ext >&5
2499
2500 CFLAGS=""
2501 cat >conftest.$ac_ext <<_ACEOF
2502/* confdefs.h. */
2503_ACEOF
2504cat confdefs.h >>conftest.$ac_ext
2505cat >>conftest.$ac_ext <<_ACEOF
2506/* end confdefs.h. */
2507
2508int
2509main ()
2510{
2511
2512 ;
2513 return 0;
2514}
2515_ACEOF
2516rm -f conftest.$ac_objext
2517if { (ac_try="$ac_compile"
2518case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2521esac
2522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_compile") 2>conftest.er1
2524 ac_status=$?
2525 grep -v '^ *+' conftest.er1 >conftest.err
2526 rm -f conftest.er1
2527 cat conftest.err >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2531 { (case "(($ac_try" in
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2534esac
2535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536 (eval "$ac_try") 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; } &&
2540 { ac_try='test -s conftest.$ac_objext'
2541 { (case "(($ac_try" in
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2544esac
2545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2546 (eval "$ac_try") 2>&5
2547 ac_status=$?
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; }; then
2550 :
2551else
2552 echo "$as_me: failed program was:" >&5
2553sed 's/^/| /' conftest.$ac_ext >&5
2554
2555 ac_c_werror_flag=$ac_save_c_werror_flag
2556 CFLAGS="-g"
2557 cat >conftest.$ac_ext <<_ACEOF
2558/* confdefs.h. */
2559_ACEOF
2560cat confdefs.h >>conftest.$ac_ext
2561cat >>conftest.$ac_ext <<_ACEOF
2562/* end confdefs.h. */
2563
2564int
2565main ()
2566{
2567
2568 ;
2569 return 0;
2570}
2571_ACEOF
2572rm -f conftest.$ac_objext
2573if { (ac_try="$ac_compile"
2574case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2577esac
2578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_compile") 2>conftest.er1
2580 ac_status=$?
2581 grep -v '^ *+' conftest.er1 >conftest.err
2582 rm -f conftest.er1
2583 cat conftest.err >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } &&
2586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2587 { (case "(($ac_try" in
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2590esac
2591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592 (eval "$ac_try") 2>&5
2593 ac_status=$?
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; } &&
2596 { ac_try='test -s conftest.$ac_objext'
2597 { (case "(($ac_try" in
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2600esac
2601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602 (eval "$ac_try") 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2606 ac_cv_prog_cc_g=yes
2607else
2608 echo "$as_me: failed program was:" >&5
2609sed 's/^/| /' conftest.$ac_ext >&5
2610
2611
2612fi
2613
2614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615fi
2616
2617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618fi
2619
2620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621 ac_c_werror_flag=$ac_save_c_werror_flag
2622fi
2623{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2624echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2625if test "$ac_test_CFLAGS" = set; then
2626 CFLAGS=$ac_save_CFLAGS
2627elif test $ac_cv_prog_cc_g = yes; then
2628 if test "$GCC" = yes; then
2629 CFLAGS="-g -O2"
2630 else
2631 CFLAGS="-g"
2632 fi
2633else
2634 if test "$GCC" = yes; then
2635 CFLAGS="-O2"
2636 else
2637 CFLAGS=
2638 fi
2639fi
2640{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2641echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2642if test "${ac_cv_prog_cc_c89+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2644else
2645 ac_cv_prog_cc_c89=no
2646ac_save_CC=$CC
2647cat >conftest.$ac_ext <<_ACEOF
2648/* confdefs.h. */
2649_ACEOF
2650cat confdefs.h >>conftest.$ac_ext
2651cat >>conftest.$ac_ext <<_ACEOF
2652/* end confdefs.h. */
2653#include <stdarg.h>
2654#include <stdio.h>
2655#include <sys/types.h>
2656#include <sys/stat.h>
2657/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2658struct buf { int x; };
2659FILE * (*rcsopen) (struct buf *, struct stat *, int);
2660static char *e (p, i)
2661 char **p;
2662 int i;
2663{
2664 return p[i];
2665}
2666static char *f (char * (*g) (char **, int), char **p, ...)
2667{
2668 char *s;
2669 va_list v;
2670 va_start (v,p);
2671 s = g (p, va_arg (v,int));
2672 va_end (v);
2673 return s;
2674}
2675
2676/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2677 function prototypes and stuff, but not '\xHH' hex character constants.
2678 These don't provoke an error unfortunately, instead are silently treated
2679 as 'x'. The following induces an error, until -std is added to get
2680 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2681 array size at least. It's necessary to write '\x00'==0 to get something
2682 that's true only with -std. */
2683int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2684
2685/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2686 inside strings and character constants. */
2687#define FOO(x) 'x'
2688int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2689
2690int test (int i, double x);
2691struct s1 {int (*f) (int a);};
2692struct s2 {int (*f) (double a);};
2693int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2694int argc;
2695char **argv;
2696int
2697main ()
2698{
2699return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2700 ;
2701 return 0;
2702}
2703_ACEOF
2704for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2705 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2706do
2707 CC="$ac_save_CC $ac_arg"
2708 rm -f conftest.$ac_objext
2709if { (ac_try="$ac_compile"
2710case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713esac
2714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_compile") 2>conftest.er1
2716 ac_status=$?
2717 grep -v '^ *+' conftest.er1 >conftest.err
2718 rm -f conftest.er1
2719 cat conftest.err >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } &&
2722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2723 { (case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726esac
2727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_try") 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; } &&
2732 { ac_try='test -s conftest.$ac_objext'
2733 { (case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736esac
2737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_try") 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2742 ac_cv_prog_cc_c89=$ac_arg
2743else
2744 echo "$as_me: failed program was:" >&5
2745sed 's/^/| /' conftest.$ac_ext >&5
2746
2747
2748fi
2749
2750rm -f core conftest.err conftest.$ac_objext
2751 test "x$ac_cv_prog_cc_c89" != "xno" && break
2752done
2753rm -f conftest.$ac_ext
2754CC=$ac_save_CC
2755
2756fi
2757# AC_CACHE_VAL
2758case "x$ac_cv_prog_cc_c89" in
2759 x)
2760 { echo "$as_me:$LINENO: result: none needed" >&5
2761echo "${ECHO_T}none needed" >&6; } ;;
2762 xno)
2763 { echo "$as_me:$LINENO: result: unsupported" >&5
2764echo "${ECHO_T}unsupported" >&6; } ;;
2765 *)
2766 CC="$CC $ac_cv_prog_cc_c89"
2767 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2768echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2769esac
2770
2771
2772ac_ext=c
2773ac_cpp='$CPP $CPPFLAGS'
2774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776ac_compiler_gnu=$ac_cv_c_compiler_gnu
2777
2778ac_ext=cpp
2779ac_cpp='$CXXCPP $CPPFLAGS'
2780ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2783if test -z "$CXX"; then
2784 if test -n "$CCC"; then
2785 CXX=$CCC
2786 else
2787 if test -n "$ac_tool_prefix"; then
2788 for ac_prog in clang++ llvm-g++ g++
2789 do
2790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2791set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2792{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2794if test "${ac_cv_prog_CXX+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2796else
2797 if test -n "$CXX"; then
2798 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2799else
2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801for as_dir in $PATH
2802do
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2807 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 break 2
2810 fi
2811done
2812done
2813IFS=$as_save_IFS
2814
2815fi
2816fi
2817CXX=$ac_cv_prog_CXX
2818if test -n "$CXX"; then
2819 { echo "$as_me:$LINENO: result: $CXX" >&5
2820echo "${ECHO_T}$CXX" >&6; }
2821else
2822 { echo "$as_me:$LINENO: result: no" >&5
2823echo "${ECHO_T}no" >&6; }
2824fi
2825
2826
2827 test -n "$CXX" && break
2828 done
2829fi
2830if test -z "$CXX"; then
2831 ac_ct_CXX=$CXX
2832 for ac_prog in clang++ llvm-g++ g++
2833do
2834 # Extract the first word of "$ac_prog", so it can be a program name with args.
2835set dummy $ac_prog; ac_word=$2
2836{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2838if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2840else
2841 if test -n "$ac_ct_CXX"; then
2842 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2843else
2844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845for as_dir in $PATH
2846do
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2851 ac_cv_prog_ac_ct_CXX="$ac_prog"
2852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 break 2
2854 fi
2855done
2856done
2857IFS=$as_save_IFS
2858
2859fi
2860fi
2861ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2862if test -n "$ac_ct_CXX"; then
2863 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2864echo "${ECHO_T}$ac_ct_CXX" >&6; }
2865else
2866 { echo "$as_me:$LINENO: result: no" >&5
2867echo "${ECHO_T}no" >&6; }
2868fi
2869
2870
2871 test -n "$ac_ct_CXX" && break
2872done
2873
2874 if test "x$ac_ct_CXX" = x; then
2875 CXX="g++"
2876 else
2877 case $cross_compiling:$ac_tool_warned in
2878yes:)
2879{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2880whose name does not start with the host triplet. If you think this
2881configuration is useful to you, please write to autoconf@gnu.org." >&5
2882echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2883whose name does not start with the host triplet. If you think this
2884configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2885ac_tool_warned=yes ;;
2886esac
2887 CXX=$ac_ct_CXX
2888 fi
2889fi
2890
2891 fi
2892fi
2893# Provide some information about the compiler.
2894echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2895ac_compiler=`set X $ac_compile; echo $2`
2896{ (ac_try="$ac_compiler --version >&5"
2897case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900esac
2901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compiler --version >&5") 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2906{ (ac_try="$ac_compiler -v >&5"
2907case "(($ac_try" in
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2910esac
2911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_compiler -v >&5") 2>&5
2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }
2916{ (ac_try="$ac_compiler -V >&5"
2917case "(($ac_try" in
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2920esac
2921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_compiler -V >&5") 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }
2926
2927{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2928echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2929if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2931else
2932 cat >conftest.$ac_ext <<_ACEOF
2933/* confdefs.h. */
2934_ACEOF
2935cat confdefs.h >>conftest.$ac_ext
2936cat >>conftest.$ac_ext <<_ACEOF
2937/* end confdefs.h. */
2938
2939int
2940main ()
2941{
2942#ifndef __GNUC__
2943 choke me
2944#endif
2945
2946 ;
2947 return 0;
2948}
2949_ACEOF
2950rm -f conftest.$ac_objext
2951if { (ac_try="$ac_compile"
2952case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955esac
2956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_compile") 2>conftest.er1
2958 ac_status=$?
2959 grep -v '^ *+' conftest.er1 >conftest.err
2960 rm -f conftest.er1
2961 cat conftest.err >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } &&
2964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2965 { (case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968esac
2969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_try") 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; } &&
2974 { ac_try='test -s conftest.$ac_objext'
2975 { (case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978esac
2979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_try") 2>&5
2981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; }; then
2984 ac_compiler_gnu=yes
2985else
2986 echo "$as_me: failed program was:" >&5
2987sed 's/^/| /' conftest.$ac_ext >&5
2988
2989 ac_compiler_gnu=no
2990fi
2991
2992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2994
2995fi
2996{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2997echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2998GXX=`test $ac_compiler_gnu = yes && echo yes`
2999ac_test_CXXFLAGS=${CXXFLAGS+set}
3000ac_save_CXXFLAGS=$CXXFLAGS
3001{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3002echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3003if test "${ac_cv_prog_cxx_g+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3005else
3006 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3007 ac_cxx_werror_flag=yes
3008 ac_cv_prog_cxx_g=no
3009 CXXFLAGS="-g"
3010 cat >conftest.$ac_ext <<_ACEOF
3011/* confdefs.h. */
3012_ACEOF
3013cat confdefs.h >>conftest.$ac_ext
3014cat >>conftest.$ac_ext <<_ACEOF
3015/* end confdefs.h. */
3016
3017int
3018main ()
3019{
3020
3021 ;
3022 return 0;
3023}
3024_ACEOF
3025rm -f conftest.$ac_objext
3026if { (ac_try="$ac_compile"
3027case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030esac
3031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_compile") 2>conftest.er1
3033 ac_status=$?
3034 grep -v '^ *+' conftest.er1 >conftest.err
3035 rm -f conftest.er1
3036 cat conftest.err >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } &&
3039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3040 { (case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043esac
3044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_try") 2>&5
3046 ac_status=$?
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; } &&
3049 { ac_try='test -s conftest.$ac_objext'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3053esac
3054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_try") 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3059 ac_cv_prog_cxx_g=yes
3060else
3061 echo "$as_me: failed program was:" >&5
3062sed 's/^/| /' conftest.$ac_ext >&5
3063
3064 CXXFLAGS=""
3065 cat >conftest.$ac_ext <<_ACEOF
3066/* confdefs.h. */
3067_ACEOF
3068cat confdefs.h >>conftest.$ac_ext
3069cat >>conftest.$ac_ext <<_ACEOF
3070/* end confdefs.h. */
3071
3072int
3073main ()
3074{
3075
3076 ;
3077 return 0;
3078}
3079_ACEOF
3080rm -f conftest.$ac_objext
3081if { (ac_try="$ac_compile"
3082case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085esac
3086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_compile") 2>conftest.er1
3088 ac_status=$?
3089 grep -v '^ *+' conftest.er1 >conftest.err
3090 rm -f conftest.er1
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } &&
3094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098esac
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108esac
3109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_try") 2>&5
3111 ac_status=$?
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; }; then
3114 :
3115else
3116 echo "$as_me: failed program was:" >&5
3117sed 's/^/| /' conftest.$ac_ext >&5
3118
3119 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3120 CXXFLAGS="-g"
3121 cat >conftest.$ac_ext <<_ACEOF
3122/* confdefs.h. */
3123_ACEOF
3124cat confdefs.h >>conftest.$ac_ext
3125cat >>conftest.$ac_ext <<_ACEOF
3126/* end confdefs.h. */
3127
3128int
3129main ()
3130{
3131
3132 ;
3133 return 0;
3134}
3135_ACEOF
3136rm -f conftest.$ac_objext
3137if { (ac_try="$ac_compile"
3138case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_compile") 2>conftest.er1
3144 ac_status=$?
3145 grep -v '^ *+' conftest.er1 >conftest.err
3146 rm -f conftest.er1
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } &&
3150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3151 { (case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154esac
3155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_try") 2>&5
3157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; } &&
3160 { ac_try='test -s conftest.$ac_objext'
3161 { (case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164esac
3165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_try") 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3170 ac_cv_prog_cxx_g=yes
3171else
3172 echo "$as_me: failed program was:" >&5
3173sed 's/^/| /' conftest.$ac_ext >&5
3174
3175
3176fi
3177
3178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179fi
3180
3181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182fi
3183
3184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3186fi
3187{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3188echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3189if test "$ac_test_CXXFLAGS" = set; then
3190 CXXFLAGS=$ac_save_CXXFLAGS
3191elif test $ac_cv_prog_cxx_g = yes; then
3192 if test "$GXX" = yes; then
3193 CXXFLAGS="-g -O2"
3194 else
3195 CXXFLAGS="-g"
3196 fi
3197else
3198 if test "$GXX" = yes; then
3199 CXXFLAGS="-O2"
3200 else
3201 CXXFLAGS=
3202 fi
3203fi
3204ac_ext=c
3205ac_cpp='$CPP $CPPFLAGS'
3206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209
3210ac_ext=c
3211ac_cpp='$CPP $CPPFLAGS'
3212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3216echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3217# On Suns, sometimes $CPP names a directory.
3218if test -n "$CPP" && test -d "$CPP"; then
3219 CPP=
3220fi
3221if test -z "$CPP"; then
3222 if test "${ac_cv_prog_CPP+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3224else
3225 # Double quotes because CPP needs to be expanded
3226 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3227 do
3228 ac_preproc_ok=false
3229for ac_c_preproc_warn_flag in '' yes
3230do
3231 # Use a header file that comes with gcc, so configuring glibc
3232 # with a fresh cross-compiler works.
3233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3234 # <limits.h> exists even on freestanding compilers.
3235 # On the NeXT, cc -E runs the code through the compiler's parser,
3236 # not just through cpp. "Syntax error" is here to catch this case.
3237 cat >conftest.$ac_ext <<_ACEOF
3238/* confdefs.h. */
3239_ACEOF
3240cat confdefs.h >>conftest.$ac_ext
3241cat >>conftest.$ac_ext <<_ACEOF
3242/* end confdefs.h. */
3243#ifdef __STDC__
3244# include <limits.h>
3245#else
3246# include <assert.h>
3247#endif
3248 Syntax error
3249_ACEOF
3250if { (ac_try="$ac_cpp conftest.$ac_ext"
3251case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254esac
3255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3257 ac_status=$?
3258 grep -v '^ *+' conftest.er1 >conftest.err
3259 rm -f conftest.er1
3260 cat conftest.err >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } >/dev/null; then
3263 if test -s conftest.err; then
3264 ac_cpp_err=$ac_c_preproc_warn_flag
3265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3266 else
3267 ac_cpp_err=
3268 fi
3269else
3270 ac_cpp_err=yes
3271fi
3272if test -z "$ac_cpp_err"; then
3273 :
3274else
3275 echo "$as_me: failed program was:" >&5
3276sed 's/^/| /' conftest.$ac_ext >&5
3277
3278 # Broken: fails on valid input.
3279continue
3280fi
3281
3282rm -f conftest.err conftest.$ac_ext
3283
3284 # OK, works on sane cases. Now check whether nonexistent headers
3285 # can be detected and how.
3286 cat >conftest.$ac_ext <<_ACEOF
3287/* confdefs.h. */
3288_ACEOF
3289cat confdefs.h >>conftest.$ac_ext
3290cat >>conftest.$ac_ext <<_ACEOF
3291/* end confdefs.h. */
3292#include <ac_nonexistent.h>
3293_ACEOF
3294if { (ac_try="$ac_cpp conftest.$ac_ext"
3295case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298esac
3299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3301 ac_status=$?
3302 grep -v '^ *+' conftest.er1 >conftest.err
3303 rm -f conftest.er1
3304 cat conftest.err >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } >/dev/null; then
3307 if test -s conftest.err; then
3308 ac_cpp_err=$ac_c_preproc_warn_flag
3309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3310 else
3311 ac_cpp_err=
3312 fi
3313else
3314 ac_cpp_err=yes
3315fi
3316if test -z "$ac_cpp_err"; then
3317 # Broken: success on invalid input.
3318continue
3319else
3320 echo "$as_me: failed program was:" >&5
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
3323 # Passes both tests.
3324ac_preproc_ok=:
3325break
3326fi
3327
3328rm -f conftest.err conftest.$ac_ext
3329
3330done
3331# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3332rm -f conftest.err conftest.$ac_ext
3333if $ac_preproc_ok; then
3334 break
3335fi
3336
3337 done
3338 ac_cv_prog_CPP=$CPP
3339
3340fi
3341 CPP=$ac_cv_prog_CPP
3342else
3343 ac_cv_prog_CPP=$CPP
3344fi
3345{ echo "$as_me:$LINENO: result: $CPP" >&5
3346echo "${ECHO_T}$CPP" >&6; }
3347ac_preproc_ok=false
3348for ac_c_preproc_warn_flag in '' yes
3349do
3350 # Use a header file that comes with gcc, so configuring glibc
3351 # with a fresh cross-compiler works.
3352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3353 # <limits.h> exists even on freestanding compilers.
3354 # On the NeXT, cc -E runs the code through the compiler's parser,
3355 # not just through cpp. "Syntax error" is here to catch this case.
3356 cat >conftest.$ac_ext <<_ACEOF
3357/* confdefs.h. */
3358_ACEOF
3359cat confdefs.h >>conftest.$ac_ext
3360cat >>conftest.$ac_ext <<_ACEOF
3361/* end confdefs.h. */
3362#ifdef __STDC__
3363# include <limits.h>
3364#else
3365# include <assert.h>
3366#endif
3367 Syntax error
3368_ACEOF
3369if { (ac_try="$ac_cpp conftest.$ac_ext"
3370case "(($ac_try" in
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3373esac
3374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3376 ac_status=$?
3377 grep -v '^ *+' conftest.er1 >conftest.err
3378 rm -f conftest.er1
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } >/dev/null; then
3382 if test -s conftest.err; then
3383 ac_cpp_err=$ac_c_preproc_warn_flag
3384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3385 else
3386 ac_cpp_err=
3387 fi
3388else
3389 ac_cpp_err=yes
3390fi
3391if test -z "$ac_cpp_err"; then
3392 :
3393else
3394 echo "$as_me: failed program was:" >&5
3395sed 's/^/| /' conftest.$ac_ext >&5
3396
3397 # Broken: fails on valid input.
3398continue
3399fi
3400
3401rm -f conftest.err conftest.$ac_ext
3402
3403 # OK, works on sane cases. Now check whether nonexistent headers
3404 # can be detected and how.
3405 cat >conftest.$ac_ext <<_ACEOF
3406/* confdefs.h. */
3407_ACEOF
3408cat confdefs.h >>conftest.$ac_ext
3409cat >>conftest.$ac_ext <<_ACEOF
3410/* end confdefs.h. */
3411#include <ac_nonexistent.h>
3412_ACEOF
3413if { (ac_try="$ac_cpp conftest.$ac_ext"
3414case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3417esac
3418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3420 ac_status=$?
3421 grep -v '^ *+' conftest.er1 >conftest.err
3422 rm -f conftest.er1
3423 cat conftest.err >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } >/dev/null; then
3426 if test -s conftest.err; then
3427 ac_cpp_err=$ac_c_preproc_warn_flag
3428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3429 else
3430 ac_cpp_err=
3431 fi
3432else
3433 ac_cpp_err=yes
3434fi
3435if test -z "$ac_cpp_err"; then
3436 # Broken: success on invalid input.
3437continue
3438else
3439 echo "$as_me: failed program was:" >&5
3440sed 's/^/| /' conftest.$ac_ext >&5
3441
3442 # Passes both tests.
3443ac_preproc_ok=:
3444break
3445fi
3446
3447rm -f conftest.err conftest.$ac_ext
3448
3449done
3450# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451rm -f conftest.err conftest.$ac_ext
3452if $ac_preproc_ok; then
3453 :
3454else
3455 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3456See \`config.log' for more details." >&5
3457echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3458See \`config.log' for more details." >&2;}
3459 { (exit 1); exit 1; }; }
3460fi
3461
3462ac_ext=c
3463ac_cpp='$CPP $CPPFLAGS'
3464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467
3468
3469
3470
3471# Check whether --enable-polly was given.
3472if test "${enable_polly+set}" = set; then
3473 enableval=$enable_polly;
3474else
3475 enableval=default
3476fi
3477
3478case "$enableval" in
3479 yes) ENABLE_POLLY=1
3480 ;;
3481 no) ENABLE_POLLY=0
3482 ;;
3483 default) ENABLE_POLLY=1
3484 ;;
3485 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3486echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3487 { (exit 1); exit 1; }; } ;;
3488esac
3489
3490
3491if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3492 LLVM_HAS_POLLY=1
3493
3494 subdirs="$subdirs tools/polly"
3495
3496fi
3497
3498
3499# Make sure we can run config.sub.
3500$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3501 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3502echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3503 { (exit 1); exit 1; }; }
3504
3505{ echo "$as_me:$LINENO: checking build system type" >&5
3506echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3507if test "${ac_cv_build+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3509else
3510 ac_build_alias=$build_alias
3511test "x$ac_build_alias" = x &&
3512 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3513test "x$ac_build_alias" = x &&
3514 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3515echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3516 { (exit 1); exit 1; }; }
3517ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3518 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3519echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3520 { (exit 1); exit 1; }; }
3521
3522fi
3523{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3524echo "${ECHO_T}$ac_cv_build" >&6; }
3525case $ac_cv_build in
3526*-*-*) ;;
3527*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3528echo "$as_me: error: invalid value of canonical build" >&2;}
3529 { (exit 1); exit 1; }; };;
3530esac
3531build=$ac_cv_build
3532ac_save_IFS=$IFS; IFS='-'
3533set x $ac_cv_build
3534shift
3535build_cpu=$1
3536build_vendor=$2
3537shift; shift
3538# Remember, the first character of IFS is used to create $*,
3539# except with old shells:
3540build_os=$*
3541IFS=$ac_save_IFS
3542case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3543
3544
3545{ echo "$as_me:$LINENO: checking host system type" >&5
3546echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3547if test "${ac_cv_host+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549else
3550 if test "x$host_alias" = x; then
3551 ac_cv_host=$ac_cv_build
3552else
3553 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3554 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3555echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3556 { (exit 1); exit 1; }; }
3557fi
3558
3559fi
3560{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3561echo "${ECHO_T}$ac_cv_host" >&6; }
3562case $ac_cv_host in
3563*-*-*) ;;
3564*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3565echo "$as_me: error: invalid value of canonical host" >&2;}
3566 { (exit 1); exit 1; }; };;
3567esac
3568host=$ac_cv_host
3569ac_save_IFS=$IFS; IFS='-'
3570set x $ac_cv_host
3571shift
3572host_cpu=$1
3573host_vendor=$2
3574shift; shift
3575# Remember, the first character of IFS is used to create $*,
3576# except with old shells:
3577host_os=$*
3578IFS=$ac_save_IFS
3579case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3580
3581
3582{ echo "$as_me:$LINENO: checking target system type" >&5
3583echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3584if test "${ac_cv_target+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3586else
3587 if test "x$target_alias" = x; then
3588 ac_cv_target=$ac_cv_host
3589else
3590 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3591 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3592echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3593 { (exit 1); exit 1; }; }
3594fi
3595
3596fi
3597{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3598echo "${ECHO_T}$ac_cv_target" >&6; }
3599case $ac_cv_target in
3600*-*-*) ;;
3601*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3602echo "$as_me: error: invalid value of canonical target" >&2;}
3603 { (exit 1); exit 1; }; };;
3604esac
3605target=$ac_cv_target
3606ac_save_IFS=$IFS; IFS='-'
3607set x $ac_cv_target
3608shift
3609target_cpu=$1
3610target_vendor=$2
3611shift; shift
3612# Remember, the first character of IFS is used to create $*,
3613# except with old shells:
3614target_os=$*
3615IFS=$ac_save_IFS
3616case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3617
3618
3619# The aliases save the names the user supplied, while $host etc.
3620# will get canonicalized.
3621test -n "$target_alias" &&
3622 test "$program_prefix$program_suffix$program_transform_name" = \
3623 NONENONEs,x,x, &&
3624 program_prefix=${target_alias}-
3625
3626{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3627echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3628if test "${llvm_cv_os_type+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3630else
3631 case $host in
3632 *-*-aix*)
3633 llvm_cv_link_all_option="-Wl,--whole-archive"
3634 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3635 llvm_cv_os_type="AIX"
3636 llvm_cv_platform_type="Unix" ;;
3637 *-*-irix*)
3638 llvm_cv_link_all_option="-Wl,--whole-archive"
3639 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3640 llvm_cv_os_type="IRIX"
3641 llvm_cv_platform_type="Unix" ;;
3642 *-*-cygwin*)
3643 llvm_cv_link_all_option="-Wl,--whole-archive"
3644 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3645 llvm_cv_os_type="Cygwin"
3646 llvm_cv_platform_type="Unix" ;;
3647 *-*-darwin*)
3648 llvm_cv_link_all_option="-Wl,-all_load"
3649 llvm_cv_no_link_all_option="-Wl,-noall_load"
3650 llvm_cv_os_type="Darwin"
3651 llvm_cv_platform_type="Unix" ;;
3652 *-*-minix*)
3653 llvm_cv_link_all_option="-Wl,-all_load"
3654 llvm_cv_no_link_all_option="-Wl,-noall_load"
3655 llvm_cv_os_type="Minix"
3656 llvm_cv_platform_type="Unix" ;;
3657 *-*-freebsd*)
3658 llvm_cv_link_all_option="-Wl,--whole-archive"
3659 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3660 llvm_cv_os_type="FreeBSD"
3661 llvm_cv_platform_type="Unix" ;;
3662 *-*-openbsd*)
3663 llvm_cv_link_all_option="-Wl,--whole-archive"
3664 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3665 llvm_cv_os_type="OpenBSD"
3666 llvm_cv_platform_type="Unix" ;;
3667 *-*-netbsd*)
3668 llvm_cv_link_all_option="-Wl,--whole-archive"
3669 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3670 llvm_cv_os_type="NetBSD"
3671 llvm_cv_platform_type="Unix" ;;
3672 *-*-dragonfly*)
3673 llvm_cv_link_all_option="-Wl,--whole-archive"
3674 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3675 llvm_cv_os_type="DragonFly"
3676 llvm_cv_platform_type="Unix" ;;
3677 *-*-hpux*)
3678 llvm_cv_link_all_option="-Wl,--whole-archive"
3679 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3680 llvm_cv_os_type="HP-UX"
3681 llvm_cv_platform_type="Unix" ;;
3682 *-*-interix*)
3683 llvm_cv_link_all_option="-Wl,--whole-archive"
3684 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3685 llvm_cv_os_type="Interix"
3686 llvm_cv_platform_type="Unix" ;;
3687 *-*-linux*)
3688 llvm_cv_link_all_option="-Wl,--whole-archive"
3689 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3690 llvm_cv_os_type="Linux"
3691 llvm_cv_platform_type="Unix" ;;
3692 *-*-solaris*)
3693 llvm_cv_link_all_option="-Wl,-z,allextract"
3694 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3695 llvm_cv_os_type="SunOS"
3696 llvm_cv_platform_type="Unix" ;;
3697 *-*-auroraux*)
3698 llvm_cv_link_all_option="-Wl,-z,allextract"
3699 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3700 llvm_cv_os_type="AuroraUX"
3701 llvm_cv_platform_type="Unix" ;;
3702 *-*-win32*)
3703 llvm_cv_link_all_option="-Wl,--whole-archive"
3704 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3705 llvm_cv_os_type="Win32"
3706 llvm_cv_platform_type="Win32" ;;
3707 *-*-mingw*)
3708 llvm_cv_link_all_option="-Wl,--whole-archive"
3709 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710 llvm_cv_os_type="MingW"
3711 llvm_cv_platform_type="Win32" ;;
3712 *-*-haiku*)
3713 llvm_cv_link_all_option="-Wl,--whole-archive"
3714 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715 llvm_cv_os_type="Haiku"
3716 llvm_cv_platform_type="Unix" ;;
3717 *-unknown-eabi*)
3718 llvm_cv_link_all_option="-Wl,--whole-archive"
3719 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720 llvm_cv_os_type="Freestanding"
3721 llvm_cv_platform_type="Unix" ;;
3722 *-unknown-elf*)
3723 llvm_cv_link_all_option="-Wl,--whole-archive"
3724 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725 llvm_cv_os_type="Freestanding"
3726 llvm_cv_platform_type="Unix" ;;
3727 *)
3728 llvm_cv_link_all_option=""
3729 llvm_cv_no_link_all_option=""
3730 llvm_cv_os_type="Unknown"
3731 llvm_cv_platform_type="Unknown" ;;
3732esac
3733fi
3734{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3735echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3736
3737{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3738echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3739if test "${llvm_cv_target_os_type+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741else
3742 case $target in
3743 *-*-aix*)
3744 llvm_cv_target_os_type="AIX" ;;
3745 *-*-irix*)
3746 llvm_cv_target_os_type="IRIX" ;;
3747 *-*-cygwin*)
3748 llvm_cv_target_os_type="Cygwin" ;;
3749 *-*-darwin*)
3750 llvm_cv_target_os_type="Darwin" ;;
3751 *-*-minix*)
3752 llvm_cv_target_os_type="Minix" ;;
3753 *-*-freebsd*)
3754 llvm_cv_target_os_type="FreeBSD" ;;
3755 *-*-openbsd*)
3756 llvm_cv_target_os_type="OpenBSD" ;;
3757 *-*-netbsd*)
3758 llvm_cv_target_os_type="NetBSD" ;;
3759 *-*-dragonfly*)
3760 llvm_cv_target_os_type="DragonFly" ;;
3761 *-*-hpux*)
3762 llvm_cv_target_os_type="HP-UX" ;;
3763 *-*-interix*)
3764 llvm_cv_target_os_type="Interix" ;;
3765 *-*-linux*)
3766 llvm_cv_target_os_type="Linux" ;;
3767 *-*-solaris*)
3768 llvm_cv_target_os_type="SunOS" ;;
3769 *-*-auroraux*)
3770 llvm_cv_target_os_type="AuroraUX" ;;
3771 *-*-win32*)
3772 llvm_cv_target_os_type="Win32" ;;
3773 *-*-mingw*)
3774 llvm_cv_target_os_type="MingW" ;;
3775 *-*-haiku*)
3776 llvm_cv_target_os_type="Haiku" ;;
3777 *-*-rtems*)
3778 llvm_cv_target_os_type="RTEMS" ;;
3779 *-*-nacl*)
3780 llvm_cv_target_os_type="NativeClient" ;;
3781 *-unknown-eabi*)
3782 llvm_cv_target_os_type="Freestanding" ;;
3783 *)
3784 llvm_cv_target_os_type="Unknown" ;;
3785esac
3786fi
3787{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3788echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3789
3790if test "$llvm_cv_os_type" = "Unknown" ; then
3791 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3792echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3793 { (exit 1); exit 1; }; }
3794fi
3795
3796OS=$llvm_cv_os_type
3797
3798HOST_OS=$llvm_cv_os_type
3799
3800TARGET_OS=$llvm_cv_target_os_type
3801
3802
3803LINKALL=$llvm_cv_link_all_option
3804
3805NOLINKALL=$llvm_cv_no_link_all_option
3806
3807
3808case $llvm_cv_platform_type in
3809 Unix)
3810
3811cat >>confdefs.h <<\_ACEOF
3812#define LLVM_ON_UNIX 1
3813_ACEOF
3814
3815 LLVM_ON_UNIX=1
3816
3817 LLVM_ON_WIN32=0
3818
3819 ;;
3820 Win32)
3821
3822cat >>confdefs.h <<\_ACEOF
3823#define LLVM_ON_WIN32 1
3824_ACEOF
3825
3826 LLVM_ON_UNIX=0
3827
3828 LLVM_ON_WIN32=1
3829
3830 ;;
3831esac
3832
3833{ echo "$as_me:$LINENO: checking target architecture" >&5
3834echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3835if test "${llvm_cv_target_arch+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3837else
3838 case $target in
3839 i?86-*) llvm_cv_target_arch="x86" ;;
3840 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3841 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3842 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00003843 arm*-*) llvm_cv_target_arch="ARM" ;;
3844 mips-*) llvm_cv_target_arch="Mips" ;;
3845 xcore-*) llvm_cv_target_arch="XCore" ;;
3846 msp430-*) llvm_cv_target_arch="MSP430" ;;
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 ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005048 MBlaze) TARGET_HAS_JIT=0
5049 ;;
5050 PTX) TARGET_HAS_JIT=0
5051 ;;
5052 *) TARGET_HAS_JIT=0
5053 ;;
5054 esac
5055fi
5056
5057# Check whether --enable-docs was given.
5058if test "${enable_docs+set}" = set; then
5059 enableval=$enable_docs;
5060else
5061 enableval=default
5062fi
5063
5064case "$enableval" in
5065 yes) ENABLE_DOCS=1
5066 ;;
5067 no) ENABLE_DOCS=0
5068 ;;
5069 default) ENABLE_DOCS=1
5070 ;;
5071 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5072echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5073 { (exit 1); exit 1; }; } ;;
5074esac
5075
5076# Check whether --enable-doxygen was given.
5077if test "${enable_doxygen+set}" = set; then
5078 enableval=$enable_doxygen;
5079else
5080 enableval=default
5081fi
5082
5083case "$enableval" in
5084 yes) ENABLE_DOXYGEN=1
5085 ;;
5086 no) ENABLE_DOXYGEN=0
5087 ;;
5088 default) ENABLE_DOXYGEN=0
5089 ;;
5090 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5091echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5092 { (exit 1); exit 1; }; } ;;
5093esac
5094
5095# Check whether --enable-threads was given.
5096if test "${enable_threads+set}" = set; then
5097 enableval=$enable_threads;
5098else
5099 enableval=default
5100fi
5101
5102case "$enableval" in
5103 yes) ENABLE_THREADS=1
5104 ;;
5105 no) ENABLE_THREADS=0
5106 ;;
5107 default) ENABLE_THREADS=1
5108 ;;
5109 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5110echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5111 { (exit 1); exit 1; }; } ;;
5112esac
5113
5114cat >>confdefs.h <<_ACEOF
5115#define ENABLE_THREADS $ENABLE_THREADS
5116_ACEOF
5117
5118
5119# Check whether --enable-pthreads was given.
5120if test "${enable_pthreads+set}" = set; then
5121 enableval=$enable_pthreads;
5122else
5123 enableval=default
5124fi
5125
5126case "$enableval" in
5127 yes) ENABLE_PTHREADS=1
5128 ;;
5129 no) ENABLE_PTHREADS=0
5130 ;;
5131 default) ENABLE_PTHREADS=1
5132 ;;
5133 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5134echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5135 { (exit 1); exit 1; }; } ;;
5136esac
5137
5138# Check whether --enable-pic was given.
5139if test "${enable_pic+set}" = set; then
5140 enableval=$enable_pic;
5141else
5142 enableval=default
5143fi
5144
5145case "$enableval" in
5146 yes) ENABLE_PIC=1
5147 ;;
5148 no) ENABLE_PIC=0
5149 ;;
5150 default) ENABLE_PIC=1
5151 ;;
5152 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5153echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5154 { (exit 1); exit 1; }; } ;;
5155esac
5156
5157cat >>confdefs.h <<_ACEOF
5158#define ENABLE_PIC $ENABLE_PIC
5159_ACEOF
5160
5161
5162# Check whether --enable-shared was given.
5163if test "${enable_shared+set}" = set; then
5164 enableval=$enable_shared;
5165else
5166 enableval=default
5167fi
5168
5169case "$enableval" in
5170 yes) ENABLE_SHARED=1
5171 ;;
5172 no) ENABLE_SHARED=0
5173 ;;
5174 default) ENABLE_SHARED=0
5175 ;;
5176 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5177echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5178 { (exit 1); exit 1; }; } ;;
5179esac
5180
5181# Check whether --enable-embed-stdcxx was given.
5182if test "${enable_embed_stdcxx+set}" = set; then
5183 enableval=$enable_embed_stdcxx;
5184else
5185 enableval=default
5186fi
5187
5188case "$enableval" in
5189 yes) ENABLE_EMBED_STDCXX=1
5190 ;;
5191 no) ENABLE_EMBED_STDCXX=0
5192 ;;
5193 default) ENABLE_EMBED_STDCXX=1
5194 ;;
5195 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5196echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5197 { (exit 1); exit 1; }; } ;;
5198esac
5199
5200# Check whether --enable-timestamps was given.
5201if test "${enable_timestamps+set}" = set; then
5202 enableval=$enable_timestamps;
5203else
5204 enableval=default
5205fi
5206
5207case "$enableval" in
5208 yes) ENABLE_TIMESTAMPS=1
5209 ;;
5210 no) ENABLE_TIMESTAMPS=0
5211 ;;
5212 default) ENABLE_TIMESTAMPS=1
5213 ;;
5214 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5215echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5216 { (exit 1); exit 1; }; } ;;
5217esac
5218
5219cat >>confdefs.h <<_ACEOF
5220#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5221_ACEOF
5222
5223
5224TARGETS_TO_BUILD=""
5225# Check whether --enable-targets was given.
5226if test "${enable_targets+set}" = set; then
5227 enableval=$enable_targets;
5228else
5229 enableval=all
5230fi
5231
5232if test "$enableval" = host-only ; then
5233 enableval=host
5234fi
5235case "$enableval" in
Dan Gohman33ba8b02011-10-27 22:56:32 +00005236 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005237 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5238 case "$a_target" in
5239 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5240 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5241 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5242 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005243 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5244 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5245 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5246 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5247 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005248 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5249 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5250 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5251 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5252 host) case "$llvm_cv_target_arch" in
5253 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5254 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5255 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5256 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005257 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5258 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5259 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5260 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5261 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5262 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +00005263 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5264 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5265echo "$as_me: error: Can not set target to build" >&2;}
5266 { (exit 1); exit 1; }; } ;;
5267 esac ;;
5268 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5269echo "$as_me: error: Unrecognized target $a_target" >&2;}
5270 { (exit 1); exit 1; }; } ;;
5271 esac
5272 done
5273 ;;
5274esac
5275TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5276
5277
5278# Determine whether we are building LLVM support for the native architecture.
5279# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5280for a_target in $TARGETS_TO_BUILD; do
5281 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5282
5283cat >>confdefs.h <<_ACEOF
5284#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5285_ACEOF
5286
5287 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5288 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5289 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5290 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5291 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5292 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5293 fi
5294
5295cat >>confdefs.h <<_ACEOF
5296#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5297_ACEOF
5298
5299
5300cat >>confdefs.h <<_ACEOF
5301#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5302_ACEOF
5303
5304
5305cat >>confdefs.h <<_ACEOF
5306#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5307_ACEOF
5308
5309
5310cat >>confdefs.h <<_ACEOF
5311#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5312_ACEOF
5313
5314 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5315
5316cat >>confdefs.h <<_ACEOF
5317#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5318_ACEOF
5319
5320 fi
5321 fi
5322done
5323
5324# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5325# target feature def files.
5326LLVM_ENUM_TARGETS=""
5327LLVM_ENUM_ASM_PRINTERS=""
5328LLVM_ENUM_ASM_PARSERS=""
5329LLVM_ENUM_DISASSEMBLERS=""
5330for target_to_build in $TARGETS_TO_BUILD; do
5331 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5332 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5333 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5334 fi
5335 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5336 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5337 fi
5338 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5339 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5340 fi
5341done
5342
5343
5344
5345
5346
5347# Check whether --enable-cbe-printf-a was given.
5348if test "${enable_cbe_printf_a+set}" = set; then
5349 enableval=$enable_cbe_printf_a;
5350else
5351 enableval=default
5352fi
5353
5354case "$enableval" in
5355 yes) ENABLE_CBE_PRINTF_A=1
5356 ;;
5357 no) ENABLE_CBE_PRINTF_A=0
5358 ;;
5359 default) ENABLE_CBE_PRINTF_A=1
5360 ;;
5361 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5362echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5363 { (exit 1); exit 1; }; } ;;
5364esac
5365
5366cat >>confdefs.h <<_ACEOF
5367#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5368_ACEOF
5369
5370
5371
5372# Check whether --with-optimize-option was given.
5373if test "${with_optimize_option+set}" = set; then
5374 withval=$with_optimize_option;
5375else
5376 withval=default
5377fi
5378
5379{ echo "$as_me:$LINENO: checking optimization flags" >&5
5380echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5381case "$withval" in
5382 default)
5383 case "$llvm_cv_os_type" in
5384 FreeBSD) optimize_option=-O2 ;;
5385 MingW) optimize_option=-O2 ;;
5386 *) optimize_option=-O3 ;;
5387 esac ;;
5388 *) optimize_option="$withval" ;;
5389esac
5390OPTIMIZE_OPTION=$optimize_option
5391
5392{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5393echo "${ECHO_T}$optimize_option" >&6; }
5394
5395
5396# Check whether --with-extra-options was given.
5397if test "${with_extra_options+set}" = set; then
5398 withval=$with_extra_options;
5399else
5400 withval=default
5401fi
5402
5403case "$withval" in
5404 default) EXTRA_OPTIONS= ;;
5405 *) EXTRA_OPTIONS=$withval ;;
5406esac
5407EXTRA_OPTIONS=$EXTRA_OPTIONS
5408
5409
5410
5411# Check whether --with-extra-ld-options was given.
5412if test "${with_extra_ld_options+set}" = set; then
5413 withval=$with_extra_ld_options;
5414else
5415 withval=default
5416fi
5417
5418case "$withval" in
5419 default) EXTRA_LD_OPTIONS= ;;
5420 *) EXTRA_LD_OPTIONS=$withval ;;
5421esac
5422EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5423
5424
5425# Check whether --enable-bindings was given.
5426if test "${enable_bindings+set}" = set; then
5427 enableval=$enable_bindings;
5428else
5429 enableval=default
5430fi
5431
5432BINDINGS_TO_BUILD=""
5433case "$enableval" in
5434 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5435 all ) BINDINGS_TO_BUILD="ocaml" ;;
5436 none | no) BINDINGS_TO_BUILD="" ;;
5437 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5438 case "$a_binding" in
5439 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5440 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5441echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5442 { (exit 1); exit 1; }; } ;;
5443 esac
5444 done
5445 ;;
5446esac
5447
5448
5449# Check whether --with-ocaml-libdir was given.
5450if test "${with_ocaml_libdir+set}" = set; then
5451 withval=$with_ocaml_libdir;
5452else
5453 withval=auto
5454fi
5455
5456case "$withval" in
5457 auto) with_ocaml_libdir="$withval" ;;
5458 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5459 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5460echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5461 { (exit 1); exit 1; }; } ;;
5462esac
5463
5464
5465# Check whether --with-clang-resource-dir was given.
5466if test "${with_clang_resource_dir+set}" = set; then
5467 withval=$with_clang_resource_dir;
5468else
5469 withval=""
5470fi
5471
5472
5473cat >>confdefs.h <<_ACEOF
5474#define CLANG_RESOURCE_DIR "$withval"
5475_ACEOF
5476
5477
5478
5479# Check whether --with-c-include-dirs was given.
5480if test "${with_c_include_dirs+set}" = set; then
5481 withval=$with_c_include_dirs;
5482else
5483 withval=""
5484fi
5485
5486
5487cat >>confdefs.h <<_ACEOF
5488#define C_INCLUDE_DIRS "$withval"
5489_ACEOF
5490
5491
5492
5493# Check whether --with-cxx-include-root was given.
5494if test "${with_cxx_include_root+set}" = set; then
5495 withval=$with_cxx_include_root;
5496else
5497 withval=""
5498fi
5499
5500
5501cat >>confdefs.h <<_ACEOF
5502#define CXX_INCLUDE_ROOT "$withval"
5503_ACEOF
5504
5505
5506
5507# Check whether --with-cxx-include-arch was given.
5508if test "${with_cxx_include_arch+set}" = set; then
5509 withval=$with_cxx_include_arch;
5510else
5511 withval=""
5512fi
5513
5514
5515cat >>confdefs.h <<_ACEOF
5516#define CXX_INCLUDE_ARCH "$withval"
5517_ACEOF
5518
5519
5520
5521# Check whether --with-cxx-include-32bit-dir was given.
5522if test "${with_cxx_include_32bit_dir+set}" = set; then
5523 withval=$with_cxx_include_32bit_dir;
5524else
5525 withval=""
5526fi
5527
5528
5529cat >>confdefs.h <<_ACEOF
5530#define CXX_INCLUDE_32BIT_DIR "$withval"
5531_ACEOF
5532
5533
5534
5535# Check whether --with-cxx-include-64bit-dir was given.
5536if test "${with_cxx_include_64bit_dir+set}" = set; then
5537 withval=$with_cxx_include_64bit_dir;
5538else
5539 withval=""
5540fi
5541
5542
5543cat >>confdefs.h <<_ACEOF
5544#define CXX_INCLUDE_64BIT_DIR "$withval"
5545_ACEOF
5546
5547
5548
5549# Check whether --with-binutils-include was given.
5550if test "${with_binutils_include+set}" = set; then
5551 withval=$with_binutils_include;
5552else
5553 withval=default
5554fi
5555
5556case "$withval" in
5557 default) WITH_BINUTILS_INCDIR=default ;;
5558 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5559 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5560echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5561 { (exit 1); exit 1; }; } ;;
5562esac
5563if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5564 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5565
5566 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5567 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5568 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5569echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5570 { (exit 1); exit 1; }; };
5571 fi
5572fi
5573
5574
5575# Check whether --with-bug-report-url was given.
5576if test "${with_bug_report_url+set}" = set; then
5577 withval=$with_bug_report_url;
5578else
5579 withval="http://llvm.org/bugs/"
5580fi
5581
5582
5583cat >>confdefs.h <<_ACEOF
5584#define BUG_REPORT_URL "$withval"
5585_ACEOF
5586
5587
5588# Check whether --enable-libffi was given.
5589if test "${enable_libffi+set}" = set; then
5590 enableval=$enable_libffi; case "$enableval" in
5591 yes) llvm_cv_enable_libffi="yes" ;;
5592 no) llvm_cv_enable_libffi="no" ;;
5593 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5594echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5595 { (exit 1); exit 1; }; } ;;
5596 esac
5597else
5598 llvm_cv_enable_libffi=no
5599fi
5600
5601
5602
5603{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5604echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5605if test "${lt_cv_path_NM+set}" = set; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5607else
5608 if test -n "$NM"; then
5609 # Let the user override the test.
5610 lt_cv_path_NM="$NM"
5611else
5612 lt_nm_to_check="${ac_tool_prefix}nm"
5613 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5614 lt_nm_to_check="$lt_nm_to_check nm"
5615 fi
5616 for lt_tmp_nm in $lt_nm_to_check; do
5617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5618 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5619 IFS="$lt_save_ifs"
5620 test -z "$ac_dir" && ac_dir=.
5621 tmp_nm="$ac_dir/$lt_tmp_nm"
5622 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5623 # Check to see if the nm accepts a BSD-compat flag.
5624 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5625 # nm: unknown option "B" ignored
5626 # Tru64's nm complains that /dev/null is an invalid object file
5627 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5628 */dev/null* | *'Invalid file or object type'*)
5629 lt_cv_path_NM="$tmp_nm -B"
5630 break
5631 ;;
5632 *)
5633 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5634 */dev/null*)
5635 lt_cv_path_NM="$tmp_nm -p"
5636 break
5637 ;;
5638 *)
5639 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5640 continue # so that we can try to find one that supports BSD flags
5641 ;;
5642 esac
5643 ;;
5644 esac
5645 fi
5646 done
5647 IFS="$lt_save_ifs"
5648 done
5649 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5650fi
5651fi
5652{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5653echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5654NM="$lt_cv_path_NM"
5655
5656
5657
5658{ echo "$as_me:$LINENO: checking for GNU make" >&5
5659echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5660if test "${llvm_cv_gnu_make_command+set}" = set; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5662else
5663 llvm_cv_gnu_make_command=''
5664 for a in "$MAKE" make gmake gnumake ; do
5665 if test -z "$a" ; then continue ; fi ;
5666 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5667 then
5668 llvm_cv_gnu_make_command=$a ;
5669 break;
5670 fi
5671 done
5672fi
5673{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5674echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5675 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5676 ifGNUmake='' ;
5677 else
5678 ifGNUmake='#' ;
5679 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5680echo "${ECHO_T}\"Not found\"" >&6; };
5681 fi
5682
5683
5684{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5685echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5686LN_S=$as_ln_s
5687if test "$LN_S" = "ln -s"; then
5688 { echo "$as_me:$LINENO: result: yes" >&5
5689echo "${ECHO_T}yes" >&6; }
5690else
5691 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5692echo "${ECHO_T}no, using $LN_S" >&6; }
5693fi
5694
5695# Extract the first word of "cmp", so it can be a program name with args.
5696set dummy cmp; ac_word=$2
5697{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5699if test "${ac_cv_path_CMP+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701else
5702 case $CMP in
5703 [\\/]* | ?:[\\/]*)
5704 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5705 ;;
5706 *)
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708for as_dir in $PATH
5709do
5710 IFS=$as_save_IFS
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5714 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5716 break 2
5717 fi
5718done
5719done
5720IFS=$as_save_IFS
5721
5722 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5723 ;;
5724esac
5725fi
5726CMP=$ac_cv_path_CMP
5727if test -n "$CMP"; then
5728 { echo "$as_me:$LINENO: result: $CMP" >&5
5729echo "${ECHO_T}$CMP" >&6; }
5730else
5731 { echo "$as_me:$LINENO: result: no" >&5
5732echo "${ECHO_T}no" >&6; }
5733fi
5734
5735
5736# Extract the first word of "cp", so it can be a program name with args.
5737set dummy cp; ac_word=$2
5738{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5740if test "${ac_cv_path_CP+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5742else
5743 case $CP in
5744 [\\/]* | ?:[\\/]*)
5745 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5746 ;;
5747 *)
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749for as_dir in $PATH
5750do
5751 IFS=$as_save_IFS
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5755 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5757 break 2
5758 fi
5759done
5760done
5761IFS=$as_save_IFS
5762
5763 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5764 ;;
5765esac
5766fi
5767CP=$ac_cv_path_CP
5768if test -n "$CP"; then
5769 { echo "$as_me:$LINENO: result: $CP" >&5
5770echo "${ECHO_T}$CP" >&6; }
5771else
5772 { echo "$as_me:$LINENO: result: no" >&5
5773echo "${ECHO_T}no" >&6; }
5774fi
5775
5776
5777# Extract the first word of "date", so it can be a program name with args.
5778set dummy date; ac_word=$2
5779{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5781if test "${ac_cv_path_DATE+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5783else
5784 case $DATE in
5785 [\\/]* | ?:[\\/]*)
5786 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5787 ;;
5788 *)
5789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790for as_dir in $PATH
5791do
5792 IFS=$as_save_IFS
5793 test -z "$as_dir" && as_dir=.
5794 for ac_exec_ext in '' $ac_executable_extensions; do
5795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5796 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5798 break 2
5799 fi
5800done
5801done
5802IFS=$as_save_IFS
5803
5804 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5805 ;;
5806esac
5807fi
5808DATE=$ac_cv_path_DATE
5809if test -n "$DATE"; then
5810 { echo "$as_me:$LINENO: result: $DATE" >&5
5811echo "${ECHO_T}$DATE" >&6; }
5812else
5813 { echo "$as_me:$LINENO: result: no" >&5
5814echo "${ECHO_T}no" >&6; }
5815fi
5816
5817
5818# Extract the first word of "find", so it can be a program name with args.
5819set dummy find; ac_word=$2
5820{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5822if test "${ac_cv_path_FIND+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5824else
5825 case $FIND in
5826 [\\/]* | ?:[\\/]*)
5827 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5828 ;;
5829 *)
5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831for as_dir in $PATH
5832do
5833 IFS=$as_save_IFS
5834 test -z "$as_dir" && as_dir=.
5835 for ac_exec_ext in '' $ac_executable_extensions; do
5836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5837 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5839 break 2
5840 fi
5841done
5842done
5843IFS=$as_save_IFS
5844
5845 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5846 ;;
5847esac
5848fi
5849FIND=$ac_cv_path_FIND
5850if test -n "$FIND"; then
5851 { echo "$as_me:$LINENO: result: $FIND" >&5
5852echo "${ECHO_T}$FIND" >&6; }
5853else
5854 { echo "$as_me:$LINENO: result: no" >&5
5855echo "${ECHO_T}no" >&6; }
5856fi
5857
5858
5859# Extract the first word of "grep", so it can be a program name with args.
5860set dummy grep; ac_word=$2
5861{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5863if test "${ac_cv_path_GREP+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5865else
5866 case $GREP in
5867 [\\/]* | ?:[\\/]*)
5868 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5869 ;;
5870 *)
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872for as_dir in $PATH
5873do
5874 IFS=$as_save_IFS
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5878 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 break 2
5881 fi
5882done
5883done
5884IFS=$as_save_IFS
5885
5886 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5887 ;;
5888esac
5889fi
5890GREP=$ac_cv_path_GREP
5891if test -n "$GREP"; then
5892 { echo "$as_me:$LINENO: result: $GREP" >&5
5893echo "${ECHO_T}$GREP" >&6; }
5894else
5895 { echo "$as_me:$LINENO: result: no" >&5
5896echo "${ECHO_T}no" >&6; }
5897fi
5898
5899
5900# Extract the first word of "mkdir", so it can be a program name with args.
5901set dummy mkdir; ac_word=$2
5902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5904if test "${ac_cv_path_MKDIR+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5906else
5907 case $MKDIR in
5908 [\\/]* | ?:[\\/]*)
5909 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5910 ;;
5911 *)
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913for as_dir in $PATH
5914do
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5919 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 break 2
5922 fi
5923done
5924done
5925IFS=$as_save_IFS
5926
5927 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5928 ;;
5929esac
5930fi
5931MKDIR=$ac_cv_path_MKDIR
5932if test -n "$MKDIR"; then
5933 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5934echo "${ECHO_T}$MKDIR" >&6; }
5935else
5936 { echo "$as_me:$LINENO: result: no" >&5
5937echo "${ECHO_T}no" >&6; }
5938fi
5939
5940
5941# Extract the first word of "mv", so it can be a program name with args.
5942set dummy mv; ac_word=$2
5943{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5945if test "${ac_cv_path_MV+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5947else
5948 case $MV in
5949 [\\/]* | ?:[\\/]*)
5950 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5951 ;;
5952 *)
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954for as_dir in $PATH
5955do
5956 IFS=$as_save_IFS
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5960 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 break 2
5963 fi
5964done
5965done
5966IFS=$as_save_IFS
5967
5968 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5969 ;;
5970esac
5971fi
5972MV=$ac_cv_path_MV
5973if test -n "$MV"; then
5974 { echo "$as_me:$LINENO: result: $MV" >&5
5975echo "${ECHO_T}$MV" >&6; }
5976else
5977 { echo "$as_me:$LINENO: result: no" >&5
5978echo "${ECHO_T}no" >&6; }
5979fi
5980
5981
5982if test -n "$ac_tool_prefix"; then
5983 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5984set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5985{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5987if test "${ac_cv_prog_RANLIB+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5989else
5990 if test -n "$RANLIB"; then
5991 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5992else
5993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994for as_dir in $PATH
5995do
5996 IFS=$as_save_IFS
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6000 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6002 break 2
6003 fi
6004done
6005done
6006IFS=$as_save_IFS
6007
6008fi
6009fi
6010RANLIB=$ac_cv_prog_RANLIB
6011if test -n "$RANLIB"; then
6012 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6013echo "${ECHO_T}$RANLIB" >&6; }
6014else
6015 { echo "$as_me:$LINENO: result: no" >&5
6016echo "${ECHO_T}no" >&6; }
6017fi
6018
6019
6020fi
6021if test -z "$ac_cv_prog_RANLIB"; then
6022 ac_ct_RANLIB=$RANLIB
6023 # Extract the first word of "ranlib", so it can be a program name with args.
6024set dummy ranlib; ac_word=$2
6025{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6027if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6029else
6030 if test -n "$ac_ct_RANLIB"; then
6031 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6032else
6033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034for as_dir in $PATH
6035do
6036 IFS=$as_save_IFS
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6040 ac_cv_prog_ac_ct_RANLIB="ranlib"
6041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6042 break 2
6043 fi
6044done
6045done
6046IFS=$as_save_IFS
6047
6048fi
6049fi
6050ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6051if test -n "$ac_ct_RANLIB"; then
6052 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6053echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6054else
6055 { echo "$as_me:$LINENO: result: no" >&5
6056echo "${ECHO_T}no" >&6; }
6057fi
6058
6059 if test "x$ac_ct_RANLIB" = x; then
6060 RANLIB=":"
6061 else
6062 case $cross_compiling:$ac_tool_warned in
6063yes:)
6064{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6065whose name does not start with the host triplet. If you think this
6066configuration is useful to you, please write to autoconf@gnu.org." >&5
6067echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6068whose name does not start with the host triplet. If you think this
6069configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6070ac_tool_warned=yes ;;
6071esac
6072 RANLIB=$ac_ct_RANLIB
6073 fi
6074else
6075 RANLIB="$ac_cv_prog_RANLIB"
6076fi
6077
6078if test -n "$ac_tool_prefix"; then
6079 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6080set dummy ${ac_tool_prefix}ar; ac_word=$2
6081{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6083if test "${ac_cv_prog_AR+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6085else
6086 if test -n "$AR"; then
6087 ac_cv_prog_AR="$AR" # Let the user override the test.
6088else
6089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090for as_dir in $PATH
6091do
6092 IFS=$as_save_IFS
6093 test -z "$as_dir" && as_dir=.
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6096 ac_cv_prog_AR="${ac_tool_prefix}ar"
6097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6098 break 2
6099 fi
6100done
6101done
6102IFS=$as_save_IFS
6103
6104fi
6105fi
6106AR=$ac_cv_prog_AR
6107if test -n "$AR"; then
6108 { echo "$as_me:$LINENO: result: $AR" >&5
6109echo "${ECHO_T}$AR" >&6; }
6110else
6111 { echo "$as_me:$LINENO: result: no" >&5
6112echo "${ECHO_T}no" >&6; }
6113fi
6114
6115
6116fi
6117if test -z "$ac_cv_prog_AR"; then
6118 ac_ct_AR=$AR
6119 # Extract the first word of "ar", so it can be a program name with args.
6120set dummy ar; ac_word=$2
6121{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6123if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6125else
6126 if test -n "$ac_ct_AR"; then
6127 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6128else
6129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130for as_dir in $PATH
6131do
6132 IFS=$as_save_IFS
6133 test -z "$as_dir" && as_dir=.
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6136 ac_cv_prog_ac_ct_AR="ar"
6137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6138 break 2
6139 fi
6140done
6141done
6142IFS=$as_save_IFS
6143
6144fi
6145fi
6146ac_ct_AR=$ac_cv_prog_ac_ct_AR
6147if test -n "$ac_ct_AR"; then
6148 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6149echo "${ECHO_T}$ac_ct_AR" >&6; }
6150else
6151 { echo "$as_me:$LINENO: result: no" >&5
6152echo "${ECHO_T}no" >&6; }
6153fi
6154
6155 if test "x$ac_ct_AR" = x; then
6156 AR="false"
6157 else
6158 case $cross_compiling:$ac_tool_warned in
6159yes:)
6160{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6161whose name does not start with the host triplet. If you think this
6162configuration is useful to you, please write to autoconf@gnu.org." >&5
6163echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6164whose name does not start with the host triplet. If you think this
6165configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6166ac_tool_warned=yes ;;
6167esac
6168 AR=$ac_ct_AR
6169 fi
6170else
6171 AR="$ac_cv_prog_AR"
6172fi
6173
6174# Extract the first word of "rm", so it can be a program name with args.
6175set dummy rm; ac_word=$2
6176{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6178if test "${ac_cv_path_RM+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6180else
6181 case $RM in
6182 [\\/]* | ?:[\\/]*)
6183 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6184 ;;
6185 *)
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187for as_dir in $PATH
6188do
6189 IFS=$as_save_IFS
6190 test -z "$as_dir" && as_dir=.
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6193 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6195 break 2
6196 fi
6197done
6198done
6199IFS=$as_save_IFS
6200
6201 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6202 ;;
6203esac
6204fi
6205RM=$ac_cv_path_RM
6206if test -n "$RM"; then
6207 { echo "$as_me:$LINENO: result: $RM" >&5
6208echo "${ECHO_T}$RM" >&6; }
6209else
6210 { echo "$as_me:$LINENO: result: no" >&5
6211echo "${ECHO_T}no" >&6; }
6212fi
6213
6214
6215# Extract the first word of "sed", so it can be a program name with args.
6216set dummy sed; ac_word=$2
6217{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6219if test "${ac_cv_path_SED+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6221else
6222 case $SED in
6223 [\\/]* | ?:[\\/]*)
6224 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6225 ;;
6226 *)
6227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228for as_dir in $PATH
6229do
6230 IFS=$as_save_IFS
6231 test -z "$as_dir" && as_dir=.
6232 for ac_exec_ext in '' $ac_executable_extensions; do
6233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6234 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 break 2
6237 fi
6238done
6239done
6240IFS=$as_save_IFS
6241
6242 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6243 ;;
6244esac
6245fi
6246SED=$ac_cv_path_SED
6247if test -n "$SED"; then
6248 { echo "$as_me:$LINENO: result: $SED" >&5
6249echo "${ECHO_T}$SED" >&6; }
6250else
6251 { echo "$as_me:$LINENO: result: no" >&5
6252echo "${ECHO_T}no" >&6; }
6253fi
6254
6255
6256# Extract the first word of "tar", so it can be a program name with args.
6257set dummy tar; ac_word=$2
6258{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6260if test "${ac_cv_path_TAR+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6262else
6263 case $TAR in
6264 [\\/]* | ?:[\\/]*)
6265 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6266 ;;
6267 *)
6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269for as_dir in $PATH
6270do
6271 IFS=$as_save_IFS
6272 test -z "$as_dir" && as_dir=.
6273 for ac_exec_ext in '' $ac_executable_extensions; do
6274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6275 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 break 2
6278 fi
6279done
6280done
6281IFS=$as_save_IFS
6282
6283 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6284 ;;
6285esac
6286fi
6287TAR=$ac_cv_path_TAR
6288if test -n "$TAR"; then
6289 { echo "$as_me:$LINENO: result: $TAR" >&5
6290echo "${ECHO_T}$TAR" >&6; }
6291else
6292 { echo "$as_me:$LINENO: result: no" >&5
6293echo "${ECHO_T}no" >&6; }
6294fi
6295
6296
6297# Extract the first word of "pwd", so it can be a program name with args.
6298set dummy pwd; ac_word=$2
6299{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6301if test "${ac_cv_path_BINPWD+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6303else
6304 case $BINPWD in
6305 [\\/]* | ?:[\\/]*)
6306 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6307 ;;
6308 *)
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310for as_dir in $PATH
6311do
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6316 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 break 2
6319 fi
6320done
6321done
6322IFS=$as_save_IFS
6323
6324 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6325 ;;
6326esac
6327fi
6328BINPWD=$ac_cv_path_BINPWD
6329if test -n "$BINPWD"; then
6330 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6331echo "${ECHO_T}$BINPWD" >&6; }
6332else
6333 { echo "$as_me:$LINENO: result: no" >&5
6334echo "${ECHO_T}no" >&6; }
6335fi
6336
6337
6338
6339# Extract the first word of "Graphviz", so it can be a program name with args.
6340set dummy Graphviz; ac_word=$2
6341{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6343if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6345else
6346 case $GRAPHVIZ in
6347 [\\/]* | ?:[\\/]*)
6348 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6349 ;;
6350 *)
6351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352for as_dir in $PATH
6353do
6354 IFS=$as_save_IFS
6355 test -z "$as_dir" && as_dir=.
6356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6358 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6360 break 2
6361 fi
6362done
6363done
6364IFS=$as_save_IFS
6365
6366 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6367 ;;
6368esac
6369fi
6370GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6371if test -n "$GRAPHVIZ"; then
6372 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6373echo "${ECHO_T}$GRAPHVIZ" >&6; }
6374else
6375 { echo "$as_me:$LINENO: result: no" >&5
6376echo "${ECHO_T}no" >&6; }
6377fi
6378
6379
6380if test "$GRAPHVIZ" != "echo Graphviz" ; then
6381
6382cat >>confdefs.h <<\_ACEOF
6383#define HAVE_GRAPHVIZ 1
6384_ACEOF
6385
6386 if test "$llvm_cv_os_type" = "MingW" ; then
6387 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6388 fi
6389
6390cat >>confdefs.h <<_ACEOF
6391#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6392_ACEOF
6393
6394fi
6395# Extract the first word of "dot", so it can be a program name with args.
6396set dummy dot; ac_word=$2
6397{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6399if test "${ac_cv_path_DOT+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6401else
6402 case $DOT in
6403 [\\/]* | ?:[\\/]*)
6404 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6405 ;;
6406 *)
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408for as_dir in $PATH
6409do
6410 IFS=$as_save_IFS
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6414 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6416 break 2
6417 fi
6418done
6419done
6420IFS=$as_save_IFS
6421
6422 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6423 ;;
6424esac
6425fi
6426DOT=$ac_cv_path_DOT
6427if test -n "$DOT"; then
6428 { echo "$as_me:$LINENO: result: $DOT" >&5
6429echo "${ECHO_T}$DOT" >&6; }
6430else
6431 { echo "$as_me:$LINENO: result: no" >&5
6432echo "${ECHO_T}no" >&6; }
6433fi
6434
6435
6436if test "$DOT" != "echo dot" ; then
6437
6438cat >>confdefs.h <<\_ACEOF
6439#define HAVE_DOT 1
6440_ACEOF
6441
6442 if test "$llvm_cv_os_type" = "MingW" ; then
6443 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6444 fi
6445
6446cat >>confdefs.h <<_ACEOF
6447#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6448_ACEOF
6449
6450fi
6451# Extract the first word of "fdp", so it can be a program name with args.
6452set dummy fdp; ac_word=$2
6453{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6455if test "${ac_cv_path_FDP+set}" = set; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
6457else
6458 case $FDP in
6459 [\\/]* | ?:[\\/]*)
6460 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6461 ;;
6462 *)
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464for as_dir in $PATH
6465do
6466 IFS=$as_save_IFS
6467 test -z "$as_dir" && as_dir=.
6468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6470 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6472 break 2
6473 fi
6474done
6475done
6476IFS=$as_save_IFS
6477
6478 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6479 ;;
6480esac
6481fi
6482FDP=$ac_cv_path_FDP
6483if test -n "$FDP"; then
6484 { echo "$as_me:$LINENO: result: $FDP" >&5
6485echo "${ECHO_T}$FDP" >&6; }
6486else
6487 { echo "$as_me:$LINENO: result: no" >&5
6488echo "${ECHO_T}no" >&6; }
6489fi
6490
6491
6492if test "$FDP" != "echo fdp" ; then
6493
6494cat >>confdefs.h <<\_ACEOF
6495#define HAVE_FDP 1
6496_ACEOF
6497
6498 if test "$llvm_cv_os_type" = "MingW" ; then
6499 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6500 fi
6501
6502cat >>confdefs.h <<_ACEOF
6503#define LLVM_PATH_FDP "$FDP${EXEEXT}"
6504_ACEOF
6505
6506fi
6507# Extract the first word of "neato", so it can be a program name with args.
6508set dummy neato; ac_word=$2
6509{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6511if test "${ac_cv_path_NEATO+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6513else
6514 case $NEATO in
6515 [\\/]* | ?:[\\/]*)
6516 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6517 ;;
6518 *)
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520for as_dir in $PATH
6521do
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6526 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 break 2
6529 fi
6530done
6531done
6532IFS=$as_save_IFS
6533
6534 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6535 ;;
6536esac
6537fi
6538NEATO=$ac_cv_path_NEATO
6539if test -n "$NEATO"; then
6540 { echo "$as_me:$LINENO: result: $NEATO" >&5
6541echo "${ECHO_T}$NEATO" >&6; }
6542else
6543 { echo "$as_me:$LINENO: result: no" >&5
6544echo "${ECHO_T}no" >&6; }
6545fi
6546
6547
6548if test "$NEATO" != "echo neato" ; then
6549
6550cat >>confdefs.h <<\_ACEOF
6551#define HAVE_NEATO 1
6552_ACEOF
6553
6554 if test "$llvm_cv_os_type" = "MingW" ; then
6555 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6556 fi
6557
6558cat >>confdefs.h <<_ACEOF
6559#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6560_ACEOF
6561
6562fi
6563# Extract the first word of "twopi", so it can be a program name with args.
6564set dummy twopi; ac_word=$2
6565{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6567if test "${ac_cv_path_TWOPI+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6569else
6570 case $TWOPI in
6571 [\\/]* | ?:[\\/]*)
6572 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6573 ;;
6574 *)
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576for as_dir in $PATH
6577do
6578 IFS=$as_save_IFS
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6582 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584 break 2
6585 fi
6586done
6587done
6588IFS=$as_save_IFS
6589
6590 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6591 ;;
6592esac
6593fi
6594TWOPI=$ac_cv_path_TWOPI
6595if test -n "$TWOPI"; then
6596 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6597echo "${ECHO_T}$TWOPI" >&6; }
6598else
6599 { echo "$as_me:$LINENO: result: no" >&5
6600echo "${ECHO_T}no" >&6; }
6601fi
6602
6603
6604if test "$TWOPI" != "echo twopi" ; then
6605
6606cat >>confdefs.h <<\_ACEOF
6607#define HAVE_TWOPI 1
6608_ACEOF
6609
6610 if test "$llvm_cv_os_type" = "MingW" ; then
6611 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6612 fi
6613
6614cat >>confdefs.h <<_ACEOF
6615#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6616_ACEOF
6617
6618fi
6619# Extract the first word of "circo", so it can be a program name with args.
6620set dummy circo; ac_word=$2
6621{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6623if test "${ac_cv_path_CIRCO+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6625else
6626 case $CIRCO in
6627 [\\/]* | ?:[\\/]*)
6628 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6629 ;;
6630 *)
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632for as_dir in $PATH
6633do
6634 IFS=$as_save_IFS
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6638 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 break 2
6641 fi
6642done
6643done
6644IFS=$as_save_IFS
6645
6646 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6647 ;;
6648esac
6649fi
6650CIRCO=$ac_cv_path_CIRCO
6651if test -n "$CIRCO"; then
6652 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6653echo "${ECHO_T}$CIRCO" >&6; }
6654else
6655 { echo "$as_me:$LINENO: result: no" >&5
6656echo "${ECHO_T}no" >&6; }
6657fi
6658
6659
6660if test "$CIRCO" != "echo circo" ; then
6661
6662cat >>confdefs.h <<\_ACEOF
6663#define HAVE_CIRCO 1
6664_ACEOF
6665
6666 if test "$llvm_cv_os_type" = "MingW" ; then
6667 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6668 fi
6669
6670cat >>confdefs.h <<_ACEOF
6671#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6672_ACEOF
6673
6674fi
6675for ac_prog in gv gsview32
6676do
6677 # Extract the first word of "$ac_prog", so it can be a program name with args.
6678set dummy $ac_prog; ac_word=$2
6679{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6681if test "${ac_cv_path_GV+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6683else
6684 case $GV in
6685 [\\/]* | ?:[\\/]*)
6686 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6687 ;;
6688 *)
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690for as_dir in $PATH
6691do
6692 IFS=$as_save_IFS
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6696 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 break 2
6699 fi
6700done
6701done
6702IFS=$as_save_IFS
6703
6704 ;;
6705esac
6706fi
6707GV=$ac_cv_path_GV
6708if test -n "$GV"; then
6709 { echo "$as_me:$LINENO: result: $GV" >&5
6710echo "${ECHO_T}$GV" >&6; }
6711else
6712 { echo "$as_me:$LINENO: result: no" >&5
6713echo "${ECHO_T}no" >&6; }
6714fi
6715
6716
6717 test -n "$GV" && break
6718done
6719test -n "$GV" || GV="echo gv"
6720
6721if test "$GV" != "echo gv" ; then
6722
6723cat >>confdefs.h <<\_ACEOF
6724#define HAVE_GV 1
6725_ACEOF
6726
6727 if test "$llvm_cv_os_type" = "MingW" ; then
6728 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6729 fi
6730
6731cat >>confdefs.h <<_ACEOF
6732#define LLVM_PATH_GV "$GV${EXEEXT}"
6733_ACEOF
6734
6735fi
6736# Extract the first word of "dotty", so it can be a program name with args.
6737set dummy dotty; ac_word=$2
6738{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6740if test "${ac_cv_path_DOTTY+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6742else
6743 case $DOTTY in
6744 [\\/]* | ?:[\\/]*)
6745 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6746 ;;
6747 *)
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749for as_dir in $PATH
6750do
6751 IFS=$as_save_IFS
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
6754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6755 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 break 2
6758 fi
6759done
6760done
6761IFS=$as_save_IFS
6762
6763 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6764 ;;
6765esac
6766fi
6767DOTTY=$ac_cv_path_DOTTY
6768if test -n "$DOTTY"; then
6769 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6770echo "${ECHO_T}$DOTTY" >&6; }
6771else
6772 { echo "$as_me:$LINENO: result: no" >&5
6773echo "${ECHO_T}no" >&6; }
6774fi
6775
6776
6777if test "$DOTTY" != "echo dotty" ; then
6778
6779cat >>confdefs.h <<\_ACEOF
6780#define HAVE_DOTTY 1
6781_ACEOF
6782
6783 if test "$llvm_cv_os_type" = "MingW" ; then
6784 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6785 fi
6786
6787cat >>confdefs.h <<_ACEOF
6788#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6789_ACEOF
6790
6791fi
6792# Extract the first word of "xdot.py", so it can be a program name with args.
6793set dummy xdot.py; ac_word=$2
6794{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6796if test "${ac_cv_path_XDOT_PY+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6798else
6799 case $XDOT_PY in
6800 [\\/]* | ?:[\\/]*)
6801 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6802 ;;
6803 *)
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805for as_dir in $PATH
6806do
6807 IFS=$as_save_IFS
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6811 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 break 2
6814 fi
6815done
6816done
6817IFS=$as_save_IFS
6818
6819 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6820 ;;
6821esac
6822fi
6823XDOT_PY=$ac_cv_path_XDOT_PY
6824if test -n "$XDOT_PY"; then
6825 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6826echo "${ECHO_T}$XDOT_PY" >&6; }
6827else
6828 { echo "$as_me:$LINENO: result: no" >&5
6829echo "${ECHO_T}no" >&6; }
6830fi
6831
6832
6833if test "$XDOT_PY" != "echo xdot.py" ; then
6834
6835cat >>confdefs.h <<\_ACEOF
6836#define HAVE_XDOT_PY 1
6837_ACEOF
6838
6839 if test "$llvm_cv_os_type" = "MingW" ; then
6840 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6841 fi
6842
6843cat >>confdefs.h <<_ACEOF
6844#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6845_ACEOF
6846
6847fi
6848
6849
6850# Extract the first word of "perl", so it can be a program name with args.
6851set dummy perl; ac_word=$2
6852{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6854if test "${ac_cv_path_PERL+set}" = set; then
6855 echo $ECHO_N "(cached) $ECHO_C" >&6
6856else
6857 case $PERL in
6858 [\\/]* | ?:[\\/]*)
6859 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6860 ;;
6861 *)
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863for as_dir in $PATH
6864do
6865 IFS=$as_save_IFS
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6869 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 break 2
6872 fi
6873done
6874done
6875IFS=$as_save_IFS
6876
6877 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6878 ;;
6879esac
6880fi
6881PERL=$ac_cv_path_PERL
6882if test -n "$PERL"; then
6883 { echo "$as_me:$LINENO: result: $PERL" >&5
6884echo "${ECHO_T}$PERL" >&6; }
6885else
6886 { echo "$as_me:$LINENO: result: no" >&5
6887echo "${ECHO_T}no" >&6; }
6888fi
6889
6890
6891if test "$PERL" != "none"; then
6892 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
6893echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
6894 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
6895 { echo "$as_me:$LINENO: result: yes" >&5
6896echo "${ECHO_T}yes" >&6; }
6897 else
6898 PERL=none
6899 { echo "$as_me:$LINENO: result: not found" >&5
6900echo "${ECHO_T}not found" >&6; }
6901 fi
6902fi
6903
6904
6905if test x"$PERL" = xnone; then
6906 HAVE_PERL=0
6907
6908 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
6909echo "$as_me: error: perl is required but was not found, please install it" >&2;}
6910 { (exit 1); exit 1; }; }
6911else
6912 HAVE_PERL=1
6913
6914fi
6915
6916# Find a good install program. We prefer a C program (faster),
6917# so one script is as good as another. But avoid the broken or
6918# incompatible versions:
6919# SysV /etc/install, /usr/sbin/install
6920# SunOS /usr/etc/install
6921# IRIX /sbin/install
6922# AIX /bin/install
6923# AmigaOS /C/install, which installs bootblocks on floppy discs
6924# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6925# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6926# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6927# OS/2's system install, which has a completely different semantic
6928# ./install, which can be erroneously created by make from ./install.sh.
6929{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6930echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6931if test -z "$INSTALL"; then
6932if test "${ac_cv_path_install+set}" = set; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6934else
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936for as_dir in $PATH
6937do
6938 IFS=$as_save_IFS
6939 test -z "$as_dir" && as_dir=.
6940 # Account for people who put trailing slashes in PATH elements.
6941case $as_dir/ in
6942 ./ | .// | /cC/* | \
6943 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6944 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6945 /usr/ucb/* ) ;;
6946 *)
6947 # OSF1 and SCO ODT 3.0 have their own names for install.
6948 # Don't use installbsd from OSF since it installs stuff as root
6949 # by default.
6950 for ac_prog in ginstall scoinst install; do
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6953 if test $ac_prog = install &&
6954 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6955 # AIX install. It has an incompatible calling convention.
6956 :
6957 elif test $ac_prog = install &&
6958 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6959 # program-specific install script used by HP pwplus--don't use.
6960 :
6961 else
6962 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6963 break 3
6964 fi
6965 fi
6966 done
6967 done
6968 ;;
6969esac
6970done
6971IFS=$as_save_IFS
6972
6973
6974fi
6975 if test "${ac_cv_path_install+set}" = set; then
6976 INSTALL=$ac_cv_path_install
6977 else
6978 # As a last resort, use the slow shell script. Don't cache a
6979 # value for INSTALL within a source directory, because that will
6980 # break other packages using the cache if that directory is
6981 # removed, or if the value is a relative name.
6982 INSTALL=$ac_install_sh
6983 fi
6984fi
6985{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6986echo "${ECHO_T}$INSTALL" >&6; }
6987
6988# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6989# It thinks the first close brace ends the variable substitution.
6990test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6991
6992test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6993
6994test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6995
6996case "$INSTALL" in
6997 [\\/$]* | ?:[\\/]* ) ;;
6998 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6999esac
7000
7001# Extract the first word of "bzip2", so it can be a program name with args.
7002set dummy bzip2; ac_word=$2
7003{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7005if test "${ac_cv_path_BZIP2+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7007else
7008 case $BZIP2 in
7009 [\\/]* | ?:[\\/]*)
7010 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7011 ;;
7012 *)
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014for as_dir in $PATH
7015do
7016 IFS=$as_save_IFS
7017 test -z "$as_dir" && as_dir=.
7018 for ac_exec_ext in '' $ac_executable_extensions; do
7019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7020 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7022 break 2
7023 fi
7024done
7025done
7026IFS=$as_save_IFS
7027
7028 ;;
7029esac
7030fi
7031BZIP2=$ac_cv_path_BZIP2
7032if test -n "$BZIP2"; then
7033 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7034echo "${ECHO_T}$BZIP2" >&6; }
7035else
7036 { echo "$as_me:$LINENO: result: no" >&5
7037echo "${ECHO_T}no" >&6; }
7038fi
7039
7040
7041# Extract the first word of "cat", so it can be a program name with args.
7042set dummy cat; ac_word=$2
7043{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7045if test "${ac_cv_path_CAT+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7047else
7048 case $CAT in
7049 [\\/]* | ?:[\\/]*)
7050 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7051 ;;
7052 *)
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054for as_dir in $PATH
7055do
7056 IFS=$as_save_IFS
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7060 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7062 break 2
7063 fi
7064done
7065done
7066IFS=$as_save_IFS
7067
7068 ;;
7069esac
7070fi
7071CAT=$ac_cv_path_CAT
7072if test -n "$CAT"; then
7073 { echo "$as_me:$LINENO: result: $CAT" >&5
7074echo "${ECHO_T}$CAT" >&6; }
7075else
7076 { echo "$as_me:$LINENO: result: no" >&5
7077echo "${ECHO_T}no" >&6; }
7078fi
7079
7080
7081# Extract the first word of "doxygen", so it can be a program name with args.
7082set dummy doxygen; ac_word=$2
7083{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7085if test "${ac_cv_path_DOXYGEN+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7087else
7088 case $DOXYGEN in
7089 [\\/]* | ?:[\\/]*)
7090 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7091 ;;
7092 *)
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094for as_dir in $PATH
7095do
7096 IFS=$as_save_IFS
7097 test -z "$as_dir" && as_dir=.
7098 for ac_exec_ext in '' $ac_executable_extensions; do
7099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7100 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7102 break 2
7103 fi
7104done
7105done
7106IFS=$as_save_IFS
7107
7108 ;;
7109esac
7110fi
7111DOXYGEN=$ac_cv_path_DOXYGEN
7112if test -n "$DOXYGEN"; then
7113 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7114echo "${ECHO_T}$DOXYGEN" >&6; }
7115else
7116 { echo "$as_me:$LINENO: result: no" >&5
7117echo "${ECHO_T}no" >&6; }
7118fi
7119
7120
7121# Extract the first word of "groff", so it can be a program name with args.
7122set dummy groff; ac_word=$2
7123{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7125if test "${ac_cv_path_GROFF+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7127else
7128 case $GROFF in
7129 [\\/]* | ?:[\\/]*)
7130 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7131 ;;
7132 *)
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134for as_dir in $PATH
7135do
7136 IFS=$as_save_IFS
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7140 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7142 break 2
7143 fi
7144done
7145done
7146IFS=$as_save_IFS
7147
7148 ;;
7149esac
7150fi
7151GROFF=$ac_cv_path_GROFF
7152if test -n "$GROFF"; then
7153 { echo "$as_me:$LINENO: result: $GROFF" >&5
7154echo "${ECHO_T}$GROFF" >&6; }
7155else
7156 { echo "$as_me:$LINENO: result: no" >&5
7157echo "${ECHO_T}no" >&6; }
7158fi
7159
7160
7161# Extract the first word of "gzip", so it can be a program name with args.
7162set dummy gzip; ac_word=$2
7163{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7165if test "${ac_cv_path_GZIPBIN+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7167else
7168 case $GZIPBIN in
7169 [\\/]* | ?:[\\/]*)
7170 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7171 ;;
7172 *)
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174for as_dir in $PATH
7175do
7176 IFS=$as_save_IFS
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7180 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7182 break 2
7183 fi
7184done
7185done
7186IFS=$as_save_IFS
7187
7188 ;;
7189esac
7190fi
7191GZIPBIN=$ac_cv_path_GZIPBIN
7192if test -n "$GZIPBIN"; then
7193 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7194echo "${ECHO_T}$GZIPBIN" >&6; }
7195else
7196 { echo "$as_me:$LINENO: result: no" >&5
7197echo "${ECHO_T}no" >&6; }
7198fi
7199
7200
7201# Extract the first word of "pod2html", so it can be a program name with args.
7202set dummy pod2html; ac_word=$2
7203{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7205if test "${ac_cv_path_POD2HTML+set}" = set; then
7206 echo $ECHO_N "(cached) $ECHO_C" >&6
7207else
7208 case $POD2HTML in
7209 [\\/]* | ?:[\\/]*)
7210 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7211 ;;
7212 *)
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214for as_dir in $PATH
7215do
7216 IFS=$as_save_IFS
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7220 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 break 2
7223 fi
7224done
7225done
7226IFS=$as_save_IFS
7227
7228 ;;
7229esac
7230fi
7231POD2HTML=$ac_cv_path_POD2HTML
7232if test -n "$POD2HTML"; then
7233 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7234echo "${ECHO_T}$POD2HTML" >&6; }
7235else
7236 { echo "$as_me:$LINENO: result: no" >&5
7237echo "${ECHO_T}no" >&6; }
7238fi
7239
7240
7241# Extract the first word of "pod2man", so it can be a program name with args.
7242set dummy pod2man; ac_word=$2
7243{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7245if test "${ac_cv_path_POD2MAN+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7247else
7248 case $POD2MAN in
7249 [\\/]* | ?:[\\/]*)
7250 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7251 ;;
7252 *)
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254for as_dir in $PATH
7255do
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 break 2
7263 fi
7264done
7265done
7266IFS=$as_save_IFS
7267
7268 ;;
7269esac
7270fi
7271POD2MAN=$ac_cv_path_POD2MAN
7272if test -n "$POD2MAN"; then
7273 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7274echo "${ECHO_T}$POD2MAN" >&6; }
7275else
7276 { echo "$as_me:$LINENO: result: no" >&5
7277echo "${ECHO_T}no" >&6; }
7278fi
7279
7280
7281# Extract the first word of "pdfroff", so it can be a program name with args.
7282set dummy pdfroff; ac_word=$2
7283{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7285if test "${ac_cv_path_PDFROFF+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7287else
7288 case $PDFROFF in
7289 [\\/]* | ?:[\\/]*)
7290 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7291 ;;
7292 *)
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294for as_dir in $PATH
7295do
7296 IFS=$as_save_IFS
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7300 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 break 2
7303 fi
7304done
7305done
7306IFS=$as_save_IFS
7307
7308 ;;
7309esac
7310fi
7311PDFROFF=$ac_cv_path_PDFROFF
7312if test -n "$PDFROFF"; then
7313 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7314echo "${ECHO_T}$PDFROFF" >&6; }
7315else
7316 { echo "$as_me:$LINENO: result: no" >&5
7317echo "${ECHO_T}no" >&6; }
7318fi
7319
7320
7321# Extract the first word of "runtest", so it can be a program name with args.
7322set dummy runtest; ac_word=$2
7323{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7325if test "${ac_cv_path_RUNTEST+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7327else
7328 case $RUNTEST in
7329 [\\/]* | ?:[\\/]*)
7330 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7331 ;;
7332 *)
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334for as_dir in $PATH
7335do
7336 IFS=$as_save_IFS
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7340 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 break 2
7343 fi
7344done
7345done
7346IFS=$as_save_IFS
7347
7348 ;;
7349esac
7350fi
7351RUNTEST=$ac_cv_path_RUNTEST
7352if test -n "$RUNTEST"; then
7353 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7354echo "${ECHO_T}$RUNTEST" >&6; }
7355else
7356 { echo "$as_me:$LINENO: result: no" >&5
7357echo "${ECHO_T}no" >&6; }
7358fi
7359
7360
7361
7362no_itcl=true
7363{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7364echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7365
7366# Check whether --with-tclinclude was given.
7367if test "${with_tclinclude+set}" = set; then
7368 withval=$with_tclinclude; with_tclinclude=${withval}
7369else
7370 with_tclinclude=''
7371fi
7372
7373if test "${ac_cv_path_tclsh+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7375else
7376
7377if test x"${with_tclinclude}" != x ; then
7378 if test -f ${with_tclinclude}/tclsh ; then
7379 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7380 elif test -f ${with_tclinclude}/src/tclsh ; then
7381 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7382 else
7383 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7384echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7385 { (exit 1); exit 1; }; }
7386 fi
7387fi
7388fi
7389
7390
7391if test x"${ac_cv_path_tclsh}" = x ; then
7392 { echo "$as_me:$LINENO: result: none" >&5
7393echo "${ECHO_T}none" >&6; }
7394 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
7395do
7396 # Extract the first word of "$ac_prog", so it can be a program name with args.
7397set dummy $ac_prog; ac_word=$2
7398{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7400if test "${ac_cv_path_TCLSH+set}" = set; then
7401 echo $ECHO_N "(cached) $ECHO_C" >&6
7402else
7403 case $TCLSH in
7404 [\\/]* | ?:[\\/]*)
7405 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7406 ;;
7407 *)
7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409for as_dir in $PATH
7410do
7411 IFS=$as_save_IFS
7412 test -z "$as_dir" && as_dir=.
7413 for ac_exec_ext in '' $ac_executable_extensions; do
7414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7415 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 break 2
7418 fi
7419done
7420done
7421IFS=$as_save_IFS
7422
7423 ;;
7424esac
7425fi
7426TCLSH=$ac_cv_path_TCLSH
7427if test -n "$TCLSH"; then
7428 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7429echo "${ECHO_T}$TCLSH" >&6; }
7430else
7431 { echo "$as_me:$LINENO: result: no" >&5
7432echo "${ECHO_T}no" >&6; }
7433fi
7434
7435
7436 test -n "$TCLSH" && break
7437done
7438
7439 if test x"${TCLSH}" = x ; then
7440 ac_cv_path_tclsh='';
7441 else
7442 ac_cv_path_tclsh="${TCLSH}";
7443 fi
7444else
7445 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7446echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7447 TCLSH="${ac_cv_path_tclsh}"
7448
7449fi
7450
7451# Extract the first word of "zip", so it can be a program name with args.
7452set dummy zip; ac_word=$2
7453{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7455if test "${ac_cv_path_ZIP+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7457else
7458 case $ZIP in
7459 [\\/]* | ?:[\\/]*)
7460 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7461 ;;
7462 *)
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464for as_dir in $PATH
7465do
7466 IFS=$as_save_IFS
7467 test -z "$as_dir" && as_dir=.
7468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7470 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7472 break 2
7473 fi
7474done
7475done
7476IFS=$as_save_IFS
7477
7478 ;;
7479esac
7480fi
7481ZIP=$ac_cv_path_ZIP
7482if test -n "$ZIP"; then
7483 { echo "$as_me:$LINENO: result: $ZIP" >&5
7484echo "${ECHO_T}$ZIP" >&6; }
7485else
7486 { echo "$as_me:$LINENO: result: no" >&5
7487echo "${ECHO_T}no" >&6; }
7488fi
7489
7490
7491for ac_prog in ocamlc
7492do
7493 # Extract the first word of "$ac_prog", so it can be a program name with args.
7494set dummy $ac_prog; ac_word=$2
7495{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7497if test "${ac_cv_path_OCAMLC+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7499else
7500 case $OCAMLC in
7501 [\\/]* | ?:[\\/]*)
7502 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7503 ;;
7504 *)
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506for as_dir in $PATH
7507do
7508 IFS=$as_save_IFS
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7512 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7514 break 2
7515 fi
7516done
7517done
7518IFS=$as_save_IFS
7519
7520 ;;
7521esac
7522fi
7523OCAMLC=$ac_cv_path_OCAMLC
7524if test -n "$OCAMLC"; then
7525 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7526echo "${ECHO_T}$OCAMLC" >&6; }
7527else
7528 { echo "$as_me:$LINENO: result: no" >&5
7529echo "${ECHO_T}no" >&6; }
7530fi
7531
7532
7533 test -n "$OCAMLC" && break
7534done
7535
7536for ac_prog in ocamlopt
7537do
7538 # Extract the first word of "$ac_prog", so it can be a program name with args.
7539set dummy $ac_prog; ac_word=$2
7540{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7542if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
7544else
7545 case $OCAMLOPT in
7546 [\\/]* | ?:[\\/]*)
7547 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7548 ;;
7549 *)
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551for as_dir in $PATH
7552do
7553 IFS=$as_save_IFS
7554 test -z "$as_dir" && as_dir=.
7555 for ac_exec_ext in '' $ac_executable_extensions; do
7556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7557 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7559 break 2
7560 fi
7561done
7562done
7563IFS=$as_save_IFS
7564
7565 ;;
7566esac
7567fi
7568OCAMLOPT=$ac_cv_path_OCAMLOPT
7569if test -n "$OCAMLOPT"; then
7570 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7571echo "${ECHO_T}$OCAMLOPT" >&6; }
7572else
7573 { echo "$as_me:$LINENO: result: no" >&5
7574echo "${ECHO_T}no" >&6; }
7575fi
7576
7577
7578 test -n "$OCAMLOPT" && break
7579done
7580
7581for ac_prog in ocamldep
7582do
7583 # Extract the first word of "$ac_prog", so it can be a program name with args.
7584set dummy $ac_prog; ac_word=$2
7585{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7587if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7588 echo $ECHO_N "(cached) $ECHO_C" >&6
7589else
7590 case $OCAMLDEP in
7591 [\\/]* | ?:[\\/]*)
7592 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7593 ;;
7594 *)
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596for as_dir in $PATH
7597do
7598 IFS=$as_save_IFS
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7602 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7604 break 2
7605 fi
7606done
7607done
7608IFS=$as_save_IFS
7609
7610 ;;
7611esac
7612fi
7613OCAMLDEP=$ac_cv_path_OCAMLDEP
7614if test -n "$OCAMLDEP"; then
7615 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7616echo "${ECHO_T}$OCAMLDEP" >&6; }
7617else
7618 { echo "$as_me:$LINENO: result: no" >&5
7619echo "${ECHO_T}no" >&6; }
7620fi
7621
7622
7623 test -n "$OCAMLDEP" && break
7624done
7625
7626for ac_prog in ocamldoc
7627do
7628 # Extract the first word of "$ac_prog", so it can be a program name with args.
7629set dummy $ac_prog; ac_word=$2
7630{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7632if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7634else
7635 case $OCAMLDOC in
7636 [\\/]* | ?:[\\/]*)
7637 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7638 ;;
7639 *)
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641for as_dir in $PATH
7642do
7643 IFS=$as_save_IFS
7644 test -z "$as_dir" && as_dir=.
7645 for ac_exec_ext in '' $ac_executable_extensions; do
7646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7647 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7649 break 2
7650 fi
7651done
7652done
7653IFS=$as_save_IFS
7654
7655 ;;
7656esac
7657fi
7658OCAMLDOC=$ac_cv_path_OCAMLDOC
7659if test -n "$OCAMLDOC"; then
7660 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7661echo "${ECHO_T}$OCAMLDOC" >&6; }
7662else
7663 { echo "$as_me:$LINENO: result: no" >&5
7664echo "${ECHO_T}no" >&6; }
7665fi
7666
7667
7668 test -n "$OCAMLDOC" && break
7669done
7670
7671for ac_prog in gas as
7672do
7673 # Extract the first word of "$ac_prog", so it can be a program name with args.
7674set dummy $ac_prog; ac_word=$2
7675{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7677if test "${ac_cv_path_GAS+set}" = set; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7679else
7680 case $GAS in
7681 [\\/]* | ?:[\\/]*)
7682 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7683 ;;
7684 *)
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686for as_dir in $PATH
7687do
7688 IFS=$as_save_IFS
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7692 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7694 break 2
7695 fi
7696done
7697done
7698IFS=$as_save_IFS
7699
7700 ;;
7701esac
7702fi
7703GAS=$ac_cv_path_GAS
7704if test -n "$GAS"; then
7705 { echo "$as_me:$LINENO: result: $GAS" >&5
7706echo "${ECHO_T}$GAS" >&6; }
7707else
7708 { echo "$as_me:$LINENO: result: no" >&5
7709echo "${ECHO_T}no" >&6; }
7710fi
7711
7712
7713 test -n "$GAS" && break
7714done
7715
7716
7717{ echo "$as_me:$LINENO: checking for linker version" >&5
7718echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7719if test "${llvm_cv_link_version+set}" = set; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
7721else
7722
7723 version_string="$(ld -v 2>&1 | head -1)"
7724
7725 # Check for ld64.
7726 if (echo "$version_string" | grep -q "ld64"); then
7727 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7728 else
7729 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7730 fi
7731
7732fi
7733{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7734echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7735
7736cat >>confdefs.h <<_ACEOF
7737#define HOST_LINK_VERSION "$llvm_cv_link_version"
7738_ACEOF
7739
7740
7741
7742{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7743echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7744if test "${llvm_cv_link_use_r+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7746else
7747 ac_ext=c
7748ac_cpp='$CPP $CPPFLAGS'
7749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7751ac_compiler_gnu=$ac_cv_c_compiler_gnu
7752
7753 oldcflags="$CFLAGS"
7754 CFLAGS="$CFLAGS -Wl,-R."
7755 cat >conftest.$ac_ext <<_ACEOF
7756/* confdefs.h. */
7757_ACEOF
7758cat confdefs.h >>conftest.$ac_ext
7759cat >>conftest.$ac_ext <<_ACEOF
7760/* end confdefs.h. */
7761
7762int
7763main ()
7764{
7765
7766 ;
7767 return 0;
7768}
7769_ACEOF
7770rm -f conftest.$ac_objext conftest$ac_exeext
7771if { (ac_try="$ac_link"
7772case "(($ac_try" in
7773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774 *) ac_try_echo=$ac_try;;
7775esac
7776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7777 (eval "$ac_link") 2>conftest.er1
7778 ac_status=$?
7779 grep -v '^ *+' conftest.er1 >conftest.err
7780 rm -f conftest.er1
7781 cat conftest.err >&5
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); } &&
7784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7785 { (case "(($ac_try" in
7786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787 *) ac_try_echo=$ac_try;;
7788esac
7789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790 (eval "$ac_try") 2>&5
7791 ac_status=$?
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); }; } &&
7794 { ac_try='test -s conftest$ac_exeext'
7795 { (case "(($ac_try" in
7796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797 *) ac_try_echo=$ac_try;;
7798esac
7799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7800 (eval "$ac_try") 2>&5
7801 ac_status=$?
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; }; then
7804 llvm_cv_link_use_r=yes
7805else
7806 echo "$as_me: failed program was:" >&5
7807sed 's/^/| /' conftest.$ac_ext >&5
7808
7809 llvm_cv_link_use_r=no
7810fi
7811
7812rm -f core conftest.err conftest.$ac_objext \
7813 conftest$ac_exeext conftest.$ac_ext
7814 CFLAGS="$oldcflags"
7815 ac_ext=c
7816ac_cpp='$CPP $CPPFLAGS'
7817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819ac_compiler_gnu=$ac_cv_c_compiler_gnu
7820
7821
7822fi
7823{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7824echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7825if test "$llvm_cv_link_use_r" = yes ; then
7826
7827cat >>confdefs.h <<\_ACEOF
7828#define HAVE_LINK_R 1
7829_ACEOF
7830
7831 fi
7832
7833
7834{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7835echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7836if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7838else
7839 ac_ext=c
7840ac_cpp='$CPP $CPPFLAGS'
7841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7843ac_compiler_gnu=$ac_cv_c_compiler_gnu
7844
7845 oldcflags="$CFLAGS"
7846 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7847 cat >conftest.$ac_ext <<_ACEOF
7848/* confdefs.h. */
7849_ACEOF
7850cat confdefs.h >>conftest.$ac_ext
7851cat >>conftest.$ac_ext <<_ACEOF
7852/* end confdefs.h. */
7853
7854int
7855main ()
7856{
7857
7858 ;
7859 return 0;
7860}
7861_ACEOF
7862rm -f conftest.$ac_objext conftest$ac_exeext
7863if { (ac_try="$ac_link"
7864case "(($ac_try" in
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7867esac
7868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_link") 2>conftest.er1
7870 ac_status=$?
7871 grep -v '^ *+' conftest.er1 >conftest.err
7872 rm -f conftest.er1
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } &&
7876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7877 { (case "(($ac_try" in
7878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879 *) ac_try_echo=$ac_try;;
7880esac
7881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_try") 2>&5
7883 ac_status=$?
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; } &&
7886 { ac_try='test -s conftest$ac_exeext'
7887 { (case "(($ac_try" in
7888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7889 *) ac_try_echo=$ac_try;;
7890esac
7891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7892 (eval "$ac_try") 2>&5
7893 ac_status=$?
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
7896 llvm_cv_link_use_export_dynamic=yes
7897else
7898 echo "$as_me: failed program was:" >&5
7899sed 's/^/| /' conftest.$ac_ext >&5
7900
7901 llvm_cv_link_use_export_dynamic=no
7902fi
7903
7904rm -f core conftest.err conftest.$ac_objext \
7905 conftest$ac_exeext conftest.$ac_ext
7906 CFLAGS="$oldcflags"
7907 ac_ext=c
7908ac_cpp='$CPP $CPPFLAGS'
7909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7911ac_compiler_gnu=$ac_cv_c_compiler_gnu
7912
7913
7914fi
7915{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7916echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7917if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7918
7919cat >>confdefs.h <<\_ACEOF
7920#define HAVE_LINK_EXPORT_DYNAMIC 1
7921_ACEOF
7922
7923 fi
7924
7925
7926{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7927echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7928if test "${llvm_cv_link_use_version_script+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7930else
7931 ac_ext=c
7932ac_cpp='$CPP $CPPFLAGS'
7933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935ac_compiler_gnu=$ac_cv_c_compiler_gnu
7936
7937 oldcflags="$CFLAGS"
7938
7939 # The following code is from the autoconf manual,
7940 # "11.13: Limitations of Usual Tools".
7941 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7942 # Use mktemp if possible; otherwise fall back on mkdir,
7943 # with $RANDOM to make collisions less likely.
7944 : ${TMPDIR=/tmp}
7945 {
7946 tmp=`
7947 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7948 ` &&
7949 test -n "$tmp" && test -d "$tmp"
7950 } || {
7951 tmp=$TMPDIR/foo$$-$RANDOM
7952 (umask 077 && mkdir "$tmp")
7953 } || exit $?
7954
7955 echo "{" > "$tmp/export.map"
7956 echo " global: main;" >> "$tmp/export.map"
7957 echo " local: *;" >> "$tmp/export.map"
7958 echo "};" >> "$tmp/export.map"
7959
7960 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7961 cat >conftest.$ac_ext <<_ACEOF
7962/* confdefs.h. */
7963_ACEOF
7964cat confdefs.h >>conftest.$ac_ext
7965cat >>conftest.$ac_ext <<_ACEOF
7966/* end confdefs.h. */
7967
7968int
7969main ()
7970{
7971
7972 ;
7973 return 0;
7974}
7975_ACEOF
7976rm -f conftest.$ac_objext conftest$ac_exeext
7977if { (ac_try="$ac_link"
7978case "(($ac_try" in
7979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7980 *) ac_try_echo=$ac_try;;
7981esac
7982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7983 (eval "$ac_link") 2>conftest.er1
7984 ac_status=$?
7985 grep -v '^ *+' conftest.er1 >conftest.err
7986 rm -f conftest.er1
7987 cat conftest.err >&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); } &&
7990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7991 { (case "(($ac_try" in
7992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7993 *) ac_try_echo=$ac_try;;
7994esac
7995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7996 (eval "$ac_try") 2>&5
7997 ac_status=$?
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); }; } &&
8000 { ac_try='test -s conftest$ac_exeext'
8001 { (case "(($ac_try" in
8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8004esac
8005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006 (eval "$ac_try") 2>&5
8007 ac_status=$?
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; }; then
8010 llvm_cv_link_use_version_script=yes
8011else
8012 echo "$as_me: failed program was:" >&5
8013sed 's/^/| /' conftest.$ac_ext >&5
8014
8015 llvm_cv_link_use_version_script=no
8016fi
8017
8018rm -f core conftest.err conftest.$ac_objext \
8019 conftest$ac_exeext conftest.$ac_ext
8020 rm "$tmp/export.map"
8021 rmdir "$tmp"
8022 CFLAGS="$oldcflags"
8023 ac_ext=c
8024ac_cpp='$CPP $CPPFLAGS'
8025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8027ac_compiler_gnu=$ac_cv_c_compiler_gnu
8028
8029
8030fi
8031{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8032echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8033if test "$llvm_cv_link_use_version_script" = yes ; then
8034 HAVE_LINK_VERSION_SCRIPT=1
8035
8036 fi
8037
8038
8039
8040
8041{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8042echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8043if test "${ac_cv_c_const+set}" = set; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
8045else
8046 cat >conftest.$ac_ext <<_ACEOF
8047/* confdefs.h. */
8048_ACEOF
8049cat confdefs.h >>conftest.$ac_ext
8050cat >>conftest.$ac_ext <<_ACEOF
8051/* end confdefs.h. */
8052
8053int
8054main ()
8055{
8056/* FIXME: Include the comments suggested by Paul. */
8057#ifndef __cplusplus
8058 /* Ultrix mips cc rejects this. */
8059 typedef int charset[2];
8060 const charset x;
8061 /* SunOS 4.1.1 cc rejects this. */
8062 char const *const *ccp;
8063 char **p;
8064 /* NEC SVR4.0.2 mips cc rejects this. */
8065 struct point {int x, y;};
8066 static struct point const zero = {0,0};
8067 /* AIX XL C 1.02.0.0 rejects this.
8068 It does not let you subtract one const X* pointer from another in
8069 an arm of an if-expression whose if-part is not a constant
8070 expression */
8071 const char *g = "string";
8072 ccp = &g + (g ? g-g : 0);
8073 /* HPUX 7.0 cc rejects these. */
8074 ++ccp;
8075 p = (char**) ccp;
8076 ccp = (char const *const *) p;
8077 { /* SCO 3.2v4 cc rejects this. */
8078 char *t;
8079 char const *s = 0 ? (char *) 0 : (char const *) 0;
8080
8081 *t++ = 0;
8082 if (s) return 0;
8083 }
8084 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8085 int x[] = {25, 17};
8086 const int *foo = &x[0];
8087 ++foo;
8088 }
8089 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8090 typedef const int *iptr;
8091 iptr p = 0;
8092 ++p;
8093 }
8094 { /* AIX XL C 1.02.0.0 rejects this saying
8095 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8096 struct s { int j; const int *ap[3]; };
8097 struct s *b; b->j = 5;
8098 }
8099 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8100 const int foo = 10;
8101 if (!foo) return 0;
8102 }
8103 return !x[0] && !zero.x;
8104#endif
8105
8106 ;
8107 return 0;
8108}
8109_ACEOF
8110rm -f conftest.$ac_objext
8111if { (ac_try="$ac_compile"
8112case "(($ac_try" in
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8115esac
8116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117 (eval "$ac_compile") 2>conftest.er1
8118 ac_status=$?
8119 grep -v '^ *+' conftest.er1 >conftest.err
8120 rm -f conftest.er1
8121 cat conftest.err >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); } &&
8124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8125 { (case "(($ac_try" in
8126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8127 *) ac_try_echo=$ac_try;;
8128esac
8129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8130 (eval "$ac_try") 2>&5
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; } &&
8134 { ac_try='test -s conftest.$ac_objext'
8135 { (case "(($ac_try" in
8136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8137 *) ac_try_echo=$ac_try;;
8138esac
8139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8140 (eval "$ac_try") 2>&5
8141 ac_status=$?
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; }; then
8144 ac_cv_c_const=yes
8145else
8146 echo "$as_me: failed program was:" >&5
8147sed 's/^/| /' conftest.$ac_ext >&5
8148
8149 ac_cv_c_const=no
8150fi
8151
8152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8153fi
8154{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8155echo "${ECHO_T}$ac_cv_c_const" >&6; }
8156if test $ac_cv_c_const = no; then
8157
8158cat >>confdefs.h <<\_ACEOF
8159#define const
8160_ACEOF
8161
8162fi
8163
8164
8165
8166
8167
8168
8169ac_header_dirent=no
8170for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8171 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8172{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8173echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8174if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8176else
8177 cat >conftest.$ac_ext <<_ACEOF
8178/* confdefs.h. */
8179_ACEOF
8180cat confdefs.h >>conftest.$ac_ext
8181cat >>conftest.$ac_ext <<_ACEOF
8182/* end confdefs.h. */
8183#include <sys/types.h>
8184#include <$ac_hdr>
8185
8186int
8187main ()
8188{
8189if ((DIR *) 0)
8190return 0;
8191 ;
8192 return 0;
8193}
8194_ACEOF
8195rm -f conftest.$ac_objext
8196if { (ac_try="$ac_compile"
8197case "(($ac_try" in
8198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8200esac
8201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202 (eval "$ac_compile") 2>conftest.er1
8203 ac_status=$?
8204 grep -v '^ *+' conftest.er1 >conftest.err
8205 rm -f conftest.er1
8206 cat conftest.err >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); } &&
8209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8210 { (case "(($ac_try" in
8211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212 *) ac_try_echo=$ac_try;;
8213esac
8214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8215 (eval "$ac_try") 2>&5
8216 ac_status=$?
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); }; } &&
8219 { ac_try='test -s conftest.$ac_objext'
8220 { (case "(($ac_try" in
8221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222 *) ac_try_echo=$ac_try;;
8223esac
8224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8225 (eval "$ac_try") 2>&5
8226 ac_status=$?
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; }; then
8229 eval "$as_ac_Header=yes"
8230else
8231 echo "$as_me: failed program was:" >&5
8232sed 's/^/| /' conftest.$ac_ext >&5
8233
8234 eval "$as_ac_Header=no"
8235fi
8236
8237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8238fi
8239ac_res=`eval echo '${'$as_ac_Header'}'`
8240 { echo "$as_me:$LINENO: result: $ac_res" >&5
8241echo "${ECHO_T}$ac_res" >&6; }
8242if test `eval echo '${'$as_ac_Header'}'` = yes; then
8243 cat >>confdefs.h <<_ACEOF
8244#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8245_ACEOF
8246
8247ac_header_dirent=$ac_hdr; break
8248fi
8249
8250done
8251# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8252if test $ac_header_dirent = dirent.h; then
8253 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8254echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8255if test "${ac_cv_search_opendir+set}" = set; then
8256 echo $ECHO_N "(cached) $ECHO_C" >&6
8257else
8258 ac_func_search_save_LIBS=$LIBS
8259cat >conftest.$ac_ext <<_ACEOF
8260/* confdefs.h. */
8261_ACEOF
8262cat confdefs.h >>conftest.$ac_ext
8263cat >>conftest.$ac_ext <<_ACEOF
8264/* end confdefs.h. */
8265
8266/* Override any GCC internal prototype to avoid an error.
8267 Use char because int might match the return type of a GCC
8268 builtin and then its argument prototype would still apply. */
8269#ifdef __cplusplus
8270extern "C"
8271#endif
8272char opendir ();
8273int
8274main ()
8275{
8276return opendir ();
8277 ;
8278 return 0;
8279}
8280_ACEOF
8281for ac_lib in '' dir; do
8282 if test -z "$ac_lib"; then
8283 ac_res="none required"
8284 else
8285 ac_res=-l$ac_lib
8286 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8287 fi
8288 rm -f conftest.$ac_objext conftest$ac_exeext
8289if { (ac_try="$ac_link"
8290case "(($ac_try" in
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8293esac
8294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_link") 2>conftest.er1
8296 ac_status=$?
8297 grep -v '^ *+' conftest.er1 >conftest.err
8298 rm -f conftest.er1
8299 cat conftest.err >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } &&
8302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8303 { (case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8306esac
8307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_try") 2>&5
8309 ac_status=$?
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; } &&
8312 { ac_try='test -s conftest$ac_exeext'
8313 { (case "(($ac_try" in
8314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315 *) ac_try_echo=$ac_try;;
8316esac
8317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318 (eval "$ac_try") 2>&5
8319 ac_status=$?
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; }; then
8322 ac_cv_search_opendir=$ac_res
8323else
8324 echo "$as_me: failed program was:" >&5
8325sed 's/^/| /' conftest.$ac_ext >&5
8326
8327
8328fi
8329
8330rm -f core conftest.err conftest.$ac_objext \
8331 conftest$ac_exeext
8332 if test "${ac_cv_search_opendir+set}" = set; then
8333 break
8334fi
8335done
8336if test "${ac_cv_search_opendir+set}" = set; then
8337 :
8338else
8339 ac_cv_search_opendir=no
8340fi
8341rm conftest.$ac_ext
8342LIBS=$ac_func_search_save_LIBS
8343fi
8344{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8345echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8346ac_res=$ac_cv_search_opendir
8347if test "$ac_res" != no; then
8348 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8349
8350fi
8351
8352else
8353 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8354echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8355if test "${ac_cv_search_opendir+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8357else
8358 ac_func_search_save_LIBS=$LIBS
8359cat >conftest.$ac_ext <<_ACEOF
8360/* confdefs.h. */
8361_ACEOF
8362cat confdefs.h >>conftest.$ac_ext
8363cat >>conftest.$ac_ext <<_ACEOF
8364/* end confdefs.h. */
8365
8366/* Override any GCC internal prototype to avoid an error.
8367 Use char because int might match the return type of a GCC
8368 builtin and then its argument prototype would still apply. */
8369#ifdef __cplusplus
8370extern "C"
8371#endif
8372char opendir ();
8373int
8374main ()
8375{
8376return opendir ();
8377 ;
8378 return 0;
8379}
8380_ACEOF
8381for ac_lib in '' x; do
8382 if test -z "$ac_lib"; then
8383 ac_res="none required"
8384 else
8385 ac_res=-l$ac_lib
8386 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8387 fi
8388 rm -f conftest.$ac_objext conftest$ac_exeext
8389if { (ac_try="$ac_link"
8390case "(($ac_try" in
8391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392 *) ac_try_echo=$ac_try;;
8393esac
8394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395 (eval "$ac_link") 2>conftest.er1
8396 ac_status=$?
8397 grep -v '^ *+' conftest.er1 >conftest.err
8398 rm -f conftest.er1
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } &&
8402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8403 { (case "(($ac_try" in
8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8406esac
8407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408 (eval "$ac_try") 2>&5
8409 ac_status=$?
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); }; } &&
8412 { ac_try='test -s conftest$ac_exeext'
8413 { (case "(($ac_try" in
8414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415 *) ac_try_echo=$ac_try;;
8416esac
8417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418 (eval "$ac_try") 2>&5
8419 ac_status=$?
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); }; }; then
8422 ac_cv_search_opendir=$ac_res
8423else
8424 echo "$as_me: failed program was:" >&5
8425sed 's/^/| /' conftest.$ac_ext >&5
8426
8427
8428fi
8429
8430rm -f core conftest.err conftest.$ac_objext \
8431 conftest$ac_exeext
8432 if test "${ac_cv_search_opendir+set}" = set; then
8433 break
8434fi
8435done
8436if test "${ac_cv_search_opendir+set}" = set; then
8437 :
8438else
8439 ac_cv_search_opendir=no
8440fi
8441rm conftest.$ac_ext
8442LIBS=$ac_func_search_save_LIBS
8443fi
8444{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8445echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8446ac_res=$ac_cv_search_opendir
8447if test "$ac_res" != no; then
8448 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8449
8450fi
8451
8452fi
8453
8454
8455for ac_header in dlfcn.h
8456do
8457as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8458if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8461if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8463fi
8464ac_res=`eval echo '${'$as_ac_Header'}'`
8465 { echo "$as_me:$LINENO: result: $ac_res" >&5
8466echo "${ECHO_T}$ac_res" >&6; }
8467else
8468 # Is the header compilable?
8469{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8470echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8471cat >conftest.$ac_ext <<_ACEOF
8472/* confdefs.h. */
8473_ACEOF
8474cat confdefs.h >>conftest.$ac_ext
8475cat >>conftest.$ac_ext <<_ACEOF
8476/* end confdefs.h. */
8477$ac_includes_default
8478#include <$ac_header>
8479_ACEOF
8480rm -f conftest.$ac_objext
8481if { (ac_try="$ac_compile"
8482case "(($ac_try" in
8483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484 *) ac_try_echo=$ac_try;;
8485esac
8486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8487 (eval "$ac_compile") 2>conftest.er1
8488 ac_status=$?
8489 grep -v '^ *+' conftest.er1 >conftest.err
8490 rm -f conftest.er1
8491 cat conftest.err >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } &&
8494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8495 { (case "(($ac_try" in
8496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497 *) ac_try_echo=$ac_try;;
8498esac
8499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500 (eval "$ac_try") 2>&5
8501 ac_status=$?
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; } &&
8504 { ac_try='test -s conftest.$ac_objext'
8505 { (case "(($ac_try" in
8506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507 *) ac_try_echo=$ac_try;;
8508esac
8509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510 (eval "$ac_try") 2>&5
8511 ac_status=$?
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; }; then
8514 ac_header_compiler=yes
8515else
8516 echo "$as_me: failed program was:" >&5
8517sed 's/^/| /' conftest.$ac_ext >&5
8518
8519 ac_header_compiler=no
8520fi
8521
8522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8523{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8524echo "${ECHO_T}$ac_header_compiler" >&6; }
8525
8526# Is the header present?
8527{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8528echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8529cat >conftest.$ac_ext <<_ACEOF
8530/* confdefs.h. */
8531_ACEOF
8532cat confdefs.h >>conftest.$ac_ext
8533cat >>conftest.$ac_ext <<_ACEOF
8534/* end confdefs.h. */
8535#include <$ac_header>
8536_ACEOF
8537if { (ac_try="$ac_cpp conftest.$ac_ext"
8538case "(($ac_try" in
8539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540 *) ac_try_echo=$ac_try;;
8541esac
8542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8544 ac_status=$?
8545 grep -v '^ *+' conftest.er1 >conftest.err
8546 rm -f conftest.er1
8547 cat conftest.err >&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } >/dev/null; then
8550 if test -s conftest.err; then
8551 ac_cpp_err=$ac_c_preproc_warn_flag
8552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8553 else
8554 ac_cpp_err=
8555 fi
8556else
8557 ac_cpp_err=yes
8558fi
8559if test -z "$ac_cpp_err"; then
8560 ac_header_preproc=yes
8561else
8562 echo "$as_me: failed program was:" >&5
8563sed 's/^/| /' conftest.$ac_ext >&5
8564
8565 ac_header_preproc=no
8566fi
8567
8568rm -f conftest.err conftest.$ac_ext
8569{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8570echo "${ECHO_T}$ac_header_preproc" >&6; }
8571
8572# So? What about this header?
8573case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8574 yes:no: )
8575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8576echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8578echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8579 ac_header_preproc=yes
8580 ;;
8581 no:yes:* )
8582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8583echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8585echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8587echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8589echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8591echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8593echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8594 ( cat <<\_ASBOX
8595## ------------------------------ ##
8596## Report this to bugs@yourdomain ##
8597## ------------------------------ ##
8598_ASBOX
8599 ) | sed "s/^/$as_me: WARNING: /" >&2
8600 ;;
8601esac
8602{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8603echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8604if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8605 echo $ECHO_N "(cached) $ECHO_C" >&6
8606else
8607 eval "$as_ac_Header=\$ac_header_preproc"
8608fi
8609ac_res=`eval echo '${'$as_ac_Header'}'`
8610 { echo "$as_me:$LINENO: result: $ac_res" >&5
8611echo "${ECHO_T}$ac_res" >&6; }
8612
8613fi
8614if test `eval echo '${'$as_ac_Header'}'` = yes; then
8615 cat >>confdefs.h <<_ACEOF
8616#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8617_ACEOF
8618
8619fi
8620
8621done
8622
8623# Check whether --enable-ltdl-install was given.
8624if test "${enable_ltdl_install+set}" = set; then
8625 enableval=$enable_ltdl_install;
8626fi
8627
8628
8629
8630
8631if test x"${enable_ltdl_install-no}" != xno; then
8632 INSTALL_LTDL_TRUE=
8633 INSTALL_LTDL_FALSE='#'
8634else
8635 INSTALL_LTDL_TRUE='#'
8636 INSTALL_LTDL_FALSE=
8637fi
8638
8639
8640
8641if test x"${enable_ltdl_convenience-no}" != xno; then
8642 CONVENIENCE_LTDL_TRUE=
8643 CONVENIENCE_LTDL_FALSE='#'
8644else
8645 CONVENIENCE_LTDL_TRUE='#'
8646 CONVENIENCE_LTDL_FALSE=
8647fi
8648
8649
8650{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8651echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8652library_names_spec=
8653libname_spec='lib$name'
8654soname_spec=
8655shrext_cmds=".so"
8656postinstall_cmds=
8657postuninstall_cmds=
8658finish_cmds=
8659finish_eval=
8660shlibpath_var=
8661shlibpath_overrides_runpath=unknown
8662version_type=none
8663dynamic_linker="$host_os ld.so"
8664sys_lib_dlsearch_path_spec="/lib /usr/lib"
8665if test "$GCC" = yes; then
8666 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8667 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8668 # if the path contains ";" then we assume it to be the separator
8669 # otherwise default to the standard path separator (i.e. ":") - it is
8670 # assumed that no part of a normal pathname contains ";" but that should
8671 # okay in the real world where ";" in dirpaths is itself problematic.
8672 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8673 else
8674 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8675 fi
8676else
8677 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8678fi
8679need_lib_prefix=unknown
8680hardcode_into_libs=no
8681
8682# when you set need_version to no, make sure it does not cause -set_version
8683# flags to be left without arguments
8684need_version=unknown
8685
8686case $host_os in
8687aix3*)
8688 version_type=linux
8689 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8690 shlibpath_var=LIBPATH
8691
8692 # AIX 3 has no versioning support, so we append a major version to the name.
8693 soname_spec='${libname}${release}${shared_ext}$major'
8694 ;;
8695
8696aix4* | aix5*)
8697 version_type=linux
8698 need_lib_prefix=no
8699 need_version=no
8700 hardcode_into_libs=yes
8701 if test "$host_cpu" = ia64; then
8702 # AIX 5 supports IA64
8703 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8704 shlibpath_var=LD_LIBRARY_PATH
8705 else
8706 # With GCC up to 2.95.x, collect2 would create an import file
8707 # for dependence libraries. The import file would start with
8708 # the line `#! .'. This would cause the generated library to
8709 # depend on `.', always an invalid library. This was fixed in
8710 # development snapshots of GCC prior to 3.0.
8711 case $host_os in
8712 aix4 | aix4.[01] | aix4.[01].*)
8713 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8714 echo ' yes '
8715 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8716 :
8717 else
8718 can_build_shared=no
8719 fi
8720 ;;
8721 esac
8722 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8723 # soname into executable. Probably we can add versioning support to
8724 # collect2, so additional links can be useful in future.
8725 if test "$aix_use_runtimelinking" = yes; then
8726 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8727 # instead of lib<name>.a to let people know that these are not
8728 # typical AIX shared libraries.
8729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8730 else
8731 # We preserve .a as extension for shared libraries through AIX4.2
8732 # and later when we are not doing run time linking.
8733 library_names_spec='${libname}${release}.a $libname.a'
8734 soname_spec='${libname}${release}${shared_ext}$major'
8735 fi
8736 shlibpath_var=LIBPATH
8737 fi
8738 ;;
8739
8740amigaos*)
8741 library_names_spec='$libname.ixlibrary $libname.a'
8742 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8743 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'
8744 ;;
8745
8746beos*)
8747 library_names_spec='${libname}${shared_ext}'
8748 dynamic_linker="$host_os ld.so"
8749 shlibpath_var=LIBRARY_PATH
8750 ;;
8751
8752bsdi[45]*)
8753 version_type=linux
8754 need_version=no
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8756 soname_spec='${libname}${release}${shared_ext}$major'
8757 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8758 shlibpath_var=LD_LIBRARY_PATH
8759 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8760 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8761 # the default ld.so.conf also contains /usr/contrib/lib and
8762 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8763 # libtool to hard-code these into programs
8764 ;;
8765
8766cygwin* | mingw* | pw32*)
8767 version_type=windows
8768 shrext_cmds=".dll"
8769 need_version=no
8770 need_lib_prefix=no
8771
8772 case $GCC,$host_os in
8773 yes,cygwin* | yes,mingw* | yes,pw32*)
8774 library_names_spec='$libname.dll.a'
8775 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8776 postinstall_cmds='base_file=`basename \${file}`~
8777 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8778 dldir=$destdir/`dirname \$dlpath`~
8779 test -d \$dldir || mkdir -p \$dldir~
8780 $install_prog $dir/$dlname \$dldir/$dlname~
8781 chmod a+x \$dldir/$dlname'
8782 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8783 dlpath=$dir/\$dldll~
8784 $rm \$dlpath'
8785 shlibpath_overrides_runpath=yes
8786
8787 case $host_os in
8788 cygwin*)
8789 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8790 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8791 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8792 ;;
8793 mingw*)
8794 # MinGW DLLs use traditional 'lib' prefix
8795 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8796 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8797 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8798 # It is most probably a Windows format PATH printed by
8799 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8800 # path with ; separators, and with drive letters. We can handle the
8801 # drive letters (cygwin fileutils understands them), so leave them,
8802 # especially as we might pass files found there to a mingw objdump,
8803 # which wouldn't understand a cygwinified path. Ahh.
8804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8805 else
8806 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8807 fi
8808 ;;
8809 pw32*)
8810 # pw32 DLLs use 'pw' prefix rather than 'lib'
8811 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8812 ;;
8813 esac
8814 ;;
8815
8816 *)
8817 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8818 ;;
8819 esac
8820 dynamic_linker='Win32 ld.exe'
8821 # FIXME: first we should search . and the directory the executable is in
8822 shlibpath_var=PATH
8823 ;;
8824
8825darwin* | rhapsody*)
8826 dynamic_linker="$host_os dyld"
8827 version_type=darwin
8828 need_lib_prefix=no
8829 need_version=no
8830 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8831 soname_spec='${libname}${release}${major}$shared_ext'
8832 shlibpath_overrides_runpath=yes
8833 shlibpath_var=DYLD_LIBRARY_PATH
8834 shrext_cmds='.dylib'
8835 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8836 if test "$GCC" = yes; then
8837 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"`
8838 else
8839 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8840 fi
8841 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8842 ;;
8843
8844dgux*)
8845 version_type=linux
8846 need_lib_prefix=no
8847 need_version=no
8848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8849 soname_spec='${libname}${release}${shared_ext}$major'
8850 shlibpath_var=LD_LIBRARY_PATH
8851 ;;
8852
8853freebsd1*)
8854 dynamic_linker=no
8855 ;;
8856
8857kfreebsd*-gnu)
8858 version_type=linux
8859 need_lib_prefix=no
8860 need_version=no
8861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8862 soname_spec='${libname}${release}${shared_ext}$major'
8863 shlibpath_var=LD_LIBRARY_PATH
8864 shlibpath_overrides_runpath=no
8865 hardcode_into_libs=yes
8866 dynamic_linker='GNU ld.so'
8867 ;;
8868
8869freebsd* | dragonfly*)
8870 # DragonFly does not have aout. When/if they implement a new
8871 # versioning mechanism, adjust this.
8872 if test -x /usr/bin/objformat; then
8873 objformat=`/usr/bin/objformat`
8874 else
8875 case $host_os in
8876 freebsd[123]*) objformat=aout ;;
8877 *) objformat=elf ;;
8878 esac
8879 fi
8880 version_type=freebsd-$objformat
8881 case $version_type in
8882 freebsd-elf*)
8883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8884 need_version=no
8885 need_lib_prefix=no
8886 ;;
8887 freebsd-*)
8888 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8889 need_version=yes
8890 ;;
8891 esac
8892 shlibpath_var=LD_LIBRARY_PATH
8893 case $host_os in
8894 freebsd2*)
8895 shlibpath_overrides_runpath=yes
8896 ;;
8897 freebsd3.[01]* | freebsdelf3.[01]*)
8898 shlibpath_overrides_runpath=yes
8899 hardcode_into_libs=yes
8900 ;;
8901 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8902 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8903 shlibpath_overrides_runpath=no
8904 hardcode_into_libs=yes
8905 ;;
8906 freebsd*) # from 4.6 on
8907 shlibpath_overrides_runpath=yes
8908 hardcode_into_libs=yes
8909 ;;
8910 esac
8911 ;;
8912
8913gnu*)
8914 version_type=linux
8915 need_lib_prefix=no
8916 need_version=no
8917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8918 soname_spec='${libname}${release}${shared_ext}$major'
8919 shlibpath_var=LD_LIBRARY_PATH
8920 hardcode_into_libs=yes
8921 ;;
8922
8923hpux9* | hpux10* | hpux11*)
8924 # Give a soname corresponding to the major version so that dld.sl refuses to
8925 # link against other versions.
8926 version_type=sunos
8927 need_lib_prefix=no
8928 need_version=no
8929 case $host_cpu in
8930 ia64*)
8931 shrext_cmds='.so'
8932 hardcode_into_libs=yes
8933 dynamic_linker="$host_os dld.so"
8934 shlibpath_var=LD_LIBRARY_PATH
8935 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8937 soname_spec='${libname}${release}${shared_ext}$major'
8938 if test "X$HPUX_IA64_MODE" = X32; then
8939 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8940 else
8941 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8942 fi
8943 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8944 ;;
8945 hppa*64*)
8946 shrext_cmds='.sl'
8947 hardcode_into_libs=yes
8948 dynamic_linker="$host_os dld.sl"
8949 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8952 soname_spec='${libname}${release}${shared_ext}$major'
8953 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8955 ;;
8956 *)
8957 shrext_cmds='.sl'
8958 dynamic_linker="$host_os dld.sl"
8959 shlibpath_var=SHLIB_PATH
8960 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8962 soname_spec='${libname}${release}${shared_ext}$major'
8963 ;;
8964 esac
8965 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8966 postinstall_cmds='chmod 555 $lib'
8967 ;;
8968
8969interix3*)
8970 version_type=linux
8971 need_lib_prefix=no
8972 need_version=no
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8974 soname_spec='${libname}${release}${shared_ext}$major'
8975 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8976 shlibpath_var=LD_LIBRARY_PATH
8977 shlibpath_overrides_runpath=no
8978 hardcode_into_libs=yes
8979 ;;
8980
8981irix5* | irix6* | nonstopux*)
8982 case $host_os in
8983 nonstopux*) version_type=nonstopux ;;
8984 *)
8985 if test "$lt_cv_prog_gnu_ld" = yes; then
8986 version_type=linux
8987 else
8988 version_type=irix
8989 fi ;;
8990 esac
8991 need_lib_prefix=no
8992 need_version=no
8993 soname_spec='${libname}${release}${shared_ext}$major'
8994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8995 case $host_os in
8996 irix5* | nonstopux*)
8997 libsuff= shlibsuff=
8998 ;;
8999 *)
9000 case $LD in # libtool.m4 will add one of these switches to LD
9001 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9002 libsuff= shlibsuff= libmagic=32-bit;;
9003 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9004 libsuff=32 shlibsuff=N32 libmagic=N32;;
9005 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9006 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9007 *) libsuff= shlibsuff= libmagic=never-match;;
9008 esac
9009 ;;
9010 esac
9011 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9012 shlibpath_overrides_runpath=no
9013 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9014 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9015 hardcode_into_libs=yes
9016 ;;
9017
9018# No shared lib support for Linux oldld, aout, or coff.
9019linux*oldld* | linux*aout* | linux*coff*)
9020 dynamic_linker=no
9021 ;;
9022
9023# This must be Linux ELF.
9024linux*)
9025 version_type=linux
9026 need_lib_prefix=no
9027 need_version=no
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029 soname_spec='${libname}${release}${shared_ext}$major'
9030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9031 shlibpath_var=LD_LIBRARY_PATH
9032 shlibpath_overrides_runpath=no
9033 # This implies no fast_install, which is unacceptable.
9034 # Some rework will be needed to allow for fast_install
9035 # before this can be enabled.
9036 hardcode_into_libs=yes
9037
9038 # Append ld.so.conf contents to the search path
9039 if test -f /etc/ld.so.conf; then
9040 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' ' '`
9041 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9042 fi
9043
9044 # We used to test for /lib/ld.so.1 and disable shared libraries on
9045 # powerpc, because MkLinux only supported shared libraries with the
9046 # GNU dynamic linker. Since this was broken with cross compilers,
9047 # most powerpc-linux boxes support dynamic linking these days and
9048 # people can always --disable-shared, the test was removed, and we
9049 # assume the GNU/Linux dynamic linker is in use.
9050 dynamic_linker='GNU/Linux ld.so'
9051 ;;
9052
9053knetbsd*-gnu)
9054 version_type=linux
9055 need_lib_prefix=no
9056 need_version=no
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 shlibpath_var=LD_LIBRARY_PATH
9060 shlibpath_overrides_runpath=no
9061 hardcode_into_libs=yes
9062 dynamic_linker='GNU ld.so'
9063 ;;
9064
9065netbsd*)
9066 version_type=sunos
9067 need_lib_prefix=no
9068 need_version=no
9069 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9072 dynamic_linker='NetBSD (a.out) ld.so'
9073 else
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9075 soname_spec='${libname}${release}${shared_ext}$major'
9076 dynamic_linker='NetBSD ld.elf_so'
9077 fi
9078 shlibpath_var=LD_LIBRARY_PATH
9079 shlibpath_overrides_runpath=yes
9080 hardcode_into_libs=yes
9081 ;;
9082
9083newsos6)
9084 version_type=linux
9085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9086 shlibpath_var=LD_LIBRARY_PATH
9087 shlibpath_overrides_runpath=yes
9088 ;;
9089
9090nto-qnx*)
9091 version_type=linux
9092 need_lib_prefix=no
9093 need_version=no
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 shlibpath_var=LD_LIBRARY_PATH
9097 shlibpath_overrides_runpath=yes
9098 ;;
9099
9100openbsd*)
9101 version_type=sunos
9102 sys_lib_dlsearch_path_spec="/usr/lib"
9103 need_lib_prefix=no
9104 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9105 case $host_os in
9106 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9107 *) need_version=no ;;
9108 esac
9109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9111 shlibpath_var=LD_LIBRARY_PATH
9112 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9113 case $host_os in
9114 openbsd2.[89] | openbsd2.[89].*)
9115 shlibpath_overrides_runpath=no
9116 ;;
9117 *)
9118 shlibpath_overrides_runpath=yes
9119 ;;
9120 esac
9121 else
9122 shlibpath_overrides_runpath=yes
9123 fi
9124 ;;
9125
9126os2*)
9127 libname_spec='$name'
9128 shrext_cmds=".dll"
9129 need_lib_prefix=no
9130 library_names_spec='$libname${shared_ext} $libname.a'
9131 dynamic_linker='OS/2 ld.exe'
9132 shlibpath_var=LIBPATH
9133 ;;
9134
9135osf3* | osf4* | osf5*)
9136 version_type=osf
9137 need_lib_prefix=no
9138 need_version=no
9139 soname_spec='${libname}${release}${shared_ext}$major'
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141 shlibpath_var=LD_LIBRARY_PATH
9142 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9143 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9144 ;;
9145
9146solaris*)
9147 version_type=linux
9148 need_lib_prefix=no
9149 need_version=no
9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151 soname_spec='${libname}${release}${shared_ext}$major'
9152 shlibpath_var=LD_LIBRARY_PATH
9153 shlibpath_overrides_runpath=yes
9154 hardcode_into_libs=yes
9155 # ldd complains unless libraries are executable
9156 postinstall_cmds='chmod +x $lib'
9157 ;;
9158
9159sunos4*)
9160 version_type=sunos
9161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9162 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9163 shlibpath_var=LD_LIBRARY_PATH
9164 shlibpath_overrides_runpath=yes
9165 if test "$with_gnu_ld" = yes; then
9166 need_lib_prefix=no
9167 fi
9168 need_version=yes
9169 ;;
9170
9171sysv4 | sysv4.3*)
9172 version_type=linux
9173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9174 soname_spec='${libname}${release}${shared_ext}$major'
9175 shlibpath_var=LD_LIBRARY_PATH
9176 case $host_vendor in
9177 sni)
9178 shlibpath_overrides_runpath=no
9179 need_lib_prefix=no
9180 export_dynamic_flag_spec='${wl}-Blargedynsym'
9181 runpath_var=LD_RUN_PATH
9182 ;;
9183 siemens)
9184 need_lib_prefix=no
9185 ;;
9186 motorola)
9187 need_lib_prefix=no
9188 need_version=no
9189 shlibpath_overrides_runpath=no
9190 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9191 ;;
9192 esac
9193 ;;
9194
9195sysv4*MP*)
9196 if test -d /usr/nec ;then
9197 version_type=linux
9198 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9199 soname_spec='$libname${shared_ext}.$major'
9200 shlibpath_var=LD_LIBRARY_PATH
9201 fi
9202 ;;
9203
9204sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9205 version_type=freebsd-elf
9206 need_lib_prefix=no
9207 need_version=no
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9209 soname_spec='${libname}${release}${shared_ext}$major'
9210 shlibpath_var=LD_LIBRARY_PATH
9211 hardcode_into_libs=yes
9212 if test "$with_gnu_ld" = yes; then
9213 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9214 shlibpath_overrides_runpath=no
9215 else
9216 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9217 shlibpath_overrides_runpath=yes
9218 case $host_os in
9219 sco3.2v5*)
9220 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9221 ;;
9222 esac
9223 fi
9224 sys_lib_dlsearch_path_spec='/usr/lib'
9225 ;;
9226
9227uts4*)
9228 version_type=linux
9229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9230 soname_spec='${libname}${release}${shared_ext}$major'
9231 shlibpath_var=LD_LIBRARY_PATH
9232 ;;
9233
9234*)
9235 dynamic_linker=no
9236 ;;
9237esac
9238{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9239echo "${ECHO_T}$dynamic_linker" >&6; }
9240test "$dynamic_linker" = no && can_build_shared=no
9241
9242variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9243if test "$GCC" = yes; then
9244 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9245fi
9246
9247
9248{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9249echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9250if test "${libltdl_cv_shlibext+set}" = set; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9252else
9253
9254module=yes
9255eval libltdl_cv_shlibext=$shrext_cmds
9256
9257fi
9258{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9259echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9260if test -n "$libltdl_cv_shlibext"; then
9261
9262cat >>confdefs.h <<_ACEOF
9263#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9264_ACEOF
9265
9266fi
9267
9268
9269{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9270echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9271if test "${libltdl_cv_shlibpath_var+set}" = set; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
9273else
9274 libltdl_cv_shlibpath_var="$shlibpath_var"
9275fi
9276{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9277echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9278if test -n "$libltdl_cv_shlibpath_var"; then
9279
9280cat >>confdefs.h <<_ACEOF
9281#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9282_ACEOF
9283
9284fi
9285
9286
9287{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9288echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9289if test "${libltdl_cv_sys_search_path+set}" = set; then
9290 echo $ECHO_N "(cached) $ECHO_C" >&6
9291else
9292 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9293fi
9294{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9295echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9296if test -n "$libltdl_cv_sys_search_path"; then
9297 sys_search_path=
9298 for dir in $libltdl_cv_sys_search_path; do
9299 if test -z "$sys_search_path"; then
9300 sys_search_path="$dir"
9301 else
9302 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9303 fi
9304 done
9305
9306cat >>confdefs.h <<_ACEOF
9307#define LTDL_SYSSEARCHPATH "$sys_search_path"
9308_ACEOF
9309
9310fi
9311
9312{ echo "$as_me:$LINENO: checking for objdir" >&5
9313echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9314if test "${libltdl_cv_objdir+set}" = set; then
9315 echo $ECHO_N "(cached) $ECHO_C" >&6
9316else
9317 libltdl_cv_objdir="$objdir"
9318 if test -n "$objdir"; then
9319 :
9320 else
9321 rm -f .libs 2>/dev/null
9322 mkdir .libs 2>/dev/null
9323 if test -d .libs; then
9324 libltdl_cv_objdir=.libs
9325 else
9326 # MS-DOS does not allow filenames that begin with a dot.
9327 libltdl_cv_objdir=_libs
9328 fi
9329 rmdir .libs 2>/dev/null
9330 fi
9331
9332fi
9333{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9334echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9335
9336cat >>confdefs.h <<_ACEOF
9337#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9338_ACEOF
9339
9340
9341
9342
9343
9344
9345# Check for command to grab the raw symbol name followed by C symbol from nm.
9346{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9347echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9348if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9350else
9351
9352# These are sane defaults that work on at least a few old systems.
9353# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9354
9355# Character class describing NM global symbol codes.
9356symcode='[BCDEGRST]'
9357
9358# Regexp to match symbols that can be accessed directly from C.
9359sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9360
9361# Transform an extracted symbol line into a proper C declaration
9362lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9363
9364# Transform an extracted symbol line into symbol name and symbol address
9365lt_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'"
9366
9367# Define system-specific variables.
9368case $host_os in
9369aix*)
9370 symcode='[BCDT]'
9371 ;;
9372cygwin* | mingw* | pw32*)
9373 symcode='[ABCDGISTW]'
9374 ;;
9375hpux*) # Its linker distinguishes data from code symbols
9376 if test "$host_cpu" = ia64; then
9377 symcode='[ABCDEGRST]'
9378 fi
9379 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9380 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'"
9381 ;;
9382linux*)
9383 if test "$host_cpu" = ia64; then
9384 symcode='[ABCDGIRSTW]'
9385 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9386 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'"
9387 fi
9388 ;;
9389irix* | nonstopux*)
9390 symcode='[BCDEGRST]'
9391 ;;
9392osf*)
9393 symcode='[BCDEGQRST]'
9394 ;;
9395solaris*)
9396 symcode='[BDRT]'
9397 ;;
9398sco3.2v5*)
9399 symcode='[DT]'
9400 ;;
9401sysv4.2uw2*)
9402 symcode='[DT]'
9403 ;;
9404sysv5* | sco5v6* | unixware* | OpenUNIX*)
9405 symcode='[ABDT]'
9406 ;;
9407sysv4)
9408 symcode='[DFNSTU]'
9409 ;;
9410esac
9411
9412# Handle CRLF in mingw tool chain
9413opt_cr=
9414case $build_os in
9415mingw*)
9416 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9417 ;;
9418esac
9419
9420# If we're using GNU nm, then use its standard symbol codes.
9421case `$NM -V 2>&1` in
9422*GNU* | *'with BFD'*)
9423 symcode='[ABCDGIRSTW]' ;;
9424esac
9425
9426# Try without a prefix undercore, then with it.
9427for ac_symprfx in "" "_"; do
9428
9429 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9430 symxfrm="\\1 $ac_symprfx\\2 \\2"
9431
9432 # Write the raw and C identifiers.
9433 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9434
9435 # Check to see that the pipe works correctly.
9436 pipe_works=no
9437
9438 rm -f conftest*
9439 cat > conftest.$ac_ext <<EOF
9440#ifdef __cplusplus
9441extern "C" {
9442#endif
9443char nm_test_var;
9444void nm_test_func(){}
9445#ifdef __cplusplus
9446}
9447#endif
9448int main(){nm_test_var='a';nm_test_func();return(0);}
9449EOF
9450
9451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9452 (eval $ac_compile) 2>&5
9453 ac_status=$?
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; then
9456 # Now try to grab the symbols.
9457 nlist=conftest.nm
9458 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9459 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9460 ac_status=$?
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); } && test -s "$nlist"; then
9463 # Try sorting and uniquifying the output.
9464 if sort "$nlist" | uniq > "$nlist"T; then
9465 mv -f "$nlist"T "$nlist"
9466 else
9467 rm -f "$nlist"T
9468 fi
9469
9470 # Make sure that we snagged all the symbols we need.
9471 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9472 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9473 cat <<EOF > conftest.$ac_ext
9474#ifdef __cplusplus
9475extern "C" {
9476#endif
9477
9478EOF
9479 # Now generate the symbol file.
9480 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9481
9482 cat <<EOF >> conftest.$ac_ext
9483#if defined (__STDC__) && __STDC__
9484# define lt_ptr_t void *
9485#else
9486# define lt_ptr_t char *
9487# define const
9488#endif
9489
9490/* The mapping between symbol names and symbols. */
9491const struct {
9492 const char *name;
9493 lt_ptr_t address;
9494}
9495lt_preloaded_symbols[] =
9496{
9497EOF
9498 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9499 cat <<\EOF >> conftest.$ac_ext
9500 {0, (lt_ptr_t) 0}
9501};
9502
9503#ifdef __cplusplus
9504}
9505#endif
9506EOF
9507 # Now try linking the two files.
9508 mv conftest.$ac_objext conftstm.$ac_objext
9509 lt_save_LIBS="$LIBS"
9510 lt_save_CFLAGS="$CFLAGS"
9511 LIBS="conftstm.$ac_objext"
9512 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9514 (eval $ac_link) 2>&5
9515 ac_status=$?
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9518 pipe_works=yes
9519 fi
9520 LIBS="$lt_save_LIBS"
9521 CFLAGS="$lt_save_CFLAGS"
9522 else
9523 echo "cannot find nm_test_func in $nlist" >&5
9524 fi
9525 else
9526 echo "cannot find nm_test_var in $nlist" >&5
9527 fi
9528 else
9529 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9530 fi
9531 else
9532 echo "$progname: failed program was:" >&5
9533 cat conftest.$ac_ext >&5
9534 fi
9535 rm -f conftest* conftst*
9536
9537 # Do not use the global_symbol_pipe unless it works.
9538 if test "$pipe_works" = yes; then
9539 break
9540 else
9541 lt_cv_sys_global_symbol_pipe=
9542 fi
9543done
9544
9545fi
9546
9547if test -z "$lt_cv_sys_global_symbol_pipe"; then
9548 lt_cv_sys_global_symbol_to_cdecl=
9549fi
9550if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9551 { echo "$as_me:$LINENO: result: failed" >&5
9552echo "${ECHO_T}failed" >&6; }
9553else
9554 { echo "$as_me:$LINENO: result: ok" >&5
9555echo "${ECHO_T}ok" >&6; }
9556fi
9557
9558
9559{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9560echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9561if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9563else
9564 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9565 libltdl_cv_preloaded_symbols=yes
9566 else
9567 libltdl_cv_preloaded_symbols=no
9568 fi
9569
9570fi
9571{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9572echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9573if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9574
9575cat >>confdefs.h <<\_ACEOF
9576#define HAVE_PRELOADED_SYMBOLS 1
9577_ACEOF
9578
9579fi
9580
9581LIBADD_DL=
9582
9583ac_ext=c
9584ac_cpp='$CPP $CPPFLAGS'
9585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9587ac_compiler_gnu=$ac_cv_c_compiler_gnu
9588
9589
9590{ echo "$as_me:$LINENO: checking for shl_load" >&5
9591echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9592if test "${ac_cv_func_shl_load+set}" = set; then
9593 echo $ECHO_N "(cached) $ECHO_C" >&6
9594else
9595 cat >conftest.$ac_ext <<_ACEOF
9596/* confdefs.h. */
9597_ACEOF
9598cat confdefs.h >>conftest.$ac_ext
9599cat >>conftest.$ac_ext <<_ACEOF
9600/* end confdefs.h. */
9601/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9603#define shl_load innocuous_shl_load
9604
9605/* System header to define __stub macros and hopefully few prototypes,
9606 which can conflict with char shl_load (); below.
9607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9608 <limits.h> exists even on freestanding compilers. */
9609
9610#ifdef __STDC__
9611# include <limits.h>
9612#else
9613# include <assert.h>
9614#endif
9615
9616#undef shl_load
9617
9618/* Override any GCC internal prototype to avoid an error.
9619 Use char because int might match the return type of a GCC
9620 builtin and then its argument prototype would still apply. */
9621#ifdef __cplusplus
9622extern "C"
9623#endif
9624char shl_load ();
9625/* The GNU C library defines this for functions which it implements
9626 to always fail with ENOSYS. Some functions are actually named
9627 something starting with __ and the normal name is an alias. */
9628#if defined __stub_shl_load || defined __stub___shl_load
9629choke me
9630#endif
9631
9632int
9633main ()
9634{
9635return shl_load ();
9636 ;
9637 return 0;
9638}
9639_ACEOF
9640rm -f conftest.$ac_objext conftest$ac_exeext
9641if { (ac_try="$ac_link"
9642case "(($ac_try" in
9643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9644 *) ac_try_echo=$ac_try;;
9645esac
9646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9647 (eval "$ac_link") 2>conftest.er1
9648 ac_status=$?
9649 grep -v '^ *+' conftest.er1 >conftest.err
9650 rm -f conftest.er1
9651 cat conftest.err >&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); } &&
9654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9655 { (case "(($ac_try" in
9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9658esac
9659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660 (eval "$ac_try") 2>&5
9661 ac_status=$?
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; } &&
9664 { ac_try='test -s conftest$ac_exeext'
9665 { (case "(($ac_try" in
9666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667 *) ac_try_echo=$ac_try;;
9668esac
9669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670 (eval "$ac_try") 2>&5
9671 ac_status=$?
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; }; then
9674 ac_cv_func_shl_load=yes
9675else
9676 echo "$as_me: failed program was:" >&5
9677sed 's/^/| /' conftest.$ac_ext >&5
9678
9679 ac_cv_func_shl_load=no
9680fi
9681
9682rm -f core conftest.err conftest.$ac_objext \
9683 conftest$ac_exeext conftest.$ac_ext
9684fi
9685{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9686echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9687if test $ac_cv_func_shl_load = yes; then
9688
9689cat >>confdefs.h <<\_ACEOF
9690#define HAVE_SHL_LOAD 1
9691_ACEOF
9692
9693else
9694 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9695echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9696if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9697 echo $ECHO_N "(cached) $ECHO_C" >&6
9698else
9699 ac_check_lib_save_LIBS=$LIBS
9700LIBS="-ldld $LIBS"
9701cat >conftest.$ac_ext <<_ACEOF
9702/* confdefs.h. */
9703_ACEOF
9704cat confdefs.h >>conftest.$ac_ext
9705cat >>conftest.$ac_ext <<_ACEOF
9706/* end confdefs.h. */
9707
9708/* Override any GCC internal prototype to avoid an error.
9709 Use char because int might match the return type of a GCC
9710 builtin and then its argument prototype would still apply. */
9711#ifdef __cplusplus
9712extern "C"
9713#endif
9714char shl_load ();
9715int
9716main ()
9717{
9718return shl_load ();
9719 ;
9720 return 0;
9721}
9722_ACEOF
9723rm -f conftest.$ac_objext conftest$ac_exeext
9724if { (ac_try="$ac_link"
9725case "(($ac_try" in
9726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9727 *) ac_try_echo=$ac_try;;
9728esac
9729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9730 (eval "$ac_link") 2>conftest.er1
9731 ac_status=$?
9732 grep -v '^ *+' conftest.er1 >conftest.err
9733 rm -f conftest.er1
9734 cat conftest.err >&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); } &&
9737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9738 { (case "(($ac_try" in
9739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9740 *) ac_try_echo=$ac_try;;
9741esac
9742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9743 (eval "$ac_try") 2>&5
9744 ac_status=$?
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; } &&
9747 { ac_try='test -s conftest$ac_exeext'
9748 { (case "(($ac_try" in
9749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750 *) ac_try_echo=$ac_try;;
9751esac
9752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753 (eval "$ac_try") 2>&5
9754 ac_status=$?
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; }; then
9757 ac_cv_lib_dld_shl_load=yes
9758else
9759 echo "$as_me: failed program was:" >&5
9760sed 's/^/| /' conftest.$ac_ext >&5
9761
9762 ac_cv_lib_dld_shl_load=no
9763fi
9764
9765rm -f core conftest.err conftest.$ac_objext \
9766 conftest$ac_exeext conftest.$ac_ext
9767LIBS=$ac_check_lib_save_LIBS
9768fi
9769{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9770echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9771if test $ac_cv_lib_dld_shl_load = yes; then
9772
9773cat >>confdefs.h <<\_ACEOF
9774#define HAVE_SHL_LOAD 1
9775_ACEOF
9776
9777 LIBADD_DL="$LIBADD_DL -ldld"
9778else
9779 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9780echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9781if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9783else
9784 ac_check_lib_save_LIBS=$LIBS
9785LIBS="-ldl $LIBS"
9786cat >conftest.$ac_ext <<_ACEOF
9787/* confdefs.h. */
9788_ACEOF
9789cat confdefs.h >>conftest.$ac_ext
9790cat >>conftest.$ac_ext <<_ACEOF
9791/* end confdefs.h. */
9792
9793/* Override any GCC internal prototype to avoid an error.
9794 Use char because int might match the return type of a GCC
9795 builtin and then its argument prototype would still apply. */
9796#ifdef __cplusplus
9797extern "C"
9798#endif
9799char dlopen ();
9800int
9801main ()
9802{
9803return dlopen ();
9804 ;
9805 return 0;
9806}
9807_ACEOF
9808rm -f conftest.$ac_objext conftest$ac_exeext
9809if { (ac_try="$ac_link"
9810case "(($ac_try" in
9811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812 *) ac_try_echo=$ac_try;;
9813esac
9814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815 (eval "$ac_link") 2>conftest.er1
9816 ac_status=$?
9817 grep -v '^ *+' conftest.er1 >conftest.err
9818 rm -f conftest.er1
9819 cat conftest.err >&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } &&
9822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9823 { (case "(($ac_try" in
9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9826esac
9827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828 (eval "$ac_try") 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; } &&
9832 { ac_try='test -s conftest$ac_exeext'
9833 { (case "(($ac_try" in
9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9836esac
9837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838 (eval "$ac_try") 2>&5
9839 ac_status=$?
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; }; then
9842 ac_cv_lib_dl_dlopen=yes
9843else
9844 echo "$as_me: failed program was:" >&5
9845sed 's/^/| /' conftest.$ac_ext >&5
9846
9847 ac_cv_lib_dl_dlopen=no
9848fi
9849
9850rm -f core conftest.err conftest.$ac_objext \
9851 conftest$ac_exeext conftest.$ac_ext
9852LIBS=$ac_check_lib_save_LIBS
9853fi
9854{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9855echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9856if test $ac_cv_lib_dl_dlopen = yes; then
9857
9858cat >>confdefs.h <<\_ACEOF
9859#define HAVE_LIBDL 1
9860_ACEOF
9861
9862 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9863else
9864 cat >conftest.$ac_ext <<_ACEOF
9865/* confdefs.h. */
9866_ACEOF
9867cat confdefs.h >>conftest.$ac_ext
9868cat >>conftest.$ac_ext <<_ACEOF
9869/* end confdefs.h. */
9870#if HAVE_DLFCN_H
9871# include <dlfcn.h>
9872#endif
9873
9874int
9875main ()
9876{
9877dlopen(0, 0);
9878 ;
9879 return 0;
9880}
9881_ACEOF
9882rm -f conftest.$ac_objext conftest$ac_exeext
9883if { (ac_try="$ac_link"
9884case "(($ac_try" in
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9887esac
9888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_link") 2>conftest.er1
9890 ac_status=$?
9891 grep -v '^ *+' conftest.er1 >conftest.err
9892 rm -f conftest.er1
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } &&
9896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9897 { (case "(($ac_try" in
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9900esac
9901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_try") 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest$ac_exeext'
9907 { (case "(($ac_try" in
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9910esac
9911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_try") 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; }; then
9916
9917cat >>confdefs.h <<\_ACEOF
9918#define HAVE_LIBDL 1
9919_ACEOF
9920 libltdl_cv_func_dlopen="yes"
9921else
9922 echo "$as_me: failed program was:" >&5
9923sed 's/^/| /' conftest.$ac_ext >&5
9924
9925 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9926echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9927if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9928 echo $ECHO_N "(cached) $ECHO_C" >&6
9929else
9930 ac_check_lib_save_LIBS=$LIBS
9931LIBS="-lsvld $LIBS"
9932cat >conftest.$ac_ext <<_ACEOF
9933/* confdefs.h. */
9934_ACEOF
9935cat confdefs.h >>conftest.$ac_ext
9936cat >>conftest.$ac_ext <<_ACEOF
9937/* end confdefs.h. */
9938
9939/* Override any GCC internal prototype to avoid an error.
9940 Use char because int might match the return type of a GCC
9941 builtin and then its argument prototype would still apply. */
9942#ifdef __cplusplus
9943extern "C"
9944#endif
9945char dlopen ();
9946int
9947main ()
9948{
9949return dlopen ();
9950 ;
9951 return 0;
9952}
9953_ACEOF
9954rm -f conftest.$ac_objext conftest$ac_exeext
9955if { (ac_try="$ac_link"
9956case "(($ac_try" in
9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958 *) ac_try_echo=$ac_try;;
9959esac
9960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961 (eval "$ac_link") 2>conftest.er1
9962 ac_status=$?
9963 grep -v '^ *+' conftest.er1 >conftest.err
9964 rm -f conftest.er1
9965 cat conftest.err >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } &&
9968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9969 { (case "(($ac_try" in
9970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971 *) ac_try_echo=$ac_try;;
9972esac
9973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974 (eval "$ac_try") 2>&5
9975 ac_status=$?
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; } &&
9978 { ac_try='test -s conftest$ac_exeext'
9979 { (case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9982esac
9983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_try") 2>&5
9985 ac_status=$?
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; }; then
9988 ac_cv_lib_svld_dlopen=yes
9989else
9990 echo "$as_me: failed program was:" >&5
9991sed 's/^/| /' conftest.$ac_ext >&5
9992
9993 ac_cv_lib_svld_dlopen=no
9994fi
9995
9996rm -f core conftest.err conftest.$ac_objext \
9997 conftest$ac_exeext conftest.$ac_ext
9998LIBS=$ac_check_lib_save_LIBS
9999fi
10000{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10001echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10002if test $ac_cv_lib_svld_dlopen = yes; then
10003
10004cat >>confdefs.h <<\_ACEOF
10005#define HAVE_LIBDL 1
10006_ACEOF
10007
10008 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10009else
10010 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10011echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10012if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10014else
10015 ac_check_lib_save_LIBS=$LIBS
10016LIBS="-ldld $LIBS"
10017cat >conftest.$ac_ext <<_ACEOF
10018/* confdefs.h. */
10019_ACEOF
10020cat confdefs.h >>conftest.$ac_ext
10021cat >>conftest.$ac_ext <<_ACEOF
10022/* end confdefs.h. */
10023
10024/* Override any GCC internal prototype to avoid an error.
10025 Use char because int might match the return type of a GCC
10026 builtin and then its argument prototype would still apply. */
10027#ifdef __cplusplus
10028extern "C"
10029#endif
10030char dld_link ();
10031int
10032main ()
10033{
10034return dld_link ();
10035 ;
10036 return 0;
10037}
10038_ACEOF
10039rm -f conftest.$ac_objext conftest$ac_exeext
10040if { (ac_try="$ac_link"
10041case "(($ac_try" in
10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043 *) ac_try_echo=$ac_try;;
10044esac
10045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046 (eval "$ac_link") 2>conftest.er1
10047 ac_status=$?
10048 grep -v '^ *+' conftest.er1 >conftest.err
10049 rm -f conftest.er1
10050 cat conftest.err >&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); } &&
10053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10054 { (case "(($ac_try" in
10055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056 *) ac_try_echo=$ac_try;;
10057esac
10058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059 (eval "$ac_try") 2>&5
10060 ac_status=$?
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; } &&
10063 { ac_try='test -s conftest$ac_exeext'
10064 { (case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10067esac
10068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069 (eval "$ac_try") 2>&5
10070 ac_status=$?
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
10073 ac_cv_lib_dld_dld_link=yes
10074else
10075 echo "$as_me: failed program was:" >&5
10076sed 's/^/| /' conftest.$ac_ext >&5
10077
10078 ac_cv_lib_dld_dld_link=no
10079fi
10080
10081rm -f core conftest.err conftest.$ac_objext \
10082 conftest$ac_exeext conftest.$ac_ext
10083LIBS=$ac_check_lib_save_LIBS
10084fi
10085{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10086echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10087if test $ac_cv_lib_dld_dld_link = yes; then
10088
10089cat >>confdefs.h <<\_ACEOF
10090#define HAVE_DLD 1
10091_ACEOF
10092
10093 LIBADD_DL="$LIBADD_DL -ldld"
10094else
10095 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10096echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10097if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10098 echo $ECHO_N "(cached) $ECHO_C" >&6
10099else
10100 cat >conftest.$ac_ext <<_ACEOF
10101/* confdefs.h. */
10102_ACEOF
10103cat confdefs.h >>conftest.$ac_ext
10104cat >>conftest.$ac_ext <<_ACEOF
10105/* end confdefs.h. */
10106/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10108#define _dyld_func_lookup innocuous__dyld_func_lookup
10109
10110/* System header to define __stub macros and hopefully few prototypes,
10111 which can conflict with char _dyld_func_lookup (); below.
10112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10113 <limits.h> exists even on freestanding compilers. */
10114
10115#ifdef __STDC__
10116# include <limits.h>
10117#else
10118# include <assert.h>
10119#endif
10120
10121#undef _dyld_func_lookup
10122
10123/* Override any GCC internal prototype to avoid an error.
10124 Use char because int might match the return type of a GCC
10125 builtin and then its argument prototype would still apply. */
10126#ifdef __cplusplus
10127extern "C"
10128#endif
10129char _dyld_func_lookup ();
10130/* The GNU C library defines this for functions which it implements
10131 to always fail with ENOSYS. Some functions are actually named
10132 something starting with __ and the normal name is an alias. */
10133#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10134choke me
10135#endif
10136
10137int
10138main ()
10139{
10140return _dyld_func_lookup ();
10141 ;
10142 return 0;
10143}
10144_ACEOF
10145rm -f conftest.$ac_objext conftest$ac_exeext
10146if { (ac_try="$ac_link"
10147case "(($ac_try" in
10148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149 *) ac_try_echo=$ac_try;;
10150esac
10151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10152 (eval "$ac_link") 2>conftest.er1
10153 ac_status=$?
10154 grep -v '^ *+' conftest.er1 >conftest.err
10155 rm -f conftest.er1
10156 cat conftest.err >&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); } &&
10159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10160 { (case "(($ac_try" in
10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162 *) ac_try_echo=$ac_try;;
10163esac
10164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165 (eval "$ac_try") 2>&5
10166 ac_status=$?
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }; } &&
10169 { ac_try='test -s conftest$ac_exeext'
10170 { (case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10173esac
10174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_try") 2>&5
10176 ac_status=$?
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; }; then
10179 ac_cv_func__dyld_func_lookup=yes
10180else
10181 echo "$as_me: failed program was:" >&5
10182sed 's/^/| /' conftest.$ac_ext >&5
10183
10184 ac_cv_func__dyld_func_lookup=no
10185fi
10186
10187rm -f core conftest.err conftest.$ac_objext \
10188 conftest$ac_exeext conftest.$ac_ext
10189fi
10190{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10191echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10192if test $ac_cv_func__dyld_func_lookup = yes; then
10193
10194cat >>confdefs.h <<\_ACEOF
10195#define HAVE_DYLD 1
10196_ACEOF
10197
10198fi
10199
10200
10201fi
10202
10203
10204fi
10205
10206
10207fi
10208
10209rm -f core conftest.err conftest.$ac_objext \
10210 conftest$ac_exeext conftest.$ac_ext
10211
10212fi
10213
10214
10215fi
10216
10217
10218fi
10219
10220
10221if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10222then
10223 lt_save_LIBS="$LIBS"
10224 LIBS="$LIBS $LIBADD_DL"
10225
10226for ac_func in dlerror
10227do
10228as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10229{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10230echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10231if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
10233else
10234 cat >conftest.$ac_ext <<_ACEOF
10235/* confdefs.h. */
10236_ACEOF
10237cat confdefs.h >>conftest.$ac_ext
10238cat >>conftest.$ac_ext <<_ACEOF
10239/* end confdefs.h. */
10240/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10242#define $ac_func innocuous_$ac_func
10243
10244/* System header to define __stub macros and hopefully few prototypes,
10245 which can conflict with char $ac_func (); below.
10246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10247 <limits.h> exists even on freestanding compilers. */
10248
10249#ifdef __STDC__
10250# include <limits.h>
10251#else
10252# include <assert.h>
10253#endif
10254
10255#undef $ac_func
10256
10257/* Override any GCC internal prototype to avoid an error.
10258 Use char because int might match the return type of a GCC
10259 builtin and then its argument prototype would still apply. */
10260#ifdef __cplusplus
10261extern "C"
10262#endif
10263char $ac_func ();
10264/* The GNU C library defines this for functions which it implements
10265 to always fail with ENOSYS. Some functions are actually named
10266 something starting with __ and the normal name is an alias. */
10267#if defined __stub_$ac_func || defined __stub___$ac_func
10268choke me
10269#endif
10270
10271int
10272main ()
10273{
10274return $ac_func ();
10275 ;
10276 return 0;
10277}
10278_ACEOF
10279rm -f conftest.$ac_objext conftest$ac_exeext
10280if { (ac_try="$ac_link"
10281case "(($ac_try" in
10282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10283 *) ac_try_echo=$ac_try;;
10284esac
10285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10286 (eval "$ac_link") 2>conftest.er1
10287 ac_status=$?
10288 grep -v '^ *+' conftest.er1 >conftest.err
10289 rm -f conftest.er1
10290 cat conftest.err >&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); } &&
10293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10294 { (case "(($ac_try" in
10295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296 *) ac_try_echo=$ac_try;;
10297esac
10298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299 (eval "$ac_try") 2>&5
10300 ac_status=$?
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; } &&
10303 { ac_try='test -s conftest$ac_exeext'
10304 { (case "(($ac_try" in
10305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10306 *) ac_try_echo=$ac_try;;
10307esac
10308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10309 (eval "$ac_try") 2>&5
10310 ac_status=$?
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; }; then
10313 eval "$as_ac_var=yes"
10314else
10315 echo "$as_me: failed program was:" >&5
10316sed 's/^/| /' conftest.$ac_ext >&5
10317
10318 eval "$as_ac_var=no"
10319fi
10320
10321rm -f core conftest.err conftest.$ac_objext \
10322 conftest$ac_exeext conftest.$ac_ext
10323fi
10324ac_res=`eval echo '${'$as_ac_var'}'`
10325 { echo "$as_me:$LINENO: result: $ac_res" >&5
10326echo "${ECHO_T}$ac_res" >&6; }
10327if test `eval echo '${'$as_ac_var'}'` = yes; then
10328 cat >>confdefs.h <<_ACEOF
10329#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10330_ACEOF
10331
10332fi
10333done
10334
10335 LIBS="$lt_save_LIBS"
10336fi
10337ac_ext=c
10338ac_cpp='$CPP $CPPFLAGS'
10339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10341ac_compiler_gnu=$ac_cv_c_compiler_gnu
10342
10343
10344
10345{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10346echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10347if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10348 echo $ECHO_N "(cached) $ECHO_C" >&6
10349else
10350 ac_cv_sys_symbol_underscore=no
10351 cat > conftest.$ac_ext <<EOF
10352void nm_test_func(){}
10353int main(){nm_test_func;return 0;}
10354EOF
10355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10356 (eval $ac_compile) 2>&5
10357 ac_status=$?
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; then
10360 # Now try to grab the symbols.
10361 ac_nlist=conftest.nm
10362 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10363 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10364 ac_status=$?
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } && test -s "$ac_nlist"; then
10367 # See whether the symbols have a leading underscore.
10368 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10369 ac_cv_sys_symbol_underscore=yes
10370 else
10371 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10372 :
10373 else
10374 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10375 fi
10376 fi
10377 else
10378 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10379 fi
10380 else
10381 echo "configure: failed program was:" >&5
10382 cat conftest.c >&5
10383 fi
10384 rm -rf conftest*
10385
10386fi
10387{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10388echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10389
10390
10391if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10392 if test x"$libltdl_cv_func_dlopen" = xyes ||
10393 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10394 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10395echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10396if test "${libltdl_cv_need_uscore+set}" = set; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10398else
10399 libltdl_cv_need_uscore=unknown
10400 save_LIBS="$LIBS"
10401 LIBS="$LIBS $LIBADD_DL"
10402 if test "$cross_compiling" = yes; then :
10403 libltdl_cv_need_uscore=cross
10404else
10405 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10406 lt_status=$lt_dlunknown
10407 cat > conftest.$ac_ext <<EOF
10408#line 10423 "configure"
10409#include "confdefs.h"
10410
10411#if HAVE_DLFCN_H
10412#include <dlfcn.h>
10413#endif
10414
10415#include <stdio.h>
10416
10417#ifdef RTLD_GLOBAL
10418# define LT_DLGLOBAL RTLD_GLOBAL
10419#else
10420# ifdef DL_GLOBAL
10421# define LT_DLGLOBAL DL_GLOBAL
10422# else
10423# define LT_DLGLOBAL 0
10424# endif
10425#endif
10426
10427/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10428 find out it does not work in some platform. */
10429#ifndef LT_DLLAZY_OR_NOW
10430# ifdef RTLD_LAZY
10431# define LT_DLLAZY_OR_NOW RTLD_LAZY
10432# else
10433# ifdef DL_LAZY
10434# define LT_DLLAZY_OR_NOW DL_LAZY
10435# else
10436# ifdef RTLD_NOW
10437# define LT_DLLAZY_OR_NOW RTLD_NOW
10438# else
10439# ifdef DL_NOW
10440# define LT_DLLAZY_OR_NOW DL_NOW
10441# else
10442# define LT_DLLAZY_OR_NOW 0
10443# endif
10444# endif
10445# endif
10446# endif
10447#endif
10448
10449#ifdef __cplusplus
10450extern "C" void exit (int);
10451#endif
10452
10453void fnord() { int i=42;}
10454int main ()
10455{
10456 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10457 int status = $lt_dlunknown;
10458
10459 if (self)
10460 {
10461 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10462 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10463 /* dlclose (self); */
10464 }
10465 else
10466 puts (dlerror ());
10467
10468 exit (status);
10469}
10470EOF
10471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10472 (eval $ac_link) 2>&5
10473 ac_status=$?
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10476 (./conftest; exit; ) >&5 2>/dev/null
10477 lt_status=$?
10478 case x$lt_status in
10479 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10480 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10481 x$lt_dlunknown|x*) ;;
10482 esac
10483 else :
10484 # compilation failed
10485
10486 fi
10487fi
10488rm -fr conftest*
10489
10490 LIBS="$save_LIBS"
10491
10492fi
10493{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10494echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10495 fi
10496fi
10497
10498if test x"$libltdl_cv_need_uscore" = xyes; then
10499
10500cat >>confdefs.h <<\_ACEOF
10501#define NEED_USCORE 1
10502_ACEOF
10503
10504fi
10505
10506
10507{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10508echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10509if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10511else
10512 # PORTME does your system automatically load deplibs for dlopen?
10513 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10514 # For now, we just catch OSes we know something about -- in the
10515 # future, we'll try test this programmatically.
10516 libltdl_cv_sys_dlopen_deplibs=unknown
10517 case "$host_os" in
10518 aix3*|aix4.1.*|aix4.2.*)
10519 # Unknown whether this is true for these versions of AIX, but
10520 # we want this `case' here to explicitly catch those versions.
10521 libltdl_cv_sys_dlopen_deplibs=unknown
10522 ;;
10523 aix[45]*)
10524 libltdl_cv_sys_dlopen_deplibs=yes
10525 ;;
10526 darwin*)
10527 # Assuming the user has installed a libdl from somewhere, this is true
10528 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10529 libltdl_cv_sys_dlopen_deplibs=yes
10530 ;;
10531 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10532 # GNU and its variants, using gnu ld.so (Glibc)
10533 libltdl_cv_sys_dlopen_deplibs=yes
10534 ;;
10535 hpux10*|hpux11*)
10536 libltdl_cv_sys_dlopen_deplibs=yes
10537 ;;
10538 interix*)
10539 libltdl_cv_sys_dlopen_deplibs=yes
10540 ;;
10541 irix[12345]*|irix6.[01]*)
10542 # Catch all versions of IRIX before 6.2, and indicate that we don't
10543 # know how it worked for any of those versions.
10544 libltdl_cv_sys_dlopen_deplibs=unknown
10545 ;;
10546 irix*)
10547 # The case above catches anything before 6.2, and it's known that
10548 # at 6.2 and later dlopen does load deplibs.
10549 libltdl_cv_sys_dlopen_deplibs=yes
10550 ;;
10551 netbsd*)
10552 libltdl_cv_sys_dlopen_deplibs=yes
10553 ;;
10554 openbsd*)
10555 libltdl_cv_sys_dlopen_deplibs=yes
10556 ;;
10557 osf[1234]*)
10558 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10559 # it did *not* use an RPATH in a shared library to find objects the
10560 # library depends on, so we explicitly say `no'.
10561 libltdl_cv_sys_dlopen_deplibs=no
10562 ;;
10563 osf5.0|osf5.0a|osf5.1)
10564 # dlopen *does* load deplibs and with the right loader patch applied
10565 # it even uses RPATH in a shared library to search for shared objects
10566 # that the library depends on, but there's no easy way to know if that
10567 # patch is installed. Since this is the case, all we can really
10568 # say is unknown -- it depends on the patch being installed. If
10569 # it is, this changes to `yes'. Without it, it would be `no'.
10570 libltdl_cv_sys_dlopen_deplibs=unknown
10571 ;;
10572 osf*)
10573 # the two cases above should catch all versions of osf <= 5.1. Read
10574 # the comments above for what we know about them.
10575 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10576 # is used to find them so we can finally say `yes'.
10577 libltdl_cv_sys_dlopen_deplibs=yes
10578 ;;
10579 solaris*)
10580 libltdl_cv_sys_dlopen_deplibs=yes
10581 ;;
10582 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10583 libltdl_cv_sys_dlopen_deplibs=yes
10584 ;;
10585 esac
10586
10587fi
10588{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10589echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10590if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10591
10592cat >>confdefs.h <<\_ACEOF
10593#define LTDL_DLOPEN_DEPLIBS 1
10594_ACEOF
10595
10596fi
10597
10598
10599for ac_header in argz.h
10600do
10601as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10602if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10605if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10606 echo $ECHO_N "(cached) $ECHO_C" >&6
10607fi
10608ac_res=`eval echo '${'$as_ac_Header'}'`
10609 { echo "$as_me:$LINENO: result: $ac_res" >&5
10610echo "${ECHO_T}$ac_res" >&6; }
10611else
10612 # Is the header compilable?
10613{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10614echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10615cat >conftest.$ac_ext <<_ACEOF
10616/* confdefs.h. */
10617_ACEOF
10618cat confdefs.h >>conftest.$ac_ext
10619cat >>conftest.$ac_ext <<_ACEOF
10620/* end confdefs.h. */
10621$ac_includes_default
10622#include <$ac_header>
10623_ACEOF
10624rm -f conftest.$ac_objext
10625if { (ac_try="$ac_compile"
10626case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10629esac
10630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_compile") 2>conftest.er1
10632 ac_status=$?
10633 grep -v '^ *+' conftest.er1 >conftest.err
10634 rm -f conftest.er1
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } &&
10638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10639 { (case "(($ac_try" in
10640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641 *) ac_try_echo=$ac_try;;
10642esac
10643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644 (eval "$ac_try") 2>&5
10645 ac_status=$?
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; } &&
10648 { ac_try='test -s conftest.$ac_objext'
10649 { (case "(($ac_try" in
10650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10652esac
10653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654 (eval "$ac_try") 2>&5
10655 ac_status=$?
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; }; then
10658 ac_header_compiler=yes
10659else
10660 echo "$as_me: failed program was:" >&5
10661sed 's/^/| /' conftest.$ac_ext >&5
10662
10663 ac_header_compiler=no
10664fi
10665
10666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10667{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10668echo "${ECHO_T}$ac_header_compiler" >&6; }
10669
10670# Is the header present?
10671{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10672echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10673cat >conftest.$ac_ext <<_ACEOF
10674/* confdefs.h. */
10675_ACEOF
10676cat confdefs.h >>conftest.$ac_ext
10677cat >>conftest.$ac_ext <<_ACEOF
10678/* end confdefs.h. */
10679#include <$ac_header>
10680_ACEOF
10681if { (ac_try="$ac_cpp conftest.$ac_ext"
10682case "(($ac_try" in
10683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10684 *) ac_try_echo=$ac_try;;
10685esac
10686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10688 ac_status=$?
10689 grep -v '^ *+' conftest.er1 >conftest.err
10690 rm -f conftest.er1
10691 cat conftest.err >&5
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); } >/dev/null; then
10694 if test -s conftest.err; then
10695 ac_cpp_err=$ac_c_preproc_warn_flag
10696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10697 else
10698 ac_cpp_err=
10699 fi
10700else
10701 ac_cpp_err=yes
10702fi
10703if test -z "$ac_cpp_err"; then
10704 ac_header_preproc=yes
10705else
10706 echo "$as_me: failed program was:" >&5
10707sed 's/^/| /' conftest.$ac_ext >&5
10708
10709 ac_header_preproc=no
10710fi
10711
10712rm -f conftest.err conftest.$ac_ext
10713{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10714echo "${ECHO_T}$ac_header_preproc" >&6; }
10715
10716# So? What about this header?
10717case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10718 yes:no: )
10719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10720echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10722echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10723 ac_header_preproc=yes
10724 ;;
10725 no:yes:* )
10726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10727echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10729echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10731echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10733echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10735echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10737echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10738 ( cat <<\_ASBOX
10739## ------------------------------ ##
10740## Report this to bugs@yourdomain ##
10741## ------------------------------ ##
10742_ASBOX
10743 ) | sed "s/^/$as_me: WARNING: /" >&2
10744 ;;
10745esac
10746{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10748if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10750else
10751 eval "$as_ac_Header=\$ac_header_preproc"
10752fi
10753ac_res=`eval echo '${'$as_ac_Header'}'`
10754 { echo "$as_me:$LINENO: result: $ac_res" >&5
10755echo "${ECHO_T}$ac_res" >&6; }
10756
10757fi
10758if test `eval echo '${'$as_ac_Header'}'` = yes; then
10759 cat >>confdefs.h <<_ACEOF
10760#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10761_ACEOF
10762
10763fi
10764
10765done
10766
10767
10768{ echo "$as_me:$LINENO: checking for error_t" >&5
10769echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10770if test "${ac_cv_type_error_t+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10772else
10773 cat >conftest.$ac_ext <<_ACEOF
10774/* confdefs.h. */
10775_ACEOF
10776cat confdefs.h >>conftest.$ac_ext
10777cat >>conftest.$ac_ext <<_ACEOF
10778/* end confdefs.h. */
10779#if HAVE_ARGZ_H
10780# include <argz.h>
10781#endif
10782
10783typedef error_t ac__type_new_;
10784int
10785main ()
10786{
10787if ((ac__type_new_ *) 0)
10788 return 0;
10789if (sizeof (ac__type_new_))
10790 return 0;
10791 ;
10792 return 0;
10793}
10794_ACEOF
10795rm -f conftest.$ac_objext
10796if { (ac_try="$ac_compile"
10797case "(($ac_try" in
10798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799 *) ac_try_echo=$ac_try;;
10800esac
10801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10802 (eval "$ac_compile") 2>conftest.er1
10803 ac_status=$?
10804 grep -v '^ *+' conftest.er1 >conftest.err
10805 rm -f conftest.er1
10806 cat conftest.err >&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); } &&
10809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10810 { (case "(($ac_try" in
10811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10812 *) ac_try_echo=$ac_try;;
10813esac
10814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10815 (eval "$ac_try") 2>&5
10816 ac_status=$?
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; } &&
10819 { ac_try='test -s conftest.$ac_objext'
10820 { (case "(($ac_try" in
10821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822 *) ac_try_echo=$ac_try;;
10823esac
10824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10825 (eval "$ac_try") 2>&5
10826 ac_status=$?
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; }; then
10829 ac_cv_type_error_t=yes
10830else
10831 echo "$as_me: failed program was:" >&5
10832sed 's/^/| /' conftest.$ac_ext >&5
10833
10834 ac_cv_type_error_t=no
10835fi
10836
10837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10838fi
10839{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10840echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10841if test $ac_cv_type_error_t = yes; then
10842
10843cat >>confdefs.h <<_ACEOF
10844#define HAVE_ERROR_T 1
10845_ACEOF
10846
10847
10848else
10849
10850cat >>confdefs.h <<\_ACEOF
10851#define error_t int
10852_ACEOF
10853
10854fi
10855
10856
10857
10858
10859
10860
10861
10862for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10863do
10864as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10865{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10866echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10867if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10869else
10870 cat >conftest.$ac_ext <<_ACEOF
10871/* confdefs.h. */
10872_ACEOF
10873cat confdefs.h >>conftest.$ac_ext
10874cat >>conftest.$ac_ext <<_ACEOF
10875/* end confdefs.h. */
10876/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10878#define $ac_func innocuous_$ac_func
10879
10880/* System header to define __stub macros and hopefully few prototypes,
10881 which can conflict with char $ac_func (); below.
10882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10883 <limits.h> exists even on freestanding compilers. */
10884
10885#ifdef __STDC__
10886# include <limits.h>
10887#else
10888# include <assert.h>
10889#endif
10890
10891#undef $ac_func
10892
10893/* Override any GCC internal prototype to avoid an error.
10894 Use char because int might match the return type of a GCC
10895 builtin and then its argument prototype would still apply. */
10896#ifdef __cplusplus
10897extern "C"
10898#endif
10899char $ac_func ();
10900/* The GNU C library defines this for functions which it implements
10901 to always fail with ENOSYS. Some functions are actually named
10902 something starting with __ and the normal name is an alias. */
10903#if defined __stub_$ac_func || defined __stub___$ac_func
10904choke me
10905#endif
10906
10907int
10908main ()
10909{
10910return $ac_func ();
10911 ;
10912 return 0;
10913}
10914_ACEOF
10915rm -f conftest.$ac_objext conftest$ac_exeext
10916if { (ac_try="$ac_link"
10917case "(($ac_try" in
10918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10919 *) ac_try_echo=$ac_try;;
10920esac
10921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10922 (eval "$ac_link") 2>conftest.er1
10923 ac_status=$?
10924 grep -v '^ *+' conftest.er1 >conftest.err
10925 rm -f conftest.er1
10926 cat conftest.err >&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); } &&
10929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10930 { (case "(($ac_try" in
10931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10932 *) ac_try_echo=$ac_try;;
10933esac
10934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10935 (eval "$ac_try") 2>&5
10936 ac_status=$?
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; } &&
10939 { ac_try='test -s conftest$ac_exeext'
10940 { (case "(($ac_try" in
10941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10942 *) ac_try_echo=$ac_try;;
10943esac
10944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10945 (eval "$ac_try") 2>&5
10946 ac_status=$?
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; }; then
10949 eval "$as_ac_var=yes"
10950else
10951 echo "$as_me: failed program was:" >&5
10952sed 's/^/| /' conftest.$ac_ext >&5
10953
10954 eval "$as_ac_var=no"
10955fi
10956
10957rm -f core conftest.err conftest.$ac_objext \
10958 conftest$ac_exeext conftest.$ac_ext
10959fi
10960ac_res=`eval echo '${'$as_ac_var'}'`
10961 { echo "$as_me:$LINENO: result: $ac_res" >&5
10962echo "${ECHO_T}$ac_res" >&6; }
10963if test `eval echo '${'$as_ac_var'}'` = yes; then
10964 cat >>confdefs.h <<_ACEOF
10965#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10966_ACEOF
10967
10968fi
10969done
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10999 stdio.h unistd.h
11000do
11001as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11002if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11005if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11007fi
11008ac_res=`eval echo '${'$as_ac_Header'}'`
11009 { echo "$as_me:$LINENO: result: $ac_res" >&5
11010echo "${ECHO_T}$ac_res" >&6; }
11011else
11012 # Is the header compilable?
11013{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11014echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11015cat >conftest.$ac_ext <<_ACEOF
11016/* confdefs.h. */
11017_ACEOF
11018cat confdefs.h >>conftest.$ac_ext
11019cat >>conftest.$ac_ext <<_ACEOF
11020/* end confdefs.h. */
11021$ac_includes_default
11022#include <$ac_header>
11023_ACEOF
11024rm -f conftest.$ac_objext
11025if { (ac_try="$ac_compile"
11026case "(($ac_try" in
11027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028 *) ac_try_echo=$ac_try;;
11029esac
11030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031 (eval "$ac_compile") 2>conftest.er1
11032 ac_status=$?
11033 grep -v '^ *+' conftest.er1 >conftest.err
11034 rm -f conftest.er1
11035 cat conftest.err >&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } &&
11038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11039 { (case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11042esac
11043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_try") 2>&5
11045 ac_status=$?
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; } &&
11048 { ac_try='test -s conftest.$ac_objext'
11049 { (case "(($ac_try" in
11050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11051 *) ac_try_echo=$ac_try;;
11052esac
11053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11054 (eval "$ac_try") 2>&5
11055 ac_status=$?
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); }; }; then
11058 ac_header_compiler=yes
11059else
11060 echo "$as_me: failed program was:" >&5
11061sed 's/^/| /' conftest.$ac_ext >&5
11062
11063 ac_header_compiler=no
11064fi
11065
11066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11067{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11068echo "${ECHO_T}$ac_header_compiler" >&6; }
11069
11070# Is the header present?
11071{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11072echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11073cat >conftest.$ac_ext <<_ACEOF
11074/* confdefs.h. */
11075_ACEOF
11076cat confdefs.h >>conftest.$ac_ext
11077cat >>conftest.$ac_ext <<_ACEOF
11078/* end confdefs.h. */
11079#include <$ac_header>
11080_ACEOF
11081if { (ac_try="$ac_cpp conftest.$ac_ext"
11082case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11085esac
11086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11088 ac_status=$?
11089 grep -v '^ *+' conftest.er1 >conftest.err
11090 rm -f conftest.er1
11091 cat conftest.err >&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } >/dev/null; then
11094 if test -s conftest.err; then
11095 ac_cpp_err=$ac_c_preproc_warn_flag
11096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11097 else
11098 ac_cpp_err=
11099 fi
11100else
11101 ac_cpp_err=yes
11102fi
11103if test -z "$ac_cpp_err"; then
11104 ac_header_preproc=yes
11105else
11106 echo "$as_me: failed program was:" >&5
11107sed 's/^/| /' conftest.$ac_ext >&5
11108
11109 ac_header_preproc=no
11110fi
11111
11112rm -f conftest.err conftest.$ac_ext
11113{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11114echo "${ECHO_T}$ac_header_preproc" >&6; }
11115
11116# So? What about this header?
11117case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11118 yes:no: )
11119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11120echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11122echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11123 ac_header_preproc=yes
11124 ;;
11125 no:yes:* )
11126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11127echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11129echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11131echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11133echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11135echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11137echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11138 ( cat <<\_ASBOX
11139## ------------------------------ ##
11140## Report this to bugs@yourdomain ##
11141## ------------------------------ ##
11142_ASBOX
11143 ) | sed "s/^/$as_me: WARNING: /" >&2
11144 ;;
11145esac
11146{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11149 echo $ECHO_N "(cached) $ECHO_C" >&6
11150else
11151 eval "$as_ac_Header=\$ac_header_preproc"
11152fi
11153ac_res=`eval echo '${'$as_ac_Header'}'`
11154 { echo "$as_me:$LINENO: result: $ac_res" >&5
11155echo "${ECHO_T}$ac_res" >&6; }
11156
11157fi
11158if test `eval echo '${'$as_ac_Header'}'` = yes; then
11159 cat >>confdefs.h <<_ACEOF
11160#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11161_ACEOF
11162
11163fi
11164
11165done
11166
11167
11168
11169
11170
11171for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11172do
11173as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11174if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11175 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11176echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11177if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11178 echo $ECHO_N "(cached) $ECHO_C" >&6
11179fi
11180ac_res=`eval echo '${'$as_ac_Header'}'`
11181 { echo "$as_me:$LINENO: result: $ac_res" >&5
11182echo "${ECHO_T}$ac_res" >&6; }
11183else
11184 # Is the header compilable?
11185{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11186echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11187cat >conftest.$ac_ext <<_ACEOF
11188/* confdefs.h. */
11189_ACEOF
11190cat confdefs.h >>conftest.$ac_ext
11191cat >>conftest.$ac_ext <<_ACEOF
11192/* end confdefs.h. */
11193$ac_includes_default
11194#include <$ac_header>
11195_ACEOF
11196rm -f conftest.$ac_objext
11197if { (ac_try="$ac_compile"
11198case "(($ac_try" in
11199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200 *) ac_try_echo=$ac_try;;
11201esac
11202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203 (eval "$ac_compile") 2>conftest.er1
11204 ac_status=$?
11205 grep -v '^ *+' conftest.er1 >conftest.err
11206 rm -f conftest.er1
11207 cat conftest.err >&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } &&
11210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11211 { (case "(($ac_try" in
11212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213 *) ac_try_echo=$ac_try;;
11214esac
11215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216 (eval "$ac_try") 2>&5
11217 ac_status=$?
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); }; } &&
11220 { ac_try='test -s conftest.$ac_objext'
11221 { (case "(($ac_try" in
11222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223 *) ac_try_echo=$ac_try;;
11224esac
11225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226 (eval "$ac_try") 2>&5
11227 ac_status=$?
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; }; then
11230 ac_header_compiler=yes
11231else
11232 echo "$as_me: failed program was:" >&5
11233sed 's/^/| /' conftest.$ac_ext >&5
11234
11235 ac_header_compiler=no
11236fi
11237
11238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11239{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11240echo "${ECHO_T}$ac_header_compiler" >&6; }
11241
11242# Is the header present?
11243{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11244echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11245cat >conftest.$ac_ext <<_ACEOF
11246/* confdefs.h. */
11247_ACEOF
11248cat confdefs.h >>conftest.$ac_ext
11249cat >>conftest.$ac_ext <<_ACEOF
11250/* end confdefs.h. */
11251#include <$ac_header>
11252_ACEOF
11253if { (ac_try="$ac_cpp conftest.$ac_ext"
11254case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11257esac
11258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11260 ac_status=$?
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } >/dev/null; then
11266 if test -s conftest.err; then
11267 ac_cpp_err=$ac_c_preproc_warn_flag
11268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11269 else
11270 ac_cpp_err=
11271 fi
11272else
11273 ac_cpp_err=yes
11274fi
11275if test -z "$ac_cpp_err"; then
11276 ac_header_preproc=yes
11277else
11278 echo "$as_me: failed program was:" >&5
11279sed 's/^/| /' conftest.$ac_ext >&5
11280
11281 ac_header_preproc=no
11282fi
11283
11284rm -f conftest.err conftest.$ac_ext
11285{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11286echo "${ECHO_T}$ac_header_preproc" >&6; }
11287
11288# So? What about this header?
11289case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11290 yes:no: )
11291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11292echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11294echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11295 ac_header_preproc=yes
11296 ;;
11297 no:yes:* )
11298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11299echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11301echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11303echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11305echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11307echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11309echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11310 ( cat <<\_ASBOX
11311## ------------------------------ ##
11312## Report this to bugs@yourdomain ##
11313## ------------------------------ ##
11314_ASBOX
11315 ) | sed "s/^/$as_me: WARNING: /" >&2
11316 ;;
11317esac
11318{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11320if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11321 echo $ECHO_N "(cached) $ECHO_C" >&6
11322else
11323 eval "$as_ac_Header=\$ac_header_preproc"
11324fi
11325ac_res=`eval echo '${'$as_ac_Header'}'`
11326 { echo "$as_me:$LINENO: result: $ac_res" >&5
11327echo "${ECHO_T}$ac_res" >&6; }
11328
11329fi
11330if test `eval echo '${'$as_ac_Header'}'` = yes; then
11331 cat >>confdefs.h <<_ACEOF
11332#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11333_ACEOF
11334
11335fi
11336
11337done
11338
11339
11340
11341for ac_header in string.h strings.h
11342do
11343as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11344if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11346echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11347if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11349fi
11350ac_res=`eval echo '${'$as_ac_Header'}'`
11351 { echo "$as_me:$LINENO: result: $ac_res" >&5
11352echo "${ECHO_T}$ac_res" >&6; }
11353else
11354 # Is the header compilable?
11355{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11356echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11357cat >conftest.$ac_ext <<_ACEOF
11358/* confdefs.h. */
11359_ACEOF
11360cat confdefs.h >>conftest.$ac_ext
11361cat >>conftest.$ac_ext <<_ACEOF
11362/* end confdefs.h. */
11363$ac_includes_default
11364#include <$ac_header>
11365_ACEOF
11366rm -f conftest.$ac_objext
11367if { (ac_try="$ac_compile"
11368case "(($ac_try" in
11369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370 *) ac_try_echo=$ac_try;;
11371esac
11372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11373 (eval "$ac_compile") 2>conftest.er1
11374 ac_status=$?
11375 grep -v '^ *+' conftest.er1 >conftest.err
11376 rm -f conftest.er1
11377 cat conftest.err >&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); } &&
11380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11381 { (case "(($ac_try" in
11382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383 *) ac_try_echo=$ac_try;;
11384esac
11385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386 (eval "$ac_try") 2>&5
11387 ac_status=$?
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; } &&
11390 { ac_try='test -s conftest.$ac_objext'
11391 { (case "(($ac_try" in
11392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11393 *) ac_try_echo=$ac_try;;
11394esac
11395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11396 (eval "$ac_try") 2>&5
11397 ac_status=$?
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; }; then
11400 ac_header_compiler=yes
11401else
11402 echo "$as_me: failed program was:" >&5
11403sed 's/^/| /' conftest.$ac_ext >&5
11404
11405 ac_header_compiler=no
11406fi
11407
11408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11409{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11410echo "${ECHO_T}$ac_header_compiler" >&6; }
11411
11412# Is the header present?
11413{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11414echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11415cat >conftest.$ac_ext <<_ACEOF
11416/* confdefs.h. */
11417_ACEOF
11418cat confdefs.h >>conftest.$ac_ext
11419cat >>conftest.$ac_ext <<_ACEOF
11420/* end confdefs.h. */
11421#include <$ac_header>
11422_ACEOF
11423if { (ac_try="$ac_cpp conftest.$ac_ext"
11424case "(($ac_try" in
11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426 *) ac_try_echo=$ac_try;;
11427esac
11428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11430 ac_status=$?
11431 grep -v '^ *+' conftest.er1 >conftest.err
11432 rm -f conftest.er1
11433 cat conftest.err >&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); } >/dev/null; then
11436 if test -s conftest.err; then
11437 ac_cpp_err=$ac_c_preproc_warn_flag
11438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11439 else
11440 ac_cpp_err=
11441 fi
11442else
11443 ac_cpp_err=yes
11444fi
11445if test -z "$ac_cpp_err"; then
11446 ac_header_preproc=yes
11447else
11448 echo "$as_me: failed program was:" >&5
11449sed 's/^/| /' conftest.$ac_ext >&5
11450
11451 ac_header_preproc=no
11452fi
11453
11454rm -f conftest.err conftest.$ac_ext
11455{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11456echo "${ECHO_T}$ac_header_preproc" >&6; }
11457
11458# So? What about this header?
11459case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11460 yes:no: )
11461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11462echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11464echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11465 ac_header_preproc=yes
11466 ;;
11467 no:yes:* )
11468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11469echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11471echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11473echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11475echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11477echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11479echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11480 ( cat <<\_ASBOX
11481## ------------------------------ ##
11482## Report this to bugs@yourdomain ##
11483## ------------------------------ ##
11484_ASBOX
11485 ) | sed "s/^/$as_me: WARNING: /" >&2
11486 ;;
11487esac
11488{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11490if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11491 echo $ECHO_N "(cached) $ECHO_C" >&6
11492else
11493 eval "$as_ac_Header=\$ac_header_preproc"
11494fi
11495ac_res=`eval echo '${'$as_ac_Header'}'`
11496 { echo "$as_me:$LINENO: result: $ac_res" >&5
11497echo "${ECHO_T}$ac_res" >&6; }
11498
11499fi
11500if test `eval echo '${'$as_ac_Header'}'` = yes; then
11501 cat >>confdefs.h <<_ACEOF
11502#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11503_ACEOF
11504 break
11505fi
11506
11507done
11508
11509
11510
11511
11512for ac_func in strchr index
11513do
11514as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11515{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11516echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11517if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11518 echo $ECHO_N "(cached) $ECHO_C" >&6
11519else
11520 cat >conftest.$ac_ext <<_ACEOF
11521/* confdefs.h. */
11522_ACEOF
11523cat confdefs.h >>conftest.$ac_ext
11524cat >>conftest.$ac_ext <<_ACEOF
11525/* end confdefs.h. */
11526/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11528#define $ac_func innocuous_$ac_func
11529
11530/* System header to define __stub macros and hopefully few prototypes,
11531 which can conflict with char $ac_func (); below.
11532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11533 <limits.h> exists even on freestanding compilers. */
11534
11535#ifdef __STDC__
11536# include <limits.h>
11537#else
11538# include <assert.h>
11539#endif
11540
11541#undef $ac_func
11542
11543/* Override any GCC internal prototype to avoid an error.
11544 Use char because int might match the return type of a GCC
11545 builtin and then its argument prototype would still apply. */
11546#ifdef __cplusplus
11547extern "C"
11548#endif
11549char $ac_func ();
11550/* The GNU C library defines this for functions which it implements
11551 to always fail with ENOSYS. Some functions are actually named
11552 something starting with __ and the normal name is an alias. */
11553#if defined __stub_$ac_func || defined __stub___$ac_func
11554choke me
11555#endif
11556
11557int
11558main ()
11559{
11560return $ac_func ();
11561 ;
11562 return 0;
11563}
11564_ACEOF
11565rm -f conftest.$ac_objext conftest$ac_exeext
11566if { (ac_try="$ac_link"
11567case "(($ac_try" in
11568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11569 *) ac_try_echo=$ac_try;;
11570esac
11571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11572 (eval "$ac_link") 2>conftest.er1
11573 ac_status=$?
11574 grep -v '^ *+' conftest.er1 >conftest.err
11575 rm -f conftest.er1
11576 cat conftest.err >&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); } &&
11579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11580 { (case "(($ac_try" in
11581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11582 *) ac_try_echo=$ac_try;;
11583esac
11584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11585 (eval "$ac_try") 2>&5
11586 ac_status=$?
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; } &&
11589 { ac_try='test -s conftest$ac_exeext'
11590 { (case "(($ac_try" in
11591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11592 *) ac_try_echo=$ac_try;;
11593esac
11594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11595 (eval "$ac_try") 2>&5
11596 ac_status=$?
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; }; then
11599 eval "$as_ac_var=yes"
11600else
11601 echo "$as_me: failed program was:" >&5
11602sed 's/^/| /' conftest.$ac_ext >&5
11603
11604 eval "$as_ac_var=no"
11605fi
11606
11607rm -f core conftest.err conftest.$ac_objext \
11608 conftest$ac_exeext conftest.$ac_ext
11609fi
11610ac_res=`eval echo '${'$as_ac_var'}'`
11611 { echo "$as_me:$LINENO: result: $ac_res" >&5
11612echo "${ECHO_T}$ac_res" >&6; }
11613if test `eval echo '${'$as_ac_var'}'` = yes; then
11614 cat >>confdefs.h <<_ACEOF
11615#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11616_ACEOF
11617 break
11618fi
11619done
11620
11621
11622
11623for ac_func in strrchr rindex
11624do
11625as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11626{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11627echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11628if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11630else
11631 cat >conftest.$ac_ext <<_ACEOF
11632/* confdefs.h. */
11633_ACEOF
11634cat confdefs.h >>conftest.$ac_ext
11635cat >>conftest.$ac_ext <<_ACEOF
11636/* end confdefs.h. */
11637/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11639#define $ac_func innocuous_$ac_func
11640
11641/* System header to define __stub macros and hopefully few prototypes,
11642 which can conflict with char $ac_func (); below.
11643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11644 <limits.h> exists even on freestanding compilers. */
11645
11646#ifdef __STDC__
11647# include <limits.h>
11648#else
11649# include <assert.h>
11650#endif
11651
11652#undef $ac_func
11653
11654/* Override any GCC internal prototype to avoid an error.
11655 Use char because int might match the return type of a GCC
11656 builtin and then its argument prototype would still apply. */
11657#ifdef __cplusplus
11658extern "C"
11659#endif
11660char $ac_func ();
11661/* The GNU C library defines this for functions which it implements
11662 to always fail with ENOSYS. Some functions are actually named
11663 something starting with __ and the normal name is an alias. */
11664#if defined __stub_$ac_func || defined __stub___$ac_func
11665choke me
11666#endif
11667
11668int
11669main ()
11670{
11671return $ac_func ();
11672 ;
11673 return 0;
11674}
11675_ACEOF
11676rm -f conftest.$ac_objext conftest$ac_exeext
11677if { (ac_try="$ac_link"
11678case "(($ac_try" in
11679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680 *) ac_try_echo=$ac_try;;
11681esac
11682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683 (eval "$ac_link") 2>conftest.er1
11684 ac_status=$?
11685 grep -v '^ *+' conftest.er1 >conftest.err
11686 rm -f conftest.er1
11687 cat conftest.err >&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } &&
11690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11691 { (case "(($ac_try" in
11692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693 *) ac_try_echo=$ac_try;;
11694esac
11695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11696 (eval "$ac_try") 2>&5
11697 ac_status=$?
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; } &&
11700 { ac_try='test -s conftest$ac_exeext'
11701 { (case "(($ac_try" in
11702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703 *) ac_try_echo=$ac_try;;
11704esac
11705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706 (eval "$ac_try") 2>&5
11707 ac_status=$?
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; }; then
11710 eval "$as_ac_var=yes"
11711else
11712 echo "$as_me: failed program was:" >&5
11713sed 's/^/| /' conftest.$ac_ext >&5
11714
11715 eval "$as_ac_var=no"
11716fi
11717
11718rm -f core conftest.err conftest.$ac_objext \
11719 conftest$ac_exeext conftest.$ac_ext
11720fi
11721ac_res=`eval echo '${'$as_ac_var'}'`
11722 { echo "$as_me:$LINENO: result: $ac_res" >&5
11723echo "${ECHO_T}$ac_res" >&6; }
11724if test `eval echo '${'$as_ac_var'}'` = yes; then
11725 cat >>confdefs.h <<_ACEOF
11726#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11727_ACEOF
11728 break
11729fi
11730done
11731
11732
11733
11734for ac_func in memcpy bcopy
11735do
11736as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11737{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11738echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11739if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11740 echo $ECHO_N "(cached) $ECHO_C" >&6
11741else
11742 cat >conftest.$ac_ext <<_ACEOF
11743/* confdefs.h. */
11744_ACEOF
11745cat confdefs.h >>conftest.$ac_ext
11746cat >>conftest.$ac_ext <<_ACEOF
11747/* end confdefs.h. */
11748/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11750#define $ac_func innocuous_$ac_func
11751
11752/* System header to define __stub macros and hopefully few prototypes,
11753 which can conflict with char $ac_func (); below.
11754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11755 <limits.h> exists even on freestanding compilers. */
11756
11757#ifdef __STDC__
11758# include <limits.h>
11759#else
11760# include <assert.h>
11761#endif
11762
11763#undef $ac_func
11764
11765/* Override any GCC internal prototype to avoid an error.
11766 Use char because int might match the return type of a GCC
11767 builtin and then its argument prototype would still apply. */
11768#ifdef __cplusplus
11769extern "C"
11770#endif
11771char $ac_func ();
11772/* The GNU C library defines this for functions which it implements
11773 to always fail with ENOSYS. Some functions are actually named
11774 something starting with __ and the normal name is an alias. */
11775#if defined __stub_$ac_func || defined __stub___$ac_func
11776choke me
11777#endif
11778
11779int
11780main ()
11781{
11782return $ac_func ();
11783 ;
11784 return 0;
11785}
11786_ACEOF
11787rm -f conftest.$ac_objext conftest$ac_exeext
11788if { (ac_try="$ac_link"
11789case "(($ac_try" in
11790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11791 *) ac_try_echo=$ac_try;;
11792esac
11793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11794 (eval "$ac_link") 2>conftest.er1
11795 ac_status=$?
11796 grep -v '^ *+' conftest.er1 >conftest.err
11797 rm -f conftest.er1
11798 cat conftest.err >&5
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); } &&
11801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11802 { (case "(($ac_try" in
11803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11804 *) ac_try_echo=$ac_try;;
11805esac
11806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11807 (eval "$ac_try") 2>&5
11808 ac_status=$?
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; } &&
11811 { ac_try='test -s conftest$ac_exeext'
11812 { (case "(($ac_try" in
11813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814 *) ac_try_echo=$ac_try;;
11815esac
11816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817 (eval "$ac_try") 2>&5
11818 ac_status=$?
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; }; then
11821 eval "$as_ac_var=yes"
11822else
11823 echo "$as_me: failed program was:" >&5
11824sed 's/^/| /' conftest.$ac_ext >&5
11825
11826 eval "$as_ac_var=no"
11827fi
11828
11829rm -f core conftest.err conftest.$ac_objext \
11830 conftest$ac_exeext conftest.$ac_ext
11831fi
11832ac_res=`eval echo '${'$as_ac_var'}'`
11833 { echo "$as_me:$LINENO: result: $ac_res" >&5
11834echo "${ECHO_T}$ac_res" >&6; }
11835if test `eval echo '${'$as_ac_var'}'` = yes; then
11836 cat >>confdefs.h <<_ACEOF
11837#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11838_ACEOF
11839 break
11840fi
11841done
11842
11843
11844
11845for ac_func in memmove strcmp
11846do
11847as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11848{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11849echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11850if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
11852else
11853 cat >conftest.$ac_ext <<_ACEOF
11854/* confdefs.h. */
11855_ACEOF
11856cat confdefs.h >>conftest.$ac_ext
11857cat >>conftest.$ac_ext <<_ACEOF
11858/* end confdefs.h. */
11859/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11861#define $ac_func innocuous_$ac_func
11862
11863/* System header to define __stub macros and hopefully few prototypes,
11864 which can conflict with char $ac_func (); below.
11865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11866 <limits.h> exists even on freestanding compilers. */
11867
11868#ifdef __STDC__
11869# include <limits.h>
11870#else
11871# include <assert.h>
11872#endif
11873
11874#undef $ac_func
11875
11876/* Override any GCC internal prototype to avoid an error.
11877 Use char because int might match the return type of a GCC
11878 builtin and then its argument prototype would still apply. */
11879#ifdef __cplusplus
11880extern "C"
11881#endif
11882char $ac_func ();
11883/* The GNU C library defines this for functions which it implements
11884 to always fail with ENOSYS. Some functions are actually named
11885 something starting with __ and the normal name is an alias. */
11886#if defined __stub_$ac_func || defined __stub___$ac_func
11887choke me
11888#endif
11889
11890int
11891main ()
11892{
11893return $ac_func ();
11894 ;
11895 return 0;
11896}
11897_ACEOF
11898rm -f conftest.$ac_objext conftest$ac_exeext
11899if { (ac_try="$ac_link"
11900case "(($ac_try" in
11901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11902 *) ac_try_echo=$ac_try;;
11903esac
11904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11905 (eval "$ac_link") 2>conftest.er1
11906 ac_status=$?
11907 grep -v '^ *+' conftest.er1 >conftest.err
11908 rm -f conftest.er1
11909 cat conftest.err >&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } &&
11912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11913 { (case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11916esac
11917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918 (eval "$ac_try") 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; } &&
11922 { ac_try='test -s conftest$ac_exeext'
11923 { (case "(($ac_try" in
11924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925 *) ac_try_echo=$ac_try;;
11926esac
11927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928 (eval "$ac_try") 2>&5
11929 ac_status=$?
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; }; then
11932 eval "$as_ac_var=yes"
11933else
11934 echo "$as_me: failed program was:" >&5
11935sed 's/^/| /' conftest.$ac_ext >&5
11936
11937 eval "$as_ac_var=no"
11938fi
11939
11940rm -f core conftest.err conftest.$ac_objext \
11941 conftest$ac_exeext conftest.$ac_ext
11942fi
11943ac_res=`eval echo '${'$as_ac_var'}'`
11944 { echo "$as_me:$LINENO: result: $ac_res" >&5
11945echo "${ECHO_T}$ac_res" >&6; }
11946if test `eval echo '${'$as_ac_var'}'` = yes; then
11947 cat >>confdefs.h <<_ACEOF
11948#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11949_ACEOF
11950
11951fi
11952done
11953
11954
11955
11956
11957for ac_func in closedir opendir readdir
11958do
11959as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11960{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11961echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11962if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11963 echo $ECHO_N "(cached) $ECHO_C" >&6
11964else
11965 cat >conftest.$ac_ext <<_ACEOF
11966/* confdefs.h. */
11967_ACEOF
11968cat confdefs.h >>conftest.$ac_ext
11969cat >>conftest.$ac_ext <<_ACEOF
11970/* end confdefs.h. */
11971/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11973#define $ac_func innocuous_$ac_func
11974
11975/* System header to define __stub macros and hopefully few prototypes,
11976 which can conflict with char $ac_func (); below.
11977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11978 <limits.h> exists even on freestanding compilers. */
11979
11980#ifdef __STDC__
11981# include <limits.h>
11982#else
11983# include <assert.h>
11984#endif
11985
11986#undef $ac_func
11987
11988/* Override any GCC internal prototype to avoid an error.
11989 Use char because int might match the return type of a GCC
11990 builtin and then its argument prototype would still apply. */
11991#ifdef __cplusplus
11992extern "C"
11993#endif
11994char $ac_func ();
11995/* The GNU C library defines this for functions which it implements
11996 to always fail with ENOSYS. Some functions are actually named
11997 something starting with __ and the normal name is an alias. */
11998#if defined __stub_$ac_func || defined __stub___$ac_func
11999choke me
12000#endif
12001
12002int
12003main ()
12004{
12005return $ac_func ();
12006 ;
12007 return 0;
12008}
12009_ACEOF
12010rm -f conftest.$ac_objext conftest$ac_exeext
12011if { (ac_try="$ac_link"
12012case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12015esac
12016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017 (eval "$ac_link") 2>conftest.er1
12018 ac_status=$?
12019 grep -v '^ *+' conftest.er1 >conftest.err
12020 rm -f conftest.er1
12021 cat conftest.err >&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); } &&
12024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12025 { (case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12028esac
12029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030 (eval "$ac_try") 2>&5
12031 ac_status=$?
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; } &&
12034 { ac_try='test -s conftest$ac_exeext'
12035 { (case "(($ac_try" in
12036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12037 *) ac_try_echo=$ac_try;;
12038esac
12039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12040 (eval "$ac_try") 2>&5
12041 ac_status=$?
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; }; then
12044 eval "$as_ac_var=yes"
12045else
12046 echo "$as_me: failed program was:" >&5
12047sed 's/^/| /' conftest.$ac_ext >&5
12048
12049 eval "$as_ac_var=no"
12050fi
12051
12052rm -f core conftest.err conftest.$ac_objext \
12053 conftest$ac_exeext conftest.$ac_ext
12054fi
12055ac_res=`eval echo '${'$as_ac_var'}'`
12056 { echo "$as_me:$LINENO: result: $ac_res" >&5
12057echo "${ECHO_T}$ac_res" >&6; }
12058if test `eval echo '${'$as_ac_var'}'` = yes; then
12059 cat >>confdefs.h <<_ACEOF
12060#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12061_ACEOF
12062
12063fi
12064done
12065
12066
12067
12068{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12069echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12070
12071ICC=no
12072IXX=no
12073case $CC in
12074 icc*|icpc*)
12075 ICC=yes
12076 IXX=yes
12077 ;;
12078 *)
12079 ;;
12080esac
12081
12082if test "$GCC" != "yes" && test "$ICC" != "yes"
12083then
12084 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12085echo "$as_me: error: gcc|icc required but not found" >&2;}
12086 { (exit 1); exit 1; }; }
12087fi
12088
12089if test "$GXX" != "yes" && test "$IXX" != "yes"
12090then
12091 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12092echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12093 { (exit 1); exit 1; }; }
12094fi
12095
12096if test "$GCC" = "yes"
12097then
12098 cat >conftest.$ac_ext <<_ACEOF
12099#if !defined(__GNUC__) || __GNUC__ < 3
12100#error Unsupported GCC version
12101#endif
12102
12103_ACEOF
12104rm -f conftest.$ac_objext
12105if { (ac_try="$ac_compile"
12106case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12109esac
12110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111 (eval "$ac_compile") 2>conftest.er1
12112 ac_status=$?
12113 grep -v '^ *+' conftest.er1 >conftest.err
12114 rm -f conftest.er1
12115 cat conftest.err >&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } &&
12118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12119 { (case "(($ac_try" in
12120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121 *) ac_try_echo=$ac_try;;
12122esac
12123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124 (eval "$ac_try") 2>&5
12125 ac_status=$?
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; } &&
12128 { ac_try='test -s conftest.$ac_objext'
12129 { (case "(($ac_try" in
12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131 *) ac_try_echo=$ac_try;;
12132esac
12133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134 (eval "$ac_try") 2>&5
12135 ac_status=$?
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; }; then
12138 :
12139else
12140 echo "$as_me: failed program was:" >&5
12141sed 's/^/| /' conftest.$ac_ext >&5
12142
12143 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12144echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12145 { (exit 1); exit 1; }; }
12146fi
12147
12148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12149fi
12150
12151if test -z "$llvm_cv_gnu_make_command"
12152then
12153 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12154echo "$as_me: error: GNU Make required but not found" >&2;}
12155 { (exit 1); exit 1; }; }
12156fi
12157
12158{ echo "$as_me:$LINENO: result: ok" >&5
12159echo "${ECHO_T}ok" >&6; }
12160
12161{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12162echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12163NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12164
12165NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12166
12167{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12168echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12169
12170
12171
12172{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12173echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12174if test "${ac_cv_lib_m_sin+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12176else
12177 ac_check_lib_save_LIBS=$LIBS
12178LIBS="-lm $LIBS"
12179cat >conftest.$ac_ext <<_ACEOF
12180/* confdefs.h. */
12181_ACEOF
12182cat confdefs.h >>conftest.$ac_ext
12183cat >>conftest.$ac_ext <<_ACEOF
12184/* end confdefs.h. */
12185
12186/* Override any GCC internal prototype to avoid an error.
12187 Use char because int might match the return type of a GCC
12188 builtin and then its argument prototype would still apply. */
12189#ifdef __cplusplus
12190extern "C"
12191#endif
12192char sin ();
12193int
12194main ()
12195{
12196return sin ();
12197 ;
12198 return 0;
12199}
12200_ACEOF
12201rm -f conftest.$ac_objext conftest$ac_exeext
12202if { (ac_try="$ac_link"
12203case "(($ac_try" in
12204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205 *) ac_try_echo=$ac_try;;
12206esac
12207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208 (eval "$ac_link") 2>conftest.er1
12209 ac_status=$?
12210 grep -v '^ *+' conftest.er1 >conftest.err
12211 rm -f conftest.er1
12212 cat conftest.err >&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } &&
12215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12216 { (case "(($ac_try" in
12217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218 *) ac_try_echo=$ac_try;;
12219esac
12220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221 (eval "$ac_try") 2>&5
12222 ac_status=$?
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; } &&
12225 { ac_try='test -s conftest$ac_exeext'
12226 { (case "(($ac_try" in
12227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12228 *) ac_try_echo=$ac_try;;
12229esac
12230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231 (eval "$ac_try") 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
12235 ac_cv_lib_m_sin=yes
12236else
12237 echo "$as_me: failed program was:" >&5
12238sed 's/^/| /' conftest.$ac_ext >&5
12239
12240 ac_cv_lib_m_sin=no
12241fi
12242
12243rm -f core conftest.err conftest.$ac_objext \
12244 conftest$ac_exeext conftest.$ac_ext
12245LIBS=$ac_check_lib_save_LIBS
12246fi
12247{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12248echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12249if test $ac_cv_lib_m_sin = yes; then
12250 cat >>confdefs.h <<_ACEOF
12251#define HAVE_LIBM 1
12252_ACEOF
12253
12254 LIBS="-lm $LIBS"
12255
12256fi
12257
12258if test "$llvm_cv_os_type" = "MingW" ; then
12259
12260{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12261echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12262if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12264else
12265 ac_check_lib_save_LIBS=$LIBS
12266LIBS="-limagehlp $LIBS"
12267cat >conftest.$ac_ext <<_ACEOF
12268/* confdefs.h. */
12269_ACEOF
12270cat confdefs.h >>conftest.$ac_ext
12271cat >>conftest.$ac_ext <<_ACEOF
12272/* end confdefs.h. */
12273
12274
12275int
12276main ()
12277{
12278return main ();
12279 ;
12280 return 0;
12281}
12282_ACEOF
12283rm -f conftest.$ac_objext conftest$ac_exeext
12284if { (ac_try="$ac_link"
12285case "(($ac_try" in
12286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12287 *) ac_try_echo=$ac_try;;
12288esac
12289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12290 (eval "$ac_link") 2>conftest.er1
12291 ac_status=$?
12292 grep -v '^ *+' conftest.er1 >conftest.err
12293 rm -f conftest.er1
12294 cat conftest.err >&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } &&
12297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12298 { (case "(($ac_try" in
12299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12301esac
12302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303 (eval "$ac_try") 2>&5
12304 ac_status=$?
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; } &&
12307 { ac_try='test -s conftest$ac_exeext'
12308 { (case "(($ac_try" in
12309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310 *) ac_try_echo=$ac_try;;
12311esac
12312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313 (eval "$ac_try") 2>&5
12314 ac_status=$?
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; }; then
12317 ac_cv_lib_imagehlp_main=yes
12318else
12319 echo "$as_me: failed program was:" >&5
12320sed 's/^/| /' conftest.$ac_ext >&5
12321
12322 ac_cv_lib_imagehlp_main=no
12323fi
12324
12325rm -f core conftest.err conftest.$ac_objext \
12326 conftest$ac_exeext conftest.$ac_ext
12327LIBS=$ac_check_lib_save_LIBS
12328fi
12329{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12330echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12331if test $ac_cv_lib_imagehlp_main = yes; then
12332 cat >>confdefs.h <<_ACEOF
12333#define HAVE_LIBIMAGEHLP 1
12334_ACEOF
12335
12336 LIBS="-limagehlp $LIBS"
12337
12338fi
12339
12340
12341{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12342echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12343if test "${ac_cv_lib_psapi_main+set}" = set; then
12344 echo $ECHO_N "(cached) $ECHO_C" >&6
12345else
12346 ac_check_lib_save_LIBS=$LIBS
12347LIBS="-lpsapi $LIBS"
12348cat >conftest.$ac_ext <<_ACEOF
12349/* confdefs.h. */
12350_ACEOF
12351cat confdefs.h >>conftest.$ac_ext
12352cat >>conftest.$ac_ext <<_ACEOF
12353/* end confdefs.h. */
12354
12355
12356int
12357main ()
12358{
12359return main ();
12360 ;
12361 return 0;
12362}
12363_ACEOF
12364rm -f conftest.$ac_objext conftest$ac_exeext
12365if { (ac_try="$ac_link"
12366case "(($ac_try" in
12367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368 *) ac_try_echo=$ac_try;;
12369esac
12370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12371 (eval "$ac_link") 2>conftest.er1
12372 ac_status=$?
12373 grep -v '^ *+' conftest.er1 >conftest.err
12374 rm -f conftest.er1
12375 cat conftest.err >&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); } &&
12378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12379 { (case "(($ac_try" in
12380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381 *) ac_try_echo=$ac_try;;
12382esac
12383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384 (eval "$ac_try") 2>&5
12385 ac_status=$?
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }; } &&
12388 { ac_try='test -s conftest$ac_exeext'
12389 { (case "(($ac_try" in
12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391 *) ac_try_echo=$ac_try;;
12392esac
12393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394 (eval "$ac_try") 2>&5
12395 ac_status=$?
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; }; then
12398 ac_cv_lib_psapi_main=yes
12399else
12400 echo "$as_me: failed program was:" >&5
12401sed 's/^/| /' conftest.$ac_ext >&5
12402
12403 ac_cv_lib_psapi_main=no
12404fi
12405
12406rm -f core conftest.err conftest.$ac_objext \
12407 conftest$ac_exeext conftest.$ac_ext
12408LIBS=$ac_check_lib_save_LIBS
12409fi
12410{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12411echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12412if test $ac_cv_lib_psapi_main = yes; then
12413 cat >>confdefs.h <<_ACEOF
12414#define HAVE_LIBPSAPI 1
12415_ACEOF
12416
12417 LIBS="-lpsapi $LIBS"
12418
12419fi
12420
12421fi
12422
12423{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12424echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12425if test "${ac_cv_search_dlopen+set}" = set; then
12426 echo $ECHO_N "(cached) $ECHO_C" >&6
12427else
12428 ac_func_search_save_LIBS=$LIBS
12429cat >conftest.$ac_ext <<_ACEOF
12430/* confdefs.h. */
12431_ACEOF
12432cat confdefs.h >>conftest.$ac_ext
12433cat >>conftest.$ac_ext <<_ACEOF
12434/* end confdefs.h. */
12435
12436/* Override any GCC internal prototype to avoid an error.
12437 Use char because int might match the return type of a GCC
12438 builtin and then its argument prototype would still apply. */
12439#ifdef __cplusplus
12440extern "C"
12441#endif
12442char dlopen ();
12443int
12444main ()
12445{
12446return dlopen ();
12447 ;
12448 return 0;
12449}
12450_ACEOF
12451for ac_lib in '' dl; do
12452 if test -z "$ac_lib"; then
12453 ac_res="none required"
12454 else
12455 ac_res=-l$ac_lib
12456 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12457 fi
12458 rm -f conftest.$ac_objext conftest$ac_exeext
12459if { (ac_try="$ac_link"
12460case "(($ac_try" in
12461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462 *) ac_try_echo=$ac_try;;
12463esac
12464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12465 (eval "$ac_link") 2>conftest.er1
12466 ac_status=$?
12467 grep -v '^ *+' conftest.er1 >conftest.err
12468 rm -f conftest.er1
12469 cat conftest.err >&5
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); } &&
12472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12473 { (case "(($ac_try" in
12474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12475 *) ac_try_echo=$ac_try;;
12476esac
12477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12478 (eval "$ac_try") 2>&5
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; } &&
12482 { ac_try='test -s conftest$ac_exeext'
12483 { (case "(($ac_try" in
12484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485 *) ac_try_echo=$ac_try;;
12486esac
12487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12488 (eval "$ac_try") 2>&5
12489 ac_status=$?
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); }; }; then
12492 ac_cv_search_dlopen=$ac_res
12493else
12494 echo "$as_me: failed program was:" >&5
12495sed 's/^/| /' conftest.$ac_ext >&5
12496
12497
12498fi
12499
12500rm -f core conftest.err conftest.$ac_objext \
12501 conftest$ac_exeext
12502 if test "${ac_cv_search_dlopen+set}" = set; then
12503 break
12504fi
12505done
12506if test "${ac_cv_search_dlopen+set}" = set; then
12507 :
12508else
12509 ac_cv_search_dlopen=no
12510fi
12511rm conftest.$ac_ext
12512LIBS=$ac_func_search_save_LIBS
12513fi
12514{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12515echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12516ac_res=$ac_cv_search_dlopen
12517if test "$ac_res" != no; then
12518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12519
12520cat >>confdefs.h <<\_ACEOF
12521#define HAVE_DLOPEN 1
12522_ACEOF
12523
12524else
12525 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12526echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12527fi
12528
12529
12530if test "$llvm_cv_enable_libffi" = "yes" ; then
12531 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12532echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12533if test "${ac_cv_search_ffi_call+set}" = set; then
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12535else
12536 ac_func_search_save_LIBS=$LIBS
12537cat >conftest.$ac_ext <<_ACEOF
12538/* confdefs.h. */
12539_ACEOF
12540cat confdefs.h >>conftest.$ac_ext
12541cat >>conftest.$ac_ext <<_ACEOF
12542/* end confdefs.h. */
12543
12544/* Override any GCC internal prototype to avoid an error.
12545 Use char because int might match the return type of a GCC
12546 builtin and then its argument prototype would still apply. */
12547#ifdef __cplusplus
12548extern "C"
12549#endif
12550char ffi_call ();
12551int
12552main ()
12553{
12554return ffi_call ();
12555 ;
12556 return 0;
12557}
12558_ACEOF
12559for ac_lib in '' ffi; do
12560 if test -z "$ac_lib"; then
12561 ac_res="none required"
12562 else
12563 ac_res=-l$ac_lib
12564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12565 fi
12566 rm -f conftest.$ac_objext conftest$ac_exeext
12567if { (ac_try="$ac_link"
12568case "(($ac_try" in
12569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12570 *) ac_try_echo=$ac_try;;
12571esac
12572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12573 (eval "$ac_link") 2>conftest.er1
12574 ac_status=$?
12575 grep -v '^ *+' conftest.er1 >conftest.err
12576 rm -f conftest.er1
12577 cat conftest.err >&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); } &&
12580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12581 { (case "(($ac_try" in
12582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583 *) ac_try_echo=$ac_try;;
12584esac
12585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12586 (eval "$ac_try") 2>&5
12587 ac_status=$?
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; } &&
12590 { ac_try='test -s conftest$ac_exeext'
12591 { (case "(($ac_try" in
12592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593 *) ac_try_echo=$ac_try;;
12594esac
12595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596 (eval "$ac_try") 2>&5
12597 ac_status=$?
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; }; then
12600 ac_cv_search_ffi_call=$ac_res
12601else
12602 echo "$as_me: failed program was:" >&5
12603sed 's/^/| /' conftest.$ac_ext >&5
12604
12605
12606fi
12607
12608rm -f core conftest.err conftest.$ac_objext \
12609 conftest$ac_exeext
12610 if test "${ac_cv_search_ffi_call+set}" = set; then
12611 break
12612fi
12613done
12614if test "${ac_cv_search_ffi_call+set}" = set; then
12615 :
12616else
12617 ac_cv_search_ffi_call=no
12618fi
12619rm conftest.$ac_ext
12620LIBS=$ac_func_search_save_LIBS
12621fi
12622{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12623echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12624ac_res=$ac_cv_search_ffi_call
12625if test "$ac_res" != no; then
12626 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12627
12628cat >>confdefs.h <<\_ACEOF
12629#define HAVE_FFI_CALL 1
12630_ACEOF
12631
12632else
12633 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12634echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12635 { (exit 1); exit 1; }; }
12636fi
12637
12638fi
12639
12640{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12641echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12642if test "${ac_cv_search_mallinfo+set}" = set; then
12643 echo $ECHO_N "(cached) $ECHO_C" >&6
12644else
12645 ac_func_search_save_LIBS=$LIBS
12646cat >conftest.$ac_ext <<_ACEOF
12647/* confdefs.h. */
12648_ACEOF
12649cat confdefs.h >>conftest.$ac_ext
12650cat >>conftest.$ac_ext <<_ACEOF
12651/* end confdefs.h. */
12652
12653/* Override any GCC internal prototype to avoid an error.
12654 Use char because int might match the return type of a GCC
12655 builtin and then its argument prototype would still apply. */
12656#ifdef __cplusplus
12657extern "C"
12658#endif
12659char mallinfo ();
12660int
12661main ()
12662{
12663return mallinfo ();
12664 ;
12665 return 0;
12666}
12667_ACEOF
12668for ac_lib in '' malloc; do
12669 if test -z "$ac_lib"; then
12670 ac_res="none required"
12671 else
12672 ac_res=-l$ac_lib
12673 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12674 fi
12675 rm -f conftest.$ac_objext conftest$ac_exeext
12676if { (ac_try="$ac_link"
12677case "(($ac_try" in
12678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12679 *) ac_try_echo=$ac_try;;
12680esac
12681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12682 (eval "$ac_link") 2>conftest.er1
12683 ac_status=$?
12684 grep -v '^ *+' conftest.er1 >conftest.err
12685 rm -f conftest.er1
12686 cat conftest.err >&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); } &&
12689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12690 { (case "(($ac_try" in
12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12693esac
12694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695 (eval "$ac_try") 2>&5
12696 ac_status=$?
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; } &&
12699 { ac_try='test -s conftest$ac_exeext'
12700 { (case "(($ac_try" in
12701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702 *) ac_try_echo=$ac_try;;
12703esac
12704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705 (eval "$ac_try") 2>&5
12706 ac_status=$?
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; }; then
12709 ac_cv_search_mallinfo=$ac_res
12710else
12711 echo "$as_me: failed program was:" >&5
12712sed 's/^/| /' conftest.$ac_ext >&5
12713
12714
12715fi
12716
12717rm -f core conftest.err conftest.$ac_objext \
12718 conftest$ac_exeext
12719 if test "${ac_cv_search_mallinfo+set}" = set; then
12720 break
12721fi
12722done
12723if test "${ac_cv_search_mallinfo+set}" = set; then
12724 :
12725else
12726 ac_cv_search_mallinfo=no
12727fi
12728rm conftest.$ac_ext
12729LIBS=$ac_func_search_save_LIBS
12730fi
12731{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12732echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12733ac_res=$ac_cv_search_mallinfo
12734if test "$ac_res" != no; then
12735 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12736
12737cat >>confdefs.h <<\_ACEOF
12738#define HAVE_MALLINFO 1
12739_ACEOF
12740
12741fi
12742
12743
12744if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12745
12746{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12747echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12748if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12749 echo $ECHO_N "(cached) $ECHO_C" >&6
12750else
12751 ac_check_lib_save_LIBS=$LIBS
12752LIBS="-lpthread $LIBS"
12753cat >conftest.$ac_ext <<_ACEOF
12754/* confdefs.h. */
12755_ACEOF
12756cat confdefs.h >>conftest.$ac_ext
12757cat >>conftest.$ac_ext <<_ACEOF
12758/* end confdefs.h. */
12759
12760/* Override any GCC internal prototype to avoid an error.
12761 Use char because int might match the return type of a GCC
12762 builtin and then its argument prototype would still apply. */
12763#ifdef __cplusplus
12764extern "C"
12765#endif
12766char pthread_mutex_init ();
12767int
12768main ()
12769{
12770return pthread_mutex_init ();
12771 ;
12772 return 0;
12773}
12774_ACEOF
12775rm -f conftest.$ac_objext conftest$ac_exeext
12776if { (ac_try="$ac_link"
12777case "(($ac_try" in
12778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12779 *) ac_try_echo=$ac_try;;
12780esac
12781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12782 (eval "$ac_link") 2>conftest.er1
12783 ac_status=$?
12784 grep -v '^ *+' conftest.er1 >conftest.err
12785 rm -f conftest.er1
12786 cat conftest.err >&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } &&
12789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12790 { (case "(($ac_try" in
12791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792 *) ac_try_echo=$ac_try;;
12793esac
12794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12795 (eval "$ac_try") 2>&5
12796 ac_status=$?
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; } &&
12799 { ac_try='test -s conftest$ac_exeext'
12800 { (case "(($ac_try" in
12801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802 *) ac_try_echo=$ac_try;;
12803esac
12804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805 (eval "$ac_try") 2>&5
12806 ac_status=$?
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; }; then
12809 ac_cv_lib_pthread_pthread_mutex_init=yes
12810else
12811 echo "$as_me: failed program was:" >&5
12812sed 's/^/| /' conftest.$ac_ext >&5
12813
12814 ac_cv_lib_pthread_pthread_mutex_init=no
12815fi
12816
12817rm -f core conftest.err conftest.$ac_objext \
12818 conftest$ac_exeext conftest.$ac_ext
12819LIBS=$ac_check_lib_save_LIBS
12820fi
12821{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12822echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12823if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12824 cat >>confdefs.h <<_ACEOF
12825#define HAVE_LIBPTHREAD 1
12826_ACEOF
12827
12828 LIBS="-lpthread $LIBS"
12829
12830fi
12831
12832 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12833echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12834if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12835 echo $ECHO_N "(cached) $ECHO_C" >&6
12836else
12837 ac_func_search_save_LIBS=$LIBS
12838cat >conftest.$ac_ext <<_ACEOF
12839/* confdefs.h. */
12840_ACEOF
12841cat confdefs.h >>conftest.$ac_ext
12842cat >>conftest.$ac_ext <<_ACEOF
12843/* end confdefs.h. */
12844
12845/* Override any GCC internal prototype to avoid an error.
12846 Use char because int might match the return type of a GCC
12847 builtin and then its argument prototype would still apply. */
12848#ifdef __cplusplus
12849extern "C"
12850#endif
12851char pthread_mutex_lock ();
12852int
12853main ()
12854{
12855return pthread_mutex_lock ();
12856 ;
12857 return 0;
12858}
12859_ACEOF
12860for ac_lib in '' pthread; do
12861 if test -z "$ac_lib"; then
12862 ac_res="none required"
12863 else
12864 ac_res=-l$ac_lib
12865 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12866 fi
12867 rm -f conftest.$ac_objext conftest$ac_exeext
12868if { (ac_try="$ac_link"
12869case "(($ac_try" in
12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12872esac
12873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_link") 2>conftest.er1
12875 ac_status=$?
12876 grep -v '^ *+' conftest.er1 >conftest.err
12877 rm -f conftest.er1
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } &&
12881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12882 { (case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12885esac
12886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_try") 2>&5
12888 ac_status=$?
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; } &&
12891 { ac_try='test -s conftest$ac_exeext'
12892 { (case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12895esac
12896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897 (eval "$ac_try") 2>&5
12898 ac_status=$?
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; }; then
12901 ac_cv_search_pthread_mutex_lock=$ac_res
12902else
12903 echo "$as_me: failed program was:" >&5
12904sed 's/^/| /' conftest.$ac_ext >&5
12905
12906
12907fi
12908
12909rm -f core conftest.err conftest.$ac_objext \
12910 conftest$ac_exeext
12911 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12912 break
12913fi
12914done
12915if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12916 :
12917else
12918 ac_cv_search_pthread_mutex_lock=no
12919fi
12920rm conftest.$ac_ext
12921LIBS=$ac_func_search_save_LIBS
12922fi
12923{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12924echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12925ac_res=$ac_cv_search_pthread_mutex_lock
12926if test "$ac_res" != no; then
12927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12928
12929cat >>confdefs.h <<\_ACEOF
12930#define HAVE_PTHREAD_MUTEX_LOCK 1
12931_ACEOF
12932
12933fi
12934
12935 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12936echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12937if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12938 echo $ECHO_N "(cached) $ECHO_C" >&6
12939else
12940 ac_func_search_save_LIBS=$LIBS
12941cat >conftest.$ac_ext <<_ACEOF
12942/* confdefs.h. */
12943_ACEOF
12944cat confdefs.h >>conftest.$ac_ext
12945cat >>conftest.$ac_ext <<_ACEOF
12946/* end confdefs.h. */
12947
12948/* Override any GCC internal prototype to avoid an error.
12949 Use char because int might match the return type of a GCC
12950 builtin and then its argument prototype would still apply. */
12951#ifdef __cplusplus
12952extern "C"
12953#endif
12954char pthread_rwlock_init ();
12955int
12956main ()
12957{
12958return pthread_rwlock_init ();
12959 ;
12960 return 0;
12961}
12962_ACEOF
12963for ac_lib in '' pthread; do
12964 if test -z "$ac_lib"; then
12965 ac_res="none required"
12966 else
12967 ac_res=-l$ac_lib
12968 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12969 fi
12970 rm -f conftest.$ac_objext conftest$ac_exeext
12971if { (ac_try="$ac_link"
12972case "(($ac_try" in
12973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974 *) ac_try_echo=$ac_try;;
12975esac
12976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977 (eval "$ac_link") 2>conftest.er1
12978 ac_status=$?
12979 grep -v '^ *+' conftest.er1 >conftest.err
12980 rm -f conftest.er1
12981 cat conftest.err >&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } &&
12984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12985 { (case "(($ac_try" in
12986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987 *) ac_try_echo=$ac_try;;
12988esac
12989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990 (eval "$ac_try") 2>&5
12991 ac_status=$?
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; } &&
12994 { ac_try='test -s conftest$ac_exeext'
12995 { (case "(($ac_try" in
12996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12997 *) ac_try_echo=$ac_try;;
12998esac
12999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13000 (eval "$ac_try") 2>&5
13001 ac_status=$?
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; }; then
13004 ac_cv_search_pthread_rwlock_init=$ac_res
13005else
13006 echo "$as_me: failed program was:" >&5
13007sed 's/^/| /' conftest.$ac_ext >&5
13008
13009
13010fi
13011
13012rm -f core conftest.err conftest.$ac_objext \
13013 conftest$ac_exeext
13014 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13015 break
13016fi
13017done
13018if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13019 :
13020else
13021 ac_cv_search_pthread_rwlock_init=no
13022fi
13023rm conftest.$ac_ext
13024LIBS=$ac_func_search_save_LIBS
13025fi
13026{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13027echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13028ac_res=$ac_cv_search_pthread_rwlock_init
13029if test "$ac_res" != no; then
13030 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13031
13032cat >>confdefs.h <<\_ACEOF
13033#define HAVE_PTHREAD_RWLOCK_INIT 1
13034_ACEOF
13035
13036fi
13037
13038 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13039echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13040if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13041 echo $ECHO_N "(cached) $ECHO_C" >&6
13042else
13043 ac_func_search_save_LIBS=$LIBS
13044cat >conftest.$ac_ext <<_ACEOF
13045/* confdefs.h. */
13046_ACEOF
13047cat confdefs.h >>conftest.$ac_ext
13048cat >>conftest.$ac_ext <<_ACEOF
13049/* end confdefs.h. */
13050
13051/* Override any GCC internal prototype to avoid an error.
13052 Use char because int might match the return type of a GCC
13053 builtin and then its argument prototype would still apply. */
13054#ifdef __cplusplus
13055extern "C"
13056#endif
13057char pthread_getspecific ();
13058int
13059main ()
13060{
13061return pthread_getspecific ();
13062 ;
13063 return 0;
13064}
13065_ACEOF
13066for ac_lib in '' pthread; do
13067 if test -z "$ac_lib"; then
13068 ac_res="none required"
13069 else
13070 ac_res=-l$ac_lib
13071 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13072 fi
13073 rm -f conftest.$ac_objext conftest$ac_exeext
13074if { (ac_try="$ac_link"
13075case "(($ac_try" in
13076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077 *) ac_try_echo=$ac_try;;
13078esac
13079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13080 (eval "$ac_link") 2>conftest.er1
13081 ac_status=$?
13082 grep -v '^ *+' conftest.er1 >conftest.err
13083 rm -f conftest.er1
13084 cat conftest.err >&5
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); } &&
13087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13088 { (case "(($ac_try" in
13089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13090 *) ac_try_echo=$ac_try;;
13091esac
13092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13093 (eval "$ac_try") 2>&5
13094 ac_status=$?
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); }; } &&
13097 { ac_try='test -s conftest$ac_exeext'
13098 { (case "(($ac_try" in
13099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13100 *) ac_try_echo=$ac_try;;
13101esac
13102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13103 (eval "$ac_try") 2>&5
13104 ac_status=$?
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; }; then
13107 ac_cv_search_pthread_getspecific=$ac_res
13108else
13109 echo "$as_me: failed program was:" >&5
13110sed 's/^/| /' conftest.$ac_ext >&5
13111
13112
13113fi
13114
13115rm -f core conftest.err conftest.$ac_objext \
13116 conftest$ac_exeext
13117 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13118 break
13119fi
13120done
13121if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13122 :
13123else
13124 ac_cv_search_pthread_getspecific=no
13125fi
13126rm conftest.$ac_ext
13127LIBS=$ac_func_search_save_LIBS
13128fi
13129{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13130echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13131ac_res=$ac_cv_search_pthread_getspecific
13132if test "$ac_res" != no; then
13133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13134
13135cat >>confdefs.h <<\_ACEOF
13136#define HAVE_PTHREAD_GETSPECIFIC 1
13137_ACEOF
13138
13139fi
13140
13141fi
13142
13143
13144# Check whether --with-udis86 was given.
13145if test "${with_udis86+set}" = set; then
13146 withval=$with_udis86;
13147 USE_UDIS86=1
13148
13149 case "$withval" in
13150 /usr/lib|yes) ;;
13151 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13152 esac
13153
13154{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13155echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13156if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13157 echo $ECHO_N "(cached) $ECHO_C" >&6
13158else
13159 ac_check_lib_save_LIBS=$LIBS
13160LIBS="-ludis86 $LIBS"
13161cat >conftest.$ac_ext <<_ACEOF
13162/* confdefs.h. */
13163_ACEOF
13164cat confdefs.h >>conftest.$ac_ext
13165cat >>conftest.$ac_ext <<_ACEOF
13166/* end confdefs.h. */
13167
13168/* Override any GCC internal prototype to avoid an error.
13169 Use char because int might match the return type of a GCC
13170 builtin and then its argument prototype would still apply. */
13171#ifdef __cplusplus
13172extern "C"
13173#endif
13174char ud_init ();
13175int
13176main ()
13177{
13178return ud_init ();
13179 ;
13180 return 0;
13181}
13182_ACEOF
13183rm -f conftest.$ac_objext conftest$ac_exeext
13184if { (ac_try="$ac_link"
13185case "(($ac_try" in
13186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187 *) ac_try_echo=$ac_try;;
13188esac
13189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190 (eval "$ac_link") 2>conftest.er1
13191 ac_status=$?
13192 grep -v '^ *+' conftest.er1 >conftest.err
13193 rm -f conftest.er1
13194 cat conftest.err >&5
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); } &&
13197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13198 { (case "(($ac_try" in
13199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200 *) ac_try_echo=$ac_try;;
13201esac
13202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13203 (eval "$ac_try") 2>&5
13204 ac_status=$?
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); }; } &&
13207 { ac_try='test -s conftest$ac_exeext'
13208 { (case "(($ac_try" in
13209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210 *) ac_try_echo=$ac_try;;
13211esac
13212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213 (eval "$ac_try") 2>&5
13214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; }; then
13217 ac_cv_lib_udis86_ud_init=yes
13218else
13219 echo "$as_me: failed program was:" >&5
13220sed 's/^/| /' conftest.$ac_ext >&5
13221
13222 ac_cv_lib_udis86_ud_init=no
13223fi
13224
13225rm -f core conftest.err conftest.$ac_objext \
13226 conftest$ac_exeext conftest.$ac_ext
13227LIBS=$ac_check_lib_save_LIBS
13228fi
13229{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13230echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13231if test $ac_cv_lib_udis86_ud_init = yes; then
13232 cat >>confdefs.h <<_ACEOF
13233#define HAVE_LIBUDIS86 1
13234_ACEOF
13235
13236 LIBS="-ludis86 $LIBS"
13237
13238else
13239
13240 echo "Error! You need to have libudis86 around."
13241 exit -1
13242
13243fi
13244
13245
13246else
13247 USE_UDIS86=0
13248
13249fi
13250
13251
13252cat >>confdefs.h <<_ACEOF
13253#define USE_UDIS86 $USE_UDIS86
13254_ACEOF
13255
13256
13257
13258# Check whether --with-oprofile was given.
13259if test "${with_oprofile+set}" = set; then
13260 withval=$with_oprofile;
13261 USE_OPROFILE=1
13262
13263 case "$withval" in
13264 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13265 no) llvm_cv_oppath=
13266 USE_OPROFILE=0
13267 ;;
13268 *) llvm_cv_oppath="${withval}/lib/oprofile"
13269 CPPFLAGS="-I${withval}/include";;
13270 esac
13271 if test -n "$llvm_cv_oppath" ; then
13272 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13273 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13274echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13275if test "${ac_cv_search_bfd_init+set}" = set; then
13276 echo $ECHO_N "(cached) $ECHO_C" >&6
13277else
13278 ac_func_search_save_LIBS=$LIBS
13279cat >conftest.$ac_ext <<_ACEOF
13280/* confdefs.h. */
13281_ACEOF
13282cat confdefs.h >>conftest.$ac_ext
13283cat >>conftest.$ac_ext <<_ACEOF
13284/* end confdefs.h. */
13285
13286/* Override any GCC internal prototype to avoid an error.
13287 Use char because int might match the return type of a GCC
13288 builtin and then its argument prototype would still apply. */
13289#ifdef __cplusplus
13290extern "C"
13291#endif
13292char bfd_init ();
13293int
13294main ()
13295{
13296return bfd_init ();
13297 ;
13298 return 0;
13299}
13300_ACEOF
13301for ac_lib in '' bfd; do
13302 if test -z "$ac_lib"; then
13303 ac_res="none required"
13304 else
13305 ac_res=-l$ac_lib
13306 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13307 fi
13308 rm -f conftest.$ac_objext conftest$ac_exeext
13309if { (ac_try="$ac_link"
13310case "(($ac_try" in
13311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13312 *) ac_try_echo=$ac_try;;
13313esac
13314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13315 (eval "$ac_link") 2>conftest.er1
13316 ac_status=$?
13317 grep -v '^ *+' conftest.er1 >conftest.err
13318 rm -f conftest.er1
13319 cat conftest.err >&5
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); } &&
13322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13323 { (case "(($ac_try" in
13324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13325 *) ac_try_echo=$ac_try;;
13326esac
13327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13328 (eval "$ac_try") 2>&5
13329 ac_status=$?
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; } &&
13332 { ac_try='test -s conftest$ac_exeext'
13333 { (case "(($ac_try" in
13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13336esac
13337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338 (eval "$ac_try") 2>&5
13339 ac_status=$?
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; }; then
13342 ac_cv_search_bfd_init=$ac_res
13343else
13344 echo "$as_me: failed program was:" >&5
13345sed 's/^/| /' conftest.$ac_ext >&5
13346
13347
13348fi
13349
13350rm -f core conftest.err conftest.$ac_objext \
13351 conftest$ac_exeext
13352 if test "${ac_cv_search_bfd_init+set}" = set; then
13353 break
13354fi
13355done
13356if test "${ac_cv_search_bfd_init+set}" = set; then
13357 :
13358else
13359 ac_cv_search_bfd_init=no
13360fi
13361rm conftest.$ac_ext
13362LIBS=$ac_func_search_save_LIBS
13363fi
13364{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13365echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13366ac_res=$ac_cv_search_bfd_init
13367if test "$ac_res" != no; then
13368 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13369
13370fi
13371
13372 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13373echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13374if test "${ac_cv_search_op_open_agent+set}" = set; then
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
13376else
13377 ac_func_search_save_LIBS=$LIBS
13378cat >conftest.$ac_ext <<_ACEOF
13379/* confdefs.h. */
13380_ACEOF
13381cat confdefs.h >>conftest.$ac_ext
13382cat >>conftest.$ac_ext <<_ACEOF
13383/* end confdefs.h. */
13384
13385/* Override any GCC internal prototype to avoid an error.
13386 Use char because int might match the return type of a GCC
13387 builtin and then its argument prototype would still apply. */
13388#ifdef __cplusplus
13389extern "C"
13390#endif
13391char op_open_agent ();
13392int
13393main ()
13394{
13395return op_open_agent ();
13396 ;
13397 return 0;
13398}
13399_ACEOF
13400for ac_lib in '' opagent; do
13401 if test -z "$ac_lib"; then
13402 ac_res="none required"
13403 else
13404 ac_res=-l$ac_lib
13405 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13406 fi
13407 rm -f conftest.$ac_objext conftest$ac_exeext
13408if { (ac_try="$ac_link"
13409case "(($ac_try" in
13410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13412esac
13413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_link") 2>conftest.er1
13415 ac_status=$?
13416 grep -v '^ *+' conftest.er1 >conftest.err
13417 rm -f conftest.er1
13418 cat conftest.err >&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } &&
13421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13422 { (case "(($ac_try" in
13423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424 *) ac_try_echo=$ac_try;;
13425esac
13426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427 (eval "$ac_try") 2>&5
13428 ac_status=$?
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); }; } &&
13431 { ac_try='test -s conftest$ac_exeext'
13432 { (case "(($ac_try" in
13433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13434 *) ac_try_echo=$ac_try;;
13435esac
13436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13437 (eval "$ac_try") 2>&5
13438 ac_status=$?
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; }; then
13441 ac_cv_search_op_open_agent=$ac_res
13442else
13443 echo "$as_me: failed program was:" >&5
13444sed 's/^/| /' conftest.$ac_ext >&5
13445
13446
13447fi
13448
13449rm -f core conftest.err conftest.$ac_objext \
13450 conftest$ac_exeext
13451 if test "${ac_cv_search_op_open_agent+set}" = set; then
13452 break
13453fi
13454done
13455if test "${ac_cv_search_op_open_agent+set}" = set; then
13456 :
13457else
13458 ac_cv_search_op_open_agent=no
13459fi
13460rm conftest.$ac_ext
13461LIBS=$ac_func_search_save_LIBS
13462fi
13463{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13464echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13465ac_res=$ac_cv_search_op_open_agent
13466if test "$ac_res" != no; then
13467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13468
13469else
13470
13471 echo "Error! You need to have libopagent around."
13472 exit -1
13473
13474fi
13475
13476 if test "${ac_cv_header_opagent_h+set}" = set; then
13477 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13478echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13479if test "${ac_cv_header_opagent_h+set}" = set; then
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13481fi
13482{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13483echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13484else
13485 # Is the header compilable?
13486{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
13487echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13488cat >conftest.$ac_ext <<_ACEOF
13489/* confdefs.h. */
13490_ACEOF
13491cat confdefs.h >>conftest.$ac_ext
13492cat >>conftest.$ac_ext <<_ACEOF
13493/* end confdefs.h. */
13494$ac_includes_default
13495#include <opagent.h>
13496_ACEOF
13497rm -f conftest.$ac_objext
13498if { (ac_try="$ac_compile"
13499case "(($ac_try" in
13500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13501 *) ac_try_echo=$ac_try;;
13502esac
13503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13504 (eval "$ac_compile") 2>conftest.er1
13505 ac_status=$?
13506 grep -v '^ *+' conftest.er1 >conftest.err
13507 rm -f conftest.er1
13508 cat conftest.err >&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); } &&
13511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13512 { (case "(($ac_try" in
13513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13514 *) ac_try_echo=$ac_try;;
13515esac
13516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13517 (eval "$ac_try") 2>&5
13518 ac_status=$?
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; } &&
13521 { ac_try='test -s conftest.$ac_objext'
13522 { (case "(($ac_try" in
13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13525esac
13526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527 (eval "$ac_try") 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13531 ac_header_compiler=yes
13532else
13533 echo "$as_me: failed program was:" >&5
13534sed 's/^/| /' conftest.$ac_ext >&5
13535
13536 ac_header_compiler=no
13537fi
13538
13539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13540{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13541echo "${ECHO_T}$ac_header_compiler" >&6; }
13542
13543# Is the header present?
13544{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
13545echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13546cat >conftest.$ac_ext <<_ACEOF
13547/* confdefs.h. */
13548_ACEOF
13549cat confdefs.h >>conftest.$ac_ext
13550cat >>conftest.$ac_ext <<_ACEOF
13551/* end confdefs.h. */
13552#include <opagent.h>
13553_ACEOF
13554if { (ac_try="$ac_cpp conftest.$ac_ext"
13555case "(($ac_try" in
13556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557 *) ac_try_echo=$ac_try;;
13558esac
13559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13561 ac_status=$?
13562 grep -v '^ *+' conftest.er1 >conftest.err
13563 rm -f conftest.er1
13564 cat conftest.err >&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } >/dev/null; then
13567 if test -s conftest.err; then
13568 ac_cpp_err=$ac_c_preproc_warn_flag
13569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13570 else
13571 ac_cpp_err=
13572 fi
13573else
13574 ac_cpp_err=yes
13575fi
13576if test -z "$ac_cpp_err"; then
13577 ac_header_preproc=yes
13578else
13579 echo "$as_me: failed program was:" >&5
13580sed 's/^/| /' conftest.$ac_ext >&5
13581
13582 ac_header_preproc=no
13583fi
13584
13585rm -f conftest.err conftest.$ac_ext
13586{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13587echo "${ECHO_T}$ac_header_preproc" >&6; }
13588
13589# So? What about this header?
13590case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13591 yes:no: )
13592 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13593echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13594 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13595echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13596 ac_header_preproc=yes
13597 ;;
13598 no:yes:* )
13599 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13600echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13601 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13602echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13603 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13604echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13605 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13606echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13607 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13608echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13609 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13610echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13611 ( cat <<\_ASBOX
13612## ------------------------------ ##
13613## Report this to bugs@yourdomain ##
13614## ------------------------------ ##
13615_ASBOX
13616 ) | sed "s/^/$as_me: WARNING: /" >&2
13617 ;;
13618esac
13619{ echo "$as_me:$LINENO: checking for opagent.h" >&5
13620echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13621if test "${ac_cv_header_opagent_h+set}" = set; then
13622 echo $ECHO_N "(cached) $ECHO_C" >&6
13623else
13624 ac_cv_header_opagent_h=$ac_header_preproc
13625fi
13626{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13627echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13628
13629fi
13630if test $ac_cv_header_opagent_h = yes; then
13631 :
13632else
13633
13634 echo "Error! You need to have opagent.h around."
13635 exit -1
13636
13637fi
13638
13639
13640 fi
13641
13642else
13643
13644 USE_OPROFILE=0
13645
13646
13647fi
13648
13649
13650cat >>confdefs.h <<_ACEOF
13651#define USE_OPROFILE $USE_OPROFILE
13652_ACEOF
13653
13654
13655
13656
13657
13658
13659
13660
13661ac_header_dirent=no
13662for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13663 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13664{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13665echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13666if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13668else
13669 cat >conftest.$ac_ext <<_ACEOF
13670/* confdefs.h. */
13671_ACEOF
13672cat confdefs.h >>conftest.$ac_ext
13673cat >>conftest.$ac_ext <<_ACEOF
13674/* end confdefs.h. */
13675#include <sys/types.h>
13676#include <$ac_hdr>
13677
13678int
13679main ()
13680{
13681if ((DIR *) 0)
13682return 0;
13683 ;
13684 return 0;
13685}
13686_ACEOF
13687rm -f conftest.$ac_objext
13688if { (ac_try="$ac_compile"
13689case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13692esac
13693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_compile") 2>conftest.er1
13695 ac_status=$?
13696 grep -v '^ *+' conftest.er1 >conftest.err
13697 rm -f conftest.er1
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } &&
13701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13702 { (case "(($ac_try" in
13703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13704 *) ac_try_echo=$ac_try;;
13705esac
13706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13707 (eval "$ac_try") 2>&5
13708 ac_status=$?
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; } &&
13711 { ac_try='test -s conftest.$ac_objext'
13712 { (case "(($ac_try" in
13713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714 *) ac_try_echo=$ac_try;;
13715esac
13716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717 (eval "$ac_try") 2>&5
13718 ac_status=$?
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; }; then
13721 eval "$as_ac_Header=yes"
13722else
13723 echo "$as_me: failed program was:" >&5
13724sed 's/^/| /' conftest.$ac_ext >&5
13725
13726 eval "$as_ac_Header=no"
13727fi
13728
13729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13730fi
13731ac_res=`eval echo '${'$as_ac_Header'}'`
13732 { echo "$as_me:$LINENO: result: $ac_res" >&5
13733echo "${ECHO_T}$ac_res" >&6; }
13734if test `eval echo '${'$as_ac_Header'}'` = yes; then
13735 cat >>confdefs.h <<_ACEOF
13736#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13737_ACEOF
13738
13739ac_header_dirent=$ac_hdr; break
13740fi
13741
13742done
13743# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13744if test $ac_header_dirent = dirent.h; then
13745 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13746echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13747if test "${ac_cv_search_opendir+set}" = set; then
13748 echo $ECHO_N "(cached) $ECHO_C" >&6
13749else
13750 ac_func_search_save_LIBS=$LIBS
13751cat >conftest.$ac_ext <<_ACEOF
13752/* confdefs.h. */
13753_ACEOF
13754cat confdefs.h >>conftest.$ac_ext
13755cat >>conftest.$ac_ext <<_ACEOF
13756/* end confdefs.h. */
13757
13758/* Override any GCC internal prototype to avoid an error.
13759 Use char because int might match the return type of a GCC
13760 builtin and then its argument prototype would still apply. */
13761#ifdef __cplusplus
13762extern "C"
13763#endif
13764char opendir ();
13765int
13766main ()
13767{
13768return opendir ();
13769 ;
13770 return 0;
13771}
13772_ACEOF
13773for ac_lib in '' dir; do
13774 if test -z "$ac_lib"; then
13775 ac_res="none required"
13776 else
13777 ac_res=-l$ac_lib
13778 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13779 fi
13780 rm -f conftest.$ac_objext conftest$ac_exeext
13781if { (ac_try="$ac_link"
13782case "(($ac_try" in
13783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13784 *) ac_try_echo=$ac_try;;
13785esac
13786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13787 (eval "$ac_link") 2>conftest.er1
13788 ac_status=$?
13789 grep -v '^ *+' conftest.er1 >conftest.err
13790 rm -f conftest.er1
13791 cat conftest.err >&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); } &&
13794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13795 { (case "(($ac_try" in
13796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13797 *) ac_try_echo=$ac_try;;
13798esac
13799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13800 (eval "$ac_try") 2>&5
13801 ac_status=$?
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; } &&
13804 { ac_try='test -s conftest$ac_exeext'
13805 { (case "(($ac_try" in
13806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807 *) ac_try_echo=$ac_try;;
13808esac
13809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13810 (eval "$ac_try") 2>&5
13811 ac_status=$?
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; }; then
13814 ac_cv_search_opendir=$ac_res
13815else
13816 echo "$as_me: failed program was:" >&5
13817sed 's/^/| /' conftest.$ac_ext >&5
13818
13819
13820fi
13821
13822rm -f core conftest.err conftest.$ac_objext \
13823 conftest$ac_exeext
13824 if test "${ac_cv_search_opendir+set}" = set; then
13825 break
13826fi
13827done
13828if test "${ac_cv_search_opendir+set}" = set; then
13829 :
13830else
13831 ac_cv_search_opendir=no
13832fi
13833rm conftest.$ac_ext
13834LIBS=$ac_func_search_save_LIBS
13835fi
13836{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13837echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13838ac_res=$ac_cv_search_opendir
13839if test "$ac_res" != no; then
13840 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13841
13842fi
13843
13844else
13845 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13846echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13847if test "${ac_cv_search_opendir+set}" = set; then
13848 echo $ECHO_N "(cached) $ECHO_C" >&6
13849else
13850 ac_func_search_save_LIBS=$LIBS
13851cat >conftest.$ac_ext <<_ACEOF
13852/* confdefs.h. */
13853_ACEOF
13854cat confdefs.h >>conftest.$ac_ext
13855cat >>conftest.$ac_ext <<_ACEOF
13856/* end confdefs.h. */
13857
13858/* Override any GCC internal prototype to avoid an error.
13859 Use char because int might match the return type of a GCC
13860 builtin and then its argument prototype would still apply. */
13861#ifdef __cplusplus
13862extern "C"
13863#endif
13864char opendir ();
13865int
13866main ()
13867{
13868return opendir ();
13869 ;
13870 return 0;
13871}
13872_ACEOF
13873for ac_lib in '' x; do
13874 if test -z "$ac_lib"; then
13875 ac_res="none required"
13876 else
13877 ac_res=-l$ac_lib
13878 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13879 fi
13880 rm -f conftest.$ac_objext conftest$ac_exeext
13881if { (ac_try="$ac_link"
13882case "(($ac_try" in
13883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884 *) ac_try_echo=$ac_try;;
13885esac
13886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13887 (eval "$ac_link") 2>conftest.er1
13888 ac_status=$?
13889 grep -v '^ *+' conftest.er1 >conftest.err
13890 rm -f conftest.er1
13891 cat conftest.err >&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } &&
13894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13895 { (case "(($ac_try" in
13896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897 *) ac_try_echo=$ac_try;;
13898esac
13899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900 (eval "$ac_try") 2>&5
13901 ac_status=$?
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; } &&
13904 { ac_try='test -s conftest$ac_exeext'
13905 { (case "(($ac_try" in
13906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907 *) ac_try_echo=$ac_try;;
13908esac
13909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910 (eval "$ac_try") 2>&5
13911 ac_status=$?
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; }; then
13914 ac_cv_search_opendir=$ac_res
13915else
13916 echo "$as_me: failed program was:" >&5
13917sed 's/^/| /' conftest.$ac_ext >&5
13918
13919
13920fi
13921
13922rm -f core conftest.err conftest.$ac_objext \
13923 conftest$ac_exeext
13924 if test "${ac_cv_search_opendir+set}" = set; then
13925 break
13926fi
13927done
13928if test "${ac_cv_search_opendir+set}" = set; then
13929 :
13930else
13931 ac_cv_search_opendir=no
13932fi
13933rm conftest.$ac_ext
13934LIBS=$ac_func_search_save_LIBS
13935fi
13936{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13937echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13938ac_res=$ac_cv_search_opendir
13939if test "$ac_res" != no; then
13940 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13941
13942fi
13943
13944fi
13945
13946{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
13947echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
13948if test "${ac_cv_header_mmap_anon+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13950else
13951 ac_ext=c
13952ac_cpp='$CPP $CPPFLAGS'
13953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13955ac_compiler_gnu=$ac_cv_c_compiler_gnu
13956
13957 cat >conftest.$ac_ext <<_ACEOF
13958/* confdefs.h. */
13959_ACEOF
13960cat confdefs.h >>conftest.$ac_ext
13961cat >>conftest.$ac_ext <<_ACEOF
13962/* end confdefs.h. */
13963#include <sys/mman.h>
13964#include <unistd.h>
13965#include <fcntl.h>
13966int
13967main ()
13968{
13969mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
13970 ;
13971 return 0;
13972}
13973_ACEOF
13974rm -f conftest.$ac_objext
13975if { (ac_try="$ac_compile"
13976case "(($ac_try" in
13977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978 *) ac_try_echo=$ac_try;;
13979esac
13980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981 (eval "$ac_compile") 2>conftest.er1
13982 ac_status=$?
13983 grep -v '^ *+' conftest.er1 >conftest.err
13984 rm -f conftest.er1
13985 cat conftest.err >&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); } &&
13988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13989 { (case "(($ac_try" in
13990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13991 *) ac_try_echo=$ac_try;;
13992esac
13993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13994 (eval "$ac_try") 2>&5
13995 ac_status=$?
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; } &&
13998 { ac_try='test -s conftest.$ac_objext'
13999 { (case "(($ac_try" in
14000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14001 *) ac_try_echo=$ac_try;;
14002esac
14003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14004 (eval "$ac_try") 2>&5
14005 ac_status=$?
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); }; }; then
14008 ac_cv_header_mmap_anon=yes
14009else
14010 echo "$as_me: failed program was:" >&5
14011sed 's/^/| /' conftest.$ac_ext >&5
14012
14013 ac_cv_header_mmap_anon=no
14014fi
14015
14016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14017 ac_ext=c
14018ac_cpp='$CPP $CPPFLAGS'
14019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14021ac_compiler_gnu=$ac_cv_c_compiler_gnu
14022
14023
14024fi
14025{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14026echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14027if test "$ac_cv_header_mmap_anon" = yes; then
14028
14029cat >>confdefs.h <<\_ACEOF
14030#define HAVE_MMAP_ANONYMOUS 1
14031_ACEOF
14032
14033fi
14034
14035{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14036echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14037if test "${ac_cv_header_stat_broken+set}" = set; then
14038 echo $ECHO_N "(cached) $ECHO_C" >&6
14039else
14040 cat >conftest.$ac_ext <<_ACEOF
14041/* confdefs.h. */
14042_ACEOF
14043cat confdefs.h >>conftest.$ac_ext
14044cat >>conftest.$ac_ext <<_ACEOF
14045/* end confdefs.h. */
14046#include <sys/types.h>
14047#include <sys/stat.h>
14048
14049#if defined S_ISBLK && defined S_IFDIR
14050# if S_ISBLK (S_IFDIR)
14051You lose.
14052# endif
14053#endif
14054
14055#if defined S_ISBLK && defined S_IFCHR
14056# if S_ISBLK (S_IFCHR)
14057You lose.
14058# endif
14059#endif
14060
14061#if defined S_ISLNK && defined S_IFREG
14062# if S_ISLNK (S_IFREG)
14063You lose.
14064# endif
14065#endif
14066
14067#if defined S_ISSOCK && defined S_IFREG
14068# if S_ISSOCK (S_IFREG)
14069You lose.
14070# endif
14071#endif
14072
14073_ACEOF
14074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14075 $EGREP "You lose" >/dev/null 2>&1; then
14076 ac_cv_header_stat_broken=yes
14077else
14078 ac_cv_header_stat_broken=no
14079fi
14080rm -f conftest*
14081
14082fi
14083{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14084echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14085if test $ac_cv_header_stat_broken = yes; then
14086
14087cat >>confdefs.h <<\_ACEOF
14088#define STAT_MACROS_BROKEN 1
14089_ACEOF
14090
14091fi
14092
14093{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14094echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14095if test "${ac_cv_header_sys_wait_h+set}" = set; then
14096 echo $ECHO_N "(cached) $ECHO_C" >&6
14097else
14098 cat >conftest.$ac_ext <<_ACEOF
14099/* confdefs.h. */
14100_ACEOF
14101cat confdefs.h >>conftest.$ac_ext
14102cat >>conftest.$ac_ext <<_ACEOF
14103/* end confdefs.h. */
14104#include <sys/types.h>
14105#include <sys/wait.h>
14106#ifndef WEXITSTATUS
14107# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14108#endif
14109#ifndef WIFEXITED
14110# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14111#endif
14112
14113int
14114main ()
14115{
14116 int s;
14117 wait (&s);
14118 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14119 ;
14120 return 0;
14121}
14122_ACEOF
14123rm -f conftest.$ac_objext
14124if { (ac_try="$ac_compile"
14125case "(($ac_try" in
14126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127 *) ac_try_echo=$ac_try;;
14128esac
14129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130 (eval "$ac_compile") 2>conftest.er1
14131 ac_status=$?
14132 grep -v '^ *+' conftest.er1 >conftest.err
14133 rm -f conftest.er1
14134 cat conftest.err >&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); } &&
14137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14138 { (case "(($ac_try" in
14139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14140 *) ac_try_echo=$ac_try;;
14141esac
14142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14143 (eval "$ac_try") 2>&5
14144 ac_status=$?
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); }; } &&
14147 { ac_try='test -s conftest.$ac_objext'
14148 { (case "(($ac_try" in
14149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14150 *) ac_try_echo=$ac_try;;
14151esac
14152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14153 (eval "$ac_try") 2>&5
14154 ac_status=$?
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); }; }; then
14157 ac_cv_header_sys_wait_h=yes
14158else
14159 echo "$as_me: failed program was:" >&5
14160sed 's/^/| /' conftest.$ac_ext >&5
14161
14162 ac_cv_header_sys_wait_h=no
14163fi
14164
14165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14166fi
14167{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14168echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14169if test $ac_cv_header_sys_wait_h = yes; then
14170
14171cat >>confdefs.h <<\_ACEOF
14172#define HAVE_SYS_WAIT_H 1
14173_ACEOF
14174
14175fi
14176
14177{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14178echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14179if test "${ac_cv_header_time+set}" = set; then
14180 echo $ECHO_N "(cached) $ECHO_C" >&6
14181else
14182 cat >conftest.$ac_ext <<_ACEOF
14183/* confdefs.h. */
14184_ACEOF
14185cat confdefs.h >>conftest.$ac_ext
14186cat >>conftest.$ac_ext <<_ACEOF
14187/* end confdefs.h. */
14188#include <sys/types.h>
14189#include <sys/time.h>
14190#include <time.h>
14191
14192int
14193main ()
14194{
14195if ((struct tm *) 0)
14196return 0;
14197 ;
14198 return 0;
14199}
14200_ACEOF
14201rm -f conftest.$ac_objext
14202if { (ac_try="$ac_compile"
14203case "(($ac_try" in
14204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14205 *) ac_try_echo=$ac_try;;
14206esac
14207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14208 (eval "$ac_compile") 2>conftest.er1
14209 ac_status=$?
14210 grep -v '^ *+' conftest.er1 >conftest.err
14211 rm -f conftest.er1
14212 cat conftest.err >&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); } &&
14215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14216 { (case "(($ac_try" in
14217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14218 *) ac_try_echo=$ac_try;;
14219esac
14220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14221 (eval "$ac_try") 2>&5
14222 ac_status=$?
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); }; } &&
14225 { ac_try='test -s conftest.$ac_objext'
14226 { (case "(($ac_try" in
14227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14228 *) ac_try_echo=$ac_try;;
14229esac
14230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231 (eval "$ac_try") 2>&5
14232 ac_status=$?
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; }; then
14235 ac_cv_header_time=yes
14236else
14237 echo "$as_me: failed program was:" >&5
14238sed 's/^/| /' conftest.$ac_ext >&5
14239
14240 ac_cv_header_time=no
14241fi
14242
14243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14244fi
14245{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14246echo "${ECHO_T}$ac_cv_header_time" >&6; }
14247if test $ac_cv_header_time = yes; then
14248
14249cat >>confdefs.h <<\_ACEOF
14250#define TIME_WITH_SYS_TIME 1
14251_ACEOF
14252
14253fi
14254
14255
14256
14257
14258
14259
14260
14261
14262for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14263do
14264as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14265if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14267echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14268if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14269 echo $ECHO_N "(cached) $ECHO_C" >&6
14270fi
14271ac_res=`eval echo '${'$as_ac_Header'}'`
14272 { echo "$as_me:$LINENO: result: $ac_res" >&5
14273echo "${ECHO_T}$ac_res" >&6; }
14274else
14275 # Is the header compilable?
14276{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14277echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14278cat >conftest.$ac_ext <<_ACEOF
14279/* confdefs.h. */
14280_ACEOF
14281cat confdefs.h >>conftest.$ac_ext
14282cat >>conftest.$ac_ext <<_ACEOF
14283/* end confdefs.h. */
14284$ac_includes_default
14285#include <$ac_header>
14286_ACEOF
14287rm -f conftest.$ac_objext
14288if { (ac_try="$ac_compile"
14289case "(($ac_try" in
14290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14291 *) ac_try_echo=$ac_try;;
14292esac
14293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14294 (eval "$ac_compile") 2>conftest.er1
14295 ac_status=$?
14296 grep -v '^ *+' conftest.er1 >conftest.err
14297 rm -f conftest.er1
14298 cat conftest.err >&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } &&
14301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14302 { (case "(($ac_try" in
14303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304 *) ac_try_echo=$ac_try;;
14305esac
14306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14307 (eval "$ac_try") 2>&5
14308 ac_status=$?
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); }; } &&
14311 { ac_try='test -s conftest.$ac_objext'
14312 { (case "(($ac_try" in
14313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14314 *) ac_try_echo=$ac_try;;
14315esac
14316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14317 (eval "$ac_try") 2>&5
14318 ac_status=$?
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; }; then
14321 ac_header_compiler=yes
14322else
14323 echo "$as_me: failed program was:" >&5
14324sed 's/^/| /' conftest.$ac_ext >&5
14325
14326 ac_header_compiler=no
14327fi
14328
14329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14330{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14331echo "${ECHO_T}$ac_header_compiler" >&6; }
14332
14333# Is the header present?
14334{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14335echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14336cat >conftest.$ac_ext <<_ACEOF
14337/* confdefs.h. */
14338_ACEOF
14339cat confdefs.h >>conftest.$ac_ext
14340cat >>conftest.$ac_ext <<_ACEOF
14341/* end confdefs.h. */
14342#include <$ac_header>
14343_ACEOF
14344if { (ac_try="$ac_cpp conftest.$ac_ext"
14345case "(($ac_try" in
14346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347 *) ac_try_echo=$ac_try;;
14348esac
14349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14351 ac_status=$?
14352 grep -v '^ *+' conftest.er1 >conftest.err
14353 rm -f conftest.er1
14354 cat conftest.err >&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); } >/dev/null; then
14357 if test -s conftest.err; then
14358 ac_cpp_err=$ac_c_preproc_warn_flag
14359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14360 else
14361 ac_cpp_err=
14362 fi
14363else
14364 ac_cpp_err=yes
14365fi
14366if test -z "$ac_cpp_err"; then
14367 ac_header_preproc=yes
14368else
14369 echo "$as_me: failed program was:" >&5
14370sed 's/^/| /' conftest.$ac_ext >&5
14371
14372 ac_header_preproc=no
14373fi
14374
14375rm -f conftest.err conftest.$ac_ext
14376{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14377echo "${ECHO_T}$ac_header_preproc" >&6; }
14378
14379# So? What about this header?
14380case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14381 yes:no: )
14382 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14383echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14385echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14386 ac_header_preproc=yes
14387 ;;
14388 no:yes:* )
14389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14390echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14392echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14393 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14394echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14395 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14396echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14398echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14399 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14400echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14401 ( cat <<\_ASBOX
14402## ------------------------------ ##
14403## Report this to bugs@yourdomain ##
14404## ------------------------------ ##
14405_ASBOX
14406 ) | sed "s/^/$as_me: WARNING: /" >&2
14407 ;;
14408esac
14409{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14411if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14412 echo $ECHO_N "(cached) $ECHO_C" >&6
14413else
14414 eval "$as_ac_Header=\$ac_header_preproc"
14415fi
14416ac_res=`eval echo '${'$as_ac_Header'}'`
14417 { echo "$as_me:$LINENO: result: $ac_res" >&5
14418echo "${ECHO_T}$ac_res" >&6; }
14419
14420fi
14421if test `eval echo '${'$as_ac_Header'}'` = yes; then
14422 cat >>confdefs.h <<_ACEOF
14423#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14424_ACEOF
14425
14426fi
14427
14428done
14429
14430
14431
14432
14433
14434
14435
14436for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14437do
14438as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14439if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14441echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14442if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14443 echo $ECHO_N "(cached) $ECHO_C" >&6
14444fi
14445ac_res=`eval echo '${'$as_ac_Header'}'`
14446 { echo "$as_me:$LINENO: result: $ac_res" >&5
14447echo "${ECHO_T}$ac_res" >&6; }
14448else
14449 # Is the header compilable?
14450{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14451echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14452cat >conftest.$ac_ext <<_ACEOF
14453/* confdefs.h. */
14454_ACEOF
14455cat confdefs.h >>conftest.$ac_ext
14456cat >>conftest.$ac_ext <<_ACEOF
14457/* end confdefs.h. */
14458$ac_includes_default
14459#include <$ac_header>
14460_ACEOF
14461rm -f conftest.$ac_objext
14462if { (ac_try="$ac_compile"
14463case "(($ac_try" in
14464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14465 *) ac_try_echo=$ac_try;;
14466esac
14467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14468 (eval "$ac_compile") 2>conftest.er1
14469 ac_status=$?
14470 grep -v '^ *+' conftest.er1 >conftest.err
14471 rm -f conftest.er1
14472 cat conftest.err >&5
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); } &&
14475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14476 { (case "(($ac_try" in
14477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14478 *) ac_try_echo=$ac_try;;
14479esac
14480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14481 (eval "$ac_try") 2>&5
14482 ac_status=$?
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); }; } &&
14485 { ac_try='test -s conftest.$ac_objext'
14486 { (case "(($ac_try" in
14487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14488 *) ac_try_echo=$ac_try;;
14489esac
14490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14491 (eval "$ac_try") 2>&5
14492 ac_status=$?
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); }; }; then
14495 ac_header_compiler=yes
14496else
14497 echo "$as_me: failed program was:" >&5
14498sed 's/^/| /' conftest.$ac_ext >&5
14499
14500 ac_header_compiler=no
14501fi
14502
14503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14504{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14505echo "${ECHO_T}$ac_header_compiler" >&6; }
14506
14507# Is the header present?
14508{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14509echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14510cat >conftest.$ac_ext <<_ACEOF
14511/* confdefs.h. */
14512_ACEOF
14513cat confdefs.h >>conftest.$ac_ext
14514cat >>conftest.$ac_ext <<_ACEOF
14515/* end confdefs.h. */
14516#include <$ac_header>
14517_ACEOF
14518if { (ac_try="$ac_cpp conftest.$ac_ext"
14519case "(($ac_try" in
14520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521 *) ac_try_echo=$ac_try;;
14522esac
14523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14525 ac_status=$?
14526 grep -v '^ *+' conftest.er1 >conftest.err
14527 rm -f conftest.er1
14528 cat conftest.err >&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); } >/dev/null; then
14531 if test -s conftest.err; then
14532 ac_cpp_err=$ac_c_preproc_warn_flag
14533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14534 else
14535 ac_cpp_err=
14536 fi
14537else
14538 ac_cpp_err=yes
14539fi
14540if test -z "$ac_cpp_err"; then
14541 ac_header_preproc=yes
14542else
14543 echo "$as_me: failed program was:" >&5
14544sed 's/^/| /' conftest.$ac_ext >&5
14545
14546 ac_header_preproc=no
14547fi
14548
14549rm -f conftest.err conftest.$ac_ext
14550{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14551echo "${ECHO_T}$ac_header_preproc" >&6; }
14552
14553# So? What about this header?
14554case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14555 yes:no: )
14556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14557echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14559echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14560 ac_header_preproc=yes
14561 ;;
14562 no:yes:* )
14563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14564echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14566echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14568echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14570echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14572echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14574echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14575 ( cat <<\_ASBOX
14576## ------------------------------ ##
14577## Report this to bugs@yourdomain ##
14578## ------------------------------ ##
14579_ASBOX
14580 ) | sed "s/^/$as_me: WARNING: /" >&2
14581 ;;
14582esac
14583{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14586 echo $ECHO_N "(cached) $ECHO_C" >&6
14587else
14588 eval "$as_ac_Header=\$ac_header_preproc"
14589fi
14590ac_res=`eval echo '${'$as_ac_Header'}'`
14591 { echo "$as_me:$LINENO: result: $ac_res" >&5
14592echo "${ECHO_T}$ac_res" >&6; }
14593
14594fi
14595if test `eval echo '${'$as_ac_Header'}'` = yes; then
14596 cat >>confdefs.h <<_ACEOF
14597#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14598_ACEOF
14599
14600fi
14601
14602done
14603
14604
14605
14606for ac_header in utime.h windows.h
14607do
14608as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14609if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14612if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
14614fi
14615ac_res=`eval echo '${'$as_ac_Header'}'`
14616 { echo "$as_me:$LINENO: result: $ac_res" >&5
14617echo "${ECHO_T}$ac_res" >&6; }
14618else
14619 # Is the header compilable?
14620{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14621echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14622cat >conftest.$ac_ext <<_ACEOF
14623/* confdefs.h. */
14624_ACEOF
14625cat confdefs.h >>conftest.$ac_ext
14626cat >>conftest.$ac_ext <<_ACEOF
14627/* end confdefs.h. */
14628$ac_includes_default
14629#include <$ac_header>
14630_ACEOF
14631rm -f conftest.$ac_objext
14632if { (ac_try="$ac_compile"
14633case "(($ac_try" in
14634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635 *) ac_try_echo=$ac_try;;
14636esac
14637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638 (eval "$ac_compile") 2>conftest.er1
14639 ac_status=$?
14640 grep -v '^ *+' conftest.er1 >conftest.err
14641 rm -f conftest.er1
14642 cat conftest.err >&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } &&
14645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14646 { (case "(($ac_try" in
14647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648 *) ac_try_echo=$ac_try;;
14649esac
14650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651 (eval "$ac_try") 2>&5
14652 ac_status=$?
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; } &&
14655 { ac_try='test -s conftest.$ac_objext'
14656 { (case "(($ac_try" in
14657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14658 *) ac_try_echo=$ac_try;;
14659esac
14660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14661 (eval "$ac_try") 2>&5
14662 ac_status=$?
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; }; then
14665 ac_header_compiler=yes
14666else
14667 echo "$as_me: failed program was:" >&5
14668sed 's/^/| /' conftest.$ac_ext >&5
14669
14670 ac_header_compiler=no
14671fi
14672
14673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14674{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14675echo "${ECHO_T}$ac_header_compiler" >&6; }
14676
14677# Is the header present?
14678{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14679echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14680cat >conftest.$ac_ext <<_ACEOF
14681/* confdefs.h. */
14682_ACEOF
14683cat confdefs.h >>conftest.$ac_ext
14684cat >>conftest.$ac_ext <<_ACEOF
14685/* end confdefs.h. */
14686#include <$ac_header>
14687_ACEOF
14688if { (ac_try="$ac_cpp conftest.$ac_ext"
14689case "(($ac_try" in
14690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14691 *) ac_try_echo=$ac_try;;
14692esac
14693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14695 ac_status=$?
14696 grep -v '^ *+' conftest.er1 >conftest.err
14697 rm -f conftest.er1
14698 cat conftest.err >&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); } >/dev/null; then
14701 if test -s conftest.err; then
14702 ac_cpp_err=$ac_c_preproc_warn_flag
14703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14704 else
14705 ac_cpp_err=
14706 fi
14707else
14708 ac_cpp_err=yes
14709fi
14710if test -z "$ac_cpp_err"; then
14711 ac_header_preproc=yes
14712else
14713 echo "$as_me: failed program was:" >&5
14714sed 's/^/| /' conftest.$ac_ext >&5
14715
14716 ac_header_preproc=no
14717fi
14718
14719rm -f conftest.err conftest.$ac_ext
14720{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14721echo "${ECHO_T}$ac_header_preproc" >&6; }
14722
14723# So? What about this header?
14724case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14725 yes:no: )
14726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14727echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14729echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14730 ac_header_preproc=yes
14731 ;;
14732 no:yes:* )
14733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14734echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14736echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14738echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14740echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14742echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14744echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14745 ( cat <<\_ASBOX
14746## ------------------------------ ##
14747## Report this to bugs@yourdomain ##
14748## ------------------------------ ##
14749_ASBOX
14750 ) | sed "s/^/$as_me: WARNING: /" >&2
14751 ;;
14752esac
14753{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14754echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14755if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14756 echo $ECHO_N "(cached) $ECHO_C" >&6
14757else
14758 eval "$as_ac_Header=\$ac_header_preproc"
14759fi
14760ac_res=`eval echo '${'$as_ac_Header'}'`
14761 { echo "$as_me:$LINENO: result: $ac_res" >&5
14762echo "${ECHO_T}$ac_res" >&6; }
14763
14764fi
14765if test `eval echo '${'$as_ac_Header'}'` = yes; then
14766 cat >>confdefs.h <<_ACEOF
14767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14768_ACEOF
14769
14770fi
14771
14772done
14773
14774
14775
14776
14777
14778
14779for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
14780do
14781as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14782if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14785if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14786 echo $ECHO_N "(cached) $ECHO_C" >&6
14787fi
14788ac_res=`eval echo '${'$as_ac_Header'}'`
14789 { echo "$as_me:$LINENO: result: $ac_res" >&5
14790echo "${ECHO_T}$ac_res" >&6; }
14791else
14792 # Is the header compilable?
14793{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14794echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14795cat >conftest.$ac_ext <<_ACEOF
14796/* confdefs.h. */
14797_ACEOF
14798cat confdefs.h >>conftest.$ac_ext
14799cat >>conftest.$ac_ext <<_ACEOF
14800/* end confdefs.h. */
14801$ac_includes_default
14802#include <$ac_header>
14803_ACEOF
14804rm -f conftest.$ac_objext
14805if { (ac_try="$ac_compile"
14806case "(($ac_try" in
14807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14808 *) ac_try_echo=$ac_try;;
14809esac
14810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14811 (eval "$ac_compile") 2>conftest.er1
14812 ac_status=$?
14813 grep -v '^ *+' conftest.er1 >conftest.err
14814 rm -f conftest.er1
14815 cat conftest.err >&5
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); } &&
14818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14819 { (case "(($ac_try" in
14820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14821 *) ac_try_echo=$ac_try;;
14822esac
14823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14824 (eval "$ac_try") 2>&5
14825 ac_status=$?
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); }; } &&
14828 { ac_try='test -s conftest.$ac_objext'
14829 { (case "(($ac_try" in
14830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831 *) ac_try_echo=$ac_try;;
14832esac
14833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14834 (eval "$ac_try") 2>&5
14835 ac_status=$?
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); }; }; then
14838 ac_header_compiler=yes
14839else
14840 echo "$as_me: failed program was:" >&5
14841sed 's/^/| /' conftest.$ac_ext >&5
14842
14843 ac_header_compiler=no
14844fi
14845
14846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14847{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14848echo "${ECHO_T}$ac_header_compiler" >&6; }
14849
14850# Is the header present?
14851{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14852echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14853cat >conftest.$ac_ext <<_ACEOF
14854/* confdefs.h. */
14855_ACEOF
14856cat confdefs.h >>conftest.$ac_ext
14857cat >>conftest.$ac_ext <<_ACEOF
14858/* end confdefs.h. */
14859#include <$ac_header>
14860_ACEOF
14861if { (ac_try="$ac_cpp conftest.$ac_ext"
14862case "(($ac_try" in
14863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14864 *) ac_try_echo=$ac_try;;
14865esac
14866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14868 ac_status=$?
14869 grep -v '^ *+' conftest.er1 >conftest.err
14870 rm -f conftest.er1
14871 cat conftest.err >&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } >/dev/null; then
14874 if test -s conftest.err; then
14875 ac_cpp_err=$ac_c_preproc_warn_flag
14876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14877 else
14878 ac_cpp_err=
14879 fi
14880else
14881 ac_cpp_err=yes
14882fi
14883if test -z "$ac_cpp_err"; then
14884 ac_header_preproc=yes
14885else
14886 echo "$as_me: failed program was:" >&5
14887sed 's/^/| /' conftest.$ac_ext >&5
14888
14889 ac_header_preproc=no
14890fi
14891
14892rm -f conftest.err conftest.$ac_ext
14893{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14894echo "${ECHO_T}$ac_header_preproc" >&6; }
14895
14896# So? What about this header?
14897case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14898 yes:no: )
14899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14900echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14902echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14903 ac_header_preproc=yes
14904 ;;
14905 no:yes:* )
14906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14907echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14909echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14911echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14913echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14915echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14917echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14918 ( cat <<\_ASBOX
14919## ------------------------------ ##
14920## Report this to bugs@yourdomain ##
14921## ------------------------------ ##
14922_ASBOX
14923 ) | sed "s/^/$as_me: WARNING: /" >&2
14924 ;;
14925esac
14926{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14927echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14928if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14929 echo $ECHO_N "(cached) $ECHO_C" >&6
14930else
14931 eval "$as_ac_Header=\$ac_header_preproc"
14932fi
14933ac_res=`eval echo '${'$as_ac_Header'}'`
14934 { echo "$as_me:$LINENO: result: $ac_res" >&5
14935echo "${ECHO_T}$ac_res" >&6; }
14936
14937fi
14938if test `eval echo '${'$as_ac_Header'}'` = yes; then
14939 cat >>confdefs.h <<_ACEOF
14940#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14941_ACEOF
14942
14943fi
14944
14945done
14946
14947
14948
14949
14950
14951for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
14952do
14953as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14954if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14956echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14957if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
14959fi
14960ac_res=`eval echo '${'$as_ac_Header'}'`
14961 { echo "$as_me:$LINENO: result: $ac_res" >&5
14962echo "${ECHO_T}$ac_res" >&6; }
14963else
14964 # Is the header compilable?
14965{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14966echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14967cat >conftest.$ac_ext <<_ACEOF
14968/* confdefs.h. */
14969_ACEOF
14970cat confdefs.h >>conftest.$ac_ext
14971cat >>conftest.$ac_ext <<_ACEOF
14972/* end confdefs.h. */
14973$ac_includes_default
14974#include <$ac_header>
14975_ACEOF
14976rm -f conftest.$ac_objext
14977if { (ac_try="$ac_compile"
14978case "(($ac_try" in
14979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980 *) ac_try_echo=$ac_try;;
14981esac
14982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983 (eval "$ac_compile") 2>conftest.er1
14984 ac_status=$?
14985 grep -v '^ *+' conftest.er1 >conftest.err
14986 rm -f conftest.er1
14987 cat conftest.err >&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } &&
14990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14991 { (case "(($ac_try" in
14992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14993 *) ac_try_echo=$ac_try;;
14994esac
14995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14996 (eval "$ac_try") 2>&5
14997 ac_status=$?
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); }; } &&
15000 { ac_try='test -s conftest.$ac_objext'
15001 { (case "(($ac_try" in
15002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15003 *) ac_try_echo=$ac_try;;
15004esac
15005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15006 (eval "$ac_try") 2>&5
15007 ac_status=$?
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); }; }; then
15010 ac_header_compiler=yes
15011else
15012 echo "$as_me: failed program was:" >&5
15013sed 's/^/| /' conftest.$ac_ext >&5
15014
15015 ac_header_compiler=no
15016fi
15017
15018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15019{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15020echo "${ECHO_T}$ac_header_compiler" >&6; }
15021
15022# Is the header present?
15023{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15024echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15025cat >conftest.$ac_ext <<_ACEOF
15026/* confdefs.h. */
15027_ACEOF
15028cat confdefs.h >>conftest.$ac_ext
15029cat >>conftest.$ac_ext <<_ACEOF
15030/* end confdefs.h. */
15031#include <$ac_header>
15032_ACEOF
15033if { (ac_try="$ac_cpp conftest.$ac_ext"
15034case "(($ac_try" in
15035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036 *) ac_try_echo=$ac_try;;
15037esac
15038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15040 ac_status=$?
15041 grep -v '^ *+' conftest.er1 >conftest.err
15042 rm -f conftest.er1
15043 cat conftest.err >&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); } >/dev/null; then
15046 if test -s conftest.err; then
15047 ac_cpp_err=$ac_c_preproc_warn_flag
15048 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15049 else
15050 ac_cpp_err=
15051 fi
15052else
15053 ac_cpp_err=yes
15054fi
15055if test -z "$ac_cpp_err"; then
15056 ac_header_preproc=yes
15057else
15058 echo "$as_me: failed program was:" >&5
15059sed 's/^/| /' conftest.$ac_ext >&5
15060
15061 ac_header_preproc=no
15062fi
15063
15064rm -f conftest.err conftest.$ac_ext
15065{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15066echo "${ECHO_T}$ac_header_preproc" >&6; }
15067
15068# So? What about this header?
15069case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15070 yes:no: )
15071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15072echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15074echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15075 ac_header_preproc=yes
15076 ;;
15077 no:yes:* )
15078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15079echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15081echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15082 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15083echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15084 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15085echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15087echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15088 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15089echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15090 ( cat <<\_ASBOX
15091## ------------------------------ ##
15092## Report this to bugs@yourdomain ##
15093## ------------------------------ ##
15094_ASBOX
15095 ) | sed "s/^/$as_me: WARNING: /" >&2
15096 ;;
15097esac
15098{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15100if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15101 echo $ECHO_N "(cached) $ECHO_C" >&6
15102else
15103 eval "$as_ac_Header=\$ac_header_preproc"
15104fi
15105ac_res=`eval echo '${'$as_ac_Header'}'`
15106 { echo "$as_me:$LINENO: result: $ac_res" >&5
15107echo "${ECHO_T}$ac_res" >&6; }
15108
15109fi
15110if test `eval echo '${'$as_ac_Header'}'` = yes; then
15111 cat >>confdefs.h <<_ACEOF
15112#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15113_ACEOF
15114
15115fi
15116
15117done
15118
15119
15120for ac_header in valgrind/valgrind.h
15121do
15122as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15123if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15126if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15127 echo $ECHO_N "(cached) $ECHO_C" >&6
15128fi
15129ac_res=`eval echo '${'$as_ac_Header'}'`
15130 { echo "$as_me:$LINENO: result: $ac_res" >&5
15131echo "${ECHO_T}$ac_res" >&6; }
15132else
15133 # Is the header compilable?
15134{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15135echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15136cat >conftest.$ac_ext <<_ACEOF
15137/* confdefs.h. */
15138_ACEOF
15139cat confdefs.h >>conftest.$ac_ext
15140cat >>conftest.$ac_ext <<_ACEOF
15141/* end confdefs.h. */
15142$ac_includes_default
15143#include <$ac_header>
15144_ACEOF
15145rm -f conftest.$ac_objext
15146if { (ac_try="$ac_compile"
15147case "(($ac_try" in
15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149 *) ac_try_echo=$ac_try;;
15150esac
15151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15152 (eval "$ac_compile") 2>conftest.er1
15153 ac_status=$?
15154 grep -v '^ *+' conftest.er1 >conftest.err
15155 rm -f conftest.er1
15156 cat conftest.err >&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); } &&
15159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15160 { (case "(($ac_try" in
15161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15162 *) ac_try_echo=$ac_try;;
15163esac
15164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15165 (eval "$ac_try") 2>&5
15166 ac_status=$?
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); }; } &&
15169 { ac_try='test -s conftest.$ac_objext'
15170 { (case "(($ac_try" in
15171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15172 *) ac_try_echo=$ac_try;;
15173esac
15174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15175 (eval "$ac_try") 2>&5
15176 ac_status=$?
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); }; }; then
15179 ac_header_compiler=yes
15180else
15181 echo "$as_me: failed program was:" >&5
15182sed 's/^/| /' conftest.$ac_ext >&5
15183
15184 ac_header_compiler=no
15185fi
15186
15187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15188{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15189echo "${ECHO_T}$ac_header_compiler" >&6; }
15190
15191# Is the header present?
15192{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15193echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15194cat >conftest.$ac_ext <<_ACEOF
15195/* confdefs.h. */
15196_ACEOF
15197cat confdefs.h >>conftest.$ac_ext
15198cat >>conftest.$ac_ext <<_ACEOF
15199/* end confdefs.h. */
15200#include <$ac_header>
15201_ACEOF
15202if { (ac_try="$ac_cpp conftest.$ac_ext"
15203case "(($ac_try" in
15204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15205 *) ac_try_echo=$ac_try;;
15206esac
15207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15209 ac_status=$?
15210 grep -v '^ *+' conftest.er1 >conftest.err
15211 rm -f conftest.er1
15212 cat conftest.err >&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } >/dev/null; then
15215 if test -s conftest.err; then
15216 ac_cpp_err=$ac_c_preproc_warn_flag
15217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15218 else
15219 ac_cpp_err=
15220 fi
15221else
15222 ac_cpp_err=yes
15223fi
15224if test -z "$ac_cpp_err"; then
15225 ac_header_preproc=yes
15226else
15227 echo "$as_me: failed program was:" >&5
15228sed 's/^/| /' conftest.$ac_ext >&5
15229
15230 ac_header_preproc=no
15231fi
15232
15233rm -f conftest.err conftest.$ac_ext
15234{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15235echo "${ECHO_T}$ac_header_preproc" >&6; }
15236
15237# So? What about this header?
15238case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15239 yes:no: )
15240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15241echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15243echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15244 ac_header_preproc=yes
15245 ;;
15246 no:yes:* )
15247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15248echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15250echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15252echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15254echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15256echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15258echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15259 ( cat <<\_ASBOX
15260## ------------------------------ ##
15261## Report this to bugs@yourdomain ##
15262## ------------------------------ ##
15263_ASBOX
15264 ) | sed "s/^/$as_me: WARNING: /" >&2
15265 ;;
15266esac
15267{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15268echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15270 echo $ECHO_N "(cached) $ECHO_C" >&6
15271else
15272 eval "$as_ac_Header=\$ac_header_preproc"
15273fi
15274ac_res=`eval echo '${'$as_ac_Header'}'`
15275 { echo "$as_me:$LINENO: result: $ac_res" >&5
15276echo "${ECHO_T}$ac_res" >&6; }
15277
15278fi
15279if test `eval echo '${'$as_ac_Header'}'` = yes; then
15280 cat >>confdefs.h <<_ACEOF
15281#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15282_ACEOF
15283
15284fi
15285
15286done
15287
15288
15289for ac_header in fenv.h
15290do
15291as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15292if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15295if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15296 echo $ECHO_N "(cached) $ECHO_C" >&6
15297fi
15298ac_res=`eval echo '${'$as_ac_Header'}'`
15299 { echo "$as_me:$LINENO: result: $ac_res" >&5
15300echo "${ECHO_T}$ac_res" >&6; }
15301else
15302 # Is the header compilable?
15303{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15304echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15305cat >conftest.$ac_ext <<_ACEOF
15306/* confdefs.h. */
15307_ACEOF
15308cat confdefs.h >>conftest.$ac_ext
15309cat >>conftest.$ac_ext <<_ACEOF
15310/* end confdefs.h. */
15311$ac_includes_default
15312#include <$ac_header>
15313_ACEOF
15314rm -f conftest.$ac_objext
15315if { (ac_try="$ac_compile"
15316case "(($ac_try" in
15317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15318 *) ac_try_echo=$ac_try;;
15319esac
15320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15321 (eval "$ac_compile") 2>conftest.er1
15322 ac_status=$?
15323 grep -v '^ *+' conftest.er1 >conftest.err
15324 rm -f conftest.er1
15325 cat conftest.err >&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } &&
15328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15329 { (case "(($ac_try" in
15330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331 *) ac_try_echo=$ac_try;;
15332esac
15333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15334 (eval "$ac_try") 2>&5
15335 ac_status=$?
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; } &&
15338 { ac_try='test -s conftest.$ac_objext'
15339 { (case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15342esac
15343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_try") 2>&5
15345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; }; then
15348 ac_header_compiler=yes
15349else
15350 echo "$as_me: failed program was:" >&5
15351sed 's/^/| /' conftest.$ac_ext >&5
15352
15353 ac_header_compiler=no
15354fi
15355
15356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15357{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15358echo "${ECHO_T}$ac_header_compiler" >&6; }
15359
15360# Is the header present?
15361{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15362echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15363cat >conftest.$ac_ext <<_ACEOF
15364/* confdefs.h. */
15365_ACEOF
15366cat confdefs.h >>conftest.$ac_ext
15367cat >>conftest.$ac_ext <<_ACEOF
15368/* end confdefs.h. */
15369#include <$ac_header>
15370_ACEOF
15371if { (ac_try="$ac_cpp conftest.$ac_ext"
15372case "(($ac_try" in
15373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15374 *) ac_try_echo=$ac_try;;
15375esac
15376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15378 ac_status=$?
15379 grep -v '^ *+' conftest.er1 >conftest.err
15380 rm -f conftest.er1
15381 cat conftest.err >&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } >/dev/null; then
15384 if test -s conftest.err; then
15385 ac_cpp_err=$ac_c_preproc_warn_flag
15386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15387 else
15388 ac_cpp_err=
15389 fi
15390else
15391 ac_cpp_err=yes
15392fi
15393if test -z "$ac_cpp_err"; then
15394 ac_header_preproc=yes
15395else
15396 echo "$as_me: failed program was:" >&5
15397sed 's/^/| /' conftest.$ac_ext >&5
15398
15399 ac_header_preproc=no
15400fi
15401
15402rm -f conftest.err conftest.$ac_ext
15403{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15404echo "${ECHO_T}$ac_header_preproc" >&6; }
15405
15406# So? What about this header?
15407case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15408 yes:no: )
15409 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15410echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15412echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15413 ac_header_preproc=yes
15414 ;;
15415 no:yes:* )
15416 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15417echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15418 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15419echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15420 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15421echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15422 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15423echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15425echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15426 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15427echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15428 ( cat <<\_ASBOX
15429## ------------------------------ ##
15430## Report this to bugs@yourdomain ##
15431## ------------------------------ ##
15432_ASBOX
15433 ) | sed "s/^/$as_me: WARNING: /" >&2
15434 ;;
15435esac
15436{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15437echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15438if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15440else
15441 eval "$as_ac_Header=\$ac_header_preproc"
15442fi
15443ac_res=`eval echo '${'$as_ac_Header'}'`
15444 { echo "$as_me:$LINENO: result: $ac_res" >&5
15445echo "${ECHO_T}$ac_res" >&6; }
15446
15447fi
15448if test `eval echo '${'$as_ac_Header'}'` = yes; then
15449 cat >>confdefs.h <<_ACEOF
15450#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15451_ACEOF
15452
15453fi
15454
15455done
15456
15457if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15458
15459for ac_header in pthread.h
15460do
15461as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15466 echo $ECHO_N "(cached) $ECHO_C" >&6
15467fi
15468ac_res=`eval echo '${'$as_ac_Header'}'`
15469 { echo "$as_me:$LINENO: result: $ac_res" >&5
15470echo "${ECHO_T}$ac_res" >&6; }
15471else
15472 # Is the header compilable?
15473{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15474echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15475cat >conftest.$ac_ext <<_ACEOF
15476/* confdefs.h. */
15477_ACEOF
15478cat confdefs.h >>conftest.$ac_ext
15479cat >>conftest.$ac_ext <<_ACEOF
15480/* end confdefs.h. */
15481$ac_includes_default
15482#include <$ac_header>
15483_ACEOF
15484rm -f conftest.$ac_objext
15485if { (ac_try="$ac_compile"
15486case "(($ac_try" in
15487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15488 *) ac_try_echo=$ac_try;;
15489esac
15490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15491 (eval "$ac_compile") 2>conftest.er1
15492 ac_status=$?
15493 grep -v '^ *+' conftest.er1 >conftest.err
15494 rm -f conftest.er1
15495 cat conftest.err >&5
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); } &&
15498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15499 { (case "(($ac_try" in
15500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501 *) ac_try_echo=$ac_try;;
15502esac
15503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504 (eval "$ac_try") 2>&5
15505 ac_status=$?
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; } &&
15508 { ac_try='test -s conftest.$ac_objext'
15509 { (case "(($ac_try" in
15510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511 *) ac_try_echo=$ac_try;;
15512esac
15513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15514 (eval "$ac_try") 2>&5
15515 ac_status=$?
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; }; then
15518 ac_header_compiler=yes
15519else
15520 echo "$as_me: failed program was:" >&5
15521sed 's/^/| /' conftest.$ac_ext >&5
15522
15523 ac_header_compiler=no
15524fi
15525
15526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15527{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15528echo "${ECHO_T}$ac_header_compiler" >&6; }
15529
15530# Is the header present?
15531{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15532echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15533cat >conftest.$ac_ext <<_ACEOF
15534/* confdefs.h. */
15535_ACEOF
15536cat confdefs.h >>conftest.$ac_ext
15537cat >>conftest.$ac_ext <<_ACEOF
15538/* end confdefs.h. */
15539#include <$ac_header>
15540_ACEOF
15541if { (ac_try="$ac_cpp conftest.$ac_ext"
15542case "(($ac_try" in
15543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544 *) ac_try_echo=$ac_try;;
15545esac
15546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15548 ac_status=$?
15549 grep -v '^ *+' conftest.er1 >conftest.err
15550 rm -f conftest.er1
15551 cat conftest.err >&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); } >/dev/null; then
15554 if test -s conftest.err; then
15555 ac_cpp_err=$ac_c_preproc_warn_flag
15556 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15557 else
15558 ac_cpp_err=
15559 fi
15560else
15561 ac_cpp_err=yes
15562fi
15563if test -z "$ac_cpp_err"; then
15564 ac_header_preproc=yes
15565else
15566 echo "$as_me: failed program was:" >&5
15567sed 's/^/| /' conftest.$ac_ext >&5
15568
15569 ac_header_preproc=no
15570fi
15571
15572rm -f conftest.err conftest.$ac_ext
15573{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15574echo "${ECHO_T}$ac_header_preproc" >&6; }
15575
15576# So? What about this header?
15577case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15578 yes:no: )
15579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15580echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15582echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15583 ac_header_preproc=yes
15584 ;;
15585 no:yes:* )
15586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15587echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15589echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15591echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15593echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15595echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15597echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15598 ( cat <<\_ASBOX
15599## ------------------------------ ##
15600## Report this to bugs@yourdomain ##
15601## ------------------------------ ##
15602_ASBOX
15603 ) | sed "s/^/$as_me: WARNING: /" >&2
15604 ;;
15605esac
15606{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15607echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15608if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15609 echo $ECHO_N "(cached) $ECHO_C" >&6
15610else
15611 eval "$as_ac_Header=\$ac_header_preproc"
15612fi
15613ac_res=`eval echo '${'$as_ac_Header'}'`
15614 { echo "$as_me:$LINENO: result: $ac_res" >&5
15615echo "${ECHO_T}$ac_res" >&6; }
15616
15617fi
15618if test `eval echo '${'$as_ac_Header'}'` = yes; then
15619 cat >>confdefs.h <<_ACEOF
15620#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15621_ACEOF
15622 HAVE_PTHREAD=1
15623
15624else
15625 HAVE_PTHREAD=0
15626
15627fi
15628
15629done
15630
15631else
15632 HAVE_PTHREAD=0
15633
15634fi
15635
15636if test "$llvm_cv_enable_libffi" = "yes" ; then
15637
15638
15639for ac_header in ffi.h ffi/ffi.h
15640do
15641as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15646 echo $ECHO_N "(cached) $ECHO_C" >&6
15647fi
15648ac_res=`eval echo '${'$as_ac_Header'}'`
15649 { echo "$as_me:$LINENO: result: $ac_res" >&5
15650echo "${ECHO_T}$ac_res" >&6; }
15651else
15652 # Is the header compilable?
15653{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15654echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15655cat >conftest.$ac_ext <<_ACEOF
15656/* confdefs.h. */
15657_ACEOF
15658cat confdefs.h >>conftest.$ac_ext
15659cat >>conftest.$ac_ext <<_ACEOF
15660/* end confdefs.h. */
15661$ac_includes_default
15662#include <$ac_header>
15663_ACEOF
15664rm -f conftest.$ac_objext
15665if { (ac_try="$ac_compile"
15666case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15669esac
15670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671 (eval "$ac_compile") 2>conftest.er1
15672 ac_status=$?
15673 grep -v '^ *+' conftest.er1 >conftest.err
15674 rm -f conftest.er1
15675 cat conftest.err >&5
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); } &&
15678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15679 { (case "(($ac_try" in
15680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681 *) ac_try_echo=$ac_try;;
15682esac
15683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684 (eval "$ac_try") 2>&5
15685 ac_status=$?
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); }; } &&
15688 { ac_try='test -s conftest.$ac_objext'
15689 { (case "(($ac_try" in
15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691 *) ac_try_echo=$ac_try;;
15692esac
15693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694 (eval "$ac_try") 2>&5
15695 ac_status=$?
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698 ac_header_compiler=yes
15699else
15700 echo "$as_me: failed program was:" >&5
15701sed 's/^/| /' conftest.$ac_ext >&5
15702
15703 ac_header_compiler=no
15704fi
15705
15706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15707{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15708echo "${ECHO_T}$ac_header_compiler" >&6; }
15709
15710# Is the header present?
15711{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15712echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15713cat >conftest.$ac_ext <<_ACEOF
15714/* confdefs.h. */
15715_ACEOF
15716cat confdefs.h >>conftest.$ac_ext
15717cat >>conftest.$ac_ext <<_ACEOF
15718/* end confdefs.h. */
15719#include <$ac_header>
15720_ACEOF
15721if { (ac_try="$ac_cpp conftest.$ac_ext"
15722case "(($ac_try" in
15723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15724 *) ac_try_echo=$ac_try;;
15725esac
15726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15728 ac_status=$?
15729 grep -v '^ *+' conftest.er1 >conftest.err
15730 rm -f conftest.er1
15731 cat conftest.err >&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } >/dev/null; then
15734 if test -s conftest.err; then
15735 ac_cpp_err=$ac_c_preproc_warn_flag
15736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15737 else
15738 ac_cpp_err=
15739 fi
15740else
15741 ac_cpp_err=yes
15742fi
15743if test -z "$ac_cpp_err"; then
15744 ac_header_preproc=yes
15745else
15746 echo "$as_me: failed program was:" >&5
15747sed 's/^/| /' conftest.$ac_ext >&5
15748
15749 ac_header_preproc=no
15750fi
15751
15752rm -f conftest.err conftest.$ac_ext
15753{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15754echo "${ECHO_T}$ac_header_preproc" >&6; }
15755
15756# So? What about this header?
15757case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15758 yes:no: )
15759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15760echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15762echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15763 ac_header_preproc=yes
15764 ;;
15765 no:yes:* )
15766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15767echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15769echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15771echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15773echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15775echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15777echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15778 ( cat <<\_ASBOX
15779## ------------------------------ ##
15780## Report this to bugs@yourdomain ##
15781## ------------------------------ ##
15782_ASBOX
15783 ) | sed "s/^/$as_me: WARNING: /" >&2
15784 ;;
15785esac
15786{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15788if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15790else
15791 eval "$as_ac_Header=\$ac_header_preproc"
15792fi
15793ac_res=`eval echo '${'$as_ac_Header'}'`
15794 { echo "$as_me:$LINENO: result: $ac_res" >&5
15795echo "${ECHO_T}$ac_res" >&6; }
15796
15797fi
15798if test `eval echo '${'$as_ac_Header'}'` = yes; then
15799 cat >>confdefs.h <<_ACEOF
15800#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15801_ACEOF
15802
15803fi
15804
15805done
15806
15807fi
15808
15809
15810for ac_header in CrashReporterClient.h
15811do
15812as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15813if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15815echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15816if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15817 echo $ECHO_N "(cached) $ECHO_C" >&6
15818fi
15819ac_res=`eval echo '${'$as_ac_Header'}'`
15820 { echo "$as_me:$LINENO: result: $ac_res" >&5
15821echo "${ECHO_T}$ac_res" >&6; }
15822else
15823 # Is the header compilable?
15824{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15825echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15826cat >conftest.$ac_ext <<_ACEOF
15827/* confdefs.h. */
15828_ACEOF
15829cat confdefs.h >>conftest.$ac_ext
15830cat >>conftest.$ac_ext <<_ACEOF
15831/* end confdefs.h. */
15832$ac_includes_default
15833#include <$ac_header>
15834_ACEOF
15835rm -f conftest.$ac_objext
15836if { (ac_try="$ac_compile"
15837case "(($ac_try" in
15838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15839 *) ac_try_echo=$ac_try;;
15840esac
15841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15842 (eval "$ac_compile") 2>conftest.er1
15843 ac_status=$?
15844 grep -v '^ *+' conftest.er1 >conftest.err
15845 rm -f conftest.er1
15846 cat conftest.err >&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); } &&
15849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15850 { (case "(($ac_try" in
15851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15852 *) ac_try_echo=$ac_try;;
15853esac
15854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15855 (eval "$ac_try") 2>&5
15856 ac_status=$?
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; } &&
15859 { ac_try='test -s conftest.$ac_objext'
15860 { (case "(($ac_try" in
15861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862 *) ac_try_echo=$ac_try;;
15863esac
15864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15865 (eval "$ac_try") 2>&5
15866 ac_status=$?
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; }; then
15869 ac_header_compiler=yes
15870else
15871 echo "$as_me: failed program was:" >&5
15872sed 's/^/| /' conftest.$ac_ext >&5
15873
15874 ac_header_compiler=no
15875fi
15876
15877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15878{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15879echo "${ECHO_T}$ac_header_compiler" >&6; }
15880
15881# Is the header present?
15882{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15883echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15884cat >conftest.$ac_ext <<_ACEOF
15885/* confdefs.h. */
15886_ACEOF
15887cat confdefs.h >>conftest.$ac_ext
15888cat >>conftest.$ac_ext <<_ACEOF
15889/* end confdefs.h. */
15890#include <$ac_header>
15891_ACEOF
15892if { (ac_try="$ac_cpp conftest.$ac_ext"
15893case "(($ac_try" in
15894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15895 *) ac_try_echo=$ac_try;;
15896esac
15897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15899 ac_status=$?
15900 grep -v '^ *+' conftest.er1 >conftest.err
15901 rm -f conftest.er1
15902 cat conftest.err >&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); } >/dev/null; then
15905 if test -s conftest.err; then
15906 ac_cpp_err=$ac_c_preproc_warn_flag
15907 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15908 else
15909 ac_cpp_err=
15910 fi
15911else
15912 ac_cpp_err=yes
15913fi
15914if test -z "$ac_cpp_err"; then
15915 ac_header_preproc=yes
15916else
15917 echo "$as_me: failed program was:" >&5
15918sed 's/^/| /' conftest.$ac_ext >&5
15919
15920 ac_header_preproc=no
15921fi
15922
15923rm -f conftest.err conftest.$ac_ext
15924{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15925echo "${ECHO_T}$ac_header_preproc" >&6; }
15926
15927# So? What about this header?
15928case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15929 yes:no: )
15930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15931echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15933echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15934 ac_header_preproc=yes
15935 ;;
15936 no:yes:* )
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15938echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15940echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15942echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15944echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15946echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15948echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15949 ( cat <<\_ASBOX
15950## ------------------------------ ##
15951## Report this to bugs@yourdomain ##
15952## ------------------------------ ##
15953_ASBOX
15954 ) | sed "s/^/$as_me: WARNING: /" >&2
15955 ;;
15956esac
15957{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15960 echo $ECHO_N "(cached) $ECHO_C" >&6
15961else
15962 eval "$as_ac_Header=\$ac_header_preproc"
15963fi
15964ac_res=`eval echo '${'$as_ac_Header'}'`
15965 { echo "$as_me:$LINENO: result: $ac_res" >&5
15966echo "${ECHO_T}$ac_res" >&6; }
15967
15968fi
15969if test `eval echo '${'$as_ac_Header'}'` = yes; then
15970 cat >>confdefs.h <<_ACEOF
15971#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15972_ACEOF
15973
15974fi
15975
15976done
15977
15978
15979{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
15980echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
15981cat >conftest.$ac_ext <<_ACEOF
15982/* confdefs.h. */
15983_ACEOF
15984cat confdefs.h >>conftest.$ac_ext
15985cat >>conftest.$ac_ext <<_ACEOF
15986/* end confdefs.h. */
15987extern const char *__crashreporter_info__;
15988 int main() {
15989 __crashreporter_info__ = "test";
15990 return 0;
15991 }
15992
15993_ACEOF
15994rm -f conftest.$ac_objext conftest$ac_exeext
15995if { (ac_try="$ac_link"
15996case "(($ac_try" in
15997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15998 *) ac_try_echo=$ac_try;;
15999esac
16000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16001 (eval "$ac_link") 2>conftest.er1
16002 ac_status=$?
16003 grep -v '^ *+' conftest.er1 >conftest.err
16004 rm -f conftest.er1
16005 cat conftest.err >&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); } &&
16008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16009 { (case "(($ac_try" in
16010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011 *) ac_try_echo=$ac_try;;
16012esac
16013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014 (eval "$ac_try") 2>&5
16015 ac_status=$?
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; } &&
16018 { ac_try='test -s conftest$ac_exeext'
16019 { (case "(($ac_try" in
16020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16021 *) ac_try_echo=$ac_try;;
16022esac
16023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16024 (eval "$ac_try") 2>&5
16025 ac_status=$?
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); }; }; then
16028 { echo "$as_me:$LINENO: result: yes" >&5
16029echo "${ECHO_T}yes" >&6; }
16030
16031cat >>confdefs.h <<\_ACEOF
16032#define HAVE_CRASHREPORTER_INFO 1
16033_ACEOF
16034
16035else
16036 echo "$as_me: failed program was:" >&5
16037sed 's/^/| /' conftest.$ac_ext >&5
16038
16039 { echo "$as_me:$LINENO: result: no" >&5
16040echo "${ECHO_T}no" >&6; }
16041
16042cat >>confdefs.h <<\_ACEOF
16043#define HAVE_CRASHREPORTER_INFO 0
16044_ACEOF
16045
16046fi
16047
16048rm -f core conftest.err conftest.$ac_objext \
16049 conftest$ac_exeext conftest.$ac_ext
16050
16051
16052
16053
16054 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16055echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16056if test "${ac_cv_huge_val_sanity+set}" = set; then
16057 echo $ECHO_N "(cached) $ECHO_C" >&6
16058else
16059
16060 ac_ext=cpp
16061ac_cpp='$CXXCPP $CPPFLAGS'
16062ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16063ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16064ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16065
16066 ac_save_CXXFLAGS=$CXXFLAGS
16067 CXXFLAGS=-pedantic
16068 if test "$cross_compiling" = yes; then
16069 ac_cv_huge_val_sanity=yes
16070else
16071 cat >conftest.$ac_ext <<_ACEOF
16072/* confdefs.h. */
16073_ACEOF
16074cat confdefs.h >>conftest.$ac_ext
16075cat >>conftest.$ac_ext <<_ACEOF
16076/* end confdefs.h. */
16077#include <math.h>
16078int
16079main ()
16080{
16081double x = HUGE_VAL; return x != x;
16082 ;
16083 return 0;
16084}
16085_ACEOF
16086rm -f conftest$ac_exeext
16087if { (ac_try="$ac_link"
16088case "(($ac_try" in
16089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16090 *) ac_try_echo=$ac_try;;
16091esac
16092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16093 (eval "$ac_link") 2>&5
16094 ac_status=$?
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16097 { (case "(($ac_try" in
16098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16099 *) ac_try_echo=$ac_try;;
16100esac
16101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16102 (eval "$ac_try") 2>&5
16103 ac_status=$?
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; }; then
16106 ac_cv_huge_val_sanity=yes
16107else
16108 echo "$as_me: program exited with status $ac_status" >&5
16109echo "$as_me: failed program was:" >&5
16110sed 's/^/| /' conftest.$ac_ext >&5
16111
16112( exit $ac_status )
16113ac_cv_huge_val_sanity=no
16114fi
16115rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16116fi
16117
16118
16119 CXXFLAGS=$ac_save_CXXFLAGS
16120 ac_ext=c
16121ac_cpp='$CPP $CPPFLAGS'
16122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16124ac_compiler_gnu=$ac_cv_c_compiler_gnu
16125
16126
16127fi
16128{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16129echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16130 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16131
16132
16133{ echo "$as_me:$LINENO: checking for pid_t" >&5
16134echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16135if test "${ac_cv_type_pid_t+set}" = set; then
16136 echo $ECHO_N "(cached) $ECHO_C" >&6
16137else
16138 cat >conftest.$ac_ext <<_ACEOF
16139/* confdefs.h. */
16140_ACEOF
16141cat confdefs.h >>conftest.$ac_ext
16142cat >>conftest.$ac_ext <<_ACEOF
16143/* end confdefs.h. */
16144$ac_includes_default
16145typedef pid_t ac__type_new_;
16146int
16147main ()
16148{
16149if ((ac__type_new_ *) 0)
16150 return 0;
16151if (sizeof (ac__type_new_))
16152 return 0;
16153 ;
16154 return 0;
16155}
16156_ACEOF
16157rm -f conftest.$ac_objext
16158if { (ac_try="$ac_compile"
16159case "(($ac_try" in
16160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161 *) ac_try_echo=$ac_try;;
16162esac
16163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164 (eval "$ac_compile") 2>conftest.er1
16165 ac_status=$?
16166 grep -v '^ *+' conftest.er1 >conftest.err
16167 rm -f conftest.er1
16168 cat conftest.err >&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } &&
16171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16172 { (case "(($ac_try" in
16173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16174 *) ac_try_echo=$ac_try;;
16175esac
16176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16177 (eval "$ac_try") 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; } &&
16181 { ac_try='test -s conftest.$ac_objext'
16182 { (case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16185esac
16186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187 (eval "$ac_try") 2>&5
16188 ac_status=$?
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; }; then
16191 ac_cv_type_pid_t=yes
16192else
16193 echo "$as_me: failed program was:" >&5
16194sed 's/^/| /' conftest.$ac_ext >&5
16195
16196 ac_cv_type_pid_t=no
16197fi
16198
16199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16200fi
16201{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16202echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16203if test $ac_cv_type_pid_t = yes; then
16204 :
16205else
16206
16207cat >>confdefs.h <<_ACEOF
16208#define pid_t int
16209_ACEOF
16210
16211fi
16212
16213{ echo "$as_me:$LINENO: checking for size_t" >&5
16214echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16215if test "${ac_cv_type_size_t+set}" = set; then
16216 echo $ECHO_N "(cached) $ECHO_C" >&6
16217else
16218 cat >conftest.$ac_ext <<_ACEOF
16219/* confdefs.h. */
16220_ACEOF
16221cat confdefs.h >>conftest.$ac_ext
16222cat >>conftest.$ac_ext <<_ACEOF
16223/* end confdefs.h. */
16224$ac_includes_default
16225typedef size_t ac__type_new_;
16226int
16227main ()
16228{
16229if ((ac__type_new_ *) 0)
16230 return 0;
16231if (sizeof (ac__type_new_))
16232 return 0;
16233 ;
16234 return 0;
16235}
16236_ACEOF
16237rm -f conftest.$ac_objext
16238if { (ac_try="$ac_compile"
16239case "(($ac_try" in
16240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16241 *) ac_try_echo=$ac_try;;
16242esac
16243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16244 (eval "$ac_compile") 2>conftest.er1
16245 ac_status=$?
16246 grep -v '^ *+' conftest.er1 >conftest.err
16247 rm -f conftest.er1
16248 cat conftest.err >&5
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); } &&
16251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16252 { (case "(($ac_try" in
16253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16254 *) ac_try_echo=$ac_try;;
16255esac
16256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16257 (eval "$ac_try") 2>&5
16258 ac_status=$?
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); }; } &&
16261 { ac_try='test -s conftest.$ac_objext'
16262 { (case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16265esac
16266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_try") 2>&5
16268 ac_status=$?
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; }; then
16271 ac_cv_type_size_t=yes
16272else
16273 echo "$as_me: failed program was:" >&5
16274sed 's/^/| /' conftest.$ac_ext >&5
16275
16276 ac_cv_type_size_t=no
16277fi
16278
16279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16280fi
16281{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16282echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16283if test $ac_cv_type_size_t = yes; then
16284 :
16285else
16286
16287cat >>confdefs.h <<_ACEOF
16288#define size_t unsigned int
16289_ACEOF
16290
16291fi
16292
16293
16294cat >>confdefs.h <<_ACEOF
16295#define RETSIGTYPE void
16296_ACEOF
16297
16298{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16299echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16300if test "${ac_cv_struct_tm+set}" = set; then
16301 echo $ECHO_N "(cached) $ECHO_C" >&6
16302else
16303 cat >conftest.$ac_ext <<_ACEOF
16304/* confdefs.h. */
16305_ACEOF
16306cat confdefs.h >>conftest.$ac_ext
16307cat >>conftest.$ac_ext <<_ACEOF
16308/* end confdefs.h. */
16309#include <sys/types.h>
16310#include <time.h>
16311
16312int
16313main ()
16314{
16315struct tm *tp; tp->tm_sec;
16316 ;
16317 return 0;
16318}
16319_ACEOF
16320rm -f conftest.$ac_objext
16321if { (ac_try="$ac_compile"
16322case "(($ac_try" in
16323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16324 *) ac_try_echo=$ac_try;;
16325esac
16326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16327 (eval "$ac_compile") 2>conftest.er1
16328 ac_status=$?
16329 grep -v '^ *+' conftest.er1 >conftest.err
16330 rm -f conftest.er1
16331 cat conftest.err >&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } &&
16334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16335 { (case "(($ac_try" in
16336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16337 *) ac_try_echo=$ac_try;;
16338esac
16339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16340 (eval "$ac_try") 2>&5
16341 ac_status=$?
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); }; } &&
16344 { ac_try='test -s conftest.$ac_objext'
16345 { (case "(($ac_try" in
16346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16347 *) ac_try_echo=$ac_try;;
16348esac
16349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16350 (eval "$ac_try") 2>&5
16351 ac_status=$?
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; }; then
16354 ac_cv_struct_tm=time.h
16355else
16356 echo "$as_me: failed program was:" >&5
16357sed 's/^/| /' conftest.$ac_ext >&5
16358
16359 ac_cv_struct_tm=sys/time.h
16360fi
16361
16362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16363fi
16364{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16365echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16366if test $ac_cv_struct_tm = sys/time.h; then
16367
16368cat >>confdefs.h <<\_ACEOF
16369#define TM_IN_SYS_TIME 1
16370_ACEOF
16371
16372fi
16373
16374{ echo "$as_me:$LINENO: checking for int64_t" >&5
16375echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16376if test "${ac_cv_type_int64_t+set}" = set; then
16377 echo $ECHO_N "(cached) $ECHO_C" >&6
16378else
16379 cat >conftest.$ac_ext <<_ACEOF
16380/* confdefs.h. */
16381_ACEOF
16382cat confdefs.h >>conftest.$ac_ext
16383cat >>conftest.$ac_ext <<_ACEOF
16384/* end confdefs.h. */
16385$ac_includes_default
16386typedef int64_t ac__type_new_;
16387int
16388main ()
16389{
16390if ((ac__type_new_ *) 0)
16391 return 0;
16392if (sizeof (ac__type_new_))
16393 return 0;
16394 ;
16395 return 0;
16396}
16397_ACEOF
16398rm -f conftest.$ac_objext
16399if { (ac_try="$ac_compile"
16400case "(($ac_try" in
16401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402 *) ac_try_echo=$ac_try;;
16403esac
16404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405 (eval "$ac_compile") 2>conftest.er1
16406 ac_status=$?
16407 grep -v '^ *+' conftest.er1 >conftest.err
16408 rm -f conftest.er1
16409 cat conftest.err >&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); } &&
16412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16413 { (case "(($ac_try" in
16414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16415 *) ac_try_echo=$ac_try;;
16416esac
16417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16418 (eval "$ac_try") 2>&5
16419 ac_status=$?
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; } &&
16422 { ac_try='test -s conftest.$ac_objext'
16423 { (case "(($ac_try" in
16424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425 *) ac_try_echo=$ac_try;;
16426esac
16427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428 (eval "$ac_try") 2>&5
16429 ac_status=$?
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; }; then
16432 ac_cv_type_int64_t=yes
16433else
16434 echo "$as_me: failed program was:" >&5
16435sed 's/^/| /' conftest.$ac_ext >&5
16436
16437 ac_cv_type_int64_t=no
16438fi
16439
16440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16441fi
16442{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16443echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16444if test $ac_cv_type_int64_t = yes; then
16445
16446cat >>confdefs.h <<_ACEOF
16447#define HAVE_INT64_T 1
16448_ACEOF
16449
16450
16451else
16452 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16453echo "$as_me: error: Type int64_t required but not found" >&2;}
16454 { (exit 1); exit 1; }; }
16455fi
16456
16457{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16458echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16459if test "${ac_cv_type_uint64_t+set}" = set; then
16460 echo $ECHO_N "(cached) $ECHO_C" >&6
16461else
16462 cat >conftest.$ac_ext <<_ACEOF
16463/* confdefs.h. */
16464_ACEOF
16465cat confdefs.h >>conftest.$ac_ext
16466cat >>conftest.$ac_ext <<_ACEOF
16467/* end confdefs.h. */
16468$ac_includes_default
16469typedef uint64_t ac__type_new_;
16470int
16471main ()
16472{
16473if ((ac__type_new_ *) 0)
16474 return 0;
16475if (sizeof (ac__type_new_))
16476 return 0;
16477 ;
16478 return 0;
16479}
16480_ACEOF
16481rm -f conftest.$ac_objext
16482if { (ac_try="$ac_compile"
16483case "(($ac_try" in
16484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16485 *) ac_try_echo=$ac_try;;
16486esac
16487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16488 (eval "$ac_compile") 2>conftest.er1
16489 ac_status=$?
16490 grep -v '^ *+' conftest.er1 >conftest.err
16491 rm -f conftest.er1
16492 cat conftest.err >&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); } &&
16495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16496 { (case "(($ac_try" in
16497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16498 *) ac_try_echo=$ac_try;;
16499esac
16500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16501 (eval "$ac_try") 2>&5
16502 ac_status=$?
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; } &&
16505 { ac_try='test -s conftest.$ac_objext'
16506 { (case "(($ac_try" in
16507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16508 *) ac_try_echo=$ac_try;;
16509esac
16510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16511 (eval "$ac_try") 2>&5
16512 ac_status=$?
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); }; }; then
16515 ac_cv_type_uint64_t=yes
16516else
16517 echo "$as_me: failed program was:" >&5
16518sed 's/^/| /' conftest.$ac_ext >&5
16519
16520 ac_cv_type_uint64_t=no
16521fi
16522
16523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16524fi
16525{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16526echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16527if test $ac_cv_type_uint64_t = yes; then
16528
16529cat >>confdefs.h <<_ACEOF
16530#define HAVE_UINT64_T 1
16531_ACEOF
16532
16533
16534else
16535 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16536echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16537if test "${ac_cv_type_u_int64_t+set}" = set; then
16538 echo $ECHO_N "(cached) $ECHO_C" >&6
16539else
16540 cat >conftest.$ac_ext <<_ACEOF
16541/* confdefs.h. */
16542_ACEOF
16543cat confdefs.h >>conftest.$ac_ext
16544cat >>conftest.$ac_ext <<_ACEOF
16545/* end confdefs.h. */
16546$ac_includes_default
16547typedef u_int64_t ac__type_new_;
16548int
16549main ()
16550{
16551if ((ac__type_new_ *) 0)
16552 return 0;
16553if (sizeof (ac__type_new_))
16554 return 0;
16555 ;
16556 return 0;
16557}
16558_ACEOF
16559rm -f conftest.$ac_objext
16560if { (ac_try="$ac_compile"
16561case "(($ac_try" in
16562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16563 *) ac_try_echo=$ac_try;;
16564esac
16565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16566 (eval "$ac_compile") 2>conftest.er1
16567 ac_status=$?
16568 grep -v '^ *+' conftest.er1 >conftest.err
16569 rm -f conftest.er1
16570 cat conftest.err >&5
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); } &&
16573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16574 { (case "(($ac_try" in
16575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576 *) ac_try_echo=$ac_try;;
16577esac
16578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16579 (eval "$ac_try") 2>&5
16580 ac_status=$?
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); }; } &&
16583 { ac_try='test -s conftest.$ac_objext'
16584 { (case "(($ac_try" in
16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586 *) ac_try_echo=$ac_try;;
16587esac
16588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589 (eval "$ac_try") 2>&5
16590 ac_status=$?
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; }; then
16593 ac_cv_type_u_int64_t=yes
16594else
16595 echo "$as_me: failed program was:" >&5
16596sed 's/^/| /' conftest.$ac_ext >&5
16597
16598 ac_cv_type_u_int64_t=no
16599fi
16600
16601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16602fi
16603{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16604echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16605if test $ac_cv_type_u_int64_t = yes; then
16606
16607cat >>confdefs.h <<_ACEOF
16608#define HAVE_U_INT64_T 1
16609_ACEOF
16610
16611
16612else
16613 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16614echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16615 { (exit 1); exit 1; }; }
16616fi
16617
16618fi
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16630do
16631as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16632{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16633echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16634if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16635 echo $ECHO_N "(cached) $ECHO_C" >&6
16636else
16637 cat >conftest.$ac_ext <<_ACEOF
16638/* confdefs.h. */
16639_ACEOF
16640cat confdefs.h >>conftest.$ac_ext
16641cat >>conftest.$ac_ext <<_ACEOF
16642/* end confdefs.h. */
16643/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16645#define $ac_func innocuous_$ac_func
16646
16647/* System header to define __stub macros and hopefully few prototypes,
16648 which can conflict with char $ac_func (); below.
16649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16650 <limits.h> exists even on freestanding compilers. */
16651
16652#ifdef __STDC__
16653# include <limits.h>
16654#else
16655# include <assert.h>
16656#endif
16657
16658#undef $ac_func
16659
16660/* Override any GCC internal prototype to avoid an error.
16661 Use char because int might match the return type of a GCC
16662 builtin and then its argument prototype would still apply. */
16663#ifdef __cplusplus
16664extern "C"
16665#endif
16666char $ac_func ();
16667/* The GNU C library defines this for functions which it implements
16668 to always fail with ENOSYS. Some functions are actually named
16669 something starting with __ and the normal name is an alias. */
16670#if defined __stub_$ac_func || defined __stub___$ac_func
16671choke me
16672#endif
16673
16674int
16675main ()
16676{
16677return $ac_func ();
16678 ;
16679 return 0;
16680}
16681_ACEOF
16682rm -f conftest.$ac_objext conftest$ac_exeext
16683if { (ac_try="$ac_link"
16684case "(($ac_try" in
16685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16686 *) ac_try_echo=$ac_try;;
16687esac
16688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16689 (eval "$ac_link") 2>conftest.er1
16690 ac_status=$?
16691 grep -v '^ *+' conftest.er1 >conftest.err
16692 rm -f conftest.er1
16693 cat conftest.err >&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); } &&
16696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16697 { (case "(($ac_try" in
16698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699 *) ac_try_echo=$ac_try;;
16700esac
16701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702 (eval "$ac_try") 2>&5
16703 ac_status=$?
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); }; } &&
16706 { ac_try='test -s conftest$ac_exeext'
16707 { (case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16710esac
16711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712 (eval "$ac_try") 2>&5
16713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; }; then
16716 eval "$as_ac_var=yes"
16717else
16718 echo "$as_me: failed program was:" >&5
16719sed 's/^/| /' conftest.$ac_ext >&5
16720
16721 eval "$as_ac_var=no"
16722fi
16723
16724rm -f core conftest.err conftest.$ac_objext \
16725 conftest$ac_exeext conftest.$ac_ext
16726fi
16727ac_res=`eval echo '${'$as_ac_var'}'`
16728 { echo "$as_me:$LINENO: result: $ac_res" >&5
16729echo "${ECHO_T}$ac_res" >&6; }
16730if test `eval echo '${'$as_ac_var'}'` = yes; then
16731 cat >>confdefs.h <<_ACEOF
16732#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16733_ACEOF
16734
16735fi
16736done
16737
16738
16739
16740
16741
16742for ac_func in powf fmodf strtof round
16743do
16744as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16745{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16746echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16747if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16748 echo $ECHO_N "(cached) $ECHO_C" >&6
16749else
16750 cat >conftest.$ac_ext <<_ACEOF
16751/* confdefs.h. */
16752_ACEOF
16753cat confdefs.h >>conftest.$ac_ext
16754cat >>conftest.$ac_ext <<_ACEOF
16755/* end confdefs.h. */
16756/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16758#define $ac_func innocuous_$ac_func
16759
16760/* System header to define __stub macros and hopefully few prototypes,
16761 which can conflict with char $ac_func (); below.
16762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16763 <limits.h> exists even on freestanding compilers. */
16764
16765#ifdef __STDC__
16766# include <limits.h>
16767#else
16768# include <assert.h>
16769#endif
16770
16771#undef $ac_func
16772
16773/* Override any GCC internal prototype to avoid an error.
16774 Use char because int might match the return type of a GCC
16775 builtin and then its argument prototype would still apply. */
16776#ifdef __cplusplus
16777extern "C"
16778#endif
16779char $ac_func ();
16780/* The GNU C library defines this for functions which it implements
16781 to always fail with ENOSYS. Some functions are actually named
16782 something starting with __ and the normal name is an alias. */
16783#if defined __stub_$ac_func || defined __stub___$ac_func
16784choke me
16785#endif
16786
16787int
16788main ()
16789{
16790return $ac_func ();
16791 ;
16792 return 0;
16793}
16794_ACEOF
16795rm -f conftest.$ac_objext conftest$ac_exeext
16796if { (ac_try="$ac_link"
16797case "(($ac_try" in
16798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16800esac
16801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802 (eval "$ac_link") 2>conftest.er1
16803 ac_status=$?
16804 grep -v '^ *+' conftest.er1 >conftest.err
16805 rm -f conftest.er1
16806 cat conftest.err >&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } &&
16809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16810 { (case "(($ac_try" in
16811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812 *) ac_try_echo=$ac_try;;
16813esac
16814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16815 (eval "$ac_try") 2>&5
16816 ac_status=$?
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; } &&
16819 { ac_try='test -s conftest$ac_exeext'
16820 { (case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16823esac
16824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 (eval "$ac_try") 2>&5
16826 ac_status=$?
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; }; then
16829 eval "$as_ac_var=yes"
16830else
16831 echo "$as_me: failed program was:" >&5
16832sed 's/^/| /' conftest.$ac_ext >&5
16833
16834 eval "$as_ac_var=no"
16835fi
16836
16837rm -f core conftest.err conftest.$ac_objext \
16838 conftest$ac_exeext conftest.$ac_ext
16839fi
16840ac_res=`eval echo '${'$as_ac_var'}'`
16841 { echo "$as_me:$LINENO: result: $ac_res" >&5
16842echo "${ECHO_T}$ac_res" >&6; }
16843if test `eval echo '${'$as_ac_var'}'` = yes; then
16844 cat >>confdefs.h <<_ACEOF
16845#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16846_ACEOF
16847
16848fi
16849done
16850
16851
16852
16853
16854
16855
16856for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
16857do
16858as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16859{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16860echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16861if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16862 echo $ECHO_N "(cached) $ECHO_C" >&6
16863else
16864 cat >conftest.$ac_ext <<_ACEOF
16865/* confdefs.h. */
16866_ACEOF
16867cat confdefs.h >>conftest.$ac_ext
16868cat >>conftest.$ac_ext <<_ACEOF
16869/* end confdefs.h. */
16870/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16872#define $ac_func innocuous_$ac_func
16873
16874/* System header to define __stub macros and hopefully few prototypes,
16875 which can conflict with char $ac_func (); below.
16876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16877 <limits.h> exists even on freestanding compilers. */
16878
16879#ifdef __STDC__
16880# include <limits.h>
16881#else
16882# include <assert.h>
16883#endif
16884
16885#undef $ac_func
16886
16887/* Override any GCC internal prototype to avoid an error.
16888 Use char because int might match the return type of a GCC
16889 builtin and then its argument prototype would still apply. */
16890#ifdef __cplusplus
16891extern "C"
16892#endif
16893char $ac_func ();
16894/* The GNU C library defines this for functions which it implements
16895 to always fail with ENOSYS. Some functions are actually named
16896 something starting with __ and the normal name is an alias. */
16897#if defined __stub_$ac_func || defined __stub___$ac_func
16898choke me
16899#endif
16900
16901int
16902main ()
16903{
16904return $ac_func ();
16905 ;
16906 return 0;
16907}
16908_ACEOF
16909rm -f conftest.$ac_objext conftest$ac_exeext
16910if { (ac_try="$ac_link"
16911case "(($ac_try" in
16912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16913 *) ac_try_echo=$ac_try;;
16914esac
16915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16916 (eval "$ac_link") 2>conftest.er1
16917 ac_status=$?
16918 grep -v '^ *+' conftest.er1 >conftest.err
16919 rm -f conftest.er1
16920 cat conftest.err >&5
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); } &&
16923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16924 { (case "(($ac_try" in
16925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16926 *) ac_try_echo=$ac_try;;
16927esac
16928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16929 (eval "$ac_try") 2>&5
16930 ac_status=$?
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); }; } &&
16933 { ac_try='test -s conftest$ac_exeext'
16934 { (case "(($ac_try" in
16935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16936 *) ac_try_echo=$ac_try;;
16937esac
16938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16939 (eval "$ac_try") 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16943 eval "$as_ac_var=yes"
16944else
16945 echo "$as_me: failed program was:" >&5
16946sed 's/^/| /' conftest.$ac_ext >&5
16947
16948 eval "$as_ac_var=no"
16949fi
16950
16951rm -f core conftest.err conftest.$ac_objext \
16952 conftest$ac_exeext conftest.$ac_ext
16953fi
16954ac_res=`eval echo '${'$as_ac_var'}'`
16955 { echo "$as_me:$LINENO: result: $ac_res" >&5
16956echo "${ECHO_T}$ac_res" >&6; }
16957if test `eval echo '${'$as_ac_var'}'` = yes; then
16958 cat >>confdefs.h <<_ACEOF
16959#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16960_ACEOF
16961
16962fi
16963done
16964
16965
16966
16967
16968for ac_func in isatty mkdtemp mkstemp
16969do
16970as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16971{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16972echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16973if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16974 echo $ECHO_N "(cached) $ECHO_C" >&6
16975else
16976 cat >conftest.$ac_ext <<_ACEOF
16977/* confdefs.h. */
16978_ACEOF
16979cat confdefs.h >>conftest.$ac_ext
16980cat >>conftest.$ac_ext <<_ACEOF
16981/* end confdefs.h. */
16982/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16984#define $ac_func innocuous_$ac_func
16985
16986/* System header to define __stub macros and hopefully few prototypes,
16987 which can conflict with char $ac_func (); below.
16988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16989 <limits.h> exists even on freestanding compilers. */
16990
16991#ifdef __STDC__
16992# include <limits.h>
16993#else
16994# include <assert.h>
16995#endif
16996
16997#undef $ac_func
16998
16999/* Override any GCC internal prototype to avoid an error.
17000 Use char because int might match the return type of a GCC
17001 builtin and then its argument prototype would still apply. */
17002#ifdef __cplusplus
17003extern "C"
17004#endif
17005char $ac_func ();
17006/* The GNU C library defines this for functions which it implements
17007 to always fail with ENOSYS. Some functions are actually named
17008 something starting with __ and the normal name is an alias. */
17009#if defined __stub_$ac_func || defined __stub___$ac_func
17010choke me
17011#endif
17012
17013int
17014main ()
17015{
17016return $ac_func ();
17017 ;
17018 return 0;
17019}
17020_ACEOF
17021rm -f conftest.$ac_objext conftest$ac_exeext
17022if { (ac_try="$ac_link"
17023case "(($ac_try" in
17024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17026esac
17027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17028 (eval "$ac_link") 2>conftest.er1
17029 ac_status=$?
17030 grep -v '^ *+' conftest.er1 >conftest.err
17031 rm -f conftest.er1
17032 cat conftest.err >&5
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); } &&
17035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17036 { (case "(($ac_try" in
17037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038 *) ac_try_echo=$ac_try;;
17039esac
17040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041 (eval "$ac_try") 2>&5
17042 ac_status=$?
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; } &&
17045 { ac_try='test -s conftest$ac_exeext'
17046 { (case "(($ac_try" in
17047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17048 *) ac_try_echo=$ac_try;;
17049esac
17050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17051 (eval "$ac_try") 2>&5
17052 ac_status=$?
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; }; then
17055 eval "$as_ac_var=yes"
17056else
17057 echo "$as_me: failed program was:" >&5
17058sed 's/^/| /' conftest.$ac_ext >&5
17059
17060 eval "$as_ac_var=no"
17061fi
17062
17063rm -f core conftest.err conftest.$ac_objext \
17064 conftest$ac_exeext conftest.$ac_ext
17065fi
17066ac_res=`eval echo '${'$as_ac_var'}'`
17067 { echo "$as_me:$LINENO: result: $ac_res" >&5
17068echo "${ECHO_T}$ac_res" >&6; }
17069if test `eval echo '${'$as_ac_var'}'` = yes; then
17070 cat >>confdefs.h <<_ACEOF
17071#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17072_ACEOF
17073
17074fi
17075done
17076
17077
17078
17079
17080
17081
17082
17083for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17084do
17085as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17086{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17087echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17088if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17089 echo $ECHO_N "(cached) $ECHO_C" >&6
17090else
17091 cat >conftest.$ac_ext <<_ACEOF
17092/* confdefs.h. */
17093_ACEOF
17094cat confdefs.h >>conftest.$ac_ext
17095cat >>conftest.$ac_ext <<_ACEOF
17096/* end confdefs.h. */
17097/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17099#define $ac_func innocuous_$ac_func
17100
17101/* System header to define __stub macros and hopefully few prototypes,
17102 which can conflict with char $ac_func (); below.
17103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17104 <limits.h> exists even on freestanding compilers. */
17105
17106#ifdef __STDC__
17107# include <limits.h>
17108#else
17109# include <assert.h>
17110#endif
17111
17112#undef $ac_func
17113
17114/* Override any GCC internal prototype to avoid an error.
17115 Use char because int might match the return type of a GCC
17116 builtin and then its argument prototype would still apply. */
17117#ifdef __cplusplus
17118extern "C"
17119#endif
17120char $ac_func ();
17121/* The GNU C library defines this for functions which it implements
17122 to always fail with ENOSYS. Some functions are actually named
17123 something starting with __ and the normal name is an alias. */
17124#if defined __stub_$ac_func || defined __stub___$ac_func
17125choke me
17126#endif
17127
17128int
17129main ()
17130{
17131return $ac_func ();
17132 ;
17133 return 0;
17134}
17135_ACEOF
17136rm -f conftest.$ac_objext conftest$ac_exeext
17137if { (ac_try="$ac_link"
17138case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17141esac
17142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143 (eval "$ac_link") 2>conftest.er1
17144 ac_status=$?
17145 grep -v '^ *+' conftest.er1 >conftest.err
17146 rm -f conftest.er1
17147 cat conftest.err >&5
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); } &&
17150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17151 { (case "(($ac_try" in
17152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17153 *) ac_try_echo=$ac_try;;
17154esac
17155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17156 (eval "$ac_try") 2>&5
17157 ac_status=$?
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); }; } &&
17160 { ac_try='test -s conftest$ac_exeext'
17161 { (case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17164esac
17165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_try") 2>&5
17167 ac_status=$?
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; }; then
17170 eval "$as_ac_var=yes"
17171else
17172 echo "$as_me: failed program was:" >&5
17173sed 's/^/| /' conftest.$ac_ext >&5
17174
17175 eval "$as_ac_var=no"
17176fi
17177
17178rm -f core conftest.err conftest.$ac_objext \
17179 conftest$ac_exeext conftest.$ac_ext
17180fi
17181ac_res=`eval echo '${'$as_ac_var'}'`
17182 { echo "$as_me:$LINENO: result: $ac_res" >&5
17183echo "${ECHO_T}$ac_res" >&6; }
17184if test `eval echo '${'$as_ac_var'}'` = yes; then
17185 cat >>confdefs.h <<_ACEOF
17186#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17187_ACEOF
17188
17189fi
17190done
17191
17192
17193
17194
17195for ac_func in strerror strerror_r setenv
17196do
17197as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17198{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17199echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17200if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17201 echo $ECHO_N "(cached) $ECHO_C" >&6
17202else
17203 cat >conftest.$ac_ext <<_ACEOF
17204/* confdefs.h. */
17205_ACEOF
17206cat confdefs.h >>conftest.$ac_ext
17207cat >>conftest.$ac_ext <<_ACEOF
17208/* end confdefs.h. */
17209/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17211#define $ac_func innocuous_$ac_func
17212
17213/* System header to define __stub macros and hopefully few prototypes,
17214 which can conflict with char $ac_func (); below.
17215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17216 <limits.h> exists even on freestanding compilers. */
17217
17218#ifdef __STDC__
17219# include <limits.h>
17220#else
17221# include <assert.h>
17222#endif
17223
17224#undef $ac_func
17225
17226/* Override any GCC internal prototype to avoid an error.
17227 Use char because int might match the return type of a GCC
17228 builtin and then its argument prototype would still apply. */
17229#ifdef __cplusplus
17230extern "C"
17231#endif
17232char $ac_func ();
17233/* The GNU C library defines this for functions which it implements
17234 to always fail with ENOSYS. Some functions are actually named
17235 something starting with __ and the normal name is an alias. */
17236#if defined __stub_$ac_func || defined __stub___$ac_func
17237choke me
17238#endif
17239
17240int
17241main ()
17242{
17243return $ac_func ();
17244 ;
17245 return 0;
17246}
17247_ACEOF
17248rm -f conftest.$ac_objext conftest$ac_exeext
17249if { (ac_try="$ac_link"
17250case "(($ac_try" in
17251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252 *) ac_try_echo=$ac_try;;
17253esac
17254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17255 (eval "$ac_link") 2>conftest.er1
17256 ac_status=$?
17257 grep -v '^ *+' conftest.er1 >conftest.err
17258 rm -f conftest.er1
17259 cat conftest.err >&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); } &&
17262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17263 { (case "(($ac_try" in
17264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265 *) ac_try_echo=$ac_try;;
17266esac
17267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268 (eval "$ac_try") 2>&5
17269 ac_status=$?
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; } &&
17272 { ac_try='test -s conftest$ac_exeext'
17273 { (case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17276esac
17277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_try") 2>&5
17279 ac_status=$?
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; }; then
17282 eval "$as_ac_var=yes"
17283else
17284 echo "$as_me: failed program was:" >&5
17285sed 's/^/| /' conftest.$ac_ext >&5
17286
17287 eval "$as_ac_var=no"
17288fi
17289
17290rm -f core conftest.err conftest.$ac_objext \
17291 conftest$ac_exeext conftest.$ac_ext
17292fi
17293ac_res=`eval echo '${'$as_ac_var'}'`
17294 { echo "$as_me:$LINENO: result: $ac_res" >&5
17295echo "${ECHO_T}$ac_res" >&6; }
17296if test `eval echo '${'$as_ac_var'}'` = yes; then
17297 cat >>confdefs.h <<_ACEOF
17298#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17299_ACEOF
17300
17301fi
17302done
17303
17304
17305
17306
17307
17308for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17309do
17310as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17311{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17312echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17313if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17314 echo $ECHO_N "(cached) $ECHO_C" >&6
17315else
17316 cat >conftest.$ac_ext <<_ACEOF
17317/* confdefs.h. */
17318_ACEOF
17319cat confdefs.h >>conftest.$ac_ext
17320cat >>conftest.$ac_ext <<_ACEOF
17321/* end confdefs.h. */
17322/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17324#define $ac_func innocuous_$ac_func
17325
17326/* System header to define __stub macros and hopefully few prototypes,
17327 which can conflict with char $ac_func (); below.
17328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17329 <limits.h> exists even on freestanding compilers. */
17330
17331#ifdef __STDC__
17332# include <limits.h>
17333#else
17334# include <assert.h>
17335#endif
17336
17337#undef $ac_func
17338
17339/* Override any GCC internal prototype to avoid an error.
17340 Use char because int might match the return type of a GCC
17341 builtin and then its argument prototype would still apply. */
17342#ifdef __cplusplus
17343extern "C"
17344#endif
17345char $ac_func ();
17346/* The GNU C library defines this for functions which it implements
17347 to always fail with ENOSYS. Some functions are actually named
17348 something starting with __ and the normal name is an alias. */
17349#if defined __stub_$ac_func || defined __stub___$ac_func
17350choke me
17351#endif
17352
17353int
17354main ()
17355{
17356return $ac_func ();
17357 ;
17358 return 0;
17359}
17360_ACEOF
17361rm -f conftest.$ac_objext conftest$ac_exeext
17362if { (ac_try="$ac_link"
17363case "(($ac_try" in
17364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17365 *) ac_try_echo=$ac_try;;
17366esac
17367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17368 (eval "$ac_link") 2>conftest.er1
17369 ac_status=$?
17370 grep -v '^ *+' conftest.er1 >conftest.err
17371 rm -f conftest.er1
17372 cat conftest.err >&5
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); } &&
17375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17376 { (case "(($ac_try" in
17377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17378 *) ac_try_echo=$ac_try;;
17379esac
17380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17381 (eval "$ac_try") 2>&5
17382 ac_status=$?
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); }; } &&
17385 { ac_try='test -s conftest$ac_exeext'
17386 { (case "(($ac_try" in
17387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388 *) ac_try_echo=$ac_try;;
17389esac
17390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17391 (eval "$ac_try") 2>&5
17392 ac_status=$?
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; }; then
17395 eval "$as_ac_var=yes"
17396else
17397 echo "$as_me: failed program was:" >&5
17398sed 's/^/| /' conftest.$ac_ext >&5
17399
17400 eval "$as_ac_var=no"
17401fi
17402
17403rm -f core conftest.err conftest.$ac_objext \
17404 conftest$ac_exeext conftest.$ac_ext
17405fi
17406ac_res=`eval echo '${'$as_ac_var'}'`
17407 { echo "$as_me:$LINENO: result: $ac_res" >&5
17408echo "${ECHO_T}$ac_res" >&6; }
17409if test `eval echo '${'$as_ac_var'}'` = yes; then
17410 cat >>confdefs.h <<_ACEOF
17411#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17412_ACEOF
17413
17414fi
17415done
17416
17417
17418
17419
17420
17421
17422for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17423do
17424as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17425{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17426echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17427if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17428 echo $ECHO_N "(cached) $ECHO_C" >&6
17429else
17430 cat >conftest.$ac_ext <<_ACEOF
17431/* confdefs.h. */
17432_ACEOF
17433cat confdefs.h >>conftest.$ac_ext
17434cat >>conftest.$ac_ext <<_ACEOF
17435/* end confdefs.h. */
17436/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17438#define $ac_func innocuous_$ac_func
17439
17440/* System header to define __stub macros and hopefully few prototypes,
17441 which can conflict with char $ac_func (); below.
17442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17443 <limits.h> exists even on freestanding compilers. */
17444
17445#ifdef __STDC__
17446# include <limits.h>
17447#else
17448# include <assert.h>
17449#endif
17450
17451#undef $ac_func
17452
17453/* Override any GCC internal prototype to avoid an error.
17454 Use char because int might match the return type of a GCC
17455 builtin and then its argument prototype would still apply. */
17456#ifdef __cplusplus
17457extern "C"
17458#endif
17459char $ac_func ();
17460/* The GNU C library defines this for functions which it implements
17461 to always fail with ENOSYS. Some functions are actually named
17462 something starting with __ and the normal name is an alias. */
17463#if defined __stub_$ac_func || defined __stub___$ac_func
17464choke me
17465#endif
17466
17467int
17468main ()
17469{
17470return $ac_func ();
17471 ;
17472 return 0;
17473}
17474_ACEOF
17475rm -f conftest.$ac_objext conftest$ac_exeext
17476if { (ac_try="$ac_link"
17477case "(($ac_try" in
17478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479 *) ac_try_echo=$ac_try;;
17480esac
17481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482 (eval "$ac_link") 2>conftest.er1
17483 ac_status=$?
17484 grep -v '^ *+' conftest.er1 >conftest.err
17485 rm -f conftest.er1
17486 cat conftest.err >&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } &&
17489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17490 { (case "(($ac_try" in
17491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492 *) ac_try_echo=$ac_try;;
17493esac
17494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17495 (eval "$ac_try") 2>&5
17496 ac_status=$?
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); }; } &&
17499 { ac_try='test -s conftest$ac_exeext'
17500 { (case "(($ac_try" in
17501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502 *) ac_try_echo=$ac_try;;
17503esac
17504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17505 (eval "$ac_try") 2>&5
17506 ac_status=$?
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); }; }; then
17509 eval "$as_ac_var=yes"
17510else
17511 echo "$as_me: failed program was:" >&5
17512sed 's/^/| /' conftest.$ac_ext >&5
17513
17514 eval "$as_ac_var=no"
17515fi
17516
17517rm -f core conftest.err conftest.$ac_objext \
17518 conftest$ac_exeext conftest.$ac_ext
17519fi
17520ac_res=`eval echo '${'$as_ac_var'}'`
17521 { echo "$as_me:$LINENO: result: $ac_res" >&5
17522echo "${ECHO_T}$ac_res" >&6; }
17523if test `eval echo '${'$as_ac_var'}'` = yes; then
17524 cat >>confdefs.h <<_ACEOF
17525#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17526_ACEOF
17527
17528fi
17529done
17530
17531{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17532echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17533if test "${llvm_cv_c_printf_a+set}" = set; then
17534 echo $ECHO_N "(cached) $ECHO_C" >&6
17535else
17536 ac_ext=c
17537ac_cpp='$CPP $CPPFLAGS'
17538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17540ac_compiler_gnu=$ac_cv_c_compiler_gnu
17541
17542 if test "$cross_compiling" = yes; then
17543 llvmac_cv_c_printf_a=no
17544else
17545 cat >conftest.$ac_ext <<_ACEOF
17546
17547 /* confdefs.h. */
17548_ACEOF
17549cat confdefs.h >>conftest.$ac_ext
17550cat >>conftest.$ac_ext <<_ACEOF
17551/* end confdefs.h. */
17552
17553#include <stdio.h>
17554#include <stdlib.h>
17555
17556int
17557main ()
17558{
17559
17560volatile double A, B;
17561char Buffer[100];
17562A = 1;
17563A /= 10.0;
17564sprintf(Buffer, "%a", A);
17565B = atof(Buffer);
17566if (A != B)
17567 return (1);
17568if (A != 0x1.999999999999ap-4)
17569 return (1);
17570return (0);
17571 ;
17572 return 0;
17573}
17574_ACEOF
17575rm -f conftest$ac_exeext
17576if { (ac_try="$ac_link"
17577case "(($ac_try" in
17578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17579 *) ac_try_echo=$ac_try;;
17580esac
17581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17582 (eval "$ac_link") 2>&5
17583 ac_status=$?
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17586 { (case "(($ac_try" in
17587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588 *) ac_try_echo=$ac_try;;
17589esac
17590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591 (eval "$ac_try") 2>&5
17592 ac_status=$?
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; }; then
17595 llvm_cv_c_printf_a=yes
17596else
17597 echo "$as_me: program exited with status $ac_status" >&5
17598echo "$as_me: failed program was:" >&5
17599sed 's/^/| /' conftest.$ac_ext >&5
17600
17601( exit $ac_status )
17602llvmac_cv_c_printf_a=no
17603fi
17604rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17605fi
17606
17607
17608 ac_ext=c
17609ac_cpp='$CPP $CPPFLAGS'
17610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17612ac_compiler_gnu=$ac_cv_c_compiler_gnu
17613
17614fi
17615{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17616echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17617 if test "$llvm_cv_c_printf_a" = "yes"; then
17618
17619cat >>confdefs.h <<\_ACEOF
17620#define HAVE_PRINTF_A 1
17621_ACEOF
17622
17623 fi
17624
17625
17626{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17627echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17628if test "${ac_cv_func_rand48+set}" = set; then
17629 echo $ECHO_N "(cached) $ECHO_C" >&6
17630else
17631 ac_ext=cpp
17632ac_cpp='$CXXCPP $CPPFLAGS'
17633ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17634ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17635ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17636
17637 cat >conftest.$ac_ext <<_ACEOF
17638/* confdefs.h. */
17639_ACEOF
17640cat confdefs.h >>conftest.$ac_ext
17641cat >>conftest.$ac_ext <<_ACEOF
17642/* end confdefs.h. */
17643#include <stdlib.h>
17644int
17645main ()
17646{
17647srand48(0);lrand48();drand48();
17648 ;
17649 return 0;
17650}
17651_ACEOF
17652rm -f conftest.$ac_objext
17653if { (ac_try="$ac_compile"
17654case "(($ac_try" in
17655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17656 *) ac_try_echo=$ac_try;;
17657esac
17658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17659 (eval "$ac_compile") 2>conftest.er1
17660 ac_status=$?
17661 grep -v '^ *+' conftest.er1 >conftest.err
17662 rm -f conftest.er1
17663 cat conftest.err >&5
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); } &&
17666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17667 { (case "(($ac_try" in
17668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17669 *) ac_try_echo=$ac_try;;
17670esac
17671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17672 (eval "$ac_try") 2>&5
17673 ac_status=$?
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; } &&
17676 { ac_try='test -s conftest.$ac_objext'
17677 { (case "(($ac_try" in
17678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17679 *) ac_try_echo=$ac_try;;
17680esac
17681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17682 (eval "$ac_try") 2>&5
17683 ac_status=$?
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); }; }; then
17686 ac_cv_func_rand48=yes
17687else
17688 echo "$as_me: failed program was:" >&5
17689sed 's/^/| /' conftest.$ac_ext >&5
17690
17691 ac_cv_func_rand48=no
17692fi
17693
17694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17695 ac_ext=c
17696ac_cpp='$CPP $CPPFLAGS'
17697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17699ac_compiler_gnu=$ac_cv_c_compiler_gnu
17700
17701fi
17702{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17703echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17704
17705if test "$ac_cv_func_rand48" = "yes" ; then
17706
17707cat >>confdefs.h <<\_ACEOF
17708#define HAVE_RAND48 1
17709_ACEOF
17710
17711fi
17712
17713
17714{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17715echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17716if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17717 echo $ECHO_N "(cached) $ECHO_C" >&6
17718else
17719 cat >conftest.$ac_ext <<_ACEOF
17720/* confdefs.h. */
17721_ACEOF
17722cat confdefs.h >>conftest.$ac_ext
17723cat >>conftest.$ac_ext <<_ACEOF
17724/* end confdefs.h. */
17725$ac_includes_default
17726int
17727main ()
17728{
17729#ifndef strerror_s
17730 char *p = (char *) strerror_s;
17731 return !p;
17732#endif
17733
17734 ;
17735 return 0;
17736}
17737_ACEOF
17738rm -f conftest.$ac_objext
17739if { (ac_try="$ac_compile"
17740case "(($ac_try" in
17741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742 *) ac_try_echo=$ac_try;;
17743esac
17744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17745 (eval "$ac_compile") 2>conftest.er1
17746 ac_status=$?
17747 grep -v '^ *+' conftest.er1 >conftest.err
17748 rm -f conftest.er1
17749 cat conftest.err >&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); } &&
17752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17753 { (case "(($ac_try" in
17754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755 *) ac_try_echo=$ac_try;;
17756esac
17757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758 (eval "$ac_try") 2>&5
17759 ac_status=$?
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; } &&
17762 { ac_try='test -s conftest.$ac_objext'
17763 { (case "(($ac_try" in
17764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17765 *) ac_try_echo=$ac_try;;
17766esac
17767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17768 (eval "$ac_try") 2>&5
17769 ac_status=$?
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; }; then
17772 ac_cv_have_decl_strerror_s=yes
17773else
17774 echo "$as_me: failed program was:" >&5
17775sed 's/^/| /' conftest.$ac_ext >&5
17776
17777 ac_cv_have_decl_strerror_s=no
17778fi
17779
17780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17781fi
17782{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
17783echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
17784if test $ac_cv_have_decl_strerror_s = yes; then
17785
17786cat >>confdefs.h <<_ACEOF
17787#define HAVE_DECL_STRERROR_S 1
17788_ACEOF
17789
17790
17791else
17792 cat >>confdefs.h <<_ACEOF
17793#define HAVE_DECL_STRERROR_S 0
17794_ACEOF
17795
17796
17797fi
17798
17799
17800
17801if test "$llvm_cv_os_type" = "MingW" ; then
17802 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
17803echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
17804if test "${ac_cv_lib_gcc__alloca+set}" = set; then
17805 echo $ECHO_N "(cached) $ECHO_C" >&6
17806else
17807 ac_check_lib_save_LIBS=$LIBS
17808LIBS="-lgcc $LIBS"
17809cat >conftest.$ac_ext <<_ACEOF
17810/* confdefs.h. */
17811_ACEOF
17812cat confdefs.h >>conftest.$ac_ext
17813cat >>conftest.$ac_ext <<_ACEOF
17814/* end confdefs.h. */
17815
17816/* Override any GCC internal prototype to avoid an error.
17817 Use char because int might match the return type of a GCC
17818 builtin and then its argument prototype would still apply. */
17819#ifdef __cplusplus
17820extern "C"
17821#endif
17822char _alloca ();
17823int
17824main ()
17825{
17826return _alloca ();
17827 ;
17828 return 0;
17829}
17830_ACEOF
17831rm -f conftest.$ac_objext conftest$ac_exeext
17832if { (ac_try="$ac_link"
17833case "(($ac_try" in
17834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835 *) ac_try_echo=$ac_try;;
17836esac
17837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17838 (eval "$ac_link") 2>conftest.er1
17839 ac_status=$?
17840 grep -v '^ *+' conftest.er1 >conftest.err
17841 rm -f conftest.er1
17842 cat conftest.err >&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } &&
17845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17846 { (case "(($ac_try" in
17847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848 *) ac_try_echo=$ac_try;;
17849esac
17850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17851 (eval "$ac_try") 2>&5
17852 ac_status=$?
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; } &&
17855 { ac_try='test -s conftest$ac_exeext'
17856 { (case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17859esac
17860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_try") 2>&5
17862 ac_status=$?
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; }; then
17865 ac_cv_lib_gcc__alloca=yes
17866else
17867 echo "$as_me: failed program was:" >&5
17868sed 's/^/| /' conftest.$ac_ext >&5
17869
17870 ac_cv_lib_gcc__alloca=no
17871fi
17872
17873rm -f core conftest.err conftest.$ac_objext \
17874 conftest$ac_exeext conftest.$ac_ext
17875LIBS=$ac_check_lib_save_LIBS
17876fi
17877{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
17878echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
17879if test $ac_cv_lib_gcc__alloca = yes; then
17880
17881cat >>confdefs.h <<\_ACEOF
17882#define HAVE__ALLOCA 1
17883_ACEOF
17884
17885fi
17886
17887 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
17888echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
17889if test "${ac_cv_lib_gcc___alloca+set}" = set; then
17890 echo $ECHO_N "(cached) $ECHO_C" >&6
17891else
17892 ac_check_lib_save_LIBS=$LIBS
17893LIBS="-lgcc $LIBS"
17894cat >conftest.$ac_ext <<_ACEOF
17895/* confdefs.h. */
17896_ACEOF
17897cat confdefs.h >>conftest.$ac_ext
17898cat >>conftest.$ac_ext <<_ACEOF
17899/* end confdefs.h. */
17900
17901/* Override any GCC internal prototype to avoid an error.
17902 Use char because int might match the return type of a GCC
17903 builtin and then its argument prototype would still apply. */
17904#ifdef __cplusplus
17905extern "C"
17906#endif
17907char __alloca ();
17908int
17909main ()
17910{
17911return __alloca ();
17912 ;
17913 return 0;
17914}
17915_ACEOF
17916rm -f conftest.$ac_objext conftest$ac_exeext
17917if { (ac_try="$ac_link"
17918case "(($ac_try" in
17919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920 *) ac_try_echo=$ac_try;;
17921esac
17922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923 (eval "$ac_link") 2>conftest.er1
17924 ac_status=$?
17925 grep -v '^ *+' conftest.er1 >conftest.err
17926 rm -f conftest.er1
17927 cat conftest.err >&5
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); } &&
17930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17931 { (case "(($ac_try" in
17932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933 *) ac_try_echo=$ac_try;;
17934esac
17935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17936 (eval "$ac_try") 2>&5
17937 ac_status=$?
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; } &&
17940 { ac_try='test -s conftest$ac_exeext'
17941 { (case "(($ac_try" in
17942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943 *) ac_try_echo=$ac_try;;
17944esac
17945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946 (eval "$ac_try") 2>&5
17947 ac_status=$?
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; }; then
17950 ac_cv_lib_gcc___alloca=yes
17951else
17952 echo "$as_me: failed program was:" >&5
17953sed 's/^/| /' conftest.$ac_ext >&5
17954
17955 ac_cv_lib_gcc___alloca=no
17956fi
17957
17958rm -f core conftest.err conftest.$ac_objext \
17959 conftest$ac_exeext conftest.$ac_ext
17960LIBS=$ac_check_lib_save_LIBS
17961fi
17962{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
17963echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
17964if test $ac_cv_lib_gcc___alloca = yes; then
17965
17966cat >>confdefs.h <<\_ACEOF
17967#define HAVE___ALLOCA 1
17968_ACEOF
17969
17970fi
17971
17972 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
17973echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
17974if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
17975 echo $ECHO_N "(cached) $ECHO_C" >&6
17976else
17977 ac_check_lib_save_LIBS=$LIBS
17978LIBS="-lgcc $LIBS"
17979cat >conftest.$ac_ext <<_ACEOF
17980/* confdefs.h. */
17981_ACEOF
17982cat confdefs.h >>conftest.$ac_ext
17983cat >>conftest.$ac_ext <<_ACEOF
17984/* end confdefs.h. */
17985
17986/* Override any GCC internal prototype to avoid an error.
17987 Use char because int might match the return type of a GCC
17988 builtin and then its argument prototype would still apply. */
17989#ifdef __cplusplus
17990extern "C"
17991#endif
17992char __chkstk ();
17993int
17994main ()
17995{
17996return __chkstk ();
17997 ;
17998 return 0;
17999}
18000_ACEOF
18001rm -f conftest.$ac_objext conftest$ac_exeext
18002if { (ac_try="$ac_link"
18003case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18006esac
18007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_link") 2>conftest.er1
18009 ac_status=$?
18010 grep -v '^ *+' conftest.er1 >conftest.err
18011 rm -f conftest.er1
18012 cat conftest.err >&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } &&
18015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18016 { (case "(($ac_try" in
18017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18018 *) ac_try_echo=$ac_try;;
18019esac
18020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18021 (eval "$ac_try") 2>&5
18022 ac_status=$?
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); }; } &&
18025 { ac_try='test -s conftest$ac_exeext'
18026 { (case "(($ac_try" in
18027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028 *) ac_try_echo=$ac_try;;
18029esac
18030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18031 (eval "$ac_try") 2>&5
18032 ac_status=$?
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); }; }; then
18035 ac_cv_lib_gcc___chkstk=yes
18036else
18037 echo "$as_me: failed program was:" >&5
18038sed 's/^/| /' conftest.$ac_ext >&5
18039
18040 ac_cv_lib_gcc___chkstk=no
18041fi
18042
18043rm -f core conftest.err conftest.$ac_objext \
18044 conftest$ac_exeext conftest.$ac_ext
18045LIBS=$ac_check_lib_save_LIBS
18046fi
18047{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18048echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18049if test $ac_cv_lib_gcc___chkstk = yes; then
18050
18051cat >>confdefs.h <<\_ACEOF
18052#define HAVE___CHKSTK 1
18053_ACEOF
18054
18055fi
18056
18057 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18058echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18059if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18060 echo $ECHO_N "(cached) $ECHO_C" >&6
18061else
18062 ac_check_lib_save_LIBS=$LIBS
18063LIBS="-lgcc $LIBS"
18064cat >conftest.$ac_ext <<_ACEOF
18065/* confdefs.h. */
18066_ACEOF
18067cat confdefs.h >>conftest.$ac_ext
18068cat >>conftest.$ac_ext <<_ACEOF
18069/* end confdefs.h. */
18070
18071/* Override any GCC internal prototype to avoid an error.
18072 Use char because int might match the return type of a GCC
18073 builtin and then its argument prototype would still apply. */
18074#ifdef __cplusplus
18075extern "C"
18076#endif
18077char ___chkstk ();
18078int
18079main ()
18080{
18081return ___chkstk ();
18082 ;
18083 return 0;
18084}
18085_ACEOF
18086rm -f conftest.$ac_objext conftest$ac_exeext
18087if { (ac_try="$ac_link"
18088case "(($ac_try" in
18089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090 *) ac_try_echo=$ac_try;;
18091esac
18092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093 (eval "$ac_link") 2>conftest.er1
18094 ac_status=$?
18095 grep -v '^ *+' conftest.er1 >conftest.err
18096 rm -f conftest.er1
18097 cat conftest.err >&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } &&
18100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18101 { (case "(($ac_try" in
18102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103 *) ac_try_echo=$ac_try;;
18104esac
18105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106 (eval "$ac_try") 2>&5
18107 ac_status=$?
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); }; } &&
18110 { ac_try='test -s conftest$ac_exeext'
18111 { (case "(($ac_try" in
18112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18113 *) ac_try_echo=$ac_try;;
18114esac
18115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18116 (eval "$ac_try") 2>&5
18117 ac_status=$?
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); }; }; then
18120 ac_cv_lib_gcc____chkstk=yes
18121else
18122 echo "$as_me: failed program was:" >&5
18123sed 's/^/| /' conftest.$ac_ext >&5
18124
18125 ac_cv_lib_gcc____chkstk=no
18126fi
18127
18128rm -f core conftest.err conftest.$ac_objext \
18129 conftest$ac_exeext conftest.$ac_ext
18130LIBS=$ac_check_lib_save_LIBS
18131fi
18132{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18133echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18134if test $ac_cv_lib_gcc____chkstk = yes; then
18135
18136cat >>confdefs.h <<\_ACEOF
18137#define HAVE____CHKSTK 1
18138_ACEOF
18139
18140fi
18141
18142
18143 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18144echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18145if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18147else
18148 ac_check_lib_save_LIBS=$LIBS
18149LIBS="-lgcc $LIBS"
18150cat >conftest.$ac_ext <<_ACEOF
18151/* confdefs.h. */
18152_ACEOF
18153cat confdefs.h >>conftest.$ac_ext
18154cat >>conftest.$ac_ext <<_ACEOF
18155/* end confdefs.h. */
18156
18157/* Override any GCC internal prototype to avoid an error.
18158 Use char because int might match the return type of a GCC
18159 builtin and then its argument prototype would still apply. */
18160#ifdef __cplusplus
18161extern "C"
18162#endif
18163char __ashldi3 ();
18164int
18165main ()
18166{
18167return __ashldi3 ();
18168 ;
18169 return 0;
18170}
18171_ACEOF
18172rm -f conftest.$ac_objext conftest$ac_exeext
18173if { (ac_try="$ac_link"
18174case "(($ac_try" in
18175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18176 *) ac_try_echo=$ac_try;;
18177esac
18178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18179 (eval "$ac_link") 2>conftest.er1
18180 ac_status=$?
18181 grep -v '^ *+' conftest.er1 >conftest.err
18182 rm -f conftest.er1
18183 cat conftest.err >&5
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); } &&
18186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18187 { (case "(($ac_try" in
18188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189 *) ac_try_echo=$ac_try;;
18190esac
18191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192 (eval "$ac_try") 2>&5
18193 ac_status=$?
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; } &&
18196 { ac_try='test -s conftest$ac_exeext'
18197 { (case "(($ac_try" in
18198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18199 *) ac_try_echo=$ac_try;;
18200esac
18201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18202 (eval "$ac_try") 2>&5
18203 ac_status=$?
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; }; then
18206 ac_cv_lib_gcc___ashldi3=yes
18207else
18208 echo "$as_me: failed program was:" >&5
18209sed 's/^/| /' conftest.$ac_ext >&5
18210
18211 ac_cv_lib_gcc___ashldi3=no
18212fi
18213
18214rm -f core conftest.err conftest.$ac_objext \
18215 conftest$ac_exeext conftest.$ac_ext
18216LIBS=$ac_check_lib_save_LIBS
18217fi
18218{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18219echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18220if test $ac_cv_lib_gcc___ashldi3 = yes; then
18221
18222cat >>confdefs.h <<\_ACEOF
18223#define HAVE___ASHLDI3 1
18224_ACEOF
18225
18226fi
18227
18228 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18229echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18230if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18231 echo $ECHO_N "(cached) $ECHO_C" >&6
18232else
18233 ac_check_lib_save_LIBS=$LIBS
18234LIBS="-lgcc $LIBS"
18235cat >conftest.$ac_ext <<_ACEOF
18236/* confdefs.h. */
18237_ACEOF
18238cat confdefs.h >>conftest.$ac_ext
18239cat >>conftest.$ac_ext <<_ACEOF
18240/* end confdefs.h. */
18241
18242/* Override any GCC internal prototype to avoid an error.
18243 Use char because int might match the return type of a GCC
18244 builtin and then its argument prototype would still apply. */
18245#ifdef __cplusplus
18246extern "C"
18247#endif
18248char __ashrdi3 ();
18249int
18250main ()
18251{
18252return __ashrdi3 ();
18253 ;
18254 return 0;
18255}
18256_ACEOF
18257rm -f conftest.$ac_objext conftest$ac_exeext
18258if { (ac_try="$ac_link"
18259case "(($ac_try" in
18260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18261 *) ac_try_echo=$ac_try;;
18262esac
18263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18264 (eval "$ac_link") 2>conftest.er1
18265 ac_status=$?
18266 grep -v '^ *+' conftest.er1 >conftest.err
18267 rm -f conftest.er1
18268 cat conftest.err >&5
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); } &&
18271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18272 { (case "(($ac_try" in
18273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274 *) ac_try_echo=$ac_try;;
18275esac
18276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277 (eval "$ac_try") 2>&5
18278 ac_status=$?
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; } &&
18281 { ac_try='test -s conftest$ac_exeext'
18282 { (case "(($ac_try" in
18283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18284 *) ac_try_echo=$ac_try;;
18285esac
18286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18287 (eval "$ac_try") 2>&5
18288 ac_status=$?
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; }; then
18291 ac_cv_lib_gcc___ashrdi3=yes
18292else
18293 echo "$as_me: failed program was:" >&5
18294sed 's/^/| /' conftest.$ac_ext >&5
18295
18296 ac_cv_lib_gcc___ashrdi3=no
18297fi
18298
18299rm -f core conftest.err conftest.$ac_objext \
18300 conftest$ac_exeext conftest.$ac_ext
18301LIBS=$ac_check_lib_save_LIBS
18302fi
18303{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18304echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18305if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18306
18307cat >>confdefs.h <<\_ACEOF
18308#define HAVE___ASHRDI3 1
18309_ACEOF
18310
18311fi
18312
18313 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18314echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18315if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18316 echo $ECHO_N "(cached) $ECHO_C" >&6
18317else
18318 ac_check_lib_save_LIBS=$LIBS
18319LIBS="-lgcc $LIBS"
18320cat >conftest.$ac_ext <<_ACEOF
18321/* confdefs.h. */
18322_ACEOF
18323cat confdefs.h >>conftest.$ac_ext
18324cat >>conftest.$ac_ext <<_ACEOF
18325/* end confdefs.h. */
18326
18327/* Override any GCC internal prototype to avoid an error.
18328 Use char because int might match the return type of a GCC
18329 builtin and then its argument prototype would still apply. */
18330#ifdef __cplusplus
18331extern "C"
18332#endif
18333char __divdi3 ();
18334int
18335main ()
18336{
18337return __divdi3 ();
18338 ;
18339 return 0;
18340}
18341_ACEOF
18342rm -f conftest.$ac_objext conftest$ac_exeext
18343if { (ac_try="$ac_link"
18344case "(($ac_try" in
18345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346 *) ac_try_echo=$ac_try;;
18347esac
18348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349 (eval "$ac_link") 2>conftest.er1
18350 ac_status=$?
18351 grep -v '^ *+' conftest.er1 >conftest.err
18352 rm -f conftest.er1
18353 cat conftest.err >&5
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); } &&
18356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18357 { (case "(($ac_try" in
18358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359 *) ac_try_echo=$ac_try;;
18360esac
18361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362 (eval "$ac_try") 2>&5
18363 ac_status=$?
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; } &&
18366 { ac_try='test -s conftest$ac_exeext'
18367 { (case "(($ac_try" in
18368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369 *) ac_try_echo=$ac_try;;
18370esac
18371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372 (eval "$ac_try") 2>&5
18373 ac_status=$?
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; }; then
18376 ac_cv_lib_gcc___divdi3=yes
18377else
18378 echo "$as_me: failed program was:" >&5
18379sed 's/^/| /' conftest.$ac_ext >&5
18380
18381 ac_cv_lib_gcc___divdi3=no
18382fi
18383
18384rm -f core conftest.err conftest.$ac_objext \
18385 conftest$ac_exeext conftest.$ac_ext
18386LIBS=$ac_check_lib_save_LIBS
18387fi
18388{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18389echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18390if test $ac_cv_lib_gcc___divdi3 = yes; then
18391
18392cat >>confdefs.h <<\_ACEOF
18393#define HAVE___DIVDI3 1
18394_ACEOF
18395
18396fi
18397
18398 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18399echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18400if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18401 echo $ECHO_N "(cached) $ECHO_C" >&6
18402else
18403 ac_check_lib_save_LIBS=$LIBS
18404LIBS="-lgcc $LIBS"
18405cat >conftest.$ac_ext <<_ACEOF
18406/* confdefs.h. */
18407_ACEOF
18408cat confdefs.h >>conftest.$ac_ext
18409cat >>conftest.$ac_ext <<_ACEOF
18410/* end confdefs.h. */
18411
18412/* Override any GCC internal prototype to avoid an error.
18413 Use char because int might match the return type of a GCC
18414 builtin and then its argument prototype would still apply. */
18415#ifdef __cplusplus
18416extern "C"
18417#endif
18418char __fixdfdi ();
18419int
18420main ()
18421{
18422return __fixdfdi ();
18423 ;
18424 return 0;
18425}
18426_ACEOF
18427rm -f conftest.$ac_objext conftest$ac_exeext
18428if { (ac_try="$ac_link"
18429case "(($ac_try" in
18430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431 *) ac_try_echo=$ac_try;;
18432esac
18433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434 (eval "$ac_link") 2>conftest.er1
18435 ac_status=$?
18436 grep -v '^ *+' conftest.er1 >conftest.err
18437 rm -f conftest.er1
18438 cat conftest.err >&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } &&
18441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18442 { (case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18445esac
18446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_try") 2>&5
18448 ac_status=$?
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; } &&
18451 { ac_try='test -s conftest$ac_exeext'
18452 { (case "(($ac_try" in
18453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454 *) ac_try_echo=$ac_try;;
18455esac
18456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457 (eval "$ac_try") 2>&5
18458 ac_status=$?
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; }; then
18461 ac_cv_lib_gcc___fixdfdi=yes
18462else
18463 echo "$as_me: failed program was:" >&5
18464sed 's/^/| /' conftest.$ac_ext >&5
18465
18466 ac_cv_lib_gcc___fixdfdi=no
18467fi
18468
18469rm -f core conftest.err conftest.$ac_objext \
18470 conftest$ac_exeext conftest.$ac_ext
18471LIBS=$ac_check_lib_save_LIBS
18472fi
18473{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18474echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18475if test $ac_cv_lib_gcc___fixdfdi = yes; then
18476
18477cat >>confdefs.h <<\_ACEOF
18478#define HAVE___FIXDFDI 1
18479_ACEOF
18480
18481fi
18482
18483 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18484echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18485if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18486 echo $ECHO_N "(cached) $ECHO_C" >&6
18487else
18488 ac_check_lib_save_LIBS=$LIBS
18489LIBS="-lgcc $LIBS"
18490cat >conftest.$ac_ext <<_ACEOF
18491/* confdefs.h. */
18492_ACEOF
18493cat confdefs.h >>conftest.$ac_ext
18494cat >>conftest.$ac_ext <<_ACEOF
18495/* end confdefs.h. */
18496
18497/* Override any GCC internal prototype to avoid an error.
18498 Use char because int might match the return type of a GCC
18499 builtin and then its argument prototype would still apply. */
18500#ifdef __cplusplus
18501extern "C"
18502#endif
18503char __fixsfdi ();
18504int
18505main ()
18506{
18507return __fixsfdi ();
18508 ;
18509 return 0;
18510}
18511_ACEOF
18512rm -f conftest.$ac_objext conftest$ac_exeext
18513if { (ac_try="$ac_link"
18514case "(($ac_try" in
18515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516 *) ac_try_echo=$ac_try;;
18517esac
18518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519 (eval "$ac_link") 2>conftest.er1
18520 ac_status=$?
18521 grep -v '^ *+' conftest.er1 >conftest.err
18522 rm -f conftest.er1
18523 cat conftest.err >&5
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); } &&
18526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18527 { (case "(($ac_try" in
18528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529 *) ac_try_echo=$ac_try;;
18530esac
18531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532 (eval "$ac_try") 2>&5
18533 ac_status=$?
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; } &&
18536 { ac_try='test -s conftest$ac_exeext'
18537 { (case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18540esac
18541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_try") 2>&5
18543 ac_status=$?
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; }; then
18546 ac_cv_lib_gcc___fixsfdi=yes
18547else
18548 echo "$as_me: failed program was:" >&5
18549sed 's/^/| /' conftest.$ac_ext >&5
18550
18551 ac_cv_lib_gcc___fixsfdi=no
18552fi
18553
18554rm -f core conftest.err conftest.$ac_objext \
18555 conftest$ac_exeext conftest.$ac_ext
18556LIBS=$ac_check_lib_save_LIBS
18557fi
18558{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18559echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18560if test $ac_cv_lib_gcc___fixsfdi = yes; then
18561
18562cat >>confdefs.h <<\_ACEOF
18563#define HAVE___FIXSFDI 1
18564_ACEOF
18565
18566fi
18567
18568 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18569echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18570if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18571 echo $ECHO_N "(cached) $ECHO_C" >&6
18572else
18573 ac_check_lib_save_LIBS=$LIBS
18574LIBS="-lgcc $LIBS"
18575cat >conftest.$ac_ext <<_ACEOF
18576/* confdefs.h. */
18577_ACEOF
18578cat confdefs.h >>conftest.$ac_ext
18579cat >>conftest.$ac_ext <<_ACEOF
18580/* end confdefs.h. */
18581
18582/* Override any GCC internal prototype to avoid an error.
18583 Use char because int might match the return type of a GCC
18584 builtin and then its argument prototype would still apply. */
18585#ifdef __cplusplus
18586extern "C"
18587#endif
18588char __floatdidf ();
18589int
18590main ()
18591{
18592return __floatdidf ();
18593 ;
18594 return 0;
18595}
18596_ACEOF
18597rm -f conftest.$ac_objext conftest$ac_exeext
18598if { (ac_try="$ac_link"
18599case "(($ac_try" in
18600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601 *) ac_try_echo=$ac_try;;
18602esac
18603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18604 (eval "$ac_link") 2>conftest.er1
18605 ac_status=$?
18606 grep -v '^ *+' conftest.er1 >conftest.err
18607 rm -f conftest.er1
18608 cat conftest.err >&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } &&
18611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18612 { (case "(($ac_try" in
18613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18615esac
18616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617 (eval "$ac_try") 2>&5
18618 ac_status=$?
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); }; } &&
18621 { ac_try='test -s conftest$ac_exeext'
18622 { (case "(($ac_try" in
18623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624 *) ac_try_echo=$ac_try;;
18625esac
18626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627 (eval "$ac_try") 2>&5
18628 ac_status=$?
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; }; then
18631 ac_cv_lib_gcc___floatdidf=yes
18632else
18633 echo "$as_me: failed program was:" >&5
18634sed 's/^/| /' conftest.$ac_ext >&5
18635
18636 ac_cv_lib_gcc___floatdidf=no
18637fi
18638
18639rm -f core conftest.err conftest.$ac_objext \
18640 conftest$ac_exeext conftest.$ac_ext
18641LIBS=$ac_check_lib_save_LIBS
18642fi
18643{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18644echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18645if test $ac_cv_lib_gcc___floatdidf = yes; then
18646
18647cat >>confdefs.h <<\_ACEOF
18648#define HAVE___FLOATDIDF 1
18649_ACEOF
18650
18651fi
18652
18653 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18654echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18655if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18656 echo $ECHO_N "(cached) $ECHO_C" >&6
18657else
18658 ac_check_lib_save_LIBS=$LIBS
18659LIBS="-lgcc $LIBS"
18660cat >conftest.$ac_ext <<_ACEOF
18661/* confdefs.h. */
18662_ACEOF
18663cat confdefs.h >>conftest.$ac_ext
18664cat >>conftest.$ac_ext <<_ACEOF
18665/* end confdefs.h. */
18666
18667/* Override any GCC internal prototype to avoid an error.
18668 Use char because int might match the return type of a GCC
18669 builtin and then its argument prototype would still apply. */
18670#ifdef __cplusplus
18671extern "C"
18672#endif
18673char __lshrdi3 ();
18674int
18675main ()
18676{
18677return __lshrdi3 ();
18678 ;
18679 return 0;
18680}
18681_ACEOF
18682rm -f conftest.$ac_objext conftest$ac_exeext
18683if { (ac_try="$ac_link"
18684case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18687esac
18688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689 (eval "$ac_link") 2>conftest.er1
18690 ac_status=$?
18691 grep -v '^ *+' conftest.er1 >conftest.err
18692 rm -f conftest.er1
18693 cat conftest.err >&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); } &&
18696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18697 { (case "(($ac_try" in
18698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699 *) ac_try_echo=$ac_try;;
18700esac
18701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702 (eval "$ac_try") 2>&5
18703 ac_status=$?
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; } &&
18706 { ac_try='test -s conftest$ac_exeext'
18707 { (case "(($ac_try" in
18708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709 *) ac_try_echo=$ac_try;;
18710esac
18711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712 (eval "$ac_try") 2>&5
18713 ac_status=$?
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); }; }; then
18716 ac_cv_lib_gcc___lshrdi3=yes
18717else
18718 echo "$as_me: failed program was:" >&5
18719sed 's/^/| /' conftest.$ac_ext >&5
18720
18721 ac_cv_lib_gcc___lshrdi3=no
18722fi
18723
18724rm -f core conftest.err conftest.$ac_objext \
18725 conftest$ac_exeext conftest.$ac_ext
18726LIBS=$ac_check_lib_save_LIBS
18727fi
18728{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18729echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18730if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18731
18732cat >>confdefs.h <<\_ACEOF
18733#define HAVE___LSHRDI3 1
18734_ACEOF
18735
18736fi
18737
18738 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18739echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18740if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18741 echo $ECHO_N "(cached) $ECHO_C" >&6
18742else
18743 ac_check_lib_save_LIBS=$LIBS
18744LIBS="-lgcc $LIBS"
18745cat >conftest.$ac_ext <<_ACEOF
18746/* confdefs.h. */
18747_ACEOF
18748cat confdefs.h >>conftest.$ac_ext
18749cat >>conftest.$ac_ext <<_ACEOF
18750/* end confdefs.h. */
18751
18752/* Override any GCC internal prototype to avoid an error.
18753 Use char because int might match the return type of a GCC
18754 builtin and then its argument prototype would still apply. */
18755#ifdef __cplusplus
18756extern "C"
18757#endif
18758char __moddi3 ();
18759int
18760main ()
18761{
18762return __moddi3 ();
18763 ;
18764 return 0;
18765}
18766_ACEOF
18767rm -f conftest.$ac_objext conftest$ac_exeext
18768if { (ac_try="$ac_link"
18769case "(($ac_try" in
18770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18771 *) ac_try_echo=$ac_try;;
18772esac
18773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18774 (eval "$ac_link") 2>conftest.er1
18775 ac_status=$?
18776 grep -v '^ *+' conftest.er1 >conftest.err
18777 rm -f conftest.er1
18778 cat conftest.err >&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } &&
18781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18782 { (case "(($ac_try" in
18783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784 *) ac_try_echo=$ac_try;;
18785esac
18786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18787 (eval "$ac_try") 2>&5
18788 ac_status=$?
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); }; } &&
18791 { ac_try='test -s conftest$ac_exeext'
18792 { (case "(($ac_try" in
18793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18794 *) ac_try_echo=$ac_try;;
18795esac
18796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18797 (eval "$ac_try") 2>&5
18798 ac_status=$?
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; }; then
18801 ac_cv_lib_gcc___moddi3=yes
18802else
18803 echo "$as_me: failed program was:" >&5
18804sed 's/^/| /' conftest.$ac_ext >&5
18805
18806 ac_cv_lib_gcc___moddi3=no
18807fi
18808
18809rm -f core conftest.err conftest.$ac_objext \
18810 conftest$ac_exeext conftest.$ac_ext
18811LIBS=$ac_check_lib_save_LIBS
18812fi
18813{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
18814echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
18815if test $ac_cv_lib_gcc___moddi3 = yes; then
18816
18817cat >>confdefs.h <<\_ACEOF
18818#define HAVE___MODDI3 1
18819_ACEOF
18820
18821fi
18822
18823 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
18824echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
18825if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
18826 echo $ECHO_N "(cached) $ECHO_C" >&6
18827else
18828 ac_check_lib_save_LIBS=$LIBS
18829LIBS="-lgcc $LIBS"
18830cat >conftest.$ac_ext <<_ACEOF
18831/* confdefs.h. */
18832_ACEOF
18833cat confdefs.h >>conftest.$ac_ext
18834cat >>conftest.$ac_ext <<_ACEOF
18835/* end confdefs.h. */
18836
18837/* Override any GCC internal prototype to avoid an error.
18838 Use char because int might match the return type of a GCC
18839 builtin and then its argument prototype would still apply. */
18840#ifdef __cplusplus
18841extern "C"
18842#endif
18843char __udivdi3 ();
18844int
18845main ()
18846{
18847return __udivdi3 ();
18848 ;
18849 return 0;
18850}
18851_ACEOF
18852rm -f conftest.$ac_objext conftest$ac_exeext
18853if { (ac_try="$ac_link"
18854case "(($ac_try" in
18855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856 *) ac_try_echo=$ac_try;;
18857esac
18858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859 (eval "$ac_link") 2>conftest.er1
18860 ac_status=$?
18861 grep -v '^ *+' conftest.er1 >conftest.err
18862 rm -f conftest.er1
18863 cat conftest.err >&5
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); } &&
18866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18867 { (case "(($ac_try" in
18868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869 *) ac_try_echo=$ac_try;;
18870esac
18871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872 (eval "$ac_try") 2>&5
18873 ac_status=$?
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); }; } &&
18876 { ac_try='test -s conftest$ac_exeext'
18877 { (case "(($ac_try" in
18878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18879 *) ac_try_echo=$ac_try;;
18880esac
18881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882 (eval "$ac_try") 2>&5
18883 ac_status=$?
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); }; }; then
18886 ac_cv_lib_gcc___udivdi3=yes
18887else
18888 echo "$as_me: failed program was:" >&5
18889sed 's/^/| /' conftest.$ac_ext >&5
18890
18891 ac_cv_lib_gcc___udivdi3=no
18892fi
18893
18894rm -f core conftest.err conftest.$ac_objext \
18895 conftest$ac_exeext conftest.$ac_ext
18896LIBS=$ac_check_lib_save_LIBS
18897fi
18898{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
18899echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
18900if test $ac_cv_lib_gcc___udivdi3 = yes; then
18901
18902cat >>confdefs.h <<\_ACEOF
18903#define HAVE___UDIVDI3 1
18904_ACEOF
18905
18906fi
18907
18908 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
18909echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
18910if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
18911 echo $ECHO_N "(cached) $ECHO_C" >&6
18912else
18913 ac_check_lib_save_LIBS=$LIBS
18914LIBS="-lgcc $LIBS"
18915cat >conftest.$ac_ext <<_ACEOF
18916/* confdefs.h. */
18917_ACEOF
18918cat confdefs.h >>conftest.$ac_ext
18919cat >>conftest.$ac_ext <<_ACEOF
18920/* end confdefs.h. */
18921
18922/* Override any GCC internal prototype to avoid an error.
18923 Use char because int might match the return type of a GCC
18924 builtin and then its argument prototype would still apply. */
18925#ifdef __cplusplus
18926extern "C"
18927#endif
18928char __umoddi3 ();
18929int
18930main ()
18931{
18932return __umoddi3 ();
18933 ;
18934 return 0;
18935}
18936_ACEOF
18937rm -f conftest.$ac_objext conftest$ac_exeext
18938if { (ac_try="$ac_link"
18939case "(($ac_try" in
18940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941 *) ac_try_echo=$ac_try;;
18942esac
18943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18944 (eval "$ac_link") 2>conftest.er1
18945 ac_status=$?
18946 grep -v '^ *+' conftest.er1 >conftest.err
18947 rm -f conftest.er1
18948 cat conftest.err >&5
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); } &&
18951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18952 { (case "(($ac_try" in
18953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18955esac
18956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957 (eval "$ac_try") 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; } &&
18961 { ac_try='test -s conftest$ac_exeext'
18962 { (case "(($ac_try" in
18963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964 *) ac_try_echo=$ac_try;;
18965esac
18966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967 (eval "$ac_try") 2>&5
18968 ac_status=$?
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); }; }; then
18971 ac_cv_lib_gcc___umoddi3=yes
18972else
18973 echo "$as_me: failed program was:" >&5
18974sed 's/^/| /' conftest.$ac_ext >&5
18975
18976 ac_cv_lib_gcc___umoddi3=no
18977fi
18978
18979rm -f core conftest.err conftest.$ac_objext \
18980 conftest$ac_exeext conftest.$ac_ext
18981LIBS=$ac_check_lib_save_LIBS
18982fi
18983{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
18984echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
18985if test $ac_cv_lib_gcc___umoddi3 = yes; then
18986
18987cat >>confdefs.h <<\_ACEOF
18988#define HAVE___UMODDI3 1
18989_ACEOF
18990
18991fi
18992
18993
18994 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
18995echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
18996if test "${ac_cv_lib_gcc___main+set}" = set; then
18997 echo $ECHO_N "(cached) $ECHO_C" >&6
18998else
18999 ac_check_lib_save_LIBS=$LIBS
19000LIBS="-lgcc $LIBS"
19001cat >conftest.$ac_ext <<_ACEOF
19002/* confdefs.h. */
19003_ACEOF
19004cat confdefs.h >>conftest.$ac_ext
19005cat >>conftest.$ac_ext <<_ACEOF
19006/* end confdefs.h. */
19007
19008/* Override any GCC internal prototype to avoid an error.
19009 Use char because int might match the return type of a GCC
19010 builtin and then its argument prototype would still apply. */
19011#ifdef __cplusplus
19012extern "C"
19013#endif
19014char __main ();
19015int
19016main ()
19017{
19018return __main ();
19019 ;
19020 return 0;
19021}
19022_ACEOF
19023rm -f conftest.$ac_objext conftest$ac_exeext
19024if { (ac_try="$ac_link"
19025case "(($ac_try" in
19026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027 *) ac_try_echo=$ac_try;;
19028esac
19029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19030 (eval "$ac_link") 2>conftest.er1
19031 ac_status=$?
19032 grep -v '^ *+' conftest.er1 >conftest.err
19033 rm -f conftest.er1
19034 cat conftest.err >&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } &&
19037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19038 { (case "(($ac_try" in
19039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19040 *) ac_try_echo=$ac_try;;
19041esac
19042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19043 (eval "$ac_try") 2>&5
19044 ac_status=$?
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }; } &&
19047 { ac_try='test -s conftest$ac_exeext'
19048 { (case "(($ac_try" in
19049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050 *) ac_try_echo=$ac_try;;
19051esac
19052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053 (eval "$ac_try") 2>&5
19054 ac_status=$?
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; }; then
19057 ac_cv_lib_gcc___main=yes
19058else
19059 echo "$as_me: failed program was:" >&5
19060sed 's/^/| /' conftest.$ac_ext >&5
19061
19062 ac_cv_lib_gcc___main=no
19063fi
19064
19065rm -f core conftest.err conftest.$ac_objext \
19066 conftest$ac_exeext conftest.$ac_ext
19067LIBS=$ac_check_lib_save_LIBS
19068fi
19069{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19070echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19071if test $ac_cv_lib_gcc___main = yes; then
19072
19073cat >>confdefs.h <<\_ACEOF
19074#define HAVE___MAIN 1
19075_ACEOF
19076
19077fi
19078
19079 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19080echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19081if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19082 echo $ECHO_N "(cached) $ECHO_C" >&6
19083else
19084 ac_check_lib_save_LIBS=$LIBS
19085LIBS="-lgcc $LIBS"
19086cat >conftest.$ac_ext <<_ACEOF
19087/* confdefs.h. */
19088_ACEOF
19089cat confdefs.h >>conftest.$ac_ext
19090cat >>conftest.$ac_ext <<_ACEOF
19091/* end confdefs.h. */
19092
19093/* Override any GCC internal prototype to avoid an error.
19094 Use char because int might match the return type of a GCC
19095 builtin and then its argument prototype would still apply. */
19096#ifdef __cplusplus
19097extern "C"
19098#endif
19099char __cmpdi2 ();
19100int
19101main ()
19102{
19103return __cmpdi2 ();
19104 ;
19105 return 0;
19106}
19107_ACEOF
19108rm -f conftest.$ac_objext conftest$ac_exeext
19109if { (ac_try="$ac_link"
19110case "(($ac_try" in
19111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112 *) ac_try_echo=$ac_try;;
19113esac
19114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115 (eval "$ac_link") 2>conftest.er1
19116 ac_status=$?
19117 grep -v '^ *+' conftest.er1 >conftest.err
19118 rm -f conftest.er1
19119 cat conftest.err >&5
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); } &&
19122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19123 { (case "(($ac_try" in
19124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125 *) ac_try_echo=$ac_try;;
19126esac
19127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128 (eval "$ac_try") 2>&5
19129 ac_status=$?
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; } &&
19132 { ac_try='test -s conftest$ac_exeext'
19133 { (case "(($ac_try" in
19134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19135 *) ac_try_echo=$ac_try;;
19136esac
19137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19138 (eval "$ac_try") 2>&5
19139 ac_status=$?
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; }; then
19142 ac_cv_lib_gcc___cmpdi2=yes
19143else
19144 echo "$as_me: failed program was:" >&5
19145sed 's/^/| /' conftest.$ac_ext >&5
19146
19147 ac_cv_lib_gcc___cmpdi2=no
19148fi
19149
19150rm -f core conftest.err conftest.$ac_objext \
19151 conftest$ac_exeext conftest.$ac_ext
19152LIBS=$ac_check_lib_save_LIBS
19153fi
19154{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19155echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19156if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19157
19158cat >>confdefs.h <<\_ACEOF
19159#define HAVE___CMPDI2 1
19160_ACEOF
19161
19162fi
19163
19164fi
19165
19166if test "$llvm_cv_os_type" = "MingW" ; then
19167 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19168echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19169 cat >conftest.$ac_ext <<_ACEOF
19170#include <windows.h>
19171#include <imagehlp.h>
19172extern void foo(PENUMLOADED_MODULES_CALLBACK);
19173extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19174_ACEOF
19175rm -f conftest.$ac_objext
19176if { (ac_try="$ac_compile"
19177case "(($ac_try" in
19178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19179 *) ac_try_echo=$ac_try;;
19180esac
19181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19182 (eval "$ac_compile") 2>conftest.er1
19183 ac_status=$?
19184 grep -v '^ *+' conftest.er1 >conftest.err
19185 rm -f conftest.er1
19186 cat conftest.err >&5
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); } &&
19189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19190 { (case "(($ac_try" in
19191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192 *) ac_try_echo=$ac_try;;
19193esac
19194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195 (eval "$ac_try") 2>&5
19196 ac_status=$?
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; } &&
19199 { ac_try='test -s conftest.$ac_objext'
19200 { (case "(($ac_try" in
19201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19202 *) ac_try_echo=$ac_try;;
19203esac
19204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19205 (eval "$ac_try") 2>&5
19206 ac_status=$?
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); }; }; then
19209
19210 { echo "$as_me:$LINENO: result: yes" >&5
19211echo "${ECHO_T}yes" >&6; }
19212 llvm_cv_win32_elmcb_pcstr="PCSTR"
19213
19214else
19215 echo "$as_me: failed program was:" >&5
19216sed 's/^/| /' conftest.$ac_ext >&5
19217
19218
19219 { echo "$as_me:$LINENO: result: no" >&5
19220echo "${ECHO_T}no" >&6; }
19221 llvm_cv_win32_elmcb_pcstr="PSTR"
19222
19223fi
19224
19225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19226
19227cat >>confdefs.h <<_ACEOF
19228#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19229_ACEOF
19230
19231fi
19232
19233
19234{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19235echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19236if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19237 echo $ECHO_N "(cached) $ECHO_C" >&6
19238else
19239 ac_ext=cpp
19240ac_cpp='$CXXCPP $CPPFLAGS'
19241ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19242ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19243ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19244
19245 cat >conftest.$ac_ext <<_ACEOF
19246/* confdefs.h. */
19247_ACEOF
19248cat confdefs.h >>conftest.$ac_ext
19249cat >>conftest.$ac_ext <<_ACEOF
19250/* end confdefs.h. */
19251#include <math.h>
19252int
19253main ()
19254{
19255float f; isnan(f);
19256 ;
19257 return 0;
19258}
19259_ACEOF
19260rm -f conftest.$ac_objext
19261if { (ac_try="$ac_compile"
19262case "(($ac_try" in
19263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264 *) ac_try_echo=$ac_try;;
19265esac
19266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19267 (eval "$ac_compile") 2>conftest.er1
19268 ac_status=$?
19269 grep -v '^ *+' conftest.er1 >conftest.err
19270 rm -f conftest.er1
19271 cat conftest.err >&5
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); } &&
19274 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19275 { (case "(($ac_try" in
19276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277 *) ac_try_echo=$ac_try;;
19278esac
19279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19280 (eval "$ac_try") 2>&5
19281 ac_status=$?
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; } &&
19284 { ac_try='test -s conftest.$ac_objext'
19285 { (case "(($ac_try" in
19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287 *) ac_try_echo=$ac_try;;
19288esac
19289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290 (eval "$ac_try") 2>&5
19291 ac_status=$?
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; }; then
19294 ac_cv_func_isnan_in_math_h=yes
19295else
19296 echo "$as_me: failed program was:" >&5
19297sed 's/^/| /' conftest.$ac_ext >&5
19298
19299 ac_cv_func_isnan_in_math_h=no
19300fi
19301
19302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19303 ac_ext=c
19304ac_cpp='$CPP $CPPFLAGS'
19305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19307ac_compiler_gnu=$ac_cv_c_compiler_gnu
19308
19309fi
19310{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19311echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19312
19313
19314if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19315
19316cat >>confdefs.h <<\_ACEOF
19317#define HAVE_ISNAN_IN_MATH_H 1
19318_ACEOF
19319
19320fi
19321
19322{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19323echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19324if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19325 echo $ECHO_N "(cached) $ECHO_C" >&6
19326else
19327 ac_ext=cpp
19328ac_cpp='$CXXCPP $CPPFLAGS'
19329ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19330ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19331ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19332
19333 cat >conftest.$ac_ext <<_ACEOF
19334/* confdefs.h. */
19335_ACEOF
19336cat confdefs.h >>conftest.$ac_ext
19337cat >>conftest.$ac_ext <<_ACEOF
19338/* end confdefs.h. */
19339#include <cmath>
19340int
19341main ()
19342{
19343float f; isnan(f);
19344 ;
19345 return 0;
19346}
19347_ACEOF
19348rm -f conftest.$ac_objext
19349if { (ac_try="$ac_compile"
19350case "(($ac_try" in
19351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19352 *) ac_try_echo=$ac_try;;
19353esac
19354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19355 (eval "$ac_compile") 2>conftest.er1
19356 ac_status=$?
19357 grep -v '^ *+' conftest.er1 >conftest.err
19358 rm -f conftest.er1
19359 cat conftest.err >&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); } &&
19362 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19363 { (case "(($ac_try" in
19364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365 *) ac_try_echo=$ac_try;;
19366esac
19367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19368 (eval "$ac_try") 2>&5
19369 ac_status=$?
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); }; } &&
19372 { ac_try='test -s conftest.$ac_objext'
19373 { (case "(($ac_try" in
19374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375 *) ac_try_echo=$ac_try;;
19376esac
19377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19378 (eval "$ac_try") 2>&5
19379 ac_status=$?
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; }; then
19382 ac_cv_func_isnan_in_cmath=yes
19383else
19384 echo "$as_me: failed program was:" >&5
19385sed 's/^/| /' conftest.$ac_ext >&5
19386
19387 ac_cv_func_isnan_in_cmath=no
19388fi
19389
19390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19391 ac_ext=c
19392ac_cpp='$CPP $CPPFLAGS'
19393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19395ac_compiler_gnu=$ac_cv_c_compiler_gnu
19396
19397fi
19398{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19399echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19400
19401if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19402
19403cat >>confdefs.h <<\_ACEOF
19404#define HAVE_ISNAN_IN_CMATH 1
19405_ACEOF
19406
19407fi
19408
19409{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19410echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19411if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19412 echo $ECHO_N "(cached) $ECHO_C" >&6
19413else
19414 ac_ext=cpp
19415ac_cpp='$CXXCPP $CPPFLAGS'
19416ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19417ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19418ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19419
19420 cat >conftest.$ac_ext <<_ACEOF
19421/* confdefs.h. */
19422_ACEOF
19423cat confdefs.h >>conftest.$ac_ext
19424cat >>conftest.$ac_ext <<_ACEOF
19425/* end confdefs.h. */
19426#include <cmath>
19427int
19428main ()
19429{
19430float f; std::isnan(f);
19431 ;
19432 return 0;
19433}
19434_ACEOF
19435rm -f conftest.$ac_objext
19436if { (ac_try="$ac_compile"
19437case "(($ac_try" in
19438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19439 *) ac_try_echo=$ac_try;;
19440esac
19441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19442 (eval "$ac_compile") 2>conftest.er1
19443 ac_status=$?
19444 grep -v '^ *+' conftest.er1 >conftest.err
19445 rm -f conftest.er1
19446 cat conftest.err >&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); } &&
19449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19450 { (case "(($ac_try" in
19451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19452 *) ac_try_echo=$ac_try;;
19453esac
19454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19455 (eval "$ac_try") 2>&5
19456 ac_status=$?
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); }; } &&
19459 { ac_try='test -s conftest.$ac_objext'
19460 { (case "(($ac_try" in
19461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19462 *) ac_try_echo=$ac_try;;
19463esac
19464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19465 (eval "$ac_try") 2>&5
19466 ac_status=$?
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); }; }; then
19469 ac_cv_func_std_isnan_in_cmath=yes
19470else
19471 echo "$as_me: failed program was:" >&5
19472sed 's/^/| /' conftest.$ac_ext >&5
19473
19474 ac_cv_func_std_isnan_in_cmath=no
19475fi
19476
19477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19478 ac_ext=c
19479ac_cpp='$CPP $CPPFLAGS'
19480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19482ac_compiler_gnu=$ac_cv_c_compiler_gnu
19483
19484fi
19485{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19486echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19487
19488if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19489
19490cat >>confdefs.h <<\_ACEOF
19491#define HAVE_STD_ISNAN_IN_CMATH 1
19492_ACEOF
19493
19494fi
19495
19496
19497{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19498echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19499if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19500 echo $ECHO_N "(cached) $ECHO_C" >&6
19501else
19502 ac_ext=cpp
19503ac_cpp='$CXXCPP $CPPFLAGS'
19504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19507
19508 cat >conftest.$ac_ext <<_ACEOF
19509/* confdefs.h. */
19510_ACEOF
19511cat confdefs.h >>conftest.$ac_ext
19512cat >>conftest.$ac_ext <<_ACEOF
19513/* end confdefs.h. */
19514#include <math.h>
19515int
19516main ()
19517{
19518float f; isinf(f);
19519 ;
19520 return 0;
19521}
19522_ACEOF
19523rm -f conftest.$ac_objext
19524if { (ac_try="$ac_compile"
19525case "(($ac_try" in
19526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527 *) ac_try_echo=$ac_try;;
19528esac
19529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19530 (eval "$ac_compile") 2>conftest.er1
19531 ac_status=$?
19532 grep -v '^ *+' conftest.er1 >conftest.err
19533 rm -f conftest.er1
19534 cat conftest.err >&5
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); } &&
19537 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19538 { (case "(($ac_try" in
19539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19540 *) ac_try_echo=$ac_try;;
19541esac
19542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19543 (eval "$ac_try") 2>&5
19544 ac_status=$?
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); }; } &&
19547 { ac_try='test -s conftest.$ac_objext'
19548 { (case "(($ac_try" in
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550 *) ac_try_echo=$ac_try;;
19551esac
19552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19553 (eval "$ac_try") 2>&5
19554 ac_status=$?
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; }; then
19557 ac_cv_func_isinf_in_math_h=yes
19558else
19559 echo "$as_me: failed program was:" >&5
19560sed 's/^/| /' conftest.$ac_ext >&5
19561
19562 ac_cv_func_isinf_in_math_h=no
19563fi
19564
19565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19566 ac_ext=c
19567ac_cpp='$CPP $CPPFLAGS'
19568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19570ac_compiler_gnu=$ac_cv_c_compiler_gnu
19571
19572fi
19573{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19574echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19575
19576if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19577
19578cat >>confdefs.h <<\_ACEOF
19579#define HAVE_ISINF_IN_MATH_H 1
19580_ACEOF
19581
19582fi
19583
19584{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19585echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19586if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19587 echo $ECHO_N "(cached) $ECHO_C" >&6
19588else
19589 ac_ext=cpp
19590ac_cpp='$CXXCPP $CPPFLAGS'
19591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19594
19595 cat >conftest.$ac_ext <<_ACEOF
19596/* confdefs.h. */
19597_ACEOF
19598cat confdefs.h >>conftest.$ac_ext
19599cat >>conftest.$ac_ext <<_ACEOF
19600/* end confdefs.h. */
19601#include <cmath>
19602int
19603main ()
19604{
19605float f; isinf(f);
19606 ;
19607 return 0;
19608}
19609_ACEOF
19610rm -f conftest.$ac_objext
19611if { (ac_try="$ac_compile"
19612case "(($ac_try" in
19613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614 *) ac_try_echo=$ac_try;;
19615esac
19616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19617 (eval "$ac_compile") 2>conftest.er1
19618 ac_status=$?
19619 grep -v '^ *+' conftest.er1 >conftest.err
19620 rm -f conftest.er1
19621 cat conftest.err >&5
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); } &&
19624 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19625 { (case "(($ac_try" in
19626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19627 *) ac_try_echo=$ac_try;;
19628esac
19629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19630 (eval "$ac_try") 2>&5
19631 ac_status=$?
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; } &&
19634 { ac_try='test -s conftest.$ac_objext'
19635 { (case "(($ac_try" in
19636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19637 *) ac_try_echo=$ac_try;;
19638esac
19639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19640 (eval "$ac_try") 2>&5
19641 ac_status=$?
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; }; then
19644 ac_cv_func_isinf_in_cmath=yes
19645else
19646 echo "$as_me: failed program was:" >&5
19647sed 's/^/| /' conftest.$ac_ext >&5
19648
19649 ac_cv_func_isinf_in_cmath=no
19650fi
19651
19652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19653 ac_ext=c
19654ac_cpp='$CPP $CPPFLAGS'
19655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19657ac_compiler_gnu=$ac_cv_c_compiler_gnu
19658
19659fi
19660{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19661echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19662
19663if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19664
19665cat >>confdefs.h <<\_ACEOF
19666#define HAVE_ISINF_IN_CMATH 1
19667_ACEOF
19668
19669fi
19670
19671{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19672echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19673if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19674 echo $ECHO_N "(cached) $ECHO_C" >&6
19675else
19676 ac_ext=cpp
19677ac_cpp='$CXXCPP $CPPFLAGS'
19678ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19679ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19680ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19681
19682 cat >conftest.$ac_ext <<_ACEOF
19683/* confdefs.h. */
19684_ACEOF
19685cat confdefs.h >>conftest.$ac_ext
19686cat >>conftest.$ac_ext <<_ACEOF
19687/* end confdefs.h. */
19688#include <cmath>
19689int
19690main ()
19691{
19692float f; std::isinf(f)}
19693 ;
19694 return 0;
19695}
19696_ACEOF
19697rm -f conftest.$ac_objext
19698if { (ac_try="$ac_compile"
19699case "(($ac_try" in
19700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19701 *) ac_try_echo=$ac_try;;
19702esac
19703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19704 (eval "$ac_compile") 2>conftest.er1
19705 ac_status=$?
19706 grep -v '^ *+' conftest.er1 >conftest.err
19707 rm -f conftest.er1
19708 cat conftest.err >&5
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); } &&
19711 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19712 { (case "(($ac_try" in
19713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19714 *) ac_try_echo=$ac_try;;
19715esac
19716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19717 (eval "$ac_try") 2>&5
19718 ac_status=$?
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); }; } &&
19721 { ac_try='test -s conftest.$ac_objext'
19722 { (case "(($ac_try" in
19723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19724 *) ac_try_echo=$ac_try;;
19725esac
19726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19727 (eval "$ac_try") 2>&5
19728 ac_status=$?
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; }; then
19731 ac_cv_func_std_isinf_in_cmath=yes
19732else
19733 echo "$as_me: failed program was:" >&5
19734sed 's/^/| /' conftest.$ac_ext >&5
19735
19736 ac_cv_func_std_isinf_in_cmath=no
19737fi
19738
19739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19740 ac_ext=c
19741ac_cpp='$CPP $CPPFLAGS'
19742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19744ac_compiler_gnu=$ac_cv_c_compiler_gnu
19745
19746fi
19747{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19748echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19749
19750if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19751
19752cat >>confdefs.h <<\_ACEOF
19753#define HAVE_STD_ISINF_IN_CMATH 1
19754_ACEOF
19755
19756fi
19757
19758{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19759echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19760if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19762else
19763 ac_ext=cpp
19764ac_cpp='$CXXCPP $CPPFLAGS'
19765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19768
19769 cat >conftest.$ac_ext <<_ACEOF
19770/* confdefs.h. */
19771_ACEOF
19772cat confdefs.h >>conftest.$ac_ext
19773cat >>conftest.$ac_ext <<_ACEOF
19774/* end confdefs.h. */
19775#include <ieeefp.h>
19776int
19777main ()
19778{
19779float f; finite(f);
19780 ;
19781 return 0;
19782}
19783_ACEOF
19784rm -f conftest.$ac_objext
19785if { (ac_try="$ac_compile"
19786case "(($ac_try" in
19787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19788 *) ac_try_echo=$ac_try;;
19789esac
19790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19791 (eval "$ac_compile") 2>conftest.er1
19792 ac_status=$?
19793 grep -v '^ *+' conftest.er1 >conftest.err
19794 rm -f conftest.er1
19795 cat conftest.err >&5
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); } &&
19798 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19799 { (case "(($ac_try" in
19800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801 *) ac_try_echo=$ac_try;;
19802esac
19803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19804 (eval "$ac_try") 2>&5
19805 ac_status=$?
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); }; } &&
19808 { ac_try='test -s conftest.$ac_objext'
19809 { (case "(($ac_try" in
19810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19811 *) ac_try_echo=$ac_try;;
19812esac
19813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19814 (eval "$ac_try") 2>&5
19815 ac_status=$?
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); }; }; then
19818 ac_cv_func_finite_in_ieeefp_h=yes
19819else
19820 echo "$as_me: failed program was:" >&5
19821sed 's/^/| /' conftest.$ac_ext >&5
19822
19823 ac_cv_func_finite_in_ieeefp_h=no
19824fi
19825
19826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19827 ac_ext=c
19828ac_cpp='$CPP $CPPFLAGS'
19829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19831ac_compiler_gnu=$ac_cv_c_compiler_gnu
19832
19833fi
19834{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19835echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19836
19837if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19838
19839cat >>confdefs.h <<\_ACEOF
19840#define HAVE_FINITE_IN_IEEEFP_H 1
19841_ACEOF
19842
19843fi
19844
19845
19846
19847if test "$llvm_cv_platform_type" = "Unix" ; then
19848
19849
19850for ac_header in stdlib.h unistd.h
19851do
19852as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19853if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19855echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19856if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19857 echo $ECHO_N "(cached) $ECHO_C" >&6
19858fi
19859ac_res=`eval echo '${'$as_ac_Header'}'`
19860 { echo "$as_me:$LINENO: result: $ac_res" >&5
19861echo "${ECHO_T}$ac_res" >&6; }
19862else
19863 # Is the header compilable?
19864{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19865echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19866cat >conftest.$ac_ext <<_ACEOF
19867/* confdefs.h. */
19868_ACEOF
19869cat confdefs.h >>conftest.$ac_ext
19870cat >>conftest.$ac_ext <<_ACEOF
19871/* end confdefs.h. */
19872$ac_includes_default
19873#include <$ac_header>
19874_ACEOF
19875rm -f conftest.$ac_objext
19876if { (ac_try="$ac_compile"
19877case "(($ac_try" in
19878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879 *) ac_try_echo=$ac_try;;
19880esac
19881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882 (eval "$ac_compile") 2>conftest.er1
19883 ac_status=$?
19884 grep -v '^ *+' conftest.er1 >conftest.err
19885 rm -f conftest.er1
19886 cat conftest.err >&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); } &&
19889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19890 { (case "(($ac_try" in
19891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19892 *) ac_try_echo=$ac_try;;
19893esac
19894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19895 (eval "$ac_try") 2>&5
19896 ac_status=$?
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); }; } &&
19899 { ac_try='test -s conftest.$ac_objext'
19900 { (case "(($ac_try" in
19901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902 *) ac_try_echo=$ac_try;;
19903esac
19904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905 (eval "$ac_try") 2>&5
19906 ac_status=$?
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); }; }; then
19909 ac_header_compiler=yes
19910else
19911 echo "$as_me: failed program was:" >&5
19912sed 's/^/| /' conftest.$ac_ext >&5
19913
19914 ac_header_compiler=no
19915fi
19916
19917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19918{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19919echo "${ECHO_T}$ac_header_compiler" >&6; }
19920
19921# Is the header present?
19922{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19923echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19924cat >conftest.$ac_ext <<_ACEOF
19925/* confdefs.h. */
19926_ACEOF
19927cat confdefs.h >>conftest.$ac_ext
19928cat >>conftest.$ac_ext <<_ACEOF
19929/* end confdefs.h. */
19930#include <$ac_header>
19931_ACEOF
19932if { (ac_try="$ac_cpp conftest.$ac_ext"
19933case "(($ac_try" in
19934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935 *) ac_try_echo=$ac_try;;
19936esac
19937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19939 ac_status=$?
19940 grep -v '^ *+' conftest.er1 >conftest.err
19941 rm -f conftest.er1
19942 cat conftest.err >&5
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); } >/dev/null; then
19945 if test -s conftest.err; then
19946 ac_cpp_err=$ac_c_preproc_warn_flag
19947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19948 else
19949 ac_cpp_err=
19950 fi
19951else
19952 ac_cpp_err=yes
19953fi
19954if test -z "$ac_cpp_err"; then
19955 ac_header_preproc=yes
19956else
19957 echo "$as_me: failed program was:" >&5
19958sed 's/^/| /' conftest.$ac_ext >&5
19959
19960 ac_header_preproc=no
19961fi
19962
19963rm -f conftest.err conftest.$ac_ext
19964{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19965echo "${ECHO_T}$ac_header_preproc" >&6; }
19966
19967# So? What about this header?
19968case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19969 yes:no: )
19970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19971echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19973echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19974 ac_header_preproc=yes
19975 ;;
19976 no:yes:* )
19977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19978echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19980echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19982echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19984echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19986echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19988echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19989 ( cat <<\_ASBOX
19990## ------------------------------ ##
19991## Report this to bugs@yourdomain ##
19992## ------------------------------ ##
19993_ASBOX
19994 ) | sed "s/^/$as_me: WARNING: /" >&2
19995 ;;
19996esac
19997{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19998echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19999if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20000 echo $ECHO_N "(cached) $ECHO_C" >&6
20001else
20002 eval "$as_ac_Header=\$ac_header_preproc"
20003fi
20004ac_res=`eval echo '${'$as_ac_Header'}'`
20005 { echo "$as_me:$LINENO: result: $ac_res" >&5
20006echo "${ECHO_T}$ac_res" >&6; }
20007
20008fi
20009if test `eval echo '${'$as_ac_Header'}'` = yes; then
20010 cat >>confdefs.h <<_ACEOF
20011#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20012_ACEOF
20013
20014fi
20015
20016done
20017
20018
20019for ac_func in getpagesize
20020do
20021as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20022{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20023echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20024if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20025 echo $ECHO_N "(cached) $ECHO_C" >&6
20026else
20027 cat >conftest.$ac_ext <<_ACEOF
20028/* confdefs.h. */
20029_ACEOF
20030cat confdefs.h >>conftest.$ac_ext
20031cat >>conftest.$ac_ext <<_ACEOF
20032/* end confdefs.h. */
20033/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20035#define $ac_func innocuous_$ac_func
20036
20037/* System header to define __stub macros and hopefully few prototypes,
20038 which can conflict with char $ac_func (); below.
20039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20040 <limits.h> exists even on freestanding compilers. */
20041
20042#ifdef __STDC__
20043# include <limits.h>
20044#else
20045# include <assert.h>
20046#endif
20047
20048#undef $ac_func
20049
20050/* Override any GCC internal prototype to avoid an error.
20051 Use char because int might match the return type of a GCC
20052 builtin and then its argument prototype would still apply. */
20053#ifdef __cplusplus
20054extern "C"
20055#endif
20056char $ac_func ();
20057/* The GNU C library defines this for functions which it implements
20058 to always fail with ENOSYS. Some functions are actually named
20059 something starting with __ and the normal name is an alias. */
20060#if defined __stub_$ac_func || defined __stub___$ac_func
20061choke me
20062#endif
20063
20064int
20065main ()
20066{
20067return $ac_func ();
20068 ;
20069 return 0;
20070}
20071_ACEOF
20072rm -f conftest.$ac_objext conftest$ac_exeext
20073if { (ac_try="$ac_link"
20074case "(($ac_try" in
20075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20076 *) ac_try_echo=$ac_try;;
20077esac
20078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20079 (eval "$ac_link") 2>conftest.er1
20080 ac_status=$?
20081 grep -v '^ *+' conftest.er1 >conftest.err
20082 rm -f conftest.er1
20083 cat conftest.err >&5
20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); } &&
20086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20087 { (case "(($ac_try" in
20088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20089 *) ac_try_echo=$ac_try;;
20090esac
20091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20092 (eval "$ac_try") 2>&5
20093 ac_status=$?
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); }; } &&
20096 { ac_try='test -s conftest$ac_exeext'
20097 { (case "(($ac_try" in
20098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20099 *) ac_try_echo=$ac_try;;
20100esac
20101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20102 (eval "$ac_try") 2>&5
20103 ac_status=$?
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); }; }; then
20106 eval "$as_ac_var=yes"
20107else
20108 echo "$as_me: failed program was:" >&5
20109sed 's/^/| /' conftest.$ac_ext >&5
20110
20111 eval "$as_ac_var=no"
20112fi
20113
20114rm -f core conftest.err conftest.$ac_objext \
20115 conftest$ac_exeext conftest.$ac_ext
20116fi
20117ac_res=`eval echo '${'$as_ac_var'}'`
20118 { echo "$as_me:$LINENO: result: $ac_res" >&5
20119echo "${ECHO_T}$ac_res" >&6; }
20120if test `eval echo '${'$as_ac_var'}'` = yes; then
20121 cat >>confdefs.h <<_ACEOF
20122#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20123_ACEOF
20124
20125fi
20126done
20127
20128{ echo "$as_me:$LINENO: checking for working mmap" >&5
20129echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20130if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20131 echo $ECHO_N "(cached) $ECHO_C" >&6
20132else
20133 if test "$cross_compiling" = yes; then
20134 ac_cv_func_mmap_fixed_mapped=no
20135else
20136 cat >conftest.$ac_ext <<_ACEOF
20137/* confdefs.h. */
20138_ACEOF
20139cat confdefs.h >>conftest.$ac_ext
20140cat >>conftest.$ac_ext <<_ACEOF
20141/* end confdefs.h. */
20142$ac_includes_default
20143/* malloc might have been renamed as rpl_malloc. */
20144#undef malloc
20145
20146/* Thanks to Mike Haertel and Jim Avera for this test.
20147 Here is a matrix of mmap possibilities:
20148 mmap private not fixed
20149 mmap private fixed at somewhere currently unmapped
20150 mmap private fixed at somewhere already mapped
20151 mmap shared not fixed
20152 mmap shared fixed at somewhere currently unmapped
20153 mmap shared fixed at somewhere already mapped
20154 For private mappings, we should verify that changes cannot be read()
20155 back from the file, nor mmap's back from the file at a different
20156 address. (There have been systems where private was not correctly
20157 implemented like the infamous i386 svr4.0, and systems where the
20158 VM page cache was not coherent with the file system buffer cache
20159 like early versions of FreeBSD and possibly contemporary NetBSD.)
20160 For shared mappings, we should conversely verify that changes get
20161 propagated back to all the places they're supposed to be.
20162
20163 Grep wants private fixed already mapped.
20164 The main things grep needs to know about mmap are:
20165 * does it exist and is it safe to write into the mmap'd area
20166 * how to use it (BSD variants) */
20167
20168#include <fcntl.h>
20169#include <sys/mman.h>
20170
20171#if !STDC_HEADERS && !HAVE_STDLIB_H
20172char *malloc ();
20173#endif
20174
20175/* This mess was copied from the GNU getpagesize.h. */
20176#if !HAVE_GETPAGESIZE
20177/* Assume that all systems that can run configure have sys/param.h. */
20178# if !HAVE_SYS_PARAM_H
20179# define HAVE_SYS_PARAM_H 1
20180# endif
20181
20182# ifdef _SC_PAGESIZE
20183# define getpagesize() sysconf(_SC_PAGESIZE)
20184# else /* no _SC_PAGESIZE */
20185# if HAVE_SYS_PARAM_H
20186# include <sys/param.h>
20187# ifdef EXEC_PAGESIZE
20188# define getpagesize() EXEC_PAGESIZE
20189# else /* no EXEC_PAGESIZE */
20190# ifdef NBPG
20191# define getpagesize() NBPG * CLSIZE
20192# ifndef CLSIZE
20193# define CLSIZE 1
20194# endif /* no CLSIZE */
20195# else /* no NBPG */
20196# ifdef NBPC
20197# define getpagesize() NBPC
20198# else /* no NBPC */
20199# ifdef PAGESIZE
20200# define getpagesize() PAGESIZE
20201# endif /* PAGESIZE */
20202# endif /* no NBPC */
20203# endif /* no NBPG */
20204# endif /* no EXEC_PAGESIZE */
20205# else /* no HAVE_SYS_PARAM_H */
20206# define getpagesize() 8192 /* punt totally */
20207# endif /* no HAVE_SYS_PARAM_H */
20208# endif /* no _SC_PAGESIZE */
20209
20210#endif /* no HAVE_GETPAGESIZE */
20211
20212int
20213main ()
20214{
20215 char *data, *data2, *data3;
20216 int i, pagesize;
20217 int fd;
20218
20219 pagesize = getpagesize ();
20220
20221 /* First, make a file with some known garbage in it. */
20222 data = (char *) malloc (pagesize);
20223 if (!data)
20224 return 1;
20225 for (i = 0; i < pagesize; ++i)
20226 *(data + i) = rand ();
20227 umask (0);
20228 fd = creat ("conftest.mmap", 0600);
20229 if (fd < 0)
20230 return 1;
20231 if (write (fd, data, pagesize) != pagesize)
20232 return 1;
20233 close (fd);
20234
20235 /* Next, try to mmap the file at a fixed address which already has
20236 something else allocated at it. If we can, also make sure that
20237 we see the same garbage. */
20238 fd = open ("conftest.mmap", O_RDWR);
20239 if (fd < 0)
20240 return 1;
20241 data2 = (char *) malloc (2 * pagesize);
20242 if (!data2)
20243 return 1;
20244 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20245 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20246 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20247 return 1;
20248 for (i = 0; i < pagesize; ++i)
20249 if (*(data + i) != *(data2 + i))
20250 return 1;
20251
20252 /* Finally, make sure that changes to the mapped area do not
20253 percolate back to the file as seen by read(). (This is a bug on
20254 some variants of i386 svr4.0.) */
20255 for (i = 0; i < pagesize; ++i)
20256 *(data2 + i) = *(data2 + i) + 1;
20257 data3 = (char *) malloc (pagesize);
20258 if (!data3)
20259 return 1;
20260 if (read (fd, data3, pagesize) != pagesize)
20261 return 1;
20262 for (i = 0; i < pagesize; ++i)
20263 if (*(data + i) != *(data3 + i))
20264 return 1;
20265 close (fd);
20266 return 0;
20267}
20268_ACEOF
20269rm -f conftest$ac_exeext
20270if { (ac_try="$ac_link"
20271case "(($ac_try" in
20272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273 *) ac_try_echo=$ac_try;;
20274esac
20275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276 (eval "$ac_link") 2>&5
20277 ac_status=$?
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20280 { (case "(($ac_try" in
20281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282 *) ac_try_echo=$ac_try;;
20283esac
20284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285 (eval "$ac_try") 2>&5
20286 ac_status=$?
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); }; }; then
20289 ac_cv_func_mmap_fixed_mapped=yes
20290else
20291 echo "$as_me: program exited with status $ac_status" >&5
20292echo "$as_me: failed program was:" >&5
20293sed 's/^/| /' conftest.$ac_ext >&5
20294
20295( exit $ac_status )
20296ac_cv_func_mmap_fixed_mapped=no
20297fi
20298rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20299fi
20300
20301
20302fi
20303{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20304echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20305if test $ac_cv_func_mmap_fixed_mapped = yes; then
20306
20307cat >>confdefs.h <<\_ACEOF
20308#define HAVE_MMAP 1
20309_ACEOF
20310
20311fi
20312rm -f conftest.mmap
20313
20314 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20315echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20316if test "${ac_cv_func_mmap_file+set}" = set; then
20317 echo $ECHO_N "(cached) $ECHO_C" >&6
20318else
20319 ac_ext=c
20320ac_cpp='$CPP $CPPFLAGS'
20321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20323ac_compiler_gnu=$ac_cv_c_compiler_gnu
20324
20325 if test "$cross_compiling" = yes; then
20326 ac_cv_func_mmap_file=no
20327else
20328 cat >conftest.$ac_ext <<_ACEOF
20329
20330 /* confdefs.h. */
20331_ACEOF
20332cat confdefs.h >>conftest.$ac_ext
20333cat >>conftest.$ac_ext <<_ACEOF
20334/* end confdefs.h. */
20335
20336#include <sys/types.h>
20337#include <sys/mman.h>
20338#include <fcntl.h>
20339
20340int
20341main ()
20342{
20343
20344 int fd;
20345 fd = creat ("foo",0777);
20346 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20347 unlink ("foo");
20348 return (fd != (int) MAP_FAILED);
20349 ;
20350 return 0;
20351}
20352_ACEOF
20353rm -f conftest$ac_exeext
20354if { (ac_try="$ac_link"
20355case "(($ac_try" in
20356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20357 *) ac_try_echo=$ac_try;;
20358esac
20359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20360 (eval "$ac_link") 2>&5
20361 ac_status=$?
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20364 { (case "(($ac_try" in
20365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366 *) ac_try_echo=$ac_try;;
20367esac
20368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20369 (eval "$ac_try") 2>&5
20370 ac_status=$?
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; }; then
20373 ac_cv_func_mmap_file=yes
20374else
20375 echo "$as_me: program exited with status $ac_status" >&5
20376echo "$as_me: failed program was:" >&5
20377sed 's/^/| /' conftest.$ac_ext >&5
20378
20379( exit $ac_status )
20380ac_cv_func_mmap_file=no
20381fi
20382rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20383fi
20384
20385
20386 ac_ext=c
20387ac_cpp='$CPP $CPPFLAGS'
20388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20390ac_compiler_gnu=$ac_cv_c_compiler_gnu
20391
20392
20393fi
20394{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20395echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20396if test "$ac_cv_func_mmap_file" = yes; then
20397
20398cat >>confdefs.h <<\_ACEOF
20399#define HAVE_MMAP_FILE
20400_ACEOF
20401
20402 MMAP_FILE=yes
20403
20404fi
20405
20406 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20407echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20408if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20409 echo $ECHO_N "(cached) $ECHO_C" >&6
20410else
20411 if test "$llvm_cv_os_type" = "Interix" ; then
20412 ac_cv_need_dev_zero_for_mmap=yes
20413 else
20414 ac_cv_need_dev_zero_for_mmap=no
20415 fi
20416
20417fi
20418{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20419echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20420if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20421
20422cat >>confdefs.h <<\_ACEOF
20423#define NEED_DEV_ZERO_FOR_MMAP 1
20424_ACEOF
20425
20426fi
20427
20428 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20429 then
20430 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20431echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20432 fi
20433 if test "$ac_cv_func_mmap_file" = "no"
20434 then
20435 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20436echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20437 fi
20438fi
20439
20440{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20441echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20442ac_ext=cpp
20443ac_cpp='$CXXCPP $CPPFLAGS'
20444ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20445ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20446ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20447
20448cat >conftest.$ac_ext <<_ACEOF
20449/* confdefs.h. */
20450_ACEOF
20451cat confdefs.h >>conftest.$ac_ext
20452cat >>conftest.$ac_ext <<_ACEOF
20453/* end confdefs.h. */
20454int main() {
20455 volatile unsigned long val = 1;
20456 __sync_synchronize();
20457 __sync_val_compare_and_swap(&val, 1, 0);
20458 __sync_add_and_fetch(&val, 1);
20459 __sync_sub_and_fetch(&val, 1);
20460 return 0;
20461 }
20462
20463_ACEOF
20464rm -f conftest.$ac_objext conftest$ac_exeext
20465if { (ac_try="$ac_link"
20466case "(($ac_try" in
20467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468 *) ac_try_echo=$ac_try;;
20469esac
20470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20471 (eval "$ac_link") 2>conftest.er1
20472 ac_status=$?
20473 grep -v '^ *+' conftest.er1 >conftest.err
20474 rm -f conftest.er1
20475 cat conftest.err >&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); } &&
20478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20479 { (case "(($ac_try" in
20480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481 *) ac_try_echo=$ac_try;;
20482esac
20483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484 (eval "$ac_try") 2>&5
20485 ac_status=$?
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); }; } &&
20488 { ac_try='test -s conftest$ac_exeext'
20489 { (case "(($ac_try" in
20490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20491 *) ac_try_echo=$ac_try;;
20492esac
20493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20494 (eval "$ac_try") 2>&5
20495 ac_status=$?
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); }; }; then
20498 ac_ext=c
20499ac_cpp='$CPP $CPPFLAGS'
20500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20502ac_compiler_gnu=$ac_cv_c_compiler_gnu
20503
20504 { echo "$as_me:$LINENO: result: yes" >&5
20505echo "${ECHO_T}yes" >&6; }
20506
20507cat >>confdefs.h <<\_ACEOF
20508#define LLVM_HAS_ATOMICS 1
20509_ACEOF
20510
20511else
20512 echo "$as_me: failed program was:" >&5
20513sed 's/^/| /' conftest.$ac_ext >&5
20514
20515 { echo "$as_me:$LINENO: result: no" >&5
20516echo "${ECHO_T}no" >&6; }
20517
20518cat >>confdefs.h <<\_ACEOF
20519#define LLVM_HAS_ATOMICS 0
20520_ACEOF
20521
20522 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20523echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20524fi
20525
20526rm -f core conftest.err conftest.$ac_objext \
20527 conftest$ac_exeext conftest.$ac_ext
20528
20529
20530if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20531 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20532echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20533if test "${llvm_cv_linux_mixed+set}" = set; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20535else
20536 ac_ext=c
20537ac_cpp='$CPP $CPPFLAGS'
20538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20540ac_compiler_gnu=$ac_cv_c_compiler_gnu
20541
20542 cat >conftest.$ac_ext <<_ACEOF
20543/* confdefs.h. */
20544_ACEOF
20545cat confdefs.h >>conftest.$ac_ext
20546cat >>conftest.$ac_ext <<_ACEOF
20547/* end confdefs.h. */
20548#ifndef __x86_64__
20549 error: Not x86-64 even if uname says so!
20550 #endif
20551
20552int
20553main ()
20554{
20555
20556 ;
20557 return 0;
20558}
20559_ACEOF
20560rm -f conftest.$ac_objext
20561if { (ac_try="$ac_compile"
20562case "(($ac_try" in
20563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20564 *) ac_try_echo=$ac_try;;
20565esac
20566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20567 (eval "$ac_compile") 2>conftest.er1
20568 ac_status=$?
20569 grep -v '^ *+' conftest.er1 >conftest.err
20570 rm -f conftest.er1
20571 cat conftest.err >&5
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); } &&
20574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20575 { (case "(($ac_try" in
20576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20577 *) ac_try_echo=$ac_try;;
20578esac
20579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20580 (eval "$ac_try") 2>&5
20581 ac_status=$?
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); }; } &&
20584 { ac_try='test -s conftest.$ac_objext'
20585 { (case "(($ac_try" in
20586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20587 *) ac_try_echo=$ac_try;;
20588esac
20589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20590 (eval "$ac_try") 2>&5
20591 ac_status=$?
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); }; }; then
20594 llvm_cv_linux_mixed=no
20595else
20596 echo "$as_me: failed program was:" >&5
20597sed 's/^/| /' conftest.$ac_ext >&5
20598
20599 llvm_cv_linux_mixed=yes
20600fi
20601
20602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20603 ac_ext=c
20604ac_cpp='$CPP $CPPFLAGS'
20605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20607ac_compiler_gnu=$ac_cv_c_compiler_gnu
20608
20609
20610fi
20611{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20612echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20613
20614 if test "$llvm_cv_linux_mixed" = "yes"; then
20615 llvm_cv_target_arch="x86"
20616 ARCH="x86"
20617 fi
20618fi
20619
20620
20621for ac_func in __dso_handle
20622do
20623as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20624{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20625echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20626if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20627 echo $ECHO_N "(cached) $ECHO_C" >&6
20628else
20629 cat >conftest.$ac_ext <<_ACEOF
20630/* confdefs.h. */
20631_ACEOF
20632cat confdefs.h >>conftest.$ac_ext
20633cat >>conftest.$ac_ext <<_ACEOF
20634/* end confdefs.h. */
20635/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20637#define $ac_func innocuous_$ac_func
20638
20639/* System header to define __stub macros and hopefully few prototypes,
20640 which can conflict with char $ac_func (); below.
20641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20642 <limits.h> exists even on freestanding compilers. */
20643
20644#ifdef __STDC__
20645# include <limits.h>
20646#else
20647# include <assert.h>
20648#endif
20649
20650#undef $ac_func
20651
20652/* Override any GCC internal prototype to avoid an error.
20653 Use char because int might match the return type of a GCC
20654 builtin and then its argument prototype would still apply. */
20655#ifdef __cplusplus
20656extern "C"
20657#endif
20658char $ac_func ();
20659/* The GNU C library defines this for functions which it implements
20660 to always fail with ENOSYS. Some functions are actually named
20661 something starting with __ and the normal name is an alias. */
20662#if defined __stub_$ac_func || defined __stub___$ac_func
20663choke me
20664#endif
20665
20666int
20667main ()
20668{
20669return $ac_func ();
20670 ;
20671 return 0;
20672}
20673_ACEOF
20674rm -f conftest.$ac_objext conftest$ac_exeext
20675if { (ac_try="$ac_link"
20676case "(($ac_try" in
20677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20678 *) ac_try_echo=$ac_try;;
20679esac
20680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20681 (eval "$ac_link") 2>conftest.er1
20682 ac_status=$?
20683 grep -v '^ *+' conftest.er1 >conftest.err
20684 rm -f conftest.er1
20685 cat conftest.err >&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } &&
20688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20689 { (case "(($ac_try" in
20690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20691 *) ac_try_echo=$ac_try;;
20692esac
20693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20694 (eval "$ac_try") 2>&5
20695 ac_status=$?
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); }; } &&
20698 { ac_try='test -s conftest$ac_exeext'
20699 { (case "(($ac_try" in
20700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20701 *) ac_try_echo=$ac_try;;
20702esac
20703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20704 (eval "$ac_try") 2>&5
20705 ac_status=$?
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); }; }; then
20708 eval "$as_ac_var=yes"
20709else
20710 echo "$as_me: failed program was:" >&5
20711sed 's/^/| /' conftest.$ac_ext >&5
20712
20713 eval "$as_ac_var=no"
20714fi
20715
20716rm -f core conftest.err conftest.$ac_objext \
20717 conftest$ac_exeext conftest.$ac_ext
20718fi
20719ac_res=`eval echo '${'$as_ac_var'}'`
20720 { echo "$as_me:$LINENO: result: $ac_res" >&5
20721echo "${ECHO_T}$ac_res" >&6; }
20722if test `eval echo '${'$as_ac_var'}'` = yes; then
20723 cat >>confdefs.h <<_ACEOF
20724#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20725_ACEOF
20726
20727fi
20728done
20729
20730
20731SHLIBEXT=$libltdl_cv_shlibext
20732
20733
20734SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20735
20736
20737# Translate the various configuration directories and other basic
20738# information into substitutions that will end up in Makefile.config.in
20739# that these configured values can be used by the makefiles
20740if test "${prefix}" = "NONE" ; then
20741 prefix="/usr/local"
20742fi
20743eval LLVM_PREFIX="${prefix}";
20744eval LLVM_BINDIR="${prefix}/bin";
20745eval LLVM_LIBDIR="${prefix}/lib";
20746eval LLVM_DATADIR="${prefix}/share/llvm";
20747eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20748eval LLVM_ETCDIR="${prefix}/etc/llvm";
20749eval LLVM_INCLUDEDIR="${prefix}/include";
20750eval LLVM_INFODIR="${prefix}/info";
20751eval LLVM_MANDIR="${prefix}/man";
20752LLVM_CONFIGTIME=`date`
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764# Place the various directores into the config.h file as #defines so that we
20765# can know about the installation paths within LLVM.
20766
20767cat >>confdefs.h <<_ACEOF
20768#define LLVM_PREFIX "$LLVM_PREFIX"
20769_ACEOF
20770
20771
20772cat >>confdefs.h <<_ACEOF
20773#define LLVM_BINDIR "$LLVM_BINDIR"
20774_ACEOF
20775
20776
20777cat >>confdefs.h <<_ACEOF
20778#define LLVM_LIBDIR "$LLVM_LIBDIR"
20779_ACEOF
20780
20781
20782cat >>confdefs.h <<_ACEOF
20783#define LLVM_DATADIR "$LLVM_DATADIR"
20784_ACEOF
20785
20786
20787cat >>confdefs.h <<_ACEOF
20788#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20789_ACEOF
20790
20791
20792cat >>confdefs.h <<_ACEOF
20793#define LLVM_ETCDIR "$LLVM_ETCDIR"
20794_ACEOF
20795
20796
20797cat >>confdefs.h <<_ACEOF
20798#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20799_ACEOF
20800
20801
20802cat >>confdefs.h <<_ACEOF
20803#define LLVM_INFODIR "$LLVM_INFODIR"
20804_ACEOF
20805
20806
20807cat >>confdefs.h <<_ACEOF
20808#define LLVM_MANDIR "$LLVM_MANDIR"
20809_ACEOF
20810
20811
20812cat >>confdefs.h <<_ACEOF
20813#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20814_ACEOF
20815
20816
20817cat >>confdefs.h <<_ACEOF
Sebastian Popde2e0b52011-11-01 21:31:44 +000020818#define LLVM_DEFAULT_TARGET_TRIPLE "$target"
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020819_ACEOF
20820
20821
20822# Determine which bindings to build.
20823if test "$BINDINGS_TO_BUILD" = auto ; then
20824 BINDINGS_TO_BUILD=""
20825 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20826 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20827 fi
20828fi
20829BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20830
20831
20832# This isn't really configurey, but it avoids having to repeat the list in
20833# other files.
20834ALL_BINDINGS=ocaml
20835
20836
20837# Do any work necessary to ensure that bindings have what they need.
20838binding_prereqs_failed=0
20839for a_binding in $BINDINGS_TO_BUILD ; do
20840 case "$a_binding" in
20841 ocaml)
20842 if test "x$OCAMLC" = x ; then
20843 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20844echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20845 binding_prereqs_failed=1
20846 fi
20847 if test "x$OCAMLDEP" = x ; then
20848 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20849echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20850 binding_prereqs_failed=1
20851 fi
20852 if test "x$OCAMLOPT" = x ; then
20853 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20854echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20855 fi
20856 if test "x$with_ocaml_libdir" != xauto ; then
20857 OCAML_LIBDIR=$with_ocaml_libdir
20858
20859 else
20860 ocaml_stdlib="`"$OCAMLC" -where`"
20861 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20862 then
20863 # ocaml stdlib is beneath our prefix; use stdlib
20864 OCAML_LIBDIR=$ocaml_stdlib
20865
20866 else
20867 # ocaml stdlib is outside our prefix; use libdir/ocaml
20868 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20869
20870 fi
20871 fi
20872 ;;
20873 esac
20874done
20875if test "$binding_prereqs_failed" = 1 ; then
20876 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20877echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20878 { (exit 1); exit 1; }; }
20879fi
20880
20881{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20882echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20883if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20884 echo $ECHO_N "(cached) $ECHO_C" >&6
20885else
20886 ac_ext=cpp
20887ac_cpp='$CXXCPP $CPPFLAGS'
20888ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20889ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20890ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20891
20892 oldcxxflags="$CXXFLAGS"
20893 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20894 cat >conftest.$ac_ext <<_ACEOF
20895/* confdefs.h. */
20896_ACEOF
20897cat confdefs.h >>conftest.$ac_ext
20898cat >>conftest.$ac_ext <<_ACEOF
20899/* end confdefs.h. */
20900
20901int
20902main ()
20903{
20904
20905 ;
20906 return 0;
20907}
20908_ACEOF
20909rm -f conftest.$ac_objext
20910if { (ac_try="$ac_compile"
20911case "(($ac_try" in
20912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20913 *) ac_try_echo=$ac_try;;
20914esac
20915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20916 (eval "$ac_compile") 2>conftest.er1
20917 ac_status=$?
20918 grep -v '^ *+' conftest.er1 >conftest.err
20919 rm -f conftest.er1
20920 cat conftest.err >&5
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); } &&
20923 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20924 { (case "(($ac_try" in
20925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926 *) ac_try_echo=$ac_try;;
20927esac
20928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20929 (eval "$ac_try") 2>&5
20930 ac_status=$?
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); }; } &&
20933 { ac_try='test -s conftest.$ac_objext'
20934 { (case "(($ac_try" in
20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20937esac
20938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939 (eval "$ac_try") 2>&5
20940 ac_status=$?
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; }; then
20943 llvm_cv_cxx_visibility_inlines_hidden=yes
20944else
20945 echo "$as_me: failed program was:" >&5
20946sed 's/^/| /' conftest.$ac_ext >&5
20947
20948 llvm_cv_cxx_visibility_inlines_hidden=no
20949fi
20950
20951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20952 CXXFLAGS="$oldcxxflags"
20953 ac_ext=c
20954ac_cpp='$CPP $CPPFLAGS'
20955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20957ac_compiler_gnu=$ac_cv_c_compiler_gnu
20958
20959
20960fi
20961{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20962echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20963if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20964 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20965
20966else
20967 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20968
20969fi
20970
20971
20972if test "$llvm_cv_link_use_r" = "yes" ; then
20973 RPATH="-Wl,-R"
20974else
20975 RPATH="-Wl,-rpath"
20976fi
20977
20978
20979if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20980 RDYNAMIC="-Wl,-export-dynamic"
20981else
20982 RDYNAMIC=""
20983fi
20984
20985
20986
Reid Spencer421ec052005-02-24 18:53:47 +000020987
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020988ac_config_files="$ac_config_files Makefile.common"
John Criswell451f67f2003-10-16 01:45:35 +000020989
Daniel Dunbarbf79f912011-10-18 23:10:58 +000020990ac_config_files="$ac_config_files Makefile.llvm.config"
20991
John Criswell451f67f2003-10-16 01:45:35 +000020992
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020993ac_config_commands="$ac_config_commands Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020994
20995
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020996ac_config_commands="$ac_config_commands lib/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000020997
20998
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000020999ac_config_commands="$ac_config_commands lib/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000021000
21001
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021002ac_config_commands="$ac_config_commands tools/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000021003
21004
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021005ac_config_commands="$ac_config_commands tools/sample/Makefile"
John Criswell451f67f2003-10-16 01:45:35 +000021006
21007
21008
John Criswell451f67f2003-10-16 01:45:35 +000021009cat >confcache <<\_ACEOF
21010# This file is a shell script that caches the results of configure
21011# tests run on this system so they can be shared between configure
21012# scripts and configure runs, see configure's option --config-cache.
21013# It is not useful on other systems. If it contains results you don't
21014# want to keep, you may remove or edit it.
21015#
21016# config.status only pays attention to the cache file if you give it
21017# the --recheck option to rerun configure.
21018#
21019# `ac_cv_env_foo' variables (set or unset) will be overridden when
21020# loading this file, other *unset* `ac_cv_foo' will be assigned the
21021# following values.
21022
21023_ACEOF
21024
21025# The following way of writing the cache mishandles newlines in values,
21026# but we know of no workaround that is simple, portable, and efficient.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021027# So, we kill variables containing newlines.
John Criswell451f67f2003-10-16 01:45:35 +000021028# Ultrix sh set writes to stderr and can't be redirected directly,
21029# and sets the high bit in the cache file unless we assign to the vars.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021030(
21031 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21032 eval ac_val=\$$ac_var
21033 case $ac_val in #(
21034 *${as_nl}*)
21035 case $ac_var in #(
21036 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21037echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21038 esac
21039 case $ac_var in #(
21040 _ | IFS | as_nl) ;; #(
21041 *) $as_unset $ac_var ;;
21042 esac ;;
21043 esac
21044 done
21045
John Criswell451f67f2003-10-16 01:45:35 +000021046 (set) 2>&1 |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021047 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21048 *${as_nl}ac_space=\ *)
John Criswell451f67f2003-10-16 01:45:35 +000021049 # `set' does not quote correctly, so add quotes (double-quote
21050 # substitution turns \\\\ into \\, and sed turns \\ into \).
21051 sed -n \
Reid Spencer9964cd82005-01-01 09:26:55 +000021052 "s/'/'\\\\''/g;
21053 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021054 ;; #(
John Criswell451f67f2003-10-16 01:45:35 +000021055 *)
21056 # `set' quotes correctly as required by POSIX, so do not add quotes.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021057 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell451f67f2003-10-16 01:45:35 +000021058 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021059 esac |
21060 sort
21061) |
John Criswell451f67f2003-10-16 01:45:35 +000021062 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021063 /^ac_cv_env_/b end
John Criswell451f67f2003-10-16 01:45:35 +000021064 t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021065 :clear
John Criswell451f67f2003-10-16 01:45:35 +000021066 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21067 t end
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021068 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21069 :end' >>confcache
21070if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21071 if test -w "$cache_file"; then
21072 test "x$cache_file" != "x/dev/null" &&
21073 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21074echo "$as_me: updating cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000021075 cat confcache >$cache_file
21076 else
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021077 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21078echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell451f67f2003-10-16 01:45:35 +000021079 fi
21080fi
21081rm -f confcache
21082
21083test "x$prefix" = xNONE && prefix=$ac_default_prefix
21084# Let make expand exec_prefix.
21085test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21086
John Criswell451f67f2003-10-16 01:45:35 +000021087# Transform confdefs.h into DEFS.
21088# Protect against shell expansion while executing Makefile rules.
21089# Protect against Makefile macro expansion.
21090#
21091# If the first sed substitution is executed (which looks for macros that
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021092# take arguments), then branch to the quote section. Otherwise,
John Criswell451f67f2003-10-16 01:45:35 +000021093# look for a macro that doesn't take arguments.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021094ac_script='
John Criswell451f67f2003-10-16 01:45:35 +000021095t clear
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021096:clear
21097s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000021098t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021099s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
John Criswell451f67f2003-10-16 01:45:35 +000021100t quote
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021101b any
21102:quote
21103s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21104s/\[/\\&/g
21105s/\]/\\&/g
21106s/\$/$$/g
21107H
21108:any
21109${
21110 g
21111 s/^\n//
21112 s/\n/ /g
21113 p
21114}
21115'
21116DEFS=`sed -n "$ac_script" confdefs.h`
John Criswell451f67f2003-10-16 01:45:35 +000021117
21118
21119ac_libobjs=
21120ac_ltlibobjs=
21121for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21122 # 1. Remove the extension, and $U if already installed.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021123 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21124 ac_i=`echo "$ac_i" | sed "$ac_script"`
21125 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21126 # will be set to the directory where LIBOBJS objects are built.
21127 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21128 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell451f67f2003-10-16 01:45:35 +000021129done
21130LIBOBJS=$ac_libobjs
21131
21132LTLIBOBJS=$ac_ltlibobjs
21133
21134
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021135if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21136 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21137Usually this means the macro was only invoked conditionally." >&5
21138echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21139Usually this means the macro was only invoked conditionally." >&2;}
21140 { (exit 1); exit 1; }; }
21141fi
21142if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21143 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21144Usually this means the macro was only invoked conditionally." >&5
21145echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21146Usually this means the macro was only invoked conditionally." >&2;}
21147 { (exit 1); exit 1; }; }
21148fi
John Criswell451f67f2003-10-16 01:45:35 +000021149
21150: ${CONFIG_STATUS=./config.status}
21151ac_clean_files_save=$ac_clean_files
21152ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21153{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21154echo "$as_me: creating $CONFIG_STATUS" >&6;}
21155cat >$CONFIG_STATUS <<_ACEOF
21156#! $SHELL
21157# Generated by $as_me.
21158# Run this file to recreate the current configuration.
21159# Compiler output produced by configure, useful for debugging
21160# configure, is in config.log if it exists.
21161
21162debug=false
21163ac_cs_recheck=false
21164ac_cs_silent=false
21165SHELL=\${CONFIG_SHELL-$SHELL}
21166_ACEOF
21167
21168cat >>$CONFIG_STATUS <<\_ACEOF
21169## --------------------- ##
21170## M4sh Initialization. ##
21171## --------------------- ##
21172
Dan Gohman324f6082009-03-25 00:52:11 +000021173# Be Bourne compatible
John Criswell451f67f2003-10-16 01:45:35 +000021174if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21175 emulate sh
21176 NULLCMD=:
21177 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21178 # is contrary to our usage. Disable this feature.
21179 alias -g '${1+"$@"}'='"$@"'
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021180 setopt NO_GLOB_SUBST
21181else
21182 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohman324f6082009-03-25 00:52:11 +000021183fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021184BIN_SH=xpg4; export BIN_SH # for Tru64
Dan Gohman324f6082009-03-25 00:52:11 +000021185DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmand02a2812009-03-24 23:47:11 +000021186
John Criswell451f67f2003-10-16 01:45:35 +000021187
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021188# PATH needs CR
John Criswell451f67f2003-10-16 01:45:35 +000021189# Avoid depending upon Character Ranges.
21190as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21191as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21192as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21193as_cr_digits='0123456789'
21194as_cr_alnum=$as_cr_Letters$as_cr_digits
21195
21196# The user is always right.
21197if test "${PATH_SEPARATOR+set}" != set; then
21198 echo "#! /bin/sh" >conf$$.sh
21199 echo "exit 0" >>conf$$.sh
21200 chmod +x conf$$.sh
21201 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21202 PATH_SEPARATOR=';'
21203 else
21204 PATH_SEPARATOR=:
21205 fi
21206 rm -f conf$$.sh
21207fi
21208
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021209# Support unset when possible.
21210if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21211 as_unset=unset
21212else
21213 as_unset=false
21214fi
John Criswell451f67f2003-10-16 01:45:35 +000021215
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021216
21217# IFS
21218# We need space, tab and new line, in precisely that order. Quoting is
21219# there to prevent editors from complaining about space-tab.
21220# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21221# splitting by setting IFS to empty value.)
21222as_nl='
21223'
21224IFS=" "" $as_nl"
21225
21226# Find who we are. Look in the path if we contain no directory separator.
21227case $0 in
21228 *[\\/]* ) as_myself=$0 ;;
21229 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell451f67f2003-10-16 01:45:35 +000021230for as_dir in $PATH
21231do
21232 IFS=$as_save_IFS
21233 test -z "$as_dir" && as_dir=.
21234 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21235done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021236IFS=$as_save_IFS
John Criswell451f67f2003-10-16 01:45:35 +000021237
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021238 ;;
21239esac
21240# We did not find ourselves, most probably we were run as `sh COMMAND'
21241# in which case we are not to be found in the path.
21242if test "x$as_myself" = x; then
21243 as_myself=$0
21244fi
21245if test ! -f "$as_myself"; then
21246 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21247 { (exit 1); exit 1; }
21248fi
21249
21250# Work around bugs in pre-3.0 UWIN ksh.
21251for as_var in ENV MAIL MAILPATH
21252do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21253done
21254PS1='$ '
21255PS2='> '
21256PS4='+ '
21257
21258# NLS nuisances.
21259for as_var in \
21260 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21261 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21262 LC_TELEPHONE LC_TIME
Dan Gohman324f6082009-03-25 00:52:11 +000021263do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021264 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21265 eval $as_var=C; export $as_var
21266 else
21267 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21268 fi
21269done
21270
21271# Required to use basename.
21272if expr a : '\(a\)' >/dev/null 2>&1 &&
21273 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21274 as_expr=expr
21275else
21276 as_expr=false
21277fi
21278
21279if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21280 as_basename=basename
21281else
21282 as_basename=false
21283fi
21284
21285
21286# Name of the executable.
21287as_me=`$as_basename -- "$0" ||
21288$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21289 X"$0" : 'X\(//\)$' \| \
21290 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21291echo X/"$0" |
21292 sed '/^.*\/\([^/][^/]*\)\/*$/{
21293 s//\1/
21294 q
21295 }
21296 /^X\/\(\/\/\)$/{
21297 s//\1/
21298 q
21299 }
21300 /^X\/\(\/\).*/{
21301 s//\1/
21302 q
21303 }
21304 s/.*/./; q'`
21305
21306# CDPATH.
21307$as_unset CDPATH
21308
21309
21310
John Criswell451f67f2003-10-16 01:45:35 +000021311 as_lineno_1=$LINENO
21312 as_lineno_2=$LINENO
John Criswell451f67f2003-10-16 01:45:35 +000021313 test "x$as_lineno_1" != "x$as_lineno_2" &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021314 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell451f67f2003-10-16 01:45:35 +000021315
21316 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21317 # uniformly replaced by the line number. The first 'sed' inserts a
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021318 # line-number line after each line using $LINENO; the second 'sed'
21319 # does the real work. The second script uses 'N' to pair each
21320 # line-number line with the line containing $LINENO, and appends
21321 # trailing '-' during substitution so that $LINENO is not a special
21322 # case at line end.
John Criswell451f67f2003-10-16 01:45:35 +000021323 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021324 # scripts with optimization help from Paolo Bonzini. Blame Lee
21325 # E. McMahon (1931-1989) for sed's syntax. :-)
21326 sed -n '
21327 p
21328 /[$]LINENO/=
21329 ' <$as_myself |
John Criswell451f67f2003-10-16 01:45:35 +000021330 sed '
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021331 s/[$]LINENO.*/&-/
21332 t lineno
21333 b
21334 :lineno
John Criswell451f67f2003-10-16 01:45:35 +000021335 N
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021336 :loop
21337 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell451f67f2003-10-16 01:45:35 +000021338 t loop
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021339 s/-\n.*//
John Criswell451f67f2003-10-16 01:45:35 +000021340 ' >$as_me.lineno &&
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021341 chmod +x "$as_me.lineno" ||
21342 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell451f67f2003-10-16 01:45:35 +000021343 { (exit 1); exit 1; }; }
21344
21345 # Don't try to exec as it changes $[0], causing all sort of problems
21346 # (the dirname of $[0] is not the place where we might find the
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021347 # original and so on. Autoconf is especially sensitive to this).
21348 . "./$as_me.lineno"
John Criswell451f67f2003-10-16 01:45:35 +000021349 # Exit status is that of the last command.
21350 exit
21351}
21352
21353
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021354if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21355 as_dirname=dirname
21356else
21357 as_dirname=false
21358fi
21359
21360ECHO_C= ECHO_N= ECHO_T=
21361case `echo -n x` in
21362-n*)
21363 case `echo 'x\c'` in
21364 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21365 *) ECHO_C='\c';;
21366 esac;;
21367*)
21368 ECHO_N='-n';;
John Criswell451f67f2003-10-16 01:45:35 +000021369esac
21370
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021371if expr a : '\(a\)' >/dev/null 2>&1 &&
21372 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell451f67f2003-10-16 01:45:35 +000021373 as_expr=expr
21374else
21375 as_expr=false
21376fi
21377
21378rm -f conf$$ conf$$.exe conf$$.file
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021379if test -d conf$$.dir; then
21380 rm -f conf$$.dir/conf$$.file
21381else
21382 rm -f conf$$.dir
21383 mkdir conf$$.dir
21384fi
John Criswell451f67f2003-10-16 01:45:35 +000021385echo >conf$$.file
21386if ln -s conf$$.file conf$$ 2>/dev/null; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021387 as_ln_s='ln -s'
21388 # ... but there are two gotchas:
21389 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21390 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21391 # In both cases, we have to default to `cp -p'.
21392 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell451f67f2003-10-16 01:45:35 +000021393 as_ln_s='cp -p'
John Criswell451f67f2003-10-16 01:45:35 +000021394elif ln conf$$.file conf$$ 2>/dev/null; then
21395 as_ln_s=ln
21396else
21397 as_ln_s='cp -p'
21398fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021399rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21400rmdir conf$$.dir 2>/dev/null
John Criswell451f67f2003-10-16 01:45:35 +000021401
21402if mkdir -p . 2>/dev/null; then
21403 as_mkdir_p=:
21404else
Reid Spencer9964cd82005-01-01 09:26:55 +000021405 test -d ./-p && rmdir ./-p
John Criswell451f67f2003-10-16 01:45:35 +000021406 as_mkdir_p=false
21407fi
21408
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021409# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21410# systems may use methods other than mode bits to determine executability.
21411cat >conf$$.file <<_ASEOF
21412#! /bin/sh
21413exit 0
21414_ASEOF
21415chmod +x conf$$.file
21416if test -x conf$$.file >/dev/null 2>&1; then
21417 as_executable_p="test -x"
21418else
21419 as_executable_p=:
21420fi
21421rm -f conf$$.file
John Criswell451f67f2003-10-16 01:45:35 +000021422
21423# Sed expression to map a string onto a valid CPP name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021424as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021425
21426# Sed expression to map a string onto a valid variable name.
Reid Spencer9964cd82005-01-01 09:26:55 +000021427as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell451f67f2003-10-16 01:45:35 +000021428
21429
John Criswell451f67f2003-10-16 01:45:35 +000021430exec 6>&1
21431
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021432# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell451f67f2003-10-16 01:45:35 +000021433# report actual input values of CONFIG_FILES etc. instead of their
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021434# values after options handling.
21435ac_log="
John Criswell451f67f2003-10-16 01:45:35 +000021436This file was extended by [SAMPLE] $as_me [x.xx], which was
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021437generated by GNU Autoconf 2.60. Invocation command line was
John Criswell451f67f2003-10-16 01:45:35 +000021438
21439 CONFIG_FILES = $CONFIG_FILES
21440 CONFIG_HEADERS = $CONFIG_HEADERS
21441 CONFIG_LINKS = $CONFIG_LINKS
21442 CONFIG_COMMANDS = $CONFIG_COMMANDS
21443 $ $0 $@
21444
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021445on `(hostname || uname -n) 2>/dev/null | sed 1q`
21446"
21447
John Criswell451f67f2003-10-16 01:45:35 +000021448_ACEOF
21449
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021450cat >>$CONFIG_STATUS <<_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021451# Files that config.status was made for.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021452config_files="$ac_config_files"
21453config_commands="$ac_config_commands"
John Criswell451f67f2003-10-16 01:45:35 +000021454
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021455_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021456
21457cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021458ac_cs_usage="\
21459\`$as_me' instantiates files from templates according to the
21460current configuration.
21461
21462Usage: $0 [OPTIONS] [FILE]...
21463
21464 -h, --help print this help, then exit
Dan Gohman324f6082009-03-25 00:52:11 +000021465 -V, --version print version number, then exit
John Criswell451f67f2003-10-16 01:45:35 +000021466 -q, --quiet do not print progress messages
21467 -d, --debug don't remove temporary files
21468 --recheck update $as_me by reconfiguring in the same conditions
21469 --file=FILE[:TEMPLATE]
Reid Spencer9964cd82005-01-01 09:26:55 +000021470 instantiate the configuration file FILE
John Criswell451f67f2003-10-16 01:45:35 +000021471
21472Configuration files:
21473$config_files
21474
21475Configuration commands:
21476$config_commands
21477
21478Report bugs to <bug-autoconf@gnu.org>."
Dan Gohman324f6082009-03-25 00:52:11 +000021479
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021480_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021481cat >>$CONFIG_STATUS <<_ACEOF
21482ac_cs_version="\\
21483[SAMPLE] config.status [x.xx]
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021484configured by $0, generated by GNU Autoconf 2.60,
21485 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell451f67f2003-10-16 01:45:35 +000021486
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021487Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell451f67f2003-10-16 01:45:35 +000021488This config.status script is free software; the Free Software Foundation
21489gives unlimited permission to copy, distribute and modify it."
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021490
21491ac_pwd='$ac_pwd'
21492srcdir='$srcdir'
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021493INSTALL='$INSTALL'
John Criswell451f67f2003-10-16 01:45:35 +000021494_ACEOF
21495
21496cat >>$CONFIG_STATUS <<\_ACEOF
21497# If no file are specified by the user, then we need to provide default
21498# value. By we need to know if files were specified by the user.
21499ac_need_defaults=:
21500while test $# != 0
21501do
21502 case $1 in
21503 --*=*)
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021504 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21505 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell451f67f2003-10-16 01:45:35 +000021506 ac_shift=:
21507 ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021508 *)
John Criswell451f67f2003-10-16 01:45:35 +000021509 ac_option=$1
21510 ac_optarg=$2
21511 ac_shift=shift
21512 ;;
John Criswell451f67f2003-10-16 01:45:35 +000021513 esac
21514
21515 case $ac_option in
21516 # Handling of the options.
John Criswell451f67f2003-10-16 01:45:35 +000021517 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21518 ac_cs_recheck=: ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021519 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21520 echo "$ac_cs_version"; exit ;;
21521 --debug | --debu | --deb | --de | --d | -d )
John Criswell451f67f2003-10-16 01:45:35 +000021522 debug=: ;;
21523 --file | --fil | --fi | --f )
21524 $ac_shift
21525 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21526 ac_need_defaults=false;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021527 --he | --h | --help | --hel | -h )
21528 echo "$ac_cs_usage"; exit ;;
John Criswell451f67f2003-10-16 01:45:35 +000021529 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21530 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21531 ac_cs_silent=: ;;
21532
21533 # This is an error.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021534 -*) { echo "$as_me: error: unrecognized option: $1
21535Try \`$0 --help' for more information." >&2
John Criswell451f67f2003-10-16 01:45:35 +000021536 { (exit 1); exit 1; }; } ;;
21537
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021538 *) ac_config_targets="$ac_config_targets $1"
21539 ac_need_defaults=false ;;
John Criswell451f67f2003-10-16 01:45:35 +000021540
21541 esac
21542 shift
21543done
21544
21545ac_configure_extra_args=
21546
21547if $ac_cs_silent; then
21548 exec 6>/dev/null
21549 ac_configure_extra_args="$ac_configure_extra_args --silent"
21550fi
21551
21552_ACEOF
21553cat >>$CONFIG_STATUS <<_ACEOF
21554if \$ac_cs_recheck; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021555 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21556 CONFIG_SHELL=$SHELL
21557 export CONFIG_SHELL
21558 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell451f67f2003-10-16 01:45:35 +000021559fi
21560
21561_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021562cat >>$CONFIG_STATUS <<\_ACEOF
21563exec 5>>config.log
21564{
21565 echo
21566 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21567## Running $as_me. ##
21568_ASBOX
21569 echo "$ac_log"
21570} >&5
John Criswell451f67f2003-10-16 01:45:35 +000021571
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021572_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021573cat >>$CONFIG_STATUS <<_ACEOF
21574#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021575# INIT-COMMANDS
John Criswell451f67f2003-10-16 01:45:35 +000021576#
Reid Spencer421ec052005-02-24 18:53:47 +000021577llvm_src="${LLVM_SRC}"
John Criswell451f67f2003-10-16 01:45:35 +000021578
21579_ACEOF
21580
Dan Gohman324f6082009-03-25 00:52:11 +000021581cat >>$CONFIG_STATUS <<\_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021582
21583# Handling of arguments.
John Criswell451f67f2003-10-16 01:45:35 +000021584for ac_config_target in $ac_config_targets
21585do
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021586 case $ac_config_target in
21587 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21588 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;;
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021589 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021590 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21591 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21592 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;;
21593 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21594 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;;
21595
John Criswell451f67f2003-10-16 01:45:35 +000021596 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21597echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21598 { (exit 1); exit 1; }; };;
21599 esac
21600done
21601
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021602
John Criswell451f67f2003-10-16 01:45:35 +000021603# If the user did not use the arguments to specify the items to instantiate,
21604# then the envvar interface is used. Set only those that are not.
21605# We use the long form for the default assignment because of an extremely
21606# bizarre bug on SunOS 4.1.3.
21607if $ac_need_defaults; then
21608 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21609 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21610fi
21611
21612# Have a temporary directory for convenience. Make it in the build tree
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021613# simply because there is no reason against having it here, and in addition,
John Criswell451f67f2003-10-16 01:45:35 +000021614# creating and moving files from /tmp can sometimes cause problems.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021615# Hook for its removal unless debugging.
21616# Note that there is a small window in which the directory will not be cleaned:
21617# after its creation but before its name has been assigned to `$tmp'.
John Criswell451f67f2003-10-16 01:45:35 +000021618$debug ||
21619{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021620 tmp=
21621 trap 'exit_status=$?
21622 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21623' 0
John Criswell451f67f2003-10-16 01:45:35 +000021624 trap '{ (exit 1); exit 1; }' 1 2 13 15
21625}
John Criswell451f67f2003-10-16 01:45:35 +000021626# Create a (secure) tmp directory for tmp files.
21627
21628{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021629 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell451f67f2003-10-16 01:45:35 +000021630 test -n "$tmp" && test -d "$tmp"
21631} ||
21632{
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021633 tmp=./conf$$-$RANDOM
21634 (umask 077 && mkdir "$tmp")
John Criswell451f67f2003-10-16 01:45:35 +000021635} ||
21636{
21637 echo "$me: cannot create a temporary directory in ." >&2
21638 { (exit 1); exit 1; }
21639}
21640
John Criswell451f67f2003-10-16 01:45:35 +000021641#
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021642# Set up the sed scripts for CONFIG_FILES section.
John Criswell451f67f2003-10-16 01:45:35 +000021643#
21644
21645# No need to generate the scripts if there are no CONFIG_FILES.
21646# This happens for instance when ./config.status config.h
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021647if test -n "$CONFIG_FILES"; then
John Criswell451f67f2003-10-16 01:45:35 +000021648
21649_ACEOF
21650
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021651
21652
21653ac_delim='%!_!# '
21654for ac_last_try in false false false false false :; do
21655 cat >conf$$subs.sed <<_ACEOF
21656SHELL!$SHELL$ac_delim
21657PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21658PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21659PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21660PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21661PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21662PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21663exec_prefix!$exec_prefix$ac_delim
21664prefix!$prefix$ac_delim
21665program_transform_name!$program_transform_name$ac_delim
21666bindir!$bindir$ac_delim
21667sbindir!$sbindir$ac_delim
21668libexecdir!$libexecdir$ac_delim
21669datarootdir!$datarootdir$ac_delim
21670datadir!$datadir$ac_delim
21671sysconfdir!$sysconfdir$ac_delim
21672sharedstatedir!$sharedstatedir$ac_delim
21673localstatedir!$localstatedir$ac_delim
21674includedir!$includedir$ac_delim
21675oldincludedir!$oldincludedir$ac_delim
21676docdir!$docdir$ac_delim
21677infodir!$infodir$ac_delim
21678htmldir!$htmldir$ac_delim
21679dvidir!$dvidir$ac_delim
21680pdfdir!$pdfdir$ac_delim
21681psdir!$psdir$ac_delim
21682libdir!$libdir$ac_delim
21683localedir!$localedir$ac_delim
21684mandir!$mandir$ac_delim
21685DEFS!$DEFS$ac_delim
21686ECHO_C!$ECHO_C$ac_delim
21687ECHO_N!$ECHO_N$ac_delim
21688ECHO_T!$ECHO_T$ac_delim
21689LIBS!$LIBS$ac_delim
21690build_alias!$build_alias$ac_delim
21691host_alias!$host_alias$ac_delim
21692target_alias!$target_alias$ac_delim
21693LLVM_SRC!$LLVM_SRC$ac_delim
21694LLVM_OBJ!$LLVM_OBJ$ac_delim
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021695LLVM_VERSION!$LLVM_VERSION$ac_delim
21696CC!$CC$ac_delim
21697CFLAGS!$CFLAGS$ac_delim
21698LDFLAGS!$LDFLAGS$ac_delim
21699CPPFLAGS!$CPPFLAGS$ac_delim
21700ac_ct_CC!$ac_ct_CC$ac_delim
21701EXEEXT!$EXEEXT$ac_delim
21702OBJEXT!$OBJEXT$ac_delim
21703CXX!$CXX$ac_delim
21704CXXFLAGS!$CXXFLAGS$ac_delim
21705ac_ct_CXX!$ac_ct_CXX$ac_delim
21706CPP!$CPP$ac_delim
21707ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21708LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21709subdirs!$subdirs$ac_delim
21710build!$build$ac_delim
21711build_cpu!$build_cpu$ac_delim
21712build_vendor!$build_vendor$ac_delim
21713build_os!$build_os$ac_delim
21714host!$host$ac_delim
21715host_cpu!$host_cpu$ac_delim
21716host_vendor!$host_vendor$ac_delim
21717host_os!$host_os$ac_delim
21718target!$target$ac_delim
21719target_cpu!$target_cpu$ac_delim
21720target_vendor!$target_vendor$ac_delim
21721target_os!$target_os$ac_delim
21722OS!$OS$ac_delim
21723HOST_OS!$HOST_OS$ac_delim
21724TARGET_OS!$TARGET_OS$ac_delim
21725LINKALL!$LINKALL$ac_delim
21726NOLINKALL!$NOLINKALL$ac_delim
21727LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21728LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21729ARCH!$ARCH$ac_delim
21730ENDIAN!$ENDIAN$ac_delim
21731GREP!$GREP$ac_delim
21732EGREP!$EGREP$ac_delim
21733LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21734BUILD_CC!$BUILD_CC$ac_delim
21735BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21736BUILD_CXX!$BUILD_CXX$ac_delim
21737CVSBUILD!$CVSBUILD$ac_delim
21738ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21739ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21740DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21741ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21742EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21743DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21744DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21745JIT!$JIT$ac_delim
21746TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21747ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21748ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21749ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21750ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21751ENABLE_PIC!$ENABLE_PIC$ac_delim
21752ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021753_ACEOF
21754
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021755 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021756 break
21757 elif $ac_last_try; then
21758 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21759echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21760 { (exit 1); exit 1; }; }
21761 else
21762 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell451f67f2003-10-16 01:45:35 +000021763 fi
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021764done
21765
21766ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21767if test -n "$ac_eof"; then
21768 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21769 ac_eof=`expr $ac_eof + 1`
21770fi
21771
21772cat >>$CONFIG_STATUS <<_ACEOF
21773cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
Daniel Dunbarbf79f912011-10-18 23:10:58 +000021774/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21775_ACEOF
21776sed '
21777s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21778s/^/s,@/; s/!/@,|#_!!_#|/
21779:n
21780t n
21781s/'"$ac_delim"'$/,g/; t
21782s/$/\\/; p
21783N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21784' >>$CONFIG_STATUS <conf$$subs.sed
21785rm -f conf$$subs.sed
21786cat >>$CONFIG_STATUS <<_ACEOF
21787CEOF$ac_eof
21788_ACEOF
21789
21790
21791ac_delim='%!_!# '
21792for ac_last_try in false false false false false :; do
21793 cat >conf$$subs.sed <<_ACEOF
21794ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21795ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21796TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21797LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21798LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21799LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21800LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21801ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21802OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21803EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21804EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
21805BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21806NM!$NM$ac_delim
21807ifGNUmake!$ifGNUmake$ac_delim
21808LN_S!$LN_S$ac_delim
21809CMP!$CMP$ac_delim
21810CP!$CP$ac_delim
21811DATE!$DATE$ac_delim
21812FIND!$FIND$ac_delim
21813MKDIR!$MKDIR$ac_delim
21814MV!$MV$ac_delim
21815RANLIB!$RANLIB$ac_delim
21816AR!$AR$ac_delim
21817RM!$RM$ac_delim
21818SED!$SED$ac_delim
21819TAR!$TAR$ac_delim
21820BINPWD!$BINPWD$ac_delim
21821GRAPHVIZ!$GRAPHVIZ$ac_delim
21822DOT!$DOT$ac_delim
21823FDP!$FDP$ac_delim
21824NEATO!$NEATO$ac_delim
21825TWOPI!$TWOPI$ac_delim
21826CIRCO!$CIRCO$ac_delim
21827GV!$GV$ac_delim
21828DOTTY!$DOTTY$ac_delim
21829XDOT_PY!$XDOT_PY$ac_delim
21830PERL!$PERL$ac_delim
21831HAVE_PERL!$HAVE_PERL$ac_delim
21832INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21833INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21834INSTALL_DATA!$INSTALL_DATA$ac_delim
21835BZIP2!$BZIP2$ac_delim
21836CAT!$CAT$ac_delim
21837DOXYGEN!$DOXYGEN$ac_delim
21838GROFF!$GROFF$ac_delim
21839GZIPBIN!$GZIPBIN$ac_delim
21840POD2HTML!$POD2HTML$ac_delim
21841POD2MAN!$POD2MAN$ac_delim
21842PDFROFF!$PDFROFF$ac_delim
21843RUNTEST!$RUNTEST$ac_delim
21844TCLSH!$TCLSH$ac_delim
21845ZIP!$ZIP$ac_delim
21846OCAMLC!$OCAMLC$ac_delim
21847OCAMLOPT!$OCAMLOPT$ac_delim
21848OCAMLDEP!$OCAMLDEP$ac_delim
21849OCAMLDOC!$OCAMLDOC$ac_delim
21850GAS!$GAS$ac_delim
21851HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21852INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21853INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21854CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21855CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21856LIBADD_DL!$LIBADD_DL$ac_delim
21857NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21858NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21859USE_UDIS86!$USE_UDIS86$ac_delim
21860USE_OPROFILE!$USE_OPROFILE$ac_delim
21861HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21862HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21863MMAP_FILE!$MMAP_FILE$ac_delim
21864SHLIBEXT!$SHLIBEXT$ac_delim
21865SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21866LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21867LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21868LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21869LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21870LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21871LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21872LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21873LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21874LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21875LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21876BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21877ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21878OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21879ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21880RPATH!$RPATH$ac_delim
21881RDYNAMIC!$RDYNAMIC$ac_delim
21882LIBOBJS!$LIBOBJS$ac_delim
21883LTLIBOBJS!$LTLIBOBJS$ac_delim
21884_ACEOF
21885
21886 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
21887 break
21888 elif $ac_last_try; then
21889 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21890echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21891 { (exit 1); exit 1; }; }
21892 else
21893 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21894 fi
21895done
21896
21897ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21898if test -n "$ac_eof"; then
21899 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21900 ac_eof=`expr $ac_eof + 1`
21901fi
21902
21903cat >>$CONFIG_STATUS <<_ACEOF
21904cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021905/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21906_ACEOF
21907sed '
21908s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21909s/^/s,@/; s/!/@,|#_!!_#|/
21910:n
21911t n
21912s/'"$ac_delim"'$/,g/; t
21913s/$/\\/; p
21914N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21915' >>$CONFIG_STATUS <conf$$subs.sed
21916rm -f conf$$subs.sed
21917cat >>$CONFIG_STATUS <<_ACEOF
21918:end
21919s/|#_!!_#|//g
21920CEOF$ac_eof
21921_ACEOF
21922
21923
21924# VPATH may cause trouble with some makes, so we remove $(srcdir),
21925# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21926# trailing colons and then remove the whole line if VPATH becomes empty
21927# (actually we leave an empty line to preserve line numbers).
21928if test "x$srcdir" = x.; then
21929 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21930s/:*\$(srcdir):*/:/
21931s/:*\${srcdir}:*/:/
21932s/:*@srcdir@:*/:/
21933s/^\([^=]*=[ ]*\):*/\1/
21934s/:*$//
21935s/^[^=]*=[ ]*$//
21936}'
21937fi
21938
21939cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell451f67f2003-10-16 01:45:35 +000021940fi # test -n "$CONFIG_FILES"
21941
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000021942
21943for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21944do
21945 case $ac_tag in
21946 :[FHLC]) ac_mode=$ac_tag; continue;;
21947 esac
21948 case $ac_mode$ac_tag in
21949 :[FHL]*:*);;
21950 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21951echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21952 { (exit 1); exit 1; }; };;
21953 :[FH]-) ac_tag=-:-;;
21954 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21955 esac
21956 ac_save_IFS=$IFS
21957 IFS=:
21958 set x $ac_tag
21959 IFS=$ac_save_IFS
21960 shift
21961 ac_file=$1
21962 shift
21963
21964 case $ac_mode in
21965 :L) ac_source=$1;;
21966 :[FH])
21967 ac_file_inputs=
21968 for ac_f
21969 do
21970 case $ac_f in
21971 -) ac_f="$tmp/stdin";;
21972 *) # Look for the file first in the build tree, then in the source tree
21973 # (if the path is not absolute). The absolute path cannot be DOS-style,
21974 # because $ac_f cannot contain `:'.
21975 test -f "$ac_f" ||
21976 case $ac_f in
21977 [\\/$]*) false;;
21978 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21979 esac ||
21980 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21981echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21982 { (exit 1); exit 1; }; };;
21983 esac
21984 ac_file_inputs="$ac_file_inputs $ac_f"
21985 done
21986
21987 # Let's still pretend it is `configure' which instantiates (i.e., don't
21988 # use $as_me), people would be surprised to read:
21989 # /* config.h. Generated by config.status. */
21990 configure_input="Generated from "`IFS=:
21991 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21992 if test x"$ac_file" != x-; then
21993 configure_input="$ac_file. $configure_input"
21994 { echo "$as_me:$LINENO: creating $ac_file" >&5
21995echo "$as_me: creating $ac_file" >&6;}
21996 fi
21997
21998 case $ac_tag in
21999 *:-:* | *:-) cat >"$tmp/stdin";;
22000 esac
22001 ;;
John Criswell451f67f2003-10-16 01:45:35 +000022002 esac
22003
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022004 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell451f67f2003-10-16 01:45:35 +000022005$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000022006 X"$ac_file" : 'X\(//\)[^/]' \| \
22007 X"$ac_file" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022008 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000022009echo X"$ac_file" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22011 s//\1/
22012 q
22013 }
22014 /^X\(\/\/\)[^/].*/{
22015 s//\1/
22016 q
22017 }
22018 /^X\(\/\/\)$/{
22019 s//\1/
22020 q
22021 }
22022 /^X\(\/\).*/{
22023 s//\1/
22024 q
22025 }
22026 s/.*/./; q'`
22027 { as_dir="$ac_dir"
22028 case $as_dir in #(
22029 -*) as_dir=./$as_dir;;
22030 esac
22031 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell451f67f2003-10-16 01:45:35 +000022032 as_dirs=
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022033 while :; do
22034 case $as_dir in #(
22035 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22036 *) as_qdir=$as_dir;;
22037 esac
22038 as_dirs="'$as_qdir' $as_dirs"
22039 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell451f67f2003-10-16 01:45:35 +000022040$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer9964cd82005-01-01 09:26:55 +000022041 X"$as_dir" : 'X\(//\)[^/]' \| \
22042 X"$as_dir" : 'X\(//\)$' \| \
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022043 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell451f67f2003-10-16 01:45:35 +000022044echo X"$as_dir" |
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22046 s//\1/
22047 q
22048 }
22049 /^X\(\/\/\)[^/].*/{
22050 s//\1/
22051 q
22052 }
22053 /^X\(\/\/\)$/{
22054 s//\1/
22055 q
22056 }
22057 /^X\(\/\).*/{
22058 s//\1/
22059 q
22060 }
22061 s/.*/./; q'`
22062 test -d "$as_dir" && break
John Criswell451f67f2003-10-16 01:45:35 +000022063 done
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022064 test -z "$as_dirs" || eval "mkdir $as_dirs"
22065 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22066echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000022067 { (exit 1); exit 1; }; }; }
John Criswell451f67f2003-10-16 01:45:35 +000022068 ac_builddir=.
22069
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022070case "$ac_dir" in
22071.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22072*)
John Criswell451f67f2003-10-16 01:45:35 +000022073 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022074 # A ".." for each directory in $ac_dir_suffix.
22075 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22076 case $ac_top_builddir_sub in
22077 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22078 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22079 esac ;;
22080esac
22081ac_abs_top_builddir=$ac_pwd
22082ac_abs_builddir=$ac_pwd$ac_dir_suffix
22083# for backward compatibility:
22084ac_top_builddir=$ac_top_build_prefix
John Criswell451f67f2003-10-16 01:45:35 +000022085
22086case $srcdir in
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022087 .) # We are building in place.
John Criswell451f67f2003-10-16 01:45:35 +000022088 ac_srcdir=.
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022089 ac_top_srcdir=$ac_top_builddir_sub
22090 ac_abs_top_srcdir=$ac_pwd ;;
22091 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell451f67f2003-10-16 01:45:35 +000022092 ac_srcdir=$srcdir$ac_dir_suffix;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022093 ac_top_srcdir=$srcdir
22094 ac_abs_top_srcdir=$srcdir ;;
22095 *) # Relative name.
22096 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22097 ac_top_srcdir=$ac_top_build_prefix$srcdir
22098 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell451f67f2003-10-16 01:45:35 +000022099esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022100ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Dan Gohmand02a2812009-03-24 23:47:11 +000022101
Dan Gohman324f6082009-03-25 00:52:11 +000022102
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022103 case $ac_mode in
22104 :F)
22105 #
22106 # CONFIG_FILE
22107 #
Dan Gohman324f6082009-03-25 00:52:11 +000022108
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022109 case $INSTALL in
22110 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22111 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22112 esac
Dan Gohman324f6082009-03-25 00:52:11 +000022113_ACEOF
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022114
22115cat >>$CONFIG_STATUS <<\_ACEOF
22116# If the template does not know about datarootdir, expand it.
22117# FIXME: This hack should be removed a few years after 2.60.
22118ac_datarootdir_hack=; ac_datarootdir_seen=
22119
22120case `sed -n '/datarootdir/ {
22121 p
22122 q
22123}
22124/@datadir@/p
22125/@docdir@/p
22126/@infodir@/p
22127/@localedir@/p
22128/@mandir@/p
22129' $ac_file_inputs` in
22130*datarootdir*) ac_datarootdir_seen=yes;;
22131*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22132 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22133echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22134_ACEOF
22135cat >>$CONFIG_STATUS <<_ACEOF
22136 ac_datarootdir_hack='
22137 s&@datadir@&$datadir&g
22138 s&@docdir@&$docdir&g
22139 s&@infodir@&$infodir&g
22140 s&@localedir@&$localedir&g
22141 s&@mandir@&$mandir&g
22142 s&\\\${datarootdir}&$datarootdir&g' ;;
22143esac
22144_ACEOF
22145
22146# Neutralize VPATH when `$srcdir' = `.'.
22147# Shell code in configure.ac might set extrasub.
22148# FIXME: do we really want to maintain this feature?
John Criswell451f67f2003-10-16 01:45:35 +000022149cat >>$CONFIG_STATUS <<_ACEOF
22150 sed "$ac_vpsub
22151$extrasub
22152_ACEOF
22153cat >>$CONFIG_STATUS <<\_ACEOF
22154:t
22155/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022156s&@configure_input@&$configure_input&;t t
22157s&@top_builddir@&$ac_top_builddir_sub&;t t
22158s&@srcdir@&$ac_srcdir&;t t
22159s&@abs_srcdir@&$ac_abs_srcdir&;t t
22160s&@top_srcdir@&$ac_top_srcdir&;t t
22161s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22162s&@builddir@&$ac_builddir&;t t
22163s&@abs_builddir@&$ac_abs_builddir&;t t
22164s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022165s&@INSTALL@&$ac_INSTALL&;t t
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022166$ac_datarootdir_hack
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022167" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell451f67f2003-10-16 01:45:35 +000022168
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022169test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22170 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22171 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22172 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22173which seems to be undefined. Please make sure it is defined." >&5
22174echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22175which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell451f67f2003-10-16 01:45:35 +000022176
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022177 rm -f "$tmp/stdin"
22178 case $ac_file in
22179 -) cat "$tmp/out"; rm -f "$tmp/out";;
22180 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022181 esac
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022182 ;;
Dan Gohmand02a2812009-03-24 23:47:11 +000022183
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022184
22185 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22186echo "$as_me: executing $ac_file commands" >&6;}
22187 ;;
22188 esac
22189
22190
22191 case $ac_file$ac_mode in
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022192 "Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22193 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22194 "lib/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22195 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22196 "lib/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname lib/sample/Makefile`
22197 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;;
22198 "tools/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22199 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22200 "tools/sample/Makefile":C) ${srcdir}/autoconf/mkinstalldirs `dirname tools/sample/Makefile`
22201 ${SHELL} ${srcdir}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;;
Peter Collingbourne2bf4b542010-12-12 21:42:01 +000022202
22203 esac
22204done # for ac_tag
22205
John Criswell451f67f2003-10-16 01:45:35 +000022206
22207{ (exit 0); exit 0; }
22208_ACEOF
22209chmod +x $CONFIG_STATUS
22210ac_clean_files=$ac_clean_files_save
22211
22212
22213# configure is writing to config.log, and then calls config.status.
22214# config.status does its own redirection, appending to config.log.
22215# Unfortunately, on DOS this fails, as config.log is still kept open
22216# by configure, so config.status won't be able to write to it; its
22217# output is simply discarded. So we exec the FD to /dev/null,
22218# effectively closing config.log, so it can be properly (re)opened and
22219# appended to by config.status. When coming back to configure, we
22220# need to make the FD available again.
22221if test "$no_create" != yes; then
22222 ac_cs_success=:
22223 ac_config_status_args=
22224 test "$silent" = yes &&
22225 ac_config_status_args="$ac_config_status_args --quiet"
22226 exec 5>/dev/null
22227 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22228 exec 5>>config.log
22229 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22230 # would make configure fail if this is the last instruction.
22231 $ac_cs_success || { (exit 1); exit 1; }
22232fi
22233
Daniel Dunbarbf79f912011-10-18 23:10:58 +000022234#
22235# CONFIG_SUBDIRS section.
22236#
22237if test "$no_recursion" != yes; then
22238
22239 # Remove --cache-file and --srcdir arguments so they do not pile up.
22240 ac_sub_configure_args=
22241 ac_prev=
22242 eval "set x $ac_configure_args"
22243 shift
22244 for ac_arg
22245 do
22246 if test -n "$ac_prev"; then
22247 ac_prev=
22248 continue
22249 fi
22250 case $ac_arg in
22251 -cache-file | --cache-file | --cache-fil | --cache-fi \
22252 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22253 ac_prev=cache_file ;;
22254 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22255 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22256 | --c=*)
22257 ;;
22258 --config-cache | -C)
22259 ;;
22260 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22261 ac_prev=srcdir ;;
22262 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22263 ;;
22264 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22265 ac_prev=prefix ;;
22266 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22267 ;;
22268 *)
22269 case $ac_arg in
22270 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22271 esac
22272 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22273 esac
22274 done
22275
22276 # Always prepend --prefix to ensure using the same prefix
22277 # in subdir configurations.
22278 ac_arg="--prefix=$prefix"
22279 case $ac_arg in
22280 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22281 esac
22282 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22283
22284 ac_popdir=`pwd`
22285 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22286
22287 # Do not complain, so a configure script can configure whichever
22288 # parts of a large source tree are present.
22289 test -d "$srcdir/$ac_dir" || continue
22290
22291 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22292 echo "$as_me:$LINENO: $ac_msg" >&5
22293 echo "$ac_msg" >&6
22294 { as_dir="$ac_dir"
22295 case $as_dir in #(
22296 -*) as_dir=./$as_dir;;
22297 esac
22298 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22299 as_dirs=
22300 while :; do
22301 case $as_dir in #(
22302 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22303 *) as_qdir=$as_dir;;
22304 esac
22305 as_dirs="'$as_qdir' $as_dirs"
22306 as_dir=`$as_dirname -- "$as_dir" ||
22307$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22308 X"$as_dir" : 'X\(//\)[^/]' \| \
22309 X"$as_dir" : 'X\(//\)$' \| \
22310 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22311echo X"$as_dir" |
22312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22313 s//\1/
22314 q
22315 }
22316 /^X\(\/\/\)[^/].*/{
22317 s//\1/
22318 q
22319 }
22320 /^X\(\/\/\)$/{
22321 s//\1/
22322 q
22323 }
22324 /^X\(\/\).*/{
22325 s//\1/
22326 q
22327 }
22328 s/.*/./; q'`
22329 test -d "$as_dir" && break
22330 done
22331 test -z "$as_dirs" || eval "mkdir $as_dirs"
22332 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22333echo "$as_me: error: cannot create directory $as_dir" >&2;}
22334 { (exit 1); exit 1; }; }; }
22335 ac_builddir=.
22336
22337case "$ac_dir" in
22338.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22339*)
22340 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22341 # A ".." for each directory in $ac_dir_suffix.
22342 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22343 case $ac_top_builddir_sub in
22344 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22345 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22346 esac ;;
22347esac
22348ac_abs_top_builddir=$ac_pwd
22349ac_abs_builddir=$ac_pwd$ac_dir_suffix
22350# for backward compatibility:
22351ac_top_builddir=$ac_top_build_prefix
22352
22353case $srcdir in
22354 .) # We are building in place.
22355 ac_srcdir=.
22356 ac_top_srcdir=$ac_top_builddir_sub
22357 ac_abs_top_srcdir=$ac_pwd ;;
22358 [\\/]* | ?:[\\/]* ) # Absolute name.
22359 ac_srcdir=$srcdir$ac_dir_suffix;
22360 ac_top_srcdir=$srcdir
22361 ac_abs_top_srcdir=$srcdir ;;
22362 *) # Relative name.
22363 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22364 ac_top_srcdir=$ac_top_build_prefix$srcdir
22365 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22366esac
22367ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22368
22369
22370 cd "$ac_dir"
22371
22372 # Check for guested configure; otherwise get Cygnus style configure.
22373 if test -f "$ac_srcdir/configure.gnu"; then
22374 ac_sub_configure=$ac_srcdir/configure.gnu
22375 elif test -f "$ac_srcdir/configure"; then
22376 ac_sub_configure=$ac_srcdir/configure
22377 elif test -f "$ac_srcdir/configure.in"; then
22378 # This should be Cygnus configure.
22379 ac_sub_configure=$ac_aux_dir/configure
22380 else
22381 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22382echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22383 ac_sub_configure=
22384 fi
22385
22386 # The recursion is here.
22387 if test -n "$ac_sub_configure"; then
22388 # Make the cache file name correct relative to the subdirectory.
22389 case $cache_file in
22390 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22391 *) # Relative name.
22392 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22393 esac
22394
22395 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22396echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22397 # The eval makes quoting arguments work.
22398 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22399 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22400 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22401echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22402 { (exit 1); exit 1; }; }
22403 fi
22404
22405 cd "$ac_popdir"
22406 done
22407fi
22408